/* ==========================================================================
   QumQum storefront — version 3 ("QumQum Home v6 — Apple Pure")
   Ported from the handoff's Apple design system bundle: tokens/*.css supply the
   values below verbatim, css/components.css supplies the ap-* component rules,
   and the qq3-* classes rebuild the page's inline styles. Only rendered when the
   admin publishes version 3, so nothing here may leak into version 1 or 2.
   ========================================================================== */

.qq3-app {
    /* ---------- Accent ----------
       The four themeable variables, same contract as version 2: --accent fills,
       --accent-text is the darkened variant for the accent used as text on light
       surfaces, --fg-on-accent labels a filled accent. The admin's published theme
       overrides these on :root, so they are read (not redefined) here. */
    --accent: #FF8C42;
    --accent-press: #E67E3A;
    --fg-on-accent: #FFFFFF;
    --accent-text: #B85C10;

    /* ---------- System palette (tokens/colors.css) ---------- */
    --green: #34C759;
    --red: #FF3B30;
    --gray-1: #8E8E93;
    --fg-1: rgba(0, 0, 0, .85);
    --fg-2: rgba(60, 60, 67, .60);
    --fg-3: rgba(60, 60, 67, .30);
    --bg-base: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --bg-grouped: #F2F2F7;
    --fill-1: rgba(120, 120, 128, .20);
    --fill-2: rgba(120, 120, 128, .16);
    --fill-3: rgba(118, 118, 128, .12);
    --fill-4: rgba(116, 116, 128, .08);
    --separator: rgba(60, 60, 67, .29);
    --hairline: rgba(60, 60, 67, .20);
    --text-primary: var(--fg-1);
    --text-secondary: var(--fg-2);
    --text-tertiary: var(--fg-3);
    --surface-card: #FFFFFF;
    --material-regular-bg: rgba(255, 255, 255, .74);
    --material-chrome-bg: rgba(246, 246, 248, .80);
    --blur-md: blur(20px) saturate(180%);
    --blur-sm: blur(10px) saturate(180%);
    --bg-scrim: rgba(0, 0, 0, .32);

    /* ---------- Elevation (tokens/elevation.css) ---------- */
    --shadow-hairline: 0 0 0 .5px rgba(0, 0, 0, .10);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 8px rgba(0, 0, 0, .04);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .07), 0 8px 24px rgba(0, 0, 0, .06);
    --shadow-3: 0 4px 12px rgba(0, 0, 0, .09), 0 18px 48px rgba(0, 0, 0, .10);
    --shadow-4: 0 8px 24px rgba(0, 0, 0, .12), 0 32px 80px rgba(0, 0, 0, .16);

    /* ---------- Radius (tokens/radius.css) ---------- */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-pill: 999px;

    /* ---------- Motion (tokens/motion.css) ---------- */
    --ease-out-quick: cubic-bezier(.25, 1, .5, 1);
    --ease-sheet: cubic-bezier(.32, .72, 0, 1);
    --ease-spring: linear(0, .0039, .0446, .1173, .2029, .2882, .3665, .4353, .4944, .5445, .5866, .6218, .6512, .6757, .6961, .7132, .7275, .7396, .75, .7591, .7676, .7761, .785, .7946, .805, .8163, .8285, .8415, .855, .869, .8832, .8974, .9114, .925, .938, .9503, .9616, .972, .9812, .9892, .9958, 1);
    --duration-instant: 100ms;
    --duration-fast: 200ms;
    --duration-base: 300ms;
    --press-scale: .97;
    --hover-opacity: .85;
    --disabled-opacity: .4;

    /* ---------- Type (tokens/typography.css) ---------- */
    --font-sans: -apple-system, BlinkMacSystemFont, system-ui, 'Cairo', 'Helvetica Neue', sans-serif;
    --hit-min: 44px;
    --qq3-container: 1264px;
    --qq3-gutter: clamp(16px, 3vw, 32px);
    --qq3-section-gap: clamp(40px, 4.6vw, 64px);

    min-height: 100vh;
    background: var(--bg-grouped);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 22px;
    letter-spacing: -.002em;
    -webkit-font-smoothing: antialiased;
}

.qq3-app *, .qq3-app *::before, .qq3-app *::after { box-sizing: border-box; }
.qq3-app img { display: block; max-width: 100%; }
.qq3-app input, .qq3-app button, .qq3-app textarea { font-family: inherit; }
.qq3-app a { color: var(--accent-text); text-decoration: none; }
.qq3-app a:hover { color: var(--accent-text); opacity: var(--hover-opacity); }
.qq3-app ::selection { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.qq3-app :where(a, button, input, [tabindex]):focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent);
}

@media (prefers-reduced-motion: reduce) {
    .qq3-app *, .qq3-app *::before, .qq3-app *::after {
        animation-duration: .001s !important;
        transition-duration: .01s !important;
    }
}

.qq3-shell { max-width: var(--qq3-container); margin: 0 auto; padding-inline: var(--qq3-gutter); }
.qq3-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Button (css/components.css .ap-btn) ---------------------- */

.qq3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--hit-min);
    padding: 0 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 17px;
    line-height: 22px;
    letter-spacing: -.004em;
    font-weight: 600;
    cursor: pointer;
    background: none;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    transition: background var(--duration-fast) var(--ease-out-quick),
                opacity var(--duration-fast) var(--ease-out-quick),
                transform var(--duration-instant) var(--ease-out-quick);
}

.qq3-btn:active { transform: scale(var(--press-scale)); }
.qq3-btn:disabled { opacity: var(--disabled-opacity); cursor: default; transform: none; }

