/* ==========================================================================
   Demo home pages (/demo-1 … /demo-10)
   ========================================================================== */

body.demo-home {
    padding-bottom: 0;
    background: var(--bg);
}

.demo-main { padding: 0 0 8px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.demo-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 5vw, 66px) 0;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 88% 8%, var(--accent-soft), transparent 42%),
        var(--surface);
}

.demo-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    align-items: center;
    gap: clamp(28px, 6vw, 76px);
}

.demo-hero-copy h1 {
    margin: 0 0 14px;
    font-family: var(--display);
    font-size: clamp(2.3rem, 4.6vw, 4rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.04em;
    color: var(--ink);
}

.demo-hero-lede {
    max-width: 50ch;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--muted);
}

.demo-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.demo-hero-actions .shop-btn { min-height: 44px; }

.demo-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--muted);
}
.demo-hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.demo-hero-meta i { color: var(--accent); font-size: 12px; }

.demo-hero-media {
    position: relative;
    aspect-ratio: 4 / 3.4;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    box-shadow: var(--shadow-md);
}
.demo-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-hero-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--faint); font-size: 40px; }

.demo-hero-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ── Trust strip ──────────────────────────────────────────────────────── */

.demo-trust { border-bottom: 1px solid var(--line); background: var(--surface); }
.demo-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 16px 0;
}
.demo-trust-grid > div { display: flex; align-items: center; gap: 9px; }
.demo-trust-grid i {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--bg);
    color: var(--accent);
    font-size: 13px;
}
.demo-trust-grid strong { display: block; font-size: 10.5px; color: var(--ink); }
.demo-trust-grid small { display: block; margin-top: 1px; font-size: 9px; color: var(--faint); }

/* ── Sections ─────────────────────────────────────────────────────────── */

.demo-section { padding: clamp(34px, 5vw, 58px) 0; }
.demo-section + .demo-section { padding-top: 0; }

.demo-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 22px;
}
.demo-section-head > div { max-width: 640px; }
.demo-section-head h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.03em;
    color: var(--ink);
}
.demo-section-head > p { max-width: 36ch; margin: 0; text-align: right; font-size: 11.5px; line-height: 1.7; color: var(--muted); }

/* ── Categories ───────────────────────────────────────────────────────── */

.demo-category-row { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-category {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px 9px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--ui);
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
}
.demo-category > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
}
.demo-category strong { display: block; font-size: 10.5px; line-height: 1.2; }
.demo-category small { display: block; margin-top: 1px; font-size: 8.5px; color: var(--faint); }
.demo-category:hover { border-color: var(--accent); transform: translateY(-1px); }
.demo-category.is-active { border-color: var(--accent); background: var(--accent-soft); }

/* ── Product grid ─────────────────────────────────────────────────────── */

.demo-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.demo-product {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.demo-product:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }

