/* ==========================================================================
   SanoMano — design tokens
   ========================================================================== */
:root {
    --cream: #fdf6ec;
    --dark: #2c1a10;
    --dark-soft: #4a3527;
    --text-muted: #7a6a5c;

    --orange: #b35a1c;
    --orange-dark: #7a3d12;

    --yellow: #f9c74f;
    --yellow-card: #feeaa8;

    --purple: #edd9f5;
    --purple-deep: #c4a8e0;

    --green-card: #bdd0ab;
    --green-deep: #2e5940;

    --peach-card: #f4c8b0;
    --peach-deep: #e0a184;

    --white: #ffffff;
    --border: rgba(44, 26, 16, 0.12);

    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;

    --shadow-soft: 0 12px 30px rgba(44, 26, 16, 0.08);
    --shadow-card: 0 8px 20px rgba(44, 26, 16, 0.06);
    --shadow-lift: 0 22px 44px rgba(44, 26, 16, 0.16);
    --shadow-glow: 0 0 0 6px rgba(179, 90, 28, 0.1);

    --gradient-warm: linear-gradient(135deg, var(--orange) 0%, #d97e34 100%);
    --gradient-hero-bg: radial-gradient(60% 60% at 80% 20%, rgba(196, 168, 224, 0.35) 0%, rgba(196, 168, 224, 0) 70%),
                        radial-gradient(50% 50% at 10% 90%, rgba(249, 199, 79, 0.35) 0%, rgba(249, 199, 79, 0) 70%);
    --gradient-yellow-band: linear-gradient(180deg, #fbd77a 0%, var(--yellow) 100%);
    --gradient-purple-band: linear-gradient(180deg, #f2e4f8 0%, var(--purple) 100%);
    --gradient-dark-band: linear-gradient(180deg, #241207 0%, var(--dark) 100%);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.35s var(--ease-out);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--cream);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    color: var(--dark);
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease-out); }

img { max-width: 100%; display: block; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

section { position: relative; }

/* ==========================================================================
   Buttons & badges
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.25s var(--ease-out);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(0.97); transition-duration: 0.1s; }

.btn-primary {
    background: var(--gradient-warm);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(179, 90, 28, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 28px rgba(179, 90, 28, 0.42), var(--shadow-glow); }

.btn-outline {
    background: var(--white);
    color: var(--dark);
    border-color: rgba(44, 26, 16, 0.12);
}
.btn-outline:hover { border-color: var(--dark); box-shadow: var(--shadow-card); }

.btn-green {
    background: linear-gradient(135deg, var(--green-deep) 0%, #3f7d55 100%);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(63, 125, 85, 0.3);
}
.btn-green:hover { box-shadow: 0 14px 28px rgba(63, 125, 85, 0.4); }

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.badge-purple { background: var(--purple); color: #6a3f96; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--orange-dark);
    margin-bottom: 10px;
}
.eyebrow-green { color: var(--green-deep); }

.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.015em; }
.section-subtitle { color: var(--dark-soft); max-width: 560px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 246, 236, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(44, 26, 16, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 24px;
}

.brand-logo { height: 44px; width: auto; }

.site-nav {
    display: flex;
    gap: 32px;
    font-weight: 500;
    font-size: 0.95rem;
}
.site-nav a {
    position: relative;
    padding-bottom: 4px;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-warm);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease-out);
}
.site-nav a:hover { color: var(--orange-dark); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-header {
    transition: box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.site-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(44, 26, 16, 0.08);
    background: rgba(253, 246, 236, 0.98);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-cart-link {
    position: relative;
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
}
.header-cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--orange-dark);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}
.header-account-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    text-decoration: none;
    white-space: nowrap;
}
.header-account-link:hover { color: var(--orange-dark); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    padding: 64px 0 100px;
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-hero-bg);
    pointer-events: none;
    z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 4.8vw, 3.6rem);
    letter-spacing: -0.02em;
}
.hero-copy h1 em {
    font-style: italic;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.trust-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-media { position: relative; }

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.hero-media:hover .hero-image { transform: scale(1.015); box-shadow: var(--shadow-lift); }

@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floating-badge {
    position: absolute;
    background: var(--white);
    border-radius: 999px;
    box-shadow: var(--shadow-card);
}
.floating-badge-top {
    top: -18px;
    right: -10px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: gentle-float 4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .floating-badge-top { animation: none; }
}
.floating-badge-bottom {
    left: -20px;
    bottom: -20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--text-muted);
}
.floating-badge-bottom strong { color: var(--dark); font-size: 0.95rem; }

/* ==========================================================================
   Wave dividers
   ========================================================================== */
.wave-top { position: absolute; top: 0; left: 0; width: 100%; overflow: hidden; line-height: 0; transform: translateY(-99%); }
.wave-bottom { position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; line-height: 0; transform: translateY(99%); }
.wave-top svg, .wave-bottom svg { width: 100%; height: 70px; display: block; }

/* ==========================================================================
   Characters
   ========================================================================== */
.characters {
    background: var(--gradient-yellow-band);
    padding: 90px 0 110px;
    text-align: center;
}
.characters .section-title { margin-bottom: 40px; }

.character-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.character-card {
    display: block;
    border-radius: var(--radius-md);
    padding: 32px 22px;
    text-align: center;
    border: 1px solid rgba(44, 26, 16, 0.06);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.character-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}
.character-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--white);
    font-size: 1.8rem;
    margin-bottom: 16px;
    overflow: hidden;
    transition: transform 0.35s var(--ease-out);
}
.character-icon img { width: 100%; height: 100%; object-fit: cover; }
.character-card:hover .character-icon { transform: scale(1.1) rotate(-4deg); }
.character-card h3 { margin-bottom: 2px; font-size: 1.15rem; }
.character-title { font-weight: 600; font-size: 0.85rem; color: var(--dark-soft); margin-bottom: 10px; }
.character-desc { font-size: 0.88rem; color: var(--dark-soft); margin-bottom: 0; }

.card-purple { background: var(--purple); }
.card-yellow { background: var(--yellow-card); }
.card-green { background: var(--green-card); }
.card-peach { background: var(--peach-card); }

/* ==========================================================================
   Stories
   ========================================================================== */
.stories { padding: 100px 0; }

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 16px;
    flex-wrap: wrap;
}
.section-heading-row .section-title { margin-bottom: 0; }

.view-all-link {
    font-weight: 600;
    color: var(--orange-dark);
    white-space: nowrap;
}
.view-all-link:hover { text-decoration: underline; }

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.story-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.story-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.story-emoji { font-size: 2.5rem; transition: transform 0.4s var(--ease-out); }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-card:hover .story-emoji { transform: scale(1.15); }
.thumb-purple { background: var(--purple-deep); }
.thumb-yellow { background: var(--orange); }
.thumb-green { background: #78b960; }

.play-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--dark);
    box-shadow: var(--shadow-card);
}