/* Anchors need the extra class weight or .qq3-app a wins the colour. */
.qq3-btn-primary, .qq3-app a.qq3-btn-primary, .qq3-app a.qq3-btn-primary:hover {
    background: var(--accent);
    color: var(--fg-on-accent);
}
.qq3-btn-primary:hover:not(:disabled), .qq3-app a.qq3-btn-primary:hover { background: var(--accent-press); }

.qq3-btn-tinted, .qq3-app a.qq3-btn-tinted {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent-text);
}
.qq3-btn-tinted:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 22%, transparent); }

.qq3-btn-sm { min-height: 32px; padding: 0 12px; font-size: 15px; border-radius: var(--radius-sm); }
.qq3-btn-lg { min-height: 52px; padding: 0 32px; font-size: 20px; }
.qq3-btn-pill { border-radius: var(--radius-pill); }
.qq3-btn-block { display: flex; width: 100%; }

/* ---------- IconButton (.ap-iconbtn) --------------------------------- */

.qq3-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--hit-min);
    height: var(--hit-min);
    border: none;
    border-radius: var(--radius-pill);
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    touch-action: manipulation;
    transition: background var(--duration-fast) var(--ease-out-quick),
                transform var(--duration-instant) var(--ease-out-quick);
}

.qq3-iconbtn:hover:not(:disabled) { background: var(--fill-4); }
.qq3-iconbtn:active { transform: scale(var(--press-scale)); background: var(--fill-3); }
.qq3-iconbtn:disabled { opacity: var(--disabled-opacity); cursor: default; }
.qq3-iconbtn-filled { background: var(--fill-3); }
.qq3-iconbtn-sm { width: 32px; height: 32px; }
.qq3-iconbtn-wish.is-on { color: var(--red); }

/* ---------- Card (.ap-card) ------------------------------------------ */

.qq3-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

.qq3-card-body { padding: 20px; }

.qq3-card-interactive {
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-spring),
                box-shadow var(--duration-fast) var(--ease-out-quick);
}
.qq3-card-interactive:hover { box-shadow: var(--shadow-2); }
.qq3-card-interactive:active { transform: scale(.985); }

/* ---------- Badge & pill (.ap-badge, tinted accent chip) ------------- */

.qq3-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--fg-on-accent);
    font-size: 11px;
    line-height: 1;
    letter-spacing: .006em;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.qq3-badge-success { background: var(--green); color: #fff; }
.qq3-badge-neutral { background: var(--gray-1); color: #fff; }

.qq3-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .004em;
}

.qq3-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Input (.ap-input) ---------------------------------------- */

.qq3-input {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: var(--hit-min);
    padding: 0 12px;
    border-radius: var(--radius-md);
    background: var(--fill-4);
    box-shadow: inset 0 0 0 .5px transparent;
    transition: box-shadow var(--duration-fast) var(--ease-out-quick),
                background var(--duration-fast) var(--ease-out-quick);
}

.qq3-input:hover { background: var(--fill-3); }
.qq3-input:focus-within {
    background: var(--bg-elevated);
    box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent);
}
.qq3-input-search { border-radius: var(--radius-pill); }
.qq3-input input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    outline: none;
    padding: 8px 0;
    font-size: 17px;
    letter-spacing: -.002em;
    color: inherit;
}
.qq3-input input::placeholder { color: var(--text-tertiary); }
.qq3-input svg { color: var(--text-secondary); flex: none; }

/* ---------- SegmentedControl (.ap-segmented) ------------------------- */

.qq3-segmented {
    display: inline-flex;
    padding: 2px;
    border-radius: var(--radius-md);
    background: var(--fill-3);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.qq3-segmented::-webkit-scrollbar { display: none; }

.qq3-segmented button {
    flex: 0 0 auto;
    border: none;
    background: none;
    min-height: 30px;
    padding: 0 16px;
    border-radius: calc(var(--radius-md) - 2px);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: opacity var(--duration-fast) var(--ease-out-quick),
                transform var(--duration-instant) var(--ease-out-quick),
                background var(--duration-base) var(--ease-spring);
}

.qq3-segmented button:active { transform: scale(.96); }
.qq3-segmented button:hover { color: var(--text-primary); }
.qq3-segmented button.is-active {
    color: var(--text-primary);
    background: var(--bg-elevated);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .10), 0 0 0 .5px rgba(0, 0, 0, .04);
}
.qq3-segmented-lg button { min-height: 38px; }

/* ---------- Top bar & header ----------------------------------------- */

/* Strip whose copy scrolls continuously. The two custom properties below are the fallback for a
   bar rendered outside the storefront shell; the shell sets them inline from the colour the admin
   picked under "نسخة الموقع". */
.qq3-topbar {
    --qq3-topbar-bg: #00302E;
    --qq3-topbar-fg: #FDF6EC;
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 0;
    background: var(--qq3-topbar-bg);
    color: var(--qq3-topbar-fg);
    font-size: 13px;
    line-height: 18px;
    letter-spacing: .002em;
    font-weight: 500;
    overflow: hidden;
    /* Fade the copy out at both ends rather than letting it cut off hard. */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.qq3-topbar-track {
    display: flex;
    width: max-content;
    animation: qq3-marquee 38s linear infinite;
}

.qq3-topbar:hover .qq3-topbar-track { animation-play-state: paused; }

.qq3-topbar-run {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-inline-start: 20px;
    white-space: nowrap;
    min-height: 36px;
}

/* Follows the bar's own label colour so the dot stays visible in every top bar colour. */
.qq3-topbar i { color: currentColor; opacity: .45; font-style: normal; }

/* The track holds two identical runs, so shifting it by half its width lands exactly on the
   start of the second one — the seam is invisible and the loop never jumps. */
@keyframes qq3-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
    .qq3-topbar-track { animation: none; }
    .qq3-topbar { justify-content: center; }
}

