/* ================================================================
   Mi Casa Apparel — Shop Stylesheet v2
   Theme: Luxury Gold & White · Transparent Navbar Hero
================================================================ */

:root {
  --gold:        #C9A84C;
  --gold-dark:   #A07830;
  --gold-deep:   #7A5A1E;
  --gold-light:  #FDF8EE;
  --gold-mid:    #FAF0D0;
  --gold-soft:   #F5E4A8;
  --gold-glow:   rgba(201,168,76,.18);
  --charcoal:    #1A1408;
  --charcoal2:   #2C2210;
  --text:        #1C1810;
  --text2:       #4A3F2F;
  --muted:       #8A7A60;
  --faint:       #B8A88A;
  --bg:          #FAFAF8;
  --white:       #FFFFFF;
  --border:      #EDE8DF;
  --border-soft: #F5F2EC;
  --red:         #C0392B;
  --red-bg:      #FEF2F2;
  --r:           12px;
  --sh:          0 2px 16px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);
  --sh-md:       0 6px 32px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.05);
  --sh-lg:       0 12px 48px rgba(0,0,0,.14);
  --font-head:   'Cormorant Garamond', Georgia, serif;
  --font:        'DM Sans', system-ui, sans-serif;
  --nav-h:       72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ══════════════════════════════════════════════════════════════
   NAVBAR — TRANSPARENT OVER HERO, SOLID ON SCROLL
══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  transition: background .4s ease, backdrop-filter .4s ease, box-shadow .4s ease;
  /* Fully transparent — seamless with hero */
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  outline: none;
  box-shadow: none !important;
}
/* Scrolled state */
.navbar.scrolled {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  box-shadow: 0 1px 20px rgba(0,0,0,.06) !important;
  border-bottom: 1px solid rgba(237,232,223,.6) !important;
}
/* Solid state — inner pages */
.navbar.solid {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  box-shadow: 0 1px 20px rgba(0,0,0,.06) !important;
  border-bottom: 1px solid rgba(237,232,223,.6) !important;
}

.nav-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 28px; height: 100%; gap: 16px;
  overflow: visible;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { height: 44px; width: auto; transition: filter .3s; }
.navbar:not(.scrolled):not(.solid) .nav-logo img {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.15));
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-name {
  font-family: var(--font-head); font-size: 17px; font-weight: 700;
  letter-spacing: .04em; transition: color .3s;
}
.nav-logo-tag  { font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; transition: color .3s; }

/* Transparent state — gold text */
.navbar:not(.scrolled):not(.solid) .nav-logo-name { color: var(--gold-deep); }
.navbar:not(.scrolled):not(.solid) .nav-logo-tag  { color: var(--gold-dark); }
/* Scrolled/solid state — dark text */
.navbar.scrolled .nav-logo-name,
.navbar.solid    .nav-logo-name { color: var(--charcoal); }
.navbar.scrolled .nav-logo-tag,
.navbar.solid    .nav-logo-tag  { color: var(--gold-dark); }

/* Nav Links */
.nav-links {
  display: flex; align-items: center; flex: 1; justify-content: center; gap: 0;
}
.nav-links a {
  padding: 8px 13px; border-radius: 9px;
  font-size: 13px; font-weight: 500;
  letter-spacing: .02em; white-space: nowrap;
  transition: background .15s, color .15s;
  position: relative;
}
/* Transparent nav links — gold */
.navbar:not(.scrolled):not(.solid) .nav-links a { color: var(--gold-dark); font-weight: 600; }
.navbar:not(.scrolled):not(.solid) .nav-links a:hover { color: var(--gold-deep); background: rgba(201,168,76,.12); }
.navbar:not(.scrolled):not(.solid) .nav-links a.active { color: var(--gold-deep); font-weight: 700; }
/* Scrolled nav links */
.navbar.scrolled .nav-links a,
.navbar.solid    .nav-links a { color: var(--text2); }
.navbar.scrolled .nav-links a:hover,
.navbar.solid    .nav-links a:hover { color: var(--gold-dark); background: var(--gold-light); }
.navbar.scrolled .nav-links a.active,
.navbar.solid    .nav-links a.active { color: var(--gold-dark); }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.nav-icon-btn {
  width: 40px; height: 40px; border-radius: 10px; position: relative;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid transparent; background: transparent;
  transition: all .2s;
}
.nav-icon-btn .material-symbols-outlined { font-size: 21px; transition: color .2s; }
/* Transparent — gold icons */
.navbar:not(.scrolled):not(.solid) .nav-icon-btn .material-symbols-outlined { color: var(--gold-dark); }
.navbar:not(.scrolled):not(.solid) .nav-icon-btn:hover { background: rgba(201,168,76,.15); border-color: var(--gold); }
/* Scrolled */
.navbar.scrolled .nav-icon-btn .material-symbols-outlined,
.navbar.solid    .nav-icon-btn .material-symbols-outlined { color: var(--text2); }
.navbar.scrolled .nav-icon-btn:hover,
.navbar.solid    .nav-icon-btn:hover { border-color: var(--gold); background: var(--gold-light); }

