/*
Theme Name: Coreve
Theme URI: http://localhost:8090
Author: Coreve
Description: Custom theme for Coreve — India's sneaker brand made for women.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coreve
*/

:root {
    /* Design system tokens — Coreve / warm luxury neutrals (ivory, charcoal, stone).
       Replaces the earlier dark+gold "Liquid Glass" direction per the CRO/brand
       rebuild brief: ivory/alabaster background, charcoal foreground/primary,
       muted stone secondary, a restrained clay accent used sparingly. */
    --color-primary: #26221D;
    --color-on-primary: #F8F4EC;
    --color-secondary: #6B6255;
    --color-on-secondary: #FFFFFF;
    /* Matches the live coreve.in brand green (sampled directly from the
       live site's header/badges/buttons) — replaces the earlier clay/
       chocolate accent. */
    --color-accent: #00503C;
    --color-on-accent: #FFFFFF;
    /* Brighter companion shade (also sampled from the live site's own
       neon-glow/outline accents) — used only where accent text needs to
       sit on a dark background, since the deep green itself is too close
       in value to the dark charcoal header/footer to stay legible there. */
    --color-accent-bright: #2DB742;
    --color-background: #F8F4EC;
    --color-foreground: #201C17;
    --color-card: #FFFFFF;
    --color-card-foreground: #201C17;
    --color-muted: #EFE9DD;
    --color-muted-foreground: #6B6255;
    --color-border: #E0D8C8;
    --color-destructive: #B3261E;
    --color-on-destructive: #FFFFFF;
    --color-ring: #26221D;

    /* Legacy aliases kept so section markup doesn't need renaming */
    --brand-dark: var(--color-primary);
    --brand-dark-2: var(--color-secondary);
    --brand-accent: var(--color-accent);
    --brand-cream: var(--color-background);
    --brand-brown: var(--color-secondary);
    --text-dark: var(--color-foreground);
    --text-muted: var(--color-muted-foreground);
    --border-color: var(--color-border);
    --card-bg: var(--color-card);

    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    --font-heading: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    --transition: all 200ms ease;
    --transition-fast: all 150ms ease;
}

* , *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-foreground);
    line-height: 1.6;
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); cursor: pointer; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

a, button, .btn, .btn-primary, .btn-secondary, .product-card, .faq-question,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
input[type="submit"], input[type="button"] {
    cursor: pointer;
}

/* Visible keyboard focus (WCAG 2.2) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible,
.faq-question:focus-visible {
    outline: 2px solid var(--color-ring);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Visually hidden but still reachable by screen readers/SEO — used where a
   heading's visual role has been taken over by a purely decorative element. */
.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;
}

/* Prevent CSS Grid's default min-content sizing from overflowing narrow
   viewports when a track holds an image (classic grid min-width:auto trap). */
.product-grid > *,
.testimonial-grid > *,
.feature-triptych > *,
.process-grid > *,
.lifestyle-banner > *,
.footer-grid > * {
    min-width: 0;
}

/* ==========================================
   Header — Liquid Glass
   ========================================== */
.site-header {
    background-color: rgba(38, 34, 29, 0.78);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transform: translateY(0);
    transition: transform 250ms ease;
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo-link img {
    height: 32px;
    width: auto;
}

.site-logo-text {
    color: var(--color-on-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.8rem;
    letter-spacing: 0.01em;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--color-on-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-navigation a:hover { color: var(--color-accent-bright); }

.header-icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-on-primary);
    font-size: 1.1rem;
}

.header-icons a, .header-icons button#search-toggle {
    color: var(--color-on-primary);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    font-size: 1.1rem;
}
.header-icons a:hover, .header-icons button#search-toggle:hover { color: var(--color-accent-bright); }
.header-icons .cart-count {
    background: var(--color-accent);
    color: var(--color-on-accent);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -8px;
    left: -6px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-on-primary);
    font-size: 1.3rem;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.header-search-bar {
    background: rgba(38, 34, 29, 0.96);
    backdrop-filter: blur(16px);
    padding: var(--space-md) 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.header-search-bar[hidden] { display: none; }
.header-search-form {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: var(--space-sm);
}
.header-search-form input[type="search"] {
    flex: 1;
    min-height: 44px;
    padding: 0 var(--space-md);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: var(--color-on-primary);
    font-size: 16px;
}
.header-search-form input[type="search"]::placeholder { color: rgba(255,255,255,0.6); }
.header-search-form button {
    min-width: 44px;
    min-height: 44px;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-on-accent);
    font-size: 1.1rem;
}

