/* ==========================================================================
   QumQum storefront — version 2
   Ported from the "QumQum Home v2" handoff design system. Every token below
   mirrors _ds/tokens/*.css from the bundle; the qq2-* classes below rebuild
   the design's inline styles. Only rendered when the admin selects version 2,
   so nothing here may leak into the version 1 storefront or the admin panel.
   ========================================================================== */

:root {
    /* Accent theme (QumQum Home v6 "Apple Pure").
       These four are the themeable surface: the admin panel overrides them per accent theme via an
       inline :root block, everything else here is fixed. --accent is the fill, --accent-text is the
       darkened variant used when the accent has to read as *text* on a light surface (#FF8C42 fails
       AA as body text on white), and --fg-on-accent is the label sitting on top of a filled accent. */
    --accent: #FF8C42;
    --accent-press: #E67E3A;
    --fg-on-accent: #FFFFFF;
    --accent-text: #B85C10;

    /* Brand core */
    --qq-green: #00302E;
    --qq-green-tint: #1a4f4d;
    --qq-orange: var(--accent);
    --qq-orange-hover: var(--accent-press);
    --qq-orange-soft: #ffb84d;

    /* Surfaces */
    --qq-white: #FFFFFF;
    --qq-cream: #FDF6EC;
    --qq-sand: #F5EFE6;
    --qq-sand-deep: #EAE3D6;

    /* Text */
    --qq-text: #00302E;
    --qq-text-secondary: rgba(0, 48, 46, .8);
    --qq-text-muted: rgba(0, 48, 46, .6);
    --qq-text-on-dark: #FDF6EC;

    /* Lines & translucency */
    --qq-border: rgba(0, 48, 46, .08);
    --qq-border-strong: rgba(0, 48, 46, .15);
    --qq-hover: rgba(0, 48, 46, .05);
    --qq-orange-glow: color-mix(in srgb, var(--accent) 15%, transparent);

    /* Typography */
    --qq-font: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --qq-weight-light: 300;
    --qq-weight-regular: 400;
    --qq-weight-medium: 500;
    --qq-weight-semibold: 600;
    --qq-weight-bold: 700;
    --qq-weight-black: 800;
    --qq-text-hero: 5rem;
    --qq-text-display: 3rem;
    --qq-text-h1: 2rem;
    --qq-text-h2: 1.5rem;
    --qq-text-h3: 1.25rem;
    --qq-text-lg: 1.1rem;
    --qq-text-body: 1rem;
    --qq-text-sm: .9rem;
    --qq-text-xs: .8rem;
    --qq-leading-tight: 1.1;
    --qq-leading-snug: 1.4;
    --qq-leading-body: 1.8;
    --qq-tracking-display: -.02em;
    --qq-tracking-logo: -.05em;

    /* Spacing & radii */
    --qq-radius-xs: 8px;
    --qq-radius-sm: 12px;
    --qq-radius-md: 16px;
    --qq-radius-lg: 24px;
    --qq-radius-xl: 50px;
    --qq-radius-pill: 100px;
    --qq-space-1: 4px;
    --qq-space-2: 8px;
    --qq-space-3: 12px;
    --qq-space-4: 16px;
    --qq-space-5: 20px;
    --qq-space-6: 24px;
    --qq-space-8: 32px;
    --qq-space-10: 40px;
    --qq-space-15: 60px;
    --qq-space-20: 80px;
    --qq-container: 1440px;

    /* Shadows, motion, glass */
    --qq-shadow-sm: 0 4px 15px rgba(0, 48, 46, .03);
    --qq-shadow-md: 0 10px 30px rgba(0, 48, 46, .06);
    --qq-shadow-lg: 0 15px 35px rgba(0, 48, 46, .08);
    --qq-shadow-drawer: -10px 0 30px rgba(0, 0, 0, .1);
    --qq-shadow-accent: 0 10px 30px rgba(255, 140, 66, .3);
    --qq-ease: cubic-bezier(.16, 1, .3, 1);
    --qq-transition: .4s var(--qq-ease);
    --qq-transition-fast: .3s var(--qq-ease);
    --qq-focus-ring: 0 0 0 3px var(--qq-orange-glow);
    --qq-blur: blur(20px);
    --qq-overlay: rgba(0, 0, 0, .4);

    /* Semantic aliases from the design system — components should prefer these */
    --qq-bg: var(--qq-white);
    --qq-bg-app: var(--qq-sand);
    --qq-surface: var(--qq-white);
    --qq-surface-soft: var(--qq-cream);
    --qq-primary: var(--qq-green);
    --qq-accent: var(--qq-orange);
    --qq-section-pad: var(--qq-space-20) var(--qq-space-10);

    /* Derived from the tokens above — one definition for every overlay surface.
       The scrims are the brand green at three depths; the on-dark tints are
       --qq-text-on-dark at reduced opacity. */
    --qq-scrim-hero: linear-gradient(270deg, rgba(0, 48, 46, .86) 0%, rgba(0, 48, 46, .55) 44%, rgba(0, 48, 46, .06) 100%);
    --qq-scrim-hero-narrow: linear-gradient(270deg, rgba(0, 48, 46, .88) 0%, rgba(0, 48, 46, .66) 100%);
    --qq-scrim-card: linear-gradient(270deg, rgba(0, 48, 46, .72) 0%, rgba(0, 48, 46, .14) 72%);
    --qq-on-dark-soft: rgba(253, 246, 236, .82);
    --qq-on-dark-muted: rgba(253, 246, 236, .7);
    --qq-on-dark-line: rgba(253, 246, 236, .5);
    --qq-on-dark-wash: rgba(253, 246, 236, .14);

    /* Arabic display type keeps a touch more air than --qq-leading-tight so
       diacritics never clip. */
    --qq-leading-display: 1.15;

    /* Focus ring for controls sitting on photography, where the soft orange
       glow of --qq-focus-ring would disappear. */
    --qq-focus-ring-strong: 0 0 0 3px var(--qq-orange);
}

