/* ============================================================================
   Theme Selection (Step 1)
   ============================================================================ */

/* Hero Banner */
/* Scrolling Marquee Banner */
.marquee-banner {
    background: #E4632B;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    margin-bottom: var(--spacing-sm);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.marquee-track {
    display: inline-flex;
    animation: marquee 20s linear infinite;
}

.marquee-track span {
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-banner {
    width: 100%;
    margin-top: calc(-1 * var(--spacing-sm));
    margin-bottom: 0;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .hero-banner img {
        width: 150%;
        margin-left: -25%;
    }
}

@media (max-width: 480px) {
    .hero-banner img {
        width: 200%;
        margin-left: -50%;
    }
}

/* Wrapper for the grid + the mobile arrow nav. Position-relative so the
   arrows can anchor to bottom-right of the section. */
.theme-carousel {
    position: relative;
    /* Bumped to 1240px on 2026-06-12 so all three cards (Watercolor +
       Photo Templates + "New Style Coming") fit in a single row at the
       380px-wide each layout. 1080 was too tight — the 3rd card kept
       wrapping. */
    max-width: 1240px;
    margin: 0 auto;
}

.theme-grid {
    display: grid;
    /* Locked to 3 equal columns on desktop so all three cards (Watercolor,
       Photo Templates, "New Style Coming") always sit on the same row.
       The earlier auto-fill rule meant the 3rd card wrapped to a new
       row at narrower desktops because the minmax(280px) floor couldn't
       satisfy 3 columns in <900px containers. */
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    /* Stretch each card to the tallest in the row so the price + CTA
       align across all cards regardless of description-text line count. */
    align-items: stretch;
}

/* Arrow nav — hidden on desktop. Mobile rules below override display:flex. */
.theme-carousel-nav {
    display: none;
}

/* ============================================================================
   Mobile: convert the grid to a horizontal scroll-snap carousel
   ============================================================================ */
@media (max-width: 767px) {
    .theme-carousel {
        /* Bleed to the viewport edges so the cards can scroll past the
           container's normal gutter — matches the Apple-style feel where the
           next card peeks off the right edge. The container itself stays at
           its natural width; only the inner grid bleeds. */
        max-width: none;
        margin: 0;
    }
    .theme-grid {
        /* Horizontal flex with scroll-snap. Each card snaps to centre after
           a swipe (scroll-snap-align: center on the cards). Padding-inline
           gives the first/last card breathing room from the viewport edge so
           a centred card has equal whitespace on both sides. */
        display: flex;
        grid-template-columns: none;
        gap: var(--spacing-md);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--spacing-md);
        padding: 0 var(--spacing-md) var(--spacing-xl);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;        /* Firefox */
    }
    .theme-grid::-webkit-scrollbar {
        display: none;                /* Chrome/Safari */
    }
    .theme-card {
        /* ~85% of the viewport so the next card peeks ~15%. flex: 0 0 means
           the card never grows or shrinks; it always occupies this width. */
        flex: 0 0 85%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
    /* Disable hover-lift on touch — looks weird on tap-driven UIs. */
    .theme-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
        border-color: transparent;
    }

    /* Arrow nav — bottom-right of the section. Apple-style rounded squares
       with subtle background, disabled-state at the start/end of the list. */
    .theme-carousel-nav {
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
        padding: 0 var(--spacing-md) var(--spacing-md);
    }
    .theme-carousel-nav__btn {
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.06);
        color: var(--color-text);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background var(--transition-fast), opacity var(--transition-fast);
    }
    .theme-carousel-nav__btn:hover {
        background: rgba(0, 0, 0, 0.1);
    }
    .theme-carousel-nav__btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }
    .theme-carousel-nav__btn svg {
        width: 18px;
        height: 18px;
    }
}

.theme-card {
    /* Flex column so .theme-card-info (which has flex:1 below) stretches
       to fill the card's height — that's how the price + CTA align
       across cards with different description lengths. */
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.theme-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.theme-card-image {
    position: relative;       /* positioning context for .theme-card-badge */
    aspect-ratio: 1;
    background: var(--color-bg-alt);
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Floating production-time badge — playful "sticker" style. Brand pink
   fill (#EE194F) ringed by a thin white halo and a green outer band, with
   a -5deg tilt so it reads as a hand-applied sticker rather than a UI
   status pill. Box-shadow stack does the whole sticker effect — no extra
   markup, no SVG outlines. Extra top/right inset (18px) protects the ring
   from being clipped by the image's overflow:hidden. */
.theme-card-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: #EE194F;          /* brand pink */
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    border-radius: 999px;
    box-shadow:
        0 0 0 2px #fff,                  /* paper-peel halo between the two colours */
        0 0 0 4px #1B8A48,               /* green outer band */
        0 6px 14px rgba(0, 0, 0, 0.18);  /* lift shadow */
    transform: rotate(-5deg);
    transform-origin: center;
    white-space: nowrap;
    pointer-events: none;                /* whole card stays clickable */
}
.theme-card-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.theme-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--spacing-lg);
}

