/* ============================================================
   FastBuy — Design System (Light mode, vivid electric blue)
   White canvas, black text, single confident accent
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
    /* Brand accent — electric blue */
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: #dbeafe;
    --accent-border: #93c5fd;

    /* Surfaces — light, depth through shade variation */
    --base: #ffffff;          /* page background — pure white */
    --surface: #f8f8f8;       /* cards, containers, subtle surface */
    --surface-2: #f1f1f1;     /* buttons, interactive surfaces */
    --surface-3: #ebebeb;     /* elevated card surface, hover */
    --surface-4: #e5e5e5;     /* alternate elevated surface */

    /* Text */
    --text: #0a0a0a;          /* primary text — near black */
    --text-secondary: #6b6b6b;/* muted labels, inactive nav */
    --text-tertiary: #525252; /* slightly darker secondary */
    --text-bright: #000000;   /* pure black emphasis */

    /* Semantic */
    --negative: #dc2626;      /* error states — red */
    --warning: #d97706;       /* warning states — amber */
    --announcement: #2563eb;  /* info states — blue */

    /* Borders */
    --border: #e5e5e5;        /* subtle borders */
    --border-strong: #d4d4d4; /* stronger borders */
    --border-light: #d4d4d4;  /* outlined button borders */
    --separator: #e5e5e5;     /* divider lines */

    /* Shadows — subtle on light backgrounds */
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-inset: inset 0 0 0 1px var(--border-strong);

    /* Typography */
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', helvetica, arial, sans-serif;
    --font-title: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', helvetica, arial, sans-serif;

    /* Type scale */
    --fs-micro: 10px;
    --fs-xs: 11px;
    --fs-sm: 12px;
    --fs-base: 14px;
    --fs-md: 16px;
    --fs-lg: 18px;
    --fs-xl: 24px;
    --fs-2xl: 32px;
    --fs-3xl: 48px;
    --fs-4xl: 64px;

    /* Weights */
    --w-regular: 400;
    --w-medium: 500;
    --w-semibold: 600;
    --w-bold: 700;

    /* Radii */
    --r-minimal: 2px;
    --r-subtle: 4px;
    --r-standard: 6px;
    --r-comfortable: 8px;
    --r-medium: 12px;
    --r-large: 16px;
    --r-pill: 9999px;
    --r-circle: 50%;

    /* Spacing — 8px base */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;
    --sp-20: 80px;

    /* Layout */
    --container: 1280px;
    --gutter: 24px;
    --nav-h: 64px;
    --header-total: 64px;

    /* Motion */
    --dur-fast: 0.16s;
    --dur: 0.25s;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    /* Spring easings — overshoot for tactile feedback */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring-soft: cubic-bezier(0.175, 0.885, 0.32, 1.075);
    --ease-spring-strong: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --dur-spring: 0.4s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    font-family: var(--font-ui);
    font-size: var(--fs-md);
    font-weight: var(--w-regular);
    line-height: 1.5;
    color: var(--text);
    background: var(--base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.section { padding: var(--sp-20) 0; }
.section--tight { padding: var(--sp-12) 0; }
.section--glow { padding: var(--sp-16) 0; }
.between { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); }
.hide-mobile { display: inherit; }
.show-mobile { display: none; }
.muted { color: var(--text-secondary); }
.small { font-size: var(--fs-base); }
.lead { font-size: var(--fs-lg); color: var(--text-secondary); line-height: 1.5; }
.eyebrow {
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: var(--w-bold);
}