.qq3-preview-bar {
    background: var(--accent);
    color: var(--fg-on-accent);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 8px 16px;
}
.qq3-app .qq3-preview-bar a { color: var(--fg-on-accent); text-decoration: underline; }

.qq3-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--material-chrome-bg);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border-top: 1px solid rgba(255, 255, 255, .45);
    border-bottom: .5px solid rgba(0, 0, 0, .10);
}

.qq3-header-inner {
    max-width: var(--qq3-container);
    margin: 0 auto;
    padding: 0 var(--qq3-gutter);
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.6vw, 20px);
}

.qq3-logo { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.qq3-app a.qq3-logo, .qq3-app a.qq3-logo:hover { color: var(--text-primary); }
/* Bottle + Arabic wordmark lockup. Heights are set, widths follow the artwork's own
   ratio so neither part is ever squashed. */
.qq3-logo .qq3-logo-mark { width: auto; height: 30px; object-fit: contain; }
.qq3-logo .qq3-logo-wordmark { width: auto; height: 38px; object-fit: contain; }
.qq3-logo strong { font-size: 20px; line-height: 25px; font-weight: 600; letter-spacing: -.006em; }

.qq3-nav { display: flex; align-items: center; gap: clamp(6px, 1vw, 14px); flex: 0 1 auto; }
.qq3-nav a {
    height: var(--hit-min);
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity var(--duration-fast) var(--ease-out-quick);
}
.qq3-app .qq3-nav a { color: var(--text-primary); }
.qq3-app .qq3-nav a:hover { opacity: var(--hover-opacity); color: var(--text-primary); }
.qq3-app .qq3-nav a.active { color: var(--accent-text); }

.qq3-header-search { flex: 1 1 170px; min-width: 0; max-width: 320px; }
.qq3-header-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; flex: 0 0 auto; }

.qq3-cart-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .004em;
    font-variant-numeric: tabular-nums;
}

.qq3-menu { position: relative; display: none; }
.qq3-menu > summary { list-style: none; cursor: pointer; width: var(--hit-min); height: var(--hit-min); display: grid; place-items: center; color: var(--text-primary); }
.qq3-menu > summary::-webkit-details-marker { display: none; }
.qq3-menu nav {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 6px);
    min-width: 210px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-3);
    padding: 6px;
    display: flex;
    flex-direction: column;
    z-index: 40;
}
.qq3-app .qq3-menu nav a { color: var(--text-primary); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 15px; }
.qq3-app .qq3-menu nav a:hover { background: var(--fill-4); opacity: 1; }

/* ---------- Sections -------------------------------------------------- */

.qq3-section { max-width: var(--qq3-container); margin: 0 auto; padding: var(--qq3-section-gap) var(--qq3-gutter) 0; }
.qq3-section-top { padding-top: clamp(16px, 2vw, 24px); }
.qq3-section-tight { padding-top: clamp(14px, 1.8vw, 20px); }

.qq3-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.qq3-h2 { margin: 0 0 4px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.08; letter-spacing: -.015em; font-weight: 700; }
.qq3-sub { margin: 0; font-size: 15px; line-height: 20px; color: var(--text-secondary); }
.qq3-link-more { display: inline-flex; align-items: center; gap: 6px; height: var(--hit-min); font-size: 15px; font-weight: 500; }

/* ---------- Hero ------------------------------------------------------ */

.qq3-hero {
    background: var(--bg-base);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-1);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: stretch;
}

.qq3-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    padding: clamp(28px, 4vw, 56px);
}

.qq3-hero-copy h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.04;
    letter-spacing: -.022em;
    font-weight: 700;
    max-width: 18ch;
    text-wrap: balance;
}

.qq3-hero-copy p {
    margin: 0;
    font-size: 17px;
    line-height: 26px;
    letter-spacing: -.002em;
    color: var(--text-secondary);
    max-width: 46ch;
    text-wrap: pretty;
}

.qq3-hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.qq3-hero-from { font-size: 13px; line-height: 18px; letter-spacing: .002em; color: var(--text-secondary); }
.qq3-hero-from b {
    font-size: 20px;
    line-height: 25px;
    letter-spacing: -.006em;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.qq3-hero-media { position: relative; min-height: clamp(300px, 34vw, 460px); background: var(--bg-grouped); }
.qq3-hero-media span.qq3-hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 400ms var(--ease-out-quick);
    animation: qq3-fade var(--duration-base) var(--ease-out-quick);
}

@keyframes qq3-fade { from { opacity: 0; } to { opacity: 1; } }

.qq3-hero-arrows {
    position: absolute;
    bottom: 16px;
    inset-inline-start: 16px;
    display: flex;
    gap: 2px;
    padding: 2px;
    border-radius: var(--radius-pill);
    background: var(--material-regular-bg);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
}

/* Stats strip under the hero */
.qq3-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    padding: 2px clamp(10px, 2vw, 18px);
    margin-top: 12px;
}