.story-body { padding: 18px 20px 22px; }
.story-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.story-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
}
.story-rating { color: var(--orange); margin-left: auto; letter-spacing: 1px; }

/* ==========================================================================
   World of SanoMano
   ========================================================================== */
.world {
    background: var(--gradient-purple-band);
    padding: 90px 0 110px;
    text-align: center;
}
.world .section-subtitle { margin: 0 auto 40px; }

.world-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.world-card {
    display: block;
    border-radius: var(--radius-md);
    padding: 30px 22px;
    text-align: left;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
a.world-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}
.world-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.55);
    font-size: 1.4rem;
    margin-bottom: 16px;
    transition: transform 0.35s var(--ease-out);
}
a.world-card:hover .world-icon { transform: scale(1.1) rotate(-4deg); }
.world-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.world-card p { font-size: 0.85rem; color: var(--dark-soft); margin-bottom: 0; }

/* ==========================================================================
   Parents
   ========================================================================== */
.parents { padding: 100px 0; }

.parents-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.parents-media { position: relative; }
.parents-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.testimonial-bubble {
    position: absolute;
    bottom: -24px;
    right: -16px;
    max-width: 240px;
    background: var(--green-deep);
    color: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
    font-size: 0.85rem;
    font-style: italic;
    box-shadow: var(--shadow-soft);
}
.testimonial-bubble footer {
    margin-top: 8px;
    font-style: normal;
    font-weight: 600;
    font-size: 0.78rem;
}

