/* ==========================================================================
   Talha Store: one design system. Liquid glass on periwinkle (light theme only).

   Direction: liquid glass. Periwinkle page, frosted
   glass surfaces, indigo ink and one violet-blue accent (#5b46e6) that is a
   FILL behind white text; text and icons that need blue on light surfaces
   use --accent-ink, a deeper blue that keeps 4.5:1 contrast.

   Order: tokens > base > controls > header > storefront > overlays > cart >
          checkout > account/notifications > dashboard > preferences.

   This file replaces style.css, apple-theme.css, pastel-theme.css,
   premium.css, theme.css and notifications.css. Admin "Brand colour"
   (theme.js) overrides only the accent family; neutrals stay periwinkle and slate.
   ========================================================================== */

/* ---- 1. Tokens -------------------------------------------------------- */
:root {
  /* Surfaces */
  --canvas: #ebe8ff;
  --surface: #f8f6ff;
  --surface-2: #f1eeff;
  --tile: #e1dbff;
  --fill: #e8e3ff;
  --fill-strong: #d9d2fb;

  /* Ink */
  --ink: #1c1a3a;
  --ink-2: #3a3768;
  --muted: #4b4872;
  --on-accent: #ffffff;

  /* Lines */
  --line: #cfc9f2;
  --line-soft: #ddd8f8;
  --field-line: #7b78ab;

  /* Accent: violet-blue */
  --accent: #5b46e6;
  --accent-hover: #4e3ad6;
  --accent-press: #4130bd;
  --accent-ink: #4634c4;
  --accent-soft: #e7d8ff;
  --focus: #5b46e6;

  /* Status */
  --deal: #9c4519;
  --deal-soft: #f7e4d8;
  --success: #3d6a2a;
  --success-soft: #e2edd8;
  --warning: #85540a;
  --warning-soft: #f7e8cb;
  --danger: #ae271d;
  --danger-soft: #f9e1dd;
  --wa: #1b7442;
  --wa-hover: #155f35;

  /* Elevation: border first, then a soft warm shadow */
  --shadow-1: 0 1px 2px rgba(80, 64, 180, 0.08);
  --shadow-2: 0 12px 30px rgba(90, 72, 200, 0.16);
  --shadow-3: 0 30px 70px rgba(60, 46, 150, 0.3);
  --scrim: rgba(28, 22, 80, 0.3);
  --material: rgba(240, 236, 255, 0.62);

  /* Footer / hero stay deep indigo / slate in both themes */
  --deep: #2d2680;
  --deep-2: #4b3fc4;
  --on-deep: #f3f0ff;
  --on-deep-muted: #c9c2f0;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Spacing: 4pt micro, 8pt macro */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px; --s24: 96px;
  --gutter: clamp(16px, 4vw, 32px);
  --wide: 1280px;
  --header-h: 64px;

  /* Motion: four durations, two eases */
  --t-100: 100ms; --t-150: 150ms; --t-200: 200ms; --t-300: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);

  /* Type */
  --font: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-meta: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-body: 1rem;

  /* Legacy names still used by inline styles in index.html and app.js */
  --text-main: var(--ink);
  --text-muted: var(--muted);
  --text-light: var(--muted);
  --bg-body: var(--canvas);
  --bg-card: var(--surface);
  --bg-subtle: var(--fill);
  --border-color: var(--line);
  --border-light: var(--line-soft);
  --accent-green: var(--success);
  --info: var(--accent-ink);
  --radius: var(--r-md);
  --radius-sm: var(--r-sm);
  --radius-lg: var(--r-lg);
  --logo-grad: var(--accent);
  /* Liquid glass + blue gradient (palette: #1d1b4d #0b2cb1 #1951fc #3781fc #6bbcff #cbe9fd) */
  --grad-accent: linear-gradient(135deg, #b8c0ff 0%, #c9b8ff 50%, #e7d8ff 100%);
  --grad-deep: linear-gradient(160deg, #5a46d6 0%, #2d2680 70%);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(248, 246, 255, 0.84);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --glass-line: rgba(91, 70, 230, 0.16);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(91, 70, 230, 0.07);
  --glass-shadow: 0 14px 32px -12px rgba(90, 72, 200, 0.3);
  --blur: saturate(180%) blur(20px);
  color-scheme: light;
}

/* ---- 2. Base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
body {
  font-family: var(--font); font-size: var(--text-body); font-weight: 500; line-height: 1.55;
  color: var(--ink); background: var(--canvas);
  min-height: 100vh; min-height: 100dvh; overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-ink); text-decoration: none; touch-action: manipulation; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }
.icon { width: 20px; height: 20px; flex: none; }
.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; }

h1, h2, h3, h4 { font-weight: 800; color: var(--ink); letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.25; }
h4 { font-size: 1rem; line-height: 1.3; }
p { text-wrap: pretty; }
small { font-size: var(--text-meta); }
.product-price, .cart-summary, td, .stat-card-value, .qty-input { font-variant-numeric: tabular-nums; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
main:focus, [tabindex="-1"]:focus { outline: none; }
.skip-link { position: fixed; left: 16px; top: 8px; z-index: 300; padding: 12px 20px; border-radius: var(--r-full); background: var(--ink); color: var(--canvas); font-weight: 700; transform: translateY(-160%); transition: transform var(--t-200) var(--ease-out); }
.skip-link:focus { transform: none; text-decoration: none; }

/* ---- 3. Controls ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--r-md);
  font-size: var(--text-sm); font-weight: 700; line-height: 1.2; white-space: nowrap;
  border: 1.5px solid transparent; text-decoration: none; user-select: none; -webkit-user-select: none;
  transition: background-color var(--t-150) var(--ease-out), border-color var(--t-150) var(--ease-out), color var(--t-150) var(--ease-out), box-shadow var(--t-200) var(--ease-out), transform var(--t-100) var(--ease-out), opacity var(--t-150) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary, .btn-accent, .quick-add { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover:not(:disabled), .btn-accent:hover:not(:disabled), .quick-add:hover:not(:disabled) { background: var(--accent-hover); color: var(--on-accent); }
.btn-primary:active:not(:disabled), .quick-add:active:not(:disabled) { background: var(--accent-press); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); border-color: var(--accent); }

.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: var(--danger); color: var(--canvas); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover:not(:disabled) { background: var(--wa-hover); }

.btn-light { background: var(--on-deep); color: var(--deep); }
.btn-light:hover:not(:disabled) { background: #fff; }
.btn-sm { min-height: 44px; padding: 0 16px; }
@media (pointer: fine) { .btn-sm { min-height: 38px; padding: 0 14px; } }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--on-accent); border-right-color: transparent; border-left-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-action { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: var(--r-md); color: var(--ink); transition: background-color var(--t-150) var(--ease-out), transform var(--t-100) var(--ease-out); }
.icon-action:hover { background: var(--fill); }
.icon-action:active { transform: scale(0.94); background: var(--fill-strong); }

/* Forms: visible labels, 48px fields, clear boundary, blue focus */
.form-group { margin-bottom: var(--s4); }
.form-group > label, label.form-label, #tab-promotions label, .customer-form label { display: block; margin-bottom: 6px; font-size: var(--text-sm); font-weight: 700; color: var(--ink-2); }
.form-control {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--field-line); border-radius: var(--r-md);
  font-size: 1rem; font-weight: 500; line-height: 1.4;
  transition: border-color var(--t-150) var(--ease-out), box-shadow var(--t-150) var(--ease-out);
  appearance: none; -webkit-appearance: none;
}
textarea.form-control { min-height: 96px; resize: vertical; }
.form-control::placeholder { color: var(--muted); opacity: 0.85; }
.form-control:hover { border-color: var(--ink-2); }
.form-control:focus, .form-control:focus-visible { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-control:disabled { opacity: 0.6; background: var(--fill); }
select.form-control {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e6551' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
input[type="file"] { font-size: var(--text-sm); color: var(--muted); }
input[type="file"]::file-selector-button { margin-right: 12px; min-height: 36px; padding: 0 16px; border: 0; border-radius: var(--r-md); background: var(--fill); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--fill-strong); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--accent-ink); flex: none; }
.form-group.invalid .form-control, .form-control[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin-top: 6px; font-size: var(--text-meta); color: var(--danger); }
.field-hint, .form-group small { display: block; margin-top: 6px; color: var(--muted); font-size: var(--text-meta); font-weight: 500; }
.settings-help { margin-top: 6px; font-size: var(--text-meta); color: var(--muted); line-height: 1.45; }
.settings-subheading { margin: var(--s6) 0 var(--s3); font-size: 1.0625rem; }
.settings-divider { height: 1px; margin: var(--s6) 0; background: var(--line); border: 0; }
.settings-toggle { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; font-size: var(--text-sm); cursor: pointer; }
.settings-toggle input { margin-top: 2px; }
.alert { padding: 12px 16px; border-radius: var(--r-md); font-size: var(--text-sm); line-height: 1.45; }
.alert-danger { background: var(--danger-soft); color: var(--danger); }

/* Badges: only for real state, with a dot so colour is never alone */
.badge, .store-type-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-full); font-size: var(--text-meta); font-weight: 700; line-height: 1.6; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge-pending { background: var(--warning-soft); color: var(--warning); }
.badge-confirmed, .badge-dispatched { background: var(--accent-soft); color: var(--accent-ink); }
.badge-delivered { background: var(--success-soft); color: var(--success); }
.badge-cancelled, .badge-rejected { background: var(--danger-soft); color: var(--danger); }
.store-type-tag { padding: 0; background: none; color: var(--muted); }
.profit-hidden { font-size: var(--text-meta); color: var(--muted); }
kbd { padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--fill); font: 600 var(--text-meta)/1.5 var(--font); }

/* ---- 4. Header -------------------------------------------------------- */
header {
  position: sticky; top: 0; z-index: 60; background: var(--material);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color var(--t-200) var(--ease-out), box-shadow var(--t-200) var(--ease-out);
}
header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -16px rgba(90, 72, 200, 0.35); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { header { background: var(--canvas); } }
.nav-container { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s4); max-width: var(--wide); height: var(--header-h); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; max-width: 100%; justify-self: start; cursor: pointer; border-radius: var(--r-sm); overflow: hidden; }
#brand-logo-container { display: flex; align-items: center; }
.brand-custom-logo { height: 32px; width: auto; max-width: 120px; object-fit: contain; }
.brand-custom-logo.is-wide { height: 40px; max-width: 220px; }
.brand-default-mark { height: 28px; width: 28px; }
.brand-logo-mark, .footer-brand-mark.is-mono, .brand-logo-mark.is-mono { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.brand-text { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text .bn-a, .brand-text .bn-b { color: var(--ink); }
.brand:has(.brand-custom-logo.is-wide) .brand-text { display: none; }

.store-nav { display: flex; align-items: center; justify-content: center; gap: 4px; }
.store-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: var(--text-sm); font-weight: 700; color: var(--ink-2); border-radius: var(--r-full); transition: color var(--t-150) var(--ease-out), background-color var(--t-150) var(--ease-out); }
.store-nav a:hover { background: var(--fill); color: var(--ink); text-decoration: none; }
.store-nav a.active { background: var(--accent-soft); color: var(--accent-ink); }
.nav-staff { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-left: 4px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-full); font-size: var(--text-meta); font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: background-color var(--t-150) var(--ease-out), border-color var(--t-150) var(--ease-out); }
.nav-staff:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.nav-staff .icon { width: 15px; height: 15px; }
.nav-staff-chevron, .nav-toggle, .nav-divider { display: none; }

.nav-actions { display: flex; align-items: center; justify-self: end; gap: 2px; }
.cart-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cart-badge, #notification-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full); background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; transition: transform var(--t-200) var(--ease-out), opacity var(--t-150) var(--ease-out); }
#notification-count { background: var(--deal); color: #fff; top: 6px; right: 6px; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; }

.cart-badge.is-zero { opacity: 0; transform: scale(0.6); }
.cart-badge.pulsing { animation: badgeBump var(--t-300) var(--ease-out); }
@keyframes badgeBump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
#notification-open.new-unread .icon { animation: bellRing 250ms ease-out; }
@keyframes bellRing { 35% { transform: rotate(8deg); } 70% { transform: rotate(-6deg); } }

