/* =========================================================
   WOOCOMMERCE HLÁSENIA - reskin predvolených notice boxov
   (pridané/odstránené z košíka, chyby pri checkoute a pod.)
   na brand štýl. Triedy sú z WooCommerce (wc_print_notices),
   bezpečné použiť globálne na ktorejkoľvek stránke.
========================================================= */

body .woocommerce-message,
body .woocommerce-error,
body .woocommerce-info,
body ul.woocommerce-message,
body ul.woocommerce-error,
body ul.woocommerce-info {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  list-style: none !important;
  max-width: 1280px;
  margin: 0 auto 24px !important;
  padding: 16px 20px !important;
  border-radius: 12px !important;
  font-family: var(--wb-font, 'Oxanium', sans-serif);
  font-size: 1rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}
body .woocommerce-message > li,
body .woocommerce-error > li,
body .woocommerce-info > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  flex: 1 1 auto;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body .woocommerce-message::before,
body .woocommerce-error::before,
body .woocommerce-info::before { display: none !important; }

body .woocommerce-message {
  background: var(--wb-brand-hover-bg, rgba(246, 159, 16, .12)) !important;
  border: 1px solid var(--wb-brand-2, var(--bp-600, #da7605)) !important;
  color: var(--gs-950, #0b0b0a) !important;
}
body .woocommerce-error {
  background: rgba(179, 38, 30, .08) !important;
  border: 1px solid #b3261e !important;
  color: var(--gs-950, #0b0b0a) !important;
}
body .woocommerce-info {
  background: var(--gs-100, #f4f5f4) !important;
  border: 1px solid var(--gs-800, #272726) !important;
  color: var(--gs-950, #0b0b0a) !important;
}

body .woocommerce-message a,
body .woocommerce-error a,
body .woocommerce-info a {
  color: inherit !important;
  text-decoration: underline;
  font-weight: 700;
}

body .woocommerce-message a.button,
body .woocommerce-error a.button,
body .woocommerce-info a.button,
body .woocommerce-message a.button.wc-forward,
body .woocommerce-error a.button.wc-forward,
body .woocommerce-info a.button.wc-forward {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px !important;
  border: none !important;
  border-radius: 6px !important;
  background: var(--wb-accent-brown) !important;
  color: #fff !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  font-size: .95rem !important;
  white-space: nowrap;
  transition: background .2s ease;
}
body .woocommerce-message a.button:hover,
body .woocommerce-error a.button:hover,
body .woocommerce-info a.button:hover { background: var(--wb-accent-brown-hover) !important; opacity: 1; }

/* Kupón formulár (toggle + .checkout_coupon) - presunuté a zjednotené do
   .wb-checkout-page v e-shop.css (spolu so zvyškom checkout reskinu),
   aby neexistovali dve konkurenčné pravidlá pre ten istý element v
   dvoch súboroch. Viď e-shop.css. */

/* =========================================================
   CUSTOM PHOTO BANNER - Máte vlastnú fotografiu?
   scoped na .wb-custom-photo (zdieľané - domov aj obchod)
========================================================= */

.wb-custom-photo {
  position: relative;
  width: 100%;
  margin: 0 0 clamp(48px, 8vw, 96px);
  border-radius: 0;
  overflow: hidden;
  /* jemné skosenie - pravý kraj je o 12px nižšie ako ľavý, na vrchnej aj spodnej hrane */
  clip-path: polygon(0 0, 100% 12px, 100% 100%, 0 calc(100% - 12px));
  background:
    linear-gradient(90deg, rgba(11, 11, 10, .90), rgba(11, 11, 10, .78)),
    var(--gs-950) url('https://jaside.sk/wp-content/uploads/2026/07/vlastna-fotografia-pozadie.png') center / cover no-repeat;
  padding: clamp(56px, 7vw, 80px) clamp(20px, 6vw, 40px);
}

.wb-custom-photo__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 48px);
}

.wb-custom-photo__icon {
  flex: none;
  display: inline-flex;
  width: 120px;
  height: 120px;
}
.wb-custom-photo__icon svg {
  width: 100%;
  height: 100%;
}

.wb-custom-photo__content { max-width: 720px; }

.wb-custom-photo__eyebrow {
  margin: 0 0 8px;
  color: var(--wb-brand-1);
  font-weight: 700;
  font-size: .95rem;
}

.wb-custom-photo__title { margin: 0 0 16px; }

.wb-custom-photo__text {
  margin: 0 0 20px;
  color: var(--gs-200);
}
.wb-custom-photo__text strong { color: #fff; font-weight: 700; }

.wb-custom-photo__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wb-brand-1);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: underline;
  transition: opacity .2s ease;
}
.wb-custom-photo__link:hover { opacity: .75; }

@media (max-width: 760px) {
  .wb-custom-photo__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .wb-custom-photo__icon { width: 80px; height: 80px; }
}

/* =========================================================
   MINI KOŠÍK - perzistentná plávajúca ikona + postranný panel
   Zobrazené na každej stránke (viď wb_mini_cart_render()).
   Farby/typografia z root.css premenných.
========================================================= */

.wb-mini-cart {
  --wb-brand-1: var(--bp-500, #f69f10);
  --wb-brand-2: var(--bp-600, #da7605);
  font-family: var(--wb-font, 'Oxanium', sans-serif);
}

/* plávajúce tlačidlo */
.wb-mini-cart__toggle {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  top: clamp(16px, 3vw, 32px);
  z-index: 210;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--wb-accent-brown);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(11, 11, 10, .25);
  transition: transform .2s ease, background .2s ease;
}
.wb-mini-cart__toggle:hover { background: var(--wb-accent-brown-hover); transform: translateY(-2px); }
.wb-mini-cart__toggle:active { transform: scale(.96); }
.wb-mini-cart.is-open .wb-mini-cart__toggle { opacity: 0; visibility: hidden; pointer-events: none; }

.wb-mini-cart__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--wb-brand-2);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}
.wb-mini-cart__count[data-count="0"] { display: none; }

/* overlay */
.wb-mini-cart__overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 11, 10, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.wb-mini-cart.is-open .wb-mini-cart__overlay { opacity: 1; visibility: visible; }

/* postranný panel */
.wb-mini-cart__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 201;
  width: min(100%, 460px);
  background: var(--gs-50, #f9faf9);
  box-shadow: -12px 0 40px rgba(11, 11, 10, .18);
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.wb-mini-cart.is-open .wb-mini-cart__panel { transform: translateX(0); }

.wb-mini-cart__panel-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.wb-mini-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px;
  border-bottom: 1px solid var(--gs-200, #e6e6e5);
}
.wb-mini-cart__head-left { display: flex; align-items: center; gap: 12px; }

.wb-mini-cart__bag-mini {
  position: relative;
  display: inline-flex;
  color: var(--wb-brand-2);
}
.wb-mini-cart__count-mini {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--wb-brand-2);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wb-mini-cart__count-mini[data-count="0"] { display: none; }

.wb-mini-cart__title {
  margin: 0;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gs-950, #0b0b0a);
}

.wb-mini-cart__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--gs-950, #0b0b0a);
  cursor: pointer;
  transition: background .2s ease;
}
.wb-mini-cart__close:hover { background: var(--gs-100, #f4f5f4); }

/* prázdny stav */
.wb-mini-cart__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 48px 32px;
}
.wb-mini-cart__empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--gs-100, #f4f5f4);
  color: var(--gs-400, #a5a5a1);
  margin-bottom: 8px;
}
.wb-mini-cart__empty-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gs-950, #0b0b0a);
}
.wb-mini-cart__empty-text {
  margin: 0;
  font-size: .95rem;
  color: var(--gs-500, #747470);
  max-width: 320px;
}
.wb-mini-cart__empty-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--wb-accent-brown);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease;
}
.wb-mini-cart__empty-btn:hover { background: var(--wb-accent-brown-hover); opacity: 1; }

/* zoznam položiek */
.wb-mini-cart__items {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 24px;
  overflow-y: auto;
}
.wb-mini-cart__item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gs-200, #e6e6e5);
}
.wb-mini-cart__item:last-child { border-bottom: none; }

.wb-mini-cart__item-media img {
  display: block;
  width: 64px;
  height: 85px;
  object-fit: cover;
  border-radius: 6px;
}

.wb-mini-cart__item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.wb-mini-cart__item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.wb-mini-cart__item-name {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gs-950, #0b0b0a);
}

.wb-mini-cart__item-remove {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #b3261e !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: background .2s ease;
}
.wb-mini-cart__item-remove:hover { background: rgba(179, 38, 30, .12) !important; }

.wb-mini-cart__item-meta {
  font-size: .82rem;
  line-height: 1.5;
  color: var(--gs-950, #0b0b0a);
  opacity: .75;
}
.wb-mini-cart__item-meta dl,
.wb-mini-cart__item-meta p { margin: 0; }
/* !important - WooCommerce/Divi vlastný predvolený "dl.variation dt/dd"
   štýl (dodaný s pluginom/rodičovskou témou, nahráva sa až PO tomto
   súbore) vie predvolene prepísať display:inline späť na block, čím sa
   "Rozmer:" a jeho hodnota roztrhnú na dva riadky s veľkou medzerou
   namiesto jedného kompaktného riadku "Rozmer: 40 x 40 cm" - rovnaký
   dôvod ako pri !important na .wb-shop-content .woocommerce-pagination
   v e-shop.css (Divi vnucuje vlastné globálne štýly pre zoznamy). */
.wb-mini-cart__item-meta dt { display: inline !important; font-weight: 700; }
.wb-mini-cart__item-meta dd { display: inline !important; margin: 0; }
.wb-mini-cart__item-meta dd::after { content: "\A"; white-space: pre; }

.wb-mini-cart__item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: .95rem;
}
.wb-mini-cart__item-qty { color: var(--gs-500, #747470); }
.wb-mini-cart__item-price { font-weight: 700; color: var(--gs-950, #0b0b0a); }

/* päta - zhrnutie + akcie */
.wb-mini-cart__footer {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--gs-200, #e6e6e5);
}
.wb-mini-cart__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.2rem;
  color: var(--gs-950, #0b0b0a);
  margin: 0 0 6px;
}
.wb-mini-cart__note {
  margin: 0 0 16px;
  font-size: .82rem;
  color: var(--gs-500, #747470);
}
.wb-mini-cart__actions { display: flex; flex-direction: column; gap: 10px; }
.wb-mini-cart__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .2s ease, opacity .2s ease;
}
.wb-mini-cart__btn--ghost {
  background: transparent;
  border: 1px solid var(--gs-800, #272726);
  color: var(--gs-950, #0b0b0a);
}
.wb-mini-cart__btn--ghost:hover { background: var(--gs-100, #f4f5f4); opacity: 1; }
.wb-mini-cart__btn--solid { background: var(--wb-accent-brown); color: #fff; }
.wb-mini-cart__btn--solid:hover { background: var(--wb-accent-brown-hover); opacity: 1; }

@media (max-width: 520px) {
  .wb-mini-cart__panel { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .wb-mini-cart__panel, .wb-mini-cart__overlay, .wb-mini-cart__toggle { transition: none; }
}


/* ============================================================
   HEADER (presunuté z components.php, Fáza 3)
   scoped na .wb-header-root
============================================================ */

.wb-header-root {
  --wb-brand-2:            #eb6414;
  --wb-header-bg: var(--gs-100);
  --wb-font-display: 'Oxanium', 'DM Sans', system-ui, sans-serif;
  font-family: var(--wb-font-display);
}

.wb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wb-header-bg);
  width: 100%;
}

.wb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1280px;
  padding: 16px clamp(20px, 4vw, 40px);
  margin: 0 auto;
}

/* logo */
.wb-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

/* desktop nav */
.wb-nav--desktop {
  display: none;
  align-items: center;
  gap: 32px;
}

/* links - label + podčiarknutie ako 2 vlastné riadky (gap 4px), podčiarknutie
   má šírku textu (nie paddingovaný "click target" inset ako predtým) a
   "vysúva sa" zľava doprava len na hover/aktívnej strane */
.wb-nav__link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  color: var(--wb-black);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}
.wb-nav__link::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--wb-brand-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.wb-nav__link:hover::after { transform: scaleX(1); }
.wb-nav__link.is-active { color: var(--wb-brand-1); }
.wb-nav__link.is-active::after { transform: scaleX(1); }

/* pripravený šípkový indikátor pre budúce podmenu - zatiaľ bez funkcie */
.wb-nav__link--has-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wb-nav__chevron {
  display: inline-flex;
  color: var(--wb-muted);
  transition: transform .2s ease, color .2s ease;
}
.wb-nav__link--has-sub:hover .wb-nav__chevron {
  color: var(--wb-black);
  transform: rotate(180deg);
}

/* cart */
.wb-header__cart {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wb-black);
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease;
}
.wb-header__cart:hover { color: var(--wb-brand-1); }
.wb-header__cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--wb-brand-2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

/* burger */
.wb-burger {
  width: 48px;
  height: 48px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow .2s ease, transform .2s ease;
}
/* hover ring len na zariadeniach so skutočným hoverom (myš) - na dotyku
   (mobil/tablet) po ťuknutí zostáva "zaseknutý" v hover stave, kým sa
   nedotkneš niečoho iného, takže tam pôsobí ako trvalý orámovaný kruh */
@media (hover: hover) {
  .wb-burger:hover { box-shadow: 0 0 0 2px var(--wb-brand-ring); }
}
.wb-burger:active { transform: scale(.98); }

.wb-burger__lines {
  width: 22px;
  height: 16px;
  position: relative;
  display: block;
}
.wb-burger__lines::before,
.wb-burger__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--wb-brand-1);
  border-radius: 999px;
}
.wb-burger__lines::before {
  top: 0;
  box-shadow: 0 7px 0 0 var(--wb-brand-1); /* middle line */
}
.wb-burger__lines::after { bottom: 0; }


/* =========================
   MOBILE PANEL
========================= */

.wb-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .72);
}

.wb-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 201;
  height: 100dvh;
  width: 100%;
  background: var(--wb-header-bg);
  color: var(--wb-black);
  box-shadow: var(--wb-shadow);
  transform: translateX(100%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 16px;
}
.wb-panel.is-open { transform: translateX(0); }

/* top row */
.wb-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(29, 29, 27, .1);
}

/* logo */
.wb-panel__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

/* close button */
.wb-close {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--wb-brand-1);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow .2s ease, transform .2s ease;
}
.wb-close span { font-size: 30px; }
/* hover ring len na zariadeniach so skutočným hoverom (myš) - viď wb-burger vyššie */
@media (hover: hover) {
  .wb-close:hover { box-shadow: 0 0 0 2px var(--wb-brand-ring); }
}
.wb-close:active { transform: scale(.98); }

