/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: rgba(201,168,76,.18);
  --bg: #0b0b09;
  --bg2: #111110;
  --bg3: #181816;
  --bg4: #1f1f1c;
  --card: #161614;
  --border: rgba(201,168,76,.2);
  --txt: #f0ece3;
  --txt-dim: #8c8880;
  --txt-xs: #5a5750;
  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans: 'Montserrat', sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  background: var(--bg);
  color: var(--txt);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; width: 100%; }
button { cursor: pointer; font-family: var(--ff-sans); }

/* ─── NOISE OVERLAY ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: .4;
}

/* ─── ANNOUNCEMENT BAR ───────────────────────────────── */
.announce {
  background: var(--gold);
  color: #0b0b09;
  text-align: center;
  padding: 9px 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.announce span { margin: 0 24px; opacity: .6; }

/* ─── TOP BAR ────────────────────────────────────────── */
.topbar {
  background: #000;
  padding: 8px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--txt-dim);
  letter-spacing: .06em;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.topbar-left { display: flex; gap: 22px; align-items: center; }
.topbar-left i { color: var(--gold); margin-right: 5px; }
.topbar-right { display: flex; gap: 20px; }
.topbar-right a { color: var(--txt-dim); transition: color .2s; }
.topbar-right a:hover { color: var(--gold); }

/* ─── MAIN NAV ───────────────────────────────────────── */
.mainnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,11,9,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 6%;
  display: flex;
  align-items: center;
  gap: 30px;
  height: 72px;
}
.logo {
  font-family: var(--ff-serif);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: .12em;
  color: var(--txt);
  white-space: nowrap;
}
.logo em { font-style: normal; color: var(--gold); }
.logo sup {
  font-family: var(--ff-sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--txt-xs);
  vertical-align: super;
  text-transform: uppercase;
  margin-left: 2px;
}

/* Search */
.search-wrap {
  flex: 1;
  max-width: 460px;
  position: relative;
  margin: 0 auto;
}
.search-wrap input {
  width: 100%;
  padding: 10px 44px 10px 18px;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--txt);
  font-size: 12.5px;
  font-family: var(--ff-sans);
  letter-spacing: .04em;
  outline: none;
  transition: border-color .25s;
}
.search-wrap input::placeholder { color: var(--txt-xs); }
.search-wrap input:focus { border-color: var(--gold); }
.search-wrap button {
  position: absolute; right: 0; top: 0; bottom: 0;
  padding: 0 15px;
  background: var(--gold);
  border: none;
  color: #0b0b09;
  border-radius: 0 2px 2px 0;
  font-size: 13px;
  transition: background .2s;
}
.search-wrap button:hover { background: var(--gold-light); }