.qq3-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 14px clamp(12px, 1.6vw, 20px);
    box-shadow: inset -.5px 0 0 var(--hairline);
}
.qq3-stat:last-of-type { box-shadow: none; }
.qq3-stat strong { font-size: 20px; line-height: 25px; letter-spacing: -.006em; font-weight: 600; font-variant-numeric: tabular-nums; }
.qq3-stat span { font-size: 13px; line-height: 18px; letter-spacing: .002em; color: var(--text-secondary); }
.qq3-stats-note {
    margin-inline-start: auto;
    padding: 14px clamp(12px, 1.6vw, 20px);
    font-size: 13px;
    line-height: 18px;
    letter-spacing: .002em;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ---------- Category cards ------------------------------------------- */

.qq3-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.qq3-app a.qq3-cat, .qq3-app a.qq3-cat:hover { color: var(--text-primary); opacity: 1; display: block; }
.qq3-cat .qq3-card { border-radius: var(--radius-xl); height: 100%; }
.qq3-cat-media { display: block; height: 148px; background-size: cover; background-position: center; background-color: var(--bg-grouped); }
.qq3-cat-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px 18px; }
.qq3-cat-kicker { font-size: 12px; line-height: 16px; letter-spacing: .004em; font-weight: 600; color: var(--text-secondary); }
.qq3-cat-title { font-size: 20px; line-height: 25px; letter-spacing: -.006em; font-weight: 600; }
.qq3-cat-line { font-size: 15px; line-height: 20px; color: var(--text-secondary); }
.qq3-cat-cta { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--accent-text); }

/* ---------- Product grid --------------------------------------------- */

.qq3-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: clamp(14px, 1.8vw, 20px); }
.qq3-seg-wrap { margin: clamp(16px, 2vw, 24px) 0 clamp(18px, 2.2vw, 28px); }

.qq3-product { display: flex; flex-direction: column; height: 100%; }
.qq3-product-media { position: relative; aspect-ratio: 4 / 5; background: var(--bg-grouped); }

/* The image sits inside the product link, so this must stay a descendant selector — a child
   combinator misses it and the span collapses to 0x0. */
.qq3-product-media .qq3-product-link { position: absolute; inset: 0; display: block; }
.qq3-product-media .qq3-product-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.qq3-product-badge { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; pointer-events: none; }
.qq3-product-wish {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    z-index: 2;
    width: var(--hit-min);
    height: var(--hit-min);
    border-radius: var(--radius-pill);
    background: var(--material-regular-bg);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
}

.qq3-product-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.qq3-product-meta { font-size: 13px; line-height: 18px; letter-spacing: .002em; color: var(--text-secondary); }
.qq3-product-body h3 { margin: 0; font-size: 17px; line-height: 22px; letter-spacing: -.004em; font-weight: 600; text-wrap: pretty; }
.qq3-app a.qq3-product-link, .qq3-app a.qq3-product-link:hover { color: var(--text-primary); opacity: 1; }
.qq3-product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.qq3-price { display: flex; align-items: baseline; gap: 7px; }
.qq3-price b { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -.004em; font-variant-numeric: tabular-nums; }
.qq3-price del { font-size: 13px; line-height: 18px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }

/* ---------- Offer ------------------------------------------------------ */

.qq3-offer {
    background: var(--bg-base);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-1);
    padding: clamp(24px, 3vw, 44px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: clamp(24px, 3vw, 40px);
    align-items: center;
}

.qq3-offer-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.qq3-offer-copy h2 { margin: 0; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -.015em; font-weight: 700; }
.qq3-offer-copy p { margin: 0; max-width: 46ch; font-size: 17px; line-height: 26px; color: var(--text-secondary); text-wrap: pretty; }

.qq3-countdown { display: flex; gap: 6px; padding: 4px; border-radius: var(--radius-lg); background: var(--fill-3); }
.qq3-countdown div {
    min-width: 62px;
    background: var(--bg-base);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hairline);
    padding: 8px;
    text-align: center;
}
.qq3-countdown strong { display: block; font-size: 20px; line-height: 25px; letter-spacing: -.006em; font-weight: 600; font-variant-numeric: tabular-nums; }
.qq3-countdown span { font-size: 11px; line-height: 13px; letter-spacing: .006em; color: var(--text-secondary); }