/* ---------- Typography ---------- */
.h1 { font-family: var(--font-title); font-size: var(--fs-2xl); font-weight: var(--w-bold); line-height: 1.2; letter-spacing: -0.02em; }
.h2 { font-family: var(--font-title); font-size: var(--fs-xl); font-weight: var(--w-bold); line-height: 1.3; letter-spacing: -0.01em; }
.h3 { font-family: var(--font-ui); font-size: var(--fs-lg); font-weight: var(--w-semibold); line-height: 1.3; }
.display { font-family: var(--font-title); font-size: var(--fs-3xl); font-weight: var(--w-bold); line-height: 1.1; letter-spacing: -0.03em; }
@media (max-width: 760px) {
    .display { font-size: var(--fs-2xl); }
    .h1 { font-size: var(--fs-xl); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 10px 18px;
    background: var(--text);
    color: var(--base);
    font-family: var(--font-ui);
    font-size: var(--fs-base);
    font-weight: var(--w-semibold);
    line-height: 1;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    transition: background var(--dur-fast) var(--ease), transform var(--dur-spring) var(--ease-spring), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}
.btn:hover { background: #2a2a2a; transform: scale(1.03); }
.btn:active { transform: scale(0.96); transition: transform 0.08s var(--ease); }
.btn .arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Primary accent CTA */
.btn--primary {
    background: var(--accent);
    color: #ffffff;
    font-weight: var(--w-bold);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}
.btn--primary:hover { background: var(--accent-hover); transform: scale(1.03); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.btn--primary:active { transform: scale(0.96); }

/* Outlined pill */
.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn--ghost:hover { border-color: var(--text); background: transparent; transform: scale(1.03); }

/* Light pill (on dark contexts — rare in light mode) */
.btn--light {
    background: var(--base);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn--light:hover { background: var(--surface); }

/* Sizes */
.btn--sm { padding: 6px 12px; font-size: var(--fs-sm); }
.btn--lg { padding: 14px 28px; font-size: var(--fs-base); }
.btn--block { display: flex; width: 100%; }

/* Loading state — inline spinner */
.btn.is-loading { pointer-events: none; color: transparent !important; }
.btn.is-loading .arrow { opacity: 0; }
.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}
.btn--ghost.is-loading::after { border-color: rgba(10, 10, 10, 0.2); border-top-color: var(--text); }
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ---------- Badge / Pill ---------- */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 4px 12px;
    background: var(--surface-2);
    color: var(--text);
    font-size: var(--fs-sm);
    font-weight: var(--w-bold);
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
}
.status-dot {
    width: 8px; height: 8px;
    border-radius: var(--r-circle);
    background: var(--accent);
    box-shadow: 0 0 6px rgba(37, 99, 235, 0.4);
}

/* ---------- Cards ---------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--base);
    border-radius: var(--r-comfortable);
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--border);
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-spring) var(--ease-spring), transform var(--dur-spring) var(--ease-spring);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-heavy); transform: translateY(-4px); }
.card__top {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--r-comfortable) var(--r-comfortable) 0 0;
}
.card__quickadd {
    margin-top: var(--sp-2);
}
.card__media {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--surface);
    display: block;
}
.card__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.03); }
.card__media .alt {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 0.4s var(--ease);
}
.card:hover .card__media .alt { opacity: 1; }
.card__badge {
    position: absolute; top: var(--sp-2); left: var(--sp-2);
    background: var(--accent); color: #fff;
    font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em;
    padding: 4px 8px; font-weight: var(--w-bold);
    z-index: 2;
    border-radius: var(--r-minimal);
}
.card__badge--sale { background: var(--negative); color: #fff; }
.card__badge--new { background: var(--text); color: #fff; }
.card__wishlist {
    position: absolute; top: var(--sp-2); right: var(--sp-2); z-index: 2;
    width: 32px; height: 32px;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(6px);
    border-radius: var(--r-circle);
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    opacity: 0; transform: translateY(-4px);
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), background var(--dur-fast), color var(--dur-fast);
    cursor: pointer;
    border: 1px solid var(--border);
}
.card:hover .card__wishlist { opacity: 1; transform: translateY(0); }
.card__wishlist:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.card__wishlist.is-active { opacity: 1; background: var(--accent); color: #fff; border-color: var(--accent); }
.card__body { padding: var(--sp-3); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__cat { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); font-weight: var(--w-bold); }
.card__name { font-size: var(--fs-md); font-weight: var(--w-semibold); line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); }
.card__name:hover { text-decoration: underline; }
.card__price { display: flex; gap: var(--sp-2); align-items: baseline; margin-top: auto; padding-top: var(--sp-1); font-size: var(--fs-base); font-weight: var(--w-bold); }
.card__price .was { color: var(--text-secondary); text-decoration: line-through; }
.card__price .now { color: var(--text); }
.card__price .now--sale { color: var(--negative); }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.field__label { font-size: var(--fs-base); font-weight: var(--w-semibold); color: var(--text); transition: color var(--dur-fast) var(--ease); }
.field:focus-within .field__label { color: var(--accent); }
.field__input, .field__select, .field__textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--base);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-subtle);
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-spring) var(--ease-spring);
    font-size: var(--fs-md);
}
.field__input:focus, .field__select:focus, .field__textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.field__textarea { min-height: 96px; resize: vertical; }
.field__select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ---------- Links ---------- */
.link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: var(--fs-base);
    font-weight: var(--w-semibold);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}
.link:hover { color: var(--accent); }
.link .arrow { transition: transform var(--dur-fast) var(--ease); }
.link:hover .arrow { transform: translateX(2px); }

/* ---------- Crumb ---------- */
.crumb { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-secondary); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.crumb a:hover { color: var(--text); text-decoration: underline; }
.crumb .sep { color: var(--border-strong); }
.crumb .current { color: var(--text); }

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.header--scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--border-strong);
}
.header__inner {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: var(--sp-6);
}
.header__brand {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.header__brand-name {
    font-family: var(--font-title);
    font-weight: var(--w-bold);
    font-size: var(--fs-lg);
    letter-spacing: -0.02em;
    color: var(--text);
}
.header__brand-dot {
    width: 6px; height: 6px;
    border-radius: var(--r-circle);
    background: var(--accent);
    display: inline-block;
}
.header__nav {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    flex: 1;
    justify-content: center;
}
.header__link {
    font-size: var(--fs-base);
    font-weight: var(--w-medium);
    color: var(--text-secondary);
    position: relative;
    padding: var(--sp-1) 0;
    transition: color var(--dur-fast) var(--ease);
    white-space: nowrap;
}
.header__link:hover { color: var(--text); }
.header__link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--dur-fast) var(--ease);
}
.header__link:hover::after,
.header__link--active::after { transform: scaleX(1); transform-origin: left; }
.header__link--active { color: var(--text); font-weight: var(--w-bold); }