/* Photo-templates theme card thumb is a full t-shirt mockup with a
   dark grey vignette — the actual shirt looks small relative to the
   frame. Scale it 2× so the shirt fills the card; translateY pushes
   it down so the design / footer text sit closer to the visual centre
   of the card (the natural mockup has the shirt near the top edge of
   the source image). Parent's overflow:hidden clips the wider vignette
   edges. */
.theme-card-image img[src*="photo/landing"] {
    transform: scale(2) translateY(-20%);
    transform-origin: center top;
}

.theme-card-info {
    padding: var(--spacing-lg);
    /* flex column + flex:1 so the info block fills the remaining card
       height; .theme-card-cta then gets margin-top:auto and pins to the
       bottom, aligning the CTA across cards regardless of description
       text length. */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.theme-card-name {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.theme-card-desc {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.theme-card-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #E53E3E;
    /* margin-top:auto pushes the price (and the CTA below it) to the
       bottom of the .theme-card-info flex column, so price + CTA align
       on the same Y across all cards regardless of description length. */
    margin-top: auto;
}

.theme-card-cta {
    display: block;
    margin-top: var(--spacing-md);
    padding: 10px 0;
    background: #E4632B;
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    text-align: center;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.theme-card:hover .theme-card-cta {
    background: #D05520;
}

/* Coming Soon card */
.theme-card--coming-soon {
    cursor: default;
    opacity: 0.7;
    border: 2px dashed var(--color-border);
    background: var(--color-bg-alt);
}

.theme-card--coming-soon:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
    transform: none;
}

.theme-card--coming-soon .theme-card-image {
    position: relative;
}

.coming-soon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    background: var(--color-bg-alt);
}

.coming-soon-icon {
    font-size: 4rem;
    opacity: 0.4;
}

.coming-soon-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-text);
    color: var(--color-bg);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ============================================================================
   Landing Sections (How It Works, Gallery, Testimonials, FAQ)
   ============================================================================ */

.landing-section {
    padding: var(--spacing-3xl) 0;
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-2xl);
}

.how-it-works-top {
    border-top: none;
    margin-top: 0;
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    margin-bottom: var(--spacing-2xl);
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
}

.steps-grid--4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 960px;
}

@media (max-width: 768px) {
    .steps-grid--4 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }
}

@media (max-width: 640px) {
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
    .steps-grid--4 {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
}

.step-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
}

.step-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-primary-light);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.step-card-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.step-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.step-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Gallery — Full-width mosaic */
.gallery-section-full {
    overflow: hidden;
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-lg);
}

.gallery-section-full .section-subtitle {
    margin-bottom: var(--spacing-lg);
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    width: 100%;
}

.gallery-mosaic img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Gallery Lightbox */
.gallery-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
}

.gallery-lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

#gallery-lightbox .modal-overlay {
    background: rgba(0, 0, 0, 0.85);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

.testimonial-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.testimonial-stars {
    margin-bottom: var(--spacing-sm);
}

.star {
    color: var(--color-border);
    font-size: 1rem;
}

.star.filled {
    color: #f5a623;
}

.testimonial-quote {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-author {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-primary);
}

.testimonial-pet {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* FAQ */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--spacing-lg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    margin-left: var(--spacing-md);
}

.faq-item[open] .faq-question::after {
    content: '\2212';
}

.faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================================================
   Route Guide — replaces "How It Works" on theme_select
   ============================================================================ */

.route-guide {
    position: relative;
    overflow: hidden;
}

.route-guide .container {
    position: relative;
}

.route-guide__header {
    margin-bottom: 3rem;
    text-align: center;
}

