/*!
Theme Name: JoAndrew Child (Direction C)
Theme URI: https://joandrew.com.sg
Description: Clinical + editorial hybrid for J.A. Cosmehealth. Fraunces display + Inter body. Custom templates for home, header, footer, and shop. Replaces the v12.18b mu-plugin overlay.
Author: J.A. Cosmehealth
Author URI: https://joandrew.com.sg
Version: 1.0.5
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
Template: astra
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: joandrew-child
*/

/* ===================================================================
   DESIGN TOKENS
   =================================================================== */
:root {
    /* Fonts */
    --ja-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --ja-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ja-font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

    /* Brand colors */
    --ja-pink:       #FB5FAB;
    --ja-pink-soft:  #F8B8D4;
    --ja-plum:       #3A1F3D;
    --ja-plum-dark:  #1F0E22;
    --ja-mauve:      #C77A98;
    --ja-cream:      #FAF5F0;
    --ja-warm:       #F5EBE0;
    --ja-ink:        #1A0E1A;
    --ja-text:       #2A1D24;
    --ja-muted:      #6B5A64;
    --ja-line:       rgba(58, 31, 61, 0.10);
    --ja-line-strong: rgba(58, 31, 61, 0.20);

    /* Shadows */
    --ja-shadow-sm: 0 1px 3px rgba(26, 13, 18, 0.06);
    --ja-shadow-md: 0 4px 12px rgba(26, 13, 18, 0.08);
    --ja-shadow-lg: 0 12px 32px rgba(26, 13, 18, 0.10);
    --ja-shadow-xl: 0 24px 64px rgba(26, 13, 18, 0.14);

    /* Radii */
    --ja-radius-sm: 4px;
    --ja-radius-md: 8px;
    --ja-radius-lg: 16px;
    --ja-radius-xl: 24px;
    --ja-radius-pill: 999px;

    /* Layout */
    --ja-container: 1280px;
    --ja-container-narrow: 920px;
    --ja-gutter: clamp(20px, 4vw, 40px);
    --ja-section-y: clamp(60px, 9vw, 120px);
}

/* ===================================================================
   RESET / GLOBALS
   =================================================================== */
html { scroll-behavior: smooth; }
body {
    font-family: var(--ja-font-body);
    color: var(--ja-text);
    background: var(--ja-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    padding: 0;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ja-plum); text-decoration: none; }
a:hover { color: var(--ja-pink); }

h1, h2, h3, h4, h5, h6, .ja-display {
    font-family: var(--ja-font-display);
    color: var(--ja-ink);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 0 0 0.5em 0;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
p { margin: 0 0 1em 0; }

.ja-container {
    max-width: var(--ja-container);
    margin: 0 auto;
    padding: 0 var(--ja-gutter);
}
.ja-container--narrow {
    max-width: var(--ja-container-narrow);
    margin: 0 auto;
    padding: 0 var(--ja-gutter);
}
.ja-section {
    padding: var(--ja-section-y) 0;
}

/* ===================================================================
   TRUST STRIP (top of page)
   =================================================================== */
.ja-trust-strip {
    background: linear-gradient(90deg, var(--ja-pink) 0%, var(--ja-mauve) 100%);
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 8px 0;
    text-align: center;
}
.ja-trust-strip span { margin: 0 8px; opacity: 0.85; }
.ja-trust-strip span + span::before { content: "·"; margin-right: 16px; opacity: 0.6; }

/* ===================================================================
   HEADER
   =================================================================== */
.ja-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 245, 240, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--ja-line);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 4px 16px rgba(58, 31, 61, 0.04);
}
.ja-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}
.ja-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--ja-ink);
    line-height: 0;
}
.ja-logo__img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}
.ja-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--ja-line);
    border-radius: var(--ja-radius-pill);
    padding: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    list-style: none;
    margin: 0;
}
.ja-nav li { list-style: none; margin: 0; padding: 0; }
.ja-nav a {
    display: inline-block;
    padding: 7px 16px;
    color: var(--ja-plum);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--ja-radius-pill);
    transition: background 0.18s ease, color 0.18s ease;
}
.ja-nav a:hover,
.ja-nav .current-menu-item a,
.ja-nav .current_page_item a {
    background: var(--ja-plum);
    color: #fff;
}

