/* ============================================
   HEADER 2026 — New header design
   Loaded AFTER main.css, overrides via cascade
   Scoped: .header-2026
   ============================================ */

/* --- Hide old sub-header & main-header --- */
.header-2026 .sub-header,
.header-2026 .main-header,
.header-2026 .close {
  display: none !important;
}

/* --- Main header --- */
.header-2026 {
  background-color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 9999;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

/* --- Header bar --- */
.header-2026 .header-bar {
  display: flex;
  align-items: center;
  height: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 12px;
}

/* --- Logo --- */
.header-2026 #logo {
  flex-shrink: 0;
  z-index: 10001;
  position: relative;
}

.header-2026 #logo > a {
  display: flex;
  align-items: center;
}

.header-2026 #logo img {
  height: 40px;
  width: auto;
}

/* --- Language switcher (in header bar, tablet+) --- */
.header-2026 .header-lang {
  display: none;
  align-items: center;
  flex-shrink: 0;
}

.header-2026 .header-lang #language {
  display: flex !important;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.header-2026 .header-lang #language ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-2026 .header-lang #language a {
  color: #333;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  padding: 2px 5px;
  border-radius: 4px;
  transition: color 0.2s;
}

.header-2026 .header-lang #language a:hover {
  color: #800020;
}

.header-2026 .header-lang #language a.lang-active {
  background-color: #800020;
  color: #fff;
  border-radius: 4px;
  padding: 2px 5px;
  width: auto;
  margin-right: 0;
}

/* --- Horizontal categories (desktop only, hidden by default) --- */
.header-2026 .header-categories {
  display: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.header-2026 .header-categories ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.header-2026 .header-categories li {
  white-space: nowrap;
  border: none;
}

.header-2026 .header-categories li:first-child {
  border: none;
}

.header-2026 .header-categories li > a {
  color: #333;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background-color 0.2s;
  display: block;
  line-height: 1.4;
}

.header-2026 .header-categories li > a:hover {
  color: #800020;
  background-color: rgba(128, 0, 32, 0.06);
}

/* --- Icon group --- */
.header-2026 .header-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Unified icon button style */
.header-2026 .header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #333;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
}

.header-2026 .header-icon-btn:hover {
  color: #800020;
}

.header-2026 .header-icon-btn svg {
  display: block;
}

/* Cart: hide old cart.tpl icon, keep counter visible */
.header-2026 .header-icon-btn #cart {
  position: static;
  display: inline;
}

.header-2026 .header-icon-btn #cart > button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: inline;
  pointer-events: none;
}

.header-2026 .header-icon-btn #cart > button > img {
  display: none;
}

.header-2026 .header-icon-btn #cart-total {
  position: absolute;
  top: 0;
  right: -4px;
  background-color: #800020;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  padding: 0 4px;
  font-family: 'Open Sans', sans-serif;
}

/* --- Burger button --- */
.header-2026 .burger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  cursor: pointer;
  z-index: 10001;
  position: relative;
  background: none;
  border: none;
  padding: 0;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.header-2026 .burger-btn:hover {
  background-color: rgba(128, 0, 32, 0.06);
}

.header-2026 .burger-icon {
  width: 20px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.header-2026 .burger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Burger → X animation */
.header-2026 #overlay-toggle:checked ~ .header-bar .burger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.header-2026 #overlay-toggle:checked ~ .header-bar .burger-icon span:nth-child(2) {
  opacity: 0;
}
.header-2026 #overlay-toggle:checked ~ .header-bar .burger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- Hidden checkboxes --- */
.header-2026 #overlay-toggle,
.header-2026 #search-toggle {
  position: absolute;
  left: -99999px;
  visibility: hidden;
}

/* --- Search bar (slides down) --- */
.header-2026 .header-search-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #fff;
  z-index: 10002;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.header-2026 #search-toggle:checked ~ .header-search-bar {
  transform: translateY(0);
}

.header-2026 .header-search-bar form {
  display: flex;
  align-items: center;
  width: 90%;
  max-width: 600px;
  gap: 8px;
}

.header-2026 .header-search-input {
  flex: 1;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 15px;
  font-family: 'Open Sans', sans-serif;
  background-color: #fafafa;
  outline: none;
}

.header-2026 .header-search-input:focus {
  border-color: #800020;
  background-color: #fff;
}

.header-2026 .header-search-submit {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.header-2026 .header-search-close {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.header-2026 .header-search-close:hover svg {
  stroke: #800020;
}
/* Old search hide rule removed - now search bar uses id="search" for livesearch compatibility */

/* --- Overlay backdrop --- */
.header-2026 .header-overlay-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.header-2026 #overlay-toggle:checked ~ .header-overlay-backdrop {
  opacity: 1;
  visibility: visible;
}

/* --- Overlay panel --- */
.header-2026 .header-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 60vw;
  height: 100vh;
  z-index: 10000;
  background-color: #fff;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: grid;
  grid-template-columns: 2fr 1.3fr;
  padding-top: 60px;
}

.header-2026 #overlay-toggle:checked ~ .header-overlay {
  transform: translateX(0);
}

/* --- Overlay: mobile language (visible <768px only, handled by media query) --- */
.header-2026 .overlay-lang-mobile {
  display: none;
  grid-column: 1 / -1;
  padding: 12px 24px;
  }

.header-2026 .overlay-lang-mobile #language {
  display: flex !important;
}

.header-2026 .overlay-lang-mobile #language ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-2026 .overlay-lang-mobile #language a {
  color: #333;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.header-2026 .overlay-lang-mobile #language a:hover {
  color: #800020;
}

.header-2026 .overlay-lang-mobile #language a.lang-active {
  width: auto;
  background-color: #800020;
  color: #fff;
}


