/* ============================================================
   3dBoys.US — "Fun & Friendly" redesign foundation (DRAFT)
   Standalone theme for the style tile. Not yet wired into the
   live site. Mirrors the hand-crafted / kraft-paper mockup.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Caveat:wght@500;700&display=swap');

:root {
    /* Palette (sampled from the mockup) */
    --paper:        #F4EBD6;
    --paper-edge:   #EADFC2;
    --navy:         #243A52;
    --navy-deep:    #1B2D40;
    --gold:         #E2A12C;
    --gold-deep:    #C8861A;
    --red:          #BE4A2F;
    --teal:         #2E7D74;
    --green:        #2FAE66;
    --blue:         #2B7FD0;
    --ink:          #2E2A24;
    --muted:        #7A6F5D;
    --card:         #FFFDF7;

    /* Type */
    --font-display: 'Anton', sans-serif;
    --font-body:    'Nunito', sans-serif;
    --font-hand:    'Caveat', cursive;

    --radius:       10px;
    --shadow-hard:  4px 4px 0 var(--navy);
    --shadow-soft:  0 10px 24px rgba(36, 58, 82, 0.18);
}

* { box-sizing: border-box; }

/* hidden attribute must win over any display rules below */
[hidden] { display: none !important; }

/* Smooth in-page scrolling, with offset so the sticky header
   doesn't cover anchored sections (e.g. #how-its-made). */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }

/* Visible keyboard focus for accessibility */
.btn-fun:focus-visible,
.head-nav a:focus-visible,
.brand:focus-visible,
.size-pills li:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 3px;
}
.site-foot a:focus-visible { outline: 3px solid var(--navy-deep); outline-offset: 3px; }

.runtime-mode-banner {
    background: repeating-linear-gradient(
        -45deg,
        #b30000,
        #b30000 14px,
        #cc1a1a 14px,
        #cc1a1a 28px
    );
    color: #fff;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.7rem 1rem;
    border-top: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    position: sticky;
    top: 0;
    z-index: 70;
}

.runtime-mode-banner strong {
    font-family: var(--font-display);
    margin-right: 0.5rem;
    font-size: 1.05rem;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: 0.01ms !important; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.65;
    background-color: var(--paper);
    /* subtle paper grain */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--navy);
    letter-spacing: 0.5px;
    line-height: 1.02;
    text-transform: uppercase;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1rem; }

.hand {
    font-family: var(--font-hand);
    font-weight: 700;
    color: var(--red);
    text-transform: none;
    letter-spacing: 0;
}

.highlight { color: var(--gold); }

/* ---------- Tilt / hand-placed angles ---------- */
.tilt-1 { display: inline-block; transform: rotate(-2deg); }
.tilt-2 { display: inline-block; transform: rotate(-3.5deg); }
.tilt-r { display: inline-block; transform: rotate(2deg); }

/* Staggered headline: each line angled a bit differently so the
   block reads hand-placed instead of straight and blocky. */
.headline-stack { display: inline-block; }
.headline-stack .ln {
    display: block;
    transform-origin: left center;
}
.headline-stack .ln:nth-child(1) { transform: rotate(-2.5deg); }
.headline-stack .ln:nth-child(2) { transform: rotate(1deg) translateX(0.35em); }
.headline-stack .ln:nth-child(3) { transform: rotate(-1.5deg); }

.eyebrow {
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--red);
}

/* ---------- Layout helpers ---------- */
.tile-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 1.25rem 5rem;
}

.framed {
    border: 3px solid var(--navy);
    border-radius: 16px;
    background: var(--paper);
    padding: 2.5rem;
    position: relative;
}
.framed::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 2px dashed rgba(36, 58, 82, 0.45);
    border-radius: 10px;
    pointer-events: none;
}

.block {
    margin-bottom: 3.5rem;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    color: var(--muted);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
    margin-bottom: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn-fun {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius);
    border: 2.5px solid var(--navy);
    background: var(--gold);
    color: var(--navy-deep);
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-hard);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-fun:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--navy);
}
.btn-fun:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--navy);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
}

.btn-red {
    background: var(--red);
    color: #fff;
}