.route-guide__title {
    /* IBM Plex Sans Thai — matches the rest of the site's display
       typography (.display-title). Was Bungee + Chonburi + Archivo. */
    font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', sans-serif;
    font-size: clamp(1.75rem, 5vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #141414;
    text-transform: uppercase;
    margin: 0;
    overflow-wrap: break-word;
}

.route-guide__track {
    position: relative;
}

.route-guide__path {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 30px;
    width: 100%;
    height: 40px;
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    .route-guide__path {
        display: block;
    }
}

.route-guide__stops {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 560px) {
    .route-guide__stops {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .route-guide__stops {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

.route-stop {
    text-align: center;
}

.route-stop__num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #141414;
    color: #F5F1E8;
    border: 3px solid #E4632B;
    /* IBM Plex Sans Thai — matches the rest of the site. Latin-only
       glyphs (numerals) but kept in the family for consistency. */
    font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 0 0 4px #ffffff;
}

.route-stop__mile {
    font-family: 'Archivo', 'Zen Kaku Gothic New', sans-serif;
    font-weight: 900;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #E4632B;
    margin-bottom: 0.3rem;
}

.route-stop__title {
    /* IBM Plex Sans Thai — matches the rest of the site. */
    font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', sans-serif;
    font-size: 1.375rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #141414;
    margin: 0 0 0.5rem;
}

.route-stop__desc {
    color: #2A2622;
    font-size: 0.875rem;
    line-height: 1.55;
    max-width: 240px;
    margin: 0 auto;
}

/* Thai script is visually heavier — dial title size down for rhythm */
html[lang="th"] .route-stop__title {
    font-size: 1.25rem;
    letter-spacing: 0.01em;
}

/* ============================================================================
   Display Title — shared headline style for theme_select section headers
   ============================================================================ */

.display-title {
    /* Switched to IBM Plex Sans Thai on 2026-06-11 — same display face
       paypers.ai uses, covers Latin + Thai from one family. Was Bungee
       + Chonburi + Archivo stack. */
    font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', sans-serif;
    font-size: clamp(1.5rem, 4.5vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #141414;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 var(--spacing-sm);
    overflow-wrap: break-word;
}

.display-title--hero {
    font-size: clamp(1.75rem, 5.5vw, 3.25rem);
}

/* ============================================================================
   Catalog Preview — mini-catalog on the home page
   Surfaces /catalog on mobile where the nav is collapsed behind the burger
   ============================================================================ */

.catalog-preview {
    padding: 1rem 1rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.catalog-preview__head { text-align: center; margin-bottom: 1.5rem; }
.catalog-preview__title { margin: 0 0 0.5rem; }
.catalog-preview__subtitle {
    color: #64748b; font-size: 0.95rem; margin: 0; max-width: 480px;
    margin-left: auto; margin-right: auto; line-height: 1.5;
}
.catalog-preview__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px)  { .catalog-preview__grid { gap: 1rem; } }
@media (min-width: 1024px) { .catalog-preview__grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.catalog-preview__card {
    display: block; text-decoration: none; color: inherit;
    background: white; border-radius: 0.5rem; overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.catalog-preview__card:hover { transform: translateY(-2px); border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.catalog-preview__image {
    /* Match catalog grid frame — slightly darker neutral so white/cream tees pop. */
    aspect-ratio: 2 / 3; background: #e5e7eb; overflow: hidden; position: relative;
}
.catalog-preview__image img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.catalog-preview__body { padding: 0.7rem 0.85rem 0.9rem; }
.catalog-preview__name { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.2rem; }
.catalog-preview__price { font-size: 0.9rem; font-weight: 700; color: var(--color-brand-orange); margin: 0; }
.catalog-preview__cta-wrap { text-align: center; margin-top: 1.5rem; }
.catalog-preview__cta {
    display: inline-block; padding: 0.7rem 1.5rem;
    color: var(--color-brand-orange); border: 1.5px solid var(--color-brand-orange);
    border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 0.95rem;
    transition: background 0.15s ease;
}
.catalog-preview__cta:hover { background: var(--color-brand-orange); color: white; }

/* ============================================================================
   Editorial Hero — full-bleed lifestyle photo with text overlay
   Matches the wearwuuf.com home page pattern: 5:6 mobile, 16:9 desktop
   ============================================================================ */
.hero-editorial {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #1a1a1a;
    /* Absorb .main's top padding (var(--spacing-sm)) so the hero butts
       directly against the header — Carhartt / wearwuuf.com pattern. */
    margin-top: calc(-1 * var(--spacing-sm));
}
.hero-editorial__image {
    width: 100%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    display: block;
}
@media (min-width: 900px) {
    .hero-editorial__image {
        aspect-ratio: 16 / 9;
        max-height: 80vh;
    }
}
.hero-editorial__overlay {
    position: absolute;
    bottom: 1.25rem;
    left: 1rem;
    right: 1rem;
    color: white;
    /* Gentle dark gradient behind text for legibility on busy photos. */
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}
@media (min-width: 900px) {
    .hero-editorial__overlay {
        bottom: 3rem;
        left: 3rem;
        right: auto;
        max-width: 640px;
    }
}
@media (min-width: 1280px) {
    .hero-editorial__overlay { bottom: 4rem; left: 4rem; }
}
.hero-editorial__title {
    color: white;
    margin: 0 0 0.5rem;
    line-height: 1.05;
    font-size: clamp(1.75rem, 5.5vw, 3.25rem);
}
.hero-editorial__tagline {
    color: white;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1.5;
    margin: 0;
    max-width: 520px;
    opacity: 0.95;
}

/* ============================================================================
   Why WUUF — relocated marketing banner (was the top hero, now a trust panel)
   Full-bleed: escapes the parent .container's max-width via negative margins
   so the banner runs edge-to-edge of the viewport like the editorial hero up top.
   ============================================================================ */
.why-wuuf {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
}
.why-wuuf__image {
    width: 100%;
    height: auto;
    display: block;
}
/* Mobile: zoom in on the center of the banner so the subject reads big.
   Mirrors the original .hero-banner crop pattern: 150% wide at tablet,
   200% wide at phone. The overflow:hidden on .why-wuuf trims the sides. */
@media (max-width: 768px) {
    .why-wuuf__image {
        width: 150%;
        margin-left: -25%;
    }
}
@media (max-width: 480px) {
    .why-wuuf__image {
        width: 200%;
        margin-left: -50%;
    }
}