@keyframes qq-blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -24px) scale(1.12); }
}

@keyframes qq-rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Shell ---------------------------------------------------- */

.qq2-app {
    min-height: 100vh;
    background: var(--qq-sand);
    color: var(--qq-text);
    font-family: var(--qq-font);
    line-height: var(--qq-leading-body);
    padding-bottom: var(--qq-space-20);
}

.qq2-app a { color: var(--qq-green); text-decoration: none; transition: var(--qq-transition); }
.qq2-app a:hover { color: var(--accent-text); }
.qq2-app img { display: block; max-width: 100%; }
.qq2-app input, .qq2-app button { font-family: var(--qq-font); }

.qq2-main {
    max-width: var(--qq-container);
    margin: 0 auto;
    padding: 0 var(--qq-space-10);
}

.qq2-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Announcement bar ----------------------------------------- */

.qq2-announce {
    background: var(--qq-green);
    color: var(--qq-text-on-dark);
    font-size: var(--qq-text-sm);
    font-weight: var(--qq-weight-medium);
    display: flex;
    justify-content: center;
    gap: var(--qq-space-8);
    padding: var(--qq-space-3) var(--qq-space-10);
    flex-wrap: wrap;
}

.qq2-announce span.qq2-announce-sep { opacity: .5; }

/* ---------- Header ---------------------------------------------------- */

.qq2-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: var(--qq-blur);
    border-bottom: 1px solid var(--qq-border);
}

.qq2-header-inner {
    max-width: var(--qq-container);
    margin: 0 auto;
    padding: var(--qq-space-4) var(--qq-space-10);
    display: flex;
    align-items: center;
    gap: var(--qq-space-8);
}

.qq2-logo { display: flex; align-items: center; gap: var(--qq-space-3); flex-shrink: 0; }
.qq2-logo .qq2-logo-mark { width: auto; height: 38px; object-fit: contain; }
.qq2-logo .qq2-logo-wordmark { width: auto; height: 40px; object-fit: contain; }
.qq2-footer-brand .qq2-logo-wordmark { width: auto; height: 38px; object-fit: contain; }

.qq2-logo strong {
    font-size: var(--qq-text-h2);
    font-weight: var(--qq-weight-black);
    letter-spacing: var(--qq-tracking-logo);
    color: var(--qq-green);
}

.qq2-nav {
    display: flex;
    align-items: center;
    gap: var(--qq-space-6);
    font-size: var(--qq-text-sm);
    font-weight: var(--qq-weight-semibold);
    white-space: nowrap;
}

.qq2-nav a.active { color: var(--accent-text); }

.qq2-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--qq-space-3);
    background: var(--qq-sand);
    border: 1px solid transparent;
    border-radius: var(--qq-radius-pill);
    padding: var(--qq-space-3) var(--qq-space-5);
    min-width: 200px;
}

.qq2-search:focus-within { border-color: var(--qq-orange); }
.qq2-search svg { color: var(--qq-text-muted); flex-shrink: 0; }

.qq2-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: var(--qq-text-sm);
    color: var(--qq-text);
    min-width: 0;
}

.qq2-cart-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--qq-space-2);
    background: var(--qq-green);
    color: var(--qq-text-on-dark);
    border: none;
    border-radius: var(--qq-radius-pill);
    padding: var(--qq-space-3) var(--qq-space-5);
    font-size: var(--qq-text-sm);
    font-weight: var(--qq-weight-bold);
    cursor: pointer;
    transition: var(--qq-transition);
    flex-shrink: 0;
}

.qq2-cart-button:hover { transform: translateY(-2px); box-shadow: var(--qq-shadow-md); }
.qq2-cart-button:active { transform: scale(.96); }

.qq2-cart-count {
    background: var(--qq-orange);
    color: var(--fg-on-accent);
    border-radius: var(--qq-radius-pill);
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--qq-text-xs);
    font-weight: var(--qq-weight-black);
}

.qq2-menu { display: none; position: relative; flex-shrink: 0; }
.qq2-menu > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--qq-radius-pill); background: var(--qq-sand); color: var(--qq-green); }
.qq2-menu > summary::-webkit-details-marker { display: none; }

.qq2-menu nav {
    position: absolute;
    top: calc(100% + var(--qq-space-3));
    left: 0;
    min-width: 220px;
    background: var(--qq-white);
    border-radius: var(--qq-radius-md);
    box-shadow: var(--qq-shadow-lg);
    padding: var(--qq-space-4);
    display: flex;
    flex-direction: column;
    gap: var(--qq-space-3);
    font-weight: var(--qq-weight-semibold);
    z-index: 45;
}

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

.qq2-hero {
    position: relative;
    overflow: hidden;
    background: var(--qq-cream);
    border-radius: var(--qq-radius-xl);
    margin-top: var(--qq-space-10);
    padding: var(--qq-space-20) var(--qq-space-15);
}

.qq2-blob { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.qq2-blob-one { top: -80px; left: -60px; width: 420px; height: 420px; background: var(--qq-orange); opacity: .18; animation: qq-blob 11s ease-in-out infinite; }
.qq2-blob-two { bottom: -120px; right: 10%; width: 360px; height: 360px; background: var(--qq-green); opacity: .14; animation: qq-blob 9s ease-in-out infinite reverse; }

.qq2-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: var(--qq-space-15);
    align-items: center;
}

.qq2-hero-copy { animation: qq-rise .8s var(--qq-ease) both; }

