/* ============================================
   beautycompare — Two-Tier Editorial Header
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
}

/* ---- Tier 1: Announcement Bar ---- */
.header-tier1 { display: none !important; }

/* Scroll: hide Tier 1 */


.tier1-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tier1-left,
.tier1-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-tier1 a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.header-tier1 a:hover { color: var(--accent); }
.tier1-sep { color: var(--border); }

/* ---- Tier 2: Main Navigation ---- */
.header-tier2 {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.header-tier2 .container {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo-img {
  height: 200px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

/* Search */
.header-search {
  position: relative;
  max-width: 460px;
  width: 100%;
  margin: 0 0 0 auto;
}
.search-input {
  width: 100%;
  padding: 10px 48px 10px 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,163,115,.15);
  background: var(--white);
}
.search-input::placeholder { color: var(--text-light); }
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}
.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--accent); }

/* Right side: Nav + Icons */
.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-right: 8px;
}
.nav-link {
  padding: 8px 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  white-space: nowrap;
  position: relative;
}
.nav-link:hover { color: var(--accent); }
.nav-link.sale {
  color: var(--accent);
  font-weight: 700;
}
.nav-link.sale::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Icon Buttons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.icon-btn {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.icon-btn:hover { background: var(--bg-card); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bag-badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 16px; height: 16px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: .58rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Tier 3: Kategorie-Navigation ---- */
.header-tier3 {
  border-top: 0.5px solid var(--border);
  padding: 6px 0;
}
.cat-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.cat-nav-link {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: .06em;
  color: var(--text);
  padding: 14px 28px;
  transition: color var(--transition);
  display: block;
}
.cat-nav-link:hover { color: var(--accent); }
.cat-nav-sale {
  color: var(--accent);
  font-weight: 700;
}

/* ---- Hamburger Button ---- */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text);
  padding: 0;
  flex-shrink: 0;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Mobile Search Bar (below Tier 2, hidden on desktop) ---- */
.mobile-search-bar {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}
.mobile-search-bar .header-search {
  max-width: 100%;
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .header-nav { display: none; }
}

@media (max-width: 900px) {
  /* Tier 1: still visible but compressed */
  .header-tier1 { display: none !important; }

  /* Tier 2: hamburger / logo / icons */
  .header-tier2 { padding: 10px 0; }
  .header-tier2 .container {
    grid-template-columns: auto 1fr auto;
    gap: 0;
  }

  /* Show hamburger */
  .mobile-menu-btn { display: flex; }

  /* Logo: center in its column */
  .header-logo {
    justify-content: center;
    width: 100%;
  }
  .header-logo-img {
    height: 120px;
    max-width: 200px;
  }

  /* Hide desktop search inside tier2 */
  .header-search { display: none; }

  /* Show mobile search bar below tier2 */
  .mobile-search-bar { display: block; }

  /* Hide tier3 category nav */
  .header-tier3 { display: none; }

  /* Hide compare icon on mobile */
  .compare-btn { display: none !important; }
}

@media (max-width: 600px) {
  .header-tier1 { display: none !important; }
  .search-btn { display: none; }
  .mobile-search-bar .search-input { padding: 9px 16px 9px 40px; }
}

/* ====================================================
   Slide Menu (Mobile)
   ==================================================== */

.slide-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 1100;
  transition: background 0.2s ease;
}
.slide-overlay.open {
  display: block;
  background: rgba(0,0,0,0.5);
}

.slide-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--white);
  z-index: 1200;
  transform: translateX(-280px);
  transition: transform 0.25s ease-out;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,.12);
}
.slide-menu.open {
  transform: translateX(0);
}

/* Close button */
.slide-menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.slide-menu-close:hover { background: var(--bg-card); }
.slide-menu-close svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* Logo */
.slide-menu-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 28px 20px 16px;
}
.slide-menu-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Rose-gold divider */
.slide-menu-divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 8px;
  opacity: .7;
}

/* Nav links */
.slide-menu-nav,
.slide-menu-secondary {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.slide-menu-nav a,
.slide-menu-secondary a {
  display: block;
  padding: 13px 20px;
  font-size: .95rem;
  font-family: var(--font-sans);
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.slide-menu-nav a:hover,
.slide-menu-secondary a:hover {
  background: #faf6f0;
  color: var(--accent);
}
.slide-menu-sale {
  color: var(--accent) !important;
  font-weight: 700;
}

/* Divider line */
.slide-menu-hr {
  border: none;
  border-top: 1px solid #e5e0d8;
  margin: 4px 0;
}

/* Secondary nav (smaller) */
.slide-menu-secondary a {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Footer info */
.slide-menu-footer {
  margin-top: auto;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #e5e0d8;
}
.slide-menu-footer span {
  font-size: .72rem;
  color: var(--text-light);
}

/* PlusBrands Banner im Header */
.header-plusbrands-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin: 0 32px;
}

.header-plusbrands-banner a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 1px solid #c9a96e;
  border-radius: 6px;
  padding: 10px 24px;
  text-decoration: none;
  transition: all 0.25s ease;
  width: 100%;
  justify-content: center;
}

.header-plusbrands-banner a:hover {
  background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
  box-shadow: 0 4px 16px rgba(201,169,110,0.25);
}

.pb-banner-star { color: #c9a96e; font-size: 14px; }

.pb-banner-text {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.pb-banner-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a96e;
  font-weight: 400;
}

.pb-banner-sub {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
}

/* PlusBrands Banner */
.pb-banner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
  margin: 0 16px;
}
.pb-banner:hover { background: var(--bg-card); }
.pb-banner-products { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pb-banner-img {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pb-banner-img img { width: 100%; height: 100%; object-fit: cover; }
.pb-banner-badge {
  position: absolute; bottom: 0; right: 0;
  background: #d4a373; color: white;
  font-size: 7px; font-weight: 700;
  padding: 1px 3px; border-radius: 3px;
}
.pb-banner-divider {
  width: 0.5px; height: 28px;
  background: var(--border);
  flex-shrink: 0; margin: 0 8px;
}
.pb-banner-center {
  flex: 1; display: flex; align-items: center;
  justify-content: center; gap: 12px;
}
.pb-banner-title {
  font-size: 12px; font-weight: 500;
  color: var(--text); letter-spacing: 2px;
  text-transform: uppercase; white-space: nowrap;
}
.pb-banner-sub {
  font-size: 9px; color: var(--text-muted);
  white-space: nowrap; letter-spacing: 0.5px;
}
.pb-banner-btn {
  display: flex; align-items: center; gap: 4px;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px; white-space: nowrap;
  font-size: 10px; color: var(--text-muted);
  flex-shrink: 0;
}
