/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=Sacramento&family=Anton&family=Rubik:wght@400;600;700;800&family=Assistant:wght@400;500;600;700&display=swap');

/* ===== VARIABLES ===== */
:root {
  /* Colors */
  --cream:        #f3f0ec;
  --brown-dark:   #36271d;
  --taupe:        #d2cabf;
  --taupe-light:  #e8e3dc;
  --taupe-dark:   #9e948a;
  --white:        #ffffff;
  --text-muted:   #7a6e65;
  --border:       #ddd8d0;

  /* Fonts */
  --font-logo:    'Cormorant Garamond', Georgia, serif; /* לוגו — כמו במקור */
  --font-script:  'Sacramento', cursive;                /* Dream Avenue alt */
  --font-heading: 'Rubik', 'Assistant', sans-serif;     /* Geometra Bold alt — Hebrew headings */
  --font-body:    'Assistant', sans-serif;              /* Hebrew body */
  --font-atmo:    'Anton', sans-serif;                  /* Atmosphere background text */

  /* Radius */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px  rgba(54, 39, 29, 0.07);
  --shadow-md: 0 4px 20px rgba(54, 39, 29, 0.11);
  --shadow-lg: 0 8px 40px rgba(54, 39, 29, 0.16);

  --transition: all 0.25s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { direction: rtl; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--brown-dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-wrap img { height: 46px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text .brand-name {
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 600;
  color: var(--brown-dark);
  letter-spacing: 0.02em;
}
.logo-text .brand-sub {
  font-size: 11px;
  color: var(--taupe-dark);
  letter-spacing: 0.03em;
  font-family: var(--font-body);
}
.header-nav { display: flex; gap: 28px; list-style: none; }
.header-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--brown-dark);
  opacity: 0.7;
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
  font-family: var(--font-body);
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1.5px;
  background: var(--brown-dark);
  transition: width 0.25s ease;
}
.header-nav a:hover { opacity: 1; }
.header-nav a:hover::after { width: 100%; }
.header-nav a.active { opacity: 1; }
.header-nav a.active::after { width: 100%; }

/* ===== SEARCH TOGGLE BUTTON ===== */
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brown-dark);
  padding: 8px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.search-toggle:hover {
  background: var(--taupe-light);
  color: var(--brown-dark);
}
.search-toggle.active {
  background: var(--brown-dark);
  color: var(--white);
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: sticky;
  top: 72px;
  z-index: 99;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.search-overlay.open {
  max-height: 120px;
}
.search-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 14px 24px;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 10px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-input-wrap:focus-within {
  border-color: var(--brown-dark);
  box-shadow: 0 0 0 3px rgba(54, 39, 29, 0.08);
}
.search-icon-inner {
  color: var(--taupe-dark);
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--brown-dark);
  outline: none;
  min-width: 0;
}
.search-input::placeholder { color: var(--taupe-dark); }
.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--taupe-dark);
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 50%;
  line-height: 1;
  transition: var(--transition);
  display: none;
}
.search-clear.visible { display: block; }
.search-clear:hover { background: var(--taupe-light); color: var(--brown-dark); }
.search-results-info {
  font-size: 13px;
  color: var(--taupe-dark);
  margin-top: 6px;
  padding: 0 4px;
  min-height: 18px;
  font-family: var(--font-body);
}
.search-results-info .highlight { color: var(--brown-dark); font-weight: 700; }

/* ===== SEARCH DROPDOWN (live results) ===== */
/* Appended to <body> via JS → position:fixed escapes all overflow:hidden parents */
.search-dropdown {
  position: fixed;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 8px 32px rgba(54, 39, 29, 0.13);
  max-height: 400px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
}
.search-dropdown.open { display: block; }
.search-drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--taupe-light);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.search-drop-item:last-child { border-bottom: none; }
.search-drop-item:hover { background: var(--cream); }
.search-drop-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  background: var(--taupe-light);
}
.search-drop-info { flex: 1; min-width: 0; }
.search-drop-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--brown-dark);
  font-family: var(--font-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-drop-cat {
  font-size: 12px;
  color: var(--taupe-dark);
  margin-top: 2px;
  font-family: var(--font-body);
}
.search-drop-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.search-drop-empty {
  padding: 16px;
  text-align: center;
  color: var(--taupe-dark);
  font-size: 14px;
  font-family: var(--font-body);
}
/* Search active — hide non-matching cards */
.product-card.search-hidden {
  display: none !important;
}
/* Empty section message */
.search-empty-msg {
  color: var(--taupe-dark);
  font-size: 14px;
  padding: 12px 0;
  display: none;
}
.search-empty-msg.visible { display: block; }

/* ===== HERO ===== */
.hero {
  background: #ede9e2;
  overflow: hidden;
  position: relative;
}
/* Atmosphere text behind hero */
.hero::before {
  content: 'WISHLIST';
  font-family: var(--font-atmo);
  font-size: clamp(80px, 14vw, 180px);
  color: var(--taupe);
  opacity: 0.18;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.06em;
  z-index: 0;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.hero-content { flex: 1; max-width: 480px; padding-bottom: 56px; }
.hero-tag {
  display: inline-block;
  background: var(--brown-dark);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: 20px;
  font-family: var(--font-body);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--brown-dark);
  margin-bottom: 8px;
}
.hero-title-script {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  color: var(--brown-dark);
  margin-top: 0;
}
.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.75;
  font-weight: 400;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brown-dark);
  color: var(--cream);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--r-full);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  font-family: var(--font-body);
}
.hero-cta:hover {
  background: #1e160f;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.hero-image {
  flex: 0 0 auto;
  width: 340px;
  max-width: 40%;
  align-self: flex-end;
}
.hero-image img {
  width: 100%;
  object-fit: contain;
  display: block;
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px;
  z-index: 90;
}
.tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-inner::-webkit-scrollbar { display: none; }
.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 15px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  font-family: var(--font-body);
}
.tab-btn .tab-icon { font-size: 15px; }
.tab-btn:hover { color: var(--brown-dark); }
.tab-btn.active {
  color: var(--brown-dark);
  border-bottom-color: var(--brown-dark);
  font-weight: 700;
}

