/* ============================================
   ✅ Ikonka lupa a vyhledávání
============================================ */

.popup-widget.search-widget {
  z-index: 9999 !important;
  background-color: #1C1C1C !important;
  border: 1px solid #daba5b !important;
  border-radius: 0 !important;
  padding: 24px 24px 20px 24px !important;
  color: #fff !important;

  /* Úprava pozice – ne přes logo, ale pod header */
  top: var(--header-height, 60px) !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  background-image: none !important;
  backdrop-filter: none !important;
  gap: 12px;
  position: fixed !important;
}


body.search-window-visible::before,
body.popup-window-visible::before,
body.menu-window-visible::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

.popup-widget.search-widget .popup-widget-close {
  position: absolute !important;
  top: 16px !important;
  right: 20px !important;
  font-size: 24px !important;
  color: #ffffff !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  line-height: 1 !important;
  z-index: 9999 !important;
}

.popup-widget.search-widget .search-form-input-group {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  width: 100%;
  align-items: center;
  position: relative !important;
  padding-right: 50px !important;
}

.popup-widget.search-widget input[type="text"] {
  flex: 1;
  background-color: #000 !important;
  color: #fff !important;
  border: 1px solid #daba5b !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  border-radius: 0 !important;
}

.popup-widget.search-widget input::placeholder {
  color: #aaa !important;
}

.popup-widget.search-widget button[type="submit"] {
  background-color: #daba5b !important;
  color: #1C1C1C !important;
  padding: 12px 20px !important;
  border: none !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  border-radius: 0 !important;
  white-space: nowrap;
  cursor: pointer;
}

.searchWhisperer__loaderWrapper {
  position: relative !important;
  height: 140px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.searchWhisperer__loaderWrapper .loader {
  width: 64px !important;
  height: 64px !important;
  border: 5px solid #daba5b !important;
  border-top: 5px solid transparent !important;
  border-radius: 50% !important;
  animation: spinner-rotate 0.8s linear infinite !important;
  background: none !important;
  box-shadow: none !important;
}

@keyframes spinner-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* ============================================
   ✅ v mobilní verzi kolonka na psaní nahoře a tlačítko hledat dole
============================================ */
@media (max-width: 768px) {
  .popup-widget.search-widget .search-form-input-group {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding-right: 0 !important;
  }

  .popup-widget.search-widget input[type="text"],
  .popup-widget.search-widget button[type="submit"] {
    width: 100% !important;
  }
}
/* ============================================
   ✅ Velikost záhlaví a loga
============================================ */
@media (max-width: 991px) {
  .site-name img {
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }

  .site-name {
    padding: 30px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .header-top-wrapper {
    min-height: auto !important;
    padding: 20px 0 !important;
  }
}
/* ============================================
   ✅ vyresetování globálního CSS na umístění čítače kusů v košíku
============================================ */
  .cart-widget .cart-widget-product-amount {
    position: static !important;
    float: none !important;
    right: auto !important;
    top: auto !important;
    margin: 8px 0 4px 0 !important;
    display: block !important;
    width: auto !important;
    text-align: left !important;
  }
/* ============================================
   ✅ MOBIL: panel menu jen při otevření (vysoká priorita)
   – žádné display:none (kvůli JS), jen kolaps/roztažení
============================================ */
@media (max-width: 768px) {
  /* Zavřené menu: panel kolabovaný a průhledný */
  html body:not(.menu-window-visible):not(.navigation-visible):not(.top-menu-trigger-visible)
  .header-bottom-wrapper #navigation .navigation-in.menu {
    min-height: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  /* Otevřené menu: full-height pod hlavičkou */
  html body.menu-window-visible .header-bottom-wrapper #navigation .navigation-in.menu,
  html body.navigation-visible .header-bottom-wrapper #navigation .navigation-in.menu,
  html body.top-menu-trigger-visible .header-bottom-wrapper #navigation .navigation-in.menu {
    min-height: calc(100dvh - var(--header-height, 60px)) !important;
    overflow-y: auto !important;
    background-color: #1C1C1C !important;
  }

  /* Pozice kontejneru #navigation – jen když je otevřeno */
  html body:not(.menu-window-visible):not(.navigation-visible):not(.top-menu-trigger-visible)
  .header-bottom-wrapper #navigation {
    position: static !important;          /* nic nepřekrývá, žádný černý koberec */
    max-height: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  html body.menu-window-visible .header-bottom-wrapper #navigation,
  html body.navigation-visible .header-bottom-wrapper #navigation,
  html body.top-menu-trigger-visible .header-bottom-wrapper #navigation {
    position: absolute !important;
    top: 100% !important;                  /* hned pod headerem */
    left: 0 !important; right: 0 !important;
    z-index: 1000 !important;
    max-height: none !important;
    background-color: #1C1C1C !important;
  }
}