/* Nav Icons */
.nav-icons { display: flex; gap: 22px; align-items: center; }
.nav-icons .icon-btn {
  position: relative;
  background: none; border: none;
  color: var(--txt-dim);
  font-size: 17px;
  transition: color .2s;
  padding: 4px;
}
.nav-icons .icon-btn:hover { color: var(--gold); }
.badge {
  position: absolute; top: -4px; right: -5px;
  background: var(--gold);
  color: #000;
  font-size: 9px; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: grid; place-items: center;
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0b0b09 0%, #16140f 50%, #0b0b09 100%);
  padding: 70px 6% 60px;
  display: flex;
  align-items: center;
  gap: 50px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-text { flex: 1; max-width: 480px; }
.hero-eyebrow {
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: var(--ff-serif);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p {
  color: var(--txt-dim);
  font-size: 13px;
  line-height: 1.8;
  max-width: 380px;
  margin-bottom: 28px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  padding: 13px 32px;
  background: var(--gold);
  color: #0b0b09;
  border: none;
  font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  border-radius: 2px;
  transition: background .25s, transform .2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
  padding: 12px 30px;
  background: transparent;
  color: var(--txt);
  border: 1px solid var(--border);
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: 2px;
  transition: border-color .25s, color .25s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.hero-stats {
  display: flex; gap: 36px;
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.stat-num {
  font-family: var(--ff-serif);
  font-size: 28px; font-weight: 300;
  color: var(--gold); line-height: 1; margin-bottom: 4px;
}
.stat-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-xs); }
.hero-visual {
  flex: 0 0 340px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-tile {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 3px;
  aspect-ratio: 1;
  display: grid; place-items: center;
  font-size: 40px;
  transition: transform .3s var(--ease), border-color .3s;
  animation: floatCard 4s ease-in-out infinite;
}
.hero-tile:nth-child(2) { animation-delay: .8s; }
.hero-tile:nth-child(3) { animation-delay: 1.6s; }
.hero-tile:nth-child(4) { animation-delay: 2.4s; }
.hero-tile:hover { transform: scale(1.04); border-color: var(--gold); }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ─── CATEGORY STRIP ─────────────────────────────────── */
.cat-strip {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  padding: 0 6%;
  background: var(--bg2);
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-pill {
  padding: 16px 22px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--txt-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.cat-pill:hover, .cat-pill.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ─── MAIN LAYOUT ────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: 80vh;
  padding: 0 6%;
  align-items: start;
}

/* ─── SIDEBAR ────────────────────────────────────────── */
.sidebar {
  padding: 30px 24px 30px 0;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar-heading {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--txt-xs);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.filter-group { margin-bottom: 28px; }
.filter-group-title {
  font-family: var(--ff-serif);
  font-size: 15px; font-weight: 400;
  color: var(--txt);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none;
}
.filter-group-title .toggle-icon { margin-left: auto; font-size: 11px; color: var(--txt-xs); transition: transform .25s; }
.filter-group.collapsed .toggle-icon { transform: rotate(-90deg); }
.filter-group.collapsed .filter-options { display: none; }
.filter-options label {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  font-size: 12px;
  color: var(--txt-dim);
  cursor: pointer;
  transition: color .2s;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.filter-options label:hover { color: var(--txt); }
.filter-options input[type=checkbox] {
  appearance: none; -webkit-appearance: none;
  width: 14px; height: 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg4);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color .2s, background .2s;
}
.filter-options input[type=checkbox]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.filter-options input[type=checkbox]:checked::after {
  content: '✓';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px; color: #000; font-weight: 700;
}
.price-range { padding: 6px 0 12px; }
.price-slider { width: 100%; accent-color: var(--gold); margin: 10px 0; cursor: pointer; }
.price-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--txt-dim); }

/* ─── PRODUCTS AREA ──────────────────────────────────── */
.products-area { padding: 30px 0 30px 30px; }
.products-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.products-title {
  font-family: var(--ff-serif);
  font-size: 22px; font-weight: 300;
}
.products-title span {
  font-family: var(--ff-sans);
  font-size: 11px; color: var(--txt-xs);
  font-weight: 400; margin-left: 10px; letter-spacing: .06em;
}
.sort-wrap { display: flex; align-items: center; gap: 10px; }
.sort-label { font-size: 11px; color: var(--txt-xs); letter-spacing: .08em; text-transform: uppercase; }
.sort-wrap select {
  background: var(--bg4);
  border: 1px solid var(--border);
  color: var(--txt);
  padding: 8px 32px 8px 12px;
  font-size: 11.5px; font-family: var(--ff-sans);
  border-radius: 2px; outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238c8880'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.view-toggle { display: flex; gap: 6px; }
.view-btn {
  background: var(--bg4); border: 1px solid var(--border);
  color: var(--txt-dim);
  padding: 7px 10px; font-size: 13px;
  border-radius: 2px; transition: all .2s;
}
.view-btn.active, .view-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ─── PRODUCT GRID ───────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.product-grid.list-view { grid-template-columns: 1fr; }
.product-grid.list-view .product-card { display: flex; flex-direction: row; gap: 20px; align-items: center; padding: 16px; }
.product-grid.list-view .product-img-wrap { flex: 0 0 130px; height: 130px; }
.product-grid.list-view .product-info { flex: 1; }
.product-grid.list-view .product-actions { flex-direction: row; margin-top: 0; }

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  animation: fadeUp .5s var(--ease) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card:nth-child(1) { animation-delay: .05s; }
.product-card:nth-child(2) { animation-delay: .10s; }
.product-card:nth-child(3) { animation-delay: .15s; }
.product-card:nth-child(4) { animation-delay: .20s; }
.product-card:nth-child(5) { animation-delay: .25s; }
.product-card:nth-child(6) { animation-delay: .30s; }
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,168,76,.5);
  box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 30px rgba(201,168,76,.05);
}
.product-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--bg4);
  display: grid; place-items: center;
}
.product-img-wrap .shoe-emoji {
  font-size: 72px;
  transition: transform .4s var(--ease);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.6));
}
.product-card:hover .shoe-emoji { transform: scale(1.1) rotate(-5deg); }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  color: #0b0b09;
  font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 2px;
}
.product-badge.new, .product-badge.bestseller { background: var(--gold); }
.product-badge.sale { background: #c0392b; color: #fff; }
.product-badge.bestseller { background: #2e7d32; color: #fff; }
.product-wishlist {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.5);
  border: 1px solid var(--border);
  color: var(--txt-dim);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px;
  transition: all .25s;
  opacity: 0;
}
.product-card:hover .product-wishlist { opacity: 1; }
.product-wishlist:hover { background: rgba(201,168,76,.2); border-color: var(--gold); color: var(--gold); }
.product-info { padding: 16px 16px 0; }
.product-category { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.product-name { font-family: var(--ff-serif); font-size: 17px; font-weight: 400; line-height: 1.3; margin-bottom: 8px; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.stars { color: var(--gold); font-size: 11px; letter-spacing: 1px; }
.rating-count { font-size: 10.5px; color: var(--txt-xs); }
.product-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.price-main { font-family: var(--ff-serif); font-size: 22px; font-weight: 300; color: var(--gold); }
.price-old { font-size: 13px; color: var(--txt-xs); text-decoration: line-through; }
.price-discount { font-size: 11px; font-weight: 600; color: #e74c3c; background: rgba(231,76,60,.12); padding: 2px 7px; border-radius: 2px; }
.size-selector { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 14px; }
.size-btn {
  background: var(--bg4); border: 1px solid var(--border);
  color: var(--txt-dim); font-size: 10.5px;
  padding: 5px 9px; border-radius: 2px;
  transition: all .2s;
}
.size-btn:hover { border-color: var(--gold); color: var(--gold); }
.size-btn.active { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 600; }
.product-actions { display: flex; gap: 8px; padding: 0 16px 16px; margin-top: auto; }
.btn-cart {
  flex: 1; padding: 11px;
  background: transparent; border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: 2px; transition: all .25s;
}
.btn-cart:hover, .btn-cart.added { background: var(--gold); color: #000; }
.btn-quick {
  padding: 11px 14px;
  background: var(--bg4); border: 1px solid var(--border);
  color: var(--txt-dim); font-size: 13px;
  border-radius: 2px; transition: all .25s;
}
.btn-quick:hover { border-color: var(--gold); color: var(--gold); }

/* ─── LOAD MORE ──────────────────────────────────────── */
.load-more-wrap { text-align: center; padding: 40px 0 20px; }
.btn-load {
  padding: 14px 48px;
  background: transparent; border: 1px solid var(--border);
  color: var(--txt-dim);
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: 2px; transition: all .3s;
}
.btn-load:hover { border-color: var(--gold); color: var(--gold); }

/* ─── CART DRAWER ────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; top: 0; right: -420px;
  width: 400px; max-width: 95vw; height: 100%;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 201;
  transition: right .35s var(--ease);
  display: flex; flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-title { font-family: var(--ff-serif); font-size: 22px; font-weight: 300; letter-spacing: .06em; }
.cart-close { background: none; border: none; color: var(--txt-dim); font-size: 20px; transition: color .2s; }
.cart-close:hover { color: var(--gold); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--txt-dim); }
.cart-empty i { font-size: 40px; color: var(--txt-xs); margin-bottom: 14px; }
.cart-item {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.cart-item-img {
  width: 68px; height: 68px;
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: 2px;
  display: grid; place-items: center;
  font-size: 28px; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-family: var(--ff-serif); font-size: 15px; margin-bottom: 4px; line-height: 1.3; }
.cart-item-price { color: var(--gold); font-size: 14px; font-weight: 500; }
.cart-item-remove { background: none; border: none; color: var(--txt-xs); font-size: 13px; transition: color .2s; padding: 2px 4px; }
.cart-item-remove:hover { color: #e74c3c; }
.cart-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  background: var(--bg4); border: 1px solid var(--border);
  color: var(--txt); width: 26px; height: 26px;
  border-radius: 2px; font-size: 15px;
  display: grid; place-items: center;
  transition: border-color .2s;
}
.qty-btn:hover { border-color: var(--gold); }
.qty-num { font-size: 13px; min-width: 20px; text-align: center; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 16px; font-family: var(--ff-serif); font-size: 18px; }
.cart-total-amt { color: var(--gold); font-weight: 600; }
.btn-checkout {
  width: 100%; padding: 14px;
  background: var(--gold); border: none;
  color: #000; font-size: 11.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  border-radius: 2px; transition: background .25s;
}
.btn-checkout:hover { background: var(--gold-light); }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 50px 6% 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p { font-size: 12px; color: var(--txt-dim); line-height: 1.9; }
.footer-col h5 { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 12.5px; color: var(--txt-dim); transition: color .2s; }
.footer-col a:hover { color: var(--txt); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--txt-xs);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--txt-xs); transition: color .2s; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ─── TOAST ──────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg4); border: 1px solid var(--gold);
  color: var(--txt); padding: 12px 24px;
  border-radius: 3px; font-size: 12.5px;
  z-index: 300; opacity: 0;
  transition: all .3s var(--ease);
  pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast i { color: var(--gold); margin-right: 8px; }

/* ─── SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,.4); }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; padding: 0 4%; }
  .sidebar { position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--border); padding: 20px 0; display: none; }
  .sidebar.open { display: block; }
  .products-area { padding: 20px 0; }
  .hero { flex-direction: column; padding: 40px 4%; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .topbar { display: none; }
}
@media (max-width: 600px) {
  .mainnav { padding: 0 4%; }
  .search-wrap { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}

/* AUTH MODAL */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}
.auth-overlay.active { display: block; }

.auth-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 420px;
  max-width: 95vw;
  border-radius: 12px;
  padding: 40px;
  z-index: 1001;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.auth-modal.active { display: block; }

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 2px solid #eee;
  padding-bottom: 12px;
}

.auth-tab {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  color: #999;
  padding: 6px 16px;
  border-radius: 6px;
}
.auth-tab.active {
  color: #8B6914;
  background: #f9f3e8;
}

.auth-form h2 {
  font-size: 22px;
  margin-bottom: 6px;
  color: #1a1a1a;
}
.auth-form p {
  color: #888;
  margin-bottom: 20px;
  font-size: 14px;
}

.auth-form input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: border 0.2s;
}
.auth-form input:focus { border-color: #8B6914; }

.btn-auth {
  width: 100%;
  padding: 13px;
  background: #8B6914;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-auth:hover { background: #6d5010; }

.auth-msg {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  color: #c0392b;
}
.auth-msg.success { color: #27ae60; }

@keyframes pulse {
  from { opacity: 0.4; }
  to   { opacity: 0.8; }
}