/* ===== SECTION ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--brown-dark);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 2.5px;
  background: var(--taupe);
  margin-top: 7px;
  border-radius: 2px;
}
.section-link {
  font-size: 13px;
  color: var(--taupe-dark);
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
  font-family: var(--font-body);
}
.section-link:hover { color: var(--brown-dark); }

/* ===== SORT BAR ===== */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sort-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--taupe-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sort-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sort-btn {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  white-space: nowrap;
}
.sort-btn:hover {
  border-color: var(--brown-dark);
  color: var(--brown-dark);
}
.sort-btn.active {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: var(--cream);
}

/* ===== PRODUCT GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--taupe);
}
.card-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--taupe-light);
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  /* hide broken-image icon while placeholder loads */
  color: transparent;
}
.product-card:hover .card-image-wrap img {
  transform: scale(1.05);
}
.card-badge {
  position: absolute;
  top: 11px;
  right: 11px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
  font-family: var(--font-body);
}
.card-badge.new  { background: var(--brown-dark); color: var(--cream); }
.card-badge.sale { background: #b83232; color: #fff; }
.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.card-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--taupe-dark);
  font-family: var(--font-body);
}
.card-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 11px;
  color: var(--taupe-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-price-wrap { display: flex; flex-direction: column; gap: 1px; }
.card-price {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--brown-dark);
}
.card-price-note {
  font-size: 9px;
  color: var(--taupe-dark);
  line-height: 1.3;
  max-width: 110px;
}
.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--brown-dark);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  white-space: nowrap;
}
.card-btn:hover { background: #1e160f; transform: scale(1.04); }

/* ===== CATEGORY SECTION ===== */
.category-section { border-top: 1px solid var(--border); }
.category-section:first-child { border-top: none; }

/* ===== PROMO BANNER ===== */
.promo-banner {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 32px 24px;
  overflow: hidden;
  position: relative;
  text-align: center;
}
.promo-banner::before {
  content: 'THE WISHLIST';
  font-family: var(--font-atmo);
  font-size: clamp(60px, 12vw, 140px);
  color: rgba(255,255,255,0.05);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.08em;
}
.promo-text {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 48px 24px 28px;
  margin-top: 80px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.footer-brand .brand-name {
  font-family: var(--font-script);
  font-size: 30px;
  margin-bottom: 6px;
}
.footer-brand .brand-sub {
  font-size: 13px;
  opacity: 0.55;
  font-family: var(--font-body);
}
.footer-note {
  font-size: 12px;
  opacity: 0.45;
  text-align: center;
  margin-top: 22px;
  line-height: 1.7;
  font-family: var(--font-body);
}

/* ============================
   PRODUCT PAGE
   ============================ */
.product-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}
.product-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Gallery */
.product-images {
  position: sticky;
  top: 100px;
}
.main-image {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--taupe-light);
  margin-bottom: 12px;
  cursor: zoom-in;
}
.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  transform-origin: center center;
  color: transparent;
}
.main-image:hover img { transform: scale(1.08); }

/* Gallery arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.88);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--brown-dark);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.gallery-arrow:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.08);
}
.gallery-arrow.prev { right: 10px; }
.gallery-arrow.next { left: 10px; }

.thumb-row {
  display: flex;
  gap: 10px;
}
.thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  background: var(--taupe-light);
  flex-shrink: 0;
}
.thumb.active, .thumb:hover { border-color: var(--brown-dark); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 18, 10, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  cursor: default;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.3); }
.lightbox-arrow.prev { right: 20px; }
.lightbox-arrow.next { left: 20px; }

/* Product info */
.product-info { padding-top: 8px; }
.product-category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--taupe-dark);
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.product-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--brown-dark);
  margin-bottom: 20px;
}
.product-price-wrap {
  background: var(--taupe-light);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}