.qq3-offer-price { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.qq3-offer-price strong { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.015em; font-weight: 700; font-variant-numeric: tabular-nums; }
.qq3-offer-price del { font-size: 15px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.qq3-offer-media { position: relative; min-height: 290px; border-radius: var(--radius-xl); overflow: hidden; background: var(--bg-grouped); }
.qq3-offer-media span.qq3-offer-image { position: absolute; inset: 0; background-size: cover; background-position: center; }

/* ---------- Value rows ------------------------------------------------- */

.qq3-values { background: var(--bg-base); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.qq3-value { display: flex; align-items: center; gap: 14px; padding: 16px 20px; box-shadow: inset 0 -.5px 0 var(--hairline); }
.qq3-value:last-child { box-shadow: none; }
.qq3-value-icon {
    width: 29px;
    height: 29px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: var(--accent);
    color: var(--fg-on-accent);
}
.qq3-value-icon.is-green { background: var(--green); color: #fff; }
.qq3-value-icon.is-gray { background: var(--text-secondary); color: #fff; }
.qq3-value-text { flex: 1; min-width: 0; }
.qq3-value-text b { display: block; font-size: 17px; line-height: 22px; letter-spacing: -.004em; font-weight: 600; }
.qq3-value-text span { font-size: 15px; line-height: 20px; color: var(--text-secondary); }

/* ---------- Testimonials ----------------------------------------------- */

.qq3-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; }
.qq3-quote { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.qq3-quote-stars { color: var(--accent-text); letter-spacing: 2px; font-size: 13px; }
.qq3-quote blockquote { margin: 0; font-size: 17px; line-height: 26px; }
.qq3-quote figcaption { font-size: 13px; line-height: 18px; letter-spacing: .002em; color: var(--text-secondary); }

/* ---------- Footer ------------------------------------------------------ */

.qq3-footer { margin-top: var(--qq3-section-gap); background: var(--bg-base); border-top: .5px solid var(--hairline); }
.qq3-footer-inner { max-width: var(--qq3-container); margin: 0 auto; padding: clamp(28px, 3.4vw, 52px) var(--qq3-gutter) 0; }
.qq3-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(20px, 2.6vw, 40px); }
.qq3-footer-brand { display: flex; flex-direction: column; gap: 12px; }
.qq3-footer-brand > div { display: flex; align-items: center; gap: 8px; }
.qq3-footer-brand .qq3-logo-mark { width: auto; height: 34px; object-fit: contain; }
.qq3-footer-brand .qq3-logo-wordmark { width: auto; height: 40px; object-fit: contain; }
.qq3-footer-brand strong { font-size: 20px; line-height: 25px; letter-spacing: -.006em; font-weight: 600; }
.qq3-footer-brand p { margin: 0; max-width: 34ch; font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.qq3-subscribe { display: flex; gap: 8px; align-items: center; max-width: 360px; }
.qq3-subscribe > div { flex: 1; min-width: 0; }
.qq3-footer-col { display: flex; flex-direction: column; gap: 2px; }
.qq3-footer-col h4 {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
}
.qq3-app .qq3-footer-col a { height: 32px; display: inline-flex; align-items: center; font-size: 15px; color: var(--text-primary); }
.qq3-app .qq3-footer-col a:hover { color: var(--accent-text); opacity: 1; }
.qq3-footer-social { display: flex; gap: 4px; }
.qq3-footer-note { margin: 4px 0 0; font-size: 13px; line-height: 18px; letter-spacing: .002em; color: var(--text-secondary); }
.qq3-footer-legal {
    margin-top: clamp(20px, 2.6vw, 36px);
    border-top: .5px solid var(--hairline);
    padding: 16px 0 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: .002em;
    color: var(--text-secondary);
}

/* ---------- Cart sheet (.ap-sheet) -------------------------------------- */

.qq3-sheet-layer { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: flex-end; }
.qq3-sheet-scrim { position: absolute; inset: 0; background: var(--bg-scrim); border: none; padding: 0; cursor: pointer; }
.qq3-sheet {
    position: relative;
    background: var(--bg-grouped);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    box-shadow: var(--shadow-4);
    padding: 8px 0 24px;
    max-height: 92%;
    overflow: auto;
    animation: qq3-sheet-in var(--duration-base) var(--ease-sheet);
}

@keyframes qq3-sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }

.qq3-sheet-grabber { width: 36px; height: 5px; border-radius: var(--radius-pill); background: var(--fg-3); margin: 0 auto 16px; }
.qq3-sheet-body { padding: 0 16px; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.qq3-sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.qq3-sheet-head h3 { margin: 0; font-size: 22px; line-height: 28px; letter-spacing: -.009em; font-weight: 700; }
.qq3-sheet-head span { font-size: 13px; line-height: 18px; letter-spacing: .002em; color: var(--text-secondary); }

.qq3-ship-track { height: 6px; border-radius: var(--radius-pill); background: var(--fill-3); overflow: hidden; }
.qq3-ship-track i { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--accent); transition: width 400ms var(--ease-spring); }
.qq3-ship-note { margin: 8px 0 0; font-size: 13px; line-height: 18px; letter-spacing: .002em; color: var(--text-secondary); }
.qq3-cart-empty { margin: 24px 0; text-align: center; font-size: 15px; line-height: 22px; color: var(--text-secondary); }

.qq3-cart-list { background: var(--bg-base); border-radius: var(--radius-lg); overflow: hidden; }
.qq3-cart-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; box-shadow: inset 0 -.5px 0 var(--hairline); }
.qq3-cart-row:last-child { box-shadow: none; }
.qq3-cart-row figure { margin: 0; width: 60px; height: 74px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-grouped); flex: 0 0 auto; }
.qq3-cart-row figure span { display: block; width: 100%; height: 100%; background-size: cover; background-position: center; }
.qq3-cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.qq3-cart-info b { font-size: 15px; line-height: 20px; font-weight: 600; }
.qq3-cart-info > span { font-size: 13px; line-height: 18px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.qq3-stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    align-self: flex-start;
    padding: 2px;
    border-radius: var(--radius-pill);
    background: var(--fill-3);
}
.qq3-stepper span { min-width: 26px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qq3-cart-remove { color: var(--red); }
.qq3-cart-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 4px; }
.qq3-cart-total span { font-size: 15px; color: var(--text-secondary); }
.qq3-cart-total strong { font-size: 22px; line-height: 28px; letter-spacing: -.009em; font-weight: 700; font-variant-numeric: tabular-nums; }
.qq3-cart-foot-note { margin: 0; text-align: center; font-size: 13px; line-height: 18px; letter-spacing: .002em; color: var(--text-secondary); }

/* ---------- Toast (.ap-toast) -------------------------------------------- */

.qq3-toast-layer { position: fixed; z-index: 60; left: 50%; bottom: 28px; transform: translateX(-50%); }
.qq3-toast {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-pill);
    background: var(--material-regular-bg);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    box-shadow: var(--shadow-3);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    animation: qq3-toast-in var(--duration-base) var(--ease-spring);
    white-space: nowrap;
}
.qq3-toast svg { color: var(--green); flex: none; }

@keyframes qq3-toast-in {
    from { opacity: 0; transform: translateY(14px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Responsive ---------------------------------------------------- */

@media (max-width: 900px) {
    .qq3-nav { display: none; }
    .qq3-menu { display: block; }
    .qq3-header-search { max-width: none; }
}

@media (max-width: 620px) {
    /* Search stays available on phones — it drops onto its own full-width row under the
       logo and actions rather than being hidden. */
    .qq3-header-inner { flex-wrap: wrap; padding-block: 8px; }
    .qq3-header-search { order: 3; flex: 1 1 100%; max-width: none; }
    .qq3-stats-note { margin-inline-start: 0; }
    .qq3-stat { box-shadow: none; }
    .qq3-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .qq3-countdown div { min-width: 54px; }
}

/* ==========================================================================
   Inner pages inside the version 3 shell
   Checkout, cart, shop, product, collections, blog and the content pages keep
   their existing markup and shared app.css classes. Rather than fork every
   page, this layer remaps that shared palette onto the Apple Pure tokens and
   then restyles the structures whose *shape* differs (dark summary card, heavy
   button glows, oversized page padding). Everything is scoped to .qq3-app so
   versions 1 and 2 are untouched.
   ========================================================================== */

.qq3-app {
    /* app.css palette, expressed in Apple Pure terms */
    --ink: rgba(0, 0, 0, .85);
    --ink-2: rgba(60, 60, 67, .60);
    --dark-green: rgba(0, 0, 0, .85);
    --paper: #FFFFFF;
    --cream: #F2F2F7;
    --creamy-white: #F2F2F7;
    --white: #FFFFFF;
    --gray: #F2F2F7;
    --line: rgba(60, 60, 67, .20);
    --muted: rgba(60, 60, 67, .60);
    --text-muted: rgba(60, 60, 67, .60);
    --orange: var(--accent);
    --orange-2: var(--accent-press);
    --success: #34C759;
    --danger: #FF3B30;
    --shadow: var(--shadow-2);
    --transition: var(--duration-fast) var(--ease-out-quick);
}

/* Big legacy surfaces would inherit the component radii (10/14px) and read as
   too tight, so they get the sheet-scale radii instead. */
.qq3-app .legacy-hero,
.qq3-app .legacy-subhero,
.qq3-app .legacy-footer,
.qq3-app .collection-page-card,
.qq3-app .main-product-media,
.qq3-app .collection-detail-hero,
.qq3-app .legacy-collection-card,
.qq3-app .legacy-blog-card,
.qq3-app .legacy-product-image-wrap,
.qq3-app .support-item { border-radius: var(--radius-xl); }

/* ---------- Page shell ------------------------------------------------- */

.qq3-app .container,
.qq3-app .legacy-container,
.qq3-app .support-container {
    width: 100%;
    max-width: var(--qq3-container);
    margin: 0 auto;
    padding: 0 var(--qq3-gutter);
}

/* The legacy pages were padded for version 1's tall fixed header; the v3 header
   is a 64px sticky bar, so the old 150px of dead space has to go. */
.qq3-app .legacy-inner-page,
.qq3-app .shop-page,
.qq3-app .support-page {
    padding: var(--qq3-section-gap) 0;
    background: transparent;
    min-height: 0;
}

.qq3-app .subhero-layout { padding-top: clamp(16px, 2vw, 24px); padding-bottom: clamp(24px, 3vw, 40px); }
.qq3-app .legacy-subhero-wrap { padding-top: 0; }

.qq3-app .page-hero { padding: clamp(20px, 3vw, 36px) 0 clamp(14px, 2vw, 22px); }

.qq3-app .page-title,
.qq3-app .legacy-page-heading {
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.08;
    letter-spacing: -.015em;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.qq3-app .legacy-page-heading { margin-bottom: clamp(20px, 2.6vw, 32px); }

.qq3-app .page-subtitle {
    margin: 6px 0 0;
    font-size: 17px;
    line-height: 26px;
    color: var(--text-secondary);
    max-width: 60ch;
}

/* ---------- Cards & panels ---------------------------------------------- */

.qq3-app .checkout-section,
.qq3-app .order-success-card,
.qq3-app .support-item,
.qq3-app .legacy-blog-card {
    background: var(--surface-card);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
}

.qq3-app .checkout-section,
.qq3-app .order-success-card { padding: clamp(18px, 2.2vw, 24px); }

.qq3-app .alert {
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    border: none;
    background: var(--surface-card);
    box-shadow: var(--shadow-1);
    text-align: start;
    font-size: 15px;
    line-height: 22px;
}

.qq3-app .alert.error,
.qq3-app .alert.danger { background: color-mix(in srgb, var(--red) 10%, #FFFFFF); color: var(--red); box-shadow: none; }
.qq3-app .alert.success { background: color-mix(in srgb, var(--green) 12%, #FFFFFF); color: #1B7F3B; box-shadow: none; }

.qq3-app .empty,
.qq3-app .loading {
    padding: clamp(28px, 4vw, 48px) 20px;
    border-radius: var(--radius-lg);
    background: var(--surface-card);
    box-shadow: var(--shadow-1);
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
}

.qq3-app .empty p { margin: 0 0 14px; }

.qq3-app .pill-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .004em;
}

/* ---------- Forms -------------------------------------------------------- */

.qq3-app .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.qq3-app .form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qq3-app .form-group.full { grid-column: 1 / -1; }

.qq3-app .form-group label {
    font-size: 13px;
    line-height: 18px;
    letter-spacing: .002em;
    font-weight: 600;
    color: var(--text-secondary);
}

.qq3-app .form-group label small { font-weight: 400; color: var(--text-tertiary); }

.qq3-app .field,
.qq3-app .select,
.qq3-app .textarea,
.qq3-app input[type="text"],
.qq3-app input[type="email"],
.qq3-app input[type="tel"],
.qq3-app input[type="number"],
.qq3-app input[type="search"],
.qq3-app select,
.qq3-app textarea {
    width: 100%;
    max-width: none;
    min-height: var(--hit-min);
    padding: 10px 12px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--fill-4);
    box-shadow: inset 0 0 0 .5px transparent;
    color: var(--text-primary);
    font-size: 17px;
    letter-spacing: -.002em;
    outline: none;
    transition: box-shadow var(--duration-fast) var(--ease-out-quick),
                background var(--duration-fast) var(--ease-out-quick);
}

.qq3-app .field:hover,
.qq3-app .select:hover,
.qq3-app .textarea:hover,
.qq3-app select:hover,
.qq3-app textarea:hover { background: var(--fill-3); }

.qq3-app .field:focus,
.qq3-app .select:focus,
.qq3-app .textarea:focus,
.qq3-app input:focus,
.qq3-app select:focus,
.qq3-app textarea:focus {
    background: var(--bg-elevated);
    box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent);
}

.qq3-app .textarea, .qq3-app textarea { min-height: 96px; line-height: 22px; resize: vertical; }
.qq3-app ::placeholder { color: var(--text-tertiary); }

.qq3-app .validation-message,
.qq3-app .field-validation-error {
    font-size: 13px;
    line-height: 18px;
    color: var(--red);
}

/* ---------- Buttons ------------------------------------------------------ */

.qq3-app .btn-primary,
.qq3-app a.btn-primary,
.qq3-app a.btn-primary:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--hit-min);
    padding: 0 20px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: var(--fg-on-accent);
    box-shadow: none;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.004em;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out-quick),
                transform var(--duration-instant) var(--ease-out-quick);
}

.qq3-app .btn-primary:hover:not(:disabled) { background: var(--accent-press); }
.qq3-app .btn-primary:active { transform: scale(var(--press-scale)); }
.qq3-app .btn-primary:disabled { opacity: var(--disabled-opacity); cursor: default; transform: none; }

.qq3-app .btn-ghost,
.qq3-app a.btn-ghost,
.qq3-app .btn-secondary,
.qq3-app a.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--hit-min);
    padding: 0 20px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--fill-3);
    color: var(--accent-text);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.004em;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out-quick),
                transform var(--duration-instant) var(--ease-out-quick);
}