/* ==========================================
   Hero
   ========================================== */
.hero {
    background: var(--color-muted);
    color: var(--color-foreground);
    overflow: hidden;
    position: relative;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-3xl) 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
}

.hero-inner > * { min-width: 0; }

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-support {
    font-size: 1.1rem;
    color: var(--color-muted-foreground);
    max-width: 480px;
    margin-bottom: var(--space-xl);
}

.hero-ctas { display: flex; gap: var(--space-md); flex-wrap: wrap; }

.hero-image img {
    filter: drop-shadow(var(--shadow-xl));
}

/* ==========================================
   Cultural Truth — premium atmospheric hero (Section 4)
   A moody, spotlit backdrop with a giant ghosted watermark word behind a
   floating product cutout (drop the file in to make it appear — see the
   file_exists() check in front-page.php). Deliberately the one other dark,
   dramatic moment on the site besides the header, same reasoning as
   before: one consistent dark accent, not scattered darkness.
   ========================================== */
.cultural-truth-hero {
    position: relative;
    overflow: hidden;
    padding: var(--space-3xl) 1.5rem;
    background:
        radial-gradient(ellipse 60% 50% at 50% 35%, rgba(140, 74, 44, 0.35), transparent 70%),
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(38, 34, 29, 0.9), #0C0A09 80%),
        #16130f;
    color: var(--color-on-primary);
    text-align: center;
}
.cultural-truth-bgword {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(8rem, 32vw, 16rem);
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.09);
    white-space: nowrap;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}
.cultural-truth-content { position: relative; z-index: 1; }
.cultural-truth-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent-bright);
    margin-bottom: var(--space-md);
}
.cultural-truth-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 760px;
    margin: 0 auto var(--space-lg);
}
.cultural-truth-lede {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.05rem;
    line-height: 1.7;
    /* Soft warm glow (echoes the section's own accent light) plus a dark
       contact shadow, so the text stays crisp wherever it falls across
       the uneven vignette background rather than just being flat-bright. */
    text-shadow: 0 0 22px rgba(255, 205, 150, 0.35), 0 1px 3px rgba(0, 0, 0, 0.45);
}
.cultural-truth-product {
    position: relative;
    max-width: 460px;
    margin: var(--space-2xl) auto 0;
}
.cultural-truth-product-img {
    position: relative;
    z-index: 2;
    width: 100%;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}
.cultural-truth-product-reflection {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    transform: scaleY(-1);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 65%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 65%);
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 480px) {
    .cultural-truth-hero { padding: var(--space-2xl) 1rem; }
    .cultural-truth-product { max-width: 300px; }
}

/* ==========================================
   Coreve Reveal (Section 5)
   ========================================== */
.reveal-copy {
    max-width: 640px;
    margin: 0 auto var(--space-xl);
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-foreground);
}

/* ==========================================
   Product Collection (Section 6)
   ========================================== */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.collection-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}
.collection-card:hover { box-shadow: var(--shadow-lg); }
.collection-card-image {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.collection-card-image img { width: 100%; height: 100%; object-fit: cover; }
.collection-card-body { padding: var(--space-lg); }
.collection-card-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-foreground);
    margin-bottom: var(--space-sm);
}
.collection-card-price { margin-bottom: var(--space-md); font-weight: 700; }
.collection-card-price del { color: var(--color-muted-foreground); font-weight: 400; margin-right: var(--space-sm); }
.collection-card-price ins { text-decoration: none; color: var(--color-accent); }

.size-pills { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.size-pill {
    min-width: 44px;
    min-height: 44px;
    padding: 0 var(--space-sm);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-card);
    color: var(--color-foreground);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}
.size-pill:hover { border-color: var(--color-primary); }
.size-pill[aria-pressed="true"] {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-on-primary);
}
.size-guide-link { margin-bottom: var(--space-md); }
.size-guide-link a { font-size: 0.85rem; color: var(--color-muted-foreground); text-decoration: underline; }
.size-error {
    color: var(--color-destructive);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: var(--space-sm);
    text-align: center;
}
.add-to-bag-btn { width: 100%; }

/* ==========================================
   The Wedge Story (Section 7)
   ========================================== */
