/* =========================================================
   Tirasells Digital — premium landing page
   Vanilla CSS, no build step, offline-safe
   ========================================================= */

:root {
    --brand-100: #f3effa;
    --brand-200: #e4dcf3;
    --brand-300: #c8bce0;
    --brand-400: #a99ac5;
    --brand: #8b7fa8;
    --brand-600: #6f6390;
    --brand-700: #554a72;
    --plum: #2f2740;

    --accent: #e0a189;
    --accent-soft: #fbeade;
    --gold: #c9a15a;

    --bg: #fbfaf7;
    --bg-alt: #f5f2ec;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.72);
    --ink: #211c2e;
    --ink-soft: #4a4358;
    --muted: #7b7488;
    --line: rgba(33, 28, 46, 0.09);
    --line-strong: rgba(33, 28, 46, 0.16);

    --ok: #1c7a4f;
    --ok-soft: #e4f5ec;
    --warn: #9a5b00;
    --warn-soft: #fcf0dc;

    --shadow-sm: 0 2px 8px rgba(33, 28, 46, 0.05);
    --shadow: 0 18px 40px -18px rgba(33, 28, 46, 0.22);
    --shadow-lg: 0 40px 80px -32px rgba(33, 28, 46, 0.35);

    --r-sm: 12px;
    --r: 18px;
    --r-lg: 28px;
    --r-xl: 40px;

    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

    --header-h: 76px;
    --grad-brand: linear-gradient(115deg, #8b7fa8 0%, #b48ec4 45%, #e0a189 100%);
    --grad-ink: linear-gradient(120deg, #2f2740 0%, #6f6390 55%, #b48ec4 100%);
}

[data-theme="dark"] {
    --bg: #0f0d15;
    --bg-alt: #14111d;
    --surface: #191524;
    --surface-glass: rgba(25, 21, 36, 0.72);
    --ink: #f2eef9;
    --ink-soft: #cfc8dd;
    --muted: #9c93ad;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.2);

    --brand-100: #221d33;
    --brand-200: #2c2542;
    --brand-300: #3d3559;
    --brand-400: #9b8db8;

    --ok-soft: #12301f;
    --warn-soft: #33230d;
    --shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 44px 90px -30px rgba(0, 0, 0, 0.9);
    --grad-ink: linear-gradient(120deg, #ffffff 0%, #d9cdea 50%, #e0a189 100%);
}

/* ---------------- reset ---------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.4s var(--ease-soft), color 0.4s var(--ease-soft);
}

body.is-locked {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
select,
input {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection {
    background: var(--brand-300);
    color: var(--ink);
}

/* ---------------- layout utilities ---------------- */
.container {
    width: min(1200px, 100% - 2.5rem);
    margin-inline: auto;
}

.section {
    padding: clamp(3.5rem, 8vw, 7rem) 0;
    position: relative;
    scroll-margin-top: calc(var(--header-h) + 8px);
}

.section-head {
    display: grid;
    gap: 0.9rem;
    margin-bottom: clamp(2rem, 4vw, 3.2rem);
    max-width: min(46rem, 100%);
}

.section-head.is-center {
    margin-inline: auto;
    text-align: center;
    justify-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-600);
}

[data-theme="dark"] .eyebrow {
    color: var(--brand-300);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-sub {
    margin: 0;
    color: var(--muted);
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    max-width: 58ch;
}

.serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.grad-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------------- buttons ---------------- */
.btn {
    --btn-bg: var(--brand);
    --btn-fg: #fff;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    border: 0;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
    will-change: transform;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -12px rgba(85, 74, 114, 0.6);
}

.btn:hover::after {
    transform: translateX(120%);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-brand {
    --btn-bg: var(--brand-700);
    background-image: var(--grad-brand);
    background-size: 160% 160%;
    background-position: 0% 50%;
    transition: background-position 0.6s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-brand:hover {
    background-position: 100% 50%;
}

.btn-wa {
    --btn-bg: #25d366;
    --btn-fg: #052e19;
}

.btn-wa:hover {
    box-shadow: 0 14px 30px -12px rgba(37, 211, 102, 0.65);
}

.btn-ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    --btn-bg: var(--surface);
    border-color: var(--brand-300);
    box-shadow: var(--shadow-sm);
}

.btn-lg {
    padding: 1rem 1.9rem;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    cursor: pointer;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.icon-btn:hover {
    transform: translateY(-2px);
    color: var(--brand-700);
    border-color: var(--brand-300);
}

/* ---------------- atmosphere ---------------- */
.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

[data-theme="dark"] .grain {
    opacity: 0.05;
    mix-blend-mode: screen;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 60;
    background: transparent;
}

.scroll-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--grad-brand);
    box-shadow: 0 0 12px rgba(180, 142, 196, 0.7);
    transition: width 0.1s linear;
}

/* ---------------- header ---------------- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: transparent;
    transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s var(--ease), border-color 0.35s var(--ease);
    border-bottom: 1px solid transparent;
}

.site-nav.is-stuck {
    height: 64px;
    background: var(--surface-glass);
    backdrop-filter: blur(16px) saturate(160%);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px -24px rgba(33, 28, 46, 0.5);
}

.nav-inner {
    width: min(1200px, 100% - 2.5rem);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 auto;
    background: var(--brand-100);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-mark span {
    font-weight: 900;
    color: var(--brand-700);
}

.brand-copy {
    display: grid;
    line-height: 1.15;
    min-width: 0;
}

.brand-copy strong {
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-copy small {
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.3rem;
    margin-inline: auto;
}

.nav-links a {
    position: relative;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-brand);
    transform: translateX(-50%);
    transition: width 0.3s var(--ease);
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a.is-active {
    color: var(--brand-700);
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
    width: 18px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.kbd {
    display: none;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.kbd:hover {
    border-color: var(--brand-300);
    color: var(--brand-700);
}

.kbd kbd {
    font: inherit;
    font-size: 0.68rem;
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    background: var(--brand-100);
    color: var(--brand-700);
    border: 1px solid var(--line);
}

.nav-wa {
    display: none;
}

.nav-burger {
    display: inline-grid;
}

.burger-lines {
    display: none;
}

.icon-btn i {
    font-size: 0.92rem;
    line-height: 1;
}

.kbd i {
    font-size: 0.78rem;
}

.nav-burger .burger-close {
    display: none;
}

.nav-burger[aria-expanded="true"] .burger-open {
    display: none;
}

.nav-burger[aria-expanded="true"] .burger-close {
    display: inline-block;
}

.step-icon i {
    font-size: 0.92rem;
}

.feature-peek i {
    font-size: 0.6rem;
}

.btn .fa-whatsapp {
    font-size: 1.12em;
}

.mobile-menu {
    position: fixed;
    inset: 64px 0 auto;
    z-index: 45;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem 1.5rem;
    display: grid;
    gap: 0.25rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mobile-menu a {
    padding: 0.85rem 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ink);
}

.mobile-menu a span {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mobile-menu .btn {
    margin-top: 1rem;
}

/* ---------------- hero ---------------- */
.hero {
    position: relative;
    min-height: min(100svh, 900px);
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + clamp(2rem, 6vw, 5rem)) 0 clamp(3rem, 6vw, 5rem);
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -10% -10% auto;
    height: 120%;
    background: radial-gradient(620px circle at var(--mx, 62%) var(--my, 26%), rgba(180, 142, 196, 0.28), transparent 62%);
    opacity: 0.9;
    z-index: -1;
    transition: opacity 0.4s var(--ease-soft);
    pointer-events: none;
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(620px circle at var(--mx, 62%) var(--my, 26%), rgba(180, 142, 196, 0.2), transparent 62%);
}

.aurora {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    will-change: transform;
}

.blob-1 {
    width: 46vw;
    height: 46vw;
    max-width: 620px;
    max-height: 620px;
    top: -12%;
    right: -6%;
    background: radial-gradient(circle at 30% 30%, #c8bce0, transparent 68%);
    animation: float-a 22s var(--ease-soft) infinite alternate;
}

.blob-2 {
    width: 38vw;
    height: 38vw;
    max-width: 520px;
    max-height: 520px;
    bottom: -18%;
    left: -8%;
    background: radial-gradient(circle at 60% 40%, #f3d3c4, transparent 68%);
    animation: float-b 26s var(--ease-soft) infinite alternate;
}

.blob-3 {
    width: 30vw;
    height: 30vw;
    max-width: 420px;
    max-height: 420px;
    top: 32%;
    left: 42%;
    background: radial-gradient(circle at 50% 50%, #d9ecdf, transparent 66%);
    opacity: 0.4;
    animation: float-c 30s var(--ease-soft) infinite alternate;
}

[data-theme="dark"] .blob-1 { opacity: 0.45; }
[data-theme="dark"] .blob-2 { opacity: 0.32; }
[data-theme="dark"] .blob-3 { opacity: 0.2; }

[data-theme="dark"] .hero::before {
    background: radial-gradient(680px circle at var(--mx, 62%) var(--my, 26%), rgba(180, 142, 196, 0.28), transparent 64%);
}

@keyframes float-a {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-6%, 8%, 0) scale(1.08); }
}

@keyframes float-b {
    from { transform: translate3d(0, 0, 0) scale(1.05); }
    to { transform: translate3d(8%, -6%, 0) scale(0.95); }
}

@keyframes float-c {
    from { transform: translate3d(0, 0, 0) scale(0.95); }
    to { transform: translate3d(-10%, -8%, 0) scale(1.1); }
}

.hero-grid {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
}

.hero-copy {
    max-width: 40rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.85rem 0.42rem 0.5rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
}

.hero-badge .dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ok-soft);
    color: var(--ok);
    font-size: 0.7rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6.2vw, 4.4rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
    margin-bottom: 1.4rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line > span {
    display: block;
    transform: translateY(110%);
    animation: rise 1s var(--ease) forwards;
}

.hero-title .line:nth-child(1) > span { animation-delay: 0.05s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.16s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.27s; }

@keyframes rise {
    to { transform: translateY(0); }
}

.hero-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
    background: linear-gradient(112deg, #6f6390 0%, #8b7fa8 46%, #c9846a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-theme="dark"] .hero-title em {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    color: var(--ink-soft);
    max-width: 46ch;
    margin: 0 0 2rem;
    opacity: 0;
    animation: fade-up 0.9s var(--ease) 0.42s forwards;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    opacity: 0;
    animation: fade-up 0.9s var(--ease) 0.54s forwards;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.4rem, 4vw, 3rem);
    margin: 2.6rem 0 0;
    padding: 0;
    list-style: none;
    opacity: 0;
    animation: fade-up 0.9s var(--ease) 0.66s forwards;
}

.hero-stats li {
    display: grid;
    gap: 0.1rem;
}

.hero-stats strong {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.hero-stats span {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.hero-stats li + li {
    padding-left: clamp(1.4rem, 4vw, 3rem);
    border-left: 1px solid var(--line);
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

/* floating product cluster */
.hero-visual {
    position: relative;
    display: none;
    height: clamp(420px, 46vw, 540px);
}

.float-card {
    position: absolute;
    width: 44%;
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.float-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.float-card .fc-meta {
    padding: 0.65rem 0.8rem 0.75rem;
    display: grid;
    gap: 0.1rem;
}

.float-card .fc-meta strong {
    font-size: 0.78rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.float-card .fc-meta span {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--brand-700);
}

[data-theme="dark"] .float-card .fc-meta span {
    color: var(--brand-300);
}

.float-card:nth-child(1) {
    top: 0;
    left: 0;
    width: 42%;
    --depth: 26;
    animation: hover-a 9s ease-in-out infinite;
}

.float-card:nth-child(2) {
    top: 4%;
    right: 0;
    width: 36%;
    --depth: 40;
    animation: hover-b 11s ease-in-out infinite;
}

.float-card:nth-child(3) {
    bottom: 0;
    left: 26%;
    width: 34%;
    --depth: 16;
    animation: hover-a 13s ease-in-out infinite reverse;
}

@keyframes hover-a {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -14px; }
}

@keyframes hover-b {
    0%, 100% { translate: 0 -8px; }
    50% { translate: 0 10px; }
}

.hero-orbit {
    position: absolute;
    inset: 8% 6% 10%;
    border: 1px dashed var(--line-strong);
    border-radius: 50%;
    animation: spin 60s linear infinite;
    pointer-events: none;
}

.hero-orbit::after {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 5px rgba(139, 127, 168, 0.18);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.scroll-hint i {
    display: block;
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, var(--muted), transparent);
    animation: pip 2s var(--ease-soft) infinite;
}

@keyframes pip {
    0%, 100% { opacity: 0.2; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---------------- marquee ---------------- */
.marquee {
    position: relative;
    padding: 1.1rem 0;
    border-block: 1px solid var(--line);
    background: var(--bg-alt);
    overflow: hidden;
    display: flex;
    gap: 0;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    gap: 2.5rem;
    padding-right: 2.5rem;
    flex: 0 0 auto;
    animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.marquee-track span::after {
    content: "✦";
    color: var(--brand-400);
    font-size: 0.8rem;
}

@keyframes marquee {
    to { transform: translateX(-100%); }
}

/* ---------------- featured ---------------- */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.feature {
    position: relative;
    display: block;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transform-style: preserve-3d;
    transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.feature:hover {
    box-shadow: var(--shadow);
    border-color: var(--brand-300);
}

.feature-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--brand-100);
}

.feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}

.feature:hover .feature-media img {
    transform: scale(1.06);
}

.feature-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(20, 15, 30, 0.72) 100%);
    opacity: 0.85;
    transition: opacity 0.4s var(--ease);
}

.feature:hover .feature-media::after {
    opacity: 1;
}

.feature-tag {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 2;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    color: var(--brand-700);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .feature-tag {
    color: var(--brand-300);
}

.feature-body {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 0.9rem;
    color: #fff;
    display: grid;
    gap: 0.35rem;
}

.feature-body h3 {
    font-size: 0.98rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.feature-price {
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
}

.feature-peek {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--plum);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.feature:hover .feature-peek,
.feature:focus-visible .feature-peek {
    opacity: 1;
    transform: none;
}

/* ---------------- catalog ---------------- */
.catalog {
    background: var(--bg-alt);
    border-block: 1px solid var(--line);
}

.catalog-top {
    display: grid;
    gap: 1.2rem;
    margin-bottom: 1.4rem;
}

.toolbar {
    display: grid;
    gap: 0.8rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 0.45rem 0.45rem 1rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-box:focus-within {
    border-color: var(--brand-300);
    box-shadow: 0 0 0 4px rgba(139, 127, 168, 0.12);
}

.search-box > i {
    flex: 0 0 auto;
    color: var(--brand);
    font-size: 0.9rem;
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.92rem;
    padding: 0.45rem 0;
}

.search-box input::placeholder {
    color: var(--muted);
}

.search-clear {
    display: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    background: var(--brand-100);
    color: var(--brand-700);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    place-items: center;
}

.search-clear.is-visible {
    display: grid;
}

.filters {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}

.filters::-webkit-scrollbar {
    display: none;
}

.chip {
    flex: 0 0 auto;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
}

.chip:hover {
    border-color: var(--brand-300);
    color: var(--brand-700);
    transform: translateY(-1px);
}

.chip.is-active {
    background: var(--plum);
    border-color: var(--plum);
    color: #fff;
}

[data-theme="dark"] .chip.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #14111d;
}

.chip em {
    font-style: normal;
    opacity: 0.55;
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    justify-content: space-between;
}

.result-count {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}

.result-count strong {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.select-wrap select {
    appearance: none;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    padding: 0.45rem 2rem 0.45rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.select-wrap::after {
    content: "";
    position: absolute;
    right: 0.85rem;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.6px solid var(--muted);
    border-bottom: 1.6px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.product {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(14px);
    animation: card-in 0.55s var(--ease) forwards;
    transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.product:hover {
    box-shadow: var(--shadow);
    border-color: var(--brand-300);
    transform: translateY(-3px);
}

@keyframes card-in {
    to { opacity: 1; transform: none; }
}

.product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--brand-100);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.product:hover .product-media img {
    transform: scale(1.05);
}

.product-badges {
    position: absolute;
    inset: 0.5rem 0.5rem auto;
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    z-index: 2;
}

.tag {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.24rem 0.5rem;
    border-radius: 999px;
    background: var(--surface-glass);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--brand-700);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-badges .tag:first-child {
    max-width: 62%;
}

[data-theme="dark"] .tag {
    color: var(--brand-300);
}

.tag-stock {
    flex: 0 0 auto;
    background: var(--ok-soft);
    border-color: transparent;
    color: var(--ok);
}

.tag-stock.low {
    background: var(--warn-soft);
    color: var(--warn);
}

.tag-stock.out {
    background: #f3e3e3;
    color: #97322f;
}

.product-quick {
    position: absolute;
    inset: auto 0.5rem 0.5rem;
    z-index: 2;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.product:hover .product-quick,
.product:focus-within .product-quick {
    opacity: 1;
    transform: none;
}

.product-quick button {
    border: 0;
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.95);
    color: var(--plum);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s var(--ease);
}

.product-quick button:hover {
    transform: scale(1.05);
}

.product-body {
    padding: 0.7rem 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.product-cat {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--brand);
}

.product-name {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
}

.product-price {
    margin-top: auto;
    padding-top: 0.35rem;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.product-price small {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
}

.grid-foot {
    display: flex;
    justify-content: center;
    padding-top: 1.8rem;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-lg);
    background: var(--surface);
}

.empty-state strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.empty-state p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

/* ---------------- steps ---------------- */
.steps {
    display: grid;
    gap: 1rem;
    margin-top: 2.5rem;
    position: relative;
}

.step {
    position: relative;
    padding: 1.4rem;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 0.5rem;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--brand-300);
}

.step-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--brand-300);
    font-weight: 400;
}

.step h3 {
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.step p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--brand-100);
    color: var(--brand-700);
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
}

/* ---------------- info split ---------------- */
.split {
    display: grid;
    gap: 1rem;
}

.info-card {
    position: relative;
    padding: clamp(1.4rem, 3vw, 2rem);
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.info-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.info-card ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.info-card li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-size: 0.86rem;
    color: var(--ink-soft);
}

.info-card li::before {
    content: "✓";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ok-soft);
    color: var(--ok);
    font-size: 0.65rem;
    font-weight: 900;
    margin-top: 0.15rem;
}

.info-card.accent {
    background: var(--grad-brand);
    border: 0;
    color: #fff;
}

.info-card.accent h3,
.info-card.accent p,
.info-card.accent li {
    color: #fff;
}

.info-card.accent p,
.info-card.accent li {
    opacity: 0.94;
}

.info-card.accent li::before {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.info-card .big-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.pay-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.pay-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.74rem;
    font-weight: 700;
}

/* ---------------- faq ---------------- */
.faq {
    display: grid;
    gap: 0.6rem;
    max-width: 52rem;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq-item.is-open {
    border-color: var(--brand-300);
    box-shadow: var(--shadow-sm);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.2rem;
    background: none;
    border: 0;
    text-align: left;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
}

.faq-q:hover {
    color: var(--brand-700);
}

[data-theme="dark"] .faq-q:hover {
    color: var(--brand-300);
}

.faq-q i {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand-100);
    color: var(--brand-700);
    position: relative;
    transition: transform 0.35s var(--ease), background 0.3s var(--ease);
}

.faq-q i::before,
.faq-q i::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 2px;
}

.faq-q i::before {
    width: 10px;
    height: 1.6px;
}

.faq-q i::after {
    width: 1.6px;
    height: 10px;
    transition: transform 0.35s var(--ease), opacity 0.25s;
}

.faq-item.is-open .faq-q i {
    transform: rotate(180deg);
    background: var(--brand);
    color: #fff;
}

.faq-item.is-open .faq-q i::after {
    opacity: 0;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
}

.faq-a p {
    margin: 0;
    padding: 0 1.2rem 1.2rem;
    font-size: 0.89rem;
    color: var(--muted);
    max-width: 62ch;
}

/* ---------------- CTA band ---------------- */
.cta-band {
    position: relative;
    margin: clamp(2rem, 5vw, 4rem) 0 0;
    padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.4rem, 4vw, 3.5rem);
    border-radius: clamp(24px, 4vw, 44px);
    background: var(--plum);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 1.1rem;
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(46% 46% at 18% 22%, rgba(180, 142, 196, 0.55), transparent 60%),
        radial-gradient(40% 40% at 82% 76%, rgba(224, 161, 137, 0.42), transparent 62%);
    z-index: -1;
    animation: drift 18s var(--ease-soft) infinite alternate;
}

@keyframes drift {
    from { transform: translate3d(-2%, -1%, 0) scale(1); }
    to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.cta-band .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.cta-band h2 {
    font-size: clamp(1.9rem, 4.6vw, 3.2rem);
    max-width: 22ch;
    letter-spacing: -0.04em;
}

.cta-band h2 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.cta-band p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    max-width: 48ch;
    font-size: 0.98rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
    margin-top: 0.4rem;
}

.cta-band .btn-ghost {
    --btn-fg: #fff;
    border-color: rgba(255, 255, 255, 0.32);
}

.cta-band .btn-ghost:hover {
    --btn-bg: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ---------------- footer ---------------- */
.site-footer {
    padding: clamp(2.5rem, 6vw, 4rem) 0 2.5rem;
    margin-top: clamp(2.5rem, 6vw, 4rem);
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    gap: 1.8rem;
}

.footer-brand {
    display: grid;
    gap: 0.8rem;
    max-width: 32ch;
}

.footer-brand p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.footer-col a,
.footer-col span {
    display: block;
    padding: 0.28rem 0;
    font-size: 0.85rem;
    color: var(--muted);
    transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-col a:hover {
    color: var(--brand-700);
    transform: translateX(2px);
}

[data-theme="dark"] .footer-col a:hover {
    color: var(--brand-300);
}

.footer-bottom {
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: space-between;
    font-size: 0.76rem;
}

/* ---------------- quick view dialog ---------------- */
.quick-view {
    width: min(920px, calc(100% - 1.6rem));
    max-height: min(88vh, 720px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: clamp(20px, 3vw, 28px);
    background: var(--surface);
    color: var(--ink);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.quick-view::backdrop {
    background: rgba(18, 14, 26, 0.55);
    backdrop-filter: blur(6px);
}

.quick-view[open] {
    animation: dialog-in 0.4s var(--ease);
}

@keyframes dialog-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

.qv-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface-glass);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    color: var(--ink);
}

.qv-close:hover {
    background: var(--brand-100);
}

.qv-body {
    display: grid;
    max-height: inherit;
    overflow: auto;
}

.qv-gallery {
    position: relative;
    background: var(--brand-100);
}

.qv-main {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    display: block;
}

.qv-thumbs {
    display: flex;
    gap: 0.4rem;
    padding: 0.55rem;
    overflow-x: auto;
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.qv-thumbs button {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 9px;
    overflow: hidden;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.qv-thumbs button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qv-thumbs button.is-active {
    border-color: var(--brand);
}

.qv-thumbs button:hover {
    transform: translateY(-2px);
}

.qv-info {
    padding: 1.3rem 1.3rem 1.6rem;
    display: grid;
    align-content: start;
    gap: 0.6rem;
}

.qv-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.qv-pill {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: var(--brand-100);
    color: var(--brand-700);
}

[data-theme="dark"] .qv-pill {
    color: var(--brand-300);
}

.qv-pill.ok {
    background: var(--ok-soft);
    color: var(--ok);
}

.qv-pill.low {
    background: var(--warn-soft);
    color: var(--warn);
}

.qv-info h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.qv-price {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.qv-desc {
    font-size: 0.88rem;
    color: var(--muted);
    white-space: pre-line;
    max-height: 9rem;
    overflow: auto;
    padding-right: 0.3rem;
}

.qv-field {
    display: grid;
    gap: 0.3rem;
}

.qv-field label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.qv-field select {
    appearance: none;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-alt);
    padding: 0.65rem 0.8rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.qv-actions {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.qv-note {
    font-size: 0.72rem;
    color: var(--muted);
    text-align: center;
}

/* ---------------- cart ---------------- */
.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -3px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brand-700);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1;
    display: grid;
    place-items: center;
    border: 2px solid var(--bg);
    transform: scale(0);
    transition: transform 0.3s var(--ease);
}

[data-theme="dark"] .cart-count {
    background: var(--brand-400);
    color: #14111d;
}

.cart-count.is-visible {
    transform: scale(1);
}

.cart-count.is-bump {
    animation: badge-bump 0.45s var(--ease);
}

@keyframes badge-bump {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.35); }
}

.qa-add {
    width: 34px;
    height: 36px;
    padding: 0 !important;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand-700) !important;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
}

.qa-add:hover {
    background: var(--brand) !important;
    transform: scale(1.08);
}

.product-quick {
    gap: 0.4rem;
}

/* drawer */
.cart-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    width: min(430px, 100%);
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    overflow: hidden;
}

.cart-drawer[open] {
    display: flex;
    animation: drawer-in 0.4s var(--ease);
}

.cart-drawer::backdrop {
    background: rgba(18, 14, 26, 0.55);
    backdrop-filter: blur(5px);
}

@keyframes drawer-in {
    from { transform: translateX(102%); }
    to { transform: none; }
}

.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.2rem 0.9rem;
    border-bottom: 1px solid var(--line);
    flex: 0 0 auto;
}