/* Search drops from the header like a sheet; unreachable while closed */
.search-bar { position: absolute; left: 0; right: 0; top: 100%; z-index: -1; display: flex; align-items: center; margin: 0 auto; padding: 12px var(--gutter); background: var(--material); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: transform var(--t-200) var(--ease-in), opacity var(--t-150) var(--ease-in), visibility 0s linear var(--t-200); }
.nav-container.search-open .search-bar { visibility: visible; opacity: 1; transform: none; transition: transform var(--t-200) var(--ease-out), opacity var(--t-200) var(--ease-out), visibility 0s; }
.search-bar .search-icon { position: absolute; left: calc(var(--gutter) + 16px); top: 50%; margin-top: -10px; color: var(--muted); pointer-events: none; }
.search-bar input { width: 100%; max-width: var(--wide); margin: 0 auto; min-height: 48px; padding: 0 16px 0 46px; border: 1.5px solid var(--line); border-radius: var(--r-full); background: var(--surface); color: var(--ink); font-size: 1rem; }
.search-bar input::placeholder { color: var(--muted); }
.search-bar input:focus-visible { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
body[data-view="dashboard"] .search-toggle, body[data-view="dashboard"] .search-bar, body[data-view="dashboard"] .store-nav { display: none; }
body[data-view="dashboard"] .nav-container { grid-template-columns: 1fr auto; }

@media (max-width: 820px) {
  :root { --header-h: 60px; }
  .nav-container { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .nav-toggle .icon path { transition: transform var(--t-200) var(--ease-out); transform-origin: center; transform-box: fill-box; }
  .nav-container.nav-open .nt-a { transform: translateY(3px) rotate(45deg); }
  .nav-container.nav-open .nt-b { transform: translateY(-3px) rotate(-45deg); }
  .store-nav { position: absolute; left: 0; right: 0; top: 100%; z-index: -1; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--surface); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: transform var(--t-200) var(--ease-in), opacity var(--t-150) var(--ease-in), visibility 0s linear var(--t-200); }
  .nav-container.nav-open .store-nav { visibility: visible; opacity: 1; transform: none; transition: transform var(--t-200) var(--ease-out), opacity var(--t-200) var(--ease-out), visibility 0s; }
  .store-nav a, .store-nav .nav-staff { display: flex; align-items: center; width: 100%; min-height: 52px; margin: 0; padding: 0 4px; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: none; font-size: 1.0625rem; font-weight: 600; color: var(--ink); gap: 12px; text-align: left; }
  .store-nav a:hover, .store-nav .nav-staff:hover { background: none; }
  .store-nav a.active { background: none; color: var(--accent-ink); }
  .nav-staff-chevron { display: inline; margin-left: auto; }
  
  
  .brand-custom-logo { max-width: 96px; }
  .brand-custom-logo.is-wide { height: 34px; max-width: 170px; }
}
@media (max-width: 480px) { .nav-container { gap: 4px; } .icon-action { min-width: 40px; } .nav-actions { gap: 0; } .brand-text { font-size: 1rem; } }

/* ---- 5. Storefront ---------------------------------------------------- */
main { display: block; width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) var(--s16); }
#storefront-view { display: block; }
.fade-in { animation: viewIn var(--t-300) var(--ease-out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Intro */
.store-intro { display: grid; justify-items: start; gap: 12px; max-width: none; margin: 0; padding: 40px 0 28px; text-align: left; }
.store-eyebrow { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent-ink); font-size: var(--text-meta); font-weight: 800; }
.store-intro h1 { max-width: 18ch; }
.store-intro p { max-width: 52ch; font-size: 1.125rem; color: var(--muted); line-height: 1.5; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.intro-actions .btn-primary { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.intro-link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-weight: 700; transition: border-color var(--t-150) var(--ease-out), background-color var(--t-150) var(--ease-out); }
.intro-link:hover { border-color: var(--accent); background: var(--surface-2); }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; color: var(--ink-2); font-size: var(--text-sm); font-weight: 700; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .icon { color: var(--accent-ink); }
@media (max-width: 820px) { .store-intro { padding: 24px 0 20px; } .intro-actions .btn, .intro-link { flex: 1 1 auto; justify-content: center; } }

/* Hero carousel: photographic on a navy scrim */
.hb { position: relative; height: clamp(400px, 38vw, 470px); margin: 0 0 var(--s4); border-radius: var(--r-xl); overflow: hidden; background: var(--deep); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; isolation: isolate; box-shadow: var(--shadow-2); }
.hb.is-dragging { cursor: grabbing; }
.hb-track { display: flex; height: 100%; will-change: transform; }
.hb-slide { position: relative; flex: 0 0 100%; height: 100%; display: flex; align-items: center; padding: 0 clamp(24px, 6vw, 72px); overflow: hidden; isolation: isolate; }
.hb-photo { position: absolute; inset: 0; z-index: -2; background-image: var(--hb-photo); background-repeat: no-repeat; background-size: cover; background-position: right center; filter: saturate(1.05); pointer-events: none; }
.hb-slide::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(24, 18, 70, 0.95) 0%, rgba(24, 18, 70, 0.82) 34%, rgba(24, 18, 70, 0.3) 62%, rgba(24, 18, 70, 0.04) 85%), linear-gradient(0deg, rgba(24, 18, 70, 0.5), rgba(24, 18, 70, 0) 30%); }
.hb-copy { position: relative; max-width: min(520px, 62%); color: var(--on-deep); }
.hb-brand, .hb-coke .hb-brand, .hb-sevenup .hb-brand, .hb-sting .hb-brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 4px 12px; border-radius: var(--r-full); background: rgba(20, 16, 60, 0.58); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--on-deep); font-size: var(--text-sm); font-weight: 700; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hb-brand::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #e5473a); }
.hb-sevenup { --dot: #6fd68c; } .hb-sting { --dot: #ff6b5b; }
.hb-copy h2 { margin-bottom: 12px; color: var(--on-deep); font-size: clamp(2.125rem, 4.2vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; }
.hb-copy p { margin-bottom: 24px; font-size: 1.0625rem; line-height: 1.45; color: rgba(240, 236, 255, 0.86); }
.hb-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hb-cta, .hb-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--r-md); font-size: 1rem; font-weight: 700; transition: background-color var(--t-150) var(--ease-out), transform var(--t-100) var(--ease-out); }
.hb-cta { background: #d9ceff; color: #1d1b4d; }
.hb-cta:hover { background: #ece4ff; text-decoration: none; }
.hb-ghost { color: var(--on-deep); border: 1.5px solid rgba(240, 236, 255, 0.55); background: rgba(240, 236, 255, 0.06); }
.hb-ghost:hover { background: rgba(240, 236, 255, 0.18); text-decoration: none; }
.hb-cta:active, .hb-ghost:active { transform: scale(0.98); }
.hb-perks { display: none; }
.hb-copy > * { opacity: 0; transform: translateY(10px); transition: opacity var(--t-300) var(--ease-out), transform var(--t-300) var(--ease-out); }
.hb-slide.is-active .hb-copy > * { opacity: 1; transform: none; }
.hb-slide.is-active .hb-copy > *:nth-child(2) { transition-delay: 50ms; } .hb-slide.is-active .hb-copy > *:nth-child(3) { transition-delay: 100ms; } .hb-slide.is-active .hb-copy > *:nth-child(4) { transition-delay: 150ms; }
.hb-controls { position: absolute; left: 50%; bottom: 14px; z-index: 4; display: flex; align-items: center; transform: translateX(-50%); height: 44px; padding: 0 6px; border-radius: var(--r-full); background: rgba(24, 18, 70, 0.62); border: 1px solid rgba(240, 236, 255, 0.18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hb-dots { display: flex; }
.hb-dot { position: relative; width: 32px; height: 44px; display: grid; place-items: center; padding: 0; }
.hb-dot span { width: 8px; height: 8px; border-radius: 50%; background: rgba(240, 236, 255, 0.45); transition: background-color var(--t-200) var(--ease-out), transform var(--t-200) var(--ease-out), width var(--t-200) var(--ease-out); }
.hb-dot.is-active span { width: 20px; border-radius: 4px; background: #d9ceff; }
.hb-pause { display: grid; place-items: center; width: 44px; height: 44px; margin-left: 2px; border-radius: 50%; color: var(--on-deep); }
.hb-pause .icon { width: 14px; height: 14px; } .hb-pause .i-play { display: none; }
.hb-pause[aria-pressed="true"] .i-pause { display: none; } .hb-pause[aria-pressed="true"] .i-play { display: block; }
.hb-pause:hover { background: rgba(240, 236, 255, 0.14); }
.hb:focus-visible { outline-offset: 3px; }
@media (max-width: 820px) {
  .hb { height: auto; min-height: 30rem; border-radius: 22px; }
  .hb-track, .hb-slide { min-height: inherit; height: auto; }
  .hb-slide { align-items: flex-end; padding: 24px 22px 84px; }
  .hb-slide::after { background: linear-gradient(0deg, rgba(24, 18, 70, 0.96) 0%, rgba(24, 18, 70, 0.78) 44%, rgba(24, 18, 70, 0.1) 80%); }
  .hb-photo { background-position: var(--hb-pos-m, 70%) top; background-size: auto 66%; background-color: #1a1740; }
  .hb-copy { width: 100%; max-width: 100%; min-width: 0; }
  .hb-copy h2 { font-size: clamp(1.875rem, 8vw, 2.25rem); margin-bottom: 8px; }
  .hb-copy p { margin-bottom: 16px; font-size: 0.9375rem; }
  .hb-cta, .hb-ghost { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
}

/* Announcement + inline offer */
.announcement-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 24px; min-height: 0; margin: 0 0 var(--s6); padding: 10px 16px; border-radius: var(--r-md); background: var(--tile); color: var(--ink-2); font-size: var(--text-meta); font-weight: 700; text-align: center; }
.announcement-bar span + span { opacity: 0.8; }
.inline-offer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 var(--s6); padding: 16px 20px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r-lg); }
.inline-offer strong { display: block; font-size: 1rem; }
.inline-offer p { margin-top: 2px; color: var(--ink-2); font-size: var(--text-sm); }
@media (max-width: 640px) { .inline-offer { align-items: flex-start; flex-direction: column; } }

/* Catalog controls */
.catalog-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin: var(--s8) 0 var(--s4); }
.shop-segments { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 320px); min-width: 0; padding: 4px; border-radius: var(--r-md); background: var(--fill-strong); }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: calc(var(--r-md) - 3px); background: var(--surface); box-shadow: var(--shadow-1); transition: transform var(--t-300) var(--ease-out); }

.shop-segments[data-active="Wholesale"] .seg-thumb { transform: translateX(100%); }
.shop-segments button { position: relative; z-index: 1; min-height: 44px; padding: 0 16px; border-radius: calc(var(--r-md) - 3px); font-size: var(--text-sm); font-weight: 700; color: var(--muted); transition: color var(--t-200) var(--ease-out); }
.shop-segments button.active { color: var(--ink); }
.shop-segments button:focus-visible { outline-offset: -2px; }
.filter-btn[aria-expanded="true"] { background: var(--ink); color: var(--canvas); border-color: var(--ink); }

.category-strip { margin: 0 0 var(--s3); }
.category-tiles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 2px; }
.category-tile, .filter-chip, .brand-chip { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: var(--r-full); background: var(--surface); color: var(--ink-2); font-size: var(--text-sm); font-weight: 700; white-space: nowrap; transition: background-color var(--t-150) var(--ease-out), border-color var(--t-150) var(--ease-out), color var(--t-150) var(--ease-out), transform var(--t-100) var(--ease-out); }
.category-tile:hover, .filter-chip:hover, .brand-chip:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.category-tile:active, .filter-chip:active, .brand-chip:active { transform: scale(0.97); }
.category-tile.active, .filter-chip.active, .brand-chip.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s4); }

/* Brands: one quiet scrolling row so products stay near the top */
.brand-row { margin: 0 0 var(--s6); }
.brand-chips { display: flex; flex-wrap: nowrap; gap: 8px; padding: 2px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.brand-chips::-webkit-scrollbar { display: none; }
.brand-chip { min-height: 40px; padding: 0 16px; border-color: var(--line-soft); background: transparent; font-size: var(--text-meta); color: var(--muted); }
@media (pointer: coarse) { .brand-chip { min-height: 44px; } }
@media (max-width: 899px) {
  .category-tiles { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .category-tiles::-webkit-scrollbar { display: none; }
  .brand-chips { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
}

.catalog-section { margin-bottom: var(--s12); }
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); }
.catalog-head p { color: var(--muted); font-size: var(--text-sm); }
.admin-segments { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s4); }
.admin-segments .btn.active { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
@media (max-width: 640px) { .catalog-head { flex-direction: column; align-items: flex-start; gap: 2px; } }

/* Product grid + cards */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: var(--s4); }
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 10px 10px 14px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-1); cursor: pointer; transition: transform var(--t-200) var(--ease-out), box-shadow var(--t-200) var(--ease-out), border-color var(--t-150) var(--ease-out), opacity var(--t-300) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .product-card.reveal.in:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line); } }
.product-img-wrap { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: calc(var(--r-lg) - 6px); background: var(--tile); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--t-300) var(--ease-out), transform var(--t-300) var(--ease-out); }
.product-img-wrap img[src$=".svg"] { object-fit: contain; padding: 6%; }
.product-img-wrap img.loaded { opacity: 1; }
@media (hover: hover) { .product-card:hover .product-img-wrap img.loaded { transform: scale(1.03); } }
.product-badge { position: absolute; top: 10px; left: 10px; padding: 2px 9px; border-radius: 8px; background: var(--deal); color: #fff; font-size: var(--text-meta); font-weight: 800; line-height: 1.7; }

.sold-out-tag { position: absolute; left: 10px; bottom: 10px; padding: 2px 9px; border-radius: 8px; background: var(--ink); color: var(--canvas); font-size: var(--text-meta); font-weight: 700; line-height: 1.7; }
.product-card.sold-out .product-img-wrap img { filter: grayscale(1); opacity: 0.5; }
.save-product { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink-2); box-shadow: var(--shadow-1); transition: color var(--t-150) var(--ease-out), transform var(--t-100) var(--ease-out); }
.save-product .icon { width: 19px; height: 19px; transition: fill var(--t-150) var(--ease-out); }
.save-product.is-saved { color: var(--deal); }
.save-product.is-saved .icon { fill: currentColor; }
.saved-pop { animation: savedPop 220ms ease-out; }
@keyframes savedPop { 50% { transform: scale(1.12); } }