/* ---------- Hero ---------- */
.hero-fun {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}
.hero-fun h1 { margin-bottom: 0.5rem; }
.hero-lead {
    font-size: 1.2rem;
    color: var(--ink);
    max-width: 46ch;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.hero-art {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    border: 3px solid var(--navy);
    border-radius: 18px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--paper);
    font-family: var(--font-hand);
    font-size: 1.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
}
.hero-art .play {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-deep);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    box-shadow: var(--shadow-hard);
}

/* ---------- Polaroid product card ---------- */
.card-row {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
}
.polaroid {
    background: var(--card);
    border: 1px solid #e7ddc6;
    padding: 12px 12px 0;
    width: 200px;
    box-shadow: var(--shadow-soft);
    transform: rotate(-2deg);
    transition: transform 0.15s ease;
}
.polaroid:nth-child(even) { transform: rotate(2deg); }
.polaroid:hover { transform: rotate(0) translateY(-6px); }
.polaroid .photo {
    background: var(--paper-edge);
    border: 1px dashed #c9bb9c;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.5rem;
}
.polaroid .caption {
    font-family: var(--font-hand);
    font-size: 1.5rem;
    color: var(--navy);
    text-align: center;
    padding: 0.4rem 0 0.8rem;
}

/* ---------- Sticky note ---------- */
.sticky {
    display: inline-block;
    background: var(--gold);
    color: var(--navy-deep);
    font-family: var(--font-hand);
    font-size: 1.4rem;
    font-weight: 700;
    padding: 1.4rem 1.2rem;
    width: 200px;
    transform: rotate(-3deg);
    box-shadow: var(--shadow-soft);
    position: relative;
    text-align: center;
}
.sticky::before {
    content: '';
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%) rotate(-4deg);
    width: 80px; height: 22px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(0,0,0,0.05);
}

/* ---------- Washi tape ---------- */
.washi {
    display: inline-block;
    background: repeating-linear-gradient(45deg, var(--teal), var(--teal) 8px, #3a9189 8px, #3a9189 16px);
    opacity: 0.85;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 1.4rem;
    transform: rotate(-2deg);
    font-size: 0.85rem;
}

/* ---------- Swatches ---------- */
.swatches { display: flex; gap: 1rem; flex-wrap: wrap; }
.swatch {
    width: 120px;
    border: 2px solid var(--navy);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow-soft);
}
.swatch .chip { height: 70px; }
.swatch .name {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.5rem;
    text-align: center;
    color: var(--navy);
}

/* ---------- Doodle divider ---------- */
.doodle {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    color: var(--gold);
}

/* ---------- Type specimen ---------- */
.specimen > div { margin-bottom: 1.25rem; }
.specimen .label {
    font-size: 0.7rem; font-weight: 800; letter-spacing: 1px;
    text-transform: uppercase; color: var(--muted);
}

/* ============================================================
   Site chrome + homepage (redesign)
   ============================================================ */

/* ---------- Header ---------- */
.site-head {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 3px solid var(--navy);
}
.head-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.brand-logo {
    height: 42px;
    width: auto;
    display: block;
}
.brand-word { font-family: var(--font-display); }
.head-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}
.head-nav a {
    color: var(--navy);
    text-decoration: none;
}
.head-nav a:hover { color: var(--red); }
.head-nav .cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 1.2rem;
}
.cart-count {
    position: absolute;
    top: -9px; right: -11px;
    background: var(--red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- Hero (homepage) ---------- */
.home-hero {
    padding: 3rem 0 1rem;
}
.home-hero .hero-fun { align-items: center; }
.home-hero .hero-photo {
    border: 3px solid var(--navy);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--card);
    transform: rotate(1.5deg);
}
.home-hero .hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Featured product spotlight ---------- */
.spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.spotlight .photo-wrap {
    background: var(--card);
    border: 1px solid #e7ddc6;
    padding: 16px 16px 0;
    box-shadow: var(--shadow-soft);
    transform: rotate(-2deg);
    transition: transform 0.2s ease;
}
.spotlight .photo-wrap:hover {
    transform: rotate(-1deg) translateY(-5px);
}
.spotlight .photo-wrap img {
    display: block;
    width: 100%;
    border: 1px dashed #c9bb9c;
}
.spotlight .photo-wrap .caption {
    font-family: var(--font-hand);
    font-size: 1.6rem;
    color: var(--navy);
    text-align: center;
    padding: 0.5rem 0 0.9rem;
}
.spotlight .price-from {
    font-family: var(--font-body);
    font-weight: 800;
    color: var(--ink);
    font-size: 1.1rem;
    margin: 0.5rem 0 1.25rem;
}
.spotlight .price-from strong {
    font-family: var(--font-display);
    color: var(--red);
    font-size: 1.8rem;
    vertical-align: -2px;
    margin-left: 0.3rem;
}
.spotlight .price-shipping-note {
    margin: -0.35rem 0 1rem;
}
.size-pills {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1rem 0 0;
    list-style: none;
    padding: 0;
}
.size-pills li {
    border: 2px solid var(--navy);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-weight: 800;
    font-size: 0.85rem;
    background: var(--card);
}

/* ---------- Highlights ---------- */
.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.highlight-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--card);
    border: 1px solid #e7ddc6;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
}
.highlight-card .ico {
    width: 64px; height: 64px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    box-shadow: var(--shadow-hard);
}
.highlight-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.highlight-card p { color: var(--muted); margin: 0; }