.qq2-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--qq-space-2);
    background: var(--qq-white);
    border-radius: var(--qq-radius-pill);
    padding: var(--qq-space-2) var(--qq-space-5);
    font-size: var(--qq-text-sm);
    font-weight: var(--qq-weight-bold);
    box-shadow: var(--qq-shadow-sm);
}

.qq2-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--qq-orange); }

.qq2-hero h1 {
    font-size: var(--qq-text-hero);
    line-height: var(--qq-leading-tight);
    letter-spacing: var(--qq-tracking-display);
    font-weight: var(--qq-weight-black);
    margin: var(--qq-space-6) 0 var(--qq-space-5);
}

.qq2-hero h1 em { color: var(--accent-text); font-style: normal; }

.qq2-hero-lead {
    font-size: var(--qq-text-lg);
    color: var(--qq-text-secondary);
    max-width: 44ch;
    margin: 0 0 var(--qq-space-8);
}

.qq2-hero-actions {
    display: flex;
    align-items: center;
    gap: var(--qq-space-4);
    flex-wrap: wrap;
    margin-bottom: var(--qq-space-10);
}

.qq2-btn-primary {
    background: var(--qq-orange);
    color: var(--fg-on-accent);
    border: none;
    border-radius: var(--qq-radius-pill);
    padding: var(--qq-space-4) var(--qq-space-8);
    font-size: var(--qq-text-lg);
    font-weight: var(--qq-weight-bold);
    cursor: pointer;
    transition: var(--qq-transition);
}

/* Most primary CTAs are anchors, and .qq2-app a (0-1-1) outranks .qq2-btn-primary (0-1-0) — without
   these the label keeps the link colour and the admin's "white label on accent" toggle does nothing.
   Same pattern the outline button below already uses. */
.qq2-app a.qq2-btn-primary,
.qq2-app a.qq2-btn-primary:hover { color: var(--fg-on-accent); }
.qq2-btn-primary:hover { color: var(--fg-on-accent); transform: translateY(-2px); box-shadow: var(--qq-shadow-accent); }
.qq2-btn-primary:active { transform: scale(.96); }

.qq2-btn-ghost {
    background: var(--qq-white);
    color: var(--qq-green);
    border: none;
    border-radius: var(--qq-radius-pill);
    padding: var(--qq-space-4) var(--qq-space-8);
    font-size: var(--qq-text-lg);
    font-weight: var(--qq-weight-bold);
    box-shadow: var(--qq-shadow-sm);
    cursor: pointer;
    transition: var(--qq-transition);
}

.qq2-btn-ghost:hover { background: var(--qq-sand-deep); color: var(--qq-green); }

.qq2-hero-stats {
    display: flex;
    gap: var(--qq-space-8);
    flex-wrap: wrap;
    border-top: 1px solid var(--qq-border);
    padding-top: var(--qq-space-6);
}

.qq2-hero-stats strong { display: block; font-size: var(--qq-text-h2); font-weight: var(--qq-weight-black); }
.qq2-hero-stats span { font-size: var(--qq-text-sm); color: var(--qq-text-muted); }

.qq2-hero-media { position: relative; animation: qq-rise 1s var(--qq-ease) .15s both; }

.qq2-hero-frame {
    position: relative;
    height: 540px;
    border-radius: var(--qq-radius-xl);
    overflow: hidden;
    background: var(--qq-white);
    box-shadow: var(--qq-shadow-lg);
}

.qq2-hero-frame img, .qq2-hero-frame video { width: 100%; height: 100%; object-fit: cover; }

.qq2-hero-chip {
    position: absolute;
    bottom: var(--qq-space-6);
    right: calc(-1 * var(--qq-space-6));
    background: var(--qq-white);
    border-radius: var(--qq-radius-lg);
    box-shadow: var(--qq-shadow-md);
    padding: var(--qq-space-4) var(--qq-space-6);
    display: flex;
    align-items: center;
    gap: var(--qq-space-4);
}

.qq2-hero-chip figure {
    margin: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--qq-radius-md);
    overflow: hidden;
    background: var(--qq-sand);
    flex-shrink: 0;
}

.qq2-hero-chip figure img { width: 56px; height: 56px; object-fit: cover; }
.qq2-hero-chip b { display: block; font-size: var(--qq-text-sm); font-weight: var(--qq-weight-bold); }
.qq2-hero-chip span { font-size: var(--qq-text-sm); color: var(--accent-text); font-weight: var(--qq-weight-black); }

/* ---------- Section furniture ---------------------------------------- */

.qq2-section { padding: var(--qq-space-20) 0 0; }

.qq2-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--qq-space-8);
    flex-wrap: wrap;
    margin-bottom: var(--qq-space-8);
}

.qq2-title {
    font-size: var(--qq-text-display);
    line-height: var(--qq-leading-tight);
    letter-spacing: var(--qq-tracking-display);
    font-weight: var(--qq-weight-black);
    margin: 0;
}

.qq2-section-head p { color: var(--qq-text-muted); margin: var(--qq-space-2) 0 0; }

.qq2-section-link {
    font-weight: var(--qq-weight-bold);
    display: inline-flex;
    align-items: center;
    gap: var(--qq-space-2);
}

/* ---------- Category chips ------------------------------------------- */

.qq2-chips { display: flex; gap: var(--qq-space-3); flex-wrap: wrap; margin-bottom: var(--qq-space-8); }

.qq2-chip {
    border: 1px solid var(--qq-border);
    border-radius: var(--qq-radius-pill);
    padding: var(--qq-space-3) var(--qq-space-6);
    font-size: var(--qq-text-sm);
    font-weight: var(--qq-weight-bold);
    cursor: pointer;
    transition: var(--qq-transition-fast);
    background: var(--qq-white);
    color: var(--qq-text);
}

.qq2-chip:hover { border-color: var(--qq-orange); }
.qq2-chip.is-active { background: var(--qq-green); color: var(--qq-text-on-dark); }

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