/* Search pill */
/* Search bar + cart link (always visible, desktop + mobile) */
.ja-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.ja-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 240px;
    height: 38px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--ja-line);
    border-radius: var(--ja-radius-pill);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ja-search:focus-within {
    background: #fff;
    border-color: var(--ja-line-strong);
    box-shadow: var(--ja-shadow-md);
}
.ja-search__label-visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.ja-search__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ja-plum);
    display: inline-flex;
    pointer-events: none;
}
.ja-search__input {
    flex: 1;
    width: 100%;
    height: 100%;
    padding: 0 14px 0 36px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ja-ink);
    font-family: var(--ja-font-body);
    font-size: 0.85rem;
}
.ja-search__input::placeholder {
    color: var(--ja-muted);
}
@media (max-width: 720px) {
    .ja-search { width: 160px; }
    .ja-search__input { font-size: 0.8rem; }
    .ja-search__input::placeholder { color: transparent; } /* save space on mobile */
    .ja-search__icon { left: 10px; }
}
@media (max-width: 480px) {
    .ja-search { width: 36px; padding: 0; }
    .ja-search__input { display: none; }
    .ja-search__icon { position: static; transform: none; }
}
/* Cart link */
.ja-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--ja-line);
    border-radius: var(--ja-radius-pill);
    color: var(--ja-plum);
    text-decoration: none;
    font-family: var(--ja-font-body);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-shrink: 0;
}
.ja-cart-link:hover {
    background: #fff;
    border-color: var(--ja-line-strong);
    color: var(--ja-ink);
}
.ja-cart-link__icon { display: inline-flex; }
.ja-cart-link__label { line-height: 1; }
.ja-cart-link__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--ja-pink);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--ja-radius-pill);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ja-cart-link__count[data-cart-count="0"] {
    background: var(--ja-line-strong);
}
@media (max-width: 720px) {
    .ja-cart-link { padding: 0 10px; }
    .ja-cart-link__label { display: none; }
}
@media (max-width: 480px) {
    .ja-cart-link__icon { color: var(--ja-plum); }
}

/* ===================================================================
   HERO (editorial)
   =================================================================== */
.ja-hero {
    padding: clamp(60px, 10vw, 140px) 0 clamp(40px, 7vw, 90px);
    background:
        radial-gradient(ellipse 60% 60% at 20% 0%, rgba(251, 95, 171, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 90% 100%, rgba(199, 122, 152, 0.08) 0%, transparent 60%),
        var(--ja-cream);
    overflow: hidden;
    position: relative;
}
.ja-hero__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
@media (max-width: 880px) {
    .ja-hero__inner { grid-template-columns: 1fr; }
}
.ja-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ja-pink);
    margin-bottom: 24px;
}
.ja-hero__eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--ja-pink);
    vertical-align: middle;
    margin-right: 12px;
}
.ja-hero__title {
    font-family: var(--ja-font-display);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 0.98;
    color: var(--ja-ink);
    margin: 0 0 28px 0;
    letter-spacing: -0.02em;
}
.ja-hero__title em {
    font-style: italic;
    color: var(--ja-pink);
    font-weight: 400;
}
.ja-hero__subtitle {
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--ja-muted);
    max-width: 36ch;
    margin: 0 0 36px 0;
}
.ja-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ja-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--ja-radius-pill);
    font-family: var(--ja-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.ja-btn--primary {
    background: var(--ja-plum);
    color: #fff;
    box-shadow: var(--ja-shadow-md);
}
.ja-btn--primary:hover {
    background: var(--ja-plum-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--ja-shadow-lg);
}
.ja-btn--ghost {
    background: transparent;
    color: var(--ja-plum);
    border-color: var(--ja-line-strong);
}
.ja-btn--ghost:hover {
    background: var(--ja-plum);
    color: #fff;
}
.ja-hero__visual {
    aspect-ratio: 4 / 5;
    border-radius: var(--ja-radius-lg);
    background:
        radial-gradient(circle at 30% 30%, rgba(251, 95, 171, 0.55) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(199, 122, 152, 0.45) 0%, transparent 55%),
        linear-gradient(135deg, var(--ja-plum) 0%, var(--ja-plum-dark) 100%);
    box-shadow: var(--ja-shadow-xl);
    position: relative;
    overflow: hidden;
}
.ja-hero__visual::after {
    content: "tested in KL";
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(250, 245, 240, 0.95);
    color: var(--ja-plum);
    padding: 8px 16px;
    border-radius: var(--ja-radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ===================================================================
   STAT STRIP
   =================================================================== */
.ja-stats {
    background: var(--ja-plum);
    color: var(--ja-cream);
    padding: 36px 0;
}
.ja-stats__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
@media (max-width: 720px) {
    .ja-stats__inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.ja-stat__num {
    font-family: var(--ja-font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1;
    color: var(--ja-pink-soft);
    display: block;
    margin-bottom: 6px;
}
.ja-stat__label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(250, 245, 240, 0.7);
}

/* ===================================================================
   SECTION HEADERS
   =================================================================== */
.ja-section-head {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 72px);
}
.ja-section-head__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ja-pink);
    margin-bottom: 16px;
}
.ja-section-head__title {
    font-family: var(--ja-font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--ja-ink);
    margin: 0 0 16px 0;
    line-height: 1.1;
}
.ja-section-head__lede {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ja-muted);
    max-width: 56ch;
    margin: 0 auto;
}

/* ===================================================================
   PRODUCTS GRID
   =================================================================== */