.qq3-app .btn-ghost:hover:not(:disabled),
.qq3-app .btn-secondary:hover:not(:disabled) { background: var(--fill-2); }
.qq3-app .btn-ghost:active, .qq3-app .btn-secondary:active { transform: scale(var(--press-scale)); }

/* ---------- Checkout ------------------------------------------------------ */

.qq3-app .checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
    gap: clamp(16px, 2vw, 24px);
    padding-bottom: var(--qq3-section-gap);
    align-items: start;
}

.qq3-app .checkout-form { display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 20px); min-width: 0; }

.qq3-app .checkout-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 25px;
    letter-spacing: -.006em;
    font-weight: 600;
}

.qq3-app .checkout-step span:first-child {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--fg-on-accent);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 600;
    flex: 0 0 auto;
}

.qq3-app .payment-method {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}

.qq3-app .payment-method strong { display: block; font-size: 17px; line-height: 22px; letter-spacing: -.004em; font-weight: 600; }
.qq3-app .payment-method small { font-size: 15px; line-height: 20px; color: var(--text-secondary); }

.qq3-app .payment-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 6px solid var(--accent);
    background: #fff;
    flex: 0 0 auto;
    margin-top: 2px;
}

.qq3-app .checkout-submit { width: 100%; min-height: 52px; font-size: 20px; }
.qq3-app .checkout-reassurance { margin: 0; text-align: center; font-size: 13px; line-height: 18px; color: var(--text-secondary); }

