/* =============================================================
   ARTLOOM — main.css   (pure CSS, no build tools)
   Preserves exact Lovable design: Playfair + Inter, orange system
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Design Tokens (mirrors index.css vars) ─────────────────── */
:root {
  --bg:           hsl(30 20% 98%);
  --fg:           hsl(20 10% 10%);
  --card:         hsl(30 15% 97%);
  --card-fg:      hsl(20 10% 10%);
  --primary:      hsl(20 85% 52%);
  --primary-fg:   #fff;
  --secondary:    hsl(30 15% 93%);
  --secondary-fg: hsl(20 10% 15%);
  --muted:        hsl(30 10% 94%);
  --muted-fg:     hsl(20 5% 50%);
  --accent:       hsl(20 70% 48%);
  --accent-fg:    #fff;
  --border:       hsl(30 15% 88%);
  --radius:       0.75rem;
  --gold:         hsl(38 70% 55%);
  --cream:        hsl(35 30% 95%);
  --hero-from:    hsl(20 90% 45%);
  --hero-via:     hsl(15 80% 38%);
  --hero-to:      hsl(10 70% 28%);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --shadow-card:  0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.14);
  --nav-h:        68px;
  --transition:   all 300ms cubic-bezier(.4,0,.2,1);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.2; }

/* ── Utility ─────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only   { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .75rem 2rem;
  font-family: var(--font-body); font-weight: 500; font-size: .95rem;
  border-radius: 9999px; transition: var(--transition);
}
.btn-primary {
  background: var(--primary); color: var(--primary-fg);
  box-shadow: 0 4px 14px hsl(20 85% 52% / .35);
}
.btn-primary:hover { opacity: .9; transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 24px hsl(20 85% 52% / .45); }
.btn-primary:active { transform: scale(.97); }

.btn-outline-hero {
  border: 2px solid rgba(255,255,255,.45); color: #fff;
}
.btn-outline-hero:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.75); }

.btn-accent {
  background: var(--accent); color: var(--accent-fg); font-weight: 600; font-size: 1rem;
  padding: .85rem 2.2rem;
  box-shadow: 0 8px 30px hsl(20 70% 48% / .45);
}
.btn-accent:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 36px hsl(20 70% 48% / .55); }

.btn-ghost { color: var(--muted-fg); padding: .6rem 1.2rem; border-radius: var(--radius); }
.btn-ghost:hover { background: var(--muted); }

.btn-sm { padding: .5rem 1.2rem; font-size: .85rem; }
.btn-full { width: 100%; }
.btn-wa {
  background: #25D366; color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px rgba(37,211,102,.35);
}
.btn-wa:hover { background: #1ebe5d; transform: translateY(-2px); }

/* ── NAV ──────────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}
.site-nav.scrolled { background: rgba(255,255,255,.97); box-shadow: var(--shadow-card); }
.nav-inner {
  display: flex; align-items: center; gap: 2rem;
  height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--primary); letter-spacing: .04em; flex-shrink: 0;
}
.nav-links {
  display: flex; gap: 1.6rem; flex: 1;
}
.nav-links a {
  font-size: .88rem; font-weight: 500; color: var(--muted-fg);
  transition: color .2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.nav-cart  { position: relative; }
.cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--primary); color: #fff;
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width:768px) { .nav-links { display: none; } }

/* ── FLASH ────────────────────────────────────────────────────── */
.flash { padding: .75rem 1.5rem; font-size: .88rem; text-align: center; position: relative; z-index: 800; }
.flash-error   { background: #fef2f2; color: #b91c1c; border-bottom: 1px solid #fecaca; }
.flash-success { background: #f0fdf4; color: #15803d; border-bottom: 1px solid #bbf7d0; }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-via) 40%, var(--hero-to) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding-top: var(--nav-h);
}

/* Noise texture overlay */
.hero::before {
  content: '';
  position: absolute; 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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

.hero-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem 1.5rem 6rem;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,.25); padding: .35rem 1rem; border-radius: 99px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800; color: #fff;
  line-height: .95;
  text-shadow: 0 4px 32px rgba(0,0,0,.25);
  margin-bottom: .4rem;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,.78);
  font-weight: 300; letter-spacing: .06em;
  margin-bottom: 2.8rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.5); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
  z-index: 2;
}
.hero-scroll span { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent); }
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }

