/* ==========================================================================
   WIBRYSY PREMIUM v2.2 — KOMPLETNY MOTYW CSS
   PrestaShop 9.x | Parent: Classic
   
   Zmiany v2.2:
   - Naprawiony koszyk (wib-cart-link zamiast Bootstrap btn)  
   - Mobilne menu przez JS (main.js), CSS tylko styluje
   - Sticky header z animacją
   - Przycisk Back to Top
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* --------------------------------------------------------------------------
   CSS VARIABLES 
   -------------------------------------------------------------------------- */
:root {
  --gold: #C5A566;
  --gold-light: #d4ba82;
  --gold-dark: #a8893f;
  --black: #1a1a1a;
  --white: #ffffff;
  --cream: #F2EEE6;
  --gray: #999999;
  --gray-light: #e5e5e5;
  --text: #333333;
  --text-light: #777777;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --tr: 0.35s var(--ease);
  --header-h: 130px;
}

/* --------------------------------------------------------------------------
   GLOBAL
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans) !important;
  color: var(--text) !important;
  background: var(--white) !important;
  -webkit-font-smoothing: antialiased !important;
  line-height: 1.7 !important;
  font-size: 14px !important;
}

::selection { background: var(--gold); color: var(--white); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }
*:focus { outline: none !important; box-shadow: none !important; }
a { text-decoration: none !important; }

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-serif) !important;
  color: var(--black) !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;
  line-height: 1.2 !important;
}
h4, h5, h6, .h4, .h5, .h6 {
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  font-size: 0.75rem !important;
}

/* ==========================================================================
   STICKY HEADER (dodaje klasa przez JS)
   ========================================================================== */
#header {
  position: relative;
  z-index: 1000;
  transition: box-shadow var(--tr);
}
#header.wib-sticky {
  position: sticky !important;
  top: 0 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

/* ==========================================================================
   TOP BAR (ZŁOTY)
   ========================================================================== */
#header .header-nav,
.header-nav {
  background: var(--gold) !important;
  border: none !important;
  padding: 0 !important;
  height: 50px !important;
  overflow: visible !important;
  display: block !important; /* Powrót do domyślnego block aby nie psuć siatki Bootstrapa */
}

/* Ponowne ukrycie "Kontakt z nami" */
#contact-link { display: none !important; }

.header-nav .container, .header-nav .row {
  height: 100% !important;
}

.header-nav .right-nav,
#header .right-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 24px !important;
  height: 50px !important; /* Stała wysokość dla idealnego centrowania w pionie */
}

/* Usunięcie domyślnych marginesów PS które mogą spychać ikony */
#_desktop_user_info, #_desktop_cart, .user-info, .blockcart {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

#_desktop_user_info .user-info,
#_desktop_cart .blockcart {
  display: inline-flex !important;
  align-items: center !important;
}

/* ── Koszyk — nowe klasy z TPL wib-cart-link ── */
.wib-cart-link {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  color: var(--white) !important;
  cursor: pointer !important;
  transition: opacity var(--tr) !important;
  background: transparent !important;
  border: none !important;
  text-decoration: none !important;
}
.wib-cart-link:hover { opacity: 0.7 !important; color: var(--white) !important; }
.wib-cart-link .material-icons { font-size: 1.4rem !important; }

.wib-cart-badge {
  position: absolute !important;
  top: -6px !important;
  right: -8px !important;
  background: var(--white) !important;
  color: var(--gold) !important;
  border-radius: 50% !important;
  font-size: 0.55rem !important;
  font-weight: 700 !important;
  width: 16px !important;
  height: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
}

/* ── Konto — nowe klasy wib-account-link ── */
.wib-account-link {
  display: inline-flex !important;
  align-items: center !important;
  color: var(--white) !important;
  cursor: pointer !important;
  transition: opacity var(--tr) !important;
  text-decoration: none !important;
  background: transparent !important;
}
.wib-account-link:hover { opacity: 0.7 !important; color: var(--white) !important; }
.wib-account-link .material-icons { font-size: 1.4rem !important; }

/* ── Blokuj Bootstrap z nadpisywania stylów na .blockcart ── */
.blockcart.cart-preview { background: transparent !important; border: none !important; box-shadow: none !important; }
.blockcart .header { padding: 0 !important; background: transparent !important; display: inline-flex !important; align-items: center !important; }

/* ==========================================================================
   LOGO — Wycentrowane, duże
   ========================================================================== */