/* ---------- How it's made / video ---------- */
.section-intro {
    max-width: 56ch;
    margin: 0 auto;
    color: var(--muted);
}
.video-frame {
    max-width: 520px;
    margin: 0 auto;
    border: 3px solid var(--navy);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--navy-deep);
    transform: rotate(-1deg);
}
.video-frame video {
    display: block;
    width: 100%;
    height: auto;
}

.video-hover-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.video-poster,
.video-hover-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

.video-poster {
    transition: opacity 0.25s ease;
}

.video-hover-video {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.video-hover-badge {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(27, 45, 64, 0.88);
    color: var(--paper);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .video-hover-frame:hover .video-poster {
        opacity: 0;
    }

    .video-hover-frame:hover .video-hover-video {
        opacity: 1;
    }

    .video-hover-frame:hover .video-hover-badge {
        opacity: 0;
    }
}

@media (hover: none) {
    .video-hover-frame {
        aspect-ratio: 1 / 1;
        cursor: default;
    }

    .video-poster,
    .video-hover-badge {
        display: none;
    }

    .video-hover-video {
        position: static;
        opacity: 1;
        pointer-events: auto;
    }
}

/* ---------- Product detail intro ---------- */
.product-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.product-photo {
    border: 3px solid var(--navy);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--card);
    transform: rotate(-1.5deg);
}
.product-photo img { display: block; width: 100%; height: auto; }
.product-intro h1 { margin-bottom: 0.75rem; }
.product-rules { line-height: 1.7; }

.rules-doc-preview {
    max-width: 760px;
    margin: 1rem auto 0;
}

.rules-doc-link {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.rules-doc-link picture {
    display: block;
}

.rules-doc-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
}

.rules-doc-actions {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0;
}

.video-embed-wrap {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0.5rem auto 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 2px solid rgba(36, 58, 82, 0.2);
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-embed-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-embed-link {
    margin: 0.7rem 0 0;
    text-align: center;
    font-size: 0.95rem;
}

.video-embed-link a {
    font-weight: 800;
    color: var(--navy-deep);
}

.video-embed-link a:hover {
    color: var(--red);
}

/* ---------- Pricing kit cards ---------- */
.kits-title {
    font-family: var(--font-hand);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    color: var(--navy);
    text-transform: none;
    letter-spacing: 0;
}

.kit-shipping-banner {
    margin: 0 0 1.2rem;
    padding: 0.75rem 1rem;
    border: 2.5px solid var(--green);
    border-radius: 12px;
    background: #ecfff3;
    color: var(--navy-deep);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.35;
    box-shadow: 0 6px 16px rgba(47, 174, 102, 0.15);
}

.kit-shipping-banner strong {
    color: #157341;
    margin-right: 0.25rem;
}

.kit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: start;
}
.kit-card {
    position: relative;
    background: var(--card);
    border: 3px solid var(--navy);
    border-radius: 22px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}