.header__tools {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    flex-shrink: 0;
}
.header__tool {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 8px 12px;
    color: var(--text-secondary);
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.header__tool:hover { color: var(--text); background: var(--surface-2); }
.header__tool-label { font-size: var(--fs-base); font-weight: var(--w-semibold); }

/* Sign-in link */
.header__utility-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: var(--fs-base);
    font-weight: var(--w-semibold);
    border-radius: var(--r-pill);
    transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.header__utility-link:hover { color: var(--text); background: var(--surface-2); }

/* User dropdown (logged in) */
.header__user { position: relative; }
.header__user-trigger {
    display: flex; align-items: center; gap: var(--sp-2);
    padding: 6px 12px 6px 6px;
    background: var(--surface-2);
    border-radius: var(--r-pill);
    color: var(--text);
    font-size: var(--fs-base);
    font-weight: var(--w-semibold);
    transition: background var(--dur-fast) var(--ease);
}
.header__user-trigger:hover { background: var(--surface-3); }
.header__user-trigger .ti { font-size: 16px; color: var(--text-secondary); transition: transform var(--dur-fast) var(--ease); }
.header__user-trigger[aria-expanded="true"] .ti { transform: rotate(180deg); }
.header__user-avatar {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    background: var(--accent); color: #fff;
    font-size: 12px; font-weight: var(--w-bold);
    border-radius: 50%;
    flex-shrink: 0;
}
.header__user-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header__user-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 220px;
    background: var(--base);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    padding: 6px;
    z-index: 100;
    animation: headerDropdown 0.15s var(--ease);
}
.header__user-dropdown[hidden] { display: none; }
@keyframes headerDropdown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.header__user-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    width: 100%;
    color: var(--text);
    font-size: var(--fs-base);
    font-weight: var(--w-medium);
    border-radius: 8px;
    text-align: left;
    background: none;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.header__user-link .ti { font-size: 18px; color: var(--text-secondary); }