.wedge-story {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-2xl);
    align-items: center;
}
.wedge-story-text p { color: var(--color-foreground); margin-bottom: var(--space-md); line-height: 1.7; }
.wedge-story-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ==========================================
   Why Coreve Feels Different — pillars (Section 8)
   ========================================== */
.pillars-hero {
    position: relative;
    overflow: hidden;
    padding-top: var(--space-3xl);
    /* Same deep-green diagonal sampled from the live coreve.in header. */
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.09), transparent 60%),
        linear-gradient(165deg, #0B3F28, #0E3F31 55%, #196D47 100%);
}
/* The headline as a giant background watermark — whiteish, low-opacity,
   sized to stay on one line on desktop and wrap to three lines on mobile. */
.pillars-watermark {
    position: absolute;
    top: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.16);
    line-height: 1.05;
    white-space: nowrap;
    font-size: clamp(2rem, 5.2vw, 5rem);
    z-index: 0;
    pointer-events: none;
    user-select: none;
}
.pillars-hero .container { position: relative; z-index: 1; }
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
}
.pillar-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    /* Each card takes its turn "opening" in sequence, then the cycle loops
       forever — a relay of reveals rather than a static grid. */
    opacity: 0.45;
    transform: translateY(6px);
    animation: pillar-reveal 8s ease-in-out infinite both;
}
.pillar-card:nth-child(1) { animation-delay: 0s; }
.pillar-card:nth-child(2) { animation-delay: 2s; }
.pillar-card:nth-child(3) { animation-delay: 4s; }
.pillar-card:nth-child(4) { animation-delay: 6s; }
@keyframes pillar-reveal {
    0%, 100% { opacity: 0.45; transform: translateY(6px); }
    10%, 22% { opacity: 1; transform: translateY(0); }
    32% { opacity: 0.45; transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
    .pillar-card { animation: none; opacity: 1; transform: none; }
}
.pillar-number {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}
.pillar-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-sm); color: var(--color-primary); }
.pillar-card p { color: var(--color-muted-foreground); font-size: 0.95rem; line-height: 1.6; }

@media (max-width: 600px) {
    .pillars-watermark {
        white-space: normal;
        font-size: clamp(2rem, 10.5vw, 2.75rem);
        max-width: 290px;
        left: 50%;
    }
    /* Enough clearance for the watermark's 3 wrapped lines before the
       cards begin, so the two never overlap. */
    .pillar-grid { margin-top: 210px; }
}

/* ==========================================
   Micro trust bar
   ========================================== */
.trust-bar {
    background: var(--color-primary);
    color: var(--color-on-primary);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: var(--space-sm) var(--space-md);
}
.trust-bar span { margin: 0 var(--space-sm); }

/* ==========================================
   Section headings
   ========================================== */
.section {
    padding: var(--space-3xl) 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--color-muted-foreground);
    margin-bottom: var(--space-2xl);
    font-family: var(--font-body);
}

.section-cream { background-color: var(--color-background); }

/* ==========================================
   Product grid
   ========================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
}

.product-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.product-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--color-accent);
    color: var(--color-on-accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    z-index: 5;
}

.product-card-image {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-image img { width: 100%; height: 100%; object-fit: cover; }

.product-card-body { padding: 1.25rem; text-align: center; }

.product-card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    color: var(--color-foreground);
    display: block;
}

.product-card-price del { color: var(--color-muted-foreground); margin-right: 0.5rem; font-size: 0.9rem; }
.product-card-price ins { text-decoration: none; font-weight: 700; color: var(--color-accent); }

/* ==========================================
   Why Coreve Exists / pill badges over image
   ========================================== */
.pill-image-block { position: relative; }
.pill-image-block img { width: 100%; border-radius: var(--radius-md); }
.pill-badges {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: flex-end;
    max-width: 60%;
}
.pill-badge {
    background: rgba(38, 34, 29, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    font-size: 1.1rem;
}

/* ==========================================
   Process strip
   ========================================== */
.process-strip {
    background: var(--color-background);
    background-image: linear-gradient(var(--color-border) 1px, transparent 1px), linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 24px 24px;
    padding: var(--space-2xl) 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.process-grid figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.process-grid figcaption { text-align: center; font-weight: 700; font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-primary); margin-top: 0.75rem; }

/* ==========================================
   Feature triptych
   ========================================== */
.feature-triptych {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.feature-triptych figure { position: relative; }
.feature-triptych img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.feature-triptych figcaption {
    text-align: center;
    padding: var(--space-md);
    font-weight: 600;
    letter-spacing: 0.03em;
    background: var(--color-muted);
    color: var(--color-foreground);
}

/* ==========================================
   Lifestyle banner
   ========================================== */
.lifestyle-banner img { width: 100%; height: auto; display: block; }

/* ==========================================
   Refab / CTA band
   ========================================== */
.cta-band { text-align: center; padding: var(--space-3xl) 1.5rem; }
.cta-band p { max-width: 640px; margin: 0 auto var(--space-lg); color: var(--color-muted-foreground); }

.btn, .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: var(--color-accent);
    color: var(--color-on-accent);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: none;
    transition: var(--transition);
}
.btn:hover, .btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn:focus-visible, .btn-primary:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}
.btn-secondary:hover { background: var(--color-primary); color: var(--color-on-primary); }