.product-price {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  color: var(--brown-dark);
}
.product-price-note {
  font-size: 11px;
  color: var(--taupe-dark);
  line-height: 1.5;
  max-width: 150px;
  font-family: var(--font-body);
}
.product-opening {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 22px;
  font-weight: 400;
  font-family: var(--font-body);
}
.product-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 26px;
}
.product-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--brown-dark);
  line-height: 1.5;
  font-family: var(--font-body);
}
.product-benefits li .check {
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 1px;
}
.product-details {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-bottom: 26px;
}
.product-details-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--taupe-dark);
  margin-bottom: 10px;
  font-family: var(--font-body);
}
.product-details-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-chip {
  background: var(--taupe-light);
  border-radius: var(--r-full);
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brown-dark);
  font-family: var(--font-body);
}
.buy-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brown-dark);
  color: var(--cream);
  font-size: 16px;
  font-weight: 700;
  padding: 18px 28px;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.buy-btn:hover {
  background: #1e160f;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.buy-btn .btn-icon { font-size: 18px; }

/* Skip link — keyboard / screen reader navigation */
.skip-link {
  position: absolute;
  top: -100px;
  right: 0;
  background: var(--brown);
  color: var(--cream);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; outline: 3px solid var(--taupe); outline-offset: 2px; }

/* Floating accessibility button */
.accessibility-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  background: var(--brown);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(54,39,29,0.25);
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
  line-height: 1;
}
.accessibility-btn:hover,
.accessibility-btn:focus {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(54,39,29,0.35);
  outline: 3px solid var(--taupe);
  outline-offset: 3px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  transition: var(--transition);
  font-family: var(--font-body);
  font-weight: 600;
}
.back-link:hover { color: var(--brown-dark); }

/* ===== NAV DROPDOWN (header top) ===== */
.header-nav .has-dropdown { position: relative; }
/* Invisible bridge: keeps :hover active while mouse crosses the gap to the dropdown */
.header-nav .has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 100%;
  height: 16px;
}
.nav-drop-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brown-dark);
  opacity: 0.7;
  font-family: var(--font-body);
  padding-bottom: 2px;
  position: relative;
  transition: var(--transition);
}
.nav-drop-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1.5px;
  background: var(--brown-dark);
  transition: width 0.25s ease;
}
.nav-drop-btn:hover,
.has-dropdown:hover .nav-drop-btn { opacity: 1; }
.has-dropdown:hover .nav-drop-btn::after,
.has-dropdown.open .nav-drop-btn::after { width: 100%; }
.nav-drop-btn .nav-arrow {
  font-size: 9px;
  transition: transform 0.2s ease;
  opacity: 0.6;
  margin-top: 1px;
}
.has-dropdown:hover .nav-arrow,
.has-dropdown.open .nav-arrow { transform: rotate(180deg); opacity: 1; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  z-index: 200;
  padding: 6px 0;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown.open .nav-dropdown { display: block; }
.nav-dropdown li a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown-dark);
  opacity: 0.75;
  transition: var(--transition);
  font-family: var(--font-body);
  white-space: nowrap;
}
.nav-dropdown li a:hover { opacity: 1; background: var(--cream); }
.nav-dropdown .nav-drop-all a {
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  padding-bottom: 11px;
  font-weight: 700;
  opacity: 0.9;
}

/* ===== SUB-TABS BAR (below main tabs) ===== */
.sub-tabs {
  display: none;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 24px;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tabs.visible { display: flex; }
.sub-tab-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  font-family: var(--font-body);
}
.sub-tab-btn:hover { color: var(--brown-dark); }
.sub-tab-btn.active {
  color: var(--brown-dark);
  border-bottom-color: var(--brown-dark);
  font-weight: 700;
}
.tab-btn.has-sub .tab-sub-arrow {
  font-size: 9px;
  opacity: 0.5;
  margin-right: -2px;
  transition: transform 0.2s ease;
}
.tab-btn.has-sub.active .tab-sub-arrow { transform: rotate(180deg); opacity: 0.8; }

/* ===== HOME PRODUCT LIMIT (4 per section in overview) ===== */
.product-card.home-hidden { display: none; }
.category-section.show-all-products .product-card.home-hidden { display: block; }

/* ===== FOOTER CATEGORIES ===== */
.footer-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px 32px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-cat-title {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.6;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: var(--font-body);
}
.footer-cat-link {
  display: block;
  font-size: 13px;
  opacity: 0.5;
  padding: 3px 0;
  transition: var(--transition);
  font-family: var(--font-body);
  cursor: pointer;
}
.footer-cat-link:hover { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; padding-bottom: 0; }
  .hero-content { padding-bottom: 32px; max-width: 100%; }
  .hero-image { width: 260px; max-width: 70%; align-self: center; }
}
@media (max-width: 640px) {
  .header-nav { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-page-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-images { position: static; }
  .section { padding: 36px 16px; }
  .hero-inner { padding: 36px 16px 0; }
}