.cart-head h2 {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.cart-head h2 span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    margin-left: 0.4rem;
}

.cart-close {
    position: static;
    width: 32px;
    height: 32px;
}

.cart-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.2rem;
    display: grid;
    align-content: start;
    gap: 0.8rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 62px 1fr auto;
    gap: 0.75rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cart-item img {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--brand-100);
}

.ci-main {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.ci-name {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ci-opt {
    margin: 0;
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
}

.ci-qty {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.ci-qty button {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: var(--bg-alt);
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.ci-qty button:hover {
    background: var(--brand-100);
    border-color: var(--brand-300);
}

.ci-qty span {
    min-width: 1.4rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ci-qty button.ci-remove {
    width: auto;
    margin-left: 0.2rem;
    padding: 0 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--muted);
    background: none;
    border: 0;
    text-decoration: underline;
}

.ci-qty button.ci-remove:hover {
    color: #a63d3d;
    background: none;
}

.ci-price {
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cart-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted);
}

.cart-empty strong {
    display: block;
    color: var(--ink);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.cart-empty p {
    margin: 0 0 1rem;
    font-size: 0.85rem;
}

.cart-foot {
    border-top: 1px solid var(--line);
    padding: 0.9rem 1.2rem calc(1.1rem + env(safe-area-inset-bottom));
    display: grid;
    gap: 0.5rem;
    background: var(--surface);
    flex: 0 0 auto;
}

.cart-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 700;
}

.cart-total strong {
    font-size: 1.15rem;
    color: var(--ink);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.cart-note {
    margin: 0 0 0.2rem;
    font-size: 0.7rem;
    color: var(--muted);
    text-align: center;
}

.cart-clear {
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.3rem;
    justify-self: center;
    text-decoration: underline;
}

.cart-clear:hover {
    color: var(--ink);
}

/* toast */
.toast-wrap {
    position: fixed;
    left: 50%;
    bottom: 1.1rem;
    transform: translateX(-50%);
    z-index: 70;
    display: grid;
    gap: 0.5rem;
    width: min(430px, calc(100% - 2rem));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    background: var(--plum);
    color: #fff;
    box-shadow: var(--shadow);
    font-size: 0.83rem;
    font-weight: 600;
    pointer-events: auto;
    animation: toast-in 0.35s var(--ease);
}

.toast.is-out {
    animation: toast-out 0.3s var(--ease) forwards;
}

.toast svg,
.toast i {
    flex: 0 0 auto;
    color: #7ee2a8;
}

.toast span {
    flex: 1;
}

.toast button {
    border: 0;
    background: none;
    color: #cdb9f0;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
    white-space: nowrap;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateY(8px); }
}

@media (hover: none) {
    .product-quick {
        opacity: 1;
        transform: none;
    }

    .feature-peek {
        opacity: 1;
        transform: none;
    }
}

/* small screens are touch-first: keep the add-to-cart action always reachable */
@media (max-width: 640px) {
    .product-quick {
        opacity: 1;
        transform: none;
        inset: auto 0.4rem 0.4rem;
        gap: 0.3rem;
    }

    .product-quick button:not(.qa-add) {
        font-size: 0.64rem;
        padding: 0.36rem 0.55rem;
    }

    .qa-add {
        width: 30px;
        height: 30px;
        font-size: 0.68rem;
    }
}

/* ---------------- reveal ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--d, 0) * 80ms);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* ---------------- responsive ---------------- */
@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.9rem;
    }

    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 860px) {
    .nav-links,
    .kbd,
    .nav-wa {
        display: inline-flex;
    }

    .nav-burger {
        display: none;
    }

    .featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .catalog-top {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .split {
        grid-template-columns: 1.15fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1.6fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }

    .hero-visual {
        display: block;
    }

    .scroll-hint {
        display: inline-flex;
    }

    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }

    .featured-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .feature {
        grid-column: span 2;
    }

    .feature.is-wide {
        grid-column: span 3;
    }

    .feature.is-wide .feature-media {
        aspect-ratio: 16 / 13;
    }

    .qv-body {
        grid-template-columns: 0.95fr 1fr;
        overflow: hidden;
    }

    .qv-gallery {
        display: grid;
        grid-template-rows: 1fr auto;
        height: 100%;
    }

    .qv-main {
        height: 100%;
        aspect-ratio: auto;
    }

    .qv-info {
        overflow: auto;
        max-height: min(88vh, 720px);
    }
}

@media (min-width: 1200px) {
    .featured-grid {
        gap: 1.1rem;
    }
}

@media (max-width: 520px) {
    .hero-cta {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.1rem 0;
        margin-top: 2.2rem;
    }

    .hero-stats li + li {
        padding-left: 0;
        border-left: 0;
    }

    .hero-stats li:nth-child(even) {
        padding-left: 1.1rem;
        border-left: 1px solid var(--line);
    }

    .product-price {
        flex-wrap: wrap;
    }

    .product-price small {
        flex: 1 1 100%;
        margin-top: -0.1rem;
    }

    .product-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .hero-stats li + li {
        padding-left: 1rem;
    }

    .brand-copy small {
        display: none;
    }
}

/* ---------------- motion preferences ---------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .hero-title .line > span,
    .hero-sub,
    .hero-cta,
    .hero-stats {
        transform: none;
        opacity: 1;
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