/* ==========================================
   Testimonials
   ========================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}
.testimonial-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-card p { margin-bottom: var(--space-lg); color: var(--color-foreground); font-size: 0.95rem; }
.testimonial-stars { color: var(--color-accent); margin-bottom: var(--space-sm); }
.testimonial-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; }
.testimonial-role { color: var(--color-muted-foreground); font-size: 0.85rem; }

/* ==========================================
   Instagram social proof — real links to real posts, not a heavy iframe
   ========================================== */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}
.instagram-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl) var(--space-md);
    transition: var(--transition);
}
.instagram-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.instagram-card > i:first-child { font-size: 2rem; color: var(--color-accent); }
.instagram-card-name { font-weight: 700; font-family: var(--font-heading); }
.instagram-card-handle { color: var(--color-muted-foreground); font-size: 0.85rem; }
.instagram-card-cta {
    margin-top: var(--space-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================
   FAQ accordion
   ========================================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.25rem 0;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--color-foreground);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
    color: var(--color-muted-foreground);
    font-family: var(--font-body);
}
.faq-item.is-open .faq-answer { max-height: 400px; padding-bottom: var(--space-lg); }
.faq-item.is-open .faq-question .faq-icon { transform: rotate(180deg); }
.faq-icon { transition: transform var(--transition-fast); }

/* Product-page accordion sections can be longer than the homepage FAQ
   (size chart tables, bullet lists) — a fixed 400px cap would clip them. */
.product-accordion-item.is-open .faq-answer { max-height: none; }
.product-accordion-body p, .product-accordion-body ul { margin-bottom: var(--space-md); }
.product-accordion-body table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-md); }
.product-accordion-body table td, .product-accordion-body table th { border: 1px solid var(--color-border); padding: 0.5rem; text-align: left; }
.product-accordion-body ul { list-style: disc; padding-left: 1.25rem; }
.product-accordion-body li { margin-bottom: var(--space-sm); }

/* ==========================================
   Product page (single sneaker) — sales redesign
   ========================================== */

/* Breadcrumb */
.breadcrumb-nav {
    padding: var(--space-md) 1.5rem var(--space-sm);
    font-size: 0.82rem;
    color: var(--color-muted-foreground);
    max-width: 1280px;
    margin: 0 auto;
}
.breadcrumb-nav a { color: var(--color-muted-foreground); }
.breadcrumb-nav a:hover { color: var(--color-primary); }

/* Hero layout: gallery (55%) + sticky info (45%) */
.product-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-3xl);
    padding: var(--space-sm) 1.5rem var(--space-3xl);
    max-width: 1280px;
    margin: 0 auto;
    align-items: start;
}

/* Sticky info panel — stays visible while gallery scrolls */
.product-hero-info {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* ==== WooCommerce gallery: vertical thumbnail rail ==== */
.product-hero-gallery .woocommerce-product-gallery {
    display: flex !important;
    float: none !important;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    position: relative;
}

/* Thumbnail strip — moved left via order */
.product-hero-gallery .flex-control-nav {
    order: -1;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
    width: 80px;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 600px;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    scrollbar-width: none;
}
.product-hero-gallery .flex-control-nav::-webkit-scrollbar { display: none; }

.product-hero-gallery .flex-control-thumbs li {
    width: 80px !important;
    height: 80px !important;
    float: none !important;
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--color-border);
    transition: border-color 200ms ease;
    flex-shrink: 0;
}

.product-hero-gallery .flex-control-thumbs li:has(img.flex-active) {
    border-color: var(--color-primary);
}

