@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

/* ==========================================================================
   VANTAGE — E-commerce template system
   Shared design system for storefront, admin and system pages.
   1. Tokens   2. Reset/base   3. Layout   4. Header/nav   5. Footer
   6. Components (buttons, cards, forms, tables, badges, etc.)
   7. Storefront sections   8. Admin shell   9. Utilities   10. Responsive
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #000000;          /* Flo black */
  --ink-soft: #2e2e2e;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --line-strong: #cccccc;
  --bg: #ffffff;
  --soft: #f6f6f6;
  --soft-2: #efefef;
  --brand: #f4621f;        /* Flo orange */
  --brand-dark: #d94e12;
  --brand-soft: #ffeee6;
  --gold: #f4621f;         /* single accent now */
  --gold-light: #ff8a52;
  --sale: #9d3b2e;         /* muted oxblood, still legible */
  --sale-soft: #fbeee9;
  --warn: #946d1c;
  --warn-soft: #fdf5e3;
  --info: #2b536b;
  --info-soft: #eaf2f8;
  --danger: #96302f;
  --danger-soft: #fbeeed;

  --radius: 0px;           /* Flo is fully square */
  --radius-sm: 0px;
  --radius-lg: 0px;
  --shadow-sm: 0 1px 2px rgba(13, 13, 15, .05);
  --shadow: 0 4px 16px rgba(13, 13, 15, .07);
  --shadow-lg: 0 18px 48px rgba(13, 13, 15, .12);
  --header-h: 68px;
  --max: 1280px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.22; font-weight: 620; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem); font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; line-height: .96; }