.ja-products {
    background: var(--ja-cream);
}
.ja-products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.ja-products__grid > li,
.ja-shop__grid > li,
.ja-search-page__grid > li,
.ja-brand-filter__pills > li { list-style: none; display: contents; }
@media (max-width: 960px) { .ja-products__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ja-products__grid { grid-template-columns: 1fr; } }
.ja-products__grid--featured { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .ja-products__grid--featured { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .ja-products__grid--featured { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .ja-products__grid--featured { grid-template-columns: 1fr; } }

/* ===================================================================
   PRODUCT CARD (Direction C — shared by shop, taxonomy, home featured)
   - Edge-to-edge product image (no card padding ring)
   - Brand name in small caps BELOW the image (not on it)
   - "Quick add" hover CTA on the image (desktop only)
   - "Add to cart" button below the body, always visible on mobile
   =================================================================== */
.ja-products__grid > li,
.ja-shop__grid > li,
.ja-search-page__grid > li,
.ja-brand-filter__pills > li { list-style: none; display: contents; }
.ja-product-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--ja-line);
    border-radius: var(--ja-radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    color: inherit;
}
.ja-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ja-shadow-lg);
    border-color: var(--ja-line-strong);
}
.ja-product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.ja-product-card__visual {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
}
.ja-product-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.ja-product-card:hover .ja-product-card__img {
    transform: scale(1.04);
}
/* "Quick add" CTA overlay on the image — desktop only */
.ja-product-card__hover {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    display: flex;
    justify-content: center;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}
.ja-product-card:hover .ja-product-card__hover {
    transform: translateY(0);
}
.ja-product-card__hover-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    color: var(--ja-plum);
    font-family: var(--ja-font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--ja-radius-pill);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}
.ja-product-card__hover-cta svg {
    color: var(--ja-pink);
}
.ja-product-card__body {
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ja-product-card__brand {
    font-family: var(--ja-font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ja-muted);
    margin: 0;
}
.ja-product-card__title {
    font-family: var(--ja-font-body);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ja-ink);
    margin: 0;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ja-product-card__price {
    font-family: var(--ja-font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ja-plum);
    margin: 0;
    padding-top: 6px;
}
/* "Add to cart" button — always visible on mobile, hover-only behavior on desktop */
.ja-product-card__add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 36px);
    margin: 0 18px 16px;
    padding: 11px 16px;
    background: var(--ja-plum);
    color: #fff;
    font-family: var(--ja-font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--ja-radius-pill);
    transition: background 0.2s ease, transform 0.2s ease;
    position: absolute;
    left: 0;
    bottom: -56px;
    pointer-events: none;
    opacity: 0;
}
.ja-product-card:hover .ja-product-card__add,
.ja-product-card:focus-within .ja-product-card__add {
    bottom: 16px;
    pointer-events: auto;
    opacity: 1;
}
.ja-product-card__add:hover {
    background: var(--ja-ink);
}
.ja-product-card__add.is-adding {
    background: var(--ja-pink);
}
/* Mobile: add-to-cart is always visible, hover overlay is hidden */
@media (max-width: 720px) {
    .ja-product-card__hover { display: none; }
    .ja-product-card__add {
        position: static;
        width: calc(100% - 36px);
        margin: 0 18px 16px;
        pointer-events: auto;
        opacity: 1;
        transform: none;
        bottom: auto;
    }
}

/* ===================================================================
   FOUNDER ZIG-ZAG
   =================================================================== */
.ja-founder {
    background: var(--ja-warm);
    overflow: hidden;
}
.ja-founder__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
@media (max-width: 880px) {
    .ja-founder__inner { grid-template-columns: 1fr; }
    .ja-founder__visual { order: 2; }
    .ja-founder__copy { order: 1; }
}
.ja-founder__visual {
    aspect-ratio: 4 / 5;
    border-radius: var(--ja-radius-lg);
    background:
        radial-gradient(circle at 50% 30%, rgba(199, 122, 152, 0.5) 0%, transparent 60%),
        linear-gradient(180deg, var(--ja-plum) 0%, var(--ja-plum-dark) 100%);
    box-shadow: var(--ja-shadow-xl);
    position: relative;
    overflow: hidden;
}
.ja-founder__visual::before {
    content: "JA";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ja-font-display);
    font-size: 8rem;
    font-weight: 400;
    color: rgba(250, 245, 240, 0.12);
    letter-spacing: -0.05em;
}
.ja-founder__visual::after {
    content: "founder · KL";
    position: absolute;
    bottom: 24px;
    left: 24px;
    color: var(--ja-cream);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.6;
}
.ja-founder__copy h2 { margin-bottom: 24px; }
.ja-founder__copy p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ja-text);
    margin-bottom: 20px;
    max-width: 48ch;
}
.ja-founder__quote {
    border-left: 2px solid var(--ja-pink);
    padding-left: 20px;
    margin: 28px 0;
    font-family: var(--ja-font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ja-plum);
    line-height: 1.5;
}

/* ===================================================================
   BRANDS SECTION
   =================================================================== */