.product-hero-gallery .flex-control-thumbs img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    opacity: 1 !important;
    display: block;
}

/* Main image */
.product-hero-gallery figure.woocommerce-product-gallery__wrapper {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
}

.product-hero-gallery .woocommerce-product-gallery__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-muted);
    margin-bottom: 0 !important;
}

.product-hero-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Zoom trigger — floating on main image */
.product-hero-gallery .woocommerce-product-gallery__trigger {
    position: absolute !important;
    top: 12px;
    right: 12px;
    z-index: 9;
    background: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    transition: background 200ms;
    padding: 0 !important;
    margin: 0 !important;
}
.product-hero-gallery .woocommerce-product-gallery__trigger:hover { background: #fff !important; }
.product-hero-gallery .woocommerce-product-gallery__trigger img { width: 18px !important; height: 18px !important; opacity: 0.65; }

/* ==== Product info elements ==== */
.product-brand-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.product-hero-title {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.product-hero-rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}
.product-stars { color: #D97706; font-size: 0.9rem; }
.review-count-link {
    font-size: 0.85rem;
    color: var(--color-muted-foreground);
    text-decoration: underline;
}
.review-count-link:hover { color: var(--color-primary); }

/* Price row */
.product-hero-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: var(--space-md);
}
.product-hero-price .woocommerce-Price-amount,
.product-hero-price .price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}
.product-hero-price del { color: var(--color-muted-foreground); font-weight: 400; font-size: 1.1rem; margin-right: var(--space-xs); }
.product-hero-price ins { text-decoration: none; }
.price-free-shipping {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* Short description — benefit statement */
.product-hero-benefit {
    font-size: 0.97rem;
    line-height: 1.65;
    color: var(--color-foreground);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

/* Trust badges — 3-up grid */
.product-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: var(--space-lg);
}
.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: var(--color-muted);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.4rem;
    text-align: center;
    border: 1px solid var(--color-border);
}
.trust-badge i { font-size: 1.25rem; color: var(--color-accent); }
.trust-badge span { font-size: 0.7rem; font-weight: 600; color: var(--color-foreground); line-height: 1.3; }

/* Size selector */
.size-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}
.size-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-foreground);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.size-guide-link {
    font-size: 0.82rem;
    color: var(--color-muted-foreground);
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 200ms;
}
.size-guide-link:hover { color: var(--color-primary); }

.size-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.size-pill {
    min-width: 64px;
    height: 44px;
    padding: 0 var(--space-md);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-card);
    color: var(--color-foreground);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: border-color 200ms, background 200ms, color 200ms;
}
.size-pill:hover { border-color: var(--color-primary); background: var(--color-muted); }
.size-pill[aria-pressed="true"] {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-on-primary);
}

.size-error {
    font-size: 0.85rem;
    color: var(--color-destructive);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

/* Dual CTA buttons */
.product-hero-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
}
.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 52px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-accent);
    background: transparent;
    color: var(--color-accent);
    font-size: 0.93rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 200ms, color 200ms;
}
.btn-add-to-cart:hover { background: var(--color-accent); color: var(--color-on-accent); }
.btn-add-to-cart:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 52px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-primary);
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 0.93rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 200ms, border-color 200ms;
}
.btn-buy-now:hover { background: var(--color-accent); border-color: var(--color-accent); }
.btn-buy-now:disabled { opacity: 0.6; cursor: not-allowed; }

/* WhatsApp help link */
.product-whatsapp-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.84rem;
    color: var(--color-muted-foreground);
    margin-bottom: var(--space-lg);
    transition: color 200ms;
}
.product-whatsapp-cta:hover { color: #25D366; }
.product-whatsapp-cta i { font-size: 1.1rem; }

/* Queens Club loyalty callout */
.product-queens-callout {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    background: var(--color-muted);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
}
.product-queens-callout > i { font-size: 1.4rem; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.queens-callout-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.queens-callout-text strong { font-size: 0.87rem; font-weight: 700; color: var(--color-primary); }
.queens-callout-text span { font-size: 0.8rem; color: var(--color-muted-foreground); line-height: 1.4; }
.queens-callout-link { font-size: 0.82rem; font-weight: 600; color: var(--color-accent); text-decoration: underline; white-space: nowrap; align-self: center; flex-shrink: 0; margin-left: var(--space-sm); }
.queens-callout-link:hover { color: var(--color-primary); }

/* ==== Feature strip (below hero, above accordion) ==== */
.product-feature-strip {
    background: var(--color-muted);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-2xl) 1.5rem;
    margin-bottom: var(--space-3xl);
}
.feature-strip-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
    max-width: 1280px;
    margin: 0 auto;
}
.feature-strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
    padding: 0 var(--space-sm);
}
.feature-strip-item i { font-size: 1.8rem; color: var(--color-accent); }
.feature-strip-item strong { font-size: 0.87rem; font-weight: 700; color: var(--color-primary); font-family: var(--font-heading); line-height: 1.3; }
.feature-strip-item span { font-size: 0.78rem; color: var(--color-muted-foreground); line-height: 1.45; }