.nav-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--gold); color: #fff;
  font-size: 9px; font-weight: 800;
  width: 17px; height: 17px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid transparent; transition: border-color .3s;
}
.navbar:not(.scrolled):not(.solid) .nav-badge { border-color: var(--white); }
.navbar.scrolled .nav-badge, .navbar.solid .nav-badge { border-color: var(--white); }

/* Auth button */
.btn-nav-auth {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 10px;
  font-size: 12.5px; font-weight: 700; border: none;
  letter-spacing: .03em; transition: all .2s; cursor: pointer;
  white-space: nowrap;
}
.navbar:not(.scrolled):not(.solid) .btn-nav-auth {
  background: var(--charcoal);
  color: var(--gold-soft);
  border: 1.5px solid transparent;
}
.navbar:not(.scrolled):not(.solid) .btn-nav-auth:hover {
  background: var(--gold-dark);
  color: #fff;
}
.navbar.scrolled .btn-nav-auth,
.navbar.solid    .btn-nav-auth {
  background: var(--charcoal); color: var(--gold-soft);
  border: 1.5px solid transparent;
}
.navbar.scrolled .btn-nav-auth:hover,
.navbar.solid    .btn-nav-auth:hover { background: var(--gold-dark); color: #fff; }

/* Admin link */
.nav-admin-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  transition: all .2s; cursor: pointer; white-space: nowrap;
  flex-shrink: 0; line-height: 1;
}
.navbar:not(.scrolled):not(.solid) .nav-admin-btn {
  color: #fff; border: 1.5px solid var(--gold-deep);
  background: var(--gold-deep); font-weight: 700;
}
.navbar:not(.scrolled):not(.solid) .nav-admin-btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.navbar.scrolled .nav-admin-btn,
.navbar.solid    .nav-admin-btn { color: #fff; border: 1.5px solid var(--gold-deep); background: var(--gold-deep); font-weight: 700; }
.navbar.scrolled .nav-admin-btn:hover,
.navbar.solid    .nav-admin-btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }

/* Mobile hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; background: none; border: none;
  cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--charcoal); transition: background .3s;
}
.navbar.scrolled .nav-hamburger span,
.navbar.solid    .nav-hamburger span { background: var(--charcoal); }

/* Mobile nav overlay */
.mobile-nav {
  display: none !important; position: fixed; inset: 0; z-index: 999;
  background: rgba(26,20,8,.97);
  flex-direction: column; padding: 80px 32px 40px;
}
.mobile-nav.open { display: flex !important; }
.mobile-nav a {
  font-family: var(--font-head); font-size: 28px; font-weight: 700;
  color: var(--gold-soft); padding: 14px 0;
  border-bottom: 1px solid rgba(201,168,76,.15);
  display: block; transition: color .15s;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: var(--gold-soft);
  font-size: 28px; cursor: pointer; padding: 8px;
}

/* ══════════════════════════════════════════════════════════════
   HERO — FULLSCREEN WITH TRANSPARENT NAV INSIDE
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; /* full viewport — nav is inside */
  display: flex; flex-direction: column;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../../../assets/img/shop-hero-bg.png') center center / cover no-repeat;
}
/* Very subtle overlay for light hero image */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(26,20,8,.04) 0%,
    rgba(26,20,8,.00) 40%,
    rgba(26,20,8,.08) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  flex: 1; display: flex; align-items: center;
  max-width: 1320px; width: 100%; margin: 0 auto;
  padding: 0 28px 60px;
  padding-top: var(--nav-h);
  justify-content: flex-start;
}

.hero-text { max-width: 500px; margin-left: 3%; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,.18);
  border: 1px solid rgba(160,120,48,.45);
  color: var(--gold-deep);
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 99px; margin-bottom: 22px;
}
.hero-eyebrow .material-symbols-outlined { font-size: 13px; }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 700; color: var(--gold-deep);
  line-height: 1.05; letter-spacing: -.015em;
  margin-bottom: 20px;
  text-shadow: none;
}
.hero-title em { color: var(--gold); font-style: italic; }