.header-top {
  background: var(--white) !important;
  border: none !important;
  padding: 0 !important;
}

#_desktop_logo {
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding: 28px 0 14px !important;
  order: -1 !important;
}
#_desktop_logo img.logo { max-height: 85px !important; width: auto !important; }

.header-top .row,
.header-top > .container > .row {
  display: flex !important;
  flex-wrap: wrap !important;
}

.header-top-right {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ==========================================================================
   MENU GŁÓWNE — Między dwiema liniami
   ========================================================================== */
.top-menu, #top-menu {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border-top: 1px solid var(--gray-light) !important;
  border-bottom: 1px solid var(--gray-light) !important;
}

#header .top-menu a[data-depth="0"],
#top-menu > li > a, .top-menu > li > a {
  display: inline-block !important;
  padding: 16px 25px !important;
  font-family: var(--font-sans) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--black) !important;
  position: relative !important;
  transition: color var(--tr) !important;
  background: transparent !important;
  border: none !important;
}
#header .top-menu a[data-depth="0"]:hover,
#top-menu > li > a:hover { color: var(--gold) !important; }

/* Złota kreska przy hover */
#header .top-menu a[data-depth="0"]::after,
#top-menu > li > a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) scaleX(0) !important;
  width: 22px !important;
  height: 1.5px !important;
  background: var(--gold) !important;
  transition: transform var(--tr) !important;
}
#header .top-menu a[data-depth="0"]:hover::after,
#top-menu > li > a:hover::after { transform: translateX(-50%) scaleX(1) !important; }

/* Dropdown */
.popover.sub-menu, .sub-menu {
  border: none !important; border-radius: 0 !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08) !important;
  padding: 20px 25px !important;
}
.popover.sub-menu a, .sub-menu a { font-size: 0.82rem !important; padding: 7px 0 !important; color: var(--text) !important; }
.popover.sub-menu a:hover, .sub-menu a:hover { color: var(--gold) !important; }

/* ==========================================================================
   WYSZUKIWARKA
   ========================================================================== */
.wib-search-form,
#search_widget form {
  display: flex !important;
  align-items: center !important;
  background: transparent !important;
  border: 1px solid var(--gray-light) !important;
  border-radius: 0 !important;
  height: 38px !important;
  overflow: hidden !important;
  transition: border-color var(--tr) !important;
}
.wib-search-form:hover,
.wib-search-form:focus-within,
#search_widget form:hover,
#search_widget form:focus-within { border-color: var(--gold) !important; }

.wib-search-form input[type=text],
#search_widget form input[type=text] {
  border: none !important;
  background: transparent !important;
  color: var(--black) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.06em !important;
  padding: 5px 12px !important;
  width: 200px !important;
  height: 100% !important;
}
.wib-search-form input::placeholder,
#search_widget form input::placeholder {
  color: var(--gray) !important;
  text-transform: uppercase !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.1em !important;
}
.wib-search-form button,
#search_widget form button[type=submit] {
  background: var(--gold) !important;
  border: none !important;
  color: var(--white) !important;
  padding: 0 12px !important;
  /* height: 100% nie działa gdy parent nie ma explicit height; używamy align-self */
  align-self: stretch !important;
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  min-width: 38px !important;
}
.wib-search-form button i,
#search_widget form button i { color: var(--white) !important; font-size: 1.1rem !important; }
#search_widget form i.clear { display: none !important; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:not([disabled]):not(.disabled):active,
.btn-primary:not([disabled]):not(.disabled):focus {
  background-color: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  color: var(--white) !important;
  border-radius: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  font-size: 0.75rem !important;
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  padding: 14px 30px !important;
  box-shadow: none !important;
  transition: all var(--tr) !important;
}
.btn-primary:hover { background-color: var(--gold-dark) !important; border-color: var(--gold-dark) !important; }
.btn-secondary {
  background: transparent !important;
  border: 1px solid var(--black) !important;
  color: var(--black) !important;
  border-radius: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  font-size: 0.75rem !important;
  padding: 14px 30px !important;
  transition: all var(--tr) !important;
}
.btn-secondary:hover { background: var(--black) !important; color: var(--white) !important; }

/* ==========================================================================
   CAROUSEL
   ========================================================================== */