/* Floating frames (JS-driven via canvas, fallback decorative divs) */
.frame-float {
  position: absolute; border-radius: 10px;
  border: 3px solid rgba(255,255,255,.25);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  overflow: hidden; pointer-events: none;
  will-change: transform;
}
.frame-float img { width: 100%; height: 100%; object-fit: cover; }
.frame-float-1 { width: 180px; height: 220px; top: 18%; left: 6%; transform: rotate(-8deg); animation: drift1 6s ease-in-out infinite; }
.frame-float-2 { width: 140px; height: 170px; top: 30%; right: 8%; transform: rotate(6deg); animation: drift2 7s ease-in-out infinite; }
.frame-float-3 { width: 120px; height: 150px; bottom: 22%; left: 12%; transform: rotate(4deg); animation: drift3 8s ease-in-out infinite; }
.frame-float-4 { width: 160px; height: 130px; bottom: 28%; right: 6%; transform: rotate(-5deg); animation: drift1 5.5s ease-in-out infinite reverse; }

@keyframes drift1 { 0%,100%{transform:rotate(-8deg) translateY(0)} 50%{transform:rotate(-8deg) translateY(-18px)} }
@keyframes drift2 { 0%,100%{transform:rotate(6deg) translateY(0)} 50%{transform:rotate(6deg) translateY(-14px)} }
@keyframes drift3 { 0%,100%{transform:rotate(4deg) translateY(0)} 50%{transform:rotate(4deg) translateY(-20px)} }