.hero-sub {
  font-size: 16px; color: var(--gold-dark); line-height: 1.75;
  margin-bottom: 36px; max-width: 440px; font-weight: 600;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #fff; font-size: 14px; font-weight: 700; border: none;
  box-shadow: 0 6px 24px rgba(201,168,76,.45);
  transition: all .25s; letter-spacing: .03em;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(201,168,76,.55); }
.btn-primary .material-symbols-outlined { font-size: 18px; }

.btn-outline-hero {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 12px;
  background: var(--gold-deep);
  color: #fff; font-size: 14px; font-weight: 700;
  border: 2px solid var(--gold-deep);
  transition: all .25s;
}
.btn-outline-hero:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 12px;
  background: transparent; color: var(--charcoal);
  font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--charcoal); transition: all .2s;
}
.btn-outline:hover { background: var(--charcoal); color: var(--gold-soft); }

/* Hero stats */
.hero-stats {
  display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid rgba(160,120,48,.25);
}
.hero-stat-val {
  font-family: var(--font-head); font-size: 30px; font-weight: 700;
  color: var(--gold-dark); line-height: 1;
}
.hero-stat-lbl {
  font-size: 10.5px; color: var(--muted);
  letter-spacing: .1em; text-transform: uppercase; margin-top: 4px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  animation: bounce 2.2s ease-in-out infinite;
}
.hero-scroll .material-symbols-outlined { font-size: 22px; color: var(--gold-dark); }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════════════════════════════
   NON-HERO PAGE SPACER
══════════════════════════════════════════════════════════════ */
/* On non-hero pages, main content needs to clear the fixed navbar */
body:not(.has-hero) main > *:first-child,
.page-top-spacer { padding-top: var(--nav-h); }

/* ══════════════════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════════════════ */
.section { max-width: 1320px; margin: 0 auto; padding: 72px 28px; }
.section-sm { padding: 44px 28px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; flex: 1; max-width: 48px; height: 1px; background: var(--gold);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 700; color: var(--charcoal);
  letter-spacing: -.015em; line-height: 1.1;
}
.section-sub {
  font-size: 15px; color: var(--muted); margin-top: 12px;
  max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   CATEGORY CARDS — circular rings, gold border, single row
══════════════════════════════════════════════════════════════ */
.cat-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.cat-grid::-webkit-scrollbar { display: none; }
.cat-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; flex-shrink: 0;
  background: transparent; border: none;
  text-align: center; cursor: pointer;
  transition: all .25s; color: var(--text);
  text-decoration: none;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: transparent;
  border: 2px solid var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
  box-shadow: 0 0 0 4px rgba(201,168,76,.08);
}
.cat-card:hover .cat-card-icon {
  background: var(--gold-mid);
  border-color: var(--gold);
  box-shadow: 0 0 0 6px rgba(201,168,76,.14);
}
.cat-card-icon .material-symbols-outlined { font-size: 32px; color: var(--gold-dark); }
.cat-card-name { font-size: 12px; font-weight: 700; color: var(--text2); letter-spacing: .04em; text-transform: uppercase; }
.cat-card-count { font-size: 10.5px; color: var(--faint); }

/* ══════════════════════════════════════════════════════════════
   PRODUCT GRID & CARDS
══════════════════════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white); border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--sh); overflow: hidden;
  transition: transform .3s cubic-bezier(.34,1.2,.64,1), box-shadow .3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

.product-img-wrap {
  position: relative; aspect-ratio: 4/5;
  background: var(--gold-light); overflow: hidden;
  border-radius: 18px 18px 0 0;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94);
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }

.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(160deg, #F5EDD8 0%, #FBF5E8 50%, #F0E8D0 100%);
  color: var(--gold-dark); position: relative; overflow: hidden;
}
.product-img-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(201,168,76,.08) 0%, transparent 65%);
}
.product-img-placeholder .material-symbols-outlined { font-size: 52px; opacity: .35; position: relative; }
.product-img-placeholder span.pcat {
  font-size: 10px; margin-top: 8px; opacity: .45;
  letter-spacing: .12em; text-transform: uppercase; position: relative;
  font-family: var(--font); font-weight: 600; color: var(--gold-deep);
}

.product-badge {
  position: absolute; top: 14px; left: 14px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 99px;
  background: var(--charcoal); color: var(--gold-soft);
}
.product-badge.new  { background: var(--gold-dark); color: #fff; }
.product-badge.sale { background: var(--red); color: #fff; }

.product-wish {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 99px;
  background: rgba(255,255,255,.92);
  border: none; display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all .2s;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.product-wish:hover, .product-wish.active { color: var(--red); background: #fff; transform: scale(1.1); }
.product-wish .material-symbols-outlined { font-size: 18px; }

/* Slide-up quick add */
.product-quick-add {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(26,20,8,.9); color: var(--gold-soft);
  border: none; padding: 13px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  opacity: 0; transform: translateY(100%);
  transition: opacity .25s, transform .25s cubic-bezier(.34,1.2,.64,1);
  backdrop-filter: blur(4px);
}
.product-card:hover .product-quick-add { opacity: 1; transform: translateY(0); }
.product-quick-add .material-symbols-outlined { font-size: 16px; }