.kit-card.featured {
    border-color: var(--red);
    box-shadow: 0 16px 34px rgba(190, 74, 47, 0.2);
}
.kit-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    background: var(--gold);
    color: var(--navy-deep);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    border: 2.5px solid var(--navy);
    white-space: nowrap;
}
.kit-name {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--navy-deep);
    line-height: 1.1;
}
.kit-players {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}
.kit-price {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 2.6rem;
    color: var(--navy-deep);
    line-height: 1;
    margin-bottom: 1.25rem;
}
.kit-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex-grow: 1;
}
.kit-features li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
    font-size: 0.95rem;
}

.kit-features li:last-child {
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}
.kit-features li::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--gold);
}
.kit-features li:nth-child(4n+1)::before { background: var(--red); }
.kit-features li:nth-child(4n+2)::before { background: var(--gold); }
.kit-features li:nth-child(4n+3)::before { background: var(--green); }
.kit-features li:nth-child(4n+4)::before { background: var(--blue); }
.kit-btn {
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    padding: 0.9rem 1rem;
    border-radius: 999px;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.kit-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(0, 0, 0, 0.18); }
.kit-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); }
.kit-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.kit-btn.gold { background: var(--gold); color: var(--navy-deep); }
.kit-btn.green { background: var(--green); }
.kit-btn.red { background: var(--red); }