#carousel { margin-bottom: 0 !important; }
#carousel .carousel-item img { width: 100% !important; }
#carousel .caption { background: rgba(0,0,0,0.35) !important; padding: 30px 40px !important; }
#carousel .caption h2 { font-family: var(--font-serif) !important; font-size: 2.8rem !important; color: var(--white) !important; letter-spacing: 0.06em !important; text-shadow: none !important; }
#carousel .direction .carousel-control { opacity: 0.4 !important; transition: opacity var(--tr) !important; }
#carousel .direction .carousel-control:hover { opacity: 1 !important; }

/* ==========================================================================
   PRODUCT SECTIONS
   ========================================================================== */
.featured-products, section.featured-products { padding: 60px 0 !important; }

.featured-products[data-type="newproducts"],
section.featured-products.mt-3 {
  background: var(--cream) !important;
  padding: 60px 20px !important;
}

.products-section-title {
  font-family: var(--font-serif) !important;
  font-size: 2.2rem !important;
  font-weight: 400 !important;
  text-align: center !important;
  color: var(--black) !important;
  margin-bottom: 50px !important;
  letter-spacing: 0.05em !important;
  text-transform: none !important;
}
.all-product-link {
  text-align: center !important; float: none !important; display: block !important;
  margin-top: 40px !important; font-size: 0.78rem !important;
  letter-spacing: 0.15em !important; text-transform: uppercase !important;
  color: var(--gold) !important; font-weight: 500 !important;
}
.all-product-link:hover { color: var(--gold-dark) !important; }

/* ==========================================================================
   PRODUCT CARDS
   ========================================================================== */
.products.row, .products { display: flex !important; flex-wrap: wrap !important; }
.product-miniature { margin-bottom: 40px !important; }
.product-miniature .thumbnail-container { border: none !important; box-shadow: none !important; background: transparent !important; overflow: hidden !important; position: relative !important; }
.product-miniature .thumbnail-top { overflow: hidden !important; }
.product-miniature .thumbnail-top img { transition: transform 0.7s var(--ease) !important; width: 100% !important; }
.product-miniature:hover .thumbnail-top img { transform: scale(1.04) !important; }

.product-miniature .highlighted-informations {
  background: rgba(255,255,255,0.92) !important;
  position: absolute !important; bottom: 0 !important; left: 0 !important;
  width: 100% !important; text-align: center !important; padding: 12px 0 !important;
  opacity: 0 !important; transform: translateY(8px) !important; transition: all var(--tr) !important;
}
.product-miniature:hover .highlighted-informations { opacity: 1 !important; transform: translateY(0) !important; }
.quick-view { font-size: 0.72rem !important; text-transform: uppercase !important; letter-spacing: 0.12em !important; color: var(--black) !important; }

.product-miniature .product-description { text-align: center !important; padding: 18px 10px 5px !important; min-height: 180px !important; }
.product-miniature .product-title a { font-family: var(--font-sans) !important; font-size: 0.85rem !important; font-weight: 400 !important; color: var(--black) !important; }
.product-miniature .product-price-and-shipping { text-align: center !important; margin-top: 6px !important; }
.product-miniature .price { font-family: var(--font-sans) !important; font-weight: 600 !important; font-size: 1rem !important; color: var(--black) !important; }

/* Złote flagi */
.product-flags { position: absolute !important; top: 12px !important; left: 12px !important; z-index: 3 !important; display: flex !important; flex-direction: column !important; gap: 4px !important; }
.product-flags .product-flag { background: var(--gold) !important; color: var(--white) !important; text-transform: uppercase !important; letter-spacing: 0.12em !important; font-size: 0.6rem !important; font-weight: 600 !important; padding: 5px 12px !important; border-radius: 0 !important; box-shadow: none !important; }

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */
.product-information h1.h1 { font-family: var(--font-serif) !important; font-size: 2.4rem !important; font-weight: 400 !important; margin-bottom: 15px !important; }
.product-prices .current-price span.price { font-size: 1.6rem !important; font-weight: 600 !important; color: var(--black) !important; }
#product-description-short { color: var(--text-light) !important; font-size: 0.9rem !important; line-height: 1.8 !important; padding-bottom: 20px !important; border-bottom: 1px solid var(--gray-light) !important; }

.tabs .nav-tabs { border-bottom: 1px solid var(--gray-light) !important; }
.tabs .nav-tabs .nav-link { font-family: var(--font-sans) !important; font-size: 0.75rem !important; font-weight: 500 !important; letter-spacing: 0.15em !important; text-transform: uppercase !important; color: var(--gray) !important; padding: 15px 25px !important; border: none !important; background: transparent !important; }
.tabs .nav-tabs .nav-link.active { color: var(--black) !important; border-bottom: 2px solid var(--gold) !important; }

