/* ═══════════════════════════════════════════════════════
   ShopEase v3 — Design System
   Aesthetic: Refined Minimal Commerce
   Font: Outfit (sans) + Fraunces (display)
═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&display=swap');

:root {
  /* Color palette */
  --ink:       #111111;
  --ink-soft:  #3d3d3d;
  --muted:     #787878;
  --border:    #e4e4e4;
  --surface:   #ffffff;
  --bg:        #f7f7f5;
  --bg2:       #efefec;
  --accent:    #d4472a;
  --accent-h:  #b83820;
  --accent-bg: #fdf1ee;
  --blue:      #2563eb;
  --green:     #16a34a;
  --amber:     #d97706;
  --red:       #dc2626;
  --purple:    #7c3aed;
  /* Spacing */
  --r-xs: 4px; --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px;
  /* Shadow */
  --s-xs: 0 1px 2px rgba(0,0,0,.06);
  --s-sm: 0 2px 8px rgba(0,0,0,.08);
  --s:    0 4px 20px rgba(0,0,0,.09);
  --s-lg: 0 8px 40px rgba(0,0,0,.12);
  --s-xl: 0 20px 60px rgba(0,0,0,.15);
  /* Typography */
  --font: 'Outfit', sans-serif;
  --serif: 'Fraunces', serif;
  --ease: cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: var(--font); }
