/* ============================================================================
 * pages/store.css — Store page treatment per AI brief §7.5.7.
 * 2026-06-15.
 *
 *  Accent: butter (joyful warmth — the shelf).
 *  Composition: hero with warm sunrise, category chips, featured row;
 *  section order: hero → categories → featured → categories grid → close.
 * ========================================================================== */

body[data-section="store"] {
    --page-accent: var(--jp-butter);
    background: var(--jp-cream-200);
    color: var(--jp-ink);
}

/* ─── Hero composition ────────────────────────────────────────────────── */
body[data-section="store"] .store-hero {
    position: relative;
    min-height: clamp(480px, 65vh, 640px);
    background: linear-gradient(
        180deg,
        var(--jp-gold-100) 0%,
        var(--jp-peach-100) 60%,
        var(--jp-cream-200) 100%
    );
    overflow: hidden;
    isolation: isolate;
}
body[data-section="store"] .store-hero__sun {
    position: absolute;
    top: -8%;
    right: 8%;
    width: 320px;
    aspect-ratio: 1;
    background: radial-gradient(
        circle,
        var(--page-accent) 0%,
        var(--jp-gold-200) 40%,
        transparent 70%
    );
    filter: blur(40px);
    z-index: 1;
}

body[data-section="store"] .store-hero__inner {
    position: relative;
    z-index: 3;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(var(--s-7), 10vh, var(--s-9)) var(--s-5);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--s-5);
}
body[data-section="store"] .store-hero__kicker {
    grid-column: 2 / span 8;
    font-family: var(--ff-sans);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--jp-gold-400);
}
body[data-section="store"] .store-hero__h1 {
    grid-column: 2 / span 9;
    font-family: var(--ff-serif);
    font-style: italic;
    font-weight: 500;
    font-size: var(--fs-h1);
    line-height: 1.06;
    color: var(--jp-ink);
    margin: var(--s-3) 0 var(--s-5);
}
body[data-section="store"] .store-hero__lede {
    grid-column: 2 / span 8;
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: var(--fs-lede);
    line-height: 1.55;
    color: var(--jp-ink-soft);
}

body[data-section="store"] .hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.22;
}

/* ─── Category chips ─────────────────────────────────────────────────── */
body[data-section="store"] .store-hero__categories {
    grid-column: 2 / span 10;
    display: flex;
    gap: var(--s-3);
    flex-wrap: wrap;
    margin-top: var(--s-5);
}
body[data-section="store"] .store-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-4);
    border-radius: var(--r-pill);
    background: var(--jp-cream-100);
    border: 1px solid var(--jp-cream-400);
    font-family: var(--ff-sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--jp-ink);
    text-decoration: none;
    transition: background var(--dur-fast) var(--cb-ease),
                box-shadow var(--dur-fast) var(--cb-ease),
                transform var(--dur-fast) var(--cb-ease);
}
body[data-section="store"] .store-cat-chip:hover {
    background: var(--page-accent);
    transform: translateY(-1px);
    box-shadow: var(--sh-sm);
}
body[data-section="store"] .store-cat-chip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cat-color, var(--page-accent));
}

/* ─── Featured row ───────────────────────────────────────────────────── */
body[data-section="store"] .store-featured {
    background: var(--jp-cream-100);
    padding: var(--s-8) var(--s-5);
}
body[data-section="store"] .store-featured__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--s-5);
    max-width: 1280px;
    margin: 0 auto;
}
body[data-section="store"] .store-featured__grid > * {
    grid-column: span 4;
}

/* ─── Per-page accent ─────────────────────────────────────────────────── */
body[data-section="store"] .nav-icon[aria-current="page"]::after {
    background: linear-gradient(90deg, var(--page-accent), var(--jp-gold-300));
}
body[data-section="store"] .btn-primary,
body[data-section="store"] .btn--gold {
    background: var(--jp-gold-300);
    color: var(--jp-ink);
}
body[data-section="store"] .btn-primary:hover { background: var(--jp-gold-400); }
body[data-section="store"] a:focus-visible,
body[data-section="store"] button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--page-accent) 45%, transparent);
}

@media (max-width: 900px) {
    body[data-section="store"] .store-featured__grid > * { grid-column: span 6; }
}
@media (max-width: 600px) {
    body[data-section="store"] .store-featured__grid > * { grid-column: 1 / -1; }
    body[data-section="store"] .store-hero__h1 { grid-column: 1 / -1; }
    body[data-section="store"] .store-hero__kicker { grid-column: 1 / -1; }
    body[data-section="store"] .store-hero__lede { grid-column: 1 / -1; }
    body[data-section="store"] .store-hero__categories { grid-column: 1 / -1; }
}