/* Accordion + reviews */
.product-accordion { max-width: 760px; margin: 0 auto var(--space-3xl); }
.product-reviews { max-width: 760px; margin: 0 auto var(--space-3xl); }
/* WooCommerce star-rating tap target — pad to 44×44 without changing visual rendering */
.product-reviews .comment-form-rating a[class^="star-"] {
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   Sticky mobile buy bar
   ========================================== */
.sticky-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.sticky-buy-bar[hidden] { display: none; }
.sticky-buy-bar-image { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.sticky-buy-bar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sticky-buy-bar-name { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy-bar-price { font-size: 0.85rem; color: var(--color-accent); font-weight: 700; }
.sticky-buy-bar-size-guide { font-size: 0.75rem; color: var(--color-muted-foreground); text-decoration: underline; }
.sticky-buy-bar-btn { min-height: 44px; padding: 0 1.25rem; white-space: nowrap; }
body:has(.sticky-buy-bar:not([hidden])) { padding-bottom: 72px; }
body.cart-drawer-open .sticky-buy-bar { display: none; }
body.cart-drawer-open { overflow: hidden; }

/* ==========================================
   Cart drawer (Part 10)
   ========================================== */
.cart-drawer { position: fixed; inset: 0; z-index: 200; }
.cart-drawer[hidden] { display: none; }
.cart-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 28, 23, 0.5);
    opacity: 0;
    transition: opacity 300ms ease;
}
.cart-drawer.is-active .cart-drawer-backdrop { opacity: 1; }
.cart-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: var(--color-background);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 300ms ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.15);
}
.cart-drawer.is-active .cart-drawer-panel { transform: translateX(0); }
.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}
.cart-drawer-header h2 { font-size: 1.25rem; font-weight: 700; }
.cart-drawer-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-foreground);
}
.cart-drawer-items { flex: 1; overflow-y: auto; padding: var(--space-md) var(--space-lg); }
.cart-drawer-empty { color: var(--color-muted-foreground); text-align: center; padding: var(--space-2xl) 0; }
.cart-drawer-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}
.cart-drawer-item-image { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-primary); flex-shrink: 0; }
.cart-drawer-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-drawer-item-name { font-weight: 600; font-size: 0.9rem; }
.cart-drawer-item-size { font-size: 0.8rem; color: var(--color-muted-foreground); }
.cart-drawer-item-qty { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-xs); }
.qty-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.qty-value { min-width: 20px; text-align: center; font-weight: 600; }
.cart-drawer-item-remove {
    background: none;
    border: none;
    text-decoration: underline;
    color: var(--color-muted-foreground);
    font-size: 0.8rem;
    margin-left: var(--space-sm);
    min-height: 44px;
    padding: 0 var(--space-sm);
    display: inline-flex;
    align-items: center;
}
.cart-drawer-item-price { font-weight: 700; color: var(--color-accent); white-space: nowrap; }
.cart-drawer-trust {
    padding: var(--space-md) var(--space-lg);
    background: var(--color-muted);
    font-size: 0.8rem;
}
.cart-drawer-trust p { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); color: var(--color-foreground); }
.cart-drawer-trust p:last-child { margin-bottom: 0; }
.cart-drawer-trust a { text-decoration: underline; }
.cart-drawer-footer { padding: var(--space-lg); border-top: 1px solid var(--color-border); }
.cart-drawer-subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin-bottom: var(--space-md); }
.cart-drawer-checkout { display: block; width: 100%; text-align: center; }

.checkout-trust-block {
    max-width: 480px;
    margin: 0 auto var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-muted);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}
.checkout-trust-block p { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); color: var(--color-foreground); }
.checkout-trust-block p:last-child { margin-bottom: 0; }
.checkout-trust-block a { text-decoration: underline; }

