/* ============================================================
   DSA SHOP — Design System
   Premium E-Commerce: CSS variables, light/dark themes
   ============================================================ */

:root {
  /* Brand tokens */
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-800: #3730a3;
  --brand-900: #312e81;

  --secondary-50: #fdf2f8;
  --secondary-500: #ec4899;
  --secondary-600: #db2777;
  --secondary-700: #be185d;

  --accent-50: #fff7ed;
  --accent-500: #f97316;
  --accent-600: #ea580c;
  --accent-700: #c2410c;

  --success: #10b981;
  --success-50: #ecfdf5;
  --success-100: #d1fae5;
  --success-200: #a7f3d0;
  --success-500: #10b981;
  --success-700: #047857;
  --warning: #f59e0b;
  --warning-50: #fffbeb;
  --warning-100: #fef3c7;
  --warning-500: #f59e0b;
  --warning-700: #b45309;
  --danger: #ef4444;
  --danger-50: #fef2f2;
  --danger-100: #fee2e2;
  --danger-500: #ef4444;
  --danger-600: #dc2626;
  --info: #0ea5e9;
  --info-50: #f0f9ff;
  --info-100: #e0f2fe;

  --gold: #f59e0b;

  /* Neutrals — light mode */
  --bg: #f6f5f9;
  --bg-soft: #fbfbfe;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-hover: #f4f4fb;
  --border: #e7e6f0;
  --border-strong: #d8d7e6;
  --text: #17143a;
  --text-2: #4b4775;
  --text-3: #817da6;
  --text-inverse: #ffffff;

  --shadow-xs: 0 1px 2px rgb(16 13 60 / 0.05);
  --shadow-sm: 0 2px 8px rgb(16 13 60 / 0.05);
  --shadow-md: 0 6px 22px rgb(16 13 60 / 0.08);
  --shadow-lg: 0 14px 44px rgb(16 13 60 / 0.12);
  --shadow-brand: 0 8px 24px rgb(79 70 229 / 0.28);

  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 999px;

  --font: 'Inter', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 68px;

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0c0a1c;
  --bg-soft: #100e24;
  --surface: #161433;
  --surface-2: #1b1839;
  --surface-hover: #201d42;
  --border: #282448;
  --border-strong: #36305e;
  --text: #f1effc;
  --text-2: #bdb7e2;
  --text-3: #857fae;
  --text-inverse: #0c0a1c;

  --brand-400: #a5b4fc;
  --brand-500: #818cf8;
  --brand-600: #6d77f0;

  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-sm: 0 2px 10px rgb(0 0 0 / 0.35);
  --shadow-md: 0 8px 26px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 16px 50px rgb(0 0 0 / 0.5);
  --shadow-brand: 0 8px 26px rgb(79 70 229 / 0.35);

  color-scheme: dark;
}

/* ---- Base ---- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

/* Desktop: keep page width fixed so Ctrl+mouse-wheel zoom scrolls up/down
   instead of squeezing the layout sideways. Mobile stays responsive. */
@media (min-width: 1081px) {
  html { overflow-x: auto; }
  body { min-width: 1280px; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--text); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 1080px; }

.section { padding: 28px 0; }
.section-sm { padding: 20px 0; }

/* Focus visible for accessibility */
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 20px; height: 46px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: all 0.22s ease; white-space: nowrap; user-select: none;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: #fff; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgb(79 70 229 / 0.4); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-600), var(--secondary-500));
  color: #fff;
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgb(219 39 119 / 0.35); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
  color: #fff;
}
.btn-accent:hover { transform: translateY(-2px); }

.btn-ghost { background: var(--surface-hover); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand-400); color: var(--brand-600); }

.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--brand-500); color: var(--brand-600); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(0.95); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(0.95); }

.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); transition: all 0.2s ease; position: relative;
}
.icon-btn:hover { color: var(--brand-600); border-color: var(--brand-400); transform: translateY(-1px); }