.kit-upsell {
    margin-top: 0.8rem;
    padding: 0.7rem 0.85rem;
    border: 2px dashed rgba(36, 58, 82, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
}

.kit-upsell-copy {
    font-size: 0.86rem;
    color: var(--navy-deep);
    margin: 0 0 0.55rem;
    font-weight: 700;
}

.kit-upsell-btn {
    width: 100%;
    padding: 0.6rem 0.9rem;
    font-size: 0.82rem;
}

@media (max-width: 820px) {
    .product-intro { grid-template-columns: 1fr; }
    .kit-shipping-banner { font-size: 0.95rem; }
    .kit-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .kit-card.featured { box-shadow: var(--shadow-soft); }
    .rules-doc-preview { max-width: 100%; }
    .rules-doc-image { max-height: 360px; }
    .video-embed-wrap { max-width: 100%; }
}

/* ---------- Cart page ---------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}
.cart-main-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cart-upsell {
    background: #fff7df;
    border: 3px solid var(--gold-deep);
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-soft);
}

.cart-upsell-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7e5310;
    background: #ffe8ad;
    border: 1px solid #d7a645;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.5rem;
}

.cart-upsell h3 {
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: none;
    color: var(--navy-deep);
    margin-bottom: 0.35rem;
}

.cart-upsell p {
    color: var(--ink);
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
}

.cart-upsell .btn-fun {
    width: 100%;
}
.cart-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--card);
    border: 2px solid var(--navy);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
}
.cart-thumb {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e7ddc6;
    flex-shrink: 0;
}
.cart-main { flex: 1; min-width: 140px; }
.cart-main h3 {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--navy-deep);
    margin: 0;
    text-transform: none;
}
.cart-kit { color: var(--muted); font-size: 0.9rem; }
.cart-each { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.cart-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--navy);
    border-radius: 999px;
    overflow: hidden;
}
.cart-qty button {
    background: var(--paper-edge);
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--navy);
}
.cart-qty button:hover { background: var(--gold); }
.cart-qty input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-family: var(--font-body);
    background: transparent;
    -moz-appearance: textfield;
}
.cart-qty input::-webkit-outer-spin-button,
.cart-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-line-total {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--navy-deep);
    min-width: 68px;
    text-align: right;
}
.cart-remove {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    font-size: 1.05rem;
    padding: 0.3rem;
}
.cart-remove:hover { color: #8c2f1c; }

.cart-summary {
    background: var(--card);
    border: 3px solid var(--navy);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 90px;
}
.cart-summary h3 {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--navy-deep);
    text-transform: none;
    margin-bottom: 1rem;
}
.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}
.discount-entry {
    margin: 0.85rem 0 0.8rem;
    padding: 0.9rem;
    border: 1px dashed rgba(36, 58, 82, 0.35);
    border-radius: 12px;
    background: #fbf7ec;
}
.discount-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--navy-deep);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.45rem;
}
.discount-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
}
.discount-form input {
    width: 100%;
    border: 2px solid rgba(36, 58, 82, 0.35);
    border-radius: 10px;
    padding: 0.62rem 0.7rem;
    font-size: 0.95rem;
    font-family: var(--font-body);
}
.discount-form input:focus-visible {
    outline: 3px solid rgba(46, 125, 116, 0.35);
    outline-offset: 1px;
    border-color: var(--teal);
}
.discount-form .btn-fun {
    padding: 0.62rem 0.85rem;
    font-size: 0.8rem;
    min-width: 86px;
    box-shadow: 2px 2px 0 var(--navy);
}
.discount-form .btn-fun:hover {
    box-shadow: 3px 3px 0 var(--navy);
}
.discount-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}
.discount-clear {
    border: none;
    background: none;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    padding: 0;
}
.discount-clear:hover {
    color: var(--red);
    text-decoration: underline;
}
.discount-message {
    margin-top: 0.5rem;
    font-size: 0.86rem;
    font-weight: 700;
}
.discount-message.ok { color: #176c2d; }
.discount-message.error { color: #9b1c1c; }
.cart-summary .summary-row.discount-row {
    color: #176c2d;
    font-weight: 800;
}
.cart-summary .summary-row.total {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--navy-deep);
    border-top: 2px dashed rgba(36, 58, 82, 0.3);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}
.summary-note { color: var(--muted); font-size: 0.85rem; margin: 0.75rem 0 1.25rem; }
.checkout-btn { width: 100%; text-align: center; }
.checkout-notice {
    background: #eef7f5;
    border: 1px solid var(--teal);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.5;
}
.checkout-notice a { color: var(--teal); font-weight: 700; }
.cart-clear {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    margin-top: 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.cart-clear:hover { color: var(--red); text-decoration: underline; }
.cart-back {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}
.cart-back:hover { color: var(--red); }

.cart-empty { text-align: center; padding: 4rem 1rem; }
.cart-empty .ico { font-size: 4rem; color: var(--gold); margin-bottom: 1rem; }
.cart-empty h2 {
    font-family: var(--font-body);
    font-weight: 800;
    color: var(--navy-deep);
    text-transform: none;
    margin-bottom: 0.5rem;
}
.cart-empty p { color: var(--muted); margin-bottom: 1.5rem; }

/* ---------- Checkout success ---------- */
.success-check {
    font-size: 4.5rem;
    color: var(--green);
    margin-bottom: 0.5rem;
}

@media (max-width: 820px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cart-controls { width: 100%; justify-content: space-between; }
}

/* ---------- Footer ---------- */
.site-foot {
    background: var(--gold);
    color: var(--navy-deep);
    margin-top: 4rem;
    padding: 2.5rem 1.25rem;
    text-align: center;
}
.foot-inner { max-width: 1120px; margin: 0 auto; }
.site-foot .brand { color: var(--navy-deep); justify-content: center; }
.site-foot p { color: rgba(27, 45, 64, 0.85); margin: 0.5rem 0 0; }
.site-foot a { color: var(--navy-deep); text-decoration: none; font-weight: 700; }
.site-foot a:hover { text-decoration: underline; }
.foot-social {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.foot-social a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--navy-deep);
    border-radius: 999px;
    background: var(--navy-deep);
    color: var(--paper);
    box-shadow: 0 6px 14px rgba(27, 45, 64, 0.18);
    font-size: 1.1rem;
    transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.foot-social a:hover {
    text-decoration: none;
    transform: translateY(-2px);
    background: var(--red);
    color: #fff;
}

.foot-social a:focus-visible {
    outline: 3px solid var(--navy-deep);
    outline-offset: 3px;
}
.site-foot .copy { font-size: 0.8rem; color: rgba(27, 45, 64, 0.6); margin-top: 1.25rem; }

/* ---------- Section wrapper ---------- */
.home-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.inner {
    max-width: 1120px;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-head .eyebrow { display: block; margin-bottom: 0.5rem; }

@media (max-width: 760px) {
    .hero-fun { grid-template-columns: 1fr; }
    .framed { padding: 1.5rem; }
    .spotlight { grid-template-columns: 1fr; }
    .highlights { grid-template-columns: 1fr; }
    .head-nav { gap: 1rem; }
}