.header__user-link:hover { background: var(--surface-2); }
.header__user-link--danger { color: var(--negative); }
.header__user-link--danger .ti { color: var(--negative); }
.header__user-link--danger:hover { background: rgba(220, 38, 38, 0.08); }
.header__user-divider { height: 1px; background: var(--border); margin: 6px 4px; }

/* Mobile menu user section */
.mobile-menu__user {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
}
.mobile-menu__user-avatar {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: var(--accent); color: #fff;
    font-size: 16px; font-weight: var(--w-bold);
    border-radius: 50%;
    flex-shrink: 0;
}
.mobile-menu__user-name { font-weight: var(--w-semibold); font-size: var(--fs-md); color: var(--text); }
.mobile-menu__signout {
    display: block; width: 100%;
    padding: 12px 0;
    text-align: left;
    color: var(--negative);
    font-size: var(--fs-md);
    font-weight: var(--w-semibold);
    background: none; border: none; cursor: pointer;
}

/* Bag button — prominent */
.header__bag {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 8px 16px;
    background: var(--text);
    color: var(--base);
    font-size: var(--fs-base);
    font-weight: var(--w-bold);
    border-radius: var(--r-pill);
    transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.header__bag:hover { transform: scale(1.04); background: #2a2a2a; }

.header__badge {
    position: absolute;
    top: -2px; right: -2px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: var(--w-bold);
    min-width: 18px; height: 18px;
    border-radius: var(--r-pill);
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--base);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.header__badge--blue { background: var(--accent); }

.header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px; height: 32px;
    background: transparent;
    padding: 0 6px;
    margin-left: var(--sp-1);
}
.header__burger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
    position: fixed; inset: 0; z-index: 200;
    background: var(--base);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    padding: var(--sp-6);
    overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-8); }