.ja-brands {
    background: var(--ja-cream);
}
.ja-brands__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 880px) { .ja-brands__grid { grid-template-columns: 1fr; } }
.ja-brand-tile {
    background: #fff;
    border: 1px solid var(--ja-line);
    border-radius: var(--ja-radius-lg);
    padding: 32px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ja-brand-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--ja-shadow-lg);
    border-color: var(--ja-line-strong);
}
.ja-brand-tile__mark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ja-pink) 0%, var(--ja-plum) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--ja-font-display);
    font-weight: 500;
    font-size: 1.4rem;
    margin-bottom: 20px;
    box-shadow: var(--ja-shadow-md);
}
.ja-brand-tile__name {
    font-family: var(--ja-font-display);
    font-size: 1.5rem;
    color: var(--ja-ink);
    margin: 0 0 8px 0;
}
.ja-brand-tile__count {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ja-muted);
}
.ja-brand-tile__desc {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--ja-muted);
    line-height: 1.5;
}

/* ===================================================================
   INGREDIENTS SPOTLIGHT
   =================================================================== */
.ja-ingredients {
    background: var(--ja-plum);
    color: var(--ja-cream);
    position: relative;
    overflow: hidden;
}
.ja-ingredients::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 90%, rgba(251, 95, 171, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(199, 122, 152, 0.12) 0%, transparent 50%);
    pointer-events: none;
}
.ja-ingredients .ja-section-head__eyebrow { color: var(--ja-pink-soft); }
.ja-ingredients .ja-section-head__title { color: var(--ja-cream); }
.ja-ingredients .ja-section-head__lede { color: rgba(250, 245, 240, 0.75); }
.ja-ingredients__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}
@media (max-width: 720px) { .ja-ingredients__list { grid-template-columns: 1fr; } }
.ja-ingredient {
    background: rgba(250, 245, 240, 0.06);
    border: 1px solid rgba(250, 245, 240, 0.12);
    border-radius: var(--ja-radius-md);
    padding: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ja-ingredient__name {
    font-family: var(--ja-font-display);
    font-size: 1.15rem;
    color: var(--ja-pink-soft);
    margin: 0 0 6px 0;
}
.ja-ingredient__role {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(250, 245, 240, 0.55);
    margin-bottom: 12px;
}
.ja-ingredient__note {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(250, 245, 240, 0.85);
    margin: 0;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.ja-footer {
    background: var(--ja-plum-dark);
    color: rgba(250, 245, 240, 0.75);
    padding: 60px 0 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ja-footer::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background:
        radial-gradient(circle at 15% 50%, rgba(251, 95, 171, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 30%, rgba(199, 122, 152, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 85% 60%, rgba(58, 31, 61, 0.30) 0%, transparent 50%);
    pointer-events: none;
}
.ja-footer__logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ja-pink) 0%, var(--ja-mauve) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--ja-font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}
.ja-footer__contact {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.ja-footer__contact a {
    color: var(--ja-pink-soft);
    font-weight: 500;
    text-decoration: none;
}
.ja-footer__contact a:hover { color: #fff; }
.ja-footer__small {
    font-size: 0.78rem;
    color: rgba(250, 245, 240, 0.5);
    position: relative;
    z-index: 1;
}

/* ===================================================================
   PAGE (generic inner page)
   =================================================================== */
.ja-page {
    padding: clamp(60px, 8vw, 100px) 0;
    min-height: 60vh;
}
.ja-page h1 { margin-bottom: 32px; }
.ja-page__content {
    max-width: 64ch;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
}
.ja-page__content p { margin-bottom: 1.2em; }

/* ===================================================================
   UTILITIES
   =================================================================== */
.ja-text-center { text-align: center; }
.ja-mt-1 { margin-top: 8px; } .ja-mt-2 { margin-top: 16px; } .ja-mt-3 { margin-top: 24px; } .ja-mt-4 { margin-top: 32px; }
.ja-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;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 720px) {
    .ja-header__inner { flex-wrap: wrap; gap: 12px; }
    .ja-nav { order: 3; flex-basis: 100%; justify-content: center; overflow-x: auto; }
    .ja-nav a { padding: 6px 12px; font-size: 0.82rem; }
    .ja-search { width: 160px; }
    .ja-search__input { font-size: 0.8rem; }
    .ja-search__input::placeholder { color: transparent; }
    .ja-stat__num { font-size: 1.7rem; }
    .ja-stat__label { font-size: 0.68rem; }
}

/* ===================================================================
   SEARCH PAGE (Direction C editorial results)
   =================================================================== */
.ja-search-page {
    padding: clamp(48px, 7vw, 96px) 0 clamp(60px, 9vw, 120px);
    background: var(--ja-cream);
    min-height: 60vh;
}
.ja-search-page__head {
    text-align: left;
    margin-bottom: 48px;
    max-width: 720px;
}
.ja-search-page__head em {
    font-family: var(--ja-font-display);
    font-style: italic;
    color: var(--ja-plum);
    font-weight: 500;
}
.ja-search-page__lede {
    font-size: 1.0rem;
    line-height: 1.6;
    color: var(--ja-muted);
    margin-top: 12px;
}
.ja-search-page__grid {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ja-search-page__pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 8px;
    font-family: var(--ja-font-body);
}
.ja-search-page__pagination a,
.ja-search-page__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--ja-line);
    border-radius: var(--ja-radius-pill);
    color: var(--ja-plum);
    text-decoration: none;
    font-size: 0.88rem;
    background: #fff;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.ja-search-page__pagination a:hover {
    background: var(--ja-warm);
    border-color: var(--ja-line-strong);
}
.ja-search-page__pagination .current {
    background: var(--ja-plum);
    color: #fff;
    border-color: var(--ja-plum);
}
.ja-search-page__suggestions {
    margin: 32px 0 56px;
}
.ja-search-page__suggestions-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ja-muted);
    margin-bottom: 16px;
}
.ja-search-page__suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ja-search-suggestion-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--ja-line);
    border-radius: var(--ja-radius-pill);
    color: var(--ja-plum);
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.ja-search-suggestion-pill:hover {
    background: var(--ja-pink);
    color: #fff;
    border-color: var(--ja-pink);
}
.ja-search-page__browse {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid var(--ja-line);
}
.ja-search-page__brands {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 720px) {
    .ja-search-page__brands { grid-template-columns: 1fr; }
}
.ja-search-brand-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--ja-line);
    border-radius: var(--ja-radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ja-search-brand-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--ja-shadow-md);
    border-color: var(--ja-line-strong);
}
.ja-search-brand-tile__name {
    font-family: var(--ja-font-display);
    font-size: 1.3rem;
    color: var(--ja-plum);
}
.ja-search-brand-tile__count {
    font-size: 0.82rem;
    color: var(--ja-muted);
}