.product-info { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat {
  font-size: 10px; color: var(--gold-dark); font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase; margin-bottom: 6px;
}
.product-name {
  font-size: 14px; font-weight: 600; color: var(--text);
  line-height: 1.3; flex: 1; margin-bottom: 8px;
  transition: color .15s;
}
.product-card:hover .product-name { color: var(--gold-dark); }
.product-price-row { display: flex; align-items: center; gap: 9px; }
.product-price { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--gold-dark); }
.product-price-old { font-size: 13px; color: var(--faint); text-decoration: line-through; }

.btn-add-cart {
  margin-top: 10px; width: 100%; padding: 11px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-dark));
  color: #fff;
  border: none; border-radius: 11px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  box-shadow: 0 2px 10px rgba(160,120,48,.25);
}
.btn-add-cart:hover { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(160,120,48,.40); }
.btn-add-cart .material-symbols-outlined { font-size: 16px; }
.btn-add-cart:disabled { opacity: .5; cursor: not-allowed; background: var(--border); box-shadow: none; color: var(--muted); }

/* ══════════════════════════════════════════════════════════════
   FEATURES STRIP
══════════════════════════════════════════════════════════════ */
.features-strip { background: var(--charcoal); padding: 40px 28px; }
.features-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.feature-item { display: flex; align-items: center; gap: 16px; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
  background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.22);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.feature-icon .material-symbols-outlined { font-size: 23px; }
.feature-text-title { font-size: 13.5px; font-weight: 700; color: var(--gold-soft); }
.feature-text-sub   { font-size: 12px; color: rgba(255,255,255,.38); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════
   PROMO BANNER
══════════════════════════════════════════════════════════════ */
.promo-banner {
  position: relative; overflow: hidden;
  background: var(--charcoal); padding: 80px 28px;
  text-align: center;
}
.promo-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,168,76,.12), transparent);
}

