/* =====================================================================
   Fasst theme — design tokens ported 1:1 from the Next.js app (app/globals.css, Tailwind v4 + shadcn).
   Bootstrap 5.3 is the foundation; Bootstrap's CSS variables are re-mapped to the original tokens so every
   Bootstrap component picks up the original colours, radii and dark mode.
   ===================================================================== */

:root {
  --radius: 0.75rem;
  --background: oklch(0.99 0.003 270);
  --foreground: oklch(0.2 0.03 270);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.2 0.03 270);
  --popover: oklch(1 0 0);
  --primary: oklch(0.51 0.23 277);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.96 0.015 280);
  --secondary-foreground: oklch(0.3 0.06 277);
  --muted: oklch(0.965 0.008 270);
  --muted-foreground: oklch(0.52 0.025 270);
  --accent: oklch(0.95 0.03 295);
  --accent-foreground: oklch(0.38 0.17 295);
  --destructive: oklch(0.58 0.22 27);
  --success: oklch(0.62 0.16 155);
  --warning: oklch(0.76 0.16 70);
  --warning-foreground: oklch(0.25 0.05 70);
  --border: oklch(0.91 0.01 270);
  --input: oklch(0.91 0.01 270);
  --ring: oklch(0.51 0.23 277);
  --brand-start: oklch(0.51 0.23 277);
  --brand-end: oklch(0.54 0.25 300);
  --highlight: oklch(0.77 0.17 65);
  --chart-1: oklch(0.51 0.23 277);
  --chart-2: oklch(0.54 0.25 300);
  --chart-3: oklch(0.62 0.16 155);
  --chart-4: oklch(0.76 0.16 70);
  --chart-5: oklch(0.6 0.2 20);
  --sidebar: oklch(0.985 0.004 270);
  --sidebar-foreground: oklch(0.25 0.03 270);
  --sidebar-accent: oklch(0.95 0.02 280);
  --sidebar-accent-foreground: oklch(0.3 0.08 277);
  --sidebar-border: oklch(0.92 0.01 270);
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

html.dark {
  --background: oklch(0.16 0.02 275);
  --foreground: oklch(0.96 0.005 270);
  --card: oklch(0.2 0.025 275);
  --card-foreground: oklch(0.96 0.005 270);
  --popover: oklch(0.2 0.025 275);
  --primary: oklch(0.65 0.2 280);
  --primary-foreground: oklch(0.15 0.02 275);
  --secondary: oklch(0.26 0.03 275);
  --secondary-foreground: oklch(0.94 0.01 270);
  --muted: oklch(0.25 0.025 275);
  --muted-foreground: oklch(0.7 0.02 270);
  --accent: oklch(0.29 0.06 290);
  --accent-foreground: oklch(0.88 0.08 295);
  --destructive: oklch(0.65 0.21 25);
  --success: oklch(0.7 0.15 155);
  --warning: oklch(0.8 0.15 75);
  --warning-foreground: oklch(0.2 0.04 70);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 14%);
  --ring: oklch(0.65 0.2 280);
  --brand-start: oklch(0.62 0.21 277);
  --brand-end: oklch(0.65 0.23 300);
  --highlight: oklch(0.8 0.15 70);
  --chart-1: oklch(0.65 0.2 280);
  --chart-2: oklch(0.68 0.22 305);
  --chart-3: oklch(0.7 0.15 155);
  --chart-4: oklch(0.8 0.15 75);
  --chart-5: oklch(0.68 0.2 20);
  --sidebar: oklch(0.18 0.022 275);
  --sidebar-foreground: oklch(0.94 0.008 270);
  --sidebar-accent: oklch(0.26 0.035 278);
  --sidebar-accent-foreground: oklch(0.94 0.01 270);
  --sidebar-border: oklch(1 0 0 / 8%);
}

/* ---- Bootstrap variable mapping ---- */
:root, [data-bs-theme="light"], [data-bs-theme="dark"] {
  --bs-body-font-family: var(--font-sans);
  --bs-body-bg: var(--background);
  --bs-body-color: var(--foreground);
  --bs-border-color: var(--border);
  --bs-border-radius: var(--radius);
  --bs-border-radius-sm: calc(var(--radius) - 4px);
  --bs-border-radius-lg: calc(var(--radius) + 4px);
  --bs-border-radius-xl: calc(var(--radius) + 8px);
  --bs-primary: var(--primary);
  --bs-primary-rgb: 79, 70, 229;
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--primary);
  --bs-secondary-color: var(--muted-foreground);
  --bs-tertiary-bg: var(--muted);
  --bs-emphasis-color: var(--foreground);
  --bs-card-bg: var(--card);
  --bs-modal-bg: var(--card);
  --bs-dropdown-bg: var(--popover);
  --bs-offcanvas-bg: var(--background);
  --bs-form-control-bg: transparent;
  --bs-success: var(--success);
  --bs-danger: var(--destructive);
  --bs-warning: var(--warning);
}