.product-body { display: flex; flex-direction: column; flex: 1; padding: 12px 4px 0; }
.free-del-tag { align-self: flex-start; margin-bottom: 6px; padding: 1px 8px; border-radius: 6px; background: var(--success-soft); color: var(--success); font-size: var(--text-meta); font-weight: 700; }
.product-title { display: block; min-height: 2.6em; margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.product-open { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; padding: 0; text-align: left; color: inherit; font: inherit; line-height: 1.3; border-radius: 6px; }
.product-brand { min-height: 1.2em; margin: 2px 0 0; font-size: var(--text-meta); font-weight: 600; color: var(--muted); }
.product-desc { margin-top: 4px; font-size: var(--text-sm); line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { order: 5; margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; padding-top: 10px; }
.product-price { font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.02em; }
.product-price del { margin-right: 6px; font-size: var(--text-meta); font-weight: 500; color: var(--muted); }
.product-stock { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-meta); font-weight: 600; color: var(--success); }
.product-stock.low { color: var(--warning); }
.product-stock span[aria-hidden] { font-size: 0.6em; }
.sold-out .product-stock { color: var(--muted); }
.quick-add { order: 6; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 12px; border-radius: var(--r-md); font-size: var(--text-sm); font-weight: 700; }
.quick-add .icon { width: 18px; height: 18px; }
.quick-add .icon-check, .quick-add.added .icon-plus { display: none; }
.quick-add.added { background: var(--success); color: var(--surface); }
.quick-add.added .icon-check { display: block; }
.quick-add:disabled { background: var(--fill-strong); color: var(--muted); }
.qa-label { position: static; }

.reveal { opacity: 0; transform: translateY(12px); }
.reveal.in { opacity: 1; transform: none; transition: opacity var(--t-300) var(--ease-out) var(--d, 0s), transform var(--t-300) var(--ease-out) var(--d, 0s); }

/* Loading + empty */
.skeleton-card { display: flex; flex-direction: column; gap: 10px; padding: 10px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); }
.sk-img, .sk-line { border-radius: var(--r-md); background: linear-gradient(90deg, var(--tile) 0%, var(--fill-strong) 50%, var(--tile) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.sk-img { aspect-ratio: 1 / 1; } .sk-line { height: 14px; border-radius: 7px; width: 80%; } .sk-line.short { width: 40%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.products-grid > .grid-empty:first-child:has(.sr-only:only-child) { display: none; }
.grid-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: var(--s4); padding: var(--s12) var(--s4); text-align: center; color: var(--muted); }
.grid-empty p { max-width: 36ch; }
.grid-empty strong { color: var(--ink); font-size: 1.0625rem; }
.receipt-loading { padding: var(--s8); text-align: center; color: var(--muted); }

@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { padding: 8px 8px 12px; border-radius: 18px; }
  .product-img-wrap { border-radius: 12px; }
  .product-title { font-size: 0.9375rem; }
  .product-price { font-size: 1rem; }
  .save-product { width: 40px; height: 40px; top: 6px; right: 6px; }
  .quick-add { font-size: var(--text-meta); }
}
@media (max-width: 360px) { .products-grid { grid-template-columns: 1fr; } }

/* Promo band */
.promo-band { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s8); align-items: center; margin-bottom: var(--s12); padding: clamp(28px, 5vw, 48px); border-radius: var(--r-xl); overflow: hidden; background: var(--deep); color: var(--on-deep); }
.promo-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/banner-sting.jpg") 78% center / cover no-repeat; filter: brightness(0.72) saturate(1.05); }
.promo-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(24, 18, 70, 0.95) 0%, rgba(24, 18, 70, 0.72) 45%, rgba(24, 18, 70, 0.1) 100%); }
.promo-eyebrow { display: inline-block; margin-bottom: 12px; font-size: var(--text-sm); font-weight: 700; color: #d9ceff; }
.promo-copy { min-width: 0; overflow-wrap: anywhere; }
.promo-copy h2 { margin-bottom: 8px; color: var(--on-deep); font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.035em; }
.promo-copy p { max-width: 36ch; margin-bottom: var(--s6); color: rgba(240, 236, 255, 0.86); font-size: 1.0625rem; }
.promo-copy .btn { max-width: 100%; white-space: normal; }
.promo-points { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 0; }
.promo-points li { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 14px; border-radius: var(--r-full); background: rgba(240, 236, 255, 0.1); border: 1px solid rgba(240, 236, 255, 0.22); font-size: var(--text-meta); font-weight: 700; color: var(--on-deep); }
.promo-points .icon { width: 20px; height: 20px; }
@media (max-width: 820px) { .promo-band { grid-template-columns: minmax(0, 1fr); } .promo-points { align-items: flex-start; flex-direction: row; flex-wrap: wrap; } .promo-band::after { background: linear-gradient(0deg, rgba(24, 18, 70, 0.94), rgba(24, 18, 70, 0.5)); } }

/* About */
.about-section { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s8); margin-bottom: var(--s12); padding: clamp(24px, 5vw, 44px); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-xl); }
.about-copy, .about-card { min-width: 0; max-width: 100%; }
.about-copy h2 { margin-bottom: 12px; overflow-wrap: anywhere; }
.about-copy > p { max-width: 54ch; margin-bottom: var(--s6); color: var(--muted); font-size: 1.0625rem; line-height: 1.5; overflow-wrap: anywhere; }
.about-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.about-points li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--text-sm); font-weight: 700; overflow-wrap: anywhere; }
.about-points .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.about-card { align-self: start; padding: var(--s6); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-soft); }
.footer-label { display: block; margin-bottom: 2px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.about-card p { margin-bottom: var(--s4); font-size: 1rem; }
@media (max-width: 820px) { .about-section { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .about-points { grid-template-columns: minmax(0, 1fr); } }

/* Footer: a deep navy panel in both themes */
.store-footer { margin-top: var(--s12); padding: clamp(24px, 5vw, 44px); padding-bottom: max(var(--s6), env(safe-area-inset-bottom)); border-radius: var(--r-xl); background: var(--deep); color: var(--on-deep-muted); }

.footer-brand { display: flex; align-items: flex-start; gap: 12px; margin-bottom: var(--s8); }
.footer-brand-mark { width: 40px; height: 40px; overflow: hidden; border-radius: 12px; background: var(--on-deep); }
.footer-brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.store-footer .footer-brand strong { display: block; font-size: 1.125rem; font-weight: 800; color: var(--on-deep); }
.store-footer .footer-brand strong .bn-a, .store-footer .footer-brand strong .bn-b { color: inherit; }
.footer-brand p { max-width: 46ch; margin-top: 4px; font-size: var(--text-sm); color: var(--on-deep-muted); }
.footer-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s8); padding-bottom: var(--s6); }
.footer-details > div { min-width: 0; }
.store-footer .footer-label { color: #b9b5e0; }
.footer-details p, .footer-details a { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 40px; font-size: var(--text-sm); color: var(--on-deep-muted); overflow-wrap: anywhere; }
.store-footer .footer-details a { color: var(--on-deep); font-weight: 700; }
.store-footer .footer-details a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-utilities { display: flex; flex-wrap: wrap; gap: 8px; padding: var(--s4) 0 var(--s6); border-top: 1px solid rgba(240, 236, 255, 0.14); }
.btn-footer, .track-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 0 18px; border: 1.5px solid rgba(240, 236, 255, 0.4); border-radius: var(--r-md); background: transparent; color: var(--on-deep); font-size: var(--text-sm); font-weight: 700; transition: background-color var(--t-150) var(--ease-out), color var(--t-150) var(--ease-out); }
.btn-footer:hover, .track-link:hover { background: var(--on-deep); color: var(--deep); text-decoration: none; }
.btn-footer .icon { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); min-width: 0; padding-top: var(--s4); padding-right: 72px; border-top: 1px solid rgba(240, 236, 255, 0.14); font-size: var(--text-meta); color: #b9b5e0; }

/* WhatsApp: one compact circle; the label opens on hover or focus */
.floating-whatsapp { position: fixed; z-index: 90; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; min-width: 52px; padding: 0 14px; border-radius: var(--r-full); background: var(--wa); color: #fff; box-shadow: var(--shadow-2); font-size: var(--text-sm); font-weight: 700; transition: background-color var(--t-150) var(--ease-out), transform var(--t-100) var(--ease-out); }

.floating-whatsapp svg { width: 26px; height: 26px; fill: currentColor; }
.floating-whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (hover: hover) and (min-width: 821px) { .floating-whatsapp:hover span, .floating-whatsapp:focus-visible span { position: static; width: auto; height: auto; overflow: visible; clip: auto; } .floating-whatsapp:hover, .floating-whatsapp:focus-visible { padding: 0 20px 0 14px; } }
.floating-whatsapp:hover { background: var(--wa-hover); text-decoration: none; }
.floating-whatsapp:active { transform: scale(0.95); }
body[data-view="dashboard"] .floating-whatsapp { display: none !important; }
body:has(.modal-overlay.open) .floating-whatsapp { visibility: hidden; pointer-events: none; }
@media (max-width: 820px) { .store-footer { padding-bottom: 88px; } .footer-bottom { padding-right: 0; } }

/* ---- 6. Toasts + overlays --------------------------------------------- */
#toast-container { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); transform: translateX(-50%); pointer-events: none; }
.toast { position: relative; display: flex; align-items: center; gap: 12px; max-width: 100%; padding: 12px 18px; border-radius: var(--r-md); background: var(--ink); color: var(--canvas); font-size: var(--text-sm); font-weight: 700; line-height: 1.35; box-shadow: var(--shadow-3); pointer-events: auto; animation: toastIn var(--t-300) var(--ease-out) both; }
.toast.leaving { animation: toastOut var(--t-200) var(--ease-in) forwards; }
.toast-icon { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); font-size: 12px; font-weight: 800; }
.toast-success .toast-icon { background: var(--accent); color: var(--on-accent); }
.toast-danger { background: var(--danger); color: #fff; }

@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
@media (max-width: 640px) { #toast-container { bottom: calc(88px + env(safe-area-inset-bottom)); } }

.modal-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: var(--s4); background: var(--scrim); }
.modal-overlay.open { display: flex; animation: fadeIn var(--t-200) var(--ease-out) both; }
.modal-overlay.closing { display: flex; animation: fadeOut var(--t-150) var(--ease-in) both; pointer-events: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
.modal-content { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: min(90vh, 880px); max-height: min(90dvh, 880px); background: var(--surface); color: var(--ink); border: 1px solid var(--line-soft); border-radius: var(--r-xl); box-shadow: var(--shadow-3); overflow: hidden; }
.modal-overlay.open .modal-content { animation: modalIn var(--t-300) var(--ease-out) both; }
.modal-overlay.closing .modal-content { animation: modalOut var(--t-150) var(--ease-in) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes modalOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetOut { from { transform: none; } to { transform: translateY(100%); } }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawerOut { from { transform: none; } to { transform: translateX(100%); } }

.modal-header { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex: none; padding: 20px 20px 14px 24px; border-bottom: 1px solid var(--line-soft); }
.modal-header h3 { display: flex; align-items: center; gap: 10px; font-size: 1.375rem; }
.modal-title-icon { width: 24px; height: 24px; color: var(--accent-ink); }
.modal-close { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--fill); color: var(--ink-2); font-size: 0; transition: background-color var(--t-150) var(--ease-out), transform var(--t-100) var(--ease-out); }
.modal-close::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat; }
.modal-close:hover { background: var(--fill-strong); } .modal-close:active { transform: scale(0.92); }
.modal-body { --pad: 24px; flex: 1 1 auto; min-height: 0; padding: 20px var(--pad) var(--pad); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-body h4 { margin: var(--s6) 0 var(--s3); font-size: 1.0625rem; }
.modal-body h4:first-child, .modal-body form > h4:first-child { margin-top: 0; }
.modal-footer { display: flex; justify-content: flex-end; gap: var(--s3); flex: none; padding: 16px 24px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); background: var(--surface); }
.modal-content.gesture-owned { animation: none !important; }
.modal-overlay.closing .modal-content.gesture-owned { animation: sheetOut var(--t-200) var(--ease-in) both !important; }

/* Phones: modals become bottom sheets with a grabber */
@media (max-width: 640px) {
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-content { max-width: none; max-height: 92vh; max-height: 92dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; border-bottom: 0; }
  .modal-content::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--fill-strong); pointer-events: none; }
  .modal-header { padding: 26px 16px 12px 20px; }
  .modal-body { --pad: 20px; } .modal-footer { padding-inline: 20px; }
  .modal-footer .btn { flex: 1; }
  .modal-overlay.open .modal-content { animation: sheetIn var(--t-300) var(--ease-out) both; }
  .modal-overlay.closing .modal-content { animation: sheetOut var(--t-200) var(--ease-in) both; }
}

/* ---- 7. Cart drawer --------------------------------------------------- */
#cart-modal { align-items: stretch; justify-content: flex-end; padding: 0; }
#cart-modal .modal-content { max-width: 460px; max-height: none; height: 100%; border-radius: var(--r-xl) 0 0 var(--r-xl); border-right: 0; touch-action: pan-y; }
#cart-modal.open .modal-content { animation: drawerIn var(--t-300) var(--ease-out) both; }
#cart-modal.closing .modal-content { animation: drawerOut var(--t-200) var(--ease-in) both; }
#cart-modal .modal-content::before { display: none; }
#cart-modal .modal-content.gesture-owned { animation: none !important; }
#cart-modal.closing .modal-content.gesture-owned { animation: drawerOut var(--t-200) var(--ease-in) both !important; }
#cart-modal .modal-body { display: flex; flex-direction: column; padding-top: 8px; }
#cart-modal .modal-footer { flex-direction: column-reverse; align-items: stretch; box-shadow: 0 -8px 20px -16px rgba(90, 72, 200, 0.4); }
#cart-modal .modal-footer .btn { width: 100%; }
#cart-modal .modal-footer .btn-secondary { border-color: transparent; background: transparent; min-height: 40px; color: var(--ink-2); }
#cart-modal .modal-footer .btn-secondary:hover { background: var(--fill); }
@media (max-width: 640px) {
  #cart-modal { align-items: flex-end; }
  #cart-modal .modal-content { max-width: none; height: 94dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  #cart-modal.open .modal-content { animation: sheetIn var(--t-300) var(--ease-out) both; }
  #cart-modal.closing .modal-content { animation: sheetOut var(--t-200) var(--ease-in) both; }
  #cart-modal.closing .modal-content.gesture-owned { animation: sheetOut var(--t-200) var(--ease-in) both !important; }
}