/* ---- Cards ---- */
.card {
  background: #fff; border: 2px solid #e0e7ff;
  border-radius: var(--radius-lg); box-shadow: 0 2px 8px rgb(99 102 241 / 0.04);
}
.card-pad { padding: 24px; }
.card:hover { box-shadow: 0 4px 16px rgb(99 102 241 / 0.1); border-color: #c7d2fe; }
.card-head { padding: 14px 20px; font-weight: 700; font-size: 15px; color: var(--brand-700); border-bottom: 2px solid #eef2ff; background: linear-gradient(135deg, #faf9ff, #f5f3ff); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.card-body { padding: 18px 20px; }

/* Section headings */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.section-title { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; position: relative; padding-left: 16px; }
.section-title::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px;
  border-radius: 4px; background: linear-gradient(180deg, var(--brand-500), var(--accent-500));
}
.section-subtitle { color: var(--text-3); margin-top: 4px; }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; letter-spacing: 0.01em;
}
.badge-brand { background: var(--brand-100); color: var(--brand-700); }
.badge-primary { background: var(--brand-50); color: var(--brand-600); }
.badge-success { background: var(--success-100); color: #047857; }
.badge-warning { background: var(--warning-100); color: #b45309; }
.badge-danger { background: var(--danger-100); color: #b91c1c; }
.badge-info { background: var(--info-100); color: #0369a1; }
.badge-accent { background: var(--accent-50); color: var(--accent-600); }
.badge-rose { background: var(--secondary-50); color: var(--secondary-600); }
.badge-muted { background: var(--surface-hover); color: var(--text-3); }
.badge-secondary { background: var(--brand-100); color: var(--brand-700); }

html[data-theme="dark"] .badge-brand { background: rgb(99 102 241 / 0.18); color: var(--brand-400); }
html[data-theme="dark"] .badge-success { background: rgb(16 185 129 / 0.15); color: #6ee7b7; }
html[data-theme="dark"] .badge-warning { background: rgb(245 158 11 / 0.15); color: #fcd34d; }
html[data-theme="dark"] .badge-danger { background: rgb(239 68 68 / 0.15); color: #fca5a5; }
html[data-theme="dark"] .badge-info { background: rgb(14 165 233 / 0.15); color: #7dd3fc; }
html[data-theme="dark"] .badge-accent { background: rgb(249 115 22 / 0.15); color: #fdba74; }
html[data-theme="dark"] .badge-rose { background: rgb(236 72 153 / 0.15); color: #f9a8d4; }

html[data-theme="dark"] .badge-brand,
html[data-theme="dark"] .badge-primary,
html[data-theme="dark"] .badge-success,
html[data-theme="dark"] .badge-warning,
html[data-theme="dark"] .badge-danger,
html[data-theme="dark"] .badge-info,
html[data-theme="dark"] .badge-accent,
html[data-theme="dark"] .badge-rose,
html[data-theme="dark"] .badge-muted { background: var(--surface-2); color: var(--text-2); }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.field-error { font-size: 12.5px; color: var(--danger); }

.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px;
  background: var(--surface); border: 1.5px solid var(--border-strong);
  border-radius: 12px; transition: all 0.2s ease;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgb(99 102 241 / 0.15);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input-error { border-color: var(--danger) !important; }

.radio-card, .choice-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s ease; background: var(--surface);
}
.radio-card:hover, .choice-card:hover { border-color: var(--brand-400); }
.radio-card.active, .choice-card.active { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgb(99 102 241 / 0.12); background: var(--brand-50); }

/* ---- Alerts / Toast ---- */
.alert { padding: 14px 16px; border-radius: var(--radius); font-size: 14.5px; font-weight: 500; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--success-50); border-color: var(--success-100); color: #047857; }
.alert-error, .alert-danger { background: var(--danger-50); border-color: var(--danger-100); color: #b91c1c; }
.alert-warning { background: var(--warning-50); border-color: var(--warning-100); color: #b45309; }
.alert-info { background: var(--info-50); border-color: var(--info-100); color: #0369a1; }

html[data-theme="dark"] .alert-success { background: rgb(16 185 129 / 0.12); color: #6ee7b7; border-color: transparent; }
html[data-theme="dark"] .alert-error { background: rgb(239 68 68 / 0.12); color: #fca5a5; border-color: transparent; }
html[data-theme="dark"] .alert-warning { background: rgb(245 158 11 / 0.12); color: #fcd34d; border-color: transparent; }
html[data-theme="dark"] .alert-info { background: rgb(14 165 233 / 0.12); color: #7dd3fc; border-color: transparent; }

/* Toast container */
.toast-wrap { position: fixed; top: 82px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand-500);
  border-radius: 14px; padding: 13px 16px; box-shadow: var(--shadow-lg);
  animation: toast-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1); display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 35%, #4338ca 70%, #4f46e5 100%);
  box-shadow: 0 2px 0 rgb(255 255 255 / 0.06), 0 6px 24px rgb(30 27 75 / 0.45);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: #fff; }
.logo img { height: 38px; width: auto; border-radius: 10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #1e1b4b, #4338ca 55%, #a21caf);
  font-weight: 900; font-size: 1.05rem; box-shadow: var(--shadow-brand);
}

.search-bar {
  flex: 1; max-width: 620px; display: flex; align-items: center;
  background: rgb(255 255 255 / 0.15); border: 1.5px solid rgb(255 255 255 / 0.25);
  border-radius: var(--radius-pill); padding: 0 5px 0 14px; height: 36px; transition: all 0.2s ease;
}
.search-bar:focus-within { border-color: #fff; box-shadow: 0 0 0 4px rgb(255 255 255 / 0.2); background: rgb(255 255 255 / 0.22); }
.search-bar input { flex: 1; border: none; background: transparent; outline: none; height: 100%; color: #fff; }
.search-bar input::placeholder { color: rgb(255 255 255 / 0.6); }
.search-bar button {
  background: linear-gradient(135deg, #f97316, #ec4899); color: #fff;
  height: 28px; padding: 0 13px; border-radius: var(--radius-pill); border: none; font-weight: 600; font-size: 12.5px;
}

.nav-link { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: rgb(255 255 255 / 0.85); padding: 8px 10px; border-radius: 10px; transition: all 0.2s ease; position: relative; }
.nav-link:hover { color: #fff; background: rgb(255 255 255 / 0.15); }
.nav-count {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px;
  background: linear-gradient(135deg, var(--accent-500), var(--danger));
  color: #fff; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700;
  display: grid; place-items: center; padding: 0 5px;
}

/* Cart trolley icon: plain yellow icon, no background/box */
.cart-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; border: none; background: none; padding: 0; cursor: pointer;
  color: #ffd60a; line-height: 0; transition: color 0.2s ease;
}
.cart-icon-btn:hover { color: #fff3a0; }
.cart-icon-btn svg { display: block; }
.cart-count {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px;
  background: var(--danger); color: #fff; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px;
}

/* Category nav row */
.cat-nav { background: linear-gradient(135deg, #4338ca, #6366f1, #818cf8); overflow-x: auto; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-inner { display: flex; gap: 4px; padding: 8px 0; }
.cat-link { white-space: nowrap; padding: 7px 14px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 600; color: rgb(255 255 255 / 0.8); transition: all 0.2s; }
.cat-link:hover, .cat-link.active { background: rgb(255 255 255 / 0.2); color: #fff; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; margin: 6px auto 0; max-width: 1280px; height: 300px; display: block; isolation: isolate; border-radius: 18px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgb(16 14 64 / 0.5) 0%, rgb(67 56 202 / 0.38) 45%, rgb(219 39 119 / 0.18) 85%); }
.hero-content { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; padding: 24px 48px 22px; color: #fff; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; }
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; background: rgb(255 255 255 / 0.16); backdrop-filter: blur(6px); border: 1px solid rgb(255 255 255 / 0.25); padding: 4px 12px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-title { font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 900; letter-spacing: -0.03em; color: #fff; margin: 10px 0 8px; line-height: 1.1; }
.hero-subtitle { font-size: 0.95rem; color: rgb(255 255 255 / 0.85); margin-bottom: 14px; max-width: 460px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-ctas .btn { height: 30px; padding: 0 14px; font-size: 12.5px; gap: 6px; border-radius: 8px; }
.hero-ctas .btn svg { width: 14px; height: 14px; }

.btn-white { background: #fff; color: var(--brand-700); box-shadow: 0 10px 26px rgb(0 0 0 / 0.2); }
.btn-white:hover { transform: translateY(-2px); }
.btn-glass { background: rgb(255 255 255 / 0.13); border: 1px solid rgb(255 255 255 / 0.35); color: #fff; backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgb(255 255 255 / 0.22); }

/* ---- Product card ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 24px; }
.product-grid.cols-5 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.p-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.p-media { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2, #f1f3f5); display: block; }
.p-media img { width: 100%; height: 100%; object-fit: cover; padding: 0; transition: transform 0.5s ease; }
.p-card:hover .p-media img { transform: scale(1.06); }

.p-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; z-index: 3; }
.p-badge { padding: 2px 7px; font-size: 9.5px; font-weight: 800; border-radius: 6px; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.14); opacity: 0.9; }
.p-badge.new { background: linear-gradient(135deg, var(--success), #059669); }
.p-badge.sale { background: linear-gradient(135deg, var(--danger), var(--accent-500)); }
.p-badge.hot { background: linear-gradient(135deg, var(--accent-500), var(--danger)); }
.p-badge.best-seller { background: linear-gradient(135deg, var(--brand-600), var(--brand-400)); }
.p-badge.featured { background: linear-gradient(135deg, var(--secondary-600), var(--secondary-500)); }
.p-badge.limited { background: linear-gradient(135deg, var(--warning), var(--accent-600)); }

.p-media .wish-btn { position: absolute; top: 8px; right: 8px; z-index: 4; width: 27px; height: 27px; background: rgb(255 255 255 / 0.9); box-shadow: 0 1px 4px rgb(0 0 0 / 0.16); color: var(--text); opacity: 0.85; }
.p-media .wish-btn:hover { background: #fff; opacity: 1; }
.wish-btn.active { color: var(--danger); background: var(--danger-50); border-color: var(--danger-100); opacity: 1; }

.p-body { padding: 9px 12px 11px; display: flex; flex-direction: column; gap: 2px; flex: 1; background: var(--surface); }

.p-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand-500); }
.p-brand { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.p-name { font-size: 14px; font-weight: 800; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-name:hover { color: var(--brand-600); }
.p-desc { font-size: 11px; color: var(--text-3); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.p-rating { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }

.stars { display: inline-flex; align-items: center; gap: 1px; color: #f59e0b; }
.stars .dim { color: var(--border-strong); }

.p-price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p-price { font-size: 0.98rem; font-weight: 800; color: var(--text); }
.p-price-old { font-size: 12px; color: var(--text-3); text-decoration: line-through; }
.p-disc { font-size: 11px; font-weight: 800; color: var(--success); }

.p-stock { font-size: 10.5px; font-weight: 600; }
.p-stock.in-stock { color: var(--success); }
.p-stock.low-stock { color: var(--warning); }
.p-stock.out-of-stock { color: var(--danger); }

.p-actions-row { display: flex; gap: 8px; margin-top: auto; padding-top: 3px; }
.p-actions-row button, .p-actions-row a { flex: 1; height: 30px; border-radius: 9px; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; transition: all 0.2s ease; }
.p-add { background: linear-gradient(135deg, #f97316, #ec4899); color: #fff; border: none; }
.p-add:hover { box-shadow: 0 6px 18px rgb(249 115 22 / 0.5); transform: translateY(-1px); }
.p-add:disabled { background: var(--surface-hover); color: var(--text-3); cursor: not-allowed; box-shadow: none; transform: none; }
.p-order { background: var(--brand-600); color: #fff; border: none; box-sizing: border-box; }
.p-order:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: 0 6px 18px rgb(79 70 229 / 0.4); }

/* Stock progress */
.stock-bar { height: 5px; background: var(--surface-hover); border-radius: var(--radius-pill); overflow: hidden; }
.stock-bar > i { display: block; height: 100%; border-radius: var(--radius-pill); }

/* ---- Category cards ---- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.cat-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; display: block; box-shadow: var(--shadow-sm); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1); }
.cat-card:hover img { transform: scale(1.08); }
.cat-card .cat-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px; background: linear-gradient(180deg, transparent 35%, rgb(8 6 34 / 0.78)); color: #fff;
}
.cat-card .cat-name { font-weight: 800; font-size: 1rem; color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / 0.3); }
.cat-card .cat-count { font-size: 12px; color: rgb(255 255 255 / 0.85); }
.cat-card .cat-chip { margin-top: 8px; align-self: flex-start; background: #fff; color: var(--brand-700); padding: 4px 10px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* ---- Page hero (banner) ---- */
.page-hero { background: linear-gradient(120deg, var(--brand-700), var(--brand-500) 45%, var(--secondary-600)); color: #fff; border-radius: var(--radius-xl); padding: 46px 36px; margin: 22px 0 28px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgb(255 255 255 / 0.1); }
.page-hero::before { content: ""; position: absolute; right: 40px; bottom: -90px; width: 200px; height: 200px; border-radius: 50%; background: rgb(0 0 0 / 0.12); }
.page-hero h1 { color: #fff; font-size: 1.9rem; font-weight: 900; }
.page-hero p { color: rgb(255 255 255 / 0.85); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgb(255 255 255 / 0.75); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a:hover { color: #fff; }

/* ---- Filters ---- */
.filters-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: 84px; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 { font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin-bottom: 12px; }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; color: var(--text-2); }
.filter-option:hover { color: var(--text); }
.filter-option input { accent-color: var(--brand-600); width: 16px; height: 16px; }

/* Range slider */
.range-inputs { display: flex; gap: 10px; align-items: center; }
.range-inputs input { width: 100%; }

/* ---- Skeleton ---- */
.skeleton { background: linear-gradient(90deg, var(--surface-hover) 25%, var(--border) 50%, var(--surface-hover) 75%); background-size: 400% 100%; animation: skeleton 1.4s ease infinite; border-radius: 10px; }
@keyframes skeleton { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sk-card { border-radius: var(--radius-lg); padding: 1px; }
.sk-image { aspect-ratio: 4/3; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.sk-line { height: 14px; margin: 10px 14px; }
.sk-line.short { width: 45%; }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-icon { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-500); font-size: 2.2rem; }
.empty-state h3 { margin: 0; font-size: 1.2rem; }
.empty-state p { color: var(--text-3); max-width: 380px; margin: 0; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 2px solid #e0e7ff; background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th { text-align: left; padding: 13px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #4338ca; background: linear-gradient(135deg, #eef2ff, #e0e7ff); font-weight: 700; white-space: nowrap; border-bottom: 2px solid #c7d2fe; }
.table td { padding: 13px 16px; border-top: 1px solid #eef2ff; border-bottom: 1px solid #f1f0fb; vertical-align: middle; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: #f5f3ff; }
@media (max-width: 860px) {
  .table { font-size: 12px; }
  .table.table-recent { display: block; min-width: 0; font-size: 12px; }
  .table.table-recent thead { display: none; }
  .table.table-recent tbody { display: block; }
  .table.table-recent tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
  }
  .table.table-recent td { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; font-size: 12px; }
  .table.table-recent td:first-child { flex: 1 1 auto; white-space: nowrap; }
  .table.table-recent .badge { font-size: 10px; padding: 3px 8px; }
  .table.table-items { display: block; min-width: 0; }
  .table.table-items thead { display: none; }
  .table.table-items tbody { display: block; }
  .table.table-items tbody tr {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
  }
  .table.table-items td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    border: 0;
    font-size: 12px;
  }
  .table.table-items td::before {
    content: attr(data-label);
    color: var(--text-3);
    font-weight: 500;
    flex-shrink: 0;
  }
  .table.table-items td:first-child {
    display: block;
    font-weight: 600;
    font-size: 13px;
    padding-bottom: 6px;
  }
  .table.table-items td:first-child::before { display: none; }
  .table.table-items td:last-child { font-weight: 700; }
  .table.table-items tfoot tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 16px;
    padding: 8px 12px;
  }
  .table.table-items tfoot td {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 2px 0;
    border: 0;
    font-size: 12px;
  }
  .table.table-items tfoot td[data-label] { display: block; font-size: 0; }
  .table.table-items tfoot td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    text-align: right;
  }
  .table.table-orders { display: block; min-width: 0; }
  .table.table-orders thead { display: none; }
  .table.table-orders tbody { display: block; }
  .table.table-orders tbody tr {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
  }
  .table.table-orders td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    border: 0;
    font-size: 12px;
  }
  .table.table-orders td::before {
    content: attr(data-label);
    color: var(--text-3);
    font-weight: 500;
    flex-shrink: 0;
  }
  .table.table-orders td:first-child { display: block; font-weight: 700; font-size: 13px; padding-bottom: 2px; }
  .table.table-orders td:first-child::before { display: none; }
  .table.table-orders td:nth-child(4) { font-weight: 700; }
  .table.table-orders td:last-child {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f1f0fb;
  }
  .table.table-orders td:last-child::before { display: none; }
  .table.table-stack { display: block; min-width: 0; }
  .table.table-stack thead { display: none; }
  .table.table-stack tbody { display: block; }
  .table.table-stack tbody tr {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
  }
  .table.table-stack td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    border: 0;
    font-size: 12px;
  }
  .table.table-stack td::before {
    content: attr(data-label);
    color: var(--text-3);
    font-weight: 500;
    flex-shrink: 0;
  }
  .table.table-stack td:first-child { display: block; font-weight: 600; font-size: 13px; padding-bottom: 4px; }
  .table.table-stack td:first-child::before { display: none; }
  .table.table-stack td:last-child {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f1f0fb;
  }
  .table.table-stack td:last-child::before { display: none; }
  .table.table-stack td[colspan] {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
  }
  .table.table-stack td[colspan]::before { display: none; }
  .admin-content .grid-2 { grid-template-columns: 1fr; }
  .admin-content .flex { flex-wrap: wrap; }
}

/* ---- Pagination ---- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; font-size: 14px; font-weight: 600; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2);
}
.pagination a:hover { border-color: var(--brand-500); color: var(--brand-600); }
.pagination .active { background: linear-gradient(135deg, var(--brand-600), var(--brand-500)); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }

/* ---- Modal ---- */
.modal-backdrop { position: fixed; inset: 0; background: rgb(8 6 34 / 0.55); backdrop-filter: blur(4px); z-index: 300; display: grid; place-items: center; padding: 20px; animation: fade-in 0.2s ease; }
.modal { background: var(--surface); border-radius: var(--radius-xl); max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modal-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 2; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.modal-head h3 { margin: 0; font-size: 1.1rem; }
.modal-body { padding: 22px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---- Drawer (cart) ---- */
.drawer-backdrop { position: fixed; inset: 0; background: rgb(8 6 34 / 0.5); backdrop-filter: blur(3px); z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--surface); z-index: 310; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1); display: flex; flex-direction: column; color: var(--text); }
.drawer.open { transform: none; }
.drawer-head { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { border-top: 1px solid var(--border); padding: 16px 20px; background: var(--surface); }

/* Cart line item */
.cart-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.cart-line img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.cart-line .cl-info { flex: 1; min-width: 0; }
.cart-line .cl-name { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.cart-line .cl-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.qty-ctl { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-ctl button { width: 30px; height: 30px; background: var(--surface-hover); border: none; font-weight: 700; color: var(--text); }
.qty-ctl button:hover { background: var(--brand-50); color: var(--brand-600); }
.qty-ctl span { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; }

/* ---- Product detail (gallery/grid styles consolidated further below) ---- */

.option-chip { border: 1.5px solid var(--border-strong); background: var(--surface); border-radius: 12px; padding: 9px 16px; font-weight: 600; font-size: 13.5px; transition: all 0.18s; color: var(--text); }
.option-chip:hover { border-color: var(--brand-400); }
.option-chip.active { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); box-shadow: 0 0 0 3px rgb(99 102 241 / 0.15); }
.option-chip.unavailable { opacity: 0.4; text-decoration: line-through; pointer-events: none; }
.option-chip.unavailable::after { content: "  ×"; color: var(--danger); font-weight: 800; }
.option-chip.selected { text-decoration: line-through; }

/* ---- Steps / timeline ---- */
.track-steps { display: flex; justify-content: space-between; position: relative; margin: 40px 0; }
.track-steps::before { content: ""; position: absolute; top: 20px; left: 24px; right: 24px; height: 4px; background: var(--surface-hover); border-radius: 4px; }
.track-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; text-align: center; }
.track-dot { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-hover); border: 3px solid var(--border); display: grid; place-items: center; color: var(--text-3); font-weight: 800; font-size: 15px; transition: all 0.3s; }
.track-step.done .track-dot { background: linear-gradient(135deg, var(--success), #059669); border-color: var(--success); color: #fff; box-shadow: 0 6px 16px rgb(16 185 129 / 0.35); }
.track-step.current .track-dot { background: var(--surface); border-color: var(--brand-500); color: var(--brand-600); box-shadow: 0 0 0 6px rgb(99 102 241 / 0.2); }
.track-step.current::after { content: ""; position: absolute; top: 6px; width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--brand-300); animation: pulse-ring 1.6s ease-out infinite; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
.track-label { font-size: 12px; font-weight: 600; color: var(--text-3); }
.track-step.done .track-label { color: var(--success); }
.track-step.current .track-label { color: var(--brand-600); font-weight: 800; }
.track-date { font-size: 11px; color: var(--text-3); }

/* ---- Offer / coupon card ---- */
.coupon-card { display: flex; align-items: center; gap: 14px; border: 1.5px dashed var(--brand-400); background: var(--brand-50); border-radius: var(--radius); padding: 12px 16px; }
.coupon-card .code { font-weight: 800; color: var(--brand-700); letter-spacing: 0.05em; }
.coupon-card .copy-btn { margin-left: auto; }

/* ---- Invoice ---- */
.invoice-sheet { max-width: 820px; margin: 0 auto; background: #fff; color: #1a1a2e; border-radius: var(--radius-lg); padding: 44px 48px; box-shadow: var(--shadow-lg); }
.invoice-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #e5e5f0; padding-bottom: 22px; margin-bottom: 22px; }
.invoice-title { font-size: 1.7rem; font-weight: 900; color: #312e81; margin: 0; }
.invoice-meta b { display: block; color: #1a1a2e; }

/* ---- Admin ---- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 264px; flex-shrink: 0; background: linear-gradient(180deg, #141238, #0d0b26);
  color: #cfcdf0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  transition: all 0.3s ease; z-index: 50;
}
.admin-sidebar.collapsed { width: 76px; }
.admin-sidebar.collapsed .side-label, .admin-sidebar.collapsed .side-head-text { display: none; }
.side-head { display: flex; align-items: center; gap: 10px; padding: 18px 18px; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.side-scroll { flex: 1; overflow-y: auto; padding: 12px 10px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; font-size: 14px; font-weight: 500; color: #b9b6e0; transition: all 0.18s ease; margin-bottom: 2px; }
.side-link:hover { background: rgb(255 255 255 / 0.07); color: #fff; }
.side-link.active { background: linear-gradient(135deg, rgb(99 102 241 / 0.9), rgb(168 85 247 / 0.7)); color: #fff; box-shadow: 0 6px 18px rgb(99 102 241 / 0.3); }
.side-link svg { flex-shrink: 0; }
.side-section { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(255 255 255 / 0.35); padding: 14px 12px 6px; font-weight: 700; }
.admin-main { flex: 1; min-width: 0; background: var(--bg); }
.admin-topbar { position: sticky; top: 0; z-index: 40; height: 62px; display: flex; align-items: center; gap: 16px; padding: 0 24px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.admin-content { padding: 24px; max-width: 1500px; }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; transition: all 0.25s; position: relative; overflow: hidden; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.kpi-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 12px; }
.kpi-icon.a { background: var(--brand-50); color: var(--brand-600); }
.kpi-icon.b { background: var(--success-50); color: var(--success); }
.kpi-icon.c { background: var(--warning-50); color: var(--warning); }
.kpi-icon.d { background: var(--secondary-50); color: var(--secondary-600); }
.kpi-icon.e { background: var(--accent-50); color: var(--accent-600); }
.kpi-icon.f { background: var(--danger-50); color: var(--danger); }
.kpi-value { font-size: 1.7rem; font-weight: 900; letter-spacing: -0.02em; }
.kpi-label { color: var(--text-3); font-size: 13px; font-weight: 600; margin-top: 2px; }

html[data-theme="dark"] .kpi-icon { background: var(--surface-2); }

/* ---- Mobile bottom nav ---- */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: none; background: linear-gradient(135deg, #312e81, #4338ca); backdrop-filter: blur(12px); border-top: 1px solid rgb(255 255 255 / 0.1); padding: 3px 4px calc(3px + env(safe-area-inset-bottom)); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 10px; font-weight: 600; color: rgb(255 255 255 / 0.6); position: relative; padding: 2px 0; transition: all 0.2s; }
.bottom-nav a.active { color: #fbbf24; }
.bottom-nav a svg { font-size: 1.1rem; }
.bottom-cart { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 10px; font-weight: 600; color: rgb(255 255 255 / 0.6); background: none; border: none; cursor: pointer; padding: 2px 0; position: relative; transition: all 0.2s; }
.bottom-cart svg { font-size: 1.1rem; }
.bottom-cart-count { position: absolute; top: 0; right: calc(50% - 16px); min-width: 16px; height: 16px; background: var(--danger); color: #fff; border-radius: var(--radius-pill); font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

/* Floating WhatsApp button */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 95; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 24px rgb(37 211 102 / 0.45); transition: transform 0.2s ease; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
@media (max-width: 768px) { .wa-float { right: 16px; bottom: 84px; width: 52px; height: 52px; } }

/* ---- Misc utilities ---- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; }
.grow { flex: 1; }
.wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 20px; }
.mr-2 { margin-right: 8px; } .ml-auto { margin-left: auto; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-1 { font-size: 1.35rem; } .text-2 { font-size: 1.1rem; } .text-3 { font-size: 0.95rem; } .text-4 { font-size: 0.85rem; }
.font-bold { font-weight: 700; } .font-bolder { font-weight: 800; }
.text-muted { color: var(--text-3); }
.text-brand { color: var(--brand-600); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.overflow-hidden { overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2-lg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-lg { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.grid-account { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }

.divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

.sticky-top-84 { position: sticky; top: 84px; }

/* ---- Footer ---- */
.site-footer { background: linear-gradient(180deg, #1e1b4b 0%, #312e81 30%, #4338ca 60%, #6366f1 100%); color: #e0e7ff; margin-top: 40px; }
.site-footer a { color: #c7d2fe; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 28px; padding: 36px 0 26px; }
.footer-head { font-size: 0.95rem; font-weight: 800; color: #fff; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid rgb(255 255 255 / 0.15); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.footer-links a { transition: all 0.2s; display: inline-block; }
.footer-links a:hover { transform: translateX(4px); color: #fff; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.12); padding: 14px max(20px, env(safe-area-inset-left)) 14px max(20px, env(safe-area-inset-right)); font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #a5b4fc; background: rgb(0 0 0 / 0.15); }
.social-row { display: flex; gap: 10px; }
.social-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.15); transition: all 0.25s; color: #e0e7ff; }
.social-btn:nth-child(1):hover { background: #1877f2; border-color: #1877f2; color: #fff; transform: translateY(-3px); box-shadow: 0 6px 18px rgb(24 119 242 / 0.4); }
.social-btn:nth-child(2):hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; color: #fff; transform: translateY(-3px); box-shadow: 0 6px 18px rgb(220 39 67 / 0.4); }
.social-btn:nth-child(3):hover { background: #25d366; border-color: #25d366; color: #fff; transform: translateY(-3px); box-shadow: 0 6px 18px rgb(37 211 102 / 0.4); }

/* ---- Buttons in hero gradient background ---- */
.gradient-brand { background: linear-gradient(120deg, var(--brand-700), var(--brand-500) 50%, var(--secondary-600)); }
.gradient-text { background: linear-gradient(120deg, var(--brand-600), var(--secondary-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Misc specific ---- */
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; font-weight: 800; }
.avatar-lg { width: 76px; height: 76px; border-radius: 22px; font-size: 1.8rem; }
.chart-box { position: relative; height: 280px; }

.toggle {
  width: 46px; height: 26px; border-radius: var(--radius-pill); background: var(--border-strong);
  position: relative; cursor: pointer; border: none; transition: background 0.25s;
}
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.25s; box-shadow: 0 1px 3px rgb(0 0 0 / 0.3); }
.toggle.on { background: linear-gradient(135deg, var(--brand-600), var(--brand-500)); }
.toggle.on::after { transform: translateX(20px); }

/* Responsive */
@media (max-width: 1024px) {
  .grid-lg { grid-template-columns: 1fr; }
  .grid-account { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 20px 28px 18px; }
}

@media (max-width: 768px) {
  /* Reflow the header to two rows so it never overflows the viewport */
  .site-header { height: auto; }
  .header-inner { flex-wrap: wrap; height: auto; gap: 6px 10px; padding: 8px 0; }

  /* Header row: hamburger + logo + icons without overlapping */
  .header-inner [data-mobile-menu] { order: 1; }
  .header-inner .logo { order: 2; margin: 0; min-width: 0; }
  .header-inner > nav { order: 3; margin-left: auto; gap: 2px; flex-shrink: 0; }
  .header-inner > nav .nav-link, .header-inner > nav .icon-btn { padding: 0; gap: 0; height: 34px; width: 34px; justify-content: center; flex-shrink: 0; }
  .header-inner .logo img, .header-inner .logo-mark { height: 30px; width: 30px; }
  .header-inner .logo > span { font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Search bar moves to its own full-width row below */
  .header-inner .search-bar { order: 10; flex: 1 1 100%; max-width: 100% !important; margin: 4px 0 2px !important; height: 34px; }

  /* Show the mobile hamburger on small screens */
  .hide-desktop { display: inline-flex !important; }
  /* Drop text-heavy nav links on tablets/phones so the row stays compact */
  .hide-mobile { display: none !important; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile-only: slim category nav */
  .cat-nav-inner { padding: 3px 0; }
  .cat-link { padding: 3px 9px; font-size: 11.5px; }

  /* Mobile-only: slim search bar */
  .search-bar { height: 36px; padding: 0 5px 0 14px; }
  .search-bar button { height: 28px; padding: 0 13px; font-size: 12.5px; }

  /* Mobile-only: product grid edge-to-edge */
  .product-grid { margin: 0 -20px; grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

@media (max-width: 640px) {
  .section { padding: 36px 0; }
  .product-grid { margin: 0 -20px; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .p-media img { padding: 0; }
  .p-body { padding: 11px; }
  .p-name { font-size: 13px; }
  .p-desc { font-size: 11px; -webkit-line-clamp: 1; }
  .p-actions-row button, .p-actions-row a { height: 32px; font-size: 11px; }
  html, body { overflow-x: hidden; max-width: 100%; }
  .admin-content { padding: 14px; }
  .admin-sidebar { position: fixed; transform: translateX(-100%); }
  .admin-sidebar.open { transform: none; }
  .admin-sidebar-backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / 0.5); z-index: 45; }
  .bottom-nav { display: flex; }
  body { padding-bottom: 56px; }
  .hero { margin: 4px 0 0; border-radius: 0; height: 200px; }
  .hero-content { padding: 20px 22px 16px; }
  .hero-kicker { font-size: 9px; padding: 3px 9px; }
  .hero-title { font-size: 1.1rem; margin: 6px 0 5px; }
  .hero-subtitle { font-size: 0.8rem; margin-bottom: 10px; }
  .hero-ctas { gap: 8px; }
  .hero-ctas .btn { height: 26px; padding: 0 11px; font-size: 11px; gap: 5px; }

  /* Mobile-only: compact page-hero */
  .page-hero { padding: 14px 18px; margin: 8px 0 6px; }
  .page-hero h1 { font-size: 1.05rem; }
  .section-sm { padding: 8px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2-lg { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .invoice-sheet { padding: 22px 16px; }
  .section-title { font-size: 1.3rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---- Storefront extras ---- */
.announce-bar { background: linear-gradient(90deg, var(--brand-700), var(--secondary-600)); color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 8px 0; letter-spacing: 0.02em; overflow: hidden; white-space: nowrap; }
.announce-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.announce-bar .marquee-track { display: inline-flex; align-items: center; gap: 3.5rem; padding-right: 3.5rem; animation: announce-scroll 22s linear infinite; will-change: transform; }
.announce-bar .marquee-track span { display: inline-flex; align-items: center; }
.announce-bar .marquee-track span::after { content: "·"; margin-left: 3.5rem; opacity: 0.7; }
@keyframes announce-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announce-bar .marquee-track { animation: none; } }

.promo-banner { position: relative; overflow: hidden; border-radius: var(--radius-xl); min-height: 200px; display: flex; align-items: flex-end; isolation: isolate; color: #fff; padding: 26px; }
.promo-banner .pb-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.promo-banner .pb-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(200deg, rgba(0,0,0,0.04), rgba(8,6,34,0.62)); }
.promo-banner .pb-title { font-size: 1.35rem; font-weight: 900; margin-bottom: 4px; }
.promo-banner .pb-sub { font-size: 13px; color: rgb(255 255 255 / 0.86); margin-bottom: 12px; }

.brand-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-pill); padding: 10px 18px; font-weight: 700; color: var(--text-2); transition: all 0.2s; }
.brand-pill img { height: 30px; width: auto; }
.brand-pill:hover { border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.t-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.t-card .t-quote { font-size: 1.05rem; line-height: 1.55; }
.t-card .t-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }

.newsletter { background: linear-gradient(120deg, var(--brand-700), var(--brand-500) 55%, var(--secondary-600)); border-radius: var(--radius-xl); padding: 40px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter .nl-title { font-size: 1.4rem; font-weight: 900; }
.newsletter .nl-sub { color: rgb(255 255 255 / 0.85); margin-top: 4px; font-size: 14px; }
.nl-form { display: flex; gap: 10px; background: #fff; border-radius: var(--radius-pill); padding: 6px; max-width: 430px; flex: 1; min-width: 240px; }
.nl-form input { flex: 1; border: none; outline: none; padding: 8px 14px; font-size: 14px; background: transparent; }
.nl-form button { background: var(--brand-600); color: #fff; border: none; border-radius: var(--radius-pill); padding: 10px 22px; font-weight: 700; cursor: pointer; }

.mobile-menu { position: fixed; inset-block: 0; left: 0; width: min(320px, 86vw); background: linear-gradient(180deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%); z-index: 350; transform: translateX(-100%); transition: transform 0.32s cubic-bezier(0.2,0.9,0.3,1); overflow-y: auto; padding: 20px; box-shadow: 6px 0 30px rgb(30 27 75 / 0.5); }
.mobile-menu.open { transform: none; }
.mobile-menu strong.font-bolder { color: #fff; font-size: 18px; letter-spacing: 0.03em; text-shadow: 0 1px 3px rgb(0 0 0 / 0.3); }
.mobile-menu .icon-btn { color: #fff !important; background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.2); }
.mobile-menu .nav-link { color: #fff; padding: 12px 14px; border-radius: 12px; gap: 12px; font-weight: 700; font-size: 15px; letter-spacing: 0.01em; border: 1px solid rgb(255 255 255 / 0.2); background: rgb(255 255 255 / 0.14); }
.mobile-menu .nav-link:hover { background: rgb(255 255 255 / 0.26); color: #fff; transform: translateX(4px); }
.mobile-menu .nav-link svg { opacity: 1; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.3)); }
.mobile-menu .nav-link.active { background: linear-gradient(135deg, rgb(99 102 241 / 0.9), rgb(168 85 247 / 0.7)); color: #fff; }
.mobile-menu .nav-count, .mobile-menu .icon-btn { color: #fff; }
.mobile-menu .icon-btn:hover { background: rgb(255 255 255 / 0.12); }
.backdrop { position: fixed; inset: 0; background: rgb(8 6 34 / 0.55); z-index: 340; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.backdrop.open { opacity: 1; pointer-events: auto; }

.hero-slider { position: relative; }
.hero-slide { display: none; animation: fadeInUp 0.55s ease; }
.hero-slide.active { display: block; }
.hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 0; }
.hero-slider + .container { padding-top: 0; }
.hero-slider + .container > .section:first-child { padding-top: 0; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); border: none; cursor: pointer; transition: all 0.25s; }
.hero-dot.active { width: 26px; border-radius: var(--radius-pill); background: var(--brand-500); }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 1280px; margin: 10px auto 0; }
.hero-tag { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: all 0.2s; }
.hero-tag svg { opacity: 0.7; flex: 0 0 auto; }
.hero-tag:hover { border-color: var(--brand-500); color: var(--brand-500); }
.hero-tag-brand { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.hero-tag-brand:hover { color: #fff; opacity: 0.92; }
.hero-tags + .container { padding-top: 14px; }
.hero-tags + .container > .section:first-child { padding-top: 0; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.page-head { background: linear-gradient(120deg, var(--brand-700), var(--brand-500) 50%, var(--secondary-600)); color: #fff; padding: 42px 0; }
.page-head h1 { font-size: 1.7rem; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 4px; }
.page-head p { color: rgb(255 255 255 / 0.8); margin: 0; font-size: 14px; }

.filter-card { align-self: flex-start; position: sticky; top: 84px; }
.f-head { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 800; margin: 18px 0 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-pill); padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: all 0.18s; }
.chip:hover { border-color: var(--brand-400); }
.chip.active { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }

.mini-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; }
.mini-stat .ms-val { font-size: 1.3rem; font-weight: 900; }
.mini-stat .ms-label { font-size: 12px; color: var(--text-3); margin-top: 2px; font-weight: 600; }

.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; }
.info-row .ir-label { color: var(--text-3); }

.summary-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: 84px; }

.saved-addr { display: flex; align-items: flex-start; gap: 12px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; cursor: pointer; transition: all 0.2s; }
.saved-addr:hover { border-color: var(--brand-400); }
.saved-addr.active { border-color: var(--brand-500); background: var(--brand-50); box-shadow: 0 0 0 4px rgb(99 102 241 / 0.1); }

/* ── Admin Layout ── */
.admin-body { display: flex; height: 100vh; min-height: 100vh; overflow: hidden; background: #f0f0f8; color: var(--text); }
.admin-sidebar { width: 240px; background: linear-gradient(180deg, #1e1b4b, #312e81 50%, #4338ca); border-right: none; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden; z-index: 40; box-shadow: 4px 0 20px rgb(0 0 0 / 0.12); }
.sidebar-brand { padding: 20px 18px 14px; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.sidebar-brand .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; text-decoration: none; color: #fff; }
.sidebar-brand .logo img { height: 28px; width: auto; filter: brightness(1.2); }
.logo-mark { font-size: 20px; }
.sidebar-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 8px; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 0.35) transparent; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: var(--radius); font-size: 13.5px; color: #c7d2fe; text-decoration: none; transition: all .18s; border: none; background: none; cursor: pointer; width: 100%; text-align: left; }
.side-link:hover { background: rgb(255 255 255 / 0.1); color: #fff; }
.side-link.active { background: linear-gradient(135deg, rgb(99 102 241 / 0.9), rgb(168 85 247 / 0.7)); color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgb(99 102 241 / 0.35); }
.side-link svg { flex-shrink: 0; opacity: 0.8; }
.side-link.active svg { opacity: 1; }
.sidebar-footer { padding: 12px 8px; border-top: 1px solid rgb(255 255 255 / 0.1); }
.sidebar-footer .side-link { color: #c7d2fe; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; }
.admin-topbar { display: flex; align-items: center; gap: 14px; padding: 14px 24px; background: linear-gradient(135deg, #fff 0%, #f5f3ff 50%, #eef2ff 100%); border-bottom: 2px solid #c7d2fe; position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 12px rgb(99 102 241 / 0.06); }
.admin-topbar .icon-btn { color: var(--brand-600); }
.admin-topbar .icon-btn:hover { background: var(--brand-50); }
.admin-content { flex: 1; padding: 24px; overflow-x: auto; }
.admin-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
@media (max-width: 860px) {
  .admin-sidebar { position: fixed; left: -260px; transition: left .25s; background: linear-gradient(180deg, #1e1b4b, #312e81 50%, #4338ca); }
  .admin-sidebar.open { left: 0; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-content { padding: 14px; overflow-x: auto; }
  .admin-topbar { padding: 10px 14px; gap: 10px; background: linear-gradient(135deg, #fff 0%, #f5f3ff 50%, #eef2ff 100%); border-bottom: 2px solid #c7d2fe; }
  .admin-topbar .avatar { display: none; }
  .admin-body { display: block; }
  .admin-main { width: 100%; }
  .table { min-width: 0; font-size: 12.5px; }
  .table th, .table td { padding: 10px 10px; }
  .kpi-grid { gap: 10px; margin-bottom: 16px; }
  .kpi-card { padding: 14px; }
  .kpi-value { font-size: 1.35rem; }
  .info-card { padding: 14px; }
  .info-card.grow { flex: 1 1 100% !important; min-width: 0 !important; }
  .sidebar-brand { padding: 14px 14px 10px; }
  .admin-sidebar { width: 250px; }
}

/* ── Info Card (used everywhere) ── */
.info-card { background: #fff; border: 2px solid #e0e7ff; border-radius: var(--radius-lg); padding: 20px; box-shadow: 0 2px 8px rgb(99 102 241 / 0.04); }
.info-card:hover { border-color: #c7d2fe; box-shadow: 0 4px 16px rgb(99 102 241 / 0.08); }

/* ── KPI Grid ── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.kpi-card { background: #fff; border: 2px solid #e0e7ff; border-radius: var(--radius-lg); padding: 18px 16px; position: relative; overflow: hidden; transition: all 0.25s; }
.kpi-card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(180deg, var(--brand-500), var(--accent-500)); border-radius: 4px 0 0 4px; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgb(99 102 241 / 0.12); border-color: #c7d2fe; }
.kpi-label { font-size: 12px; color: var(--text-3); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-value { font-size: 22px; font-weight: 800; line-height: 1.15; color: var(--brand-700); }

/* ── Product Grid ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.product-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product-grid.cols-5 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 640px) {
  .product-grid, .product-grid.cols-4, .product-grid.cols-5 { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .p-card { min-width: 0; }
  .p-card .p-media { aspect-ratio: 1 / 1; }
  .p-name { font-size: 12px; line-height: 1.35; }
  .p-price { font-size: 13px; }
  .p-body { padding: 9px; }
}

/* ── Account Layout ── */
.account-layout { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.account-nav { background: linear-gradient(180deg, #4F46E5 0%, #7C3AED 55%, #FF3CAC 120%); border: none; border-radius: var(--radius-lg); padding: 12px 10px; position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; box-shadow: 6px 10px 26px rgb(124 58 237 / 0.28); }
.account-nav a, .account-nav .nav-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: var(--radius-md); color: #E5E7FF; font-weight: 600; font-size: 14px; background: transparent; border: none; cursor: pointer; text-align: left; transition: background 0.2s, color 0.2s; text-decoration: none; }
.account-nav a svg, .account-nav .nav-link svg { flex-shrink: 0; opacity: 0.85; }
.account-nav a:hover, .account-nav .nav-link:hover { background: rgb(255 255 255 / 0.14); color: #fff; }
.account-nav a.active { background: #fff; color: #6D28D9; box-shadow: 0 6px 18px rgb(79 70 229 / 0.35); }
.account-nav a.active:hover { color: #6D28D9; }
.account-nav a.active svg, .account-nav .nav-link.active svg { opacity: 1; }
.account-nav form { margin: 0; border-top: 1px solid rgb(255 255 255 / 0.18); padding-top: 8px; }
.account-nav .nav-link { color: #FECACA; }
.account-nav .nav-link:hover { color: #fff; background: rgb(239 68 68 / 0.22); }
.account-main { min-width: 0; }
@media (max-width: 768px) { .account-layout { grid-template-columns: 1fr; } .account-nav { position: static; display: flex; flex-direction: row; gap: 6px; overflow-x: auto; padding: 10px; white-space: nowrap; } .account-nav a, .account-nav .nav-link { width: auto; padding: 8px 12px; } }

/* ── Cart Layout ── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: 0; }
.cart-line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cli-img { width: 72px; height: 72px; border-radius: var(--radius); object-fit: cover; }
.cli-main { min-width: 0; }
.cli-name { font-weight: 600; font-size: 14px; }
.cli-meta { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.cli-total { font-weight: 700; font-size: 14px; white-space: nowrap; }
@media (max-width: 640px) { .cart-layout { grid-template-columns: 1fr; } }

/* ── Checkout Layout ── */
.co-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.co-main { display: flex; flex-direction: column; gap: 18px; }
.co-aside { position: sticky; top: 90px; }
.co-section { background: var(--surface); border: 2px solid var(--border); border-left: 4px solid var(--brand-500); border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 2px 12px rgb(0 0 0 / 0.04); }
.co-section:nth-child(2) { border-left-color: var(--accent-500); }
.co-head { font-size: 16px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--brand-100, #e0e7ff); display: flex; align-items: center; gap: 8px; }
.summary-title { font-weight: 700; font-size: 16px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px dashed var(--brand-200); }
.summary-box { background: linear-gradient(145deg, var(--surface), #f8f7ff); border: 2px solid var(--brand-200); border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 4px 16px rgb(99 102 241 / 0.08); }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.info-row .total { font-weight: 800; font-size: 16px; border-top: 2px solid var(--brand-500); border-bottom: none; padding-top: 12px; margin-top: 4px; color: var(--brand-700); }
.free-delivery-hint { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: var(--success-700); border: 1px solid #a7f3d0; border-radius: var(--radius); padding: 10px 14px; font-size: 13px; margin-top: 10px; text-align: center; font-weight: 600; }

/* ── Checkout Order Item Card ── */
.co-item { display: flex; gap: 14px; padding: 14px; border: 2px solid var(--brand-100, #e0e7ff); border-radius: var(--radius-lg); margin-bottom: 12px; background: #fff; position: relative; }
.co-item-img { width: 92px; height: 92px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.co-remove { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--surface-hover); color: var(--text-3); cursor: pointer; display: grid; place-items: center; transition: all .15s; z-index: 2; }
.co-remove:hover { background: var(--danger, #dc2626); color: #fff; }
.co-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.co-cat { font-size: 11px; font-weight: 700; color: var(--brand-500); text-transform: uppercase; letter-spacing: 0.4px; }
.co-name { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.3; }
.co-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.co-ask { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--accent-600); text-decoration: none; text-decoration: underline; text-underline-offset: 2px; }
.co-ask:hover { color: var(--accent-700); }
.co-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 2px; }
.co-meta-row { display: inline-flex; gap: 4px; font-size: 12.5px; }
.co-meta-row em { font-style: normal; color: var(--text-3); }
.co-meta-row strong { color: var(--text); font-weight: 700; }
.co-price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.co-label { font-size: 12.5px; color: var(--text-3); }
.co-price { font-size: 16px; font-weight: 800; color: var(--accent-600); }
.co-qty { font-size: 12.5px; color: var(--text-3); }
.co-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.co-actions .btn { font-size: 12px; padding: 7px 12px; }

@media (max-width: 820px) { .co-layout { grid-template-columns: 1fr; } .co-aside { position: static; } }

/* ── Payment Method Dropdown ── */
.pm-select { display: flex; align-items: center; gap: 10px; width: 100%; border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 13px 15px; background: var(--surface); cursor: pointer; transition: all .15s; font-family: inherit; }
.pm-select:hover { border-color: var(--brand-400); }
.pm-select.open { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgb(99 102 241 / 0.12); }
.pm-label { flex: 1; text-align: left; font-weight: 700; font-size: 14px; color: var(--text); }
.pm-arrow { display: flex; color: var(--text-3); transition: transform .2s; }
.pm-select.open .pm-arrow { transform: rotate(180deg); }
.pm-dot { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: #16a34a; box-shadow: inset 0 0 0 2px #fff; }
.pm-dropdown { display: none; flex-direction: column; gap: 6px; margin-top: 8px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px; background: var(--surface); }
.pm-dropdown.open { display: flex; }
.pm-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.pm-option:hover { background: var(--surface-hover); }
.pm-option .pm-label { font-weight: 600; font-size: 13.5px; }
.pm-desc { font-size: 11.5px; color: var(--text-3); padding-left: 3px; }
.pm-option .pm-dot { width: 18px; height: 18px; background: var(--border-strong); }

/* ── Coupon Card ── */
.coupon-card { background: linear-gradient(135deg, #fef3c7, #fde68a30); border: 2px dashed #f59e0b; border-radius: var(--radius-lg); padding: 14px; }
.coupon-card .code { font-family: ui-monospace; font-weight: 800; font-size: 14px; color: #b45309; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--border); border-radius: 1px; }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -24px; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--brand-500); background: var(--surface); z-index: 1; }
.tl-item:last-child .tl-dot { background: var(--brand-500); }
.tl-item .tl-label { font-weight: 600; font-size: 13px; }
.tl-item .tl-date { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ── Product Detail: Info Panel ── */
.pd-brand a { font-size: 13.5px; color: var(--brand-500); text-decoration: none; }
.pd-rating { font-size: 13.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.pd-stock-row { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.pd-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-sc-link { margin-top: 12px; }
.sizechart-chip { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--brand-50), #eef2ff); border: 1.5px dashed var(--brand-300); color: var(--brand-600); border-radius: var(--radius-pill); padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s; }
.sizechart-chip:hover { background: linear-gradient(135deg, var(--brand-100), #e0e7ff); border-style: solid; transform: translateY(-1px); box-shadow: 0 4px 14px rgb(99 102 241 / 0.18); }

/* ── Size Chart Modal ── */
.sc-modal { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 20px; }
.sc-modal.open { display: flex; }
.sc-backdrop { position: absolute; inset: 0; background: rgb(10 10 35 / .55); backdrop-filter: blur(2px); }
.sc-panel { position: relative; z-index: 1; width: 100%; max-width: 460px; max-height: 84vh; overflow: auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgb(0 0 0 / .35); animation: scIn .22s ease; }
@keyframes scIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.sc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); font-size: 15px; }
.sc-body { padding: 18px; }
.sc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sc-table th, .sc-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: center; }
.sc-table th { background: var(--brand-50); font-weight: 700; }
.sc-img { width: 100%; border-radius: 12px; margin-top: 12px; }
.sc-sizes { margin-top: 16px; }
.sc-sizes-label { font-size: 13px; font-weight: 700; margin-bottom: 8px; }

/* ── Quick Order Modal ── */
.qo-product { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.qo-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); background: #fff; flex-shrink: 0; }
.qo-name { font-size: 14px; font-weight: 700; line-height: 1.35; margin-bottom: 4px; }
.qo-price { font-size: 16px; font-weight: 800; color: var(--brand-500); }
.qo-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-top: 14px; }
@media (max-width: 420px) { .qo-row { grid-template-columns: 1fr; } }
.pd-desc { font-size: 14px; color: var(--text-3); line-height: 1.65; }
.pd-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.pd-perks { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.pd-perks .perk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.pd-perks .perk svg { color: var(--success-500); flex-shrink: 0; }

/* ── Product Detail: Variants ── */
.pd-variant-price { font-size: 20px; font-weight: 800; color: var(--brand-500); margin-top: 2px; }
.var-group { margin-top: 10px; }
.var-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row .chip-check { margin: 0; }
.chip-row input:checked + span { background: var(--brand-500); color: #fff; border-color: var(--brand-500); }
.color-option { width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--border); cursor: pointer; transition: all .15s; }
.color-option:hover { border-color: var(--brand-400); }
.color-option.active { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgb(99 102 241 / 0.2); }

/* ── Product Detail: Tabs ── */
.pd-tabs { margin-top: 28px; }
.pd-panel { display: none; }
.pd-panel.active { display: block; }
.pd-panel-head { font-size: 16px; font-weight: 700; }

.pd-tabbar { display: flex; gap: 14px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; background: linear-gradient(135deg, #6d28d9, #db2777 55%, #f97316); border-radius: 14px; padding: 6px; box-shadow: 0 6px 20px rgb(109 40 217 / 0.25); }
.pd-tabbar::-webkit-scrollbar { display: none; }
.pd-tab { flex: 0 0 auto; padding: 11px 22px; font-size: 14px; font-weight: 800; color: #fff; background: transparent; border: none; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.pd-tab:hover { background: rgb(255 255 255 / 0.18); }
.pd-tab.active { background: #fff; color: #db2777; box-shadow: 0 4px 14px rgb(0 0 0 / 0.18); transform: translateY(-1px); }
.pd-desc-body { font-size: 15px; color: var(--text-2); line-height: 1.75; }
.pd-desc-body p { margin: 0 0 12px; }

.order-steps { display: flex; flex-direction: column; gap: 18px; }
.os-row { display: flex; gap: 14px; align-items: flex-start; }
.os-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, #f97316, #ec4899); }
.os-row strong { font-size: 15px; color: var(--text); display: block; margin-bottom: 2px; }
.os-row p { margin: 0; font-size: 14px; color: var(--text-3); line-height: 1.6; }

@media (max-width: 640px) {
  .pd-tab { flex: 1; padding: 12px 8px; font-size: 13px; text-align: center; }
  .os-row { gap: 12px; }
  .pd-desc-body { font-size: 14px; }
}

/* ── Spec Table ── */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr:nth-child(even) { background: var(--bg); }
.spec-table td, .spec-table th { padding: 10px 14px; font-size: 13.5px; border-bottom: 1px solid var(--border); text-align: left; }
.spec-table td:first-child { font-weight: 600; width: 35%; white-space: nowrap; }

/* ── Product Detail: Grid ── */
.pd-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .pd-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ── Product Detail: Gallery (enlarged) ── */
.pd-gallery { position: relative; width: 100%; }
.gallery-main {
    width: 100%;
    max-width: 860px;
    aspect-ratio: 1/1;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgb(0 0 0 / 0.06);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; transition: transform 0.4s ease; }
.gallery-main:hover img { transform: scale(1.04); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; max-width: 860px; margin-left: auto; margin-right: auto; }
.thumb { width: 76px; height: 76px; border-radius: var(--radius); border: 2px solid transparent; overflow: hidden; padding: 0; background: #fff; cursor: pointer; opacity: .6; transition: all .15s; flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover, .thumb.active { border-color: var(--brand-500); opacity: 1; }
@media (max-width: 900px) { .gallery-main, .gallery-thumbs { max-width: 100%; } }
.gallery-main video.gallery-video, .gallery-main iframe.gallery-video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; border: 0; border-radius: 0; }

/* ── Product Detail: Info Block ── */
.pd-right { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
.pd-right::-webkit-scrollbar { width: 6px; }
.pd-right::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 4px; }
.pd-boxes-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-title { font-size: 24px; font-weight: 800; line-height: 1.25; }
.pd-brand a { font-size: 13.5px; color: var(--brand-500); text-decoration: none; }
.pd-rating { font-size: 13.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.pd-stock-row { font-size: 13px; }
.pd-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-desc { font-size: 13.5px; color: var(--text-3); line-height: 1.55; margin: 0; }
.pd-perks { margin-top: 3px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.pd-perk-row { display: flex; align-items: center; gap: 9px; padding: 7px 11px; font-size: 12.5px; }
.pd-perk-row + .pd-perk-row { border-top: 1px solid var(--border); }
.pd-perk-row .ms-ic { flex-shrink: 0; display: flex; color: var(--success-500); }
.ppr-txt { display: inline; line-height: 1.5; }
.ppr-txt strong { font-size: 12.5px; font-weight: 700; }
.pd-perk-row .text-muted { font-size: 11.5px; margin-left: 4px; }

/* ── Product Detail: Cards ── */
.pd-card { border-radius: var(--radius-lg); padding: 18px 20px; }
.pd-card-info { background: var(--surface); border: 2px solid var(--border); }
.pd-card-order { background: linear-gradient(135deg, #f0f4ff, #faf5ff); border: 2px solid var(--brand-300, #a5b4fc); }
.pd-card-courier { background: linear-gradient(135deg, #f0fdfa, #ecfeff); border: 2px solid #5eead4; }
.pd-card-delivery { background: linear-gradient(135deg, #fff7ed, #fffbeb); border: 2px solid #fed7aa; }
.pd-card-contact { background: linear-gradient(135deg, #fdf2f8, #fff1f2); border: 2px solid #f9a8d4; }
.pd-perk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pd-perk-list li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.pd-perk-list li svg { flex-shrink: 0; color: var(--brand-500); }
.pd-card-courier .pd-perk-list li svg { color: #0d9488; }
.pd-card-delivery .pd-perk-list li svg { color: #ea580c; }
.pco-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: #0d9488; margin-bottom: 12px; }
.pd-card-delivery .pco-head { color: #ea580c; }
.pco-title { font-weight: 800; font-size: 16px; color: var(--brand-700); margin-bottom: 12px; }

/* ── Order Processing (buttons) ── */
.pd-actions { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin-top: 0; }
.pd-actions .qty-ctl { flex-shrink: 0; }
.btn-add, .btn-buy { flex: 1; min-width: 0; height: 48px; border-radius: 12px; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; transition: transform .15s, box-shadow .2s; text-decoration: none; }
.btn-add { background: linear-gradient(135deg, #f97316, #ec4899); color: #fff; }
.btn-add:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(249 115 22 / .45); }
.btn-add:disabled { background: linear-gradient(135deg, #fda4af, #f0abfc); color: #fff; cursor: not-allowed; opacity: .7; box-shadow: none; transform: none; }
.btn-buy { background: linear-gradient(135deg, #4338ca, #7c3aed); color: #fff; }
.btn-buy:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(67 56 202 / .45); }
.btn-buy:disabled { background: linear-gradient(135deg, #a5b4fc, #c4b5fd); color: #fff; cursor: not-allowed; opacity: .7; box-shadow: none; transform: none; }
.pd-actions .btn-ghost { flex-shrink: 0; }
.pco-cod { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--success-700); background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; padding: 8px 12px; }
.pco-cod svg { color: var(--success-500); flex-shrink: 0; }

/* ── Delivery / Contact ── */
.pco-divider { border-top: 2px dashed var(--border); margin: 16px 0; }
.pco-q-head { font-weight: 700; font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.pco-phone { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--accent-600); text-decoration: none; margin-bottom: 6px; }
.pco-phone:hover { color: var(--accent-700); }
.pco-phone svg { flex-shrink: 0; }
.pco-py { font-weight: 700; font-size: 13px; color: var(--text-3); margin: 10px 0 6px; text-transform: uppercase; letter-spacing: .4px; }
.pco-pm { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); padding: 4px 0; }
.pco-pm strong { margin-left: auto; color: var(--text); }
.pm-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* ── Product Detail: Mobile ── */
@media (max-width: 900px) {
  .pd-right { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  .pd-boxes-duo { grid-template-columns: 1fr; }
  .pd-card { padding: 14px 14px; }
  .pd-right { gap: 12px; }
  .pd-title { font-size: 19px; }
  .pd-actions { gap: 8px; }
  .pd-actions .qty-ctl { flex: 0 0 100%; height: 46px; }
  .pd-actions .qty-ctl button { width: 44px; height: 44px; font-size: 20px; }
  .pd-actions .qty-ctl input { flex: 1; height: 44px; font-size: 16px; border: none; text-align: center; font-weight: 800; }
  .btn-add, .btn-buy { height: 48px; font-size: 15px; flex: 1 1 calc(50% - 4px); }
  .pd-actions .btn-ghost { flex: 1 1 100%; height: 44px; }
  .pco-phone { font-size: 15px; }
}

.pd-tabs { margin-top: 28px; }
.pd-panel { display: none; }
.pd-panel.active { display: block; }
.pd-panel-head { font-size: 16px; font-weight: 700; }

/* ── Variant Options ── */
.pd-variant-price { font-size: 20px; font-weight: 800; color: var(--brand-500); margin-top: 2px; }
.var-group { margin-top: 10px; }
.var-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row .chip-check { margin: 0; }
.chip-row input:checked + span { background: var(--brand-500); color: #fff; border-color: var(--brand-500); }
.color-option { width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--border); cursor: pointer; transition: all .15s; }
.color-option:hover { border-color: var(--brand-400); }
.color-option.active { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgb(99 102 241 / 0.2); }

/* ── Spec Table ── */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr:nth-child(even) { background: var(--bg); }
.spec-table td, .spec-table th { padding: 10px 14px; font-size: 13.5px; border-bottom: 1px solid var(--border); text-align: left; }
.spec-table td:first-child { font-weight: 600; width: 35%; white-space: nowrap; }

/* ── Review Panel ── */
.review-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-title { font-weight: 700; font-size: 14px; }
.review-body { font-size: 13.5px; color: var(--text-3); line-height: 1.6; margin-top: 6px; }
.rp-big { font-size: 13.5px; }

/* ── Invoice ── */
.invoice-box { max-width: 800px; margin: 0 auto; background: #fff; color: #222; padding: 36px; border: 1px solid #e5e7eb; }
.invoice-box h2 { margin: 0 0 6px; }
.invoice-box .inv-meta { font-size: 13px; color: #6b7280; }
.invoice-box table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.invoice-box th { text-align: left; padding: 8px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: #6b7280; border-bottom: 2px solid #e5e7eb; }
.invoice-box td { padding: 10px; font-size: 13.5px; border-bottom: 1px solid #f3f4f6; }
.invoice-box .inv-totals td { border-bottom: none; padding: 5px 10px; text-align: right; }
.invoice-box .inv-totals tr:last-child td { font-weight: 800; font-size: 15px; border-top: 2px solid #e5e7eb; padding-top: 10px; }
@media print { .invoice-box { border: none; padding: 0; box-shadow: none; } }

/* ── Order Success Card ── */
.success-card { text-align: center; padding: 48px 24px; }
.success-card .check { width: 64px; height: 64px; border-radius: 50%; background: var(--success-50); color: var(--success-500); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.success-card h2 { margin-bottom: 6px; }
.success-card p { color: var(--text-3); margin-top: 4px; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ── Order Track ── */
.track-form { max-width: 480px; margin: 0 auto; }

/* ── Invoice View / Sheet (print-ready) ── */
.invoice-view { max-width: 800px; margin: 0 auto; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 64px 24px; color: var(--text-3); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 14px; opacity: .6; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 18px; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-500); }
.breadcrumb .sep { color: var(--border); }

/* ── Shop Filter Layout ── */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.filter-sidebar { position: sticky; top: 90px; }
.filter-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 14px; }
.filter-card-head { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.filter-options { display: flex; flex-direction: column; gap: 6px; }
.filter-option { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.shop-main { min-width: 0; }
.bar-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
@media (max-width: 820px) { .shop-layout { grid-template-columns: 1fr; } .filter-sidebar { position: static; display: none; } .filter-sidebar.open { display: block; } }

/* ── Filter Sidebar Mobile Toggle ── */
.filter-toggle { display: none; margin-bottom: 12px; }
@media (max-width: 820px) { .filter-toggle { display: inline-flex; } }

/* ── Brand Cards ── */
.brand-pill { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; background: var(--surface); transition: all .15s; }
.brand-pill:hover { border-color: var(--brand-400); box-shadow: var(--shadow-sm); }

/* ── Category Grid ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }

/* ── Color Swatch ── */
.color-swatch { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); vertical-align: middle; }

/* ── Badge Extras ── */
.badge-success { background: var(--success-50); color: var(--success-700); border: 1px solid var(--success-200); }
.badge-warning { background: var(--warning-50); color: var(--warning-700); border: 1px solid var(--warning-200); }
.badge-danger  { background: var(--danger-50);  color: var(--danger-700);  border: 1px solid var(--danger-200);  }
.badge-muted  { background: var(--bg); color: var(--text-3); border: 1px solid var(--border); }
.badge-info   { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-primary { background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); }
.badge-accent { background: #fdf2f8; color: #be185d; border: 1px solid #fbcfe8; }
.badge-brand  { background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); }
.badge-rose   { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

/* ── Text Helpers ── */
.text-success { color: var(--success-500); }
.text-warning { color: var(--warning-500); }
.text-danger  { color: var(--danger-500); }
.text-center  { text-align: center; }
.text-capitalize { text-transform: capitalize; }

/* ── Form ── */
.form-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; color: var(--text-2); letter-spacing: 0.02em; }
.input, .input-sm, .select-sm { display: block; width: 100%; padding: 10px 12px; border: 2px solid #c7d2fe; border-radius: var(--radius); font-size: 14px; background: #fff; color: var(--text); transition: all .2s; }
.input:hover, .input-sm:hover { border-color: #818cf8; }
.input:focus, .input-sm:focus { border-color: var(--brand-500); outline: none; box-shadow: 0 0 0 3px rgb(99 102 241 / .15); background: #fff; }
.input-sm { padding: 7px 10px; font-size: 13px; border-width: 1.5px; }
.select-sm { padding: 7px 10px; font-size: 13px; appearance: auto; border-width: 1.5px; }
select.input { appearance: auto; }

/* ── Alerts ── */
.alert-success { background: var(--success-50); color: var(--success-700); border: 1px solid var(--success-200); border-radius: var(--radius); padding: 12px 16px; font-size: 13.5px; margin-bottom: 14px; }
.alert-error { background: var(--danger-50); color: var(--danger-700); border: 1px solid var(--danger-200); border-radius: var(--radius); padding: 12px 16px; font-size: 13.5px; margin-bottom: 14px; }
.alert-warning { background: var(--warning-50); color: var(--warning-700); border: 1px solid var(--warning-200); border-radius: var(--radius); padding: 12px 16px; font-size: 13.5px; margin-bottom: 14px; }

/* ── Misc Buttons ── */
.btn-block { display: flex; align-items: center; justify-content: center; width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-danger { background: var(--danger-500); color: #fff; border: none; }
.btn-danger:hover { background: var(--danger-600); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius); border: none; background: none; cursor: pointer; color: var(--text-3); transition: background .15s; }
.icon-btn:hover { background: var(--bg); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-500); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.inline-flex { display: inline-flex; align-items: center; }
.hide-desktop { display: none; }

@media (max-width: 640px) {
  .newsletter { padding: 26px 20px; }
}

.site-footer .chip { color: var(--text-2); background: var(--surface); border-color: var(--border); }
.site-footer .chip:hover { border-color: var(--brand-400); }

/* ---- App install ---- */
.nav-link-app { justify-content: center; color: var(--brand-700); font-weight: 600; }
.nav-link-app:hover { background: rgb(109 40 217 / 0.08); }

.pwa-fab {
  position: fixed; right: 16px; bottom: 84px; z-index: 60;
  display: none; align-items: center; gap: 8px;
  padding: 10px 16px; border: none; cursor: pointer;
  border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, var(--brand-600), var(--secondary-500));
  box-shadow: 0 8px 24px rgb(109 40 217 / 0.4);
}
.pwa-fab:hover { transform: translateY(-2px); }

body.pwa-ready .pwa-fab { display: inline-flex; }

@media (max-width: 640px) {
  .pwa-fab { bottom: 72px; }
}