/* ── CATEGORY STRIP ───────────────────────────────────────────── */
.cat-section { padding: 2.5rem 0 1rem; }
.cat-scroll  { display: flex; gap: .6rem; overflow-x: auto; padding: .5rem 0; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0; padding: .55rem 1.4rem; border-radius: 9999px;
  font-size: .85rem; font-weight: 500;
  background: var(--secondary); color: var(--secondary-fg);
  transition: var(--transition); user-select: none;
  border: 1.5px solid transparent;
}
.cat-pill:hover { background: var(--muted); border-color: var(--border); }
.cat-pill.active { background: var(--primary); color: #fff; box-shadow: 0 4px 14px hsl(20 85% 52% / .3); }

/* ── SECTION HEADINGS ─────────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700; color: var(--fg);
}
.section-sub { color: var(--muted-fg); font-size: .93rem; margin-top: .4rem; }

/* ── PRODUCT GRID ─────────────────────────────────────────────── */
.products-section { padding: 1.5rem 0 3.5rem; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}
.product-card {
  background: var(--card); border-radius: 1rem;
  border: 1px solid var(--border);
  overflow: hidden; transition: transform .35s ease, box-shadow .35s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card-img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card-img { transform: scale(1.04); }
.product-card-body  { padding: 1rem 1rem .9rem; }
.product-card-name  { font-size: .93rem; font-weight: 600; color: var(--fg); margin-bottom: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-prices { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.price-orig { font-size: .82rem; color: var(--muted-fg); text-decoration: line-through; }
.price-sale { font-size: 1.05rem; font-weight: 700; color: var(--primary); }

.explore-more {
  text-align: center; margin-top: 2.5rem;
  color: var(--muted-fg); font-size: .9rem;
}
.explore-more a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── BULK SECTION ─────────────────────────────────────────────── */
.bulk-section {
  background: linear-gradient(135deg, hsl(20 90% 45%), hsl(10 70% 32%));
  padding: 5rem 1.5rem; text-align: center; position: relative; overflow: hidden;
}
.bulk-section::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(255,255,255,.08) 0%, transparent 60%);
  pointer-events: none;
}
.bulk-section h2 { font-family: var(--font-display); font-size: clamp(1.6rem,4vw,2.4rem); color: #fff; margin-bottom: .8rem; }
.bulk-section p  { color: rgba(255,255,255,.8); font-size: 1rem; margin-bottom: 2rem; }

/* ── CUSTOM FRAME CTA ─────────────────────────────────────────── */
.cta-section { padding: 5rem 1.5rem; text-align: center; background: var(--cream); }
.cta-section h2 { font-family: var(--font-display); font-size: clamp(1.6rem,4vw,2.4rem); color: var(--fg); margin-bottom: .8rem; }
.cta-section p  { color: var(--muted-fg); max-width: 520px; margin: 0 auto 2rem; }

/* ── AUTH MODALS ──────────────────────────────────────────────── */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: 1.25rem;
  width: min(440px, 96vw); padding: 2.5rem 2rem;
  position: relative; box-shadow: 0 24px 80px rgba(0,0,0,.18);
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { transform: scale(.94) translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.4rem; color: var(--muted-fg); cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--fg); }
.modal h2 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: .25rem; }
.modal-sub { color: var(--muted-fg); font-size: .88rem; margin-bottom: 1.6rem; }
.modal-switch { text-align: center; margin-top: .9rem; font-size: .85rem; color: var(--muted-fg); }
.modal-switch a { color: var(--primary); font-weight: 600; }
.modal-err { background: #fef2f2; color: #b91c1c; font-size: .84rem; padding: .6rem .9rem; border-radius: .5rem; margin-bottom: 1rem; }

/* ── FORMS ────────────────────────────────────────────────────── */
.form-group       { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .83rem; font-weight: 500; margin-bottom: .35rem; color: var(--fg); }
.form-input {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .9rem; color: var(--fg);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px hsl(20 85% 52% / .15); }
.form-input::placeholder { color: var(--muted-fg); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
textarea.form-input { resize: vertical; min-height: 90px; }

/* ── BOTTOM NAV (mobile) ──────────────────────────────────────── */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 850;
  background: rgba(255,255,255,.97); backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  padding: .4rem 1rem .6rem;
  justify-content: space-around; align-items: center;
}
@media (max-width:768px) { .bottom-nav { display: flex; } body { padding-bottom: 72px; } }
.bnav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: .4rem .8rem; border-radius: .75rem;
  font-size: .68rem; font-weight: 500; color: var(--muted-fg);
  transition: color .2s, background .2s;
}
.bnav-item svg { width: 22px; height: 22px; }
.bnav-item.active, .bnav-item:hover { color: var(--primary); background: hsl(20 85% 52% / .08); }

/* ── ACCOUNT PAGE ─────────────────────────────────────────────── */
.page-wrap { max-width: 860px; margin: calc(var(--nav-h) + 2.5rem) auto 5rem; padding: 0 1.5rem; }
.account-header { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2rem; }
.account-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--primary); flex-shrink: 0; }
.account-menu { display: flex; flex-direction: column; gap: .6rem; }
.account-menu a {
  display: flex; align-items: center; gap: .9rem;
  padding: 1rem 1.2rem; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-weight: 500; transition: border-color .2s, background .2s;
}
.account-menu a:hover { border-color: var(--primary); background: hsl(20 85% 52% / .04); }
.account-menu a svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.account-menu a.danger { color: #dc2626; }
.account-menu a.danger svg { color: #dc2626; }

/* ── ORDERS ───────────────────────────────────────────────────── */
.order-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; margin-bottom: .8rem;
  transition: border-color .2s;
}
.order-card:hover { border-color: var(--primary); }

/* ── TRACK ────────────────────────────────────────────────────── */
.track-steps { display: flex; flex-direction: column; gap: 0; margin-top: 1.5rem; }
.track-step  { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.4rem; position: relative; }
.track-step::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--border); }
.track-step:last-child::before { display: none; }
.track-step.done::before { background: var(--primary); }
.step-dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); background: var(--card); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.track-step.done .step-dot { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── BADGES ───────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: .25rem .75rem; border-radius: 99px; font-size: .75rem; font-weight: 600; }
.badge-pending  { background: #fff7ed; color: #c2410c; }
.badge-uploaded { background: #eff6ff; color: #1d4ed8; }
.badge-verified { background: #f0fdf4; color: #15803d; }
.badge-arriving { background: #f0f9ff; color: #0369a1; }
.badge-done     { background: #f0fdf4; color: #15803d; }
.badge-rejected { background: #fef2f2; color: #b91c1c; }

/* ── CUSTOM FRAME BUILDER ─────────────────────────────────────── */
.cf-wrap    { max-width: 700px; margin: calc(var(--nav-h) + 2.5rem) auto 5rem; padding: 0 1.5rem; }
.cf-stepper { display: flex; align-items: center; gap: 0; margin-bottom: 2.5rem; }
.cf-step-bar { flex: 1; height: 3px; background: var(--border); border-radius: 99px; transition: background .4s; }
.cf-step-bar.done { background: var(--primary); }
.cf-card { background: var(--card); border: 1px solid var(--border); border-radius: 1.25rem; padding: 2.2rem; }
.cf-card h2 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: .3rem; }
.cf-card .sub { color: var(--muted-fg); font-size: .88rem; margin-bottom: 1.8rem; }

.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 2.5rem; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.upload-zone:hover { border-color: var(--primary); background: hsl(20 85% 52% / .04); }
.upload-zone input { display: none; }

.frame-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 1rem; }
.frame-type-opt  { border: 2px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; cursor: pointer; transition: var(--transition); }
.frame-type-opt:has(input:checked), .frame-type-opt.selected { border-color: var(--primary); background: hsl(20 85% 52% / .06); }
.frame-type-opt input { display: none; }
.frame-type-opt p { font-size: .88rem; font-weight: 600; margin-top: .6rem; }

.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 1rem; }
.size-opt  { border: 2px solid var(--border); border-radius: var(--radius); padding: 1.2rem; text-align: center; cursor: pointer; transition: var(--transition); }
.size-opt:has(input:checked), .size-opt.selected { border-color: var(--primary); background: hsl(20 85% 52% / .06); }
.size-opt input { display: none; }
.size-opt .size-label { font-weight: 600; font-size: .9rem; }
.size-opt .size-dim   { color: var(--muted-fg); font-size: .82rem; margin: .2rem 0; }
.size-opt .size-price { color: var(--primary); font-weight: 700; font-size: 1.05rem; margin-top: .4rem; }

.invoice-row   { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.invoice-total { display: flex; justify-content: space-between; padding: .8rem 0; font-weight: 700; font-size: 1.1rem; color: var(--primary); }

/* ── PAYMENT / CHECKOUT ───────────────────────────────────────── */
.qr-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.qr-box img { width: 190px; height: 190px; margin: 0 auto 1rem; }
.upi-id { font-family: monospace; font-size: .95rem; font-weight: 600; color: var(--fg); background: var(--muted); padding: .4rem .9rem; border-radius: .5rem; display: inline-block; }

/* ── CONFIRM POPUP ────────────────────────────────────────────── */
.confirm-overlay { display: none; position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.6); align-items: center; justify-content: center; }
.confirm-overlay.open { display: flex; }
.confirm-box { background: #fff; border-radius: 1.5rem; padding: 3rem 2.5rem; text-align: center; max-width: 380px; box-shadow: 0 24px 80px rgba(0,0,0,.2); animation: modalIn .3s ease; }
.confirm-box .tick { font-size: 3.5rem; margin-bottom: .8rem; }
.confirm-box h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--fg); margin-bottom: .5rem; }
.confirm-box p  { color: var(--muted-fg); margin-bottom: 1.8rem; }

/* ── ADMIN ────────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; flex-shrink: 0; background: hsl(20 10% 10%); display: flex; flex-direction: column; }
.admin-sidebar .logo { padding: 1.4rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--font-display); font-size: 1.3rem; color: var(--primary); }
.admin-nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1.2rem; font-size: .87rem; font-weight: 500;
  color: rgba(255,255,255,.6); transition: background .2s, color .2s;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.07); color: #fff; }
.admin-main { flex: 1; background: hsl(30 15% 97%); padding: 2rem; overflow-y: auto; }
.admin-main h1 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 1.5rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.stat-val   { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-lbl   { font-size: .8rem; color: var(--muted-fg); margin-top: .15rem; }

/* ── DATA TABLE ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.dtbl  { width: 100%; border-collapse: collapse; font-size: .86rem; }
.dtbl th    { text-align: left; padding: .6rem .9rem; color: var(--muted-fg); font-weight: 600; border-bottom: 1px solid var(--border); }
.dtbl td    { padding: .65rem .9rem; border-bottom: 1px solid hsl(30 10% 92%); vertical-align: middle; }
.dtbl tr:hover td { background: hsl(30 15% 98%); }

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer { background: hsl(20 10% 10%); color: rgba(255,255,255,.7); padding: 4rem 1.5rem 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto 2.5rem; }
.footer-brand p   { font-size: .85rem; line-height: 1.7; margin-top: .5rem; }
.footer-logo-text { font-family: var(--font-display); font-size: 1.4rem; color: var(--primary); }
.footer-col h4    { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: .9rem; }
.footer-col a     { display: block; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: .45rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom    { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; color: rgba(255,255,255,.35); max-width: 1200px; margin: 0 auto; }

/* ── ADMIN LOGIN ──────────────────────────────────────────────── */
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: hsl(20 10% 8%); }
.admin-login-box  { background: hsl(20 10% 13%); border: 1px solid rgba(255,255,255,.08); border-radius: 1.25rem; padding: 2.5rem 2rem; width: min(400px, 96vw); }
.admin-login-box h1 { font-family: var(--font-display); color: var(--primary); font-size: 1.6rem; margin-bottom: .2rem; }
.admin-login-box p  { color: rgba(255,255,255,.45); font-size: .85rem; margin-bottom: 1.8rem; }
.admin-login-box .form-input { background: hsl(20 10% 18%); border-color: rgba(255,255,255,.1); color: #fff; }
.admin-login-box .form-input:focus { border-color: var(--primary); }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2,1fr); gap: .8rem; }
  .frame-type-grid, .size-grid { grid-template-columns: repeat(2,1fr); }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
}