.demo-product-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / .92;
    overflow: hidden;
    background: var(--surface-2);
}
.demo-product-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.demo-product:hover .demo-product-media img { transform: scale(1.035); }
.demo-product-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--faint); font-size: 28px; }
.demo-product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.demo-product-body { padding: 13px 14px 15px; }
.demo-product-cat { font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.demo-product h3 { margin: 5px 0 12px; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.demo-product h3 a { color: var(--ink); text-decoration: none; }
.demo-product h3 a:hover { color: var(--accent); }

.demo-product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.demo-product-price { display: flex; align-items: baseline; gap: 6px; }
.demo-product-price strong { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.demo-product-price s { font-size: 10px; color: var(--faint); }
.demo-product-link {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10px;
}

.demo-empty {
    padding: 42px;
    text-align: center;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
}
.demo-empty i { font-size: 28px; color: var(--faint); }
.demo-empty h3 { margin: 10px 0 4px; font-family: var(--display); font-size: 19px; }
.demo-empty p { margin: 0; font-size: 11.5px; color: var(--muted); }
.demo-empty[hidden] { display: none; }

/* ── Editorial ────────────────────────────────────────────────────────── */

.demo-editorial { background: var(--surface-2); }
.demo-editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    align-items: center;
    gap: clamp(28px, 6vw, 72px);
}
.demo-editorial-media {
    position: relative;
    aspect-ratio: 4 / 3.2;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.demo-editorial-media img { width: 100%; height: 100%; object-fit: cover; }
.demo-editorial-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.demo-editorial-copy h2 {
    margin: 0 0 12px;
    font-family: var(--display);
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.03em;
}
.demo-editorial-copy > p:not(.shop-kicker) { max-width: 50ch; margin: 0; font-size: 13px; line-height: 1.75; color: var(--muted); }
.demo-editorial-list { display: grid; gap: 8px; margin: 18px 0 22px; padding: 0; list-style: none; }
.demo-editorial-list li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 500; }
.demo-editorial-list i {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 9px;
}
.demo-editorial-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.demo-editorial-price { font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: -.02em; }

/* ── Reviews ──────────────────────────────────────────────────────────── */

.demo-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.demo-review { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.demo-stars { display: inline-flex; gap: 2px; color: var(--gold); font-size: 10.5px; }
.demo-review blockquote {
    margin: 12px 0 20px;
    font-family: var(--display);
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -.01em;
    color: var(--ink);
}
.demo-review footer { display: flex; align-items: center; gap: 10px; padding-top: 13px; border-top: 1px solid var(--line); }
.demo-review footer > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 9px;
    font-weight: 700;
}
.demo-review footer strong { display: block; font-size: 10.5px; }
.demo-review footer small { display: block; margin-top: 1px; font-size: 9px; color: var(--faint); }
.demo-review footer small a { color: var(--muted); text-decoration: none; }
.demo-review footer small a:hover { color: var(--accent); }

/* ── Design switcher ──────────────────────────────────────────────────── */

.demo-design-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.demo-design-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    text-decoration: none;
    transition: border-color .15s, transform .15s, background .15s;
}
.demo-design-link:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--accent-soft); }
.demo-design-link.is-active { border-color: var(--accent); background: var(--accent-soft); }
.demo-design-link > span { font-family: var(--display); font-size: 18px; font-style: italic; color: var(--accent); line-height: 1; }
.demo-design-link strong { display: block; font-size: 10px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.demo-design-link small { display: flex; align-items: center; gap: 3px; margin-top: 4px; font-size: 8.5px; color: var(--faint); }

/* ── CTA ──────────────────────────────────────────────────────────────── */

.demo-cta { padding: 0 0 clamp(38px, 5vw, 62px); }
.demo-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(26px, 4vw, 42px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 84% -30%, rgba(255, 255, 255, .16), transparent 48%),
        var(--ink-panel);
    color: var(--on-ink);
}
.demo-cta-card h2 { margin: 0 0 6px; font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; }
.demo-cta-card p:not(.shop-kicker) { margin: 0; font-size: 11.5px; color: var(--on-ink-dim); }
.demo-cta-card .shop-kicker { color: var(--accent-2); }
.demo-cta-card .shop-btn--primary { flex-shrink: 0; }

/* ── Per-design character ─────────────────────────────────────────────── */

body.shop[data-shop-design="7"] .demo-hero-media,
body.shop[data-shop-design="9"] .demo-hero-media {
    border-radius: 230px 230px 20px 20px;
}
body.shop[data-shop-design="7"] .demo-product,
body.shop[data-shop-design="7"] .demo-review { border-radius: 0; }
body.shop[data-shop-design="7"] .demo-editorial { background: transparent; }