/* ===================================================================
   CONTACT PAGE (Direction C)
   =================================================================== */
.ja-contact-hero {
    padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
    background:
        radial-gradient(ellipse 60% 60% at 80% 0%, rgba(251, 95, 171, 0.10) 0%, transparent 60%),
        var(--ja-cream);
}
.ja-contact-hero__title {
    font-family: var(--ja-font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.05;
    font-weight: 500;
    color: var(--ja-ink);
    margin: 8px 0 24px;
    max-width: 14ch;
    letter-spacing: -0.02em;
}
.ja-contact-hero__sub {
    font-style: italic;
    color: var(--ja-plum);
    font-weight: 400;
}
.ja-contact-hero__lede {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--ja-muted);
    max-width: 56ch;
    margin: 0 0 36px;
}
.ja-contact-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.ja-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-family: var(--ja-font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--ja-radius-pill);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
    border: 0;
    line-height: 1;
}
.ja-btn--primary {
    background: var(--ja-plum);
    color: #fff;
    box-shadow: var(--ja-shadow-md);
}
.ja-btn--primary:hover {
    background: var(--ja-ink);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--ja-shadow-lg);
}
.ja-btn--secondary {
    background: #fff;
    color: var(--ja-plum);
    border: 1px solid var(--ja-line);
}
.ja-btn--secondary:hover {
    background: var(--ja-warm);
    border-color: var(--ja-line-strong);
}

.ja-contact-channels {
    padding: clamp(40px, 6vw, 80px) 0;
    background: var(--ja-cream);
}
.ja-contact-channels__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 720px) {
    .ja-contact-channels__grid { grid-template-columns: 1fr; }
}
.ja-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--ja-line);
    border-radius: var(--ja-radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ja-contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ja-shadow-md);
    border-color: var(--ja-line-strong);
}
.ja-contact-card__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--ja-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.ja-contact-card__icon--wa     { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }
.ja-contact-card__icon--email  { background: linear-gradient(135deg, var(--ja-pink) 0%, var(--ja-mauve) 100%); }
.ja-contact-card__icon--phone  { background: linear-gradient(135deg, var(--ja-plum) 0%, var(--ja-ink) 100%); }
.ja-contact-card__icon--press  { background: linear-gradient(135deg, var(--ja-mauve) 0%, #8E5A78 100%); }
.ja-contact-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.ja-contact-card__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ja-muted);
}
.ja-contact-card__value {
    font-family: var(--ja-font-display);
    font-size: 1.25rem;
    color: var(--ja-plum);
    word-break: break-word;
}
.ja-contact-card__sub {
    font-size: 0.88rem;
    color: var(--ja-muted);
    line-height: 1.5;
}

