/* ============================================================
   MRS Fashion — Premium presentation layer
   Extends the existing design system in style.css. It adds no
   fonts, no frameworks and no new components: every selector
   below already exists in the theme's templates.
   ========================================================== */

:root {
    /* Refined neutrals layered on the existing palette. */
    --fai-ink-mute:   #6B6B6B;
    --fai-hairline:   rgba(18, 18, 18, 0.07);
    --fai-paper:      #FAF9F7;
    --fai-shadow-sm:  0 1px 2px rgba(18, 18, 18, 0.04);
    --fai-shadow-md:  0 10px 30px rgba(18, 18, 18, 0.07);
    --fai-sale:       #B3261E;

    /* One spacing rhythm for every section. */
    --fai-sp-1: 8px;
    --fai-sp-2: 16px;
    --fai-sp-3: 24px;
    --fai-sp-4: 40px;
    --fai-sp-5: 64px;
    --fai-sp-6: 88px;
}

/* Nothing may exceed the viewport at any width. */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; height: auto; }

/* ---------- 1. HEADER ------------------------------------ */
.fai-site-header {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--fai-hairline);
    box-shadow: none;
}
.fai-header-inner { min-height: 64px; gap: var(--fai-sp-3); }
.fai-brand { letter-spacing: -0.02em; }
.fai-nav a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fai-ink);
    position: relative;
    padding: 6px 0;
}
.fai-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--fai-ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}
.fai-nav a:hover::after { transform: scaleX(1); }
.fai-search-form {
    background: var(--fai-paper);
    border: 1px solid var(--fai-hairline);
    border-radius: 999px;
}
.fai-search-field { font-size: 0.85rem; }
.fai-search-form:focus-within {
    border-color: rgba(18, 18, 18, 0.22);
    background: #fff;
}

/* ---------- 2. HERO -------------------------------------- */
.fai-home-hero {
    padding: var(--fai-sp-5) 0 var(--fai-sp-4);
    background:
        radial-gradient(1200px 400px at 12% 0%, rgba(197, 160, 89, 0.07), transparent 60%),
        var(--fai-bg);
}
.fai-hero-inner { align-items: center; gap: var(--fai-sp-5); }
.fai-hero-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--fai-gold);
    font-weight: 700;
}
.fai-hero-title {
    font-family: var(--fai-font-display);
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin: var(--fai-sp-2) 0 var(--fai-sp-2);
}
.fai-hero-desc {
    color: var(--fai-ink-mute);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 46ch;
}
.fai-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--fai-ink);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: var(--fai-shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.fai-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--fai-shadow-md);
    color: #fff;
}
/* The hero artwork is the composed image: never crop it, so the
   embedded QR always stays visible. */
.fai-hero-visual img,
.fai-hero-img {
    border-radius: var(--fai-radius);
    box-shadow: var(--fai-shadow-md);
    object-fit: contain;
    width: 100%;
    height: auto;
}

/* ---------- 3. DISCOVERY / FILTER BAR -------------------- */
.fai-filter-bar {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--fai-hairline);
    border-bottom: 1px solid var(--fai-hairline);
}
.fai-filter-bar .fai-container {
    display: flex;
    align-items: center;
    gap: var(--fai-sp-2);
    flex-wrap: wrap;
}

/* Section headings shared by Latest Arrivals / You may also like. */
.fai-section-title,
.fai-related-title {
    font-family: var(--fai-font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin: 0 0 var(--fai-sp-3);
    position: relative;
    padding-bottom: 12px;
}
.fai-section-title::after,
.fai-related-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 44px; height: 2px;
    background: var(--fai-gold);
}

/* ---------- 4. PRODUCT CARDS ----------------------------- */
.fai-grid {
    gap: var(--fai-sp-3);
    margin-bottom: var(--fai-sp-5);
    align-items: stretch;
}
.fai-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--fai-hairline);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--fai-shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.fai-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--fai-shadow-md);
    border-color: rgba(18, 18, 18, 0.12);
}
.fai-card-media {
    margin: 0;
    width: 100%;
    border-radius: 0;
    background: var(--fai-paper);
    overflow: hidden;
}
/* contain, never cover: the composed artwork carries the QR and the
   price lockup, so cropping it would destroy information. */
.fai-card-media img,
.fai-card .fai-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    transition: transform .4s ease;
}
.fai-card:hover .fai-card-media img { transform: scale(1.02); }