.cart-items-list, #cart-items-container { display: flex; flex-direction: column; flex: 1; }
.cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "img info" "img qty"; align-items: center; gap: 8px 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.cart-item-img { grid-area: img; align-self: start; width: 72px; height: 72px; border-radius: var(--r-md); object-fit: contain; background: var(--tile); }
.cart-item-info { grid-area: info; min-width: 0; }
.cart-item-info h4 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 2px; font-size: var(--text-sm); line-height: 1.3; overflow-wrap: anywhere; }
.cart-item-info p { font-size: var(--text-meta); color: var(--muted); }
.cart-item-info strong { color: var(--ink); font-weight: 800; }
.cart-item-qty { grid-area: qty; display: flex; align-items: center; gap: 4px; min-width: 0; }
.qty-btn, .cart-remove { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fill); color: var(--ink); transition: background-color var(--t-150) var(--ease-out), transform var(--t-100) var(--ease-out); }
.qty-btn::after, .cart-remove::after { content: ""; position: absolute; inset: -4px; }
.qty-btn:hover, .cart-remove:hover { background: var(--fill-strong); } .qty-btn:active, .cart-remove:active { transform: scale(0.9); }
.cart-remove { margin-left: auto; background: none; color: var(--muted); } .cart-remove:hover { color: var(--danger); background: var(--danger-soft); }
.qty-input { width: 44px; height: 36px; padding: 0; text-align: center; font: inherit; font-size: 1rem; font-weight: 700; color: var(--ink); background: var(--fill); border: 1.5px solid transparent; border-radius: 10px; -moz-appearance: textfield; transition: border-color var(--t-150) var(--ease-out), background-color var(--t-150) var(--ease-out); }
.qty-input:focus { outline: none; background: var(--surface); border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (pointer: coarse) { .qty-input { height: 44px; width: 52px; } .qty-btn, .cart-remove { width: 44px; height: 44px; } }
.stagger-in .cart-item { animation: viewIn var(--t-300) var(--ease-out) both; }
.stagger-in .cart-item:nth-child(2) { animation-delay: 40ms; } .stagger-in .cart-item:nth-child(3) { animation-delay: 80ms; } .stagger-in .cart-item:nth-child(n+4) { animation-delay: 120ms; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; flex: 1; padding: var(--s16) var(--s4); text-align: center; color: var(--muted); }
.cart-empty svg { width: 48px; height: 48px; color: var(--muted); }
.cart-empty p { font-size: 1.0625rem; font-weight: 800; color: var(--ink); }
.cart-summary { margin-top: var(--s6); padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-soft); }
.cart-summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); padding: 4px 0; font-size: var(--text-sm); color: var(--muted); }
.cart-summary-row span:last-child { color: var(--ink); }
#cart-savings { color: var(--success); }
.cart-summary-total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.1875rem; font-weight: 800; color: var(--ink); }
.cart-summary-total span:first-child { color: var(--ink); }

/* ---- 8. Checkout ------------------------------------------------------ */
.checkout-section-title { margin: 0 0 var(--s3); font-size: var(--text-meta); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.checkout-section-title + .checkout-note { margin-top: -6px; }
.checkout-section-title.is-spaced { margin-top: var(--s8); }
.checkout-note { margin-bottom: var(--s3); font-size: var(--text-meta); color: var(--muted); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s3); }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.payment-options-grid { display: grid; gap: 10px; margin-bottom: var(--s4); }
.payment-option-card { padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; transition: border-color var(--t-150) var(--ease-out), background-color var(--t-150) var(--ease-out), transform var(--t-100) var(--ease-out); }
.payment-option-card:hover { border-color: var(--accent); } .payment-option-card:active { transform: scale(0.99); }
.payment-option-card.selected, .payment-option-card:has(input:checked) { border-color: var(--accent-ink); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-ink); }
.payment-option-header { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; font-size: 1rem; font-weight: 700; }
.payment-option-card p { color: var(--ink-2); font-size: var(--text-meta); }
.payment-account-details-box { margin-top: var(--s3); padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-soft); font-size: var(--text-sm); overflow-wrap: anywhere; }
.checkout-total { margin-top: var(--s6); padding: 14px 18px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-soft); }
.checkout-total .cart-summary-row { margin: 0; }
.checkout-total-row { align-items: center; padding-top: 6px; }
.checkout-total-row strong { color: var(--ink); }
.checkout-total-row #checkout-total-display { font-size: 1.375rem; font-weight: 800; }
/* The main action stays on screen while the form scrolls */
.checkout-actions { position: sticky; bottom: calc(var(--pad) * -1); z-index: 2; display: flex; justify-content: flex-end; gap: var(--s3); margin: var(--s6) calc(var(--pad) * -1) calc(var(--pad) * -1); padding: 14px var(--pad) max(14px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line-soft); }
.checkout-actions .btn-primary { flex: 1 1 auto; min-height: 50px; }
@media (min-width: 561px) { .checkout-actions .btn-primary { flex: 0 1 220px; } }
.delivery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s4); }

/* Order tracking + timelines */
.track-card { margin-top: var(--s4); padding: var(--s4); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-soft); }
.track-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); font-size: 1.0625rem; }
.track-steps { display: flex; margin-bottom: var(--s4); counter-reset: s; }
.track-steps li { position: relative; flex: 1; padding-top: 24px; text-align: center; font-size: var(--text-meta); color: var(--muted); }
.track-steps li span { position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--fill-strong); z-index: 1; transition: background-color var(--t-200) var(--ease-out); }
.track-steps li::before { content: ""; position: absolute; top: 5px; left: -50%; right: 50%; height: 2px; background: var(--fill-strong); }
.track-steps li:first-child::before { display: none; }
.track-steps li.done, .track-steps li.current { color: var(--ink); font-weight: 700; }
.track-steps li.done span, .track-steps li.current span, .track-steps li.done::before, .track-steps li.current::before { background: var(--accent); }
.track-steps li.current span { box-shadow: 0 0 0 4px var(--accent-soft); }
.track-cancelled { margin-bottom: var(--s4); padding: 12px 16px; border-radius: var(--r-md); background: var(--danger-soft); color: var(--danger); font-weight: 700; }
.track-meta { margin-bottom: var(--s3); font-size: var(--text-sm); color: var(--muted); line-height: 1.6; }
.track-items { margin-bottom: var(--s3); border-top: 1px solid var(--line); }
.track-items li, .track-line, .track-total { display: flex; justify-content: space-between; gap: var(--s3); padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--text-sm); }
.track-total { border: 0; font-size: 1.0625rem; font-weight: 800; }
.premium-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 24px 0; }
.premium-timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--muted); }
.premium-timeline li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.premium-timeline li:first-child::before { display: none; }
.premium-timeline li.connected::before { background: var(--accent); }
.premium-timeline li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 0.75rem; font-weight: 800; background: var(--surface-2); border: 1.5px solid var(--line); }
.premium-timeline li.done > span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.premium-timeline li.current > span { box-shadow: 0 0 0 4px var(--accent-soft); }
.premium-timeline li.current { color: var(--ink); font-weight: 700; }
.premium-timeline small { max-width: 13ch; padding: 0 3px; font-size: 0.75rem; line-height: 1.4; }
@media (max-width: 640px) {
  .premium-timeline { grid-template-columns: 1fr; text-align: left; }
  .premium-timeline li { flex-direction: row; justify-content: flex-start; min-height: 45px; gap: 12px; text-align: left; }
  .premium-timeline li::before { top: -50%; left: 13px; width: 2px; height: 100%; }
  .premium-timeline small { max-width: none; font-size: var(--text-meta); }
}

/* ---- 9. Other storefront dialogs -------------------------------------- */
.install-modal-content { max-width: 440px; }
.app-hero { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s4); }
.app-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--tile) center / cover; border: 1px solid var(--line-soft); }
.app-hero strong { display: block; font-size: 1.0625rem; } .app-hero small { color: var(--muted); font-size: var(--text-sm); }
.install-status, .install-note { margin: var(--s3) 0; font-size: var(--text-sm); color: var(--muted); }
.install-steps ol, .install-list { display: grid; gap: 10px; margin-top: var(--s3); counter-reset: step; }
.install-steps li, .install-list li { position: relative; padding-left: 36px; font-size: var(--text-sm); line-height: 1.5; counter-increment: step; }
.install-steps li::before, .install-list li::before { content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: var(--text-meta); font-weight: 800; }
.install-url { display: block; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); font-size: var(--text-sm); word-break: break-all; }
.qr-img { width: min(100%, 260px); margin: 0 auto var(--s4); border-radius: var(--r-lg); background: #fff; padding: 12px; border: 1px solid var(--line); }
.qr-actions { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; }
.receipt-modal-content { max-width: 560px; }
.receipt-modal-body { text-align: center; }
.receipt-preview { width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
.receipt-actions { flex-wrap: wrap; justify-content: center; }
.success-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto var(--s4); border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.success-mark svg { width: 30px; height: 30px; }
.modal-overlay.open .success-mark { animation: popIn var(--t-300) var(--ease-out) both; }
@keyframes popIn { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
.offer-card { position: relative; width: min(100%, 420px); padding: 40px 32px 32px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-3); text-align: center; animation: modalIn var(--t-300) var(--ease-out) both; }
.offer-card h2 { margin-bottom: 8px; } .offer-card p { margin-bottom: var(--s6); color: var(--muted); }
.offer-spark { display: none; }
.offer-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--fill); font-size: 1.5rem; line-height: 1; color: var(--ink-2); }
.offer-close:hover { background: var(--fill-strong); }
.offer-code-wrap { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s4); padding: 8px 16px; border-radius: var(--r-full); background: var(--accent-soft); font-size: var(--text-sm); }
.offer-code-wrap strong { font-weight: 800; letter-spacing: 0.02em; }
.offer-highlight { outline: 3px solid var(--accent-ink); outline-offset: 6px; border-radius: var(--r-xl); }
@media (max-width: 640px) { .offer-overlay { align-items: center; padding: var(--s4); } }