.ja-contact-hours {
    padding: clamp(40px, 6vw, 80px) 0;
    background: var(--ja-warm);
}
.ja-contact-hours__inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}
@media (max-width: 720px) {
    .ja-contact-hours__inner { grid-template-columns: 1fr; }
}
.ja-contact-hours__text .ja-section-head__title {
    text-align: left !important;
    font-size: clamp(1.6rem, 3vw, 2rem);
}
.ja-contact-hours__lede {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ja-muted);
    margin-top: 12px;
    max-width: 36ch;
}
.ja-contact-hours__table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--ja-radius-lg);
    overflow: hidden;
    border: 1px solid var(--ja-line);
    font-family: var(--ja-font-body);
}
.ja-contact-hours__table th,
.ja-contact-hours__table td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid var(--ja-line);
    vertical-align: top;
}
.ja-contact-hours__table tr:last-child th,
.ja-contact-hours__table tr:last-child td { border-bottom: 0; }
.ja-contact-hours__table th {
    font-weight: 500;
    color: var(--ja-ink);
    width: 45%;
    font-family: var(--ja-font-display);
    font-size: 1.05rem;
}
.ja-contact-hours__table td {
    color: var(--ja-plum);
    font-size: 0.95rem;
}
.ja-contact-hours__note {
    display: block;
    font-size: 0.82rem;
    color: var(--ja-muted);
    margin-top: 2px;
    font-weight: 400;
}

.ja-contact-warehouse {
    padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 9vw, 100px);
    background: var(--ja-cream);
}
.ja-contact-warehouse__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
    max-width: 820px;
    margin: 0 auto;
}
@media (max-width: 600px) {
    .ja-contact-warehouse__inner { grid-template-columns: 1fr; }
}
.ja-contact-warehouse__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ja-plum) 0%, var(--ja-pink) 100%);
    color: #fff;
    font-family: var(--ja-font-display);
    font-size: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ja-shadow-md);
}
.ja-contact-warehouse__text p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ja-text);
    margin: 0 0 12px;
}
.ja-contact-warehouse__text a {
    color: var(--ja-plum);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--ja-pink-soft);
}
.ja-contact-warehouse__text a:hover {
    text-decoration-color: var(--ja-pink);
}
.ja-contact-warehouse__text .ja-section-head__title { text-align: left !important; }
.ja-contact-warehouse__note {
    font-size: 0.9rem !important;
    color: var(--ja-muted) !important;
    font-style: italic;
}

/* ===================================================================
   SHOP PAGE (Direction C) + BRAND FILTER
   =================================================================== */
.ja-shop {
    padding: clamp(48px, 7vw, 96px) 0 clamp(60px, 9vw, 120px);
    background: var(--ja-cream);
    min-height: 60vh;
}
.ja-shop__head {
    text-align: left;
    margin-bottom: 32px;
    max-width: 720px;
}
.ja-shop__head .ja-section-head__title {
    text-align: left !important;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    margin-top: 4px;
}
.ja-shop__lede {
    font-size: 1.0rem;
    line-height: 1.6;
    color: var(--ja-muted);
    margin-top: 12px;
}
.ja-shop__grid {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ja-shop__empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid var(--ja-line);
    border-radius: var(--ja-radius-lg);
}
.ja-shop__empty p {
    font-size: 1rem;
    color: var(--ja-muted);
    margin: 0 0 16px;
}

/* Brand filter */
.ja-brand-filter {
    margin: 32px 0 40px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--ja-line);
    border-radius: var(--ja-radius-lg);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.ja-brand-filter__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ja-muted);
}
.ja-brand-filter__pills {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}
.ja-brand-filter__pills li { list-style: none; display: contents; }
.ja-brand-filter__pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 20px;
    background: #fff;
    border: 1px solid var(--ja-line);
    border-radius: var(--ja-radius-pill);
    color: var(--ja-plum);
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
}
.ja-brand-filter__pill:hover {
    background: var(--ja-warm);
    border-color: var(--ja-line-strong);
    color: var(--ja-ink);
    transform: translateY(-1px);
    box-shadow: var(--ja-shadow-sm);
}
.ja-brand-filter__pill.is-active {
    background: var(--ja-plum);
    color: #fff;
    border-color: var(--ja-plum);
    box-shadow: var(--ja-shadow-md);
}
.ja-brand-filter__name {
    font-family: var(--ja-font-display);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    text-decoration: underline;
    text-decoration-color: var(--ja-pink-soft);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.ja-brand-filter__pill.is-active .ja-brand-filter__name {
    text-decoration-color: var(--ja-pink);
}
.ja-brand-filter__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 8px;
    font-family: var(--ja-font-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ja-muted);
    background: var(--ja-warm);
    border-radius: var(--ja-radius-pill);
    letter-spacing: 0;
    line-height: 1;
}
.ja-brand-filter__pill.is-active .ja-brand-filter__count {
    color: var(--ja-plum);
    background: rgba(251, 95, 171, 0.18);
}