body.shop[data-shop-design="8"] .demo-hero { background: radial-gradient(circle at 88% 8%, rgba(84, 230, 255, .12), transparent 42%), var(--bg); }
body.shop[data-shop-design="8"] .demo-hero-copy h1 { text-transform: uppercase; letter-spacing: -.035em; }
body.shop[data-shop-design="8"] .demo-hero-media { border: 1px solid var(--accent); border-radius: 6px; box-shadow: 0 0 0 1px rgba(200, 255, 61, .22), 0 26px 60px -34px rgba(200, 255, 61, .4); }
body.shop[data-shop-design="8"] .demo-product,
body.shop[data-shop-design="8"] .demo-review,
body.shop[data-shop-design="8"] .demo-design-link { border-radius: 5px; }
body.shop[data-shop-design="8"] .demo-cta-card { background: #050607; }
body.shop[data-shop-design="8"] .shop-kicker { font-family: 'IBM Plex Mono', monospace; }

body.shop[data-shop-design="9"] .demo-hero { background: radial-gradient(circle at 12% -8%, #F7DDE3, transparent 36%), radial-gradient(circle at 95% 8%, #FBE8D9, transparent 32%), var(--bg); }
body.shop[data-shop-design="9"] .demo-hero-copy h1,
body.shop[data-shop-design="9"] .demo-section-head h2 { font-family: var(--display); }
body.shop[data-shop-design="9"] .demo-product,
body.shop[data-shop-design="9"] .demo-review,
body.shop[data-shop-design="9"] .demo-design-link { border-radius: 20px; }
body.shop[data-shop-design="9"] .demo-hero-media { border: 0; background: var(--surface-2); }

body.shop[data-shop-design="10"] .demo-hero-media { order: -1; border-radius: 4px; background-image: linear-gradient(rgba(11, 99, 246, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 99, 246, .055) 1px, transparent 1px); background-size: 24px 24px; }
body.shop[data-shop-design="10"] .demo-hero-copy h1 { font-weight: 700; }
body.shop[data-shop-design="10"] .demo-product,
body.shop[data-shop-design="10"] .demo-review,
body.shop[data-shop-design="10"] .demo-design-link { border-radius: 4px; }
body.shop[data-shop-design="10"] .demo-product-price strong,
body.shop[data-shop-design="10"] .demo-editorial-price { font-family: 'IBM Plex Mono', monospace; color: var(--accent); }

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1120px) {
    .demo-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .demo-design-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .demo-hero-grid,
    .demo-editorial-grid { grid-template-columns: minmax(0, 1fr); }
    .demo-hero-media { order: 0; aspect-ratio: 4 / 3; }
    .demo-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .demo-review-grid { grid-template-columns: minmax(0, 1fr); }
    .demo-section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .demo-section-head > p { text-align: left; }
}

@media (max-width: 720px) {
    .demo-hero { padding: 24px 0 30px; }
    .demo-hero-copy h1 { font-size: clamp(2rem, 8vw, 2.7rem); }
    .demo-hero-actions { flex-direction: column; }
    .demo-hero-actions .shop-btn { width: 100%; }
    .demo-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .demo-design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .demo-category-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .demo-category { flex: 0 0 auto; }
    .demo-cta-card { flex-direction: column; align-items: flex-start; }
    .demo-cta-card .shop-btn { width: 100%; }
    .demo-trust-grid { gap: 12px; }
    body.shop[data-shop-design="7"] .demo-hero-media,
    body.shop[data-shop-design="9"] .demo-hero-media { border-radius: 140px 140px 16px 16px; }
    body.shop[data-shop-design="10"] .demo-hero-media { order: 0; }
}

/* Demo-themed order success */
.demo-success-main { padding: 34px 0 24px; }
body.demo-home .order-wrap { width: min(1280px, calc(100% - 48px)); }
body.demo-home .order-track-page { max-width: none; }

@media (max-width: 720px) {
    .demo-success-main { padding: 20px 0 12px; }
    body.demo-home .order-wrap { width: calc(100% - 28px); }
}

/* Keep badges inside the arched gallery curve on designs 7 and 9 */
body.shop[data-shop-design="7"] .demo-hero-badge,
body.shop[data-shop-design="9"] .demo-hero-badge {
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
@media (max-width: 720px) {
    body.shop[data-shop-design="7"] .demo-hero-badge,
    body.shop[data-shop-design="9"] .demo-hero-badge { top: 18px; }
}