/* menu items */
.wb-nav--panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wb-nav__item {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--wb-muted);
  padding: 16px;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: .02em;
  background: transparent;
  transition: color .2s ease;
}
.wb-nav__item::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 10px;
  height: 1px;
  background: #da7605;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.wb-nav__item:hover { color: var(--wb-black); }
.wb-nav__item:hover::after { transform: scaleX(1); }
.wb-nav__item.is-active { color: var(--wb-brand-1); }
.wb-nav__item.is-active::after { transform: scaleX(1); }

/* pripravený šípkový indikátor pre budúce podmenu - zatiaľ bez funkcie */
.wb-nav__item--has-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wb-nav__item--has-sub .wb-nav__chevron { color: currentColor; opacity: .6; }

/* bottom section */
.wb-panel__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(29, 29, 27, .1);
}

/* socials - presne rovnaký vzhľad ako .wb-footer__socials v pätičke
   (rovnaká sada ikon aj tvar: kruh / zaoblený štvorec pre všetky tri -
   WhatsApp mal predtým samostatný "bez rámčeka" výnimku ako posledné
   dieťa, čím vizuálne nesedel k ostatným dvom ikonám). */
.wb-panel__socials {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}
.wb-panel__socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--wb-brand-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wb-brand-1);
  background: transparent;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.wb-panel__socials a:nth-child(2),