/* Kill the ast-article-single contamination */
.ja-shop__grid .ast-article-single {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.ja-shop__grid .ast-on-card-button {
    display: none !important; /* hide Astra's add-to-cart button; we want clean cards */
}

/* ===================================================================
   ABOUT PAGE (Direction C, long-form)
   =================================================================== */
.ja-container--narrow {
    max-width: 760px;
}
.ja-about {
    padding: clamp(60px, 9vw, 120px) 0 clamp(60px, 9vw, 120px);
    background: var(--ja-cream);
}
.ja-about__article {
    background: #fff;
    border: 1px solid var(--ja-line);
    border-radius: var(--ja-radius-xl);
    padding: clamp(32px, 5vw, 64px) clamp(28px, 5vw, 64px);
    box-shadow: var(--ja-shadow-sm);
}
.ja-about__content {
    font-family: var(--ja-font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ja-text);
}
.ja-about__content > h1.wp-block-heading {
    font-family: var(--ja-font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ja-ink);
    margin: 0 0 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ja-line);
}
.ja-about__content > h2.wp-block-heading {
    font-family: var(--ja-font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.7rem);
    font-weight: 500;
    line-height: 1.25;
    color: var(--ja-plum);
    margin: 40px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--ja-line);
}
.ja-about__content > h2.wp-block-heading:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}
.ja-about__content > p {
    margin: 0 0 20px;
}
.ja-about__content > p:last-child {
    color: var(--ja-muted);
    font-style: italic;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--ja-line);
}
.ja-about__content > ul.wp-block-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ja-about__content > ul.wp-block-list > li {
    padding: 20px 24px;
    background: var(--ja-cream);
    border-radius: var(--ja-radius-md);
    border-left: 3px solid var(--ja-pink);
    line-height: 1.6;
    color: var(--ja-text);
}
.ja-about__content > ul.wp-block-list > li strong {
    color: var(--ja-plum);
    font-weight: 600;
    font-family: var(--ja-font-display);
    font-size: 1.05rem;
    display: block;
    margin-bottom: 4px;
}
.ja-about__content > p a,
.ja-about__content > ul.wp-block-list > li a {
    color: var(--ja-plum);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--ja-pink-soft);
    transition: text-decoration-color 0.18s ease;
}
.ja-about__content > p a:hover,
.ja-about__content > ul.wp-block-list > li a:hover {
    text-decoration-color: var(--ja-pink);
}

/* ===================================================================
   STORE CAROUSEL (Direction C, Sulwhasoo pattern)
   Dark, cinematic, full-bleed slides. Each slide is a single editorial
   composition: small eyebrow, large serif brand name, quiet line copy,
   one restrained CTA. Scroll-snap on mobile, edge-to-edge on desktop.
   =================================================================== */
.ja-carousel-section {
    padding: clamp(40px, 6vw, 80px) 0;
    background: #0e0e0e;
    color: #f5efe7;
    position: relative;
    overflow: hidden;
}
.ja-carousel-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(176, 137, 104, 0.4) 50%, transparent 100%);
}
.ja-carousel-section .ja-section-head--center {
    text-align: center;
    margin-bottom: 48px;
}
.ja-carousel-section .ja-section-head__eyebrow {
    color: #b08968;
}
.ja-carousel-section .ja-section-head__title {
    color: #f5efe7;
}

.ja-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(85%, 1fr);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 24px;
    padding: 8px 24px 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ja-carousel::-webkit-scrollbar { display: none; }

.ja-carousel__slide {
    scroll-snap-align: start;
    min-height: 520px;
    padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 64px);
    border-radius: var(--ja-radius-xl);
    color: #f5efe7;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    isolation: isolate;
}
.ja-carousel__slide::before {
    /* Sulwhasoo-style vertical gradient: deeper at the top, lighter at the
       bottom where the text lives. This anchors the text. */
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.15) 35%,
        rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}