/* ══════════════════════════════════════════════════════════════
   CART DRAWER
══════════════════════════════════════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 1100; opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 430px; max-width: 100vw;
  background: var(--white); z-index: 1101;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -12px 0 48px rgba(0,0,0,.16);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-head h2 { font-family: var(--font-head); font-size: 24px; font-weight: 700; flex: 1; }
.cart-head-badge {
  background: var(--gold-mid); color: var(--gold-dark);
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 99px; margin-left: 10px;
}
.cart-close {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1.5px solid var(--border); background: none;
  color: var(--muted); display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.cart-close:hover { border-color: var(--red); color: var(--red); }

.cart-items {
  flex: 1; overflow-y: auto; padding: 16px 24px;
  display: flex; flex-direction: column; gap: 16px;
  scrollbar-width: thin; scrollbar-color: var(--gold-soft) transparent;
}
.cart-item { display: flex; gap: 14px; align-items: flex-start; }
.cart-item-img {
  width: 72px; height: 90px; border-radius: 11px;
  background: var(--gold-light); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.cart-item-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.cart-item-price { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--gold-dark); margin-top: 7px; }
.cart-qty-row { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.qty-btn {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1.5px solid var(--border); background: none;
  font-size: 17px; color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  transition: all .12s;
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.qty-val { font-size: 14px; font-weight: 700; min-width: 26px; text-align: center; }
.cart-item-remove {
  background: none; border: none; color: var(--faint);
  font-size: 11.5px; margin-left: auto; transition: color .12s;
}
.cart-item-remove:hover { color: var(--red); }

.cart-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; color: var(--muted); text-align: center; padding: 48px;
}
.cart-empty .material-symbols-outlined { font-size: 56px; color: var(--faint); }
.cart-empty h3 { font-family: var(--font-head); font-size: 22px; color: var(--text); }

.cart-foot {
  padding: 22px 24px; border-top: 1px solid var(--border);
  background: var(--bg);
}
.cart-summary-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--muted); margin-bottom: 7px;
}
.cart-total-row {
  display: flex; justify-content: space-between;
  margin: 14px 0 18px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.cart-total-lbl { font-size: 16px; font-weight: 700; }
.cart-total-val { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--gold-dark); }
.btn-checkout {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal2));
  color: var(--gold-soft); border: none; border-radius: 13px;
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: all .25s;
}
.btn-checkout:hover { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: #fff; transform: translateY(-2px); }
.cart-note { font-size: 11px; color: var(--faint); text-align: center; margin-top: 10px; }

/* ══════════════════════════════════════════════════════════════
   AUTH / VERIFY / CHECKOUT FORMS
══════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; background: var(--bg); padding: 24px;
}
.auth-card {
  width: 100%; max-width: 500px;
  background: var(--white); border-radius: 22px;
  border: 1px solid var(--border); padding: 44px 40px;
  box-shadow: var(--sh-lg);
}
.auth-title { font-family: var(--font-head); font-size: 30px; font-weight: 700; text-align: center; color: var(--charcoal); }
.auth-sub { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.65; }
.auth-divider { height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); margin: 26px 0; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 13px 16px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 12px; font-size: 14px; color: var(--text);
  outline: none; transition: all .2s;
}
.form-control:focus { border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px var(--gold-glow); }
.form-control::placeholder { color: var(--faint); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.btn-submit {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #fff; border: none; border-radius: 13px;
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 5px 20px var(--gold-glow);
  transition: all .25s;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(201,168,76,.45); }

.alert { padding: 13px 17px; border-radius: 11px; font-size: 13px; font-weight: 500; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.alert-error   { background: var(--red-bg); color: var(--red); border: 1px solid #fecaca; }
.alert-success { background: var(--gold-mid); color: var(--gold-deep); border: 1px solid var(--gold-soft); }
.alert .material-symbols-outlined { font-size: 17px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   ORDER CONFIRMATION
══════════════════════════════════════════════════════════════ */
.order-confirm { text-align: center; padding: 40px 0; }
.order-confirm .check-circle {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; box-shadow: 0 10px 30px var(--gold-glow);
}
.order-confirm .check-circle .material-symbols-outlined { font-size: 44px; color: #fff; }
.order-details {
  background: var(--gold-light); border: 1px solid var(--gold-soft);
  border-radius: 14px; padding: 22px; margin-top: 26px; text-align: left;
}
.order-detail-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; border-bottom: 1px solid var(--gold-soft); }
.order-detail-row:last-child { border-bottom: none; font-weight: 700; color: var(--gold-dark); }