.wb-panel__socials a:nth-child(3) {
  border-radius: 10px;
}
.wb-panel__socials a:hover {
  background: var(--wb-brand-1);
  color: #fff;
}


/* =========================
   BREAKPOINTS - HEADER
========================= */

/* desktop */
@media (min-width: 980px) {
  .wb-burger { display: none; }
  .wb-nav--desktop { display: flex; }
}

/* mobile - hamburger a košík ako kompaktná dvojica pri pravom okraji
   (košík vpravo od hamburgeru, blízko seba), nie roztiahnuté cez
   celú šírku parent flexu (.wb-header__inner má justify-content:
   space-between, ktoré by ich inak od seba vzdialilo). margin-left:auto
   na prvom z dvojice pohltí voľné miesto pred ňou, logo ostáva vľavo,
   normálny "gap" kontajnera ich drží tesne pri sebe. */
@media (max-width: 979px) {
  .wb-burger { order: 1; margin-left: auto; }
  .wb-header__cart { order: 2; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wb-panel { transition: none; }
  .wb-nav__item, .wb-burger, .wb-close, .wb-nav__link { transition: none; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wb-panel { transition: none; }
  .wb-nav__item, .wb-burger, .wb-close, .wb-nav__link { transition: none; }
}


/* ============================================================
   FOOTER (presunuté z components.php, Fáza 3)
   scoped na .wb-footer
============================================================ */

.wb-footer {
  --wb-black:  #41413f;
  --wb-muted:  #747470;
  --wb-footer-bg:   var(--gs-50);
  --wb-footer-text: var(--wb-muted);
  --wb-font-display: 'Oxanium', 'DM Sans', system-ui, sans-serif;

  background: var(--wb-footer-bg);
  color: var(--wb-footer-text);
  font-family: var(--wb-font-display);
  padding: 24px 20px;
  position: relative;
}

/* inner - 4 stĺpce vedľa seba na celú šírku kontajnera (Sociálne siete
   stĺpec má pevnú šírku, presne podľa Figma), zvyšné stĺpce sa rozložia
   voľne cez medzeru medzi nimi. */
.wb-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.wb-footer__col { min-width: 0; }
.wb-footer__col:last-child { flex: none; width: 270px; }

/* headings */
.wb-footer__col h4 {
  color: var(--wb-black);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 16px;
}

/* company info column - h4 / info-blok / telefón / e-mail, každý s 16px
   medzerou (presne podľa Figma), vnútri info-bloku 8px medzi menom,
   adresou a fakturačnými údajmi. */
.wb-footer__company {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wb-footer__company h4 { margin: 0; }
.wb-footer__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wb-footer__company-name {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--wb-black);
}
.wb-footer__address p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--wb-muted);
}
.wb-footer__meta {
  display: flex;
  flex-direction: column;
}
.wb-footer__meta p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--wb-muted);
}
.wb-footer__meta strong { color: var(--wb-muted); font-weight: 400; }