/* Product detail */
.product-detail-content { width: min(860px, calc(100vw - 32px)); max-width: 860px; max-height: min(90dvh, 720px); }
.pd-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; align-content: start; grid-auto-rows: max-content; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pd-media { aspect-ratio: 1; border-radius: var(--r-lg); background: var(--tile); overflow: hidden; width: 100%; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-media img[src$=".svg"] { object-fit: contain; padding: 8%; }
.pd-info { min-width: 0; display: flex; flex-direction: column; gap: var(--s2); }
.pd-category { margin: 0; color: var(--muted); font-size: var(--text-sm); font-weight: 600; }
.pd-price { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; } .pd-price del { color: var(--muted); font-size: 1rem; font-weight: 500; }
.pd-stock { margin: 0; color: var(--muted); font-size: var(--text-sm); font-weight: 600; }
.pd-heading { margin: var(--s4) 0 0; font-size: 1rem; }
.pd-desc { margin: 0 0 4px; color: var(--ink); font-size: 1rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.pd-desc.is-empty { color: var(--muted); }
.pd-buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: 24px; }
.pd-qty { display: flex; align-items: center; gap: 4px; }
.pd-buy-row .btn { flex: 1 1 160px; }
@media (max-width: 640px) { .pd-body { grid-template-columns: 1fr; gap: var(--s4); } .pd-media { aspect-ratio: 4 / 3; } }

/* Filters dialog */
#filter-modal { align-items: flex-start; justify-content: flex-end; padding: 100px max(24px, calc((100vw - 1216px) / 2)) 24px; }
#filter-modal .modal-content { max-width: 430px; max-height: calc(100dvh - 130px); }
#shop-filters { display: block; padding: 0; border: 0; background: transparent; }
#shop-filters .filter-bar { gap: 8px; margin-bottom: 18px; }
#shop-filters > label, .premium-filter-fields > label { display: block; margin: 16px 0 8px; font-size: var(--text-sm); font-weight: 700; }
#shop-filters select { max-width: 100%; }
.price-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.price-fields label { font-size: var(--text-meta); }
#filter-modal .modal-footer { justify-content: space-between; }
@media (max-width: 640px) { #filter-modal { padding: 0; align-items: flex-end; } #filter-modal .modal-content { max-width: none; max-height: 92dvh; } }
@media (max-width: 380px) { .price-fields { grid-template-columns: 1fr; } }

/* Staff sign-in */
#login-modal .modal-content.auth-card { max-width: 26rem; overflow: hidden; }
#login-modal .modal-header { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 0; border: 0; }
.auth-card .modal-body { padding: 2.5rem 2rem 1.75rem; }
.auth-logo { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto 1.25rem; border-radius: 1rem; background: var(--accent); }
.auth-logo svg { width: 28px; height: 28px; fill: none; stroke: var(--on-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-title { margin: 0; text-align: center; font-size: clamp(1.6rem, 6vw, 2rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; }
.auth-lead { margin: 0.5rem 0 1.75rem; text-align: center; color: var(--muted); font-size: 1.0625rem; line-height: 1.35; }
.auth-field { position: relative; margin-bottom: 0.75rem; }
.auth-field input { width: 100%; height: 3.5rem; padding: 1.35rem 3.4rem 0 1rem; font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--field-line); border-radius: var(--r-md); outline: none; transition: border-color var(--t-150) var(--ease-out), box-shadow var(--t-150) var(--ease-out); }
.auth-field input:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.auth-field label { position: absolute; left: 1rem; top: 1.05rem; color: var(--muted); font-size: 1.0625rem; pointer-events: none; transform-origin: left top; transition: transform 0.2s var(--ease-out), color 0.2s; }
.auth-field input:focus + label, .auth-field input:not(:placeholder-shown) + label { transform: translateY(-0.62rem) scale(0.75); }
.auth-eye { position: absolute; right: 0.5rem; top: 0.5rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.auth-eye:active { transform: scale(0.92); }
.auth-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#login-error.alert { margin: 0.25rem 0.25rem 0.5rem; padding: 0 !important; background: none; color: var(--danger); font-size: var(--text-meta) !important; text-align: left; }
#login-form .auth-submit { width: 100%; height: 3.1rem; margin-top: 0.5rem !important; font-size: 1.0625rem; }
.auth-foot { margin: 1.4rem 0 0; text-align: center; color: var(--muted); font-size: var(--text-sm); }
.auth-card.shake { animation: authShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important; }
@keyframes authShake { 15% { transform: translateX(-9px); } 35% { transform: translateX(7px); } 55% { transform: translateX(-5px); } 75% { transform: translateX(3px); } }
@media (max-width: 820px) { .auth-card .modal-body { padding: 2.25rem 1.25rem 1.5rem; } }

/* Customer area */
.customer-area-content { width: min(900px, calc(100vw - 32px)); max-width: 900px; max-height: 90dvh; }
.customer-utilities { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 24px 8px; }
.customer-utilities .btn, .customer-setting-actions .btn { min-height: 44px; font-size: var(--text-meta); }
.customer-tabs { display: flex; gap: 6px; flex: none; overflow-x: auto; padding: 8px 24px 16px; border-bottom: 1px solid var(--line-soft); scrollbar-width: none; }
.customer-tabs button { flex: none; min-height: 44px; padding: 8px 16px; border-radius: var(--r-full); font-size: var(--text-sm); font-weight: 700; color: var(--muted); }
.customer-tabs button.active { background: var(--accent-soft); color: var(--accent-ink); }
#customer-area-body { padding: 24px; background: var(--canvas); }
.customer-section-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.customer-section-head h4 { margin: 0 0 8px; font-size: 1.25rem; }
.customer-section-head p, .customer-empty p { max-width: 60ch; color: var(--muted); font-size: var(--text-sm); }
.customer-form, .customer-order, .saved-address, .saved-item { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); }
.customer-form { display: grid; gap: 8px; padding: 24px; }
.customer-form .btn { justify-self: start; margin-top: 12px; }
.customer-loading { padding: 40px; text-align: center; color: var(--muted); }
.customer-empty { display: grid; gap: 16px; justify-items: center; padding: 32px 16px; text-align: center; }
.customer-empty h4 { margin: 0; }
.customer-order-list, .saved-products, .saved-addresses { display: grid; gap: 16px; }
.customer-order, .saved-address { padding: 24px; }
.customer-order-head, .customer-order-total { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.customer-order-head strong { overflow-wrap: anywhere; }
.customer-order-head small { display: block; margin-top: 4px; color: var(--muted); }
.customer-order > p { margin-top: 16px; font-size: var(--text-sm); color: var(--ink-2); }
.customer-order-total { padding-top: 16px; border-top: 1px solid var(--line-soft); }
.customer-setting-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; }
.saved-item { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 44px; align-items: center; gap: 14px; padding: 16px; }
.saved-item img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: var(--tile); }
.saved-item .save-product { position: static; }
.saved-item strong { font-size: var(--text-sm); overflow-wrap: anywhere; }
.saved-item p, .saved-address p { margin: 8px 0; color: var(--muted); font-size: var(--text-sm); }
.saved-addresses:not(:empty) { margin-bottom: 24px; }
@media (max-width: 640px) {
  .customer-area-content { width: 100%; max-width: none; height: 94dvh; max-height: 94dvh; }
  #customer-area-body { padding: 20px; }
  .customer-utilities { padding: 12px 20px 4px; } .customer-tabs { padding: 8px 20px 12px; }
  .customer-form, .customer-order, .saved-address { padding: 18px; }
  .saved-item { grid-template-columns: 48px minmax(0, 1fr) 40px; gap: 10px; padding: 12px; }
  .saved-item img { width: 48px; height: 48px; }
  .saved-item > .btn { grid-column: 2; justify-self: start; }
  .saved-item .save-product { grid-column: 3; grid-row: 1 / 3; }
}

/* Notifications + push prompt */
#notification-open { position: relative; }
#notification-modal .modal-content { width: min(600px, calc(100vw - 32px)); max-height: 88dvh; overflow: hidden; }
#notification-modal .modal-header { align-items: flex-start; }
#notification-modal .modal-header h3 { font-size: 1.75rem; }
.notification-kicker { margin-bottom: 4px; font-size: var(--text-meta); font-weight: 700; color: var(--accent-ink); }
.notification-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 24px 16px; border-bottom: 1px solid var(--line-soft); }
.notification-toolbar p { color: var(--muted); font-size: var(--text-meta); }
.notification-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px max(24px, env(safe-area-inset-bottom)); }
#notification-list { margin: 8px 0 24px; }
.notification-item { position: relative; padding: 20px 0 20px 20px; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.notification-item.unread::before { content: ""; position: absolute; left: 0; top: 26px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); }
.notification-item strong { display: block; font-size: 1rem; }
.notification-item p { margin: 6px 0; font-size: var(--text-sm); color: var(--ink-2); }
.notification-item time { display: block; margin: 10px 0; font-size: var(--text-meta); color: var(--muted); }
.notification-item .btn { min-height: 44px; padding: 8px 14px; font-size: var(--text-meta); }
.notification-empty { padding: 32px 12px; text-align: center; }
.notification-empty svg { width: 40px; height: 40px; margin: 0 auto 16px; color: var(--muted); }
.notification-empty h4 { margin: 0 0 8px; font-size: 1.125rem; }
.notification-empty p { max-width: 36ch; margin: 0 auto; color: var(--muted); font-size: var(--text-sm); }
.notification-settings { padding: 20px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-lg); }
.notification-settings h4 { margin: 0 0 4px; }
.notification-settings > p { margin-bottom: 16px; color: var(--muted); font-size: var(--text-sm); }
#device-push-toggle { width: 100%; white-space: normal; }
#device-push-status { margin: 12px 0 20px; color: var(--muted); font-size: var(--text-meta); line-height: 1.5; }
#push-permission-modal.modal-overlay { inset: auto 24px 24px auto; z-index: 120; width: min(440px, calc(100vw - 32px)); padding: 0; align-items: stretch; justify-content: flex-start; background: transparent; pointer-events: none; }
#push-permission-modal.modal-overlay.open { display: flex; animation: none; }
#push-permission-modal .modal-content { width: 100%; max-width: 440px; max-height: min(85dvh, 720px); border-radius: var(--r-lg); box-shadow: var(--shadow-3); pointer-events: auto; animation: pushIn 0.28s var(--ease-out) both; }
#push-permission-modal.modal-overlay.closing { animation: none; }
#push-permission-modal.modal-overlay.closing .modal-content { animation: pushOut 0.18s ease-in both; }
#push-permission-modal .modal-content::before { display: none; }
@keyframes pushIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes pushOut { to { opacity: 0; transform: translateY(10px) scale(0.98); } }
.catalog-subscription { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; border-top: 1px solid var(--line); cursor: pointer; }
.subscription-copy strong { display: block; font-size: var(--text-sm); }
.subscription-copy small { display: block; margin-top: 4px; font-size: var(--text-meta); color: var(--muted); }
.catalog-subscription input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 50px; height: 32px; border-radius: 20px; background: var(--field-line); border: 2px solid transparent; cursor: pointer; transition: background-color var(--t-150); }
.catalog-subscription input::after { content: ""; display: block; width: 24px; height: 24px; margin: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform var(--t-150); }
.catalog-subscription input:checked { background: var(--accent-ink); }

.catalog-subscription input:checked::after { transform: translateX(18px); }
.catalog-subscription input:disabled { opacity: 0.5; cursor: wait; }
@media (max-width: 640px) {
  #notification-modal .modal-content { width: 100%; max-height: 92dvh; }
  #notification-modal .modal-header { padding-top: 28px; }
  .notification-toolbar, .notification-scroll { padding-inline: 20px; }
  #push-permission-modal.modal-overlay { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; width: auto; }
  #push-permission-modal .modal-content { max-width: none; }
}

/* ---- 10. Dashboard (staff) -------------------------------------------- */
.dashboard-container { display: none; padding-top: var(--s6); }
.dashboard-container.active { display: block; animation: viewIn var(--t-300) var(--ease-out) both; }
.dashboard-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); padding: 8px 0 4px; }
.dashboard-header h2 { font-size: clamp(1.5rem, 3vw, 2.125rem) !important; font-weight: 800 !important; letter-spacing: -0.025em !important; }
.dashboard-header p { margin-top: 4px; font-size: var(--text-sm); }
.dashboard-header > div:last-child { flex-wrap: wrap; }
.dashboard-tabs { position: relative; display: flex; gap: 4px; margin-bottom: var(--s6); padding: 6px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.dashboard-tabs::-webkit-scrollbar { display: none; }
.tab-btn { flex: none; min-height: 44px; padding: 0 16px; border-radius: var(--r-md); font-size: var(--text-sm); font-weight: 700; color: var(--muted); white-space: nowrap; transition: color var(--t-150) var(--ease-out), background-color var(--t-150) var(--ease-out); }
.tab-btn:hover { color: var(--ink); background: var(--fill); }
.tab-btn.active { background: var(--accent-soft); color: var(--accent-ink); }
.tab-indicator { display: none; }
.tab-content { display: none; } .tab-content.active { display: block; animation: viewIn var(--t-200) var(--ease-out) both; }
.admin-only { display: none; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s4); margin-bottom: var(--s8); }
.stat-card, .card { padding: 22px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.stat-card-title { font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.stat-card-value { margin: 6px 0 2px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.03em; }
.stat-card-sub { font-size: var(--text-meta); color: var(--muted); }

.table-responsive, .table-container { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th { padding: 14px 16px; text-align: left; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 16px; vertical-align: top; border-bottom: 1px solid var(--line-soft); font-size: var(--text-sm); line-height: 1.45; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color var(--t-150) var(--ease-out); }
@media (hover: hover) { tbody tr:hover { background: var(--surface-2); } }
td strong { font-weight: 800; }
td:first-child strong { white-space: nowrap; }
#tab-orders table { min-width: 1040px; } #tab-orders td:nth-child(4) { min-width: 240px; } #tab-orders td:nth-child(5), #tab-orders td:nth-child(6) { white-space: nowrap; }
#tab-products table, #tab-managers table, #tab-sales table { min-width: 760px; }
td .form-control { min-height: 38px; padding: 6px 32px 6px 10px; font-size: var(--text-sm); min-width: 148px; }
td .btn { margin: 0 4px 4px 0; }
.table-thumb { width: 44px; height: 44px; flex: none; border-radius: 10px; object-fit: cover; background: var(--tile); }
.table-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 340px; margin: 4px 0 0; color: var(--muted); font-size: var(--text-meta); line-height: 1.4; overflow-wrap: anywhere; }
.table-desc.is-empty { font-style: italic; opacity: 0.8; }
.stagger-rows tr { animation: viewIn var(--t-300) var(--ease-out) both; }
@media (min-width: 901px) {
  #tab-orders table { min-width: 1480px; }
  #tab-orders td:nth-child(7) { min-width: 200px; } #tab-orders td:nth-child(8) { min-width: 170px; } #tab-orders td:nth-child(9) { min-width: 240px; }
  #tab-orders td .form-control { min-width: 145px; min-height: 44px; }
}
/* Narrow: rows become labelled cards (labels filled in by fluid.js) */
@media (max-width: 900px) {
  .table-responsive, .table-container { border: 0; background: none; overflow: visible; }
  table, thead, tbody, tr, td { display: block; width: 100%; min-width: 0 !important; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr { margin-bottom: var(--s3); padding: 4px 16px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); }
  td { padding: 12px 0; text-align: left; }
  td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: var(--text-meta); font-weight: 700; color: var(--muted); }
  td[colspan]::before, td:not([data-label])::before { display: none; }
  td .form-control { width: 100%; }
  td:last-child { display: flex; flex-wrap: wrap; gap: 8px; } td:last-child::before { flex: 0 0 100%; }
  td .btn { margin: 0; }
  .table-desc { max-width: none; }
}
#tab-orders > div:first-child, #tab-products > div:first-child { min-width: 0; }
#tab-orders select, #tab-orders input[type="text"], #tab-orders input[type="search"] { min-width: 0; max-width: 100%; }
#tab-products > div:first-child { flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { #tab-orders > div:first-child { flex-direction: column; align-items: stretch !important; } #tab-orders > div:first-child > div { flex-wrap: wrap; } #tab-orders .form-control { width: 100% !important; flex: 1 1 100%; } .dashboard-header { align-items: flex-start; flex-direction: column; } }

/* Uploads + banner admin */
.upload-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: var(--s6); border: 1.5px dashed var(--field-line); border-radius: var(--r-lg); background: var(--surface-2); color: var(--muted); font-size: var(--text-sm); text-align: center; cursor: pointer; transition: border-color var(--t-150) var(--ease-out), background-color var(--t-150) var(--ease-out); }
.upload-dropzone:hover { border-color: var(--accent-ink); background: var(--accent-soft); }
.upload-dropzone strong { color: var(--ink); font-size: 1rem; }
.upload-dropzone .icon { width: 28px; height: 28px; color: var(--accent-ink); }
.upload-preview-wrap, .logo-preview-box { align-items: center; justify-content: center; margin-top: var(--s3); padding: var(--s3); border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--surface-2); }
.upload-preview-wrap img, .logo-preview-box img { max-height: 160px; width: auto; max-width: 100%; border-radius: var(--r-md); object-fit: contain; }
.banner-admin-grid { display: grid; gap: var(--s4); margin: var(--s4) 0; }
.banner-admin-card { padding: var(--s4); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); }
.banner-admin-card, .banner-admin-card * { max-width: 100%; min-width: 0; }
.banner-admin-card strong, .banner-admin-card label { display: block; margin-bottom: 8px; font-weight: 700; font-size: var(--text-sm); }
.banner-admin-card input[type="file"] { width: 100%; }
.banner-admin-preview { display: grid; place-items: center; min-height: 96px; margin-bottom: var(--s3); border-radius: var(--r-md); color: #fff; font-size: var(--text-sm); background-size: cover; background-position: center; }
#tab-promotions form, #tab-settings form { max-width: 880px; margin-inline: auto; padding: clamp(16px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-xl); }
#tab-settings > * { max-width: 880px; margin-inline: auto; }
#dashboard-view { overflow-x: clip; }

/* ---- 11. Preferences -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .modal-overlay.open .modal-content, .toast, .fade-in { animation: fadeIn var(--t-200) linear both !important; }
  .reveal { opacity: 1; transform: none; } .sk-img, .sk-line { animation: none; }
  .hb-copy > * { opacity: 1; transform: none; }
  .product-card:hover, .product-card:hover img { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  header, .search-bar, .store-nav { background: var(--canvas); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hb-controls, .hb-brand { background: var(--deep); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: #5a55a0; --line-soft: #77739f; --muted: #34315f; --field-line: #1c1a3a; }
  
  header { background: var(--canvas); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--ink); }
}
@media print { header, .announcement-bar, .floating-whatsapp, #toast-container, .skip-link { display: none !important; } body { background: #fff; } }
.upload-dropzone.is-dragging { border-color: var(--accent-ink); background: var(--accent-soft); }

/* ==========================================================================
   LIQUID GLASS (keep last). Apple-style: clear translucent material over a vivid
   background, heavy blur + saturation, a bright specular rim (top-left and
   bottom-right), inner glow and a soft diagonal sheen. Primary actions are
   tinted glass. Blur is applied to large floating surfaces only (header, menu,
   sheets, hero controls); cards use fill + rim so lists stay fast.
   IMPORTANT: an element with backdrop-filter becomes a "backdrop root", so a
   child's own backdrop-filter then sees nothing. That is why the header's glass
   lives on header::before, and the sheet overlay has no filter of its own.
   ========================================================================== */
:root {
  --blur: blur(26px) saturate(190%) brightness(1.05);
  --lg-fill: linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.2) 38%, rgba(255,255,255,.14) 62%, rgba(255,255,255,.42) 100%), rgba(247,244,255,.36);
  --lg-fill-card: linear-gradient(135deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.46) 40%, rgba(255,255,255,.4) 62%, rgba(255,255,255,.64) 100%);
  --lg-sheet: linear-gradient(135deg, rgba(255,255,255,.9), rgba(247,244,255,.84) 50%, rgba(255,255,255,.88));
  --lg-edge: rgba(255,255,255,.7);
  --lg-spec: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.95), inset -1.5px -1.5px 1px -1px rgba(255,255,255,.6), inset 0 0 22px rgba(255,255,255,.28);
  --lg-drop: 0 14px 34px -10px rgba(70, 56, 190, .32), 0 2px 6px rgba(70, 56, 190, .08);
  --lg-drop-lg: 0 30px 70px -16px rgba(60, 46, 160, .42);
  --lg-well: rgba(255,255,255,.34);
  --lg-well-in: inset 0 2px 6px rgba(70, 56, 190, .16), inset 0 -1px 0 rgba(255,255,255,.7);
  --grad-btn: linear-gradient(135deg, #6a3fe8 0%, #3a60ea 100%);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
}