/* ══════════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════════ */
.toast-wrap { position: fixed; bottom: 28px; right: 28px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--charcoal); color: var(--gold-soft);
  padding: 14px 20px; border-radius: 14px;
  font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 11px;
  min-width: 260px; max-width: 360px;
  box-shadow: 0 10px 32px rgba(0,0,0,.28);
  border: 1px solid rgba(201,168,76,.2);
  animation: toastIn .35s cubic-bezier(.34,1.56,.64,1);
}
.toast .material-symbols-outlined { font-size: 19px; color: var(--gold); flex-shrink: 0; }
@keyframes toastIn { from { opacity:0; transform:translateY(20px) scale(.94); } to { opacity:1; transform:none; } }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.shop-footer { background: var(--charcoal); color: rgba(255,255,255,.6); padding: 60px 28px 28px; }
.footer-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px;
}
.footer-brand-logo img { height: 64px; margin-bottom: 16px; }
.footer-brand-name { font-family: var(--font-head); font-size: 22px; color: var(--gold-soft); }
.footer-brand-tag  { font-size: 10.5px; color: rgba(255,255,255,.35); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.footer-brand-desc { font-size: 13px; line-height: 1.75; margin-top: 14px; color: rgba(255,255,255,.45); }
.footer-col-title  { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.45); transition: color .15s; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: 36px 0 22px; }
.footer-bottom { max-width: 1320px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 12px; flex-wrap: wrap; gap: 10px; }
.footer-bottom-left { color: rgba(255,255,255,.3); }
.footer-bottom-right { display: flex; gap: 18px; }
.footer-bottom-right a { color: rgba(255,255,255,.3); transition: color .15s; }
.footer-bottom-right a:hover { color: var(--gold-soft); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 768px) {
  .nav-links, .nav-admin-btn { display: none; }
  .nav-hamburger { display: flex; }
  .hero-content { padding: 0 20px 80px; padding-top: var(--nav-h); }
  .hero-title { font-size: 38px; }
  .section { padding: 48px 20px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cart-drawer { width: 100vw; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .auth-card { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-stats { gap: 20px; }
  .hero-cta { gap: 10px; }
  .btn-primary, .btn-outline-hero { padding: 13px 22px; font-size: 13px; }
}

/* ── FORCE no border/line on navbar and all children ── */
.navbar, .navbar *, .navbar::before, .navbar::after {
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.navbar.scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,.06) !important;
  border-bottom: 1px solid rgba(237,232,223,.5) !important;
}
.navbar.solid {
  box-shadow: 0 1px 20px rgba(0,0,0,.06) !important;
  border-bottom: 1px solid rgba(237,232,223,.5) !important;
}
/* Search bar must not show border when closed */
#searchBar { border-top: none !important; }

/* ══════════════════════════════════════════════════════════════
   SHOP PAGE — FULLY RESPONSIVE
══════════════════════════════════════════════════════════════ */

/* Category rings — centered, hide scrollbar everywhere */
#catRingsTrack::-webkit-scrollbar { display: none; }

/* Shop header bar responsive */
.shop-page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  padding: 40px 28px 28px;
}
@media (max-width: 768px) {
  .shop-page-header { padding: 20px 16px 18px; }
}

/* ── HERO — fully responsive image ── */
.hero-bg {
  background-attachment: scroll !important; /* no fixed on mobile — breaks iOS */
}
@media (max-width: 768px) {
  .hero { min-height: 100svh; }
  .hero-bg { background-position: center center !important; }
  .hero-content { padding: 0 20px 60px; align-items: flex-end; }
  .hero-text { max-width: 100%; }
  .hero-title { font-size: clamp(32px, 8vw, 52px); }
  .hero-sub { font-size: 14px; max-width: 100%; }
  .hero-cta { gap: 10px; }
  .btn-primary { padding: 13px 22px; font-size: 13.5px; }
  .btn-outline-hero { padding: 12px 18px; font-size: 13px; }
  .hero-stats { gap: 20px; padding-top: 20px; margin-top: 24px; }
  .hero-stat-val { font-size: 22px; }
  .hero-eyebrow { font-size: 9.5px; padding: 5px 12px; }

  /* Category rings on mobile */
  #catRingsTrack { justify-content: flex-start !important; gap: 16px; }
  #catRingsTrack a div { width: 62px !important; height: 62px !important; }
  #catRingsTrack span.material-symbols-outlined { font-size: 24px !important; }

  /* Shop header title row stack on mobile */
  .shop-top-row { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
  .shop-search-sort { width: 100%; justify-content: space-between; }
  .shop-search-sort input { width: 100% !important; }

  /* Product grid — 2 column on mobile */
  .product-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .product-info { padding: 12px !important; }
  .product-name { font-size: 13px !important; }
  .product-price { font-size: 16px !important; }
  .btn-add-cart { font-size: 11.5px !important; padding: 10px 8px !important; }
}

@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .hero-title { font-size: 28px; }
}

/* ── Navbar mobile ── */
@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; gap: 10px; }
  .nav-logo img { height: 36px; }
  .nav-logo-name { font-size: 14px; }
}

/* ── Section padding responsive ── */
@media (max-width: 768px) {
  .section { padding: 40px 16px; }
  .section-title { font-size: clamp(24px, 6vw, 36px); }

  /* Category grid on homepage */
  .cat-grid { gap: 12px; }
  .cat-card-icon { width: 68px !important; height: 68px !important; }

  /* Footer responsive */
  .footer-inner { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }

  /* Features strip */
  .features-inner { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
}

@media (max-width: 480px) {
  .features-inner { grid-template-columns: 1fr !important; }
  .cart-drawer { width: 100vw; border-radius: 0; }
  .auth-card { padding: 24px 16px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Category mini hero responsive ── */
@media (max-width: 768px) {
  .cat-mini-hero { height: 180px !important; }
  .cat-mini-hero h1 { font-size: 26px !important; }
  .cat-mini-hero p  { font-size: 13px !important; }
}