*, *::before, *::after { border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "rlig" 1, "calt" 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main#main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---- Utilities (ports of the custom Tailwind @utility rules) ---- */
.bg-brand-gradient { background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); }
.text-gradient { background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bg-grid {
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--foreground) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--foreground) 6%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
}
.glass { background-color: color-mix(in oklch, var(--background) 75%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); }
.scrollbar-none { scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }
.container-page { margin-inline: auto; width: 100%; max-width: 1320px; padding-inline: 1rem; }
@media (min-width: 640px) { .container-page { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-page { padding-inline: 2rem; } }
.text-muted-fg { color: var(--muted-foreground) !important; }
.bg-muted-soft { background: var(--muted) !important; }
.bg-card-soft { background: var(--card) !important; }
.border-soft { border: 1px solid var(--border) !important; }
.fw-extra { font-weight: 800; }
.text-primary-brand { color: var(--primary) !important; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rounded-2xl { border-radius: calc(var(--radius) + 8px) !important; }
.rounded-xl { border-radius: calc(var(--radius) + 4px) !important; }
.lucide, [data-lucide] { width: 1.1em; height: 1.1em; stroke-width: 2; vertical-align: -0.15em; }
.icon-sm[data-lucide], .icon-sm.lucide { width: .9em; height: .9em; }
.icon-lg[data-lucide], .icon-lg.lucide { width: 1.5em; height: 1.5em; }

/* ---- Buttons ---- */
.btn { font-weight: 600; border-radius: var(--radius); font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: all .2s; }
.btn-brand { background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); color: #fff; border: 0; box-shadow: 0 6px 18px -8px var(--primary); }
.btn-brand:hover, .btn-brand:focus { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.btn-brand:disabled { opacity: .6; transform: none; }
.btn-outline-soft { background: var(--card); border: 1px solid var(--border); color: var(--foreground); }
.btn-outline-soft:hover { background: var(--accent); color: var(--accent-foreground); border-color: var(--border); }
.btn-ghost { background: transparent; border: 0; color: var(--foreground); }
.btn-ghost:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-secondary-soft { background: var(--secondary); color: var(--secondary-foreground); border: 0; }
.btn-secondary-soft:hover { filter: brightness(.97); color: var(--secondary-foreground); }
.btn-success-soft { background: var(--success); color: #fff; border: 0; }
.btn-icon { width: 2.5rem; height: 2.5rem; padding: 0; }
.btn-icon.btn-sm { width: 2.1rem; height: 2.1rem; }
.btn-danger-soft { background: color-mix(in oklch, var(--destructive) 12%, transparent); color: var(--destructive); border: 0; }
.btn-danger-soft:hover { background: var(--destructive); color: #fff; }

/* ---- Forms ---- */
.form-control, .form-select, .form-check-input { background-color: transparent; border: 1px solid var(--input); color: var(--foreground); border-radius: var(--radius); font-size: .9rem; }
.form-control:focus, .form-select:focus { background-color: transparent; color: var(--foreground); border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 22%, transparent); }
.form-control::placeholder { color: var(--muted-foreground); opacity: .8; }
.form-select option { background: var(--popover); color: var(--foreground); }
.form-label { font-weight: 600; font-size: .85rem; margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--destructive); background-image: none; }
.invalid-feedback { color: var(--destructive); font-size: .78rem; font-weight: 500; }
.form-text { color: var(--muted-foreground); }
.form-control-lg { font-size: 1rem; padding: .7rem 1rem; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.5rem; }

/* ---- Cards / surfaces ---- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); color: var(--card-foreground); }
.card-shadow { box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.surface { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); }
.badge { font-weight: 700; border-radius: 999px; }
.badge-soft { padding: .35em .7em; font-size: .72rem; }
.badge-success { background: color-mix(in oklch, var(--success) 16%, transparent); color: var(--success); }
.badge-warning { background: color-mix(in oklch, var(--warning) 22%, transparent); color: oklch(0.5 0.12 70); }
html.dark .badge-warning { color: var(--warning); }
.badge-danger { background: color-mix(in oklch, var(--destructive) 14%, transparent); color: var(--destructive); }
.badge-muted { background: var(--muted); color: var(--muted-foreground); }
.badge-primary { background: var(--accent); color: var(--accent-foreground); }
.dropdown-menu { background: var(--popover); border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); box-shadow: 0 10px 30px -10px rgb(0 0 0 / .25); padding: .4rem; }
.dropdown-item { border-radius: calc(var(--radius) - 3px); font-size: .875rem; font-weight: 500; color: var(--foreground); padding: .5rem .7rem; display: flex; align-items: center; gap: .6rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--accent); color: var(--accent-foreground); }
.dropdown-divider { border-color: var(--border); }
.modal-content { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); }
.modal-header, .modal-footer { border-color: var(--border); }
.offcanvas { background: var(--background); border-color: var(--border); }
.nav-tabs { border-color: var(--border); }
.nav-tabs .nav-link { color: var(--muted-foreground); font-weight: 600; border: 0; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link.active { background: transparent; color: var(--foreground); border-bottom-color: var(--primary); }
.accordion { --bs-accordion-bg: var(--card); --bs-accordion-border-color: var(--border); --bs-accordion-btn-bg: var(--card); --bs-accordion-active-bg: var(--accent); --bs-accordion-active-color: var(--accent-foreground); --bs-accordion-btn-color: var(--foreground); --bs-accordion-border-radius: calc(var(--radius) + 4px); }
.accordion-button { font-weight: 700; }
.accordion-button:not(.collapsed) { box-shadow: none; }
html.dark .accordion-button::after { filter: invert(1); }
html.dark .btn-close { filter: invert(1); }
.progress { background: var(--muted); border-radius: 999px; }
.progress-bar { background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--foreground); --bs-table-border-color: var(--border); --bs-table-hover-bg: color-mix(in oklch, var(--muted) 60%, transparent); }
.table > :not(caption) > * > * { padding: .8rem 1rem; vertical-align: middle; }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-foreground); font-weight: 700; background: color-mix(in oklch, var(--muted) 55%, transparent); white-space: nowrap; border-bottom: 1px solid var(--border); }
.pagination { --bs-pagination-bg: var(--card); --bs-pagination-border-color: var(--border); --bs-pagination-color: var(--foreground); --bs-pagination-hover-bg: var(--accent); --bs-pagination-hover-color: var(--accent-foreground); --bs-pagination-hover-border-color: var(--border); --bs-pagination-active-bg: var(--primary); --bs-pagination-active-border-color: var(--primary); --bs-pagination-disabled-bg: var(--muted); --bs-pagination-disabled-color: var(--muted-foreground); --bs-pagination-disabled-border-color: var(--border); --bs-pagination-border-radius: var(--radius); gap: .25rem; }
.page-link { border-radius: var(--radius) !important; font-weight: 600; font-size: .85rem; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--muted-foreground); font-size: .85rem; }
.breadcrumb a { color: var(--muted-foreground); }
.breadcrumb a:hover { color: var(--foreground); }
.alert { border-radius: var(--radius); border: 1px solid var(--border); }
.alert-success { background: color-mix(in oklch, var(--success) 12%, transparent); border-color: color-mix(in oklch, var(--success) 40%, transparent); color: var(--foreground); }
.alert-danger { background: color-mix(in oklch, var(--destructive) 10%, transparent); border-color: color-mix(in oklch, var(--destructive) 40%, transparent); color: var(--foreground); }
.alert-warning { background: color-mix(in oklch, var(--warning) 14%, transparent); border-color: color-mix(in oklch, var(--warning) 45%, transparent); color: var(--foreground); }
.alert-info { background: var(--accent); border-color: var(--border); color: var(--accent-foreground); }
.tooltip { --bs-tooltip-bg: var(--foreground); --bs-tooltip-color: var(--background); }

/* ---- Navbar ---- */
.pv-header { position: sticky; top: 0; z-index: 1030; width: 100%; border-bottom: 1px solid transparent; background: var(--background); transition: background-color .3s, box-shadow .3s, border-color .3s; }
.pv-header.scrolled { border-color: color-mix(in oklch, var(--border) 60%, transparent); box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.pv-header .bar { display: flex; align-items: center; gap: 1rem; height: 76px; transition: height .25s ease-out; }
.pv-header.scrolled .bar { height: 60px; }
.pv-nav { display: none; align-items: center; gap: .25rem; margin-left: 1.5rem; }
@media (min-width: 992px) { .pv-nav { display: flex; } .pv-burger { display: none !important; } }
.pv-link { position: relative; border-radius: calc(var(--radius) - 4px); padding: .5rem .75rem; font-size: .875rem; font-weight: 600; color: var(--muted-foreground); background: none; border: 0; display: inline-flex; align-items: center; gap: .25rem; transition: color .2s; }
.pv-link:hover, .pv-link.active { color: var(--foreground); }
.pv-link.active::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: -2px; height: 2px; border-radius: 999px; background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); }
.pv-logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.pv-logo .mark { width: 2.2rem; height: 2.2rem; border-radius: .7rem; display: grid; place-items: center; color: #fff; background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); box-shadow: 0 6px 16px -6px var(--primary); }
.pv-logo img { max-height: 2.4rem; width: auto; }
html.dark .pv-logo .logo-light { display: none; }
html:not(.dark) .pv-logo .logo-dark { display: none; }
.pv-logo-on-dark-bg .logo-light { display: none; }
html:not(.dark) .pv-logo-on-dark-bg .logo-dark { display: block; }
.cart-badge { position: absolute; top: 2px; right: 2px; min-width: 1.15rem; height: 1.15rem; padding: 0 .25rem; border-radius: 999px; font-size: .65rem; font-weight: 800; color: #fff; display: grid; place-items: center; background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); }
.cart-badge.bump { animation: bump .4s; }
@keyframes bump { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
.announce { background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); color: #fff; font-size: .82rem; font-weight: 600; text-align: center; padding: .5rem 2.5rem; position: relative; }
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.announce .close { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; opacity: .8; }

/* mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; display: none; padding-top: .75rem; z-index: 1040; }
.mega.open { display: block; }
.mega-panel { background: var(--popover); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); padding: 1.35rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; max-height: 70vh; overflow: auto; }
.mega-roots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .55rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
.mega-roots-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .1rem; }
.mega-roots-heading > div { display: grid; gap: .12rem; }
.mega-roots-heading > div span:first-child { color: var(--foreground); font-size: .9rem; font-weight: 700; }
.mega-roots-heading > div span:last-child { color: var(--muted-foreground); font-size: .78rem; }
.mega-all-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--primary); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.mega-all-link:hover { color: var(--accent-foreground); }
.mega-root { min-width: 0; display: flex; align-items: center; gap: .55rem; padding: .55rem .65rem; border: 1px solid transparent; border-radius: var(--radius); background: var(--secondary); color: var(--foreground); text-align: left; font-size: .84rem; font-weight: 600; transition: background .2s, border-color .2s, transform .2s; }
.mega-root.active, .mega-root:hover { background: var(--accent); border-color: var(--border); color: var(--accent-foreground); }
.mega-root:hover { transform: translateY(-1px); }
.mega-root:focus-visible, .mega-all-link:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.mega-root .ico { width: 2.1rem; height: 2.1rem; border-radius: .65rem; background: var(--popover); color: var(--primary); display: grid; place-items: center; flex: none; }
.mega-root-label { min-width: 0; }
.mega-content { min-width: 0; }
.mega-pane { display: none; }
.mega-pane.active { display: block; }
.mega-pane > .d-flex { gap: 1rem; padding-inline: .15rem; }
.mega-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .7rem; }
.mega-col { min-width: 0; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.mega-col h6 { font-size: .85rem; font-weight: 700; margin-bottom: .5rem; }
.mega-col h6 a { color: var(--foreground); }
.mega-col a { display: block; padding: .25rem .35rem; border-radius: .4rem; font-size: .82rem; color: var(--muted-foreground); transition: color .2s, background .2s; }
.mega-col a:hover { color: var(--primary); background: var(--accent); }
@media (min-width: 992px) and (max-width: 1199.98px) { .mega-roots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .mega-roots { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mega-panel { padding: 1rem; } }

/* ---- Product card ---- */
.pcard { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); box-shadow: 0 1px 2px rgb(0 0 0 / .05); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; height: 100%; }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -12px color-mix(in oklch, var(--primary) 25%, transparent); }
.pcard .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--muted); }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease-out; }
.pcard:hover .thumb img { transform: scale(1.1); }
.pcard .badges { position: absolute; top: .75rem; left: .75rem; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; pointer-events: none; }
.pcard .pill { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .25rem .65rem; font-size: .72rem; font-weight: 700; color: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .2); }
.pill.new { background: var(--success); }
.pill.featured { background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); }
.pcard .off { position: absolute; top: .75rem; right: .75rem; background: var(--destructive); color: #fff; border-radius: 999px; padding: .25rem .65rem; font-size: .72rem; font-weight: 800; box-shadow: 0 4px 10px rgb(0 0 0 / .25); }
.pcard .quick { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; display: none; gap: .5rem; opacity: 0; transform: translateY(1rem); transition: all .3s; }
@media (min-width: 768px) { .pcard .quick { display: flex; } }
.pcard:hover .quick { opacity: 1; transform: none; }
.pcard .body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.pcard .cat { color: var(--primary); font-size: .75rem; font-weight: 600; width: fit-content; }
.pcard .cat:hover { text-decoration: underline; }
.pcard h3 { font-size: .95rem; font-weight: 700; line-height: 1.35; margin: .25rem 0 0; }
.pcard h3 a:hover { color: var(--primary); }
.pcard .meta { display: flex; gap: .75rem; align-items: center; color: var(--muted-foreground); font-size: .75rem; margin-top: .5rem; }
.pcard .foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pcard .price { font-size: 1.25rem; font-weight: 800; }
.pcard .old { font-size: .875rem; color: var(--muted-foreground); text-decoration: line-through; margin-left: .4rem; }
.pcard.list { flex-direction: column; }
@media (min-width: 576px) { .pcard.list { flex-direction: row; } .pcard.list .thumb { width: 18rem; flex: none; aspect-ratio: auto; } .pcard.list .body { padding: 1.5rem; } .pcard.list h3 { font-size: 1.1rem; } }
.stars { display: inline-flex; gap: 1px; color: var(--highlight); }
.stars .off { color: color-mix(in oklch, var(--muted-foreground) 35%, transparent); position: static; background: none; box-shadow: none; padding: 0; }
.stars [data-lucide] { fill: currentColor; width: .95em; height: .95em; }
.stars.xs [data-lucide] { width: .8em; height: .8em; }
.stars.lg [data-lucide] { width: 1.3em; height: 1.3em; }
.skeleton { background: linear-gradient(90deg, var(--muted) 25%, color-mix(in oklch, var(--muted) 60%, var(--background)) 50%, var(--muted) 75%); background-size: 200% 100%; animation: shimmer 2s linear infinite; border-radius: var(--radius); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---- Hero / sections ---- */
.hero { position: relative; overflow: hidden; }
.hero .swiper-slide { height: auto; }
.hero-slide { position: relative; min-height: 520px; display: flex; align-items: center; color: #fff; }
.hero-slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slide .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(15 10 40 / .85), rgb(15 10 40 / .45) 60%, rgb(15 10 40 / .15)); }
.hero-slide.noimg .bg { background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); }
.hero-slide.noimg .bg::after { display: none; }
.hero-slide .inner { position: relative; z-index: 2; max-width: 640px; padding: 4rem 0; }
.hero-slide h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.hero-slide p { font-size: 1.1rem; opacity: .9; margin: 1rem 0 1.75rem; }
.swiper-pagination-bullet { background: #fff; opacity: .5; }
.swiper-pagination-bullet-active { opacity: 1; width: 1.5rem; border-radius: 999px; }
.section { padding-block: 4rem; }
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-heading .eyebrow { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); background: var(--accent); padding: .3rem .8rem; border-radius: 999px; margin-bottom: .75rem; }
.section-heading h2 { font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.section-heading p { color: var(--muted-foreground); }
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 1.25rem .75rem; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); transition: all .3s; height: 100%; }
.cat-tile:hover { transform: translateY(-4px); border-color: color-mix(in oklch, var(--primary) 50%, var(--border)); box-shadow: 0 14px 30px -14px color-mix(in oklch, var(--primary) 40%, transparent); }
.cat-tile .ico { width: 3.25rem; height: 3.25rem; border-radius: 1rem; display: grid; place-items: center; background: var(--secondary); color: var(--primary); }
.cat-tile:hover .ico { background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); color: #fff; }
.feature-box { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); padding: 1.5rem; height: 100%; }
.feature-box .ico { width: 3rem; height: 3rem; border-radius: .9rem; display: grid; place-items: center; background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); color: #fff; margin-bottom: 1rem; }
.stat-band { background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); color: #fff; border-radius: calc(var(--radius) + 12px); padding: 2.5rem 1.5rem; }
.stat-band .num { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; }
.page-banner { background: linear-gradient(180deg, color-mix(in oklch, var(--primary) 8%, var(--background)), var(--background)); border-bottom: 1px solid var(--border); padding: 2.5rem 0; }
.page-banner h1 { font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0; }
.page-banner-body.has-aside { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.page-banner-body.has-aside .page-banner-copy { min-width: 0; flex: 1; }
.page-banner-aside { display: flex; align-items: center; gap: .85rem; width: min(100%, 19rem); padding: .9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--card) 88%, transparent); box-shadow: 0 12px 30px -20px rgb(0 0 0 / .25); }
.page-banner-aside-icon { width: 2.6rem; height: 2.6rem; flex: none; display: grid; place-items: center; border-radius: .75rem; background: var(--accent); color: var(--primary); }
.page-banner-aside-copy { display: grid; gap: .15rem; }
.page-banner-aside-copy strong { color: var(--foreground); font-size: .85rem; }
.page-banner-aside-copy > span { color: var(--muted-foreground); font-size: .78rem; line-height: 1.45; }
.page-banner-eyebrow { display: inline-flex; align-items: center; margin: 0 0 .8rem; padding: .35rem .7rem; border-radius: 999px; background: var(--accent); color: var(--accent-foreground); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.page-banner.contact-banner { position: relative; isolation: isolate; overflow: hidden; padding: 3rem 0 3.25rem; background: radial-gradient(ellipse at 84% 18%, color-mix(in oklch, var(--primary) 13%, transparent), transparent 38%), linear-gradient(125deg, color-mix(in oklch, var(--primary) 5%, var(--background)), var(--background) 65%, color-mix(in oklch, var(--brand-end) 5%, var(--background))); }
.page-banner.contact-banner::after { position: absolute; z-index: -1; top: -12rem; right: -7rem; width: 25rem; height: 25rem; border: 1px solid color-mix(in oklch, var(--primary) 14%, transparent); border-radius: 50%; box-shadow: 0 0 0 2rem color-mix(in oklch, var(--primary) 3%, transparent), 0 0 0 4rem color-mix(in oklch, var(--primary) 2%, transparent); content: ""; pointer-events: none; }
.contact-banner .container-page { position: relative; z-index: 1; }
.contact-banner .page-banner-body { gap: 3rem; }
.contact-banner .page-banner-copy { max-width: 48rem; }
.contact-banner .page-banner-eyebrow { margin-bottom: .85rem; }
.contact-banner h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; }
.contact-banner .page-banner-copy > p { max-width: 44rem !important; margin-top: .75rem !important; font-size: 1rem; line-height: 1.7; }
.contact-content { padding-block: 3rem 4.5rem; }
.contact-info-card { padding: 1.1rem; border-radius: calc(var(--radius) + 4px); }
.contact-form { padding: 1.5rem; border-radius: calc(var(--radius) + 6px); }
@media (min-width: 992px) { .contact-content { padding-block: 3.5rem 5rem; } .contact-form { padding: 1.75rem; } }
@media (max-width: 767.98px) { .page-banner.contact-banner { padding: 2.5rem 0 2.75rem; } .contact-banner .page-banner-body { align-items: flex-start; flex-direction: column; gap: 1.25rem; } .page-banner-aside { max-width: 22rem; } .contact-content { padding-block: 2.25rem 3.5rem; } }
.testi { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); padding: 1.5rem; height: 100%; }
.avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--secondary); color: var(--secondary-foreground); font-weight: 700; font-size: .85rem; overflow: hidden; }
.avatar.bg-brand-gradient { background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); }
.avatar-sm { width: 2.5rem; height: 2.5rem; border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: var(--secondary); color: var(--secondary-foreground); font-weight: 700; font-size: .85rem; overflow: hidden; }
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 4rem; height: 4rem; font-size: 1.2rem; }