.qq2-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--qq-space-6); }

.qq2-card {
    background: var(--qq-white);
    border-radius: var(--qq-radius-lg);
    padding: var(--qq-space-4);
    box-shadow: var(--qq-shadow-sm);
    transition: var(--qq-transition);
    display: flex;
    flex-direction: column;
    gap: var(--qq-space-4);
}

.qq2-card:hover { transform: translateY(-4px); box-shadow: var(--qq-shadow-lg); }

.qq2-card-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: var(--qq-radius-md);
    overflow: hidden;
    background: var(--qq-sand);
}

.qq2-card-media img { width: 100%; height: 100%; object-fit: cover; }

.qq2-badge {
    position: absolute;
    top: var(--qq-space-3);
    right: var(--qq-space-3);
    z-index: 2;
    background: var(--qq-orange);
    color: var(--fg-on-accent);
    border-radius: var(--qq-radius-pill);
    padding: var(--qq-space-1) var(--qq-space-4);
    font-size: var(--qq-text-xs);
    font-weight: var(--qq-weight-black);
    pointer-events: none;
}

.qq2-card-body { display: flex; flex-direction: column; gap: var(--qq-space-1); }
.qq2-card-meta { font-size: var(--qq-text-xs); color: var(--qq-text-muted); font-weight: var(--qq-weight-semibold); }

.qq2-card-body h3 {
    font-size: var(--qq-text-h3);
    font-weight: var(--qq-weight-bold);
    margin: 0;
    line-height: var(--qq-leading-snug);
}

.qq2-card-rating { font-size: var(--qq-text-sm); color: var(--qq-text-muted); }
.qq2-card-rating i { color: var(--accent-text); font-style: normal; }

.qq2-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--qq-space-3);
}

.qq2-price { display: flex; align-items: baseline; gap: var(--qq-space-2); }
.qq2-price strong { font-size: var(--qq-text-h3); font-weight: var(--qq-weight-black); }
.qq2-price del { font-size: var(--qq-text-sm); color: var(--qq-text-muted); }

.qq2-add {
    background: var(--qq-orange);
    color: var(--fg-on-accent);
    border: none;
    border-radius: var(--qq-radius-pill);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: var(--qq-transition);
    flex-shrink: 0;
}

.qq2-add:hover:not(:disabled) { box-shadow: var(--qq-shadow-accent); transform: translateY(-2px); }
.qq2-add:active:not(:disabled) { transform: scale(.9); }
.qq2-add:disabled { background: var(--qq-sand-deep); color: var(--qq-text-muted); cursor: not-allowed; }

.qq2-empty { text-align: center; color: var(--qq-text-muted); padding: var(--qq-space-15) 0; margin: 0; }

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

.qq2-offer {
    margin-top: var(--qq-space-20);
    background: var(--qq-green);
    color: var(--qq-text-on-dark);
    border-radius: var(--qq-radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.qq2-offer-copy { padding: var(--qq-space-15); }

.qq2-offer-tag {
    display: inline-block;
    background: var(--qq-orange);
    color: var(--fg-on-accent);
    border-radius: var(--qq-radius-pill);
    padding: var(--qq-space-2) var(--qq-space-5);
    font-size: var(--qq-text-sm);
    font-weight: var(--qq-weight-black);
}

.qq2-offer h2 {
    font-size: var(--qq-text-display);
    line-height: var(--qq-leading-tight);
    letter-spacing: var(--qq-tracking-display);
    font-weight: var(--qq-weight-black);
    margin: var(--qq-space-5) 0 var(--qq-space-4);
}

.qq2-offer p { color: rgba(253, 246, 236, .75); max-width: 40ch; margin: 0 0 var(--qq-space-8); }
.qq2-offer-buy { display: flex; align-items: center; gap: var(--qq-space-6); flex-wrap: wrap; }
.qq2-offer-price { display: flex; align-items: baseline; gap: var(--qq-space-3); }
.qq2-offer-price strong { font-size: var(--qq-text-h1); font-weight: var(--qq-weight-black); }
.qq2-offer-price del { color: rgba(253, 246, 236, .6); }
.qq2-offer-media { position: relative; height: 480px; overflow: hidden; }
.qq2-offer-media img { width: 100%; height: 480px; object-fit: cover; }

/* ---------- Value props ----------------------------------------------- */

.qq2-values { padding: var(--qq-space-20) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--qq-space-6); }

.qq2-value {
    background: var(--qq-white);
    border-radius: var(--qq-radius-lg);
    padding: var(--qq-space-8);
    box-shadow: var(--qq-shadow-sm);
}

.qq2-value-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--qq-radius-pill);
    background: var(--qq-orange-glow);
    color: var(--accent-text);
    display: grid;
    place-items: center;
    margin-bottom: var(--qq-space-5);
}

.qq2-value h3 { font-size: var(--qq-text-h3); font-weight: var(--qq-weight-bold); margin: 0 0 var(--qq-space-2); }
.qq2-value p { color: var(--qq-text-muted); margin: 0; }

/* ---------- Testimonials -----------------------------------------------
   Version 2 shows the version 1 slider (avatar, arrows, dots and stats); its
   markup and animation come from app.css, so these rules only fit it into the
   v2 container rhythm. */

.qq2-legacy-quotes { padding-top: var(--qq-space-20); }

.qq2-legacy-quotes .testimonials-section {
    background: var(--qq-white);
    border-radius: var(--qq-radius-xl);
    padding: var(--qq-space-15) var(--qq-space-10);
}

.qq2-legacy-quotes .legacy-container { padding: 0; }
.qq2-legacy-quotes .testimonial-slide h2 { font-family: var(--qq-font); }
.qq2-legacy-quotes .stats-grid { border-top-color: var(--qq-border); }

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