.qq3-app .checkout-phone-field { position: relative; display: flex; align-items: center; }

.qq3-app .customer-lookup-message {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 18px;
    color: var(--text-secondary);
}
.qq3-app .customer-lookup-message.is-found { color: #1B7F3B; }
.qq3-app .customer-lookup-message.is-new { color: var(--accent-text); }

/* Order summary — the legacy card is solid brand green; Apple Pure wants the
   same grouped white card as the rest of the page. */
.qq3-app .summary,
.qq3-app .checkout-summary {
    padding: clamp(18px, 2.2vw, 24px);
    background: var(--surface-card);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    height: max-content;
    position: sticky;
    top: 84px;
}

.qq3-app .summary h2, .qq3-app .summary h3 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 25px;
    letter-spacing: -.006em;
    font-weight: 600;
}

.qq3-app .summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    font-size: 15px;
    line-height: 20px;
    color: var(--text-secondary);
}

.qq3-app .summary-row strong, .qq3-app .summary-row span { font-variant-numeric: tabular-nums; }
.qq3-app .summary-row.total {
    margin-top: 6px;
    padding-top: 14px;
    border-top: .5px solid var(--hairline);
    color: var(--text-primary);
    font-size: 20px;
    line-height: 25px;
    letter-spacing: -.006em;
    font-weight: 600;
}
.qq3-app .summary-row.discount { color: #1B7F3B; }
.qq3-app .summary-muted { color: var(--text-secondary); }
.qq3-app .summary-free { color: #1B7F3B; font-weight: 600; }
.qq3-app .summary-hint {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent-text);
    font-size: 13px;
    line-height: 18px;
}

.qq3-app .summary-lines { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.qq3-app .summary-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
/* The quantity badge sits on the thumbnail's corner and overhangs it, so the container must not clip:
   the rounding belongs to the image itself. A white ring keeps the number readable over any photo. */
.qq3-app .summary-line-thumb { width: 56px; height: 68px; position: relative; background: var(--bg-grouped); border-radius: var(--radius-md); }
.qq3-app .summary-line-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.qq3-app .summary-line-thumb span { box-shadow: 0 0 0 2px var(--bg-elevated, #fff); }
.qq3-app .summary-line-body { min-width: 0; font-size: 15px; line-height: 20px; }
.qq3-app .summary-line-total { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.qq3-app .coupon-row { display: flex; gap: 8px; align-items: center; margin: 12px 0; }
.qq3-app .coupon-row .field { flex: 1; }
.qq3-app .coupon-message { font-size: 13px; line-height: 18px; }
.qq3-app .coupon-message.is-ok { color: #1B7F3B; }
.qq3-app .coupon-message.is-error { color: var(--red); }

.qq3-app .order-success { max-width: 620px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) 0; text-align: center; }
.qq3-app .order-success h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.08; letter-spacing: -.015em; font-weight: 700; margin: 16px 0 8px; }
.qq3-app .order-success-note { font-size: 17px; line-height: 26px; color: var(--text-secondary); margin: 0 0 20px; }
.qq3-app .order-success-check {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: var(--radius-pill);
    background: var(--green);
    color: #fff;
    font-size: 28px;
}
.qq3-app .order-success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Cart, shop, product ------------------------------------------ */

.qq3-app .qty-stepper,
.qq3-app .quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--fill-3);
}

.qq3-app .qty-stepper button,
.qq3-app .quantity-control button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-pill);
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.qq3-app .qty-stepper button:hover, .qq3-app .quantity-control button:hover { background: var(--fill-4); }

.qq3-app .storefront-filters { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; margin-bottom: clamp(16px, 2vw, 24px); }
.qq3-app .shop-layout { display: flex; align-items: flex-start; gap: clamp(20px, 3vw, 40px); }
.qq3-app .shop-results { min-width: 0; flex: 1; }
.qq3-app .legacy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: clamp(14px, 1.8vw, 20px); }
.qq3-app .shop-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: clamp(14px, 1.8vw, 20px); }