h2 { font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem); font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
button { font: inherit; }
::selection { background: var(--brand-soft); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }
.container-wide { max-width: 1440px; }
.section { padding: clamp(2.25rem, 1.5rem + 2.4vw, 4rem) 0; }
.section-sm { padding: 2rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .link-more { font-size: .875rem; font-weight: 600; color: var(--brand); white-space: nowrap; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: start; }

/* ---------- 4. Header / nav ---------- */
.announce {
  background: #7b7b7b; color: #fff; font-size: .75rem;
  text-align: center; padding: .58rem 1rem; letter-spacing: .04em;
  text-transform: uppercase; font-weight: 600;
}
.announce a { color: #ffd9c7; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; display: block; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); opacity: .5; }
.header-main { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; flex-shrink: 0; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .9rem; }
/* Image logo — the supplied Dastyaab lockup */
.logo-img { height: 42px; width: auto; display: block; }
.logo-full { height: 96px; width: auto; display: block; margin: 0 auto; }
.header-search { flex: 1; max-width: 520px; position: relative; }
.header-search input {
  width: 100%; height: 40px; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0 2.75rem 0 1rem; background: var(--soft); font-size: .9rem;
}
.header-search input:focus { background: #fff; outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.header-search button {
  position: absolute; right: 4px; top: 4px; width: 32px; height: 32px;
  border: 0; border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.header-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.icon-btn {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  padding: .4rem .6rem; border: 0; background: none; border-radius: var(--radius-sm);
  font-size: .6875rem; color: var(--ink-soft); cursor: pointer;
}
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.icon-btn .count {
  position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--brand); color: #fff; border-radius: 999px; font-size: .625rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.nav-bar { border-bottom: 1px solid var(--line); background: #fff; }
.nav-bar ul { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: .4rem 0; overflow-x: auto; scrollbar-width: none; }
.nav-bar ul::-webkit-scrollbar { display: none; }
.nav-bar a { display: block; padding: .5rem .72rem; font-size: .875rem; font-weight: 600; letter-spacing: 0; text-transform: none; border-radius: 0; white-space: nowrap; color: var(--ink); }
.nav-bar a:hover, .nav-bar a[aria-current="page"] { background: transparent; color: var(--brand); box-shadow: none; }
.nav-bar a.is-hot { color: var(--sale); }
.menu-toggle { display: none; }

/* ---------- 5. Footer ---------- */
.site-footer { background: var(--ink); color: #b9bcc2; margin-top: 3rem; }
.footer-top { padding: 3rem 0 2rem; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo-mark { background: #fff; color: var(--ink); }
/* The wordmark is black, so on the dark footer it is lightened to gold-white */
.footer-brand .logo-img { filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(3deg) brightness(1.05); }
.footer-brand p { font-size: .875rem; margin: 1rem 0; max-width: 30ch; }
.site-footer h4 { color: #fff; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { font-size: .875rem; color: #b9bcc2; }
.site-footer a:hover { color: #fff; }
.newsletter-form { display: flex; gap: .5rem; margin-top: .75rem; }
.newsletter-form input {
  flex: 1; min-width: 0; height: 40px; border-radius: var(--radius-sm); border: 1px solid #3a3d45;
  background: #22252b; color: #fff; padding: 0 .75rem; font-size: .875rem;
}
.newsletter-form input::placeholder { color: #8b8f98; }
.footer-bottom {
  border-top: 1px solid #2b2e35; padding: 1.25rem 0; display: flex;
  align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8125rem;
}
.social-links { display: flex; gap: .5rem; }
.social-links a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: #24272e; color: #d6d8dc; }
.social-links a:hover { background: var(--brand); color: #fff; }
.pay-marks { display: flex; gap: .4rem; }
.pay-marks span { border: 1px solid #3a3d45; border-radius: 4px; padding: .15rem .45rem; font-size: .625rem; letter-spacing: .04em; color: #c9ccd2; }

/* ---------- 6. Components ---------- */
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  height: 44px; padding: 0 1.3rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: .875rem; font-weight: 600; cursor: pointer; text-align: center;
  transition: background .15s, border-color .15s, color .15s, transform .08s;
  background: var(--ink); color: #fff; white-space: nowrap;
}
.btn:hover { background: #000; color: #fff; }
.btn:active { transform: translateY(1px); }
/* Gold buttons need dark text — white on gold fails contrast */
.btn-brand { background: var(--brand); color: #fff; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .8125rem; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--soft); color: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #86201f; }
.btn-sm { height: 34px; padding: 0 .8rem; font-size: .8125rem; }
.btn-lg { height: 50px; padding: 0 1.6rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-icon { width: 38px; height: 38px; padding: 0; }
.btn-group { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem;
  border-radius: 999px; font-size: .6875rem; font-weight: 650; letter-spacing: .02em;
  background: var(--soft-2); color: var(--ink-soft); white-space: nowrap;
}
.badge-brand { background: var(--brand-soft); color: var(--brand-dark); }
.badge-sale { background: #000; color: #fff; font-weight: 700; }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Card */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 1.35rem; }
.card-head { padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.card-head h3, .card-head h2 { margin: 0; font-size: 1rem; }
.card-body { padding: 1.35rem; }
.card-foot { padding: 1rem 1.35rem; border-top: 1px solid var(--line); background: var(--soft); border-radius: 0 0 var(--radius) var(--radius); }

/* Forms */
.field { margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }
label, .label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-soft); }
.input, input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; height: 42px; padding: 0 .8rem; font: inherit; font-size: .9rem;
  color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
textarea { height: auto; min-height: 110px; padding: .65rem .8rem; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: .75rem; color: var(--muted); margin: .3rem 0 0; }
.error-text { font-size: .75rem; color: var(--danger); margin: .3rem 0 0; display: flex; gap: .3rem; align-items: center; }
.checkbox, .radio { display: flex; align-items: flex-start; gap: .55rem; font-size: .875rem; font-weight: 400; color: var(--ink-soft); margin-bottom: .6rem; cursor: pointer; }
.checkbox input, .radio input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 0 0 1.5rem; }
legend { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 0 .4rem; color: var(--muted); }
.input-group { display: flex; }
.input-group input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; height: 42px; }
.search-inline { position: relative; flex: 1; min-width: 180px; }
.search-inline input { padding-left: 2.2rem; height: 38px; font-size: .875rem; }
.search-inline svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* Breadcrumbs */
.breadcrumbs { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .8125rem; color: var(--muted); }
.breadcrumbs li { display: flex; align-items: center; gap: .4rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 550; }

/* Page header */
.page-head { padding: 1.75rem 0 1.5rem; border-bottom: 1px solid var(--line); background: var(--soft); }
.page-head h1 { margin-bottom: .35rem; }
.page-head p { margin: 0; color: var(--muted); max-width: 62ch; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th, .table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--soft); white-space: nowrap; }
.table tbody tr:hover { background: #fcfcfa; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .thumb { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; background: var(--soft-2); }
.table .row-actions { display: flex; gap: .35rem; justify-content: flex-end; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: .3rem; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 .6rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .875rem; color: var(--ink-soft); background: #fff;
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .is-active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pagination .is-disabled { opacity: .45; pointer-events: none; }

/* Tabs */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button {
  padding: .7rem 1rem; font-size: .875rem; font-weight: 550; color: var(--muted);
  border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.tabs .is-active { color: var(--ink); border-bottom-color: var(--ink); }
.tab-panel { padding-top: 1.5rem; }

/* Alert */
.alert { display: flex; gap: .75rem; padding: .9rem 1rem; border-radius: var(--radius-sm); font-size: .875rem; border: 1px solid var(--line); background: var(--soft); margin-bottom: 1rem; }
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert p:last-child { margin-bottom: 0; }
.alert-info { background: var(--info-soft); border-color: #cfe0ec; color: #1c4b6c; }
.alert-success { background: var(--brand-soft); border-color: #c6e0d3; color: var(--brand-dark); }
.alert-warn { background: var(--warn-soft); border-color: #f0e0bb; color: #7d5100; }
.alert-danger { background: var(--danger-soft); border-color: #f0d3d1; color: #8a2224; }
/* alias — the auth screens use .alert-error */
.alert-error { background: var(--danger-soft); border-color: #f0d3d1; color: #8a2224; }

/* Empty state */
.empty-state { text-align: center; padding: 3.5rem 1.5rem; }
.empty-state .empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--soft-2); color: var(--muted); display: grid; place-items: center; margin: 0 auto 1.25rem; }
.empty-state h3 { margin-bottom: .4rem; }
.empty-state p { color: var(--muted); max-width: 44ch; margin: 0 auto 1.5rem; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; }
.stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.stat-value { font-size: 1.7rem; font-weight: 680; letter-spacing: -.03em; margin: .5rem 0 .15rem; font-variant-numeric: tabular-nums; }
.stat-delta { font-size: .8125rem; color: var(--muted); }
.stat-delta .up { color: var(--brand); font-weight: 650; }
.stat-delta .down { color: var(--danger); font-weight: 650; }

/* Charts (pure CSS) */
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding-top: 1rem; }
.chart-bars .bar { flex: 1; background: #cfe2d9; border-radius: 4px 4px 0 0; position: relative; min-height: 4px; transition: background .15s; }
.chart-bars .bar span { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: .6875rem; color: var(--muted); }
.chart-bars .bar:hover { background: var(--brand); }
.chart-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); margin-top: 2rem; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; }
.progress { height: 8px; border-radius: 999px; background: var(--soft-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

/* Steps */
.steps { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0 0 2rem; font-size: .8125rem; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.steps li .step-n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.steps li.is-done .step-n { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps li.is-active { color: var(--ink); font-weight: 620; }
.steps li.is-active .step-n { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps li:not(:last-child)::after { content: ""; width: 28px; height: 1px; background: var(--line-strong); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1.5rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); }
.timeline li.is-done::after { background: var(--brand); border-color: var(--brand); }
.timeline li.is-current::after { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.timeline strong { display: block; font-size: .9rem; }
.timeline span { font-size: .8125rem; color: var(--muted); }

/* Definition list */
.dl { display: grid; grid-template-columns: 140px 1fr; gap: .55rem 1rem; font-size: .875rem; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 550; }
.dl-wide { grid-template-columns: 180px 1fr; }

/* Avatar */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 650; font-size: .8125rem; flex-shrink: 0; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.25rem; }
.user-cell { display: flex; align-items: center; gap: .6rem; }

/* Toggle switch */
.switch { display: inline-flex; align-items: center; gap: .6rem; font-size: .875rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 40px; height: 22px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .15s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Modal-ish inline panel */
.panel-overlay { background: rgba(22,24,29,.4); padding: 2rem; border-radius: var(--radius); }
.dialog { background: #fff; border-radius: var(--radius); max-width: 440px; margin: 0 auto; padding: 1.5rem; box-shadow: var(--shadow-lg); }

/* ---------- 7. Storefront sections ---------- */
/* Hero */
.hero { position: relative; background: var(--soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; padding: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) 0; }
.hero-copy .eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: .9rem; }
.hero-copy h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); letter-spacing: -.035em; margin-bottom: 1rem; }
.hero-copy p { font-size: 1.0625rem; color: var(--ink-soft); max-width: 44ch; margin-bottom: 1.75rem; }
.hero-media { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: linear-gradient(160deg, #f4f4f4 0%, #ececec 60%, #e4e4e4 100%); display: grid; place-items: center; color: #b4b4b4; border: 1px solid var(--line); }
.hero-stats { display: flex; gap: 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.hero-stats strong { display: block; font-size: 1.25rem; letter-spacing: -.02em; }
.hero-stats span { font-size: .8125rem; color: var(--muted); }

/* Trust bar */
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.trust-item { display: flex; gap: .75rem; align-items: flex-start; }
.trust-item .t-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--brand); flex-shrink: 0; }
.trust-item strong { display: block; font-size: .875rem; }
.trust-item span { font-size: .8125rem; color: var(--muted); }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cat-tile { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.cat-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile .cat-img { aspect-ratio: 16 / 10; background: linear-gradient(140deg, #eef0ea, #dde3dc); display: grid; place-items: center; color: #7e8b82; }
.cat-tile .cat-body { padding: .9rem 1.1rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cat-tile h3 { margin: 0; font-size: .95rem; }
.cat-tile span { font-size: .75rem; color: var(--muted); }

/* Product card */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
.product-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { position: relative; display: flex; flex-direction: column; }
.product-card .thumb-wrap { position: relative; aspect-ratio: 1; border-radius: 0; overflow: hidden; background: var(--soft); border: 0; display: grid; place-items: center; }
.product-card .thumb-wrap .ph { color: #9aa39c; }
.product-card:hover .thumb-wrap { background: #efefef; }
.product-badges { position: absolute; top: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; z-index: 2; }
.wish-btn {
  position: absolute; top: .55rem; right: .55rem; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); cursor: pointer;
}
.wish-btn:hover, .wish-btn.is-on { color: var(--sale); border-color: var(--sale); }
.product-card .quick { position: absolute; left: .6rem; right: .6rem; bottom: .6rem; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; }
.product-card:hover .quick { opacity: 1; transform: none; }
.product-body { padding: .8rem .25rem 0; display: flex; flex-direction: column; gap: .2rem; }
.product-brand { font-size: .75rem; text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.product-title { font-size: .9rem; font-weight: 580; line-height: 1.35; margin: 0; }
.product-title a:hover { color: var(--brand); }
.price-row { display: flex; align-items: baseline; gap: .45rem; margin-top: .15rem; }
.price { font-weight: 650; letter-spacing: -.01em; }
.price-old { font-size: .8125rem; color: var(--muted); text-decoration: line-through; }
.price-off { font-size: .75rem; color: var(--sale); font-weight: 650; }
.rating { display: flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--muted); }
.stars { color: #d99a1c; letter-spacing: .05em; }
.swatches { display: flex; gap: .3rem; margin-top: .35rem; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

/* Listing layout */
.listing { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 12px); }
.filter-group { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .7rem; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { margin-bottom: .4rem; }
.filter-price { display: flex; align-items: center; gap: .5rem; }
.filter-price input { height: 36px; font-size: .8125rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; flex-wrap: wrap; }
.toolbar .result-count { font-size: .875rem; color: var(--muted); }
.toolbar select { width: auto; height: 38px; font-size: .8125rem; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--soft-2); border-radius: 999px; padding: .25rem .7rem; font-size: .75rem; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0; line-height: 1; }
.view-toggle { display: flex; gap: .25rem; }
.view-toggle button { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.view-toggle button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.list-row { display: grid; grid-template-columns: 200px 1fr; gap: 1.25rem; border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; margin-bottom: 1.25rem; }
.list-row .thumb-wrap { aspect-ratio: 1; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; color: #9aa39c; }

/* Product detail */
.pd { display: grid; grid-template-columns: 1fr 460px; gap: 3rem; align-items: start; }
.gallery-main { aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; color: #96a099; position: relative; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin-top: .75rem; }
.gallery-thumbs button { aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--soft); border: 1px solid var(--line); cursor: pointer; display: grid; place-items: center; color: #9aa39c; }
.gallery-thumbs button.is-active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pd-info h1 { font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); margin-bottom: .5rem; }
.pd-meta { display: flex; align-items: center; gap: .75rem; font-size: .8125rem; color: var(--muted); flex-wrap: wrap; margin-bottom: 1rem; }
.pd-price { display: flex; align-items: baseline; gap: .6rem; margin: .75rem 0 1rem; }
.pd-price .price { font-size: 1.85rem; letter-spacing: -.03em; }
.variant-label { font-size: .8125rem; font-weight: 600; margin: 1.25rem 0 .5rem; display: flex; justify-content: space-between; }
.variant-label span { color: var(--muted); font-weight: 400; }
.variant-options { display: flex; gap: .5rem; flex-wrap: wrap; }
.variant-options label { margin: 0; }
.variant-options input { position: absolute; opacity: 0; }
.variant-options .opt {
  min-width: 42px; padding: .45rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  text-align: center; font-size: .8125rem; font-weight: 550; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
}
.variant-options input:checked + .opt { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.variant-options input:focus-visible + .opt { outline: 2px solid var(--brand); outline-offset: 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; height: 44px; }
.qty button { width: 38px; height: 100%; border: 0; background: #fff; cursor: pointer; font-size: 1rem; color: var(--ink-soft); }
.qty button:hover { background: var(--soft); }
.qty input { width: 46px; height: 100%; border: 0; text-align: center; font-weight: 600; font-size: .9rem; padding: 0; }
.qty input:focus { box-shadow: none; }
.buy-row { display: flex; gap: .75rem; margin: 1.5rem 0; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 150px; }
.delivery-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; font-size: .8125rem; display: grid; gap: .55rem; }
.delivery-box div { display: flex; gap: .55rem; align-items: flex-start; }
.delivery-box svg { color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.spec-table th, .spec-table td { padding: .6rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 500; }
.review { border-bottom: 1px solid var(--line); padding: 1.25rem 0; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .35rem; }
.review-head strong { font-size: .9rem; }
.review-head time { font-size: .75rem; color: var(--muted); }
.rating-summary { display: grid; grid-template-columns: 160px 1fr; gap: 2rem; align-items: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.rating-big { text-align: center; }
.rating-big strong { display: block; font-size: 2.75rem; line-height: 1; letter-spacing: -.04em; }
.rating-bars { display: grid; gap: .4rem; font-size: .8125rem; }
.rating-bars div { display: grid; grid-template-columns: minmax(64px, 96px) 1fr 44px; gap: .6rem; align-items: center; color: var(--muted); }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }
.cart-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 1.1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-row:first-child { padding-top: 0; }
.cart-row .thumb { width: 96px; height: 96px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; color: #9aa39c; }
.cart-row h3 { font-size: .95rem; margin-bottom: .2rem; }
.cart-row .meta { font-size: .8125rem; color: var(--muted); }
.cart-row .row-actions { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .6rem; }
.cart-row .row-actions button { border: 0; background: none; padding: 0; font-size: .75rem; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.cart-row .row-actions button:hover { color: var(--sale); }
.cart-row .line-total { text-align: right; font-weight: 650; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary-row { display: flex; justify-content: space-between; font-size: .875rem; padding: .4rem 0; color: var(--ink-soft); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .9rem; font-size: 1.05rem; font-weight: 680; color: var(--ink); }
.summary-row .free { color: var(--brand); font-weight: 600; }
.coupon-row { display: flex; gap: .5rem; margin: 1rem 0; }
.coupon-row input { height: 38px; font-size: .8125rem; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }
.option-card {
  display: flex; gap: .75rem; align-items: flex-start; border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: .6rem; cursor: pointer; background: #fff;
}
.option-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fcfcfa; }
.option-card input { margin-top: 3px; accent-color: var(--brand); }
.option-card strong { font-size: .875rem; display: block; }
.option-card span { font-size: .8125rem; color: var(--muted); }
.option-card .opt-price { margin-left: auto; font-weight: 650; font-size: .875rem; white-space: nowrap; }
.order-line { display: flex; gap: .75rem; align-items: center; padding: .6rem 0; font-size: .8125rem; }
.order-line .thumb { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; color: #9aa39c; flex-shrink: 0; }
.order-line .line-info { flex: 1; min-width: 0; }
.order-line .line-info strong { display: block; font-size: .8125rem; font-weight: 550; }
.order-line .line-info span { color: var(--muted); font-size: .75rem; }

/* Auth */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-aside { background: var(--ink); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.auth-aside h2 { color: #fff; font-size: 1.75rem; }
.auth-aside p { color: #b9bcc2; max-width: 38ch; }
.auth-aside ul { color: #d6d8dc; font-size: .875rem; margin-top: 1.5rem; list-style: none; padding: 0; }
.auth-aside li { margin-bottom: .7rem; display: flex; align-items: flex-start; gap: .55rem; }
.auth-aside li svg { flex-shrink: 0; margin-top: 3px; color: var(--brand); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.6rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.75rem; font-size: .9rem; }
.alt-action { text-align: center; font-size: .875rem; color: var(--muted); margin-top: 1.5rem; }
.alt-action a { color: var(--brand); font-weight: 600; }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .75rem; margin: 1.25rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.otp-inputs { display: flex; gap: .5rem; justify-content: center; margin: 1rem 0 1.5rem; }
.otp-inputs input { width: 48px; height: 56px; text-align: center; font-size: 1.25rem; font-weight: 650; padding: 0; }

/* Account */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
.account-nav { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: calc(var(--header-h) + 16px); }
.account-nav .acct-user { padding: 1.1rem; border-bottom: 1px solid var(--line); display: flex; gap: .75rem; align-items: center; background: var(--soft); }
.account-nav .acct-user strong { font-size: .875rem; display: block; }
.account-nav .acct-user span { font-size: .75rem; color: var(--muted); }
.account-nav ul { list-style: none; padding: .4rem; margin: 0; }
.account-nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: var(--radius-sm); font-size: .875rem; color: var(--ink-soft); }
.account-nav a:hover { background: var(--soft); color: var(--ink); }
.account-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); font-weight: 620; }
.account-nav a.logout { color: var(--danger); }

/* Order card */
.order-card { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.15rem; background: var(--soft); border-bottom: 1px solid var(--line); font-size: .8125rem; flex-wrap: wrap; }
.order-card-body { padding: 1.15rem; display: flex; align-items: center; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
.order-thumbs { display: flex; gap: .4rem; }
.order-thumbs span { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; color: #9aa39c; font-size: .6875rem; }

/* Comparison */
.compare-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: .9rem 1rem; text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--soft); font-size: .8125rem; }
.compare-table th:first-child { width: 180px; background: var(--soft); font-weight: 600; color: var(--ink-soft); font-size: .8125rem; }

/* Brand grid */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.brand-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; background: #fff; transition: box-shadow .15s; }
.brand-tile:hover { box-shadow: var(--shadow); }
.brand-tile .b-mark { width: 52px; height: 52px; border-radius: 12px; background: var(--soft-2); display: grid; place-items: center; margin: 0 auto .75rem; font-weight: 700; color: var(--ink-soft); }
.brand-tile strong { display: block; font-size: .9rem; }
.brand-tile span { font-size: .75rem; color: var(--muted); }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.post-card .post-img { aspect-ratio: 16 / 10; border-radius: var(--radius); background: linear-gradient(140deg, #eef0ea, #dde3dc); display: grid; place-items: center; color: #8b968d; margin-bottom: .9rem; }
.post-card .post-meta { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.post-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.post-card p { font-size: .875rem; color: var(--muted); margin: 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 1.1rem 0; font-weight: 580; font-size: .9375rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--muted); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 0 1.15rem; color: var(--ink-soft); font-size: .9rem; max-width: 75ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.contact-card h3 { font-size: .9375rem; display: flex; align-items: center; gap: .5rem; }
.contact-card p { margin: 0; font-size: .875rem; color: var(--ink-soft); }

/* Prose (CMS pages) */
.prose { max-width: 72ch; font-size: .9375rem; color: var(--ink-soft); }
.prose h2 { margin-top: 2rem; color: var(--ink); }
.prose h3 { margin-top: 1.5rem; color: var(--ink); }
.prose ul li { margin-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .875rem; margin: 1.25rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--soft); }

/* ---------- 8. Admin shell ---------- */
.admin-body { background: var(--soft); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: #14161b; color: #c3c6cc; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-logo { display: flex; align-items: center; gap: .55rem; padding: 1.05rem 1.15rem; border-bottom: 1px solid #26292f; color: #fff; font-weight: 700; letter-spacing: -.02em; }
.admin-logo .logo-mark { background: var(--brand); }
.admin-nav { padding: .75rem .6rem 2rem; font-size: .8438rem; }
.admin-nav .group { font-size: .625rem; text-transform: uppercase; letter-spacing: .1em; color: #6f747d; padding: .9rem .55rem .35rem; font-weight: 700; }
.admin-nav a { display: flex; align-items: center; gap: .6rem; padding: .48rem .55rem; border-radius: var(--radius-sm); color: #c3c6cc; margin-bottom: 1px; }
.admin-nav a:hover { background: #22252b; color: #fff; }
.admin-nav a[aria-current="page"] { background: var(--brand); color: #fff; font-weight: 600; }
.admin-nav a .n-badge { margin-left: auto; background: #33373f; color: #d5d8dd; font-size: .625rem; padding: .1rem .35rem; border-radius: 999px; }
.admin-nav a[aria-current="page"] .n-badge { background: rgba(255,255,255,.22); color: #fff; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { height: 58px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; position: sticky; top: 0; z-index: 50; }
.admin-topbar .crumb { font-size: .8125rem; color: var(--muted); }
.admin-topbar .crumb a { color: var(--muted); }
.admin-topbar .crumb strong { color: var(--ink); font-weight: 600; }
.admin-topbar .spacer { flex: 1; }
.admin-topbar .search-inline { max-width: 300px; }
.admin-user { display: flex; align-items: center; gap: .55rem; font-size: .8125rem; }
.admin-content { padding: 1.5rem; flex: 1; }
.admin-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.admin-page-head h1 { font-size: 1.4rem; margin-bottom: .2rem; }
.admin-page-head p { margin: 0; color: var(--muted); font-size: .875rem; }
.admin-divider { height: 1px; background: var(--line); margin: 1.5rem 0; }
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
.filter-bar select, .filter-bar input { height: 36px; font-size: .8125rem; width: auto; min-width: 130px; }
.filter-bar .search-inline { min-width: 220px; flex: 0 1 260px; }
.bulk-bar { display: flex; align-items: center; gap: .75rem; padding: .6rem 1.15rem; background: var(--brand-soft); border-bottom: 1px solid #c6e0d3; font-size: .8125rem; color: var(--brand-dark); }
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.upload-zone { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 2rem 1rem; text-align: center; color: var(--muted); font-size: .8125rem; background: var(--soft); }
.upload-zone strong { display: block; color: var(--ink); font-size: .875rem; margin-bottom: .25rem; }
.upload-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .75rem; }
.upload-thumbs div { aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--soft-2); border: 1px solid var(--line); display: grid; place-items: center; color: #9aa39c; position: relative; }
.mini-list { list-style: none; padding: 0; margin: 0; font-size: .875rem; }
.mini-list li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list .grow { flex: 1; min-width: 0; }
.mini-list strong { display: block; font-size: .8438rem; font-weight: 550; }
.mini-list span { font-size: .75rem; color: var(--muted); }
.perm-grid { display: grid; grid-template-columns: 180px repeat(4, 1fr); font-size: .8125rem; }
.perm-grid > div { padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.perm-grid .ph { background: var(--soft); font-weight: 650; font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.perm-grid input { accent-color: var(--brand); }

/* ---------- 9. Utilities ---------- */
.text-muted { color: var(--muted); }
.text-sale { color: var(--sale); }
.text-brand { color: var(--brand); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-600 { font-weight: 600; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; } .flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.wrap { flex-wrap: wrap; }
.ml-auto { margin-left: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hr-sm { border-top: 1px solid var(--line); margin: 1.25rem 0; }
.ph { color: #9aa39c; }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd { grid-template-columns: 1fr 380px; gap: 2rem; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr 320px; gap: 1.75rem; }
  .cat-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .header-search { display: none; }
  .listing, .account-layout, .contact-grid, .split, .two-col, .three-col, .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-nav { display: flex; gap: .25rem; overflow-x: auto; padding: .5rem; }
  .admin-nav .group { display: none; }
  .admin-nav a { white-space: nowrap; }
  .filters { position: static; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 9; }
  .pd { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .nav-bar { display: none; }
  .nav-bar.is-open { display: block; }
  .nav-bar.is-open ul { flex-direction: column; align-items: stretch; padding: .5rem 0; }
  .menu-toggle { display: inline-flex; }
  .header-main { gap: .5rem; }
  .header-actions .icon-btn span { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 1.75rem; }
  .cat-grid, .post-grid, .brand-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .cart-row { grid-template-columns: 72px 1fr; }
  .cart-row .line-total { grid-column: 2; text-align: left; }
  .list-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }
  .rating-summary { grid-template-columns: 1fr; }
  .img-zoom { display: none; }
  .cart-row .thumb { width: 72px; height: 72px; }
  .dl, .dl-wide { grid-template-columns: 1fr; gap: .15rem 0; }
  .dl dt { margin-top: .5rem; }
  .admin-content { padding: 1rem; }
  .trust-bar { grid-template-columns: 1fr; }
  .order-card-body { flex-direction: column; align-items: flex-start; }
  .perm-grid { grid-template-columns: 120px repeat(4, 1fr); font-size: .75rem; }
}
@media print {
  .site-header, .site-footer, .admin-sidebar, .admin-topbar, .announce, .toolbar, .pagination { display: none !important; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* ---------- Flo-style product card details ---------- */
.product-card .sale-flag {
  position: absolute; left: .75rem; bottom: .75rem;
  background: #000; color: #fff; font-size: .75rem; font-weight: 600;
  padding: .3rem .7rem; letter-spacing: .01em; border-radius: 2px;
}
.product-badges .badge {
  border-radius: 2px; font-weight: 700; letter-spacing: .02em;
  font-size: .75rem; padding: .25rem .5rem;
}
.wish-btn i, .icon-btn i, .header-search button i {
  font-size: 1rem; line-height: 1;
}
.icon-btn i { font-size: 1.05rem; }
.wish-btn { background: #fff; border-radius: 50%; width: 32px; height: 32px; }
.product-title { font-size: .9375rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
.product-title a { color: var(--ink); }
.product-card:hover .product-title a { color: var(--brand); }
.product-card .price { font-weight: 700; }
.product-card .price-old { color: var(--muted); }
.thumb-wrap .ph { width: 46px; height: 46px; color: #bdbdbd; }

/* Section headings sit centred on the Flo homepage */
.section-head h2 { font-size: clamp(1.35rem, 1rem + 1.4vw, 1.9rem); }

/* Header: Flo is pure white with a thin bottom rule, no gold hairline */
.site-header::after { background: var(--line); opacity: 1; }
.header-main { height: 76px; }
.nav-bar { border-bottom: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Currency switcher
   Sits in the header between search and the account icons. Deliberately quiet:
   it is an escape hatch, not a feature to advertise.
   -------------------------------------------------------------------------- */
.header-currency { position: relative; }

.dst-cur { position: relative; }

.dst-cur-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  height: 38px;
  padding: 0 .55rem;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  cursor: pointer;
  border-radius: 0;
}
.dst-cur-btn:hover { border-color: var(--ink); }
.dst-cur-btn i { font-size: .74rem; color: var(--muted); }
.dst-cur-code { line-height: 1; }
.dst-cur-caret { font-size: .58rem !important; }

.dst-cur-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  width: 232px;
  margin: 0;
  padding: .3rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
}

.dst-cur-menu li { margin: 0; }

.dst-cur-menu button {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .48rem .5rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: .82rem;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
}
.dst-cur-menu button:hover { background: var(--soft); }
.dst-cur-menu li[aria-selected="true"] button { font-weight: 700; }

.dst-cur-sym { width: 2.4rem; color: var(--muted); font-size: .76rem; }
.dst-cur-name { flex: 1; }
.dst-cur-iso { color: var(--muted); font-size: .7rem; letter-spacing: .05em; }

.dst-cur-auto {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .25rem;
  padding: .45rem .5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .7rem;
}

@media (max-width: 720px) {
  .header-currency { display: none; }
}

/* The announcement bar is uppercased by design, but a currency symbol is not
   lettering — "Rs." must not become "RS." */
.announce [data-money] { text-transform: none; }