.qq2-footer {
    margin-top: var(--qq-space-20);
    background: var(--qq-green);
    color: var(--qq-text-on-dark);
    border-radius: var(--qq-radius-xl);
    padding: var(--qq-space-15);
}

.qq2-footer a { color: rgba(253, 246, 236, .8); }
.qq2-footer a:hover { color: var(--qq-orange); }
.qq2-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--qq-space-15); align-items: start; }
.qq2-footer-brand { display: flex; align-items: center; gap: var(--qq-space-3); margin-bottom: var(--qq-space-5); }

.qq2-footer-brand i {
    background: var(--qq-white);
    border-radius: var(--qq-radius-md);
    padding: var(--qq-space-2);
    display: grid;
    place-items: center;
}

.qq2-footer-brand i img { width: 32px; height: 32px; object-fit: contain; }

.qq2-footer-brand strong {
    font-size: var(--qq-text-h2);
    font-weight: var(--qq-weight-black);
    letter-spacing: var(--qq-tracking-logo);
}

.qq2-footer-about { color: rgba(253, 246, 236, .7); max-width: 34ch; margin: 0 0 var(--qq-space-6); }

.qq2-subscribe {
    display: flex;
    gap: var(--qq-space-2);
    background: rgba(255, 255, 255, .1);
    border-radius: var(--qq-radius-pill);
    padding: var(--qq-space-2);
}

.qq2-subscribe input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--qq-text-on-dark);
    padding: 0 var(--qq-space-4);
    font-size: var(--qq-text-sm);
    min-width: 0;
}

.qq2-subscribe input::placeholder { color: rgba(253, 246, 236, .55); }

.qq2-subscribe button {
    background: var(--qq-orange);
    color: var(--fg-on-accent);
    border: none;
    border-radius: var(--qq-radius-pill);
    padding: var(--qq-space-3) var(--qq-space-6);
    font-weight: var(--qq-weight-bold);
    cursor: pointer;
    transition: var(--qq-transition);
    flex-shrink: 0;
}

.qq2-subscribe button:hover { box-shadow: var(--qq-shadow-accent); }
.qq2-subscribe-note { font-size: var(--qq-text-sm); color: rgba(253, 246, 236, .7); margin: var(--qq-space-3) 0 0; }
.qq2-footer-col { display: flex; flex-direction: column; gap: var(--qq-space-3); }

.qq2-footer-col h4 {
    font-size: var(--qq-text-sm);
    font-weight: var(--qq-weight-black);
    opacity: .6;
    margin: 0 0 var(--qq-space-2);
}

.qq2-footer-base {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: var(--qq-space-10);
    padding-top: var(--qq-space-6);
    display: flex;
    justify-content: space-between;
    gap: var(--qq-space-6);
    flex-wrap: wrap;
    font-size: var(--qq-text-sm);
    color: rgba(253, 246, 236, .6);
}

/* ---------- Cart drawer ------------------------------------------------ */

.qq2-overlay {
    position: fixed;
    inset: 0;
    background: var(--qq-overlay);
    backdrop-filter: blur(4px);
    z-index: 50;
    transition: var(--qq-transition);
    opacity: 0;
    pointer-events: none;
}

.qq2-overlay.is-open { opacity: 1; pointer-events: auto; }

.qq2-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 420px;
    max-width: 92vw;
    background: var(--qq-white);
    z-index: 51;
    border-radius: 0 var(--qq-radius-xl) var(--qq-radius-xl) 0;
    box-shadow: var(--qq-shadow-drawer);
    display: flex;
    flex-direction: column;
    transition: transform var(--qq-transition);
    transform: translateX(-100%);
}

.qq2-drawer.is-open { transform: translateX(0); }

.qq2-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--qq-space-8) var(--qq-space-8) var(--qq-space-6);
    border-bottom: 1px solid var(--qq-border);
}

.qq2-drawer-head h2 { font-size: var(--qq-text-h2); font-weight: var(--qq-weight-black); margin: 0; }

.qq2-drawer-close {
    background: var(--qq-sand);
    border: none;
    border-radius: var(--qq-radius-pill);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--qq-green);
    transition: var(--qq-transition-fast);
}

.qq2-drawer-close:hover { background: var(--qq-sand-deep); }
.qq2-drawer-close:active { transform: scale(.9); }

.qq2-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--qq-space-6) var(--qq-space-8);
    display: flex;
    flex-direction: column;
    gap: var(--qq-space-5);
}

.qq2-line { display: flex; gap: var(--qq-space-4); align-items: center; }

.qq2-line-media {
    width: 72px;
    height: 72px;
    border-radius: var(--qq-radius-md);
    background: var(--qq-sand);
    color: var(--qq-text-muted);
    display: grid;
    place-items: center;
    font-size: var(--qq-text-xs);
    flex-shrink: 0;
    overflow: hidden;
}

.qq2-line-media img { width: 72px; height: 72px; object-fit: cover; }
.qq2-line-body { flex: 1; min-width: 0; }
.qq2-line-body b { font-weight: var(--qq-weight-bold); }
.qq2-line-body span { display: block; font-size: var(--qq-text-sm); color: var(--qq-text-muted); }

.qq2-stepper {
    display: flex;
    align-items: center;
    gap: var(--qq-space-3);
    background: var(--qq-sand);
    border-radius: var(--qq-radius-pill);
    padding: var(--qq-space-1) var(--qq-space-3);
}

.qq2-stepper button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--qq-green);
    font-size: var(--qq-text-lg);
    line-height: 1;
    width: 24px;
    height: 32px;
}

.qq2-stepper span { font-weight: var(--qq-weight-bold); min-width: 16px; text-align: center; }