/* Když je zavřeno, schovej i barvu lišty na UL, ať nic „neprosvítá“ */
@media (max-width: 768px) {
  html body:not(.menu-window-visible):not(.navigation-visible):not(.top-menu-trigger-visible)
  .navigation-wrapper ul.menu-level-1 {
    background: transparent !important;
    border-color: transparent !important;
  }
}

/* Černý focus/hover efekt pro vyhledávání a formuláře */
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: #000 !important;
  box-shadow: 0 0 0 2px #000 !important; /* černý "ring" */
}

/* konkrétně pro vyhledávací pole */
.search-widget input:focus {
  outline: none !important;
  border-color: #000 !important;
  box-shadow: 0 0 0 2px #000 !important;
}
/* === Odstranění bílých čas u fotky v popup košíku === */
/* === POPUP KOŠÍK – odstranění bílých pruhů (PC only, FINAL TUNED) === */
@media (min-width: 1025px) {

  .cart-widget-product-image {
    position: relative !important;
    background-color: #1C1C1C !important;
    overflow: hidden !important;
  }

  /* Horní a dolní překryv */
  .cart-widget-product-image::before,
  .cart-widget-product-image::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 5;
    pointer-events: none;
  }

  /* Horní fade */
  .cart-widget-product-image::before {
    top: 0;
    height: 14px;
    background: linear-gradient(to bottom, #1C1C1C 85%, transparent 100%);
  }

  /* Dolní fade – rozšířený o pár pixelů navíc */
  .cart-widget-product-image::after {
    bottom: 0;
    height: 21px; /* zvýšeno pro jistotu – zakryje i zbytek bílého pruhu */
    background: linear-gradient(to top, #1C1C1C 92%, transparent 100%);
  }

  /* Obrázek – beze změny */
  .cart-widget-product-image img {
    position: relative;
    z-index: 2;
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .cart-widget-product-image {
    position: relative !important;
    background-color: #1C1C1C !important;
    overflow: hidden !important;
  }

  .cart-widget-product-image::before,
  .cart-widget-product-image::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 5;
    pointer-events: none;
  }

  /* Horní fade pro tablet */
  .cart-widget-product-image::before {
    top: 0;
    height: 9px; 
    background: linear-gradient(to bottom, #1C1C1C 85%, transparent 100%);
  }

  /* Dolní fade pro tablet */
  .cart-widget-product-image::after {
    bottom: 0;
    height: 8px;
    background: linear-gradient(to top, #1C1C1C 90%, transparent 100%);
  }
}
@media (max-width: 640px) {
  .cart-widget-product-image {
    position: relative !important;
    background-color: #1C1C1C !important;
    overflow: hidden !important;
  }

  .cart-widget-product-image::before,
  .cart-widget-product-image::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 5;
    pointer-events: none;
  }

  /* Horní fade pro mobil */
  .cart-widget-product-image::before {
    top: 0;
    height: 9px;
    background: linear-gradient(to bottom, #1C1C1C 80%, transparent 100%);
  }

  /* Dolní fade pro mobil */
  .cart-widget-product-image::after {
    bottom: 0;
    height: 8px;
    background: linear-gradient(to top, #1C1C1C 88%, transparent 100%);
  }
}
.header-currency-wrapper {
  position: relative;
  margin-left: 10px;
  display: flex;
  align-items: center;
  z-index: 9999;
}

/* Button */
.header-currency-wrapper button {
  background: #1C1C1C !important;
  color: #daba5b !important;
  border: 1px solid #daba5b !important;
  padding: 4px 10px !important;
  font-size: 14px !important;
}

/* DROPDOWN FIX – zarovnání DOPRAVA k tlačítku */
.header-currency-wrapper .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;    /* <<< TADY JE FIX */
  left: auto !important;  /* <<< ZRUŠÍME bootstrapové left:0 */
  background: #1C1C1C !important;
  border: 1px solid #daba5b !important;
  margin-top: 4px !important;
  z-index: 99999 !important;
  min-width: 100px !important;
}

/* Text uvnitř */
.header-currency-wrapper .dropdown-menu li a {
  color: #daba5b !important;
  padding: 10px !important;
  display: block;
}
/* Dropdown položky měny – sjednocení šířky */
.header-currency-wrapper .dropdown-menu li {
  width: 100% !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Odkazy uvnitř – musí být přes celou šířku */
.header-currency-wrapper .dropdown-menu li a {
  display: block !important;
  width: 100% !important;
  padding: 12px 14px !important;
  color: #daba5b !important;
  background: transparent !important;
  text-align: left !important;
  font-size: 15px !important;
}

/* HOVER efekt přes CELOU šířku */
.header-currency-wrapper .dropdown-menu li a:hover {
  background: rgba(218,186,91,0.15) !important;  /* jemná zlatá mlha */
  color: #fff !important;
}