.mobile-menu__links { display: flex; flex-direction: column; gap: var(--sp-4); }
.mobile-menu__links a { font-size: var(--fs-xl); font-weight: var(--w-bold); color: var(--text); padding: var(--sp-1) 0; }
.mobile-menu__links a:hover { color: var(--accent); }
.mobile-menu__divider { height: 1px; background: var(--border); margin: var(--sp-2) 0; }
.mobile-menu__close { color: var(--text); padding: var(--sp-1); border-radius: var(--r-circle); }
.mobile-menu__close:hover { background: var(--surface-2); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--text); color: var(--base); padding: var(--sp-3) 0; }
.marquee__track { display: flex; gap: var(--sp-6); white-space: nowrap; animation: marqueeScroll 30s linear infinite; padding-left: 100%; }
.marquee__track span { font-size: var(--fs-base); font-weight: var(--w-semibold); color: var(--base); }
.marquee__track .dot { color: var(--accent); margin: 0 var(--sp-2); }
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* ---------- Toast ---------- */
.toast {
    position: fixed; bottom: var(--sp-6); left: 50%;
    transform: translateX(-50%) translateY(140%) scale(0.9);
    background: var(--text);
    color: var(--base);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--r-comfortable);
    box-shadow: var(--shadow-heavy);
    z-index: 300;
    transition: transform var(--dur-spring) var(--ease-spring), opacity var(--dur) var(--ease);
    font-size: var(--fs-base);
    font-weight: var(--w-semibold);
    max-width: 90vw;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.toast.show { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
.toast.hide { transform: translateX(-50%) translateY(20px) scale(0.95); opacity: 0; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.toast--success { border-left: 4px solid var(--accent); }
.toast--error { border-left: 4px solid var(--negative); }
.toast__icon { font-size: 18px; color: var(--accent); }
.toast--error .toast__icon { color: var(--negative); }
#toast-msg { display: block; }

/* ---------- Skeleton shimmer ---------- */
.skeleton {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: var(--r-subtle);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card { display: flex; flex-direction: column; gap: var(--sp-2); }
.skeleton-card__media { aspect-ratio: 1/1; border-radius: var(--r-comfortable); border: 1px solid var(--border); }
.skeleton-card__line { height: 12px; border-radius: var(--r-pill); }
.skeleton-card__line--short { width: 40%; }
.skeleton-card__line--mid { width: 70%; }
.skeleton-card__line--price { width: 30%; height: 14px; margin-top: var(--sp-1); }
.skeleton-line { height: 14px; border-radius: var(--r-pill); margin-bottom: var(--sp-2); }
.skeleton-line--w30 { width: 30%; }
.skeleton-line--w50 { width: 50%; }
.skeleton-line--w70 { width: 70%; }
.skeleton-line--w100 { width: 100%; }

/* Card image skeleton — sits behind the image, hidden when image loads */
.card__skeleton {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.card__media img[data-card-img] {
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.card__media img[data-card-img].is-loaded {
    opacity: 1;
}
.card__media img[data-card-img].is-loaded + .card__skeleton,
.card__media .is-loaded ~ .card__skeleton {
    display: none;
}

/* ---------- Page loader (curtain split reveal) ---------- */
.page-loader {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.page-loader__panel {
    position: absolute; top: 0; height: 100%;
    width: 50.5%; /* slight overlap to prevent seam */
    background: var(--base);
    display: flex; align-items: center; justify-content: center;
    will-change: transform;
}
.page-loader__panel--left { left: 0; }
.page-loader__panel--right { right: 0; }
.page-loader__brand {
    position: absolute;
    font-family: var(--font-title);
    font-size: var(--fs-xl);
    font-weight: var(--w-bold);
    color: var(--text);
    letter-spacing: -0.02em;
    z-index: 2;
    display: flex; align-items: center;
}
.page-loader__brand span { color: var(--accent); }
.page-loader__bar {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 2px;
    background: var(--accent);
    transform-origin: center;
    z-index: 3;
}
/* Initial state — panels cover screen */
.page-loader__panel--left { transform: translateX(0); }
.page-loader__panel--right { transform: translateX(0); }
/* Reduced motion — hide loader immediately */
@media (prefers-reduced-motion: reduce) {
    .page-loader { display: none; }
}

/* ---------- Code block / empty ---------- */
.code-block {
    background: var(--surface);
    border-radius: var(--r-comfortable);
    padding: var(--sp-6);
    color: var(--text-secondary);
}

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.stars { letter-spacing: 0.1em; color: var(--accent); }

/* ---------- Tabler Icons (webfont) ---------- */
/* Base sizing — Tabler icons are font-based, inherit color, scale with font-size */
.ti { font-size: 18px; line-height: 1; vertical-align: middle; }
.ti-filled { font-variation-settings: 'fill' 1; }
/* Header tool icons */
.header__tool .ti,
.header__bag .ti { font-size: 18px; }
.mobile-menu__close .ti { font-size: 22px; }
/* Hero trust badges */
.hero__trust-item .ti { font-size: 16px; }
/* Feature card icons */
.feature-card__icon .ti { font-size: 22px; }
/* Product action (wishlist) */
.product__actions .ti { font-size: 22px; }
/* Card wishlist */
.card__wishlist .ti { font-size: 16px; }

summary::-webkit-details-marker { display: none; }
summary { list-style: none; cursor: pointer; }
details[open] summary span:last-child { transform: rotate(45deg); display: inline-block; }

@media (max-width: 760px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: flex !important; }
    .header__tools { margin-left: auto; }
}