.qq2-drawer-foot {
    border-top: 1px solid var(--qq-border);
    padding: var(--qq-space-6) var(--qq-space-8) var(--qq-space-8);
    display: flex;
    flex-direction: column;
    gap: var(--qq-space-4);
}

.qq2-drawer-row { display: flex; justify-content: space-between; font-size: var(--qq-text-sm); color: var(--qq-text-muted); }
.qq2-drawer-total { display: flex; justify-content: space-between; align-items: baseline; }
.qq2-drawer-total b { font-weight: var(--qq-weight-bold); }
.qq2-drawer-total strong { font-size: var(--qq-text-h2); font-weight: var(--qq-weight-black); }

.qq2-drawer-cta {
    background: var(--qq-green);
    color: var(--qq-text-on-dark);
    border: none;
    border-radius: var(--qq-radius-pill);
    padding: var(--qq-space-4);
    font-size: var(--qq-text-lg);
    font-weight: var(--qq-weight-bold);
    cursor: pointer;
    transition: var(--qq-transition);
}

.qq2-drawer-cta:hover { transform: translateY(-2px); box-shadow: var(--qq-shadow-md); }
.qq2-drawer-cta:active { transform: scale(.96); }
.qq2-drawer-note { text-align: center; font-size: var(--qq-text-xs); color: var(--qq-text-muted); margin: 0; }

/* ---------- Toast ------------------------------------------------------ */

.qq2-toast {
    position: fixed;
    bottom: var(--qq-space-8);
    right: var(--qq-space-8);
    z-index: 60;
    background: var(--qq-green);
    color: var(--qq-text-on-dark);
    border-radius: var(--qq-radius-pill);
    padding: var(--qq-space-4) var(--qq-space-8);
    font-weight: var(--qq-weight-bold);
    box-shadow: var(--qq-shadow-lg);
    transition: var(--qq-transition);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}

.qq2-toast.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Preview ribbon (admin previewing an unpublished version) --- */

.qq2-preview-bar {
    background: var(--qq-orange);
    color: var(--fg-on-accent);
    font-size: var(--qq-text-sm);
    font-weight: var(--qq-weight-bold);
    text-align: center;
    padding: var(--qq-space-2) var(--qq-space-10);
}

.qq2-preview-bar a { color: var(--qq-white); text-decoration: underline; }

/* ---------- Version 1 hero hosted inside the v2 shell -------------------
   Selected with v2_hero_style = "legacy". The hero keeps its own markup and
   animation from app.css; these rules only stop the .qq2-app link colours
   from bleeding into it and align it with the v2 container rhythm. */

.qq2-legacy-hero { margin-top: var(--qq-space-10); }
.qq2-legacy-hero .legacy-hero-wrapper { background: transparent; padding: 0; }
.qq2-legacy-hero .legacy-hero { border-radius: var(--qq-radius-xl); min-height: 78vh; }
.qq2-legacy-hero .legacy-container { padding: 0 var(--qq-space-15); }
.qq2-app .qq2-legacy-hero a.legacy-primary-button,
.qq2-app .qq2-legacy-hero a.legacy-primary-button:hover { color: var(--qq-white); }
.qq2-legacy-hero .legacy-hero-title .hero-word { color: var(--qq-green); }

@media (max-width: 760px) {
    .qq2-legacy-hero .legacy-hero { border-radius: var(--qq-radius-lg); }
    .qq2-legacy-hero .legacy-container { padding: 0 var(--qq-space-5); }
}

/* ==========================================================================
   Hero variants — ported from the "QumQum Hero Options" (1b) and
   "QumQum Home 1b" handoff files. The admin picks one in نسخة الموقع and it
   is stored in the v2_hero_style setting; only one renders at a time.
   ========================================================================== */

/* ---------- Shared shell, overlay copy and controls --------------------- */

.qq2-hero-shell {
    position: relative;
    display: grid;
    overflow: hidden;
    background: var(--qq-sand-deep);
    color: var(--qq-text-on-dark);
    animation: qq-rise .8s var(--qq-ease) both;

    /* Room the copy leaves at the bottom for the slide controls. */
    --qq-hero-controls: var(--qq-space-15);
}

.qq2-h-media,
.qq2-h-scrim { position: absolute; inset: 0; }
.qq2-h-media { width: 100%; height: 100%; object-fit: cover; }
.qq2-h-scrim { background: var(--qq-scrim-hero); pointer-events: none; }

.qq2-h-copy {
    position: relative;
    z-index: 1;
    align-self: center;
    justify-self: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: min(58%, 60ch);
    padding: var(--qq-space-15);
    padding-bottom: calc(var(--qq-space-15) + var(--qq-hero-controls));
}

.qq2-h-copy h1 {
    margin: var(--qq-space-5) 0 var(--qq-space-4);
    font-size: clamp(var(--qq-text-display), 5.2vw, var(--qq-text-hero));
    line-height: var(--qq-leading-display);
    letter-spacing: var(--qq-tracking-display);
    font-weight: var(--qq-weight-black);
    max-width: 15ch;
}

.qq2-h-copy p {
    margin: 0 0 var(--qq-space-8);
    font-size: var(--qq-text-lg);
    color: var(--qq-on-dark-soft);
    max-width: 44ch;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.qq2-h-kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--qq-space-2);
    background: var(--qq-on-dark-wash);
    border-radius: var(--qq-radius-pill);
    padding: var(--qq-space-2) var(--qq-space-5);
    font-size: var(--qq-text-sm);
    font-weight: var(--qq-weight-bold);
    color: var(--qq-orange);
}

.qq2-h-kicker i { width: var(--qq-space-2); height: var(--qq-space-2); border-radius: 50%; background: var(--qq-orange); }

.qq2-h-kicker-plain {
    font-size: var(--qq-text-lg);
    font-weight: var(--qq-weight-bold);
    color: var(--qq-orange);
    letter-spacing: .04em;
}