/* ---- Footer ---- */
.pv-footer { margin-top: 4rem; border-top: 1px solid var(--border); background: color-mix(in oklch, var(--muted) 50%, var(--background)); }
.pv-footer h6 { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.pv-footer ul { list-style: none; padding: 0; margin: 0; }
.pv-footer li { margin-bottom: .55rem; }
.pv-footer li a { color: var(--muted-foreground); font-size: .9rem; }
.pv-footer li a:hover { color: var(--primary); }
.social a { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--card); border: 1px solid var(--border); color: var(--muted-foreground); transition: all .2s; }
.social a:hover { background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); color: #fff; border-color: transparent; }

/* ---- Shop ---- */
.filter-card { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); padding: 1.25rem; }
.filter-card h6 { font-weight: 800; font-size: .85rem; margin-bottom: .75rem; }
.category-filter { padding: 1rem; }
.category-filter-heading { margin-bottom: .75rem; }
.category-filter-heading h6 { margin-bottom: .2rem; }
.category-filter-heading p { margin: 0; color: var(--muted-foreground); font-size: .76rem; }
.cat-tree { display: grid; gap: .2rem; }
.cat-node { min-width: 0; }
.cat-row { display: flex; align-items: center; gap: .2rem; }
.cat-row > .cat-link { flex: 1; }
.cat-tree a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-width: 0; padding: .42rem .5rem; border: 1px solid transparent; border-radius: calc(var(--radius) - 3px); color: var(--muted-foreground); font-size: .82rem; font-weight: 500; text-decoration: none; transition: background .18s, border-color .18s, color .18s; }
.cat-tree a:hover { background: var(--accent); color: var(--accent-foreground); }
.cat-tree a.active { background: var(--accent); border-color: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--accent-foreground); font-weight: 700; }
.cat-tree a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.cat-toggle { width: 2rem; height: 2rem; flex: none; display: grid; place-items: center; border: 0; border-radius: .5rem; background: transparent; color: var(--muted-foreground); transition: background .18s, color .18s; }
.cat-toggle:hover { background: var(--secondary); color: var(--primary); }
.cat-toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.cat-toggle svg { width: .9rem; height: .9rem; transition: transform .18s; }
.cat-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.cat-tree .cat-label { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.cat-tree .cat-label > span:last-child { overflow-wrap: anywhere; }
.cat-tree .cat-icon { width: 1.65rem; height: 1.65rem; flex: none; display: grid; place-items: center; border-radius: .5rem; background: var(--secondary); color: var(--primary); }
.cat-tree .cat-icon svg { width: .9rem; height: .9rem; }
.cat-tree .cat-count { min-width: 1.5rem; padding: .08rem .35rem; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); font-size: .68rem; font-weight: 700; line-height: 1.5; text-align: center; }
.cat-tree a.active .cat-count { background: var(--popover); color: var(--accent-foreground); }
.cat-tree .cat-all { margin-bottom: .2rem; }
.cat-children { display: grid; gap: .1rem; margin: .12rem 0 .2rem .72rem; border-left: 1px solid var(--border); padding-left: .45rem; }
.cat-children[hidden] { display: none; }
.cat-children .cat-link { padding-block: .34rem; font-size: .78rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; background: var(--accent); color: var(--accent-foreground); font-size: .78rem; font-weight: 600; }
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state .ico { width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; background: var(--secondary); color: var(--primary); }