/* telefón / e-mail - farba aj podčiarknutie na hover zhodné so vzorom
   v hlavnej navigácii (nav__link), nie statické podčiarknutie */
.wb-footer__contact-link {
  position: relative;
  display: inline-block;
  width: fit-content;
  color: var(--wb-brand-2);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}
.wb-footer__contact-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--wb-brand-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.wb-footer__contact-link:hover::after { transform: scaleX(1); }

/* lists */
.wb-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wb-footer__col li { font-size: 16px; line-height: 1; }

/* nav linky (Obchod, Dokumenty) - podčiarknutie sa "vysúva" zľava doprava len pri hoveri,
   len na šírku textu (a je inline-block, takže width:100% = šírka obsahu, nie stĺpca) */
.wb-footer__col ul a {
  position: relative;
  display: inline-block;
  color: var(--gs-600);
  text-decoration: none;
}
.wb-footer__col ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--wb-brand-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.wb-footer__col ul a:hover { color: var(--wb-black); }
.wb-footer__col ul a:hover::after { transform: scaleX(1); }
.wb-footer__col ul a.is-active { color: var(--wb-black); }

/* socials - obrysové kruhové ikony, bez podčiarknutia na hover.
   Zarovnané doľava (nie roztiahnuté na celú šírku stĺpca cez space-between) -
   pri len 3 ikonách space-between vytváralo veľké medzery namiesto
   kompaktnej skupiny. */