.ja-carousel__noise {
    /* Subtle film-grain noise via repeating SVG — gives the dark slide a
       printed, editorial feel instead of a flat digital color. */
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.18;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 200px 200px;
    pointer-events: none;
}
.ja-carousel__inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
}
.ja-carousel__slide--dabo {
    background:
        radial-gradient(ellipse at 70% 30%, rgba(176, 137, 104, 0.25) 0%, transparent 60%),
        linear-gradient(160deg, #2a1a1f 0%, #0e0a0d 100%);
}
.ja-carousel__slide--tsuya-tsuya {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(176, 137, 104, 0.30) 0%, transparent 60%),
        linear-gradient(200deg, #1a0e15 0%, #0e0a0d 100%);
}
.ja-carousel__slide--tsuya-ii {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(176, 137, 104, 0.20) 0%, transparent 65%),
        linear-gradient(180deg, #15101a 0%, #0a0a0e 100%);
}
.ja-carousel__eyebrow {
    display: inline-block;
    font-family: var(--ja-font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #b08968;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(176, 137, 104, 0.35);
    width: fit-content;
}
.ja-carousel__brand {
    font-family: var(--ja-font-display);
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 0.95;
    color: #faf5ed;
    margin: 0 0 24px;
    /* Subtle gold underline accent, like a museum label */
    background: linear-gradient(180deg, transparent 92%, rgba(176, 137, 104, 0.6) 92%);
    background-size: 60% 100%;
    background-repeat: no-repeat;
    background-position: 0 0;
    padding-bottom: 4px;
}
.ja-carousel__line {
    font-family: var(--ja-font-body);
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.55;
    color: rgba(245, 239, 231, 0.82);
    margin: 0 0 32px;
    max-width: 420px;
}
.ja-carousel__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ja-font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #faf5ed;
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid #b08968;
    transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
    align-self: flex-start;
}
.ja-carousel__cta:hover {
    color: #b08968;
    border-color: #faf5ed;
    gap: 10px;
}

@media (max-width: 720px) {
    .ja-carousel__slide { min-height: 440px; }
    .ja-carousel__brand { font-size: 2.4rem; }
}

/* ===================================================================
   JOANDREW-CHILD v1.0.6 ADDITIONS — Direction C header search overlay
   Search-trigger icon (replaces 240px inline input), account icon,
   overlay, and the 4 risk mitigations.
   =================================================================== */

/* ----- MITIGATION H-2 (medium, CLS) ----- */
.ja-trust-strip {
    min-height: 32px;
    display: flex;
    align-items: center;
}
.ja-trust-strip [data-ja-trust-message] {
    transition: opacity 0.2s ease;
}

/* ----- Search trigger (38px icon, replaces 240px inline input) ----- */
.ja-search-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--ja-line);
    border-radius: var(--ja-radius-pill);
    color: var(--ja-plum);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-shrink: 0;
    font: inherit;
}
.ja-search-trigger:hover,
.ja-search-trigger:focus-visible {
    background: #fff;
    border-color: var(--ja-line-strong);
    color: var(--ja-ink);
    outline: none;
}

/* ----- Account link (new — was missing entirely) ----- */
.ja-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--ja-line);
    border-radius: var(--ja-radius-pill);
    color: var(--ja-plum);
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-shrink: 0;
}
.ja-account-link:hover,
.ja-account-link:focus-visible {
    background: #fff;
    border-color: var(--ja-line-strong);
    color: var(--ja-ink);
}

/* ----- Search overlay ----- */
body.ja-overlay-open { overflow: hidden; }

/* MITIGATION H-3: lower cart drawer z-index while overlay is open */
body.ja-overlay-open .astra-cart-drawer { z-index: 99 !important; }
body.ja-overlay-open .ast-mobile-popup-content,
body.ja-overlay-open .ast-header-break-point .ast-mobile-popup-content { z-index: 99 !important; }

.ja-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(80px, 12vh, 160px);
    padding-left: 20px;
    padding-right: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.ja-search-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.ja-search-overlay[hidden] { display: none; }
.ja-search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(31, 14, 34, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.ja-search-overlay__panel {
    position: relative;
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: var(--ja-radius-lg);
    box-shadow: var(--ja-shadow-xl);
    padding: 32px;
    transform: translateY(-12px);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ja-search-overlay.is-open .ja-search-overlay__panel { transform: translateY(0); }
.ja-search-overlay__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ja-muted);
    margin-bottom: 12px;
}
.ja-search-overlay__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.ja-search-overlay__icon {
    position: absolute;
    left: 16px;
    color: var(--ja-plum);
    display: inline-flex;
    pointer-events: none;
}
.ja-search-overlay__input {
    width: 100%;
    height: 56px;
    padding: 0 56px 0 48px;
    border: 1px solid var(--ja-line);
    border-radius: var(--ja-radius-md);
    background: var(--ja-cream);
    font-family: var(--ja-font-body);
    font-size: 1.1rem;
    color: var(--ja-ink);
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.ja-search-overlay__input:focus {
    border-color: var(--ja-pink);
    background: #fff;
}
.ja-search-overlay__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--ja-muted);
    cursor: pointer;
    border-radius: var(--ja-radius-pill);
}
.ja-search-overlay__close:hover { color: var(--ja-ink); background: var(--ja-warm); }
.ja-search-overlay__hint {
    margin: 12px 0 0 0;
    font-size: 0.78rem;
    color: var(--ja-muted);
    text-align: center;
    letter-spacing: 0.04em;
}
@media (max-width: 480px) {
    .ja-search-overlay { padding-top: 60px; }
    .ja-search-overlay__panel { padding: 20px; }
    .ja-search-overlay__input { height: 48px; font-size: 1rem; }
}

/* ----- MITIGATION H-9: stack nav to its own row below 920px ----- */
@media (max-width: 920px) {
    .ja-header__inner { flex-wrap: wrap; }
    .ja-nav { flex-basis: 100%; justify-content: center; order: 3; }
}

/* ----- Reduced motion: disable overlay animation ----- */
@media (prefers-reduced-motion: reduce) {
    .ja-search-overlay { transition: none; }
    .ja-search-overlay__panel { transform: none; }
    .ja-trust-strip [data-ja-trust-message] { transition: none; }
}