@media (max-width: 480px) {
    .cart-drawer-panel { max-width: 100%; }
}

/* ==========================================
   Size Guide modal — centered dialog on desktop, near-full-screen on
   mobile. Header (with the close button) is sticky inside the panel so
   it never scrolls out of view on either breakpoint.
   ========================================== */
.size-guide-modal { position: fixed; inset: 0; z-index: 210; }
.size-guide-modal[hidden] { display: none; }
.size-guide-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 28, 23, 0.5);
    opacity: 0;
    transition: opacity 300ms ease;
}
.size-guide-modal.is-active .size-guide-modal-backdrop { opacity: 1; }
.size-guide-modal-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    width: calc(100% - 2rem);
    max-width: 560px;
    max-height: 85vh;
    background: var(--color-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 250ms ease, transform 250ms ease;
    overflow: hidden;
}
.size-guide-modal.is-active .size-guide-modal-panel { opacity: 1; transform: translate(-50%, -50%); }
.size-guide-modal-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}
.size-guide-modal-header h2 { font-size: 1.25rem; font-weight: 700; }
.size-guide-modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-foreground);
}
.size-guide-modal-body {
    padding: var(--space-lg);
    overflow-y: auto;
}
.size-guide-modal-body p { margin-bottom: var(--space-md); color: var(--color-foreground); }
.size-guide-modal-body h3 { font-size: 1.05rem; font-weight: 700; margin: var(--space-lg) 0 var(--space-sm); color: var(--color-primary); }
.size-guide-modal-body table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-md); }
.size-guide-modal-body table td, .size-guide-modal-body table th { border: 1px solid var(--color-border); padding: 0.6rem; text-align: left; }
.size-guide-modal-body a { text-decoration: underline; }

body.size-guide-modal-open { overflow: hidden; }

@media (max-width: 600px) {
    .size-guide-modal-panel {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
    }
    .size-guide-modal.is-active .size-guide-modal-panel { transform: none; }
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
    background: var(--color-primary);
    color: #D6D3D1;
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-grid h4 { font-family: var(--font-heading); color: #fff; font-weight: 600; font-size: 1.2rem; margin-bottom: var(--space-md); }
.footer-grid li { margin-bottom: 0.6rem; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--color-accent-bright); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: 0.85rem;
    color: #A8A29E;
}

/* ==========================================
   Generic page content
   ========================================== */
.page-content-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: var(--space-3xl) 1.5rem;
}
.page-content-wrap h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}
.page-content-wrap h2 { font-size: 1.5rem; font-weight: 600; color: var(--color-primary); margin: var(--space-xl) 0 var(--space-sm); }
.page-content-wrap h3 { font-size: 1.2rem; font-weight: 600; margin: var(--space-lg) 0 var(--space-sm); font-family: var(--font-heading); }
.page-content-wrap p { margin-bottom: var(--space-md); color: var(--color-foreground); font-family: var(--font-body); }
.page-content-wrap ul { list-style: disc; padding-left: var(--space-lg); margin-bottom: var(--space-md); }
.page-content-wrap li { margin-bottom: 0.4rem; }
.page-content-wrap table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-lg); }
.page-content-wrap table td, .page-content-wrap table th { border: 1px solid var(--color-border); padding: 0.6rem; text-align: left; }

.about-process-banner { margin-bottom: var(--space-xl); }
.about-process-banner img {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   Story page (Why Coreve / India-Middle East)
   ========================================== */
.story-section { max-width: 640px; margin: 0 auto; padding: var(--space-3xl) 0; border-bottom: 1px solid var(--color-border); }
.story-section:last-child { border-bottom: none; }
.story-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}
.story-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    line-height: 1.25;
}
.story-section p { color: var(--color-foreground); margin-bottom: var(--space-md); font-family: var(--font-body); }