.trust-list { margin: 22px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.trust-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 0.95rem; }
.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--green-card);
    color: var(--green-deep);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter {
    background: var(--gradient-dark-band);
    color: var(--white);
    padding: 90px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.newsletter::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(50% 80% at 50% 0%, rgba(179, 90, 28, 0.18) 0%, rgba(179, 90, 28, 0) 70%);
    pointer-events: none;
}
.newsletter .container { position: relative; }
.newsletter .moon { font-size: 2rem; display: block; margin-bottom: 16px; }
.newsletter h2 { color: var(--white); }
.newsletter p { color: rgba(255,255,255,0.65); max-width: 480px; margin-left: auto; margin-right: auto; }

.newsletter-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 460px;
    margin: 28px auto 12px;
    flex-wrap: wrap;
}
.newsletter-form input {
    flex: 1;
    min-width: 220px;
    padding: 14px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { outline: 2px solid var(--orange); }

.newsletter-note { font-size: 0.78rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.75);
    padding-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding: 40px 24px 50px;
}

.footer-logo { height: 44px; width: auto; margin-bottom: 14px; border-radius: 8px; background: var(--cream); padding: 4px; }
.footer-brand p { font-size: 0.88rem; max-width: 300px; }

.social-links { display: flex; gap: 16px; font-size: 0.85rem; font-weight: 500; }
.social-links a:hover { color: var(--white); }

.footer-links h3 {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
}
.footer-policies { display: flex; gap: 20px; }
.footer-policies a:hover { color: var(--white); }

/* ==========================================================================
   Interior page hero
   ========================================================================== */
.page-hero {
    padding: 64px 0 56px;
    text-align: center;
}
.page-hero-inner { max-width: 640px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero-subtitle { color: var(--text-muted); font-size: 1.05rem; }

.breadcrumb-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}
.breadcrumb-back:hover { color: var(--dark); }

/* ==========================================================================
   Search bar
   ========================================================================== */
.search-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto 24px;
}
.search-bar input[type="search"] {
    flex: 1;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(44, 26, 16, 0.15);
    background: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
}
.search-status {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}
.search-status a { color: var(--orange-dark); font-weight: 600; margin-left: 8px; }

/* ==========================================================================
   Filter bar (categories)
   ========================================================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 44px;
}
.filter-chip {
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--white);
    border: 1px solid rgba(44, 26, 16, 0.12);
    color: var(--dark);
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.filter-chip:hover { border-color: var(--dark); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.filter-chip.active {
    background: var(--gradient-warm);
    border-color: var(--orange);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(179, 90, 28, 0.3);
}

.page-section { padding: 0 0 100px; }
.page-section-tight { padding-bottom: 70px; }

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}

.cross-link {
    text-align: center;
    color: var(--text-muted);
    margin-top: 40px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
}
.pagination-status { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* Honeypot field for spam bots — invisible to real visitors, but still a
   normal text input in the DOM so bots that fill every field get caught. */
.hp-field, .hp-field-wrap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.messages { padding-top: 20px; }
.message {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.message-success { background: var(--green-card); color: var(--dark); }
.message-error { background: var(--peach-card); color: var(--dark); }

/* ==========================================================================
   Activity cards
   ========================================================================== */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.activity-card {
    border-radius: var(--radius-md);
    padding: 28px 24px;
    box-shadow: var(--shadow-card);
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.activity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.activity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 1.6rem;
    overflow: hidden;
    transition: transform 0.35s var(--ease-out);
}
.activity-icon img { width: 100%; height: 100%; object-fit: cover; }
.activity-card:hover .activity-icon { transform: scale(1.1) rotate(-4deg); }
.activity-type {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}
.activity-card h3 { font-size: 1.05rem; margin-bottom: 0; }
.activity-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 4px; }