.product-add-to-cart .add-to-cart, .add-to-cart {
  background: var(--gold) !important; 
  border-color: var(--gold) !important; 
  color: var(--white) !important;
  border-radius: 0 !important; 
  text-transform: uppercase !important; 
  letter-spacing: 0.1em !important;
  font-size: 0.75rem !important; 
  padding: 12px 15px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all var(--tr) !important;
}
.product-add-to-cart .add-to-cart:hover, .add-to-cart:hover { 
  background: var(--gold-dark) !important; 
}
.product-add-to-cart .material-icons {
  font-size: 1.1rem !important;
  line-height: 1 !important;
}

/* ==========================================================================
   CATEGORY PAGE
   ========================================================================== */
.block-category h1 { font-family: var(--font-serif) !important; font-size: 2.6rem !important; text-align: center !important; font-weight: 400 !important; margin: 30px 0 20px !important; }
.facet-title { font-family: var(--font-sans) !important; font-size: 0.75rem !important; text-transform: uppercase !important; letter-spacing: 0.12em !important; font-weight: 600 !important; }
.products-sort-order .select-title { border: 1px solid var(--gray-light) !important; border-radius: 0 !important; }

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumb { background: transparent !important; font-size: 0.72rem !important; letter-spacing: 0.08em !important; text-transform: uppercase !important; }
.breadcrumb a { color: var(--gray) !important; }
.breadcrumb a:hover { color: var(--gold) !important; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-control { border: 1px solid var(--gray-light) !important; border-radius: 0 !important; padding: 12px 15px !important; }
.form-control:focus { border-color: var(--gold) !important; }

/* ==========================================================================
   CART & CHECKOUT
   ========================================================================== */
.cart-summary { border-radius: 0 !important; border: 1px solid var(--gray-light) !important; background: var(--cream) !important; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
#footer { background: var(--white) !important; border-top: 3px solid var(--gold) !important; padding: 60px 0 30px !important; margin-top: 80px !important; color: var(--text) !important; }
#footer h3 { font-family: var(--font-sans) !important; font-size: 0.72rem !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: 0.18em !important; color: var(--black) !important; margin-bottom: 25px !important; }
#footer li a { color: var(--text-light) !important; font-size: 0.82rem !important; padding: 4px 0 !important; display: inline-block !important; transition: color var(--tr) !important; }
#footer li a:hover { color: var(--gold) !important; }
.block_newsletter .btn-primary { background: var(--gold) !important; border-color: var(--gold) !important; }
.block_newsletter input { border: 1px solid var(--gray-light) !important; border-radius: 0 !important; }

/* ==========================================================================
   BACK TO TOP BUTTON (dodawany przez main.js)
   ========================================================================== */
#wib-back-top {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  width: 44px !important;
  height: 44px !important;
  background: var(--gold) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all var(--tr) !important;
  z-index: 9999 !important;
  box-shadow: 0 4px 15px rgba(197,165,102,0.3) !important;
}
#wib-back-top.visible { opacity: 1 !important; visibility: visible !important; }
#wib-back-top:hover { background: var(--gold-dark) !important; }
#wib-back-top i { font-size: 1.4rem !important; color: var(--white) !important; }

/* ==========================================================================
   HAMBURGER ICON OPEN STATE
   ========================================================================== */
#menu-icon.is-open i { transform: rotate(90deg); transition: transform 0.3s ease; }

/* ==========================================================================
   ███ MOBILE STYLES ███
   ========================================================================== */

/* ==========================================================================
   SEARCH NA ZŁOTYM PASKU — tylko desktop (>= 768px)
   ========================================================================== */
@media (min-width: 768px) {
  /* Ukryj wyszukiwarkę z białego paska header-top */
  .header-top #search_widget,
  .header-top .search-widget,
  .header-top-right #search_widget {
    display: none !important;
  }

  /* Przesuń search absolutnie do złotego paska — lewa strona */
  #header {
    position: relative !important;
  }
  #search_widget {
    position: absolute !important;
    top: 0 !important;
    left: 15px !important;
    height: 50px !important;   /* = min-height header-nav */
    display: flex !important;
    align-items: center !important;
    z-index: 500 !important;
    width: 260px !important;
  }
  .wib-search-form,
  #search_widget form {
    height: 34px !important;
    border-color: rgba(255,255,255,0.45) !important;
    background: rgba(255,255,255,0.12) !important;
  }
  .wib-search-form:hover,
  .wib-search-form:focus-within,
  #search_widget form:hover,
  #search_widget form:focus-within {
    border-color: rgba(255,255,255,0.9) !important;
    background: rgba(255,255,255,0.2) !important;
  }
  .wib-search-form input,
  #search_widget form input[type=text] {
    color: var(--white) !important;
    width: 180px !important;
  }
  .wib-search-form input::placeholder,
  #search_widget form input::placeholder {
    color: rgba(255,255,255,0.7) !important;
  }
  .wib-search-form button,
  #search_widget form button[type=submit] {
    background: rgba(255,255,255,0.18) !important;
    border-left: 1px solid rgba(255,255,255,0.35) !important;
  }
  .wib-search-form button i,
  #search_widget form button i {
    color: var(--white) !important;
  }
}