/* A vivid backdrop gives the glass something to bend and tint */
body { background: var(--canvas); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 34vmax at 92% 4%, rgba(112, 72, 255, .42), transparent 64%),
    radial-gradient(40vmax 36vmax at 4% 22%, rgba(70, 150, 255, .36), transparent 64%),
    radial-gradient(40vmax 34vmax at 82% 96%, rgba(255, 140, 225, .3), transparent 64%),
    radial-gradient(36vmax 32vmax at 0% 100%, rgba(110, 225, 255, .34), transparent 64%),
    linear-gradient(160deg, #d3d9ff 0%, #e0d9ff 50%, #efe2fb 100%);
}

/* Header: floating glass capsule. The glass is a pseudo-element so the menu panel can blur too. */
html { scroll-padding-top: calc(var(--header-h) + 36px); }
header {
  top: 10px; width: min(calc(100% - 2 * var(--gutter)), var(--wide)); margin: 10px auto 0;
  border: 0; border-radius: var(--r-full); background: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
header::before {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; pointer-events: none; opacity: 1;
  background: var(--lg-fill); border: 1px solid var(--lg-edge); box-shadow: var(--lg-spec), var(--lg-drop);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
header.scrolled { background: transparent; box-shadow: none; border: 0; }
.nav-container { max-width: none; padding: 0 14px 0 18px; }

/* Glass pills: nav + shop toggle (clear track, bright liquid thumb) */
.store-nav, .shop-segments { border: 1px solid var(--lg-edge); border-radius: var(--r-full); background: var(--lg-well); box-shadow: var(--lg-well-in); }
.store-nav { padding: 4px; }
.store-nav a.active, .seg-thumb {
  background: var(--lg-fill-card); border: 1px solid var(--lg-edge); color: var(--accent-ink);
  box-shadow: var(--lg-spec), 0 6px 14px -6px rgba(70, 56, 190, .4);
}

.store-nav a.active:hover { color: var(--accent-ink); }

/* Buttons: tinted glass pills with a bright specular rim */
.btn { border-radius: var(--r-full); transition: transform .45s var(--spring), filter var(--t-150) var(--ease-out), background-color var(--t-150) var(--ease-out), box-shadow var(--t-200) var(--ease-out); }
.btn:active:not(:disabled) { transform: scale(.955); }
.btn-primary, .btn-accent, .quick-add {
  background: var(--grad-btn); color: var(--on-accent); border: 1px solid rgba(255,255,255,.62);
  box-shadow: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.95), inset -1.5px -1.5px 1px -1px rgba(255,255,255,.5), inset 0 -8px 14px -8px rgba(255,255,255,.14), 0 14px 26px -10px rgba(70, 52, 210, .75);
}

.btn-primary:hover:not(:disabled), .btn-accent:hover:not(:disabled), .quick-add:hover:not(:disabled) { background: var(--grad-btn); color: var(--on-accent); filter: brightness(1.1) saturate(1.08); }
.btn-primary:active:not(:disabled), .quick-add:active:not(:disabled) { background: var(--grad-btn); filter: brightness(.93); }
.btn-primary:disabled, .quick-add:disabled { filter: grayscale(.4); box-shadow: none; }
.btn-secondary { background: var(--lg-fill); border: 1px solid var(--lg-edge); color: var(--ink); box-shadow: var(--lg-spec), var(--lg-drop); }
.btn-secondary:hover:not(:disabled) { background: var(--lg-fill-card); border-color: var(--lg-edge); }

/* Chips + tabs */
.category-tile, .filter-chip, .brand-chip, .filter-btn { background: var(--lg-fill); border: 1px solid var(--lg-edge); color: var(--ink-2); box-shadow: var(--lg-spec), 0 8px 18px -10px rgba(70, 56, 190, .35); transition: transform .45s var(--spring), background-color var(--t-150) var(--ease-out); }

.category-tile.active, .filter-chip.active, .brand-chip.active, .tab-btn.active { background: var(--grad-btn); border-color: rgba(255,255,255,.62); color: var(--on-accent); box-shadow: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.95), inset 0 -6px 12px -8px rgba(255,255,255,.14), 0 10px 20px -10px rgba(70, 52, 210, .75); }
.tab-btn.active:hover { background: var(--grad-btn); color: var(--on-accent); }

/* Glass cards and panels */
.product-card, .about-card, .track-card, .stat-card, .table-responsive, .table-container, .dashboard-tabs, .announcement-bar, .customer-order, .saved-item, .payment-option-card, .notification-item, .offer-card {
  background: var(--lg-fill-card); border: 1px solid var(--lg-edge); box-shadow: var(--lg-spec), var(--lg-drop);
}
.product-card { transition: transform .5s var(--spring), box-shadow var(--t-200) var(--ease-out); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--lg-spec), var(--lg-drop-lg); }
.product-img-wrap { background: var(--lg-well); box-shadow: var(--lg-well-in); }

/* Fields: glass wells */
.form-control, .auth-field input { background: var(--lg-well); border: 1.5px solid var(--field-line); border-radius: 1.25rem; box-shadow: var(--lg-well-in); }
.form-control:focus, .form-control:focus-visible, .auth-field input:focus { border-color: var(--accent-ink); box-shadow: var(--lg-well-in), 0 0 0 4px var(--accent-soft); }

/* Sheets, drawer, dialogs: heavy frosted glass over the real page. The overlay only dims. */
.modal-overlay { -webkit-backdrop-filter: none; backdrop-filter: none; }
.modal-content, .install-modal-content, .product-detail-content, .receipt-modal-content {
  background: var(--lg-sheet); border: 1px solid var(--lg-edge); border-radius: 1.75rem; box-shadow: var(--lg-spec), var(--lg-drop-lg);
  -webkit-backdrop-filter: blur(34px) saturate(190%); backdrop-filter: blur(34px) saturate(190%);
}
.modal-header, .modal-footer { background: transparent; }
.modal-close { background: var(--lg-fill-card); border: 1px solid var(--lg-edge); box-shadow: var(--lg-spec); }
.auth-logo { width: 4.5rem; height: 4.5rem; border-radius: 1.4rem; background: var(--lg-fill-card); border: 1px solid var(--lg-edge); box-shadow: var(--lg-spec), var(--lg-drop); }
.auth-logo svg { stroke: var(--accent-ink); }
.auth-card .btn-primary { width: 100%; min-height: 3.25rem; }

/* Hero, promo, footer */
.hb { border: 1px solid var(--lg-edge); box-shadow: var(--lg-spec), var(--lg-drop-lg); background: var(--grad-deep); }
.promo-band, .store-footer { background: var(--grad-deep); border: 1px solid rgba(235, 230, 255, .3); box-shadow: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.7), inset 0 0 30px rgba(255,255,255,.06); }
.hb-cta { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(220,210,255,.82)); color: #1d1b4d; border: 1px solid rgba(255,255,255,.8); box-shadow: inset 0 1px 0 #fff, 0 10px 20px -10px rgba(0,0,0,.5); }
.hb-cta:hover { background: linear-gradient(180deg, #fff, rgba(232,224,255,.92)); }
.hb-controls { background: rgba(235, 230, 255, .18); border: 1px solid rgba(235, 230, 255, .4); box-shadow: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.8); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); }
.upload-dropzone.is-dragging { border-color: var(--accent-ink); background: var(--accent-soft); }

/* Mobile: floating capsule + frosted glass menu/search panels (real blur, so they stay legible) */
@media (max-width: 820px) {
  header { top: 8px; margin-top: 8px; width: calc(100% - 24px); }
  .nav-container { padding: 0 8px 0 14px; }
  .store-nav, .search-bar{
    top: calc(100% + 8px); left: 0; right: 0; border: 1px solid var(--lg-edge); border-radius: 1.75rem;
    background: var(--lg-sheet); box-shadow: var(--lg-spec), var(--lg-drop-lg);
    -webkit-backdrop-filter: blur(34px) saturate(190%); backdrop-filter: blur(34px) saturate(190%);
  }
  .search-bar { padding: 10px; }
  .search-bar .search-icon { left: 28px; }
  .store-nav { padding: 8px 16px 12px; }
  .store-nav a.active{ background: none; border: 0; box-shadow: none; color: var(--accent-ink); }
}
@media (prefers-reduced-transparency: reduce) {
  header::before, .modal-content, .store-nav, .search-bar, .hb-controls { -webkit-backdrop-filter: none; backdrop-filter: none; }
  header::before, .product-card, .about-card, .track-card, .stat-card, .table-responsive, .dashboard-tabs, .modal-content, .store-nav, .search-bar, .category-tile, .filter-chip, .brand-chip, .btn-secondary { background: var(--surface); }
}
@media (prefers-reduced-motion: reduce) { .product-card:hover { transform: none; } .btn, .product-card, .category-tile { transition: none; } }