/* ---- Product page ---- */
.gallery-main { position: relative; aspect-ratio: 4/3; border-radius: calc(var(--radius) + 8px); overflow: hidden; background: var(--muted); border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin-top: .75rem; }
.gallery-thumbs button { aspect-ratio: 4/3; border-radius: calc(var(--radius) - 2px); overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--muted); opacity: .75; transition: all .2s; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--primary); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); padding: 1.5rem; }
.buy-box .price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.spec-row { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--border); font-size: .875rem; }
.spec-row:last-child { border: 0; }
.prose-content { line-height: 1.75; color: var(--foreground); overflow-wrap: anywhere; }
.prose-content h1 { font-size: 1.875rem; font-weight: 800; margin: 1.5rem 0 .75rem; }
.prose-content h2 { font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 .75rem; }
.prose-content h3 { font-size: 1.25rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
.prose-content p { margin: .75rem 0; color: var(--muted-foreground); }
.prose-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose-content ul { list-style: disc; padding-left: 1.5rem; margin: .75rem 0; }
.prose-content ol { list-style: decimal; padding-left: 1.5rem; margin: .75rem 0; }
.prose-content li { margin: .25rem 0; color: var(--muted-foreground); }
.prose-content blockquote { border-left: 3px solid var(--primary); padding-left: 1rem; font-style: italic; margin: 1rem 0; }
.prose-content code { background: var(--muted); padding: .15rem .4rem; border-radius: .375rem; font-size: .9em; }
.prose-content pre { background: var(--muted); padding: 1rem; border-radius: var(--radius); overflow-x: auto; }
.prose-content img { border-radius: var(--radius); margin: 1rem 0; max-width: 100%; height: auto; }
.prose-content hr { border-color: var(--border); margin: 1.5rem 0; }
.prose-content strong { color: var(--foreground); font-weight: 700; }
.prose-content table { width: 100%; margin: 1rem 0; }
.prose-content th, .prose-content td { border: 1px solid var(--border); padding: .5rem .75rem; }

/* ---- CMS pages ---- */
.cms-hero { position: relative; isolation: isolate; overflow: hidden; padding: 2.5rem 0 3rem; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse at 82% 10%, color-mix(in oklch, var(--primary) 12%, transparent), transparent 42%), linear-gradient(160deg, color-mix(in oklch, var(--primary) 6%, var(--background)), var(--background) 72%); }
.cms-hero::after { content: ""; position: absolute; z-index: -1; top: -11rem; right: -8rem; width: 27rem; height: 27rem; border-radius: 50%; background: color-mix(in oklch, var(--brand-end) 12%, transparent); filter: blur(75px); pointer-events: none; }
.cms-hero-inner { position: relative; z-index: 1; }
.cms-hero-inner .breadcrumb { margin-bottom: 1.75rem; }
.cms-eyebrow { display: flex; align-items: center; gap: .55rem; margin: 0 0 .75rem; color: var(--primary); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cms-eyebrow span { width: .5rem; height: .5rem; border-radius: 50%; background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); box-shadow: 0 0 0 4px color-mix(in oklch, var(--primary) 12%, transparent); }
.cms-hero h1 { max-width: 52rem; margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; }
.cms-updated { display: flex; align-items: center; gap: .45rem; margin: 1.25rem 0 0; color: var(--muted-foreground); font-size: .875rem; }
.cms-updated svg { width: 1rem; height: 1rem; color: var(--primary); }
.cms-layout { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; align-items: start; gap: 1.5rem; max-width: 1180px; padding-block: 2.5rem 5rem; }
.cms-article { min-width: 0; padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); background: var(--card); box-shadow: 0 12px 40px -28px color-mix(in oklch, var(--foreground) 25%, transparent); }
.cms-article-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.cms-article-icon { display: grid; width: 2.75rem; height: 2.75rem; flex: none; place-items: center; border-radius: .85rem; background: color-mix(in oklch, var(--primary) 10%, var(--background)); color: var(--primary); }
.cms-article-icon svg { width: 1.25rem; height: 1.25rem; }
.cms-article-label { margin: 0; color: var(--foreground); font-size: .9rem; font-weight: 800; }
.cms-article-hint { margin: .15rem 0 0; color: var(--muted-foreground); font-size: .8rem; }
.cms-prose { line-height: 1.85; }
.cms-prose > :first-child { margin-top: 0; }
.cms-prose > :last-child { margin-bottom: 0; }
.cms-prose h2 { margin-top: 2rem; padding-left: .9rem; border-left: 3px solid var(--primary); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.35; scroll-margin-top: 6rem; }
.cms-prose h3 { margin-top: 1.75rem; }
.cms-prose li + li { margin-top: .45rem; }
.cms-prose li::marker { color: var(--primary); }
.cms-prose table { display: block; max-width: 100%; overflow-x: auto; }
.cms-aside { position: sticky; top: 90px; display: grid; gap: 1rem; }
.cms-side-card, .cms-help-card { min-width: 0; padding: 1.25rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); background: var(--card); }
.cms-side-eyebrow { margin: 0 0 .45rem; color: var(--primary); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cms-side-card h2, .cms-help-card h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.cms-side-nav { display: grid; gap: .3rem; margin-top: .85rem; }
.cms-side-nav a { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr) 1rem; align-items: center; gap: .55rem; padding: .65rem .7rem; border-radius: .7rem; color: var(--muted-foreground); font-size: .82rem; font-weight: 600; transition: background-color .2s, color .2s; }
.cms-side-nav a > svg:first-child { color: var(--primary); }
.cms-side-nav .cms-side-arrow { color: var(--muted-foreground); opacity: .65; }
.cms-side-nav a:hover, .cms-side-nav a.active { background: var(--accent); color: var(--accent-foreground); }
.cms-help-card { background: linear-gradient(150deg, color-mix(in oklch, var(--primary) 9%, var(--card)), var(--card)); }
.cms-help-icon { display: grid; width: 2.5rem; height: 2.5rem; margin-bottom: .85rem; place-items: center; border-radius: .8rem; background: color-mix(in oklch, var(--primary) 12%, transparent); color: var(--primary); }
.cms-help-card p { margin: .5rem 0 1rem; color: var(--muted-foreground); font-size: .82rem; line-height: 1.65; }
@media (max-width: 991.98px) {
  .cms-layout { grid-template-columns: minmax(0, 1fr); padding-block: 2rem 4rem; }
  .cms-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .cms-hero { padding-block: 1.75rem 2rem; }
  .cms-hero-inner .breadcrumb { margin-bottom: 1.35rem; }
  .cms-layout { gap: 1rem; padding-block: 1.25rem 3rem; }
  .cms-article { padding: 1.15rem; }
  .cms-article-top { margin-bottom: 1.35rem; }
  .cms-aside { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Cart / checkout ---- */
.cart-line { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-line img { width: 5rem; height: 3.75rem; object-fit: cover; border-radius: calc(var(--radius) - 2px); background: var(--muted); }
.summary { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); padding: 1.5rem; position: sticky; top: 90px; }
.pay-option { display: flex; gap: .85rem; padding: 1rem; border: 1.5px solid var(--border); border-radius: calc(var(--radius) + 2px); cursor: pointer; transition: all .2s; background: var(--card); }
.pay-option:hover { border-color: color-mix(in oklch, var(--primary) 50%, var(--border)); }
.pay-option.selected { border-color: var(--primary); background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 15%, transparent); }
.pay-details { background: var(--muted); border-radius: var(--radius); padding: .85rem 1rem; font-size: .85rem; white-space: pre-wrap; }
.status-hero { border-radius: calc(var(--radius) + 12px); padding: 2rem; color: #fff; }
.status-hero.paid { background-image: linear-gradient(135deg, oklch(0.62 0.16 155), oklch(0.55 0.15 175)); }
.status-hero.pending { background-image: linear-gradient(135deg, oklch(0.76 0.16 70), oklch(0.68 0.17 50)); }
.status-hero.failed, .status-hero.refunded { background-image: linear-gradient(135deg, oklch(0.58 0.22 27), oklch(0.5 0.2 10)); }

/* ---- Auth ---- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth-wrap { grid-template-columns: 1fr 1fr; } }
.auth-showcase { display: none; position: relative; overflow: hidden; color: #fff; padding: 3rem; background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); }
@media (min-width: 992px) { .auth-showcase { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-showcase::before, .auth-showcase::after { content: ""; position: absolute; border-radius: 50%; background: rgb(255 255 255 / .1); }
.auth-showcase::before { width: 420px; height: 420px; right: -140px; top: -120px; }
.auth-showcase::after { width: 320px; height: 320px; left: -100px; bottom: -100px; }
.auth-showcase > * { position: relative; z-index: 1; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-card { width: 100%; max-width: 420px; }

/* ---- Account ---- */
.acc-nav a { display: flex; align-items: center; gap: .7rem; padding: .65rem .9rem; border-radius: var(--radius); font-weight: 600; font-size: .9rem; color: var(--muted-foreground); }
.acc-nav a:hover { background: var(--accent); color: var(--accent-foreground); }
.acc-nav a.active { background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); color: #fff; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); padding: 1.25rem; display: flex; gap: 1rem; align-items: center; }
.stat-card .ico { width: 2.9rem; height: 2.9rem; border-radius: .9rem; display: grid; place-items: center; flex: none; }
.ico-primary { background: var(--accent); color: var(--primary); }
.ico-success { background: color-mix(in oklch, var(--success) 15%, transparent); color: var(--success); }
.ico-warning { background: color-mix(in oklch, var(--warning) 22%, transparent); color: oklch(0.55 0.13 70); }
.ico-danger { background: color-mix(in oklch, var(--destructive) 13%, transparent); color: var(--destructive); }

/* ---- Admin shell ---- */
.adm { display: flex; min-height: 100vh; background: color-mix(in oklch, var(--muted) 40%, var(--background)); }
.adm-side { width: 270px; flex: none; background: var(--sidebar); color: var(--sidebar-foreground); border-right: 1px solid var(--sidebar-border); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: none; flex-direction: column; }
@media (min-width: 992px) { .adm-side { display: flex; } }
.adm-side .brand { height: 64px; display: flex; align-items: center; padding: 0 1.25rem; border-bottom: 1px solid var(--sidebar-border); }
.adm-group { padding: 1rem .85rem .25rem; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); }
.adm-link { display: flex; align-items: center; gap: .7rem; margin: .1rem .6rem; padding: .55rem .75rem; border-radius: var(--radius); font-size: .875rem; font-weight: 600; color: var(--sidebar-foreground); transition: all .15s; }
.adm-link:hover { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); }
.adm-link.active { background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)); color: #fff; box-shadow: 0 6px 16px -8px var(--primary); }
.adm-link .badge-count { margin-left: auto; background: var(--destructive); color: #fff; font-size: .65rem; font-weight: 800; border-radius: 999px; padding: .1rem .45rem; }
.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-top { height: 64px; display: flex; align-items: center; gap: .75rem; padding: 0 1.25rem; background: color-mix(in oklch, var(--background) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1020; }
#cmdkOpen { min-width: 240px; }
.adm-content { padding: 1.5rem; flex: 1; }
.page-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.page-head p { margin: 0; color: var(--muted-foreground); font-size: .9rem; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); padding: 1.25rem; height: 100%; }
.kpi .label { color: var(--muted-foreground); font-size: .8rem; font-weight: 600; }
.kpi .value { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; }
.trend-up { color: var(--success); font-size: .78rem; font-weight: 700; }
.trend-down { color: var(--destructive); font-size: .78rem; font-weight: 700; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); }
.panel-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.panel-head h2 { font-size: 1rem; font-weight: 800; margin: 0; }
.panel-body { padding: 1.25rem; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.toolbar .form-control, .toolbar .form-select { width: auto; min-width: 160px; }
.drag-handle { cursor: grab; color: var(--muted-foreground); }
.sortable-ghost { opacity: .4; background: var(--accent); }
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; color: var(--muted-foreground); cursor: pointer; transition: all .2s; background: color-mix(in oklch, var(--muted) 40%, transparent); }
.upload-zone:hover, .upload-zone.drag { border-color: var(--primary); background: var(--accent); color: var(--accent-foreground); }
.upload-preview { width: 100%; max-width: 160px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); background: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.gallery-grid .gi { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); cursor: grab; }
.gallery-grid .gi img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid .gi button { position: absolute; top: 4px; right: 4px; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 0; background: rgb(0 0 0 / .65); color: #fff; line-height: 1; font-size: .8rem; }
.tag-input { display: flex; flex-wrap: wrap; gap: .4rem; border: 1px solid var(--input); border-radius: var(--radius); padding: .4rem; }
.tag-input input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 120px; color: var(--foreground); font-size: .9rem; padding: .2rem .4rem; }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-color: var(--input) !important; }
.ql-toolbar.ql-snow { border-radius: var(--radius) var(--radius) 0 0; background: var(--muted); }
.ql-container.ql-snow { border-radius: 0 0 var(--radius) var(--radius); font-family: var(--font-sans); font-size: .95rem; min-height: 260px; }
html.dark .ql-snow .ql-stroke { stroke: var(--foreground); }
html.dark .ql-snow .ql-fill { fill: var(--foreground); }
html.dark .ql-snow .ql-picker { color: var(--foreground); }
.ql-editor { min-height: 260px; }
.cmdk { position: fixed; inset: 0; z-index: 2000; background: rgb(0 0 0 / .45); display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.cmdk.open { display: flex; }
.cmdk-box { width: min(560px, 92vw); background: var(--popover); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .5); overflow: hidden; }
.cmdk-box input { width: 100%; border: 0; outline: 0; padding: 1rem 1.25rem; background: transparent; color: var(--foreground); border-bottom: 1px solid var(--border); font-size: 1rem; }
.cmdk-list { max-height: 50vh; overflow: auto; padding: .5rem; }
.cmdk-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: var(--radius); font-size: .9rem; font-weight: 500; cursor: pointer; }
.cmdk-item.sel, .cmdk-item:hover { background: var(--accent); color: var(--accent-foreground); }
kbd { background: var(--muted); border: 1px solid var(--border); border-radius: .35rem; padding: .05rem .4rem; font-size: .72rem; font-family: inherit; }
.chart-box { position: relative; height: 300px; }
.toast-container-pv { position: fixed; z-index: 3000; top: 1rem; right: 1rem; display: flex; flex-direction: column; gap: .5rem; }
@media (max-width: 991.98px) {
  .adm-top { gap: .5rem; }
  #cmdkOpen { min-width: 0; flex: 1 1 0; overflow: hidden; }
  .adm-content .row > .d-grid { min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .adm-content .row > .d-grid > * { min-width: 0; }
}
@media (max-width: 575.98px) {
  .adm-top { gap: .4rem; padding-inline: .75rem; }
  .adm-content { padding: 1rem; }
}
@media (max-width: 359.98px) {
  #cmdkOpen > span { display: none; }
  .adm-sort-item { flex-wrap: wrap; gap: .5rem !important; }
  .adm-sort-item > .flex-grow-1 { flex-basis: 110px; }
  .adm-sort-item > .text-nowrap { margin-left: auto; }
  .pv-account-menu { display: none !important; }
}
.swal2-popup { background: var(--card) !important; color: var(--foreground) !important; border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px) !important; font-family: var(--font-sans) !important; }
.swal2-title, .swal2-html-container { color: var(--foreground) !important; }
.swal2-styled.swal2-confirm { background-image: linear-gradient(135deg, var(--brand-start), var(--brand-end)) !important; border-radius: var(--radius) !important; }
.swal2-styled.swal2-cancel { border-radius: var(--radius) !important; }
.swal2-toast { box-shadow: 0 10px 30px -10px rgb(0 0 0 / .35) !important; }
@media print { .pv-header, .pv-footer, .announce, .no-print { display: none !important; } }