::selection { background: var(--accent); color: #fff; }

/* ── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Layout ──────────────────────────────────── */
.wrap  { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.page  { padding: 32px 0 72px; }
.g-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.g-3   { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.g-4   { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.g-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 20px; }
.flex  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }

/* ── Topbar ──────────────────────────────────── */
.topbar { background: var(--ink); color: #9ca3af; font-size: 12.5px; padding: 9px 0; letter-spacing: .1px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.topbar a { color: inherit; transition: color .2s; } .topbar a:hover { color: #fff; }
.topbar i { color: var(--accent); margin-right: 5px; }
.topbar-links { display: flex; gap: 18px; }

/* ── Navbar ──────────────────────────────────── */
.navbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 500; }
.navbar .wrap { height: 66px; display: flex; align-items: center; gap: 20px; }
.logo { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--ink); flex-shrink: 0; letter-spacing: -.5px; }
.logo span { color: var(--accent); font-style: italic; }

.search-box { flex: 1; max-width: 520px; position: relative; }
.search-box form { display: flex; border: 2px solid var(--border); border-radius: 50px; overflow: hidden; transition: border-color .2s; background: var(--bg); }
.search-box form:focus-within { border-color: var(--accent); background: var(--surface); }
.search-box input { flex: 1; border: none; outline: none; padding: 10px 18px; font-size: 14px; background: transparent; color: var(--ink); }
.search-box button { background: var(--accent); border: none; padding: 0 20px; color: #fff; cursor: pointer; transition: background .2s; font-size: 14px; }
.search-box button:hover { background: var(--accent-h); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.ni { display: flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 50px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: all .2s; border: none; background: none; position: relative; }
.ni:hover { background: var(--bg); color: var(--ink); }
.ni i { font-size: 17px; }
.nb { position: absolute; top: 5px; right: 8px; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 3px; line-height: 1; }
.dropdown { position: relative; }
.dropdown-panel { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--s-lg); min-width: 200px; overflow: hidden; z-index: 600; }
.dropdown:hover .dropdown-panel { display: block; animation: fadeDown .15s var(--ease); }
@keyframes fadeDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.dp-item { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 13.5px; color: var(--ink); transition: background .15s; }
.dp-item:hover { background: var(--bg); }
.dp-item i { width: 16px; color: var(--muted); font-size: 13px; }
.dp-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Category bar ────────────────────────────── */
.catbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.catbar .wrap { display: flex; overflow-x: auto; scrollbar-width: none; gap: 0; }
.catbar::-webkit-scrollbar { display: none; }
.catbar a { display: flex; align-items: center; gap: 7px; padding: 11px 16px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; border-bottom: 2.5px solid transparent; transition: all .2s; }
.catbar a:hover, .catbar a.active { color: var(--accent); border-bottom-color: var(--accent); }
.catbar a i { font-size: 12px; }

/* ── Alert ───────────────────────────────────── */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.alert-s { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-e { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-i { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.alert-w { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.alert-close { margin-left: auto; background: none; border: none; cursor: pointer; opacity: .6; font-size: 16px; color: inherit; padding: 0; flex-shrink: 0; }
.alert-close:hover { opacity: 1; }
.alert i:first-child { flex-shrink: 0; margin-top: 1px; }

/* ── Badges ──────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; letter-spacing: .2px; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-warn    { background: #fef9c3; color: #854d0e; }
.badge-info    { background: #e0f2fe; color: #0369a1; }
.badge-blue    { background: #dbeafe; color: #1e40af; }
.badge-purple  { background: #ede9fe; color: #5b21b6; }
.badge-muted   { background: var(--bg2); color: var(--muted); border: 1px solid var(--border); }
.badge-accent  { background: var(--accent); color: #fff; }
.badge-dark    { background: var(--ink); color: #fff; }

/* ── Stars ───────────────────────────────────── */
.stars i { color: #f59e0b; font-size: 13px; }
.stars i.fa-regular { color: #d1d5db; }
.rating-cnt { font-size: 12px; color: var(--muted); }

/* ── Buttons ─────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 22px; border-radius: 50px; font-size: 14px; font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: all .2s var(--ease); letter-spacing: -.1px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn-accent  { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover  { background: var(--accent-h); border-color: var(--accent-h); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,71,42,.3); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost   { background: transparent; color: var(--ink-soft); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); }
.btn-success { background: var(--green); color: #fff; border-color: var(--green); }
.btn-danger  { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #b91c1c; }
.btn-sm  { padding: 6px 16px; font-size: 12.5px; border-radius: 50px; }
.btn-lg  { padding: 13px 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-sq { border-radius: var(--r-sm); padding: 9px 14px; }

/* ── Forms ───────────────────────────────────── */
.fg { margin-bottom: 18px; }
.flabel { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 6px; }
.fc { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-size: 14px; outline: none; transition: border-color .2s; background: var(--surface); color: var(--ink); }
.fc:focus { border-color: var(--accent); }
.fc[readonly] { background: var(--bg); color: var(--muted); }
.fc::placeholder { color: #bbb; }
.fhint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.ferr  { font-size: 12px; color: var(--red); margin-top: 4px; }
.fr-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fr-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ── Card ────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); }
.card-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.card-body { padding: 22px; }

/* ── Product card ────────────────────────────── */
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); position: relative; }
.pcard:hover { box-shadow: var(--s-lg); transform: translateY(-4px); }

/* Product image tile (icon fallback) */
.prod-icon-tile { display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border-radius: inherit; }
.pit-circle { position: absolute; width: 200%; height: 200%; border-radius: 50%; background: rgba(255,255,255,.07); bottom: -100%; right: -60%; pointer-events: none; }

.pcard-media { height: 210px; position: relative; overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-media .prod-icon-tile { height: 100%; font-size: 60px; }
.pcard-actions-overlay { position: absolute; bottom: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateX(8px); transition: all .25s var(--ease); }
.pcard:hover .pcard-actions-overlay { opacity: 1; transform: none; }
.pcard-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.pcard-wish { position: absolute; top: 10px; right: 10px; z-index: 2; }
.wish-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; color: var(--muted); transition: all .2s; }
.wish-btn:hover, .wish-btn.active { color: var(--red); border-color: var(--red); background: #fff; }

.pcard-body { padding: 16px; }
.pcard-cat  { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 5px; }
.pcard-name { font-size: 14.5px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.pcard-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.pcard-price .cur  { font-size: 19px; font-weight: 700; color: var(--ink); }
.pcard-price .orig { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.pcard-price .disc { font-size: 11.5px; font-weight: 700; color: var(--green); }
.pcard-foot { display: flex; gap: 8px; }
.pcard-foot .btn { flex: 1; padding: 9px; font-size: 13px; border-radius: var(--r-sm); }

/* ── Hero ────────────────────────────────────── */
.hero { background: var(--ink); color: #fff; border-radius: var(--r-xl); overflow: hidden; padding: 72px 60px; position: relative; margin-bottom: 44px; }
.hero-noise { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E"); pointer-events: none; }
.hero-glow { position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(212,71,42,.25) 0%, transparent 70%); border-radius: 50%; top: -150px; right: -100px; pointer-events: none; }
.hero-glow2 { position: absolute; width: 300px; height: 300px; background: radial-gradient(circle, rgba(37,99,235,.15) 0%, transparent 70%); border-radius: 50%; bottom: -80px; left: 200px; pointer-events: none; }
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.hero-eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--accent); }
.hero h1 { font-family: var(--serif); font-size: 3.4rem; line-height: 1.1; margin-bottom: 18px; max-width: 560px; font-weight: 600; letter-spacing: -1px; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero p { color: #9ca3af; font-size: 15.5px; margin-bottom: 34px; max-width: 440px; line-height: 1.75; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 52px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stat .n { font-size: 28px; font-weight: 700; font-family: var(--serif); }
.hero-stat .l { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: .6px; margin-top: 2px; }

/* ── Section ─────────────────────────────────── */
.sec { margin-bottom: 52px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.sec-head h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.4px; }
.sec-head h2 em { color: var(--accent); font-style: italic; }
.sec-head a { font-size: 13px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 5px; }

/* ── Category cards ──────────────────────────── */
.cat-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 22px 18px; display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 14px; transition: all .2s; cursor: pointer; }
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--s); }
.cat-icon-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 18px; flex-shrink: 0; transition: background .2s; }
.cat-card:hover .cat-icon-wrap { background: var(--accent); color: #fff; }

/* ── Filters ─────────────────────────────────── */
.filters-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fchip { padding: 6px 14px; border-radius: 99px; font-size: 12.5px; font-weight: 600; border: 1.5px solid var(--border); color: var(--muted); cursor: pointer; transition: all .2s; white-space: nowrap; }
.fchip:hover, .fchip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.fsep { width: 1px; height: 22px; background: var(--border); flex-shrink: 0; }

/* ── Cart table ──────────────────────────────── */
.cart-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-tbl { width: 100%; border-collapse: collapse; }
.cart-tbl th { background: var(--bg); padding: 11px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); border-bottom: 1px solid var(--border); }
.cart-tbl td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-tbl tr:last-child td { border: none; }
.cart-thumb { width: 60px; height: 60px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .prod-icon-tile { width: 100%; height: 100%; font-size: 24px; }

/* Qty */
.qty-wrap { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; width: fit-content; }
.qty-wrap input { width: 44px; text-align: center; border: none; outline: none; padding: 7px 4px; font-size: 14px; font-weight: 600; background: transparent; }
.qty-wrap button { width: 34px; height: 38px; border: none; background: var(--bg); cursor: pointer; font-size: 14px; transition: background .15s; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); }
.qty-wrap button:hover { background: var(--bg2); }

/* Order summary */
.osummary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; }
.osummary h3 { font-size: 16px; font-weight: 600; margin-bottom: 18px; letter-spacing: -.2px; }
.os-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.os-row:last-of-type { border: none; }
.os-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 0; margin-top: 6px; border-top: 2px solid var(--border); font-size: 17px; font-weight: 700; }
.free-badge { display: flex; align-items: center; gap: 6px; background: #dcfce7; color: #15803d; padding: 8px 12px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; }
.upsell-bar { display: flex; align-items: center; gap: 6px; background: #fef9c3; color: #854d0e; padding: 8px 12px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; }

/* Coupon */
.coupon-row { display: flex; gap: 8px; margin: 12px 0; }
.coupon-row input { flex: 1; padding: 9px 13px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; outline: none; }
.coupon-row input:focus { border-color: var(--accent); }
.coupon-applied { background: #dcfce7; color: #15803d; padding: 9px 13px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* ── Checkout ─────────────────────────────────── */
.co-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 13px; font-weight: 600; }
.step { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.step.done { color: var(--green); }
.step.active { color: var(--accent); }
.step-sep { color: var(--border); font-size: 10px; }
.pay-opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--r-lg); cursor: pointer; transition: all .2s; margin-bottom: 10px; }
.pay-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); }
.pay-opt input { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.pay-icon { width: 38px; height: 38px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }

/* ── Product detail ───────────────────────────── */
.pdp-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.pdp-gallery { position: sticky; top: 90px; }
.pdp-img-main { height: 460px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); }
.pdp-img-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-img-main .prod-icon-tile { height: 100%; font-size: 100px; }
.pdp-breadcrumb { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pdp-breadcrumb a { color: var(--accent); }
.pdp-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 8px; }
.pdp-name { font-family: var(--serif); font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.5px; margin-bottom: 14px; }
.pdp-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 13.5px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.pdp-price .cur  { font-size: 30px; font-weight: 700; }
.pdp-price .orig { font-size: 17px; color: var(--muted); text-decoration: line-through; }
.pdp-price .disc { padding: 4px 10px; border-radius: 99px; background: #dcfce7; color: var(--green); font-size: 13px; font-weight: 700; }
.pdp-desc { font-size: 14.5px; color: var(--muted); line-height: 1.8; margin-bottom: 22px; }
.pdp-stock-in  { display: inline-flex; align-items: center; gap: 6px; background: #dcfce7; color: var(--green); padding: 5px 13px; border-radius: 99px; font-size: 12.5px; font-weight: 600; margin-bottom: 18px; }
.pdp-stock-out { display: inline-flex; align-items: center; gap: 6px; background: #fee2e2; color: var(--red); padding: 5px 13px; border-radius: 99px; font-size: 12.5px; font-weight: 600; margin-bottom: 18px; }
.pdp-qty { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pdp-qty label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.pdp-btns { display: flex; gap: 10px; margin-bottom: 22px; }
.pdp-meta { display: flex; flex-direction: column; gap: 7px; padding: 16px 0; border-top: 1px solid var(--border); }
.pdp-meta-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.pdp-meta-row i { width: 16px; color: var(--accent); font-size: 13px; }

/* Reviews */
.review-card { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-card:last-child { border: none; }
.review-author { font-weight: 600; font-size: 14px; }
.review-date   { font-size: 12px; color: var(--muted); }
.review-text   { font-size: 14px; color: var(--ink-soft); margin-top: 6px; line-height: 1.65; }
.review-form { background: var(--bg); border-radius: var(--r-lg); padding: 20px; margin-top: 16px; }
.star-picker { display: flex; gap: 4px; margin-bottom: 12px; }
.star-picker input { display: none; }
.star-picker label { font-size: 22px; color: #d1d5db; cursor: pointer; transition: color .15s; }
.star-picker input:checked ~ label, .star-picker label:hover, .star-picker label:hover ~ label { color: #f59e0b; }

/* ── Breadcrumb ───────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a { color: var(--accent); }
.breadcrumb i { font-size: 9px; opacity: .5; }

/* ── Order cards ──────────────────────────────── */
.ocard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; margin-bottom: 14px; }
.ocard-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--bg); border-bottom: 1px solid var(--border); gap: 12px; flex-wrap: wrap; }
.ocard-body { padding: 18px 20px; }
.ocard-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.ocard-item:last-child { border: none; }
.ocard-thumb { width: 46px; height: 46px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; }
.ocard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ocard-thumb .prod-icon-tile { width: 100%; height: 100%; font-size: 20px; }

/* Track */
.track-bar { display: flex; align-items: flex-start; gap: 0; margin: 20px 0; }
.track-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.track-step:not(:last-child)::after { content: ''; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.track-step.done:not(:last-child)::after { background: var(--green); }
.track-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 12px; z-index: 1; color: var(--muted); }
.track-step.done .track-dot { background: var(--green); border-color: var(--green); color: #fff; }
.track-step.active .track-dot { border-color: var(--accent); color: var(--accent); }
.track-label { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; margin-top: 6px; }
.track-step.done .track-label { color: var(--green); }
.track-step.active .track-label { color: var(--accent); }

/* ── Auth ─────────────────────────────────────── */
.auth-page { min-height: 78vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 42px; width: 100%; max-width: 450px; box-shadow: var(--s-xl); }
.auth-logo { text-align: center; font-family: var(--serif); font-size: 26px; font-weight: 700; margin-bottom: 28px; }
.auth-logo span { color: var(--accent); font-style: italic; }
.auth-card h2 { font-size: 22px; font-weight: 600; margin-bottom: 4px; letter-spacing: -.3px; }
.auth-card p { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.auth-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.auth-footer a { color: var(--accent); font-weight: 600; }
.demo-creds { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.demo-creds strong { color: var(--ink-soft); }

/* ── Empty state ──────────────────────────────── */
.empty { text-align: center; padding: 80px 24px; }
.empty-icon { width: 76px; height: 76px; background: var(--bg2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--muted); margin: 0 auto 20px; }
.empty h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.2px; }
.empty p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ── Trust bar ────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 14px; margin: 44px 0 0; }
.trust-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 18px; display: flex; align-items: flex-start; gap: 14px; }
.trust-icon { width: 42px; height: 42px; background: var(--accent-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 18px; flex-shrink: 0; }
.trust-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.trust-item p  { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ── User Panel ───────────────────────────────── */
.user-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.user-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; position: sticky; top: 90px; }
.user-sidebar-head { padding: 22px; text-align: center; border-bottom: 1px solid var(--border); }
.user-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; font-family: var(--serif); font-weight: 600; margin: 0 auto 12px; overflow: hidden; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.user-email { font-size: 12px; color: var(--muted); }
.user-nav { padding: 10px; }
.user-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: all .2s; }
.user-nav a:hover { background: var(--bg); color: var(--ink); }
.user-nav a.active { background: var(--accent-bg); color: var(--accent); font-weight: 600; }
.user-nav a i { width: 18px; font-size: 14px; }
.user-nav .nav-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ── Footer ───────────────────────────────────── */
.footer { background: var(--ink); color: #9ca3af; margin-top: 80px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; padding: 56px 0 48px; }
.footer-col .fl { font-family: var(--serif); font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; display: block; }
.footer-col .fl span { color: var(--accent); font-style: italic; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #d1d5db; margin-bottom: 14px; }
.footer-col p  { font-size: 13.5px; line-height: 1.8; margin-bottom: 6px; }
.footer-col p i { color: var(--accent); width: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 13.5px; transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.07); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: background .2s; }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; }

/* ══════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════ */
body.admin-body { background: #f1f1ef; }
.adm-wrap { display: flex; min-height: 100vh; }

/* Sidebar */
.adm-sidebar { width: 240px; flex-shrink: 0; background: #111; position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; display: flex; flex-direction: column; z-index: 700; }
.adm-logo { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.adm-logo a { font-family: var(--serif); font-size: 20px; font-weight: 700; color: #fff; display: block; letter-spacing: -.3px; }
.adm-logo a span { color: var(--accent); font-style: italic; }
.adm-logo small { font-size: 11px; color: #6b7280; display: block; margin-top: 2px; }
.adm-section { padding: 14px 16px 4px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: #4b5563; }
.adm-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 2px 8px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: #9ca3af; transition: all .15s; }
.adm-nav a i { width: 18px; font-size: 14px; color: #6b7280; }
.adm-nav a:hover { background: rgba(255,255,255,.06); color: #e5e7eb; }
.adm-nav a:hover i { color: #d1d5db; }
.adm-nav a.active { background: var(--accent); color: #fff; }
.adm-nav a.active i { color: #fff; }
.adm-nav-badge { margin-left: auto; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.adm-footer { margin-top: auto; padding: 12px 8px; border-top: 1px solid rgba(255,255,255,.07); }
.adm-footer a { display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 8px; font-size: 13px; color: #9ca3af; transition: all .15s; }
.adm-footer a:hover { background: rgba(255,255,255,.06); color: #e5e7eb; }
.adm-footer a i { width: 16px; }

/* Main */
.adm-main { margin-left: 240px; flex: 1; min-height: 100vh; }
.adm-topbar { background: #fff; border-bottom: 1px solid #e5e7eb; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 200; box-shadow: var(--s-xs); }
.adm-topbar h1 { font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
.adm-breadcrumb { font-size: 12px; color: #9ca3af; margin-top: 1px; }
.adm-content { padding: 26px 28px; }

/* Stat cards */
.adm-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 26px; }
.scard { background: #fff; border-radius: var(--r-lg); border: 1px solid #e5e7eb; padding: 20px; display: flex; align-items: center; gap: 16px; transition: box-shadow .2s; }
.scard:hover { box-shadow: var(--s); }
.scard-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.si-orange { background: #fff7ed; color: #ea580c; }
.si-blue   { background: #eff6ff; color: #2563eb; }
.si-green  { background: #f0fdf4; color: #16a34a; }
.si-purple { background: #faf5ff; color: #7c3aed; }
.si-red    { background: #fff1f2; color: #e11d48; }
.si-teal   { background: #f0fdfa; color: #0d9488; }
.scard-info p { font-size: 12px; color: #6b7280; font-weight: 500; margin-bottom: 3px; }
.scard-info h3 { font-size: 22px; font-weight: 700; letter-spacing: -.3px; color: #111; }
.scard-info .sub { font-size: 11.5px; color: #9ca3af; margin-top: 2px; }

/* Admin table */
.atw { background: #fff; border-radius: var(--r-lg); border: 1px solid #e5e7eb; overflow: hidden; }
.at-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e5e7eb; gap: 12px; flex-wrap: wrap; }
.at-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.dt { width: 100%; border-collapse: collapse; }
.dt th { background: #f9fafb; padding: 11px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #6b7280; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.dt td { padding: 13px 16px; font-size: 13.5px; border-bottom: 1px solid #f3f4f6; color: #374151; vertical-align: middle; }
.dt tbody tr:last-child td { border: none; }
.dt tbody tr:hover td { background: #f9fafb; }
.ta { display: flex; gap: 6px; align-items: center; }

/* Admin product icon preview */
.picon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.picon i { font-size: 18px; }
.pimg-thumb { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }

/* Admin form card */
.afc { background: #fff; border-radius: var(--r-lg); border: 1px solid #e5e7eb; }
.afc-head { padding: 16px 20px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; }
.afc-head h3 { font-size: 15px; font-weight: 600; }
.afc-body { padding: 20px; }

/* Admin image upload */
.img-drop { border: 2px dashed var(--border); border-radius: var(--r-lg); padding: 24px; text-align: center; cursor: pointer; transition: all .2s; background: var(--bg); }
.img-drop:hover { border-color: var(--accent); background: var(--accent-bg); }
.img-drop i { font-size: 28px; color: var(--muted); margin-bottom: 8px; display: block; }
.img-drop p { font-size: 13px; color: var(--muted); }
.img-preview { width: 100%; height: 160px; object-fit: cover; border-radius: var(--r); margin-top: 10px; border: 1px solid var(--border); }

/* Chart placeholder */
.chart-box { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--r-lg); padding: 20px; }
.chart-box h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.mini-bar { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.mbar { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .7; min-height: 4px; transition: opacity .2s; }
.mbar:hover { opacity: 1; }
.mbar-label { font-size: 10px; color: #9ca3af; text-align: center; margin-top: 4px; }

/* ── Responsive ───────────────────────────────── */
@media(max-width:1100px) { .footer-inner { grid-template-columns: 1fr 1fr; } .adm-stats { grid-template-columns: repeat(2,1fr); } }
@media(max-width:900px)  { .pdp-wrap, .cart-wrap, .co-wrap { grid-template-columns: 1fr; } .user-layout { grid-template-columns: 1fr; } .user-sidebar { position: static; } }
@media(max-width:768px)  { .hero { padding: 44px 28px; } .hero h1 { font-size: 2.2rem; } .hero-stats { gap: 24px; } .g-4 { grid-template-columns: repeat(2,1fr); } .footer-inner { grid-template-columns: 1fr 1fr; } .adm-sidebar { width: 56px; overflow: visible; } .adm-sidebar .adm-logo small, .adm-section, .adm-nav a span, .adm-footer span { display: none; } .adm-nav a { padding: 10px; margin: 2px; justify-content: center; } .adm-nav a i { width: auto; } .adm-main { margin-left: 56px; } }
@media(max-width:540px)  { .g-auto { grid-template-columns: repeat(2,1fr); } .pcard-media { height: 160px; } .adm-stats { grid-template-columns: 1fr 1fr; } }

/* ── Utilities ────────────────────────────────── */
.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-sm     { font-size: 12.5px; }
.text-xs     { font-size: 11px; }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.strike      { text-decoration: line-through; }
.divider     { height: 1px; background: var(--border); margin: 18px 0; }
.mt-4{margin-top:4px} .mt-8{margin-top:8px} .mt-12{margin-top:12px} .mt-16{margin-top:16px} .mt-20{margin-top:20px} .mt-24{margin-top:24px}
.mb-4{margin-bottom:4px} .mb-8{margin-bottom:8px} .mb-12{margin-bottom:12px} .mb-16{margin-bottom:16px} .mb-20{margin-bottom:20px} .mb-24{margin-bottom:24px}
.p-0{padding:0} .hidden{display:none!important}