/* --- Overlay: Categories (left) --- */
.header-2026 .overlay-categories {
  padding: 24px 32px;
}

.header-2026 .overlay-categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-2026 .overlay-categories li {
  border: none;
}

.header-2026 .overlay-categories li:first-child {
  border: none;
}

.header-2026 .overlay-categories li > a {
  display: block;
  padding: 9px 0;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.2s, padding-left 0.2s;
  line-height: 1.5;
  text-transform: uppercase;
  text-align: left;
}

.header-2026 .overlay-categories li > a:hover {
  color: #800020;
  padding-left: 8px;
}

.header-2026 .overlay-categories li:last-child > a {
  border-bottom: none;
}

.header-2026 .overlay-categories .overlay-divider {
  height: 0;
  margin: 8px 0;
}

.header-2026 .overlay-categories .overlay-special a {
  color: #800020;
  font-weight: 700;
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
}

.header-2026 .overlay-categories .overlay-special a:hover {
  color: #a3002e;
}

/* --- Overlay: Info panel (right) --- */
.header-2026 .overlay-info {
  padding: 24px 24px;
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.header-2026 .overlay-info-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.header-2026 .overlay-info-links a {
  display: block;
  padding: 10px 0;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  transition: color 0.2s;
  line-height: 1.5;
}

.header-2026 .overlay-info-links a:last-child {
  border-bottom: none;
}

.header-2026 .overlay-info-links a:hover {
  color: #800020;
}

.header-2026 .overlay-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header-2026 .overlay-contacts a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 16px;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  transition: color 0.2s;
  word-break: normal;
}

.header-2026 .overlay-contacts a:hover {
  color: #800020;
}

.header-2026 .overlay-contacts svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.header-2026 .overlay-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.header-2026 .overlay-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #eee;
  color: #555;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.header-2026 .overlay-social a:hover {
  background-color: #800020;
  color: #fff;
}

.header-2026 .overlay-social svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   MOBILE (default — <768px)
   ============================================ */

/* Mobile header bar: logo center, icons+burger right */
@media (max-width: 767px) {
  .header-2026 .header-bar {
    justify-content: space-between;
    padding: 0 12px;
    gap: 8px;
  }

  .header-2026 #logo {
    position: absolute;
    left: 15%;
    transform: translateX(-50%);
  }

  .header-2026 #logo img {
    height: 34px;
  }

  /* Language hidden in header on mobile */
  .header-2026 .header-lang {
    display: none !important;
  }

  /* Categories hidden on mobile */
  .header-2026 .header-categories {
    display: none !important;
  }

  /* Push icons+burger to the right */
  .header-2026 .header-icons {
    margin-left: auto;
    gap: 8px;
  }

  .header-2026 .header-icon-btn {
    width: 32px;
    height: 32px;
  }

  .header-2026 .header-icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .header-2026 .burger-btn {
    width: 32px;
    height: 32px;
  }

  /* Overlay: full width, stacked */
  .header-2026 .header-overlay {
    width: 100%;
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .header-2026 .overlay-categories {
    padding: 20px 24px;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
  }

  .header-2026 .overlay-info {
    padding: 20px 24px;
  }

  .header-2026 .overlay-lang-mobile {
    display: flex;
  }

  .header-2026 .header-search-bar {
    height: 60px;
  }
}

/* ============================================
   TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  .header-2026 .header-bar {
    height: 70px;
    padding: 0 24px;
    gap: 16px;
  }

  .header-2026 .header-lang {
    display: none;
  }

  .header-2026 #logo img {
    height: 48px;
  }

  /* Language visible in overlay on tablet (hidden in header-bar) */

  .header-2026 .header-search-bar {
    height: 70px;
  }

  .header-2026 .header-overlay {
    padding-top: 70px;
    width: 85vw;
    grid-template-columns: 1.5fr 1fr;
  }

  .header-2026 .overlay-categories li > a {
    font-size: 16px;
    padding: 8px 0;
  }

  .header-2026 .overlay-categories .overlay-special a {
    font-size: 16px;
  }
}

/* Tablet: language stays hidden in overlay (saves vertical space) */
@media (min-width: 1024px) {
  .header-2026 .overlay-lang-mobile {
    display: none !important;
  }
}

/* ============================================
   DESKTOP (1024px+) — show horizontal categories
   ============================================ */
@media (min-width: 1024px) {
  .header-2026 .header-bar {
    height: 80px;
    gap: 20px;
  }

  .header-2026 #logo img {
    height: 54px;
  }

  .header-2026 .header-lang {
    display: flex;
  }

  .header-2026 .header-categories {
    display: block;
  }

  .header-2026 .header-search-bar {
    height: 80px;
  }

  .header-2026 .header-overlay {
    padding-top: 100px;
    width: 60vw;
  }
}

/* ============================================
   LARGE DESKTOP (1280px+)
   ============================================ */
@media (min-width: 1280px) {
  .header-2026 #logo img {
    height: 60px;
  }

  .header-2026 .header-categories li > a {
    font-size: 14px;
    padding: 5px 10px;
  }

  .header-2026 .header-overlay {
    width: 55vw;
  }
}

/* ============================================
   Content offset for fixed header
   ============================================ */
body .header-2026 ~ main,
body .header-2026 ~ main #content {
  padding-top: 30px;
}

@media (min-width: 768px) {
  body .header-2026 ~ main,
  body .header-2026 ~ main #content {
    padding-top: 40px;
  }
}


/* Hashtag badge — TikTok style (inside .product-badges) */
.badge-hashtag {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
}

.badge-hashtag::before {
  content: "\1F525 ";
}