/* ==========================================================================
   Product cards (Books / Shop)
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.product-thumb {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.product-card:hover .product-thumb img { transform: scale(1.08); }
.product-body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-form { display: contents; }
.product-body h3 { font-size: 1rem; margin-bottom: 0; }
.product-body h3 a:hover { text-decoration: underline; }
.product-body p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.product-price { font-weight: 700; color: var(--dark); font-size: 1.05rem; }
.product-detail-price { font-weight: 700; color: var(--dark); font-size: 1.4rem; }
.product-gallery-main { position: relative; }
.product-detail-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    cursor: zoom-in;
}
.product-gallery-lens {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid var(--orange);
    border-radius: 50%;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.product-gallery-lens.visible { opacity: 1; }
.product-gallery-zoom-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-gallery-hint {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 24px;
}
@media (hover: none) {
    .product-gallery-hint { display: none; }
}
.product-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(20, 12, 6, 0.92);
    align-items: center;
    justify-content: center;
}
.product-lightbox.open { display: flex; }
.product-lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.product-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
}
.product-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    line-height: 1;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
}
.product-lightbox-prev { left: 16px; }
.product-lightbox-next { right: 16px; }
.product-gallery {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}
.product-gallery-thumbs-rail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.product-gallery-main-wrap { flex: 1; min-width: 0; }
.product-gallery-thumb {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: none;
    transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.product-gallery-thumb:hover { transform: translateY(-2px); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery-thumb.active { border-color: var(--orange); }

@media (max-width: 500px) {
    .product-gallery { flex-direction: column-reverse; }
    .product-gallery-thumbs-rail { flex-direction: row; flex-wrap: wrap; }
}

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

.breadcrumb-trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.breadcrumb-trail a { color: var(--text-muted); }
.breadcrumb-trail a:hover { color: var(--orange-dark); text-decoration: underline; }
.breadcrumb-trail [aria-current] { color: var(--dark); font-weight: 600; }

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(220px, 1fr) minmax(240px, 300px);
    gap: 36px;
    align-items: start;
    max-width: 1160px;
    margin: 0 auto 48px;
    text-align: left;
}
.product-detail-info { display: flex; flex-direction: column; gap: 12px; }
.product-detail-subtitle { color: var(--text-muted); font-size: 0.9rem; }
.product-detail-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.product-about-heading { font-size: 1rem; margin-bottom: 4px; }

.product-buybox {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-buybox .product-detail-price { font-size: 1.6rem; }
.product-buybox-qty { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; }
.product-buybox-actions { display: flex; flex-direction: column; gap: 10px; }
.product-buybox-actions .btn { width: 100%; justify-content: center; }
.product-buybox-actions .btn[disabled] { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 1000px) {
    .product-detail-layout { grid-template-columns: minmax(0, 380px) 1fr; }
    .product-buybox { grid-column: 1 / -1; max-width: 380px; }
}

.star-rating {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    color: var(--border);
    white-space: nowrap;
}
.star-rating-lg { font-size: 1.3rem; }
.star-rating-fg {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: var(--orange);
    white-space: nowrap;
    width: calc(var(--rating) / 5 * 100%);
}

.product-rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    width: fit-content;
}
.product-rating-summary:hover { text-decoration: underline; }
.product-rating-summary-empty { color: var(--text-muted); font-style: italic; }

.product-stock-status { font-weight: 600; font-size: 0.9rem; }
.product-stock-status.in-stock { color: var(--green-deep); }
.product-stock-status.out-of-stock { color: #b3261e; }

.product-highlights {
    list-style: disc;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.92rem;
    color: var(--dark-soft);
}

.product-qty-select {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 0.95rem;
}

.product-shipping-note { font-size: 0.85rem; color: var(--text-muted); }

.product-meta-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: 6px;
}
.product-meta-list > div { display: flex; gap: 8px; }
.product-meta-list dt { font-weight: 600; color: var(--dark-soft); min-width: 90px; }
.product-meta-list dd { margin: 0; }

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}
.product-specs-table th, .product-specs-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}
.product-specs-table th { color: var(--dark-soft); font-weight: 600; width: 40%; }
.product-specs-table tr:nth-child(odd) { background: var(--cream); }

/* Description + specs, side by side when both are present */
.product-detail-secondary {
    max-width: 1160px;
    margin: 0 auto 70px;
    text-align: left;
}
.product-detail-secondary.has-specs {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}
.product-detail-secondary .section-title { text-align: left; }
.product-description-text { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; }