.wb-footer__socials {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}
.wb-footer__socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--wb-brand-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wb-brand-1);
  background: transparent;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.wb-footer__socials a:hover {
  background: var(--wb-brand-1-hover);
  border-color: var(--wb-brand-1-hover);
  color: #fff;
}

/* bottom bar - v rovnakom padded kontajneri ako stĺpce vyššie (10px gap
   medzi nimi), žiadny samostatný oddeľovací pás/border navyše */
.wb-footer__bottom {
  max-width: 1240px;
  margin: 10px auto 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.wb-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}
.wb-footer__bottom-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.wb-footer__bottom-logo svg {
  width: 200px;
  height: auto;
}

/* logá podporovaných platobných kariet, pod logom JaSiDe */
.wb-footer__payments {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wb-footer__payments img {
  display: block;
  width: 40px;
  height: 12px;
  object-fit: contain;
}
.wb-footer__copy {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: var(--wb-black);
}

/* Weebe link - rovnaký "grow" underline vzor ako telefón/e-mail vyššie */
.wb-footer__link {
  position: relative;
  display: inline-block;
  font-weight: 500;
  color: var(--wb-brand-2);
  text-decoration: none;
}
.wb-footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--wb-brand-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.wb-footer__link:hover::after { transform: scaleX(1); }

/* scroll-to-top - statický box v spodnom riadku, zarovnaný z prava */
.wb-scrolltop {
  flex: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: var(--wb-brand-1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.wb-scrolltop:hover { background: var(--wb-brand-1-hover); }
.wb-scrolltop:active { transform: scale(.96); }


/* =========================
   BREAKPOINTS – FOOTER
========================= */

@media (max-width: 980px) {
  /* tablet - 3 stĺpce v prvom rade (firma / Obchod / Dokumenty) sa zalomia
     na wrap, Sociálne siete (pevná šírka 270px) sa preklopia na celú šírku
     pod ne (na 3 stĺpce by už 4. položka nesedela rovnomerne). */
  .wb-footer__inner { flex-wrap: wrap; row-gap: 40px; }
  .wb-footer__inner > .wb-footer__col:last-child { width: 100%; }

  /* spodná lišta - jeden stĺpec, pevné poradie logo / copyright / platobné
     logá. .wb-footer__brand pôvodne obaľuje logo aj platby ako jeden blok
     (kvôli desktopu) - display:contents ho na tablete/mobile "vyradí" z
     layoutu, takže logo a platby sa zaradia priamo medzi položky
     .wb-footer__bottom a dajú sa nezávisle preusporiadať cez order. */
  .wb-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }
  .wb-footer__brand { display: contents; }
  .wb-footer__bottom-logo { order: 1; }
  .wb-footer__copy { order: 2; }
  .wb-footer__payments { order: 3; justify-content: center; }
  .wb-scrolltop { order: 4; }
}

@media (max-width: 640px) {
  .wb-footer { padding: 48px 20px 24px; }
  .wb-footer__inner { flex-direction: column; row-gap: 36px; }
  .wb-footer__inner > .wb-footer__col:last-child { width: 100%; }
  .wb-footer__bottom { margin-top: 40px; }
  .wb-footer__bottom-logo svg { width: 160px; }
  /* šípka "späť hore" zarovnaná vpravo (nie na strede so zvyškom stĺpca) */
  .wb-scrolltop { align-self: flex-end; }
}

@media (max-width: 420px) {
  .wb-footer { padding: 40px 16px 20px; }
  .wb-footer__inner { row-gap: 32px; }
}

@media (max-width: 640px) {
  /* odkazy (Obchod/Dokumenty) - na mobile viac vzduchu medzi položkami
     (ľahšie sa trafí prstom), sociálne ikony naopak bližšie pri sebe -
     kompaktnejšia skupina namiesto široko rozťahnutej. */
  .wb-footer__col ul { gap: 18px; }
  .wb-footer__socials { gap: 16px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wb-scrolltop, .wb-footer__socials a, .wb-footer__link, .wb-footer__col ul a, .wb-footer__contact-link { transition: none; }
}