/* theme toggle icons */
html.dark .ic-moon { display: none; }
html:not(.dark) .ic-sun { display: none; }

/* ---- cart / checkout / order ---- */
.cart-line { display: flex; align-items: center; gap: .9rem; }
.cart-line > img { width: 4.5rem; aspect-ratio: 4/3; object-fit: cover; border-radius: .6rem; border: 1px solid var(--border); background: var(--muted); flex: none; }
.method-opt { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); cursor: pointer; transition: all .15s; }
.method-opt:hover { border-color: color-mix(in oklch, var(--primary) 50%, var(--border)); }
.method-opt.active { border-color: var(--primary); background: color-mix(in oklch, var(--primary) 6%, transparent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 14%, transparent); }
.thumb-sm { width: 5rem; aspect-ratio: 4/3; border-radius: .6rem; overflow: hidden; border: 1px solid var(--border); background: var(--muted); display: grid; place-items: center; flex: none; }
.thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.spin { animation: pvspin 1s linear infinite; }
@keyframes pvspin { to { transform: rotate(360deg); } }
.min-w-0 { min-width: 0; }

/* ---- account ---- */
.avatar-lg { width: 3.5rem; height: 3.5rem; font-size: 1.1rem; }
.account-link { display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; border-radius: calc(var(--radius) - 2px); font-weight: 600; font-size: .875rem; color: var(--muted-foreground); white-space: nowrap; text-decoration: none; }
.account-link:hover { background: var(--accent); color: var(--accent-foreground); }
.account-link.active { background: var(--accent); color: var(--primary); }
.thumb-xs { width: 2.75rem; height: 2.75rem; border-radius: .55rem; overflow: hidden; background: var(--muted); border: 2px solid var(--card); display: block; }
.thumb-xs img { width: 100%; height: 100%; object-fit: cover; }
.thumb-md { width: 100%; aspect-ratio: 4/3; border-radius: .8rem; overflow: hidden; border: 1px solid var(--border); background: var(--muted); display: grid; place-items: center; flex: none; }
@media (min-width: 576px) { .thumb-md { width: 8rem; } }
.thumb-md img { width: 100%; height: 100%; object-fit: cover; }
.order-row:hover { background: color-mix(in oklch, var(--muted) 40%, transparent); }
.hover-lift { transition: transform .2s, box-shadow .2s; }
.hover-lift:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgb(0 0 0 / .25); }
.badge-warning { background: color-mix(in oklch, var(--warning) 18%, transparent); color: var(--warning); }
.badge-danger { background: color-mix(in oklch, var(--destructive) 14%, transparent); color: var(--destructive); }
.badge-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.badge-primary { background: color-mix(in oklch, var(--primary) 14%, transparent); color: var(--primary); }
.ico-box { width: 2.6rem; height: 2.6rem; border-radius: .75rem; display: inline-grid; place-items: center; flex: none; background: color-mix(in oklch, var(--primary) 12%, transparent); color: var(--primary); }