/* Reviews: rating breakdown + write-review sidebar, review list fills the rest */
.product-reviews-section {
    max-width: 1160px;
    margin: 0 auto 70px;
    text-align: left;
}
.product-reviews-section .section-title { text-align: left; margin-bottom: 32px; }
.product-reviews-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}
.product-reviews-sidebar { display: flex; flex-direction: column; gap: 32px; }

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rating-breakdown-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.rating-breakdown-average { font-size: 1.6rem; font-weight: 700; font-family: 'Fraunces', serif; }
.rating-breakdown-count { color: var(--text-muted); font-size: 0.85rem; }
.rating-breakdown-row {
    display: grid;
    grid-template-columns: 46px 1fr 34px;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.rating-bar { display: block; height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.rating-bar-fill { display: block; height: 100%; background: var(--gradient-warm); border-radius: 4px; }

.review-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-content: start;
}
.review-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
}
.review-card h4 { margin: 6px 0 2px; }
.review-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }

.review-form-wrap {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 24px;
}
.review-form-wrap h3 { margin-bottom: 12px; }
.review-form-wrap .simple-form { max-width: none; margin: 0; }
.review-form-wrap .simple-form button { align-self: flex-start; }
.review-rating-choices { border: none; padding: 0; margin: 0 0 4px; }
.review-rating-choices legend { font-weight: 600; margin-bottom: 6px; padding: 0; }

/* Single-line clickable star rating input — a CSS-only trick: choices are
   in DOM order 5..1 (see ProductReviewForm.RATING_CHOICES), displayed
   left-to-right via row-reverse, and "checked ~ label" / "hover ~ label"
   light up everything from the chosen star leftward, no JS needed. */
.star-input-row { display: inline-flex; flex-direction: row-reverse; gap: 4px; position: relative; }
.star-input-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.star-input-star {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--border);
    cursor: pointer;
    transition: color 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}
.star-input-row .star-input-radio:checked ~ .star-input-star,
.star-input-row .star-input-radio:checked ~ .star-input-star ~ .star-input-star,
.star-input-row .star-input-star:hover,
.star-input-row .star-input-star:hover ~ .star-input-star {
    color: var(--orange);
}
.star-input-star:hover { transform: scale(1.15); }
.star-input-radio:focus-visible + .star-input-star { outline: 2px solid var(--orange); outline-offset: 2px; }

.rating-breakdown-empty-hint { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

@media (max-width: 900px) {
    .product-detail-secondary.has-specs { grid-template-columns: 1fr; gap: 40px; }
    .product-reviews-layout { grid-template-columns: 1fr; }
    .review-list { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
    .product-detail-layout { grid-template-columns: 1fr; }
}

.product-card .btn { margin-top: auto; justify-content: center; }
.product-card-out-of-stock {
    margin-top: auto;
    justify-content: center;
    opacity: 0.55;
    cursor: not-allowed;
}
.product-card-out-of-stock:hover { transform: none; box-shadow: none; }
.product-category-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--orange-dark);
}

/* ==========================================================================
   Character detail page
   ========================================================================== */
.character-banner { padding: 70px 0 60px; text-align: center; }
.character-banner-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.character-banner-icon img { width: 100%; height: 100%; object-fit: cover; }
.character-banner h1 { margin-bottom: 4px; }
.character-banner-title { color: var(--dark-soft); font-weight: 600; }

.character-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 70px 0;
    align-items: start;
}
.character-detail-body .bio { font-size: 1.02rem; }

.trait-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.trait-chip {
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--cream);
    border: 1px solid rgba(44, 26, 16, 0.1);
    font-size: 0.82rem;
    font-weight: 600;
}

.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fact-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
}
.fact-label {
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
}
.fact-value { font-weight: 600; }

.related-stories { padding: 0 0 100px; text-align: center; }

/* ==========================================================================
   Story detail page
   ========================================================================== */
.story-banner { padding: 70px 0 50px; text-align: center; }
.story-banner-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.story-banner-icon img { width: 100%; height: 100%; object-fit: cover; }
.story-banner-meta {
    display: flex;
    gap: 16px;
    justify-content: center;
    color: var(--dark-soft);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 8px;
}
.story-banner-meta .story-rating { color: var(--orange); }

.story-summary { max-width: 640px; margin: 0 auto 40px; text-align: center; color: var(--text-muted); font-size: 1.05rem; }