/* ==========================================
   WooCommerce overrides
   ========================================== */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    list-style: none;
}
.woocommerce ul.products li.product {
    float: none; width: 100%; margin: 0;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    padding-bottom: var(--space-lg);
    transition: var(--transition);
}
.woocommerce ul.products li.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.woocommerce ul.products li.product img { aspect-ratio: 4/3; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: var(--space-md) 1.25rem 0.25rem; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem;
}
.woocommerce ul.products li.product .price { padding: 0 1.25rem; display: block; font-weight: 700; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--color-accent); }
.woocommerce ul.products li.product .price del { color: var(--color-muted-foreground); }
.woocommerce ul.products li.product .button {
    margin: var(--space-md) 1.25rem 0;
    background: var(--color-primary) !important;
    color: var(--color-on-primary) !important;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    transition: var(--transition);
}
.woocommerce ul.products li.product .button:hover { background: var(--color-accent) !important; }
.woocommerce span.onsale {
    background: var(--color-accent) !important;
    color: var(--color-on-accent);
    font-weight: 700;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--color-primary); font-weight: 600; }
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
    background: var(--color-primary) !important;
    color: var(--color-on-primary) !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    min-height: 44px;
    padding: 10px 20px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover {
    background: var(--color-accent) !important;
    color: var(--color-on-accent) !important;
    opacity: 0.95;
}
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--color-accent); font-weight: 700; }
#primary.content-area { max-width: 1280px; margin: var(--space-2xl) auto; padding: 0 1.5rem; }

/* Form inputs (checkout, my account, search) */
.woocommerce input.input-text,
.woocommerce table.shop_table td select,
.woocommerce-page input.input-text,
.woocommerce-page select {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: border-color var(--transition);
}
.woocommerce input.input-text:focus,
.woocommerce-page select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(38,34,29,0.12);
}

.woocommerce div.quantity .qty,
.woocommerce table.cart td.actions .quantity .qty {
    min-height: 44px;
    width: 4.5em;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    text-align: center;
}

/* ==========================================
   Responsive — 375 / 768 / 1024 / 1440
   ========================================== */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
    .collection-grid { grid-template-columns: repeat(2, 1fr); }
    .pillar-grid { grid-template-columns: repeat(2, 1fr); }
    .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.4rem; }
    .hero-ctas { justify-content: center; }
    .feature-triptych { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-navigation { display: none; }
    .mobile-menu-toggle { display: flex; }
    .wedge-story { grid-template-columns: 1fr; }
    .wedge-story-image { order: -1; }
    /* Product page: single-column, info un-sticks */
    .product-hero { grid-template-columns: 1fr; padding: var(--space-md) 1rem var(--space-2xl); gap: var(--space-2xl); }
    .product-hero-info { position: static; top: auto; }
    .product-hero-ctas { grid-template-columns: 1fr 1fr; }
    .feature-strip-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
    /* Gallery: switch to horizontal thumb strip on mobile */
    .product-hero-gallery .woocommerce-product-gallery { flex-direction: column; gap: 10px; }
    .product-hero-gallery .flex-control-nav {
        order: 1;
        flex-direction: row !important;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        max-height: none;
        gap: 8px;
        padding-bottom: 4px !important;
    }
    .product-hero-gallery .flex-control-thumbs li { width: 68px !important; height: 68px !important; }
}

@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr; }
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }

    /* The "Why Coreve Exists" banner image is very wide/short; overlaying
       badges on it breaks once the image shrinks below badge-stack height. */
    .pill-badges {
        position: static;
        margin-top: var(--space-md);
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .woocommerce ul.products { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.75rem; }
    .hero-content h1 { font-size: 2rem; }
    .collection-grid { grid-template-columns: 1fr; }
    .pillar-grid { grid-template-columns: 1fr; }
    .instagram-grid { grid-template-columns: 1fr; }
    /* Product page small phones */
    .product-trust-badges { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .product-hero-ctas { grid-template-columns: 1fr; }
    .feature-strip-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .product-hero-title { font-size: 1.55rem; }
    .product-hero-gallery .flex-control-thumbs li { width: 58px !important; height: 58px !important; }
}

/* Design baseline: 390px (brief assumes ~99% mobile traffic at this width).
   Tightens side gutters and type scale slightly below the general 480px
   phone breakpoint above so nothing feels cramped on the smallest common
   viewport. */
@media (max-width: 390px) {
    .container { padding: 0 1rem; }
    .hero-inner { padding: var(--space-2xl) 1rem; }
    .hero-content h1 { font-size: 1.75rem; }
    .hero-support { font-size: 1rem; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .section { padding: var(--space-2xl) 0; }
    .section-title { font-size: 1.5rem; }
}

/* Mobile nav drawer (JS-toggled) */
@media (max-width: 900px) {
    .main-navigation.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(38, 34, 29, 0.96);
        backdrop-filter: blur(16px);
        padding: var(--space-lg);
    }
    .main-navigation.is-open ul { flex-direction: column; gap: var(--space-md); }
}