.qq2-h-cta { display: flex; align-items: center; gap: var(--qq-space-6); flex-wrap: wrap; }
.qq2-h-from { font-size: var(--qq-text-sm); color: var(--qq-on-dark-muted); }
.qq2-h-from strong { font-size: var(--qq-text-h3); font-weight: var(--qq-weight-black); color: var(--qq-text-on-dark); }

/* Same box as .qq2-btn-primary, minus the border width, so both CTAs line up. */
.qq2-h-btn-outline {
    border: 2px solid var(--qq-on-dark-line);
    border-radius: var(--qq-radius-pill);
    padding: calc(var(--qq-space-4) - 2px) calc(var(--qq-space-8) - 2px);
    font-size: var(--qq-text-lg);
    font-weight: var(--qq-weight-bold);
    transition: var(--qq-transition);
}

.qq2-app a.qq2-h-btn-outline { color: var(--qq-text-on-dark); }

.qq2-app a.qq2-h-btn-outline:hover {
    background: var(--qq-text-on-dark);
    border-color: var(--qq-text-on-dark);
    color: var(--qq-green);
    transform: translateY(-2px);
}

/* Slide controls ------------------------------------------------------- */

.qq2-h-arrows {
    position: absolute;
    z-index: 2;
    bottom: var(--qq-space-8);
    left: var(--qq-space-8);
    display: flex;
    gap: var(--qq-space-3);
}

.qq2-h-arrows button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: var(--qq-blur);
    color: var(--qq-green);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: var(--qq-transition);
}

.qq2-h-arrows button:hover { background: var(--qq-orange); color: var(--fg-on-accent); }
.qq2-h-arrows button:active { transform: scale(.92); }

.qq2-h-arrows-sides { position: static; }
.qq2-h-arrows-sides button { position: absolute; top: 50%; transform: translateY(-50%); box-shadow: var(--qq-shadow-sm); }
.qq2-h-arrows-sides button:active { transform: translateY(-50%) scale(.92); }
.qq2-h-arrows-sides .qq2-h-arrow-start { right: var(--qq-space-5); }
.qq2-h-arrows-sides .qq2-h-arrow-end { left: var(--qq-space-5); }

.qq2-h-thumbs {
    position: absolute;
    z-index: 2;
    bottom: var(--qq-space-8);
    right: var(--qq-space-15);
    display: flex;
    gap: var(--qq-space-3);
}

.qq2-h-thumb {
    width: 74px;
    height: 56px;
    border-radius: var(--qq-radius-sm);
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    border: 2px solid var(--qq-on-dark-line);
    background: var(--qq-sand);
    color: var(--qq-green);
    font-size: var(--qq-text-xs);
    font-weight: var(--qq-weight-bold);
    opacity: .72;
    transition: var(--qq-transition);
}

.qq2-h-thumb:hover { opacity: 1; }
.qq2-h-thumb.is-active { border-color: var(--qq-orange); opacity: 1; }
.qq2-h-thumb img { width: 100%; height: 100%; object-fit: cover; }

.qq2-h-dots { display: flex; gap: var(--qq-space-2); margin-top: var(--qq-space-10); }

.qq2-h-dots button {
    width: var(--qq-space-2);
    height: var(--qq-space-2);
    border-radius: var(--qq-radius-pill);
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(0, 48, 46, .18);
    transition: var(--qq-transition);
}

.qq2-h-dots button.is-active { width: var(--qq-space-8); background: var(--qq-orange); }

.qq2-h-dots-on-dark {
    position: absolute;
    z-index: 2;
    bottom: var(--qq-space-6);
    right: 0;
    left: 0;
    justify-content: center;
    margin: 0;
}

.qq2-h-dots-on-dark button { background: rgba(253, 246, 236, .45); }
.qq2-h-dots-on-dark button.is-active { background: var(--qq-orange); }

/* One focus treatment for every control that sits on photography. */
.qq2-h-copy a:focus-visible,
.qq2-h-arrows button:focus-visible,
.qq2-h-thumb:focus-visible,
.qq2-h-dots-on-dark button:focus-visible,
.qq2-h-promo:focus-visible {
    outline: none;
    box-shadow: var(--qq-focus-ring-strong);
}

.qq2-h-dots button:focus-visible { outline: none; box-shadow: var(--qq-focus-ring); }

/* ---------- QumQum Home 1b — rounded hero with thumbnail picker --------- */

.qq2-h1b-home {
    margin-top: var(--qq-space-6);
    border-radius: var(--qq-radius-xl);
    height: clamp(480px, 44vw, 620px);
    --qq-hero-controls: 56px;
}

/* ---------- Hero 1b — full-bleed banner --------------------------------- */

.qq2-h1b-banner {
    margin-inline: calc(var(--qq-space-10) * -1);
    height: clamp(440px, 40vw, 560px);
    --qq-hero-controls: var(--qq-space-8);
}

/* ---------- Promo banners ---------------------------------------------- */

.qq2-h-promos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--qq-space-6);
    margin-top: var(--qq-space-6);
}

.qq2-h-promo {
    position: relative;
    display: block;
    min-height: clamp(200px, 18vw, 248px);
    border-radius: var(--qq-radius-lg);
    overflow: hidden;
    background: var(--qq-sand-deep);
    box-shadow: var(--qq-shadow-sm);
    transition: var(--qq-transition);
}

/* Matches the lift on .qq2-card, so banners and product cards behave alike. */
.qq2-app .qq2-h-promo:hover { transform: translateY(-4px); box-shadow: var(--qq-shadow-lg); }
.qq2-h-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--qq-transition); }
.qq2-app .qq2-h-promo:hover img { transform: scale(1.04); }
.qq2-h-promo .qq2-h-scrim { background: var(--qq-scrim-card); }