.video-placeholder {
    max-width: 640px;
    margin: 0 auto 70px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--purple-deep), var(--peach-card));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.video-embed {
    max-width: 640px;
    margin: 0 auto 70px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.video-placeholder .play-btn {
    position: static;
    width: 64px;
    height: 64px;
    font-size: 1.4rem;
}

.story-reading {
    max-width: 680px;
    margin: 0 auto 70px;
    padding: 0 0 0;
}
.story-reading h2 { text-align: center; margin-bottom: 24px; }
.story-reading p {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    line-height: 1.7;
}

.lesson-callout {
    max-width: 640px;
    margin: 0 auto 70px;
    background: var(--purple);
    border-radius: var(--radius-md);
    padding: 24px 30px;
    text-align: center;
}
.lesson-callout .eyebrow { margin-bottom: 6px; }
.lesson-callout h3 { margin-bottom: 0; }

.section-narrow { max-width: 780px; margin: 0 auto; text-align: center; }
.section-narrow + .section-narrow { margin-top: 60px; }

.vocab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; text-align: left; }
.vocab-card { background: var(--white); border-radius: var(--radius-sm); padding: 16px 20px; box-shadow: var(--shadow-card); }
.vocab-word { font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.vocab-meaning { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }

.question-list { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.question-list li {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    box-shadow: var(--shadow-card);
    font-weight: 500;
}

.mini-character-grid { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.mini-character-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border-radius: 999px;
    padding: 8px 20px 8px 8px;
    box-shadow: var(--shadow-card);
    font-weight: 600;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.mini-character-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.mini-character-card span.icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    overflow: hidden;
}
.mini-character-card span.icon img { width: 100%; height: 100%; object-fit: cover; }

.printable-cta {
    max-width: 480px;
    margin: 0 auto 90px;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-card);
}
.printable-cta p { color: var(--text-muted); }

/* ==========================================================================
   Parents & About pages
   ========================================================================== */
.content-block { max-width: 720px; margin: 0 auto 70px; }
.content-block h2 { text-align: center; margin-bottom: 20px; }
.content-block p { font-size: 1.05rem; color: var(--text-muted); }
.content-block p.lead { color: var(--dark); font-size: 1.15rem; }

.tip-list, .benefit-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
}
.tip-list li, .benefit-list li {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px 22px;
    box-shadow: var(--shadow-card);
    font-weight: 500;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.tip-list li::before { content: "💡"; flex-shrink: 0; }
.benefit-list li::before { content: "✓"; color: var(--green-deep); font-weight: 700; flex-shrink: 0; }

.age-group-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.age-group-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px 22px;
    box-shadow: var(--shadow-card);
    text-align: center;
}
.age-group-card h3 { color: var(--orange-dark); margin-bottom: 8px; font-size: 1.1rem; }
.age-group-card p { font-size: 0.9rem; margin-bottom: 0; }

.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--white); border-radius: var(--radius-sm); padding: 18px 22px; box-shadow: var(--shadow-card); }
.faq-item h3 { font-size: 1rem; margin-bottom: 6px; }
.faq-item p { font-size: 0.9rem; margin-bottom: 0; }

.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    max-width: 720px;
    margin: 0 auto;
}
.value-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border-radius: 999px;
    padding: 12px 22px;
    box-shadow: var(--shadow-card);
    font-weight: 600;
}
.value-chip .emoji { font-size: 1.2rem; }

.cta-center { text-align: center; margin-top: 20px; }

.simple-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
    margin: 0 auto;
}
.simple-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
}
.simple-form input,
.simple-form textarea {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(44, 26, 16, 0.15);
    background: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
}
.simple-form textarea { resize: vertical; min-height: 110px; }
.simple-form button { align-self: center; margin-top: 8px; }
.simple-form select {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(44, 26, 16, 0.15);
    background: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
}

.errorlist {
    list-style: none;
    padding: 12px 16px;
    margin: 0 0 4px;
    background: rgba(194, 65, 12, 0.08);
    border: 1px solid rgba(194, 65, 12, 0.25);
    border-radius: var(--radius-sm);
    color: #9a3412;
    font-size: 0.9rem;
}
.simple-form .errorlist { max-width: 480px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Cart / Orders — line items, summary box, status badges
   ========================================================================== */
.line-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
    margin: 24px auto;
}
.line-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.line-item-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    overflow: hidden;
}
.line-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.line-item-info { flex: 1; min-width: 0; }
.line-item-info h3 { margin: 0 0 4px; font-size: 1rem; }
.line-item-info a { color: inherit; text-decoration: none; }
.line-item-info a:hover { color: var(--orange-dark); }
a.line-item { text-decoration: none; color: inherit; transition: box-shadow var(--transition-base); }
a.line-item:hover { box-shadow: var(--shadow-lift); }
.line-item-meta { color: var(--text-muted); font-size: 0.85rem; }
.line-item-price { font-weight: 700; white-space: nowrap; }
.line-item-qty-form { display: flex; align-items: center; gap: 8px; }
.line-item-qty-form select { padding: 6px 10px; }
.line-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.85rem;
    padding: 0;
}
.line-item-remove:hover { color: var(--orange-dark); }