/* --- TABLET 991px --- */
@media (max-width: 991px) {
  .header-top-right { flex-wrap: wrap !important; }
  #_desktop_logo { padding: 18px 0 10px !important; }
  .products-section-title { font-size: 1.8rem !important; }
  #header .top-menu a[data-depth="0"], #top-menu > li > a { padding: 14px 14px !important; font-size: 0.72rem !important; letter-spacing: 0.1em !important; }
}

/* ==========================================================================
   MOBILE MENU — wib-hidden klasa (dodawana przez main.js)
   ========================================================================== */
/* Ukryj mobilne menu domyślnie: przez klasę wib-hidden / i bez niej na mobile */
@media (max-width: 991px) {
  #mobile_top_menu_wrapper {
    display: none !important;
  }
  #mobile_top_menu_wrapper.is-open,
  #mobile_top_menu_wrapper:not(.wib-hidden) {
    display: block !important;
  }
  #mobile_top_menu_wrapper.wib-hidden {
    display: none !important;
  }
}

/* --- MOBILE 767px --- */
@media (max-width: 767px) {

  /* === TOP BAR MOBILE — DWIE LINIE ===
     Linia 1: białe tło — LOGO (widoczne bez kolizy ze złotymi elementami logo)
     Linia 2: złote tło — hamburger | spacja | konto | koszyk
  */
  #header .header-nav, .header-nav {
    padding: 0 !important;
    overflow: visible !important;
  }

  .hidden-md-up.text-sm-center.mobile,
  .header-nav .mobile {
    display: flex !important;
    flex-wrap: wrap !important;       /* kluczowe: pozwala na 2 linie */
    align-items: center !important;
    width: 100% !important;
    padding: 0 !important;
  }

  /* LINIA 1: Logo — biała belka na pełnej szerokości */
  #_mobile_logo {
    order: 0 !important;
    flex: 0 0 100% !important;        /* pełna szerokość = własna linia */
    width: 100% !important;
    text-align: center !important;
    background: var(--white) !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--gray-light) !important;
  }
  #_mobile_logo img.logo { max-height: 45px !important; }

  /* LINIA 2: hamburger + konto + koszyk — złote tło */
  #menu-icon {
    order: 1 !important;
    flex-shrink: 0 !important;
    padding: 10px 14px !important;
  }
  #menu-icon i {
    color: var(--white) !important;
    font-size: 1.6rem !important;
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
  }

  /* Spacja między hamburgerem a ikonami po prawej */
  .header-nav .mobile > .clearfix,
  .header-nav .mobile > [class*="col"]:not(#menu-icon):not(#_mobile_logo):not(#_mobile_user_info):not(#_mobile_cart) {
    display: none !important;
  }

  /* Wypchnij ikony konta i koszyka na prawą stronę złotej belki */
  #_mobile_user_info {
    order: 2 !important;
    flex: 1 !important;               /* zajmuje wolną przestrzeń → pchnie koszyk w prawo */
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding-right: 6px !important;
  }
  #_mobile_user_info i {
    color: var(--white) !important;
    font-size: 1.4rem !important;
  }

  #_mobile_cart {
    order: 3 !important;
    flex-shrink: 0 !important;
    padding: 10px 14px 10px 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  #_mobile_cart i { color: var(--white) !important; font-size: 1.4rem !important; }
  #_mobile_cart .cart-products-count { font-size: 0.5rem !important; padding: 0 3px !important; }
  #_mobile_cart a, #_mobile_cart span {
    color: var(--white) !important;
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
  }

  .header-nav .clearfix { display: none !important; }

  /* === MOBILE MENU (kontrolowany przez main.js) === */
  #mobile_top_menu_wrapper {
    background: var(--white);
    border-bottom: 2px solid var(--gold);
    width: 100%;
  }
  #mobile_top_menu_wrapper .top-menu { flex-direction: column; border: none; width: 100%; }
  #mobile_top_menu_wrapper .top-menu > li { border-bottom: 1px solid var(--gray-light); }
  #mobile_top_menu_wrapper .top-menu a { display: block !important; padding: 14px 20px !important; font-size: 0.82rem !important; color: var(--black) !important; letter-spacing: 0.1em !important; text-transform: uppercase !important; }
  #mobile_top_menu_wrapper .top-menu a:hover { color: var(--gold) !important; background: var(--cream) !important; }
  #mobile_top_menu_wrapper .top-menu a::after { display: none !important; }

  /* === HEADER DESKTOP UKRYTY === */
  .header-top { padding: 0 !important; }

  /* === SEARCH MOBILE — full width z poprawną lupką === */
  /* Na mobile search jest w header-top (biały obszar), przywracamy display */
  #search_widget {
    position: static !important;      /* cofnij absolute z desktop */
    margin: 10px 15px !important;
    width: calc(100% - 30px) !important;
    height: auto !important;
    display: block !important;
  }
  .wib-search-form,
  #search_widget form {
    width: 100% !important;
    height: 44px !important;          /* explicit height na mobile */
    background: var(--cream) !important;
    border: 1px solid var(--gray-light) !important;
    display: flex !important;
    align-items: stretch !important;  /* rozciąga dzieci */
  }
  .wib-search-form input,
  #search_widget form input[type=text] {
    flex: 1 !important;
    color: var(--black) !important;
    font-size: 0.9rem !important;
    padding: 0 12px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
  }
  .wib-search-form button,
  #search_widget form button[type=submit] {
    background: var(--gold) !important;
    width: 44px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    align-self: auto !important;  /* reset align-self z desktop */
    border: none !important;
    cursor: pointer !important;
  }
  .wib-search-form button i,
  #search_widget form button i {
    color: var(--white) !important;
    font-size: 1.2rem !important;
  }

  /* === CAROUSEL MOBILE === */
  #carousel .caption h2 { font-size: 1.2rem !important; }
  #carousel .caption { padding: 15px 20px !important; }
  #carousel .caption .caption-description { display: none !important; }

  /* === PRODUCTS MOBILE === */
  .products-section-title { font-size: 1.4rem !important; margin-bottom: 25px !important; }
  .featured-products, section.featured-products { padding: 35px 0 !important; }
  .product-miniature { margin-bottom: 20px !important; }
  .product-miniature .product-title a { font-size: 0.8rem !important; }
  .product-miniature .price { font-size: 0.9rem !important; }

  /* === PRODUCT PAGE MOBILE === */
  .product-information h1.h1 { font-size: 1.6rem !important; }
  .product-prices .current-price span.price { font-size: 1.3rem !important; }
  .product-add-to-cart .add-to-cart, .add-to-cart { width: 100% !important; padding: 14px !important; }
  .tabs .nav-tabs .nav-link { padding: 10px 12px !important; font-size: 0.68rem !important; }

  /* === CATEGORY MOBILE === */
  .block-category h1 { font-size: 1.6rem !important; margin: 15px 0 !important; }

  /* === FOOTER MOBILE === */
  #footer { padding: 35px 15px 20px !important; margin-top: 40px !important; }
  #footer h3 { font-size: 0.68rem !important; margin-bottom: 15px !important; }

  /* === BREADCRUMBS MOBILE === */
  .breadcrumb { font-size: 0.65rem !important; }

  /* === BACK TO TOP MOBILE === */
  #wib-back-top { bottom: 20px !important; right: 15px !important; width: 38px !important; height: 38px !important; }
}

/* --- MAŁY TELEFON 400px --- */
@media (max-width: 400px) {
  #_mobile_logo img.logo { max-height: 30px !important; }
  #menu-icon i { font-size: 1.3rem !important; }
  .products-section-title { font-size: 1.2rem !important; }
  .product-information h1.h1 { font-size: 1.4rem !important; }
  #carousel .caption h2 { font-size: 1rem !important; }
}