.qq2-h-promo-copy {
    position: absolute;
    inset-block: 0;
    inset-inline-start: auto;
    inset-inline-end: 0;
    width: 76%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--qq-space-1);
    padding: var(--qq-space-6);
    color: var(--qq-text-on-dark);
}

.qq2-h-promo-kicker { font-size: var(--qq-text-sm); font-weight: var(--qq-weight-semibold); color: var(--accent-text); }

.qq2-h-promo-title {
    font-size: var(--qq-text-h1);
    line-height: var(--qq-leading-display);
    font-weight: var(--qq-weight-black);
    letter-spacing: var(--qq-tracking-display);
}

.qq2-h-promo-line { font-size: var(--qq-text-sm); color: var(--qq-on-dark-soft); }

.qq2-h-promo-cta {
    margin-top: var(--qq-space-4);
    align-self: flex-start;
    background: var(--qq-white);
    color: var(--qq-green);
    border-radius: var(--qq-radius-pill);
    padding: var(--qq-space-2) var(--qq-space-6);
    font-size: var(--qq-text-sm);
    font-weight: var(--qq-weight-bold);
    transition: var(--qq-transition);
}

.qq2-app .qq2-h-promo:hover .qq2-h-promo-cta { background: var(--qq-orange); color: var(--fg-on-accent); }

/* ---------- Inner pages under the v2 shell ----------------------------- */

.qq2-page {
    background: var(--qq-white);
    border-radius: var(--qq-radius-xl);
    margin-top: var(--qq-space-10);
    padding: var(--qq-space-10);
}

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

@media (max-width: 1200px) {
    .qq2-hero { padding: var(--qq-space-15) var(--qq-space-10); }
    .qq2-hero h1 { font-size: 3.4rem; }
    .qq2-hero-frame, .qq2-offer-media, .qq2-offer-media img { height: 420px; }
    .qq2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .qq2-h-copy { width: min(68%, 60ch); padding: var(--qq-space-10); padding-bottom: calc(var(--qq-space-10) + var(--qq-hero-controls)); }
    .qq2-h-thumbs { right: var(--qq-space-10); }
}

@media (max-width: 1024px) {
    .qq2-nav { display: none; }
    .qq2-menu { display: block; }
    .qq2-header-inner, .qq2-main { padding-left: var(--qq-space-6); padding-right: var(--qq-space-6); }
    .qq2-hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--qq-space-10); }
    .qq2-hero-chip { right: var(--qq-space-6); }
    .qq2-offer { grid-template-columns: minmax(0, 1fr); }
    .qq2-offer-copy { padding: var(--qq-space-10); }
    .qq2-values { grid-template-columns: minmax(0, 1fr); }
    .qq2-footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--qq-space-10); }

    /* Hero: the copy stops sharing the frame with the image and covers it instead. */
    .qq2-h1b-banner { margin-inline: calc(var(--qq-space-6) * -1); }
    .qq2-h-copy { width: 100%; padding: var(--qq-space-10) var(--qq-space-8); padding-bottom: calc(var(--qq-space-10) + var(--qq-hero-controls)); }
    .qq2-h-scrim { background: var(--qq-scrim-hero-narrow); }
    .qq2-h-promos { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .qq2-app { padding-bottom: var(--qq-space-10); }
    .qq2-search { display: none; }
    .qq2-hero { padding: var(--qq-space-10) var(--qq-space-6); border-radius: var(--qq-radius-lg); }
    .qq2-hero h1 { font-size: 2.6rem; }
    .qq2-title { font-size: 2rem; }
    .qq2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--qq-space-4); }
    .qq2-section, .qq2-values { padding-top: var(--qq-space-15); }
    .qq2-offer, .qq2-footer { border-radius: var(--qq-radius-lg); margin-top: var(--qq-space-15); }
    .qq2-legacy-quotes { padding-top: var(--qq-space-15); }
    .qq2-legacy-quotes .testimonials-section { border-radius: var(--qq-radius-lg); padding: var(--qq-space-8) var(--qq-space-5); }
    .qq2-footer { padding: var(--qq-space-8); }
    .qq2-hero-frame, .qq2-offer-media, .qq2-offer-media img { height: 320px; }
    .qq2-toast { right: var(--qq-space-4); left: var(--qq-space-4); text-align: center; }

    .qq2-h1b-home, .qq2-h1b-banner { height: 460px; }
    .qq2-h1b-home { border-radius: var(--qq-radius-lg); --qq-hero-controls: 42px; }
    .qq2-h-copy { padding: var(--qq-space-8) var(--qq-space-6); padding-bottom: calc(var(--qq-space-8) + var(--qq-hero-controls)); }
    .qq2-h-copy h1 { font-size: clamp(var(--qq-text-h1), 8vw, var(--qq-text-display)); }
    .qq2-h-copy p { margin-bottom: var(--qq-space-6); font-size: var(--qq-text-body); }
    .qq2-h-thumbs { right: var(--qq-space-6); bottom: var(--qq-space-5); gap: var(--qq-space-2); }
    .qq2-h-thumb { width: 54px; height: 42px; }
    .qq2-h-arrows { display: none; }
}

@media (max-width: 460px) {
    .qq2-grid { grid-template-columns: minmax(0, 1fr); }
    .qq2-hero-chip { position: static; margin-top: var(--qq-space-4); }
    .qq2-h-cta { gap: var(--qq-space-3); }
}

@media (prefers-reduced-motion: reduce) {
    .qq2-blob, .qq2-hero-copy, .qq2-hero-media, .qq2-hero-shell { animation: none; }
    .qq2-app .qq2-h-promo:hover, .qq2-app .qq2-h-promo:hover img { transform: none; }
    .qq2-app * { transition-duration: .01ms !important; }
}