.order-summary-box {
    max-width: 720px;
    margin: 0 auto;
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}
.order-summary-row { display: flex; justify-content: space-between; padding: 6px 0; }
.order-summary-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 12px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.status-badge-pending_payment { background: rgba(234, 179, 8, 0.15); color: #92620a; }
.status-badge-paid { background: rgba(34, 150, 80, 0.15); color: #166534; }
.status-badge-shipped { background: rgba(59, 130, 246, 0.15); color: #1e40af; }
.status-badge-delivered { background: rgba(34, 150, 80, 0.15); color: #166534; }
.status-badge-cancelled { background: rgba(220, 38, 38, 0.12); color: #991b1b; }

.cart-actions { max-width: 720px; margin: 24px auto 0; justify-content: center; }
.account-logout-form { text-align: center; margin-top: 24px; }
.link-button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.95rem;
    font-family: inherit;
    padding: 0;
}
.link-button:hover { color: var(--orange-dark); }

.checkout-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}
.checkout-layout .simple-form { max-width: none; margin: 0; }
@media (max-width: 900px) {
    .checkout-layout { grid-template-columns: 1fr; }
}

.contact-detail {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.contact-detail a { color: var(--orange-dark); font-weight: 600; }
.contact-detail-left { text-align: left; line-height: 1.7; }

.press-logo-block {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-card);
    max-width: 360px;
    margin: 0 auto 40px;
}
.press-logo-block img { max-height: 60px; width: auto; margin: 0 auto 16px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .character-grid { grid-template-columns: repeat(2, 1fr); }
    .world-grid { grid-template-columns: repeat(2, 1fr); }
    .story-grid { grid-template-columns: 1fr; }
    .parents-inner { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .parents-media { margin-bottom: 40px; }
    .activity-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .character-detail-body { grid-template-columns: 1fr; }
    .age-group-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        /* Explicit viewport-relative height, not `bottom: 0` — .site-header
           has backdrop-filter, which makes it the containing block for any
           position:fixed descendant, so `bottom: 0` on a fixed child would
           resolve against the header's own ~73px box, not the screen.
           height: calc(100vh - <header height>) sidesteps that. Below its
           own height, an absolutely-positioned dropdown leaves whatever
           page content sits underneath visible — including cutting through
           the middle of the hero paragraph — so this needs to reliably
           cover the full remaining viewport regardless of page length. */
        height: calc(100vh - 73px);
        background: var(--cream);
        flex-direction: column;
        padding: 20px 24px;
        display: none;
        overflow-y: auto;
        border-bottom: 1px solid rgba(44,26,16,0.08);
    }
    .site-nav.open { display: flex; }
    .header-account-link { display: none; }
    .header-cta { display: none; }
    .character-grid { grid-template-columns: 1fr; }
    .world-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
    .activity-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .fact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Scroll reveal (progressive enhancement — see app.js)
   ========================================================================== */
/* Transform-only on purpose — no opacity fade. An opacity:0 starting state
   fails WCAG contrast checks for as long as an element sits below the fold
   waiting to be scrolled to (confirmed with axe-core), even though the text
   is fully legible the instant it's actually visible on screen. Sliding
   into place without a fade keeps the motion but never dips contrast. */
[data-reveal] {
    transform: translateY(28px);
    transition: transform 0.7s var(--ease-out);
}
[data-reveal].is-visible {
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { transform: none; transition: none; }
}

/* ==========================================================================
   Print (used by the "Print this Activity" button)
   ========================================================================== */
.print-only { display: none; }

@media print {
    .site-header, .site-footer, .newsletter, .no-print { display: none !important; }
    .print-only { display: block; }
    body { background: #fff; }
    #printable-activity { max-width: 100%; }
}