.qq3-app .product-accordion { border-bottom: .5px solid var(--hairline); padding: 14px 0; }
.qq3-app .product-specs { font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.qq3-app .product-info-price { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
    .qq3-app .checkout-layout { grid-template-columns: 1fr; }
    .qq3-app .summary, .qq3-app .checkout-summary { position: static; }
    .qq3-app .shop-layout { flex-direction: column; }
    .qq3-app .shop-sidebar { width: 100%; }
    .qq3-app .storefront-filters { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    /* Two products per row on phones, matching the home grid — one full-width card per
       row makes the list far longer to scan than it needs to be. */
    .qq3-app .legacy-grid,
    .qq3-app .shop-products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }

    /* Line items and summary rows stay readable when the row gets narrow. */
    .qq3-app .summary-line { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; }
    .qq3-app .summary-line-thumb { width: 48px; height: 58px; }
    .qq3-app .order-success-actions .btn-primary,
    .qq3-app .order-success-actions .btn-ghost { flex: 1 1 auto; }
    /* The coupon field and its button stack rather than squeezing side by side; the button
       goes full width so it does not sit stranded against one edge. */
    .qq3-app .coupon-row { flex-wrap: wrap; }
    .qq3-app .coupon-row .field { flex: 1 1 100%; }
    .qq3-app .coupon-row .btn-primary,
    .qq3-app .coupon-row .btn-ghost,
    .qq3-app .coupon-row .btn-secondary,
    .qq3-app .coupon-row button { flex: 1 1 100%; }
}

/* ---------- Cookie consent -------------------------------------------------
   site.js appends the banner to <body>, so it sits outside .qq3-app and cannot
   be scoped the usual way. :has() keys it to the version 3 shell being present,
   leaving the banner untouched on versions 1 and 2. */

body:has(.qq3-app) .qq-consent {
    inset: auto 16px 16px 16px;
    padding: 16px 18px;
    gap: 16px;
    background: var(--material-regular-bg, rgba(255, 255, 255, .9));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: rgba(0, 0, 0, .85);
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .09), 0 18px 48px rgba(0, 0, 0, .10);
    font-family: -apple-system, BlinkMacSystemFont, system-ui, 'Cairo', 'Helvetica Neue', sans-serif;
}

body:has(.qq3-app) .qq-consent strong { font-size: 17px; line-height: 22px; letter-spacing: -.004em; font-weight: 600; }
body:has(.qq3-app) .qq-consent p { margin: 4px 0; color: rgba(60, 60, 67, .60); font-size: 15px; line-height: 20px; }
body:has(.qq3-app) .qq-consent a { color: var(--accent-text, #B85C10); font-size: 13px; }

body:has(.qq3-app) .qq-consent button {
    min-height: 44px;
    padding: 0 16px;
    border: none;
    border-radius: 10px;
    background: rgba(118, 118, 128, .12);
    color: rgba(0, 0, 0, .85);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 200ms cubic-bezier(.25, 1, .5, 1);
}

body:has(.qq3-app) .qq-consent button:hover { background: rgba(120, 120, 128, .16); }

body:has(.qq3-app) .qq-consent button.primary {
    background: var(--accent, #FF8C42);
    border-color: transparent;
    color: var(--fg-on-accent, #FFFFFF);
}
body:has(.qq3-app) .qq-consent button.primary:hover { background: var(--accent-press, #E67E3A); }