.fai-card-footer {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 6px;
    padding: 14px 16px 16px;
    border-top: 1px solid var(--fai-hairline);
}
.fai-card-store {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: var(--fai-ink-mute);
    margin: 0;
    opacity: 1;
}
/* Two clean lines, ellipsis on overflow — the old fixed 2.6em height
   cut titles mid-word. */
.fai-card-title {
    font-size: 0.94rem;
    line-height: 1.4;
    font-weight: 600;
    height: auto;
    min-height: 2.8em;
    margin: 0;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fai-card-title a { color: var(--fai-ink); }
.fai-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 0;
}
.fai-price { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.fai-old-price { font-size: 0.82rem; color: var(--fai-ink-mute); text-decoration: line-through; }
.fai-discount-pill {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--fai-sale);
    background: rgba(179, 38, 30, 0.08);
    border-radius: 999px;
    padding: 3px 9px;
    white-space: nowrap;
}
.fai-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--fai-ink);
    border-radius: 999px;
    background: transparent;
    color: var(--fai-ink);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 1;
    transition: background .2s ease, color .2s ease;
}
.fai-card-cta:hover,
.fai-card:hover .fai-card-cta { background: var(--fai-ink); color: #fff; }

/* ---------- 5. SINGLE PRODUCT ---------------------------- */
.fai-pp { padding-top: var(--fai-sp-4); }
.fai-pp-stage,
.fai-pp-media {
    background: var(--fai-paper);
    border: 1px solid var(--fai-hairline);
    border-radius: var(--fai-radius);
    overflow: hidden;
}
/* contain keeps the whole composed image — QR included — on screen. */
.fai-pp-slide img,
.fai-pp-stage img { object-fit: contain; }
.fai-pp-brand {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fai-ink-mute);
}
.fai-pp-summary h1,
.fai-pp-summary .fai-pp-title {
    font-family: var(--fai-font-display);
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    line-height: 1.18;
    letter-spacing: -0.015em;
}
.fai-pp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.fai-pp-now { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -0.02em; }
.fai-pp-off {
    color: var(--fai-sale);
    background: rgba(179, 38, 30, 0.08);
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.fai-pp-panel {
    background: #fff;
    border: 1px solid var(--fai-hairline);
    border-radius: var(--fai-radius-sm);
    box-shadow: var(--fai-shadow-sm);
}
.fai-pp-buy-title {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fai-ink-mute);
}
.fai-pp-offer {
    border-top: 1px solid var(--fai-hairline);
    gap: var(--fai-sp-2);
}
.fai-pp-offer:first-of-type { border-top: 0; }
.fai-pp-store { font-weight: 600; letter-spacing: -0.005em; }
.fai-pp-cta {
    min-height: 44px;
    border-radius: 999px;
    padding: 0 22px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    box-shadow: var(--fai-shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.fai-pp-cta:hover { transform: translateY(-1px); box-shadow: var(--fai-shadow-md); }
.fai-pp-disclosure {
    font-size: 0.72rem;
    line-height: 1.6;
    color: var(--fai-ink-mute);
    border-top: 1px solid var(--fai-hairline);
    padding-top: var(--fai-sp-2);
}
/* Product information: a real spec table, not plain text. */
.fai-pp-specs {
    background: #fff;
    border: 1px solid var(--fai-hairline);
    border-radius: var(--fai-radius-sm);
    box-shadow: var(--fai-shadow-sm);
    overflow: hidden;
}
.fai-pp-specs table { width: 100%; border-collapse: collapse; }
.fai-pp-specs tr + tr { border-top: 1px solid var(--fai-hairline); }
.fai-pp-specs th,
.fai-pp-specs td { padding: 14px 20px; font-size: 0.9rem; vertical-align: top; }
.fai-pp-specs th {
    text-align: left;
    font-weight: 500;
    color: var(--fai-ink-mute);
    white-space: nowrap;
}
.fai-pp-specs td { text-align: right; font-weight: 600; }
.fai-related { margin-top: var(--fai-sp-5); }

/* ---------- 6. FOOTER ------------------------------------ */
.fai-site-footer {
    margin-top: var(--fai-sp-6);
    padding: var(--fai-sp-5) 0 var(--fai-sp-4);
    background: var(--fai-paper);
    border-top: 1px solid var(--fai-hairline);
    text-align: center;
}
.fai-site-footer .fai-brand { font-size: 1.3rem; display: inline-block; margin-bottom: var(--fai-sp-2); }
.fai-site-footer p {
    max-width: 54ch;
    margin: 0 auto;
    color: var(--fai-ink-mute);
    font-size: 0.92rem;
    line-height: 1.75;
}
.fai-footer-meta {
    margin-top: var(--fai-sp-3) !important;
    padding-top: var(--fai-sp-3);
    border-top: 1px solid var(--fai-hairline);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    color: var(--fai-ink-mute);
}

/* ---------- Social links (Phase 5 final patch) ---------- */
.fai-footer-social-lead {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--fai-ink-mute);
    margin: 0 0 14px;
}
.fai-footer-social {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.fai-footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--fai-hairline);
    border-radius: 999px;
    background: #fff;
    color: var(--fai-ink);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.fai-footer-social a:hover {
    border-color: var(--fai-wine, #6E1230);
    color: var(--fai-wine, #6E1230);
    background: #fff;
}
.fai-footer-social svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .fai-footer-social { gap: 8px; }
    .fai-footer-social a { padding: 7px 12px; font-size: 0.74rem; }
}

/* ---------- 7. RESPONSIVE -------------------------------- */
@media (max-width: 1280px) {
    .fai-grid { gap: var(--fai-sp-2); }
}
@media (max-width: 1024px) {
    .fai-home-hero { padding: var(--fai-sp-4) 0 var(--fai-sp-3); }
    .fai-hero-inner { gap: var(--fai-sp-3); }
    .fai-hero-desc { margin-left: auto; margin-right: auto; }
    .fai-grid { margin-bottom: var(--fai-sp-4); }
}
@media (max-width: 768px) {
    .fai-header-inner { min-height: 56px; gap: var(--fai-sp-2); }
    .fai-home-hero { padding: var(--fai-sp-3) 0; }
    .fai-hero-title { font-size: clamp(1.9rem, 7vw, 2.4rem); }
    .fai-grid { gap: 14px; }
    .fai-card-footer { padding: 12px 13px 14px; }
    .fai-pp { padding-top: var(--fai-sp-3); }
    .fai-pp-specs th,
    .fai-pp-specs td { padding: 12px 14px; font-size: 0.86rem; }
    .fai-site-footer { margin-top: var(--fai-sp-4); padding: var(--fai-sp-4) 0 var(--fai-sp-3); }
}
@media (max-width: 600px) {
    /* Two columns stay readable down to 360px; images remain strong. */
    .fai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .fai-card-title { font-size: 0.82rem; min-height: 2.7em; }
    .fai-price { font-size: 1rem; }
    .fai-old-price { font-size: 0.74rem; }
    .fai-discount-pill { font-size: 0.58rem; padding: 2px 7px; }
    .fai-card-cta { min-height: 38px; font-size: 0.62rem; letter-spacing: 0.1em; }
    .fai-btn-primary { width: 100%; }
    .fai-pp-offer { flex-wrap: wrap; }
    .fai-pp-cta { width: 100%; }
    .fai-pp-specs td { text-align: left; }
}
@media (max-width: 380px) {
    .fai-grid { gap: 10px; }
    .fai-card-footer { padding: 10px 10px 12px; }
    .fai-card-title { font-size: 0.78rem; }
    .fai-card-store { font-size: 0.56rem; }
}

/* Respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .fai-card, .fai-card-media img, .fai-btn-primary, .fai-pp-cta { transition: none; }
    .fai-card:hover { transform: none; }
    .fai-card:hover .fai-card-media img { transform: none; }
}

/* ============================================================
   PHASE 2A REFINEMENT — HOMEPAGE PRESENTATION (loaded last)
   Fixes the washed-out hero image and tightens the editorial
   rhythm. Presentation only: no markup or data contracts change.
   ============================================================ */

/* ---------- HERO: real product image, sharp and dominant ---- */
.fai-home-hero {
    padding: 10px 0 6px;
    background: none;
}

.fai-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    gap: 0;
    align-items: stretch;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(110, 18, 48, 0.09);
    background: linear-gradient(104deg, #FFFDFB 0%, #FDF5F2 48%, #F7E7E4 100%);
    box-shadow: 0 30px 64px -48px rgba(110, 18, 48, 0.45);
    margin-top: 18px;
}

.fai-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px 46px 48px;
    color: var(--fai-ink);
}

.fai-hero-title {
    font-size: clamp(2.2rem, 3.9vw, 3.5rem);
    line-height: 1.04;
    margin: 0 0 14px;
    color: var(--fai-ink);
}
.fai-hero-title-accent { color: var(--fai-wine, #6E1230); }
.fai-hero-desc { margin: 0 0 26px; font-size: 0.97rem; max-width: 44ch; }

/* The hero visual is a fixed-height frame; the image fills it. */
.fai-hero-visual {
    position: relative;
    min-height: 0;
    height: clamp(430px, 34vw, 500px);
    background: #F2E4E1;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.fai-hero-media,
.fai-hero-visual > a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Explicitly undo the earlier `object-fit: contain; height: auto`
   rule that left the frame mostly empty/pale. No overlay, no blur,
   no opacity change, no backdrop-filter over the artwork. */
.fai-hero-visual img,
.fai-hero-visual .fai-hero-img,
.fai-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    filter: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    mix-blend-mode: normal;
    background: transparent;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fai-hero-visual::before,
.fai-hero-visual::after { content: none; }
.fai-hero-visual:hover img { transform: scale(1.03); }

.fai-hero-badge { top: 22px; right: 22px; width: 82px; height: 82px; }

/* ---------- HEADER ----------------------------------------- */
.fai-site-header {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(110, 18, 48, 0.1);
}
.fai-header-inner { min-height: 68px; gap: 26px; }
.fai-nav a { letter-spacing: 0.12em; }
.fai-nav a::after { background: var(--fai-wine, #6E1230); }
.fai-nav a:hover { color: var(--fai-wine, #6E1230); }
.fai-search-form { background: #FBF7F5; border-color: rgba(110, 18, 48, 0.12); }
.fai-search-submit { color: var(--fai-wine, #6E1230); }

/* ---------- VALUE STRIP ------------------------------------ */
.fai-usp { margin: 26px 0 6px; gap: 14px; }
.fai-usp-item {
    background: #fff;
    border: 1px solid rgba(110, 18, 48, 0.08);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(18, 18, 18, 0.03);
}
.fai-usp-icon { color: var(--fai-wine, #6E1230); }

/* ---------- SECTION RHYTHM -------------------------------- */
.fai-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin: 46px 0 20px;
}
.fai-section-title { margin: 0; padding-bottom: 10px; }
.fai-link-more {
    flex-shrink: 0;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--fai-wine, #6E1230);
}

/* ---------- SHOP BY CATEGORY (real terms only) ------------- */
.fai-cat-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    padding: 4px 0 6px;
}
.fai-cat-chip {
    flex: 0 0 auto;
    width: 116px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}
.fai-cat-thumb {
    display: block;
    width: 108px;
    height: 108px;
    max-width: none;
    border-radius: 50%;
    overflow: hidden;
    background: #F5EAE7;
    border: 1px solid rgba(110, 18, 48, 0.1);
    box-shadow: 0 10px 24px -20px rgba(110, 18, 48, 0.6);
}
.fai-cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: none;
}
.fai-cat-chip:hover .fai-cat-thumb { border-color: rgba(110, 18, 48, 0.3); }
.fai-cat-name {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--fai-ink);
}

/* ---------- FILTER BAR (styling only) --------------------- */
.fai-filter-bar {
    background: #FBF7F5;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-radius: 16px;
    border: 1px solid rgba(110, 18, 48, 0.08);
    padding: 12px 16px;
    margin-top: 34px;
}

/* ---------- PRODUCT GRID / CARDS -------------------------- */
.fai-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.fai-card {
    background: #fff;
    border: 1px solid rgba(110, 18, 48, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(18, 18, 18, 0.03);
    transition: transform .2s ease, box-shadow .2s ease;
}
.fai-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -30px rgba(110, 18, 48, 0.5);
}
.fai-card-media { border-radius: 18px 18px 0 0; background: #F7F1EF; }
.fai-card-media img { opacity: 1; filter: none; }

/* ---------- SCAN & SHOP ----------------------------------- */
.fai-scan {
    margin: 56px 0 0;
    background: linear-gradient(104deg, #FFFDFB 0%, #F7E7E4 100%);
    border-top: 1px solid rgba(110, 18, 48, 0.08);
    border-bottom: 1px solid rgba(110, 18, 48, 0.08);
    padding: 52px 0;
}
.fai-scan-label { color: var(--fai-wine, #6E1230); letter-spacing: 0.22em; }
.fai-scan-phone { color: var(--fai-wine, #6E1230); }

/* ---------- FOOTER ---------------------------------------- */
.fai-site-footer {
    background: #FBF6F3;
    border-top: 1px solid rgba(110, 18, 48, 0.1);
    padding: 54px 0 40px;
    text-align: center;
}
.fai-site-footer p {
    max-width: 62ch;
    margin: 14px auto 0;
    color: var(--fai-ink-soft);
    font-size: 0.94rem;
    line-height: 1.7;
}

/* ---------- RESPONSIVE ------------------------------------ */
@media (max-width: 1180px) {
    .fai-hero-content { padding: 40px 34px 42px; }
    .fai-hero-visual { height: clamp(400px, 38vw, 460px); }
    .fai-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 900px) {
    .fai-hero-inner { grid-template-columns: 1fr; border-radius: 20px; margin-top: 12px; }
    .fai-hero-content { order: 1; padding: 34px 24px 28px; }
    .fai-hero-visual { order: 2; height: auto; aspect-ratio: 4 / 5; max-height: 66vh; }
    .fai-hero-visual img { object-position: center 18%; }
    .fai-section-head { margin: 34px 0 16px; }
    .fai-cat-rail {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 18px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .fai-cat-rail::-webkit-scrollbar { display: none; }
}

@media (max-width: 720px) {
    .fai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .fai-cat-chip { width: 96px; }
    .fai-cat-thumb { width: 90px; height: 90px; }
    .fai-scan { padding: 40px 0; margin-top: 40px; }
}

@media (max-width: 480px) {
    .fai-hero-content { padding: 28px 20px 24px; }
    .fai-card-title, .fai-card-price { font-size: 0.86rem; }
}

/* ============================================================
   PHASE 3 — HOMEPAGE MASTER-REFERENCE LAYER (loaded last)
   Presentation only. Hero + category artwork are static brand
   assets; products, QR, affiliate and publishing are untouched.
   ============================================================ */

/* ---------- HERO: permanent brand artwork ------------------ */
.fai-home-hero { padding: 6px 0 0; }
.fai-hero-inner { align-items: stretch; }
.fai-hero-subtitle {
    color: var(--fai-wine, #6E1230);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 700;
}
.fai-hero-eyebrow-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fai-ink-mute, #6B6B6B);
}
.fai-hero-eyebrow-list span { color: var(--fai-rose, #C2557A); }
.fai-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fai-hero-visual { background: #F4E6E3; }
.fai-hero-img { object-position: center 12%; }
.fai-hero-badge {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: var(--fai-wine, #6E1230);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px -18px rgba(110, 18, 48, 0.8);
}
.fai-hero-badge em { font-style: normal; font-size: 0.9rem; letter-spacing: 0.06em; }

/* ---------- CATEGORY + SCAN ROW ---------------------------- */
.fai-cat-scan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: end;
}
.fai-cat-block { min-width: 0; }
.fai-scan-card {
    background: linear-gradient(140deg, #FDF3F1 0%, #F6E3E0 100%);
    border: 1px solid rgba(110, 18, 48, 0.1);
    border-radius: 22px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 26px;
}
.fai-scan-card-title {
    font-family: var(--fai-font-display, inherit);
    font-size: 1.25rem;
    margin: 0;
    color: var(--fai-ink);
}
.fai-scan-card-text p {
    margin: 8px 0 16px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--fai-ink-mute, #6B6B6B);
}
.fai-scan-card-visual { display: flex; justify-content: center; }
.fai-scan-card .fai-scan-phone {
    color: var(--fai-wine, #6E1230);
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    border: 1px solid rgba(110, 18, 48, 0.1);
}
.fai-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}

/* ---------- BOTTOM BENEFITS + INSTAGRAM -------------------- */
.fai-bottom-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: stretch;
    margin: 56px 0 0;
}
.fai-bottom-row--single { grid-template-columns: minmax(0, 1fr); }
.fai-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.fai-benefit {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid rgba(110, 18, 48, 0.08);
    border-radius: 16px;
    padding: 18px 20px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--fai-ink);
}
.fai-benefit svg { flex: 0 0 auto; color: var(--fai-wine, #6E1230); }
.fai-insta-card {
    background: linear-gradient(150deg, var(--fai-wine, #6E1230) 0%, var(--fai-wine-deep, #4C0C21) 100%);
    color: #fff;
    border-radius: 22px;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}
.fai-insta-title { font-size: 1.2rem; margin: 0; color: #fff; }
.fai-insta-card p { margin: 0 0 8px; font-size: 0.88rem; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
.fai-insta-card .fai-btn-primary {
    align-self: flex-start;
    background: #fff;
    color: var(--fai-wine, #6E1230);
}

/* ---------- FOOTER ---------------------------------------- */
.fai-site-footer { background: linear-gradient(160deg, #FBF6F3 0%, #F6E7E3 100%); }

/* ---------- RESPONSIVE ------------------------------------ */
@media (max-width: 1080px) {
    .fai-cat-scan { grid-template-columns: minmax(0, 1fr); }
    .fai-scan-card { margin-bottom: 0; flex-direction: row; align-items: center; justify-content: space-between; }
    .fai-bottom-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .fai-benefits { grid-template-columns: minmax(0, 1fr); }
    .fai-scan-card { flex-direction: column; align-items: flex-start; }
    .fai-hero-badge { width: 68px; height: 68px; top: 16px; right: 16px; }
}

/* ==========================================================
 * PHASE 4 — Trust pages, informational sections & footer
 * Presentation only. Same palette / type system as the hero.
 * ========================================================== */

.fai-section-head--center { display: block; text-align: center; margin-bottom: 30px; }
.fai-section-head--center .fai-section-sub {
    max-width: 640px;
    margin: 10px auto 0;
    color: var(--fai-ink-soft, #6b6167);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- HOW MRS FASHION WORKS ------------------------- */
.fai-how, .fai-why, .fai-journal { margin: 66px auto; }
.fai-how-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.fai-how-step {
    position: relative;
    background: #fff;
    border: 1px solid rgba(110, 18, 48, 0.08);
    border-radius: 18px;
    padding: 30px 24px 26px;
    box-shadow: 0 12px 30px -24px rgba(60, 20, 35, 0.4);
}
.fai-how-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: linear-gradient(140deg, #6E1230, #97264A);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}
.fai-how-step h3 {
    margin: 0 0 8px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
    color: var(--fai-ink, #241a1f);
}
.fai-how-step p, .fai-why-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--fai-ink-soft, #6b6167);
}
.fai-how-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    margin: 30px 0 0;
    padding: 18px 22px;
    border-radius: 999px;
    background: linear-gradient(120deg, #FBF6F3, #F6E7E3);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fai-wine, #6E1230);
    text-align: center;
}
.fai-how-flow span[aria-hidden] { color: #C9A24B; }

/* ---------- WHY MRS FASHION ------------------------------- */
.fai-why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.fai-why-card {
    background: linear-gradient(170deg, #fff, #FDF8F6);
    border: 1px solid rgba(110, 18, 48, 0.08);
    border-radius: 18px;
    padding: 28px 24px;
}
.fai-why-card h3 {
    margin: 0 0 8px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.1rem;
    color: var(--fai-ink, #241a1f);
}
.fai-why-more { margin: 26px 0 0; text-align: center; }

/* ---------- FASHION JOURNAL ------------------------------- */
.fai-journal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.fai-journal-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(110, 18, 48, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 34px -28px rgba(60, 20, 35, 0.45);
}
.fai-journal-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.fai-journal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fai-journal-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.fai-journal-title {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.12rem;
    line-height: 1.35;
}
.fai-journal-title a { color: var(--fai-ink, #241a1f); }
.fai-journal-title a:hover { color: var(--fai-wine, #6E1230); }
.fai-journal-excerpt { margin: 0; font-size: 0.9rem; line-height: 1.7; color: var(--fai-ink-soft, #6b6167); }
.fai-journal-more {
    margin-top: auto;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fai-wine, #6E1230);
}

/* ---------- FOOTER --------------------------------------- */
.fai-site-footer {
    background: linear-gradient(165deg, #FBF6F3 0%, #F6E7E3 62%, #F1DCD9 100%);
    border-top: 1px solid rgba(110, 18, 48, 0.1);
    padding: 62px 0 30px;
    text-align: left;
}
.fai-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
    gap: 38px 30px;
}
.fai-footer-brand-col .fai-brand { display: inline-block; margin-bottom: 14px; }
.fai-footer-about {
    margin: 0 0 14px;
    max-width: 34ch;
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--fai-ink-soft, #6b6167);
}
.fai-footer-inline-link,
.fai-footer-heading { display: block; }
.fai-footer-inline-link {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--fai-wine, #6E1230);
}
.fai-footer-heading {
    margin: 0 0 16px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: var(--fai-ink, #241a1f);
}
.fai-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.fai-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--fai-ink-soft, #6b6167);
}
.fai-footer-links a:hover { color: var(--fai-wine, #6E1230); }

.fai-footer-disclosure {
    margin: 44px 0 0;
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(110, 18, 48, 0.1);
    font-size: 0.83rem;
    line-height: 1.7;
    color: #55474d;
}
.fai-footer-disclosure a { color: var(--fai-wine, #6E1230); font-weight: 600; text-decoration: underline; }

.fai-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 26px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(110, 18, 48, 0.12);
}
.fai-footer-bottom .fai-copyright { margin: 0; font-size: 0.8rem; color: var(--fai-ink-soft, #6b6167); }
.fai-footer-legal-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fai-footer-legal-nav a { font-size: 0.8rem; color: var(--fai-ink-soft, #6b6167); }
.fai-footer-legal-nav a:hover { color: var(--fai-wine, #6E1230); }

/* ---------- STATIC PAGES + CONTACT FORM ------------------ */
.fai-single-content h2 {
    margin: 34px 0 12px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.45rem;
    color: var(--fai-ink, #241a1f);
}
.fai-single-content h3 { margin: 24px 0 10px; font-size: 1.1rem; }
.fai-single-content p,
.fai-single-content li { line-height: 1.85; color: #4d4247; }

.fai-contact-form-wrap { max-width: 620px; margin: 26px 0 0; }
.fai-contact-form {
    background: #fff;
    border: 1px solid rgba(110, 18, 48, 0.1);
    border-radius: 20px;
    padding: 28px 26px 24px;
    box-shadow: 0 18px 40px -34px rgba(60, 20, 35, 0.5);
}
.fai-contact-form .fai-field { margin: 0 0 18px; display: flex; flex-direction: column; gap: 7px; }
.fai-contact-form label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #55474d;
}
.fai-contact-form input[type="text"],
.fai-contact-form input[type="email"],
.fai-contact-form textarea {
    width: 100%;
    padding: 13px 15px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--fai-ink, #241a1f);
    background: #FDFAF9;
    border: 1px solid rgba(110, 18, 48, 0.16);
    border-radius: 12px;
}
.fai-contact-form input:focus,
.fai-contact-form textarea:focus {
    outline: 2px solid rgba(110, 18, 48, 0.35);
    outline-offset: 1px;
    background: #fff;
}
.fai-contact-form textarea { resize: vertical; min-height: 150px; }
.fai-contact-form .fai-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fai-field-actions { margin: 4px 0 0; }
.fai-contact-form button { cursor: pointer; border: 0; }

.fai-form-notice {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.6;
}
.fai-form-notice--ok { background: #EFF8F1; border: 1px solid #BEE0C6; color: #1F5A32; }
.fai-form-notice--error { background: #FDF0F2; border: 1px solid #F0C6CF; color: #8A1B34; }

/* ---------- PHASE 4 RESPONSIVE --------------------------- */
@media (max-width: 1080px) {
    .fai-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fai-footer-brand-col { grid-column: 1 / -1; }
    .fai-how-steps, .fai-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fai-journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .fai-how, .fai-why, .fai-journal { margin: 46px auto; }
    .fai-how-steps, .fai-why-grid, .fai-journal-grid { grid-template-columns: minmax(0, 1fr); }
    .fai-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .fai-site-footer { padding: 46px 0 26px; }
    .fai-how-flow { border-radius: 18px; padding: 16px 18px; }
    .fai-footer-bottom { flex-direction: column; align-items: flex-start; }
    .fai-footer-legal-nav a, .fai-footer-links a { padding: 4px 0; }
    .fai-contact-form { padding: 22px 18px; }
}