/* Product detail sheet carries lots of text: keep the glass rim, but a solid tinted fill so page content never ghosts through. */
.modal-content.product-detail-content, .modal-content.receipt-modal-content { background: linear-gradient(160deg, #ffffff, #f3f0ff); -webkit-backdrop-filter: none; backdrop-filter: none; }
.modal-content.product-detail-content { display: flex; flex-direction: column; overflow: hidden; }
.modal-content.product-detail-content > .pd-body { flex: 1 1 auto; padding: 8px 20px 24px; }
@media (max-width: 640px) { .modal-content.product-detail-content { width: 100%; } }

/* Admin settings: one stack of cards, forms inside cards are not cards themselves */
.settings-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5, 20px); max-width: 880px; margin-inline: auto; }
.settings-card { padding: clamp(16px, 3vw, 28px); min-width: 0; }
.settings-card h3 { margin: 0 0 var(--s3, 12px); font-size: 1.25rem; }
#tab-settings .settings-card form { max-width: none; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
#tab-settings .settings-card .settings-help { margin: 0 0 var(--s4, 16px); color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
#tab-settings .settings-card .form-group > .form-control, #tab-settings .settings-card textarea.form-control { width: 100%; }
#settings-form > label:not(.settings-toggle), #settings-form .form-group > label { display: block; margin-bottom: 6px; }
#settings-form .form-group { margin-bottom: var(--s4, 16px); }
#settings-form .settings-toggle { margin-bottom: var(--s3, 12px); }
#settings-form .btn-primary, #delivery-settings-form .btn-primary { width: 100%; margin-top: var(--s3, 12px); }
@media (min-width: 640px) { #settings-form .btn-primary, #delivery-settings-form .btn-primary { width: auto; min-width: 220px; } }
.dashboard-tabs { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.tab-btn { scroll-snap-align: start; }

/* Banners & Discounts tab: same rhythm as Store Settings */
#tab-promotions form > label:not(.settings-toggle) { display: block; margin: var(--s4, 16px) 0 6px; }
#tab-promotions form > h3 { margin: 0 0 var(--s2, 8px); }
#tab-promotions form > .form-control, #tab-promotions form > textarea { width: 100%; }
#tab-promotions .settings-help { margin: 0 0 var(--s3, 12px); color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
#tab-promotions .delivery-grid .form-group { margin-bottom: var(--s2, 8px); }
.settings-toggle input[type="checkbox"], #tab-promotions input[type="checkbox"], #settings-form input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.settings-toggle > span { min-width: 0; line-height: 1.4; }
#tab-promotions .btn-primary { margin-top: var(--s4, 16px); }
#tab-promotions label.settings-toggle, #tab-settings label.settings-toggle { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 var(--s2, 8px); font-weight: 500; color: var(--ink); }

/* ===== Settings center (sticky section nav + one panel at a time) ===== */
.sc-head { margin-bottom: var(--s5, 20px); }
.sc-head h2 { margin: 0 0 4px; }
.sc-head p { margin: 0; color: var(--muted); }
.sc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.sc-nav { position: sticky; top: 92px; padding: 10px; border-radius: var(--r-lg, 20px); background: var(--lg-fill-card, rgba(255,255,255,.7)); border: 1px solid rgba(255,255,255,.7); box-shadow: var(--lg-drop, 0 8px 24px rgba(40,40,90,.08)); }
.sc-select-wrap { display: none; }
.sc-list { display: flex; flex-direction: column; gap: 2px; }
.sc-group { margin: 12px 10px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sc-group:first-child { margin-top: 4px; }
.sc-item { text-align: left; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; display: block; width: 100%; }
.sc-item:hover { background: var(--fill, rgba(90,80,220,.08)); }
.sc-item.active { background: var(--grad-btn); color: var(--on-accent, #fff); }
.sc-item-danger:not(.active) { color: #b42318; }
.sc-item-danger.active { background: linear-gradient(135deg, #d92d20, #b42318); }
.sc-item:focus-visible, .sc-panel :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sc-main { min-width: 0; }
.sc-panel { display: none; padding: clamp(18px, 3vw, 30px); border-radius: var(--r-lg, 20px); background: var(--lg-fill-card, rgba(255,255,255,.75)); border: 1px solid rgba(255,255,255,.7); box-shadow: var(--lg-drop, 0 8px 24px rgba(40,40,90,.08)); }
.sc-panel.active { display: block; }
.sc-panel > .sc-ph { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid rgba(60,60,120,.12); }
.sc-panel > .sc-ph h3 { margin: 0 0 4px; font-size: 1.35rem; }
.sc-panel > .sc-ph p, .sc-help { margin: 0; color: var(--muted); font-size: var(--text-sm, .9rem); line-height: 1.5; }
.sc-error { color: #b42318; }
.sc-sub { margin: 28px 0 12px; font-size: 1rem; font-weight: 700; }
.sc-sub-first { margin-top: 0; }
.sc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-bottom: 8px; }
.sc-fields .form-group { margin: 0; min-width: 0; }
.sc-fields .sc-wide { grid-column: 1 / -1; }

.sc-panel .form-group > label { display: block; margin-bottom: 6px; font-weight: 600; font-size: var(--text-sm, .9rem); }
.sc-panel .form-control { width: 100%; }
.sc-panel small { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.sc-opt { font-weight: 500; color: var(--muted); font-size: .78rem; margin-left: 4px; }
.sc-panel .settings-toggle { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 12px; font-weight: 500; }
.sc-panel .settings-toggle > span { min-width: 0; line-height: 1.4; }
.sc-panel .settings-toggle small { margin-top: 2px; }
.sc-panel input[type="checkbox"], .sc-panel input[type="radio"] { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.sc-actions { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(60,60,120,.12); display: flex; justify-content: flex-end; }
.sc-actions .btn { min-width: 200px; }
.sc-inline { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.sc-inline .form-control { flex: 1 1 auto; min-width: 0; }
.sc-inline .btn { flex: none; margin: 0; white-space: nowrap; }
.sc-upload { cursor: pointer; display: inline-flex; align-items: center; }
.sc-color input[type="color"] { width: 56px; height: 44px; padding: 2px; border-radius: 12px; border: 1.5px solid var(--field-line); background: var(--surface); flex: none; }
.sc-color .settings-toggle { margin: 0; }
.sc-drop { padding: 20px; text-align: center; cursor: pointer; display: grid; gap: 4px; justify-items: center; }
.sc-drop .icon { width: 24px; height: 24px; color: var(--muted); }
.sc-drop span { color: var(--muted); font-size: .8rem; }
.sc-accounts { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(60,60,120,.12); }
.sc-accounts-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.sc-account-list { display: grid; gap: 10px; }
.is-locked { opacity: .55; }
/* emergency */
.sc-danger { border-color: rgba(217,45,32,.35); }
.sc-danger > .sc-ph h3 { color: #b42318; }
.em-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.em-stats > div { padding: 12px; border-radius: 14px; background: rgba(120,110,230,.08); text-align: center; }
.em-stats strong { display: block; font-size: 1.4rem; }
.em-stats span { font-size: .78rem; color: var(--muted); }
.em-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px 32px; }
.em-cats[hidden] { display: none; }
.em-chip { position: relative; cursor: pointer; }
.em-chip input { position: absolute; opacity: 0; width: 100% !important; height: 100% !important; margin: 0; cursor: pointer; }
.em-chip span { display: inline-flex; gap: 6px; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--field-line, rgba(60,60,120,.25)); background: var(--surface, #fff); font-size: .88rem; font-weight: 600; }
.em-chip em { font-style: normal; color: var(--muted); font-weight: 500; }
.em-chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.em-chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.em-types { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; margin: 4px 0 0; }
.em-types .settings-toggle { margin: 0; }
.em-match { margin: 12px 0 0; font-weight: 600; }
.em-action { padding: 16px; border-radius: 16px; background: rgba(120,110,230,.06); border: 1px solid rgba(60,60,120,.1); display: grid; gap: 12px; justify-items: start; }
.em-action .form-group, .em-action .sc-inline { width: 100%; max-width: 360px; margin: 0; }
.em-action .settings-toggle { margin: 0; }
.em-pct { font-weight: 700; font-size: 1.1rem; }
.em-preview { width: 100%; font-size: .9rem; display: grid; gap: 6px; }
.em-preview > div { display: flex; justify-content: space-between; gap: 12px; }
.em-preview small { margin: 0; }
.em-log { display: grid; gap: 8px; }
.em-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(60,60,120,.12); background: var(--surface, #fff); }
.em-row > div { min-width: 0; }
.em-row strong, .em-row span { display: block; }
.em-row span { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.em-row .em-done { text-align: right; max-width: 45%; }
.em-confirm { max-width: 460px; }
.em-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.em-confirm .modal-body p { line-height: 1.55; overflow-wrap: anywhere; }
#em-confirm-modal .modal-content { background: linear-gradient(160deg, #fff, #f3f0ff); backdrop-filter: none; -webkit-backdrop-filter: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 820px) {
  .sc-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sc-nav { position: static; padding: 12px; }
  .sc-list { display: none; }
  .sc-select-wrap { display: block; }
  .sc-select-wrap label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .85rem; }
}
@media (max-width: 560px) {
  .sc-fields { grid-template-columns: minmax(0, 1fr); }
  .sc-actions .btn { width: 100%; }
  .sc-accounts-head { flex-direction: column; }
  .sc-inline { flex-wrap: wrap; }
  .sc-inline .form-control { flex-basis: 100%; }
  .em-cats { margin-left: 0; }
  .em-row { flex-direction: column; align-items: stretch; }
  .em-row .em-done { text-align: left; max-width: none; }
  .em-confirm-actions .btn { flex: 1 1 100%; }
}
#tab-settings .sc-panel form { max-width: none; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.pause-bar { padding: 10px 16px; text-align: center; font-weight: 600; font-size: .9rem; color: #7a271a; background: #fef3f2; border-bottom: 1px solid #fecdca; }
.pause-bar[hidden] { display: none; }

/* ===== Editable banners ===== */
/* Themes: each sets the scrim colour as r,g,b */
.hb-t-violet { --hb-rgb: 24,18,70; --dot: #a995ff; } .hb-t-red { --hb-rgb: 96,12,16; --dot: #ff6b5b; } .hb-t-green { --hb-rgb: 8,66,38; --dot: #6fd68c; }
.hb-t-orange { --hb-rgb: 104,44,4; --dot: #ffb04a; } .hb-t-blue { --hb-rgb: 10,36,100; --dot: #7fb4ff; } .hb-t-dark { --hb-rgb: 12,12,16; --dot: #d9d9e3; } .hb-t-light { --hb-rgb: 246,244,255; --dot: #5b46e6; }
.hb-slide { --hb-ov: .6; background-color: rgb(var(--hb-rgb, 24,18,70)); }
.hb-slide::after { background: linear-gradient(90deg, rgba(var(--hb-rgb),calc(var(--hb-ov)*1.5)) 0%, rgba(var(--hb-rgb),calc(var(--hb-ov)*1.2)) 34%, rgba(var(--hb-rgb),calc(var(--hb-ov)*.4)) 62%, rgba(var(--hb-rgb),0) 100%); }
.hb-slide.no-photo::after { background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,0) 60%); }
.hb-slide.no-photo { background: linear-gradient(135deg, rgb(var(--hb-rgb)), rgba(var(--hb-rgb),.82)), #3a3a8a; }
.hb-brand::before { background: var(--dot, #e5473a); }
.hb-t-light .hb-copy, .hb-t-light .hb-copy h2 { color: #1d1b4d; } .hb-t-light .hb-copy p { color: #3b3868; } .hb-t-light .hb-brand { background: rgba(255,255,255,.7); color: #1d1b4d; }
.hb-t-light .hb-ghost { color: #1d1b4d; border-color: rgba(29,27,77,.4); background: rgba(255,255,255,.4); }
.hb-a-center { justify-content: center; text-align: center; } .hb-a-center .hb-copy { margin-inline: auto; max-width: min(640px, 100%); } .hb-a-center .hb-actions { justify-content: center; }
.hb-a-center::after { background: rgba(var(--hb-rgb), calc(var(--hb-ov) * 1.1)) !important; }
.hb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hb-actions > * { text-decoration: none; }
.hb[data-height="compact"] { height: clamp(300px, 28vw, 340px); } .hb[data-height="tall"] { height: clamp(460px, 46vw, 580px); }
.hb[hidden], .hb-controls[hidden] { display: none; }
@media (max-width: 820px) {
  .hb[data-height] { height: auto; }
  .hb-slide::after { background: linear-gradient(0deg, rgba(var(--hb-rgb),calc(var(--hb-ov)*1.6)) 0%, rgba(var(--hb-rgb),calc(var(--hb-ov)*1.3)) 46%, rgba(var(--hb-rgb),calc(var(--hb-ov)*.15)) 82%); }
  .hb-a-center::after { background: rgba(var(--hb-rgb), calc(var(--hb-ov) * 1.1)) !important; }
  .hb[data-height="compact"] .hb-slide { min-height: 22rem; } .hb[data-height="tall"] .hb-slide { min-height: 36rem; }
  .hb-slide.no-photo .hb-copy { padding-bottom: 6px; }
}
/* top bar */
.announcement-bar { --ab-bg: var(--tile); --ab-fg: var(--ink-2); position: relative; display: block; padding: 0; overflow: hidden; background: var(--ab-bg); color: var(--ab-fg); }
.announcement-bar[hidden] { display: none; }
.announcement-bar.ab-brand { --ab-bg: #5b46e6; --ab-fg: #fff; } .announcement-bar.ab-dark { --ab-bg: #17162b; --ab-fg: #f3f1ff; } .announcement-bar.ab-red { --ab-bg: #b42318; --ab-fg: #fff; } .announcement-bar.ab-green { --ab-bg: #067647; --ab-fg: #fff; }
.announcement-bar span + span { opacity: 1; }
.ab-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; }
.ab-sep { opacity: .55; }
.ab-btn { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit; font: inherit; font-size: .8rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.ab-btn:hover { background: rgba(255,255,255,.2); }
.ab-rotor, .ab-static { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; padding-inline: 40px; text-align: center; }
.ab-marquee { overflow: hidden; }
.ab-run { display: flex; width: max-content; animation: ab-scroll 30s linear infinite; }
.ab-set { display: flex; flex: none; align-items: center; white-space: nowrap; }
.ab-marquee:hover .ab-run, .ab-marquee:focus-within .ab-run { animation-play-state: paused; }
@keyframes ab-scroll { to { transform: translateX(-50%); } }
.ab-close { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 1.4rem; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ab-run { animation: none; } }
/* lower banners */
.lower-banners { margin-bottom: var(--s12); }
.lower-banners[hidden] { display: none; }
.lb-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: var(--r-xl); }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track > .promo-band { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.lb-cards .lb-track > .promo-band { flex-basis: calc(50% - 8px); grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
@media (max-width: 820px) { .lb-cards .lb-track > .promo-band { flex-basis: 88%; } }
.lb-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.lb-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(91,70,230,.25); cursor: pointer; position: relative; }
.lb-dot::after { content: ""; position: absolute; inset: -17px -8px; }
.lb-dot.is-active { background: var(--accent); width: 26px; border-radius: 6px; }
.promo-band { --hb-ov: .6; background-color: rgb(var(--hb-rgb, 24,18,70)); }
.promo-band::before { background: var(--pb-img, none) 78% center / cover no-repeat; filter: none; }
.promo-band.no-photo::before { background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,0) 60%); }
.promo-band::after { background: linear-gradient(90deg, rgba(var(--hb-rgb),calc(var(--hb-ov)*1.5)) 0%, rgba(var(--hb-rgb),calc(var(--hb-ov)*1.15)) 45%, rgba(var(--hb-rgb),calc(var(--hb-ov)*.2)) 100%); }
.promo-band.hb-a-center { text-align: center; } .promo-band.hb-a-center .promo-copy p { margin-inline: auto; } .promo-band.hb-a-center .promo-actions { justify-content: center; }
.promo-band.hb-t-light { color: #1d1b4d; } .promo-band.hb-t-light .promo-copy h2 { color: #1d1b4d; } .promo-band.hb-t-light .promo-copy p, .promo-band.hb-t-light .promo-eyebrow { color: #3b3868; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.promo-band .promo-points li { display: flex; align-items: center; gap: 8px; }
.promo-band .promo-points .icon { width: 18px; height: 18px; flex: none; }
.hb-perks { display: none; }

/* ===== Settings: phone list + detail (Facebook-style) ===== */
.sc-home, .sc-bar { display: none; }
.sc-note { display: block; margin: 6px 0 0; color: var(--muted); font-size: .8rem; }
.sc-none { padding: 24px 8px; text-align: center; color: var(--muted); }
@media (max-width: 820px) {
  .sc-nav { display: none; }
  .sc-home { display: block; }
  #tab-settings[data-view="list"] .sc-main { display: none; }
  #tab-settings[data-view="detail"] .sc-home, #tab-settings[data-view="detail"] .sc-head { display: none; }
  .sc-head h2 { font-size: 1.75rem; }
  .sc-search { position: sticky; top: 76px; z-index: 5; display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 0 14px; min-height: 48px; border-radius: 999px; background: var(--lg-sheet, #fff); border: 1px solid rgba(60,60,120,.15); box-shadow: var(--lg-drop); }
  .sc-search .icon { width: 20px; height: 20px; flex: none; color: var(--muted); }
  .sc-search input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; padding: 0; min-height: 44px; font-size: 1rem; }
  .sc-search input:focus { outline: none; }
  .sc-search:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
  .sc-hgroup { margin: 20px 6px 8px; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
  .sc-hgroup.is-danger { color: #b42318; }
  .sc-rows { border-radius: 20px; overflow: hidden; background: var(--lg-fill-card, rgba(255,255,255,.8)); border: 1px solid rgba(255,255,255,.75); box-shadow: var(--lg-drop); }
  .sc-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 10px 14px 10px 14px; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
  .sc-row + .sc-row { border-top: 1px solid rgba(60,60,120,.1); }
  .sc-row:active { background: rgba(91,70,230,.08); }
  .sc-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--grad-btn); color: #fff; }
  .sc-ico svg { width: 22px; height: 22px; }
  .sc-row.is-danger .sc-ico { background: linear-gradient(135deg, #e5473a, #b42318); }
  .sc-rt { flex: 1; min-width: 0; display: grid; gap: 2px; }
  .sc-rt strong { font-size: 1.02rem; font-weight: 650; }
  .sc-rt small { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sc-chev { flex: none; width: 18px; height: 18px; color: var(--muted); }
  .sc-bar { position: sticky; top: 70px; z-index: 6; display: flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 6px 12px 6px 4px; border-radius: 999px; background: var(--lg-sheet, #fff); border: 1px solid rgba(60,60,120,.12); box-shadow: var(--lg-drop); }
  .sc-bar strong { font-size: 1.05rem; }
  .sc-back { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
  .sc-back:active { background: rgba(91,70,230,.12); }
  .sc-back svg { width: 24px; height: 24px; }
  .sc-panel { padding: 16px; }
  .sc-panel > .sc-ph { margin-bottom: 16px; }
  .sc-panel > .sc-ph h3 { font-size: 1.2rem; }
  .sc-actions { position: sticky; bottom: 0; z-index: 4; margin: 22px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 0 0 20px 20px; background: linear-gradient(180deg, rgba(255,255,255,.75), #fff 40%); border-top: 1px solid rgba(60,60,120,.12); }
  .bn-actions { flex-direction: column-reverse; gap: 8px; }
}

/* ===== Banner editor ===== */
.bn-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 14px; background: rgba(91,70,230,.08); }
.bn-tab { flex: 1; min-height: 44px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 650; color: var(--ink-2, var(--ink)); cursor: pointer; }
.bn-tab.active { background: #fff; color: var(--accent-ink, var(--accent)); box-shadow: 0 1px 6px rgba(40,30,120,.18); }
.bn-settings .sc-fields { margin: 10px 0; }
.bn-colors { display: flex; gap: 18px; margin: 4px 0 12px; flex-wrap: wrap; }
.bn-colors label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.bn-colors input[type="color"] { width: 48px; height: 40px; border-radius: 10px; border: 1.5px solid var(--field-line); padding: 2px; }
.bn-preview { overflow: hidden; border-radius: 16px; background: rgba(91,70,230,.06); border: 1px dashed rgba(60,60,120,.25); padding: 0; pointer-events: none; }
.bn-preview .hb { margin: 0; }
.bn-preview .hb-track { transform: none !important; display: block; }
.bn-preview .hb-slide { position: relative; inset: auto; opacity: 1 !important; visibility: visible !important; transform: none !important; pointer-events: none; }
.bn-preview .lb-track { overflow: hidden; }
.bn-preview .announcement-bar { display: block; }
.bn-list { display: grid; gap: 10px; }
.bn-item { border-radius: 16px; border: 1px solid rgba(60,60,120,.14); background: var(--surface, #fff); overflow: hidden; }
.bn-item.is-open { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.bn-item-head { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 0; flex-wrap: wrap; }
.bn-toggle { flex: 1 1 200px; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 8px 6px 12px; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; color: var(--ink); min-width: 0; }
.bn-toggle .sc-chev { margin-left: auto; transition: transform .2s; }
.bn-item.is-open .bn-toggle .sc-chev { transform: rotate(90deg); }
.bn-num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.bn-thumb { flex: none; width: 56px; height: 40px; border-radius: 8px; object-fit: cover; }
.bn-sum { min-width: 0; display: flex; align-items: center; gap: 8px; }
.bn-sum strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.bn-sum em { font-style: normal; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; }
.bn-tools { display: flex; gap: 4px; padding: 0 6px 6px 12px; flex-wrap: wrap; }
.bn-ib { min-width: 44px; min-height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(60,60,120,.18); background: var(--surface, #fff); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.bn-ib:disabled { opacity: .35; cursor: not-allowed; }
.bn-del { color: #b42318; border-color: rgba(180,35,24,.35); }
@media (min-width: 640px) { .bn-item-head { flex-wrap: nowrap; } .bn-tools { padding: 0 0 0 0; flex-wrap: nowrap; } }
.bn-body { padding: 4px 14px 16px; border-top: 1px solid rgba(60,60,120,.1); display: grid; gap: 14px; }
.bn-body .form-group { margin: 0; }
.bn-body .form-group > label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
.bn-body .form-control { width: 100%; }
.bn-pic { display: grid; gap: 10px; padding-top: 12px; }
.bn-pic-box { display: grid; place-items: center; height: 150px; border-radius: 14px; background: rgba(91,70,230,.07); border: 1.5px dashed rgba(60,60,120,.3); overflow: hidden; color: var(--muted); }
.bn-pic-box img { width: 100%; height: 100%; object-fit: cover; }
.bn-pic-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bn-up { cursor: pointer; display: inline-flex; align-items: center; }
.bn-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.bn-swatch { position: relative; display: grid; justify-items: center; gap: 4px; cursor: pointer; }
.bn-swatch input { position: absolute; opacity: 0; inset: 0; width: 100% !important; height: 100% !important; margin: 0; cursor: pointer; }
.bn-swatch span { width: 44px; height: 44px; border-radius: 12px; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(60,60,120,.25); }
.bn-swatch input:checked + span { box-shadow: 0 0 0 3px var(--accent); }
.bn-swatch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.bn-swatch em { font-style: normal; font-size: .7rem; color: var(--muted); }
.bn-add { margin-top: 12px; width: 100%; min-height: 48px; border-style: dashed; }
.bn-empty { padding: 18px; text-align: center; border-radius: 14px; background: rgba(91,70,230,.05); }
.bn-actions { gap: 10px; justify-content: space-between; }
.bn-body input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 32px; }

/* footer: social + policies */
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-social a, .footer-policy-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1); color: inherit; font: inherit; font-size: .88rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.footer-social a:hover, .footer-policy-btn:hover { background: rgba(255,255,255,.22); }
.policy-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; margin: 0 0 18px; }
#policy-modal .modal-content { background: linear-gradient(160deg, #fff, #f3f0ff); backdrop-filter: none; -webkit-backdrop-filter: none; max-width: 560px; }
.stock-low { color: #b54708 !important; }
.stock-low::before { background: #f79009 !important; }
@media (max-width: 820px) {
  body:has(#tab-settings[data-view="detail"]) .dashboard-header, body:has(#tab-settings[data-view="detail"]) .dashboard-tabs { display: none; }
  #tab-settings[data-view="detail"] .sc-bar { top: 84px; }
  .sc-panel > .sc-ph h3 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sc-panel > .sc-ph { padding-bottom: 12px; }
}
.sc-chev { flex: none; width: 18px; height: 18px; color: var(--muted); }

/* custom banner colours */
.hb-slide.hb-fg .hb-copy, .hb-slide.hb-fg .hb-copy h2, .hb-slide.hb-fg .hb-copy p { color: var(--hb-fg); }
.hb-slide.hb-fg .hb-brand { color: var(--hb-fg); }
.hb-slide.hb-btn .hb-cta { background: var(--hb-btn-bg, #fff); color: var(--hb-btn-fg, #1d1b4d); border-color: transparent; }
.hb-slide.hb-btn .hb-ghost { color: var(--hb-btn-bg, #fff); border-color: var(--hb-btn-bg, #fff); background: transparent; }
.promo-band.hb-fg .promo-copy h2, .promo-band.hb-fg .promo-copy p, .promo-band.hb-fg .promo-eyebrow, .promo-band.hb-fg .promo-points li { color: var(--hb-fg); }
.promo-band.hb-btn .btn-light { background: var(--hb-btn-bg, #fff); color: var(--hb-btn-fg, #1d1b4d); }
.promo-band.hb-btn .btn-ghost-light { color: var(--hb-btn-bg, #fff); border-color: var(--hb-btn-bg, #fff); background: transparent; }
.ab-btn { background: var(--ab-btn-bg, transparent); color: var(--ab-btn-fg, inherit); border-color: var(--ab-btn-bg, currentColor); }

/* ===== Colour picker ===== */
.cp { display: block; }
.cp-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cp-swatch { flex: none; width: 48px; height: 48px; padding: 4px; border-radius: 14px; border: 1.5px solid rgba(60,60,120,.3); background: #fff; cursor: pointer; }
.cp-chip { display: block; width: 100%; height: 100%; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.cp-chip.is-empty { background: repeating-conic-gradient(#d8d6e6 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.cp-code { flex: 1 1 110px; min-width: 0; display: grid; gap: 2px; }
.cp-val { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; }
.cp-rgb { color: var(--muted); font-size: .78rem; }
.cp-row .btn { margin: 0; }
.cpd { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; }
.cpd[hidden] { display: none; }
.cpd-back { position: absolute; inset: 0; background: rgba(20,16,50,.5); }
.cpd-card { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 20px; border-radius: 20px; background: #fff; color: #1d1b4d; box-shadow: 0 30px 80px -20px rgba(20,10,80,.6); }
.cpd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cpd-head h3 { margin: 0; font-size: 1.2rem; }
.cpd-x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(60,60,120,.2); background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cpd-sv { --h: #f00; position: relative; height: 180px; border-radius: 12px; cursor: crosshair; touch-action: none; background: linear-gradient(to top, #000, rgba(0,0,0,0)), linear-gradient(to right, #fff, var(--h)); }
.cpd-sv:focus-visible { outline: 3px solid #5b46e6; outline-offset: 2px; }
.cpd-knob { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.4); pointer-events: none; }
.cpd-hue { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; margin: 16px 0 14px; border-radius: 8px; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); outline-offset: 4px; }
.cpd-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid #5b46e6; box-shadow: 0 1px 4px rgba(0,0,0,.4); cursor: pointer; }
.cpd-hue::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #5b46e6; cursor: pointer; }
.cpd-fields { display: flex; gap: 12px; align-items: flex-end; }
.cpd-lab { flex: 1; display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: #5a5780; }
.cpd-hex { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cpd-hex.is-bad { border-color: #d92d20; box-shadow: 0 0 0 3px rgba(217,45,32,.18); }
.cpd-prev { flex: none; width: 48px; height: 48px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.cpd-rgb { display: block; margin-top: 6px; color: #5a5780; font-size: .8rem; }
.cpd-h { margin: 14px 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5a5780; }
.cpd-pre { display: flex; flex-wrap: wrap; gap: 8px; }
.cpd-s { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.16); cursor: pointer; }
.cpd-s.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #5b46e6; }
.cpd-s:focus-visible { outline: 3px solid #5b46e6; outline-offset: 2px; }
.cpd-foot { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(60,60,120,.12); }
.cpd-foot .btn { margin: 0; }
.cpd-eye { margin-right: auto !important; }
html.cpd-lock { overflow: hidden; }
@media (max-width: 520px) { .cpd { place-items: end center; padding: 0; } .cpd-card { border-radius: 20px 20px 0 0; max-height: 92dvh; } }
.bn-colour-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .bn-colour-grid { grid-template-columns: minmax(0, 1fr); } }

/* Hero banners on phones: picture on top fading into the banner colour, text below on solid colour (no seam through the text) */
@media (max-width: 820px) {
  .hb-slide { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0 0 76px; }
  .hb-slide::after { display: none; }
  .hb-photo { position: relative; inset: auto; z-index: 0; flex: none; width: 100%; height: clamp(190px, 58vw, 280px); background-size: cover; background-position: var(--hb-pos-m, 70%) center; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
  .hb-slide.no-photo .hb-photo { display: none; }
  .hb-slide.no-photo { padding-top: 28px; }
  .hb-copy { position: relative; z-index: 1; padding: 0 22px; margin-top: -18px; }
  .hb-slide.no-photo .hb-copy { margin-top: 0; }
  .hb-a-center .hb-copy { text-align: center; }
  .hb-slide.hb-t-light { background-color: rgb(var(--hb-rgb)); }
}
