/* =========================================================
   RealAfroFoods — v2 design system
   Loaded AFTER afro-brand.css so it overrides.

   ======== PAGE-BUILDING CHEAT SHEET (NEW PAGES — Bootstrap-native) ========

   <section class="section">                   white
   <section class="section bg-light">          off-white alt (grain-textured)
   <section class="section bg-dark">           ink dark (text + cards auto-invert)
       <div class="container">    ← standard Bootstrap, 1320 max
         ...or <div class="container-xl"> for 1440 max (matches header)
         <div class="row g-4">
           <div class="col-md-6">...</div>
         </div>
       </div>
   </section>

   Head block:    <div class="afro-section-head">
                      <span class="afro-eyebrow">Eyebrow</span>
                      <h2 class="afro-title">Section title</h2>
                      <p class="afro-sub">Subhead.</p>
                  </div>

   Head w/ link:  <div class="raf-section-head-row">  (title left, see-all right)

   Buttons:       .btn.btn-primary        palm red
                  .btn.btn-outline-primary palm outline
                  .btn.btn-dark           ink solid
                  .btn.btn-outline-dark   ink hairline

   Links/text:    .text-primary / .link-primary → palm
   Alt-tone BG:   .bg-light → off-white (--ivory-dim), .bg-dark → ink
   Container max: .container (1320) / .container-xl (1440)

   Product card:  <div class="raf-product">
                      <a class="thumb">...</a>
                      <div class="info">
                          <span class="cat">...</span>
                          <a class="name">...</a>
                          <div class="rating"><span class="stars">★★★★★</span> ...</div>
                          <div class="weight">1kg</div>
                          <div class="price">£10.00 <span class="old">£12</span></div>
                          <a class="add-cart">Add to basket</a>
                      </div>
                  </div>

   Category card: <a class="afro-cat-card"><img><div class="cap">...</div></a>
   Trust stripe:  <section class="raf-trust"> (ink)
   Badges:        .badge.text-bg-primary / .badge.text-bg-dark
                   or .raf-badge.sale / .raf-badge.dark

   Note: the legacy .afro-section + .afro-container pattern on the current
   homepage still works, but prefer .section + .container for new pages.
   ============================================================= */

:root {
    /* Palette — classic contrast: pure white with warm-black ink */
    --ink: #141210;
    --ink-85: rgba(20, 18, 16, 0.85);
    --ink-50: rgba(20, 18, 16, 0.50);
    --ink-25: rgba(20, 18, 16, 0.25);
    --ivory: #FFFFFF;
    --ivory-dim: #F6F5F2;
    --palm: #B5321F;
    --palm-dark: #8E2515;
    --amber: #E8B547;
    --amber-deep: #C8973A;
    --smoke: #6B6660;
    --mist: #B8B2A6;
    --line-light: rgba(20, 18, 16, 0.08);
    --line-dark: rgba(247, 242, 232, 0.10);

    /* ---------- Bootstrap 5 theme bindings ----------
       Every .btn, .form-control, .text-*, .bg-*, .border-*,
       .container, .link-primary etc. now inherits our brand. */
    --bs-body-bg: #FFFFFF;
    --bs-body-color: #141210;
    --bs-body-font-family: 'Instrument Sans', 'Helvetica Neue', Arial, system-ui, sans-serif;
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.6;
    --bs-body-font-weight: 400;

    --bs-primary: #B5321F;
    --bs-primary-rgb: 181, 50, 31;
    --bs-primary-text-emphasis: #8E2515;
    --bs-primary-bg-subtle: #FBE7E3;
    --bs-primary-border-subtle: #E89A8E;

    --bs-secondary: #141210;
    --bs-secondary-rgb: 20, 18, 16;

    --bs-success: #2E7D32;
    --bs-success-rgb: 46, 125, 50;
    --bs-info: #0F6E7E;
    --bs-info-rgb: 15, 110, 126;
    --bs-warning: #C8973A;
    --bs-warning-rgb: 200, 151, 58;
    --bs-danger: #B5321F;
    --bs-danger-rgb: 181, 50, 31;

    --bs-light: #F6F5F2;
    --bs-light-rgb: 246, 245, 242;
    --bs-dark: #141210;
    --bs-dark-rgb: 20, 18, 16;

    --bs-emphasis-color: #141210;
    --bs-emphasis-color-rgb: 20, 18, 16;
    --bs-secondary-color: #6B6660;
    --bs-tertiary-color: #B8B2A6;

    --bs-link-color: #B5321F;
    --bs-link-color-rgb: 181, 50, 31;
    --bs-link-hover-color: #8E2515;
    --bs-link-hover-color-rgb: 142, 37, 21;
    --bs-link-decoration: none;

    --bs-border-radius: 10px;
    --bs-border-radius-sm: 6px;
    --bs-border-radius-lg: 16px;
    --bs-border-radius-pill: 999px;
    --bs-border-color: rgba(20, 18, 16, 0.08);
    --bs-border-color-translucent: rgba(20, 18, 16, 0.08);

    --bs-heading-color: #141210;
    --bs-headings-font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    --bs-headings-font-weight: 600;
    --bs-headings-line-height: 1.1;

    /* Type */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-ui: 'Instrument Sans', 'Helvetica Neue', Arial, system-ui, sans-serif;

    /* Modular type scale — musical fourth (1.333) */
    --t-12: 0.75rem;
    --t-14: 0.875rem;
    --t-16: 1rem;
    --t-18: 1.125rem;
    --t-21: 1.3125rem;
    --t-28: 1.75rem;
    --t-37: 2.3125rem;
    --t-49: 3.0625rem;
    --t-65: 4.0625rem;
    --t-86: 5.375rem;

    /* Spacing — 8pt base */
    --s-4: 4px;
    --s-8: 8px;
    --s-12: 12px;
    --s-16: 16px;
    --s-20: 20px;
    --s-24: 24px;
    --s-32: 32px;
    --s-48: 48px;
    --s-64: 64px;
    --s-96: 96px;
    --s-128: 128px;

    /* Radii */
    --r-xs: 4px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-pill: 999px;

    /* Transitions */
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --dur: 240ms;
}

/* =========================================================
   BOOTSTRAP 5 COMPONENT BRAND-ALIGNMENT
   Standard .btn, .form-control, .container, .card, .badge
   are now first-class citizens of the brand.
   ========================================================= */

/* Container widths — align .container-xl to our 1440 max */
.container-xl, .container-xxl { max-width: 1440px !important; }

/* Buttons — common sizing + typography */
.btn {
    font-family: var(--font-ui) !important;
    font-weight: 600 !important;
    font-size: var(--t-16);
    letter-spacing: -0.005em;
    padding: var(--s-12) var(--s-20);
    border-radius: var(--r-sm) !important;
    border-width: 1.5px !important;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-lg { padding: var(--s-16) var(--s-24); font-size: var(--t-16); }
.btn-sm { padding: var(--s-8) var(--s-16); font-size: var(--t-14); }

.btn-primary {
    background-color: var(--palm);
    border-color: var(--palm);
    color: var(--ivory);
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--palm-dark);
    border-color: var(--palm-dark);
    color: var(--ivory);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--palm);
    border-color: var(--palm);
    background: transparent;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
    background: var(--palm);
    color: var(--ivory);
    border-color: var(--palm);
}

.btn-dark {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--ivory);
}
.btn-dark:hover { background-color: #000; border-color: #000; color: var(--ivory); }

.btn-outline-dark {
    color: var(--ink);
    border-color: rgba(20,18,16,0.25);
}
.btn-outline-dark:hover {
    background: var(--ink);
    color: var(--ivory);
    border-color: var(--ink);
}

.btn-light {
    background-color: var(--ivory);
    border-color: var(--line-light);
    color: var(--ink);
}

/* Forms */
.form-control, .form-select {
    font-family: var(--font-ui) !important;
    font-size: var(--t-16);
    padding: var(--s-12) var(--s-16);
    border-radius: var(--r-sm) !important;
    border: 1.5px solid var(--line-light);
    color: var(--ink);
    background-color: var(--ivory);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-control:focus, .form-select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(232, 181, 71, 0.18);
    outline: none;
}
.form-label {
    font-family: var(--font-ui) !important;
    font-size: var(--t-14);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--s-8);
}
.form-text {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
}

/* Card */
.card {
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    background: var(--ivory);
}
.card-body { padding: var(--s-24); }
.card-title {
    font-family: var(--font-display) !important;
    font-size: var(--t-21);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: var(--s-8);
}
.card-text { color: var(--smoke); font-size: var(--t-14); line-height: 1.6; }

/* Badge */
.badge {
    font-family: var(--font-ui) !important;
    font-weight: 700;
    font-size: var(--t-12);
    letter-spacing: 0.01em;
    padding: 4px var(--s-8);
    border-radius: var(--r-xs);
}
.badge.text-bg-primary { background: var(--palm) !important; color: var(--ivory) !important; }
.badge.text-bg-dark { background: var(--ink) !important; color: var(--amber) !important; }

/* Alert — light brand feel */
.alert {
    border-radius: var(--r-md);
    border-width: 1px;
    padding: var(--s-16) var(--s-20);
    font-family: var(--font-ui);
    font-size: var(--t-14);
}

/* Breadcrumb */
.breadcrumb {
    font-family: var(--font-ui);
    font-size: var(--t-14);
}
.breadcrumb-item a { color: var(--smoke); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--palm); }
.breadcrumb-item.active { color: var(--ink); }

/* Nav / tabs — restrained */
.nav-link {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 500;
    color: var(--ink);
    padding: var(--s-8) var(--s-16);
}
.nav-link.active { color: var(--palm); }
.nav-tabs { border-bottom-color: var(--line-light); }
.nav-tabs .nav-link.active {
    border-color: var(--line-light) var(--line-light) var(--ivory);
    color: var(--palm);
}

/* Modal / offcanvas aesthetic */
.modal-content, .offcanvas {
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    background: var(--ivory);
    color: var(--ink);
}
.modal-header, .offcanvas-header {
    border-bottom: 1px solid var(--line-light);
    padding: var(--s-20) var(--s-24);
}
.modal-title, .offcanvas-title {
    font-family: var(--font-display) !important;
    font-size: var(--t-21);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
}

/* Pagination */
.page-link {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 500;
    color: var(--ink);
    border-color: var(--line-light);
}
.page-link:hover { background: var(--ivory-dim); color: var(--palm); border-color: var(--line-light); }
.page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* =========================================================
   .section — the Bootstrap-native wrapper for new pages
   Use with Bootstrap .container / .container-xl inside.
   Alternate with Bootstrap's .bg-light and .bg-dark.
   ========================================================= */

.section {
    padding-top: var(--s-96);
    padding-bottom: var(--s-96);
    position: relative;
    isolation: isolate;
}

/* .bg-light alt — off-white with the subtle paper-grain hint */
.section.bg-light { background-color: var(--ivory-dim) !important; }
.section.bg-light::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.58  0 0 0 0 0.54  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
    background-size: 220px 220px;
    mix-blend-mode: multiply;
}

/* .bg-dark — ink with auto text + product-card inversion */
.section.bg-dark {
    background-color: var(--ink) !important;
    color: var(--ivory) !important;
}
.section.bg-dark .afro-title,
.section.bg-dark .raf-title,
.section.bg-dark h1,
.section.bg-dark h2,
.section.bg-dark h3,
.section.bg-dark h4 { color: var(--ivory) !important; }
.section.bg-dark .afro-sub { color: var(--mist) !important; }
.section.bg-dark .afro-eyebrow {
    color: var(--amber) !important;
    border-bottom-color: rgba(232, 181, 71, 0.4) !important;
}
.section.bg-dark .raf-section-head-row a,
.section.bg-dark .raf-section-head-row .see-all { color: var(--ivory) !important; }
.section.bg-dark .raf-section-head-row a:hover,
.section.bg-dark .raf-section-head-row .see-all:hover { color: var(--amber) !important; }

/* Product cards inside bg-dark — mirror .afro-section.off treatment */
.section.bg-dark .raf-product,
.section.bg-dark .afro-dish {
    background: #1C1916 !important;
    border-color: var(--line-dark) !important;
}
.section.bg-dark .raf-product .name,
.section.bg-dark .afro-dish .name { color: var(--ivory) !important; }
.section.bg-dark .raf-product .name:hover,
.section.bg-dark .afro-dish .name:hover { color: var(--amber) !important; }
.section.bg-dark .raf-product .cat,
.section.bg-dark .afro-dish .cat,
.section.bg-dark .raf-product .rating,
.section.bg-dark .afro-dish .rating,
.section.bg-dark .raf-product .rating a,
.section.bg-dark .afro-dish .rating a,
.section.bg-dark .raf-product .weight,
.section.bg-dark .afro-dish .weight { color: var(--mist) !important; }
.section.bg-dark .raf-product .price,
.section.bg-dark .afro-dish .price { color: var(--ivory) !important; }
.section.bg-dark .raf-product .price .old,
.section.bg-dark .afro-dish .price .old { color: var(--mist) !important; }
.section.bg-dark .raf-product .add-cart,
.section.bg-dark .afro-dish .add-cart {
    background: var(--palm) !important;
    color: var(--ivory) !important;
}
.section.bg-dark .raf-product .add-cart:hover,
.section.bg-dark .afro-dish .add-cart:hover { background: var(--palm-dark) !important; }
.section.bg-dark .raf-wish {
    background: var(--ink-85) !important;
    color: var(--ivory) !important;
    border: 1px solid var(--line-dark);
}

/* Buttons placed inside bg-dark */
.section.bg-dark .btn-outline-dark,
.section.bg-dark .afro-btn-ghost {
    color: var(--ivory) !important;
    border-color: rgba(247,242,232,0.3) !important;
}
.section.bg-dark .btn-outline-dark:hover,
.section.bg-dark .afro-btn-ghost:hover {
    background: var(--ivory) !important;
    color: var(--ink) !important;
    border-color: var(--ivory) !important;
}

@media (max-width: 1024px) {
    .section { padding-top: var(--s-64); padding-bottom: var(--s-64); }
}
@media (max-width: 720px) {
    .section { padding-top: var(--s-48); padding-bottom: var(--s-48); }
}

/* ---------- Global type baseline ---------- */
body {
    font-family: var(--font-ui) !important;
    font-size: var(--t-16);
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal page scroll — if any element sneaks past the viewport
   (oversized hero image, Bootstrap .row negative margins near the edge, a
   fixed-width widget), the page clips rather than offering a sideways scrollbar.
   Applied globally because an e-commerce page should never scroll horizontally;
   local scroll containers (catbar, search autocomplete, mobile category chips)
   still work because they set their own overflow-x on inner elements. */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

h1, h2, h3, h4, .afro-title, .hero-v2__title, .rafv2-sec__title {
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 50, "opsz" 48;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--ink);
}

/* =========================================================
   HEADER + NAV (desktop first, mobile overrides below)
   ========================================================= */

.rafv2-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--ink);
    color: var(--ivory);
    border-bottom: 1px solid var(--line-dark);
}

.rafv2-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--s-32);
    padding: var(--s-16) var(--s-24);
}
.rafv2-header__inner--no-search {
    grid-template-columns: auto auto;
    justify-content: space-between;
}

.rafv2-brand {
    display: inline-flex;
    align-items: baseline;
    gap: var(--s-8);
    text-decoration: none;
    color: var(--ivory);
}
.rafv2-brand__mark {
    font-family: var(--font-display);
    font-variation-settings: "SOFT" 100, "opsz" 48;
    font-weight: 700;
    font-size: var(--t-37);
    line-height: 1;
    color: var(--amber);
    letter-spacing: -0.04em;
}
.rafv2-brand__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--t-21);
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--ivory);
}
.rafv2-brand__sub {
    display: block;
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--mist);
    margin-top: 2px;
}

/* Search — dominant interaction */
.rafv2-search {
    display: flex;
    align-items: center;
    background: var(--ivory);
    border: 1.5px solid transparent;
    border-radius: var(--r-md);
    padding: 2px;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}
.rafv2-search:focus-within {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(232, 181, 71, 0.18);
}
.rafv2-search__icon {
    width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--smoke);
    font-size: var(--t-18);
}
.rafv2-search__input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: var(--s-12) var(--s-8) var(--s-12) 0;
    font-family: var(--font-ui);
    font-size: var(--t-16);
    color: var(--ink);
    outline: none;
    min-width: 0;
}
.rafv2-search__input::placeholder {
    color: var(--smoke);
}
.rafv2-search__submit {
    display: inline-flex;
    align-items: center;
    gap: var(--s-8);
    background: var(--palm);
    color: var(--ivory);
    border: 0;
    border-radius: var(--r-sm);
    padding: var(--s-12) var(--s-20);
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--dur) var(--ease);
}
.rafv2-search__submit:hover { background: var(--palm-dark); }

/* Tools cluster */
.rafv2-tools {
    display: inline-flex;
    align-items: center;
    gap: var(--s-20);
}
.rafv2-tool {
    display: inline-flex;
    align-items: center;
    gap: var(--s-8);
    color: var(--ivory);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 500;
    transition: color var(--dur) var(--ease);
}
.rafv2-tool:hover { color: var(--amber); }
.rafv2-tool__icon {
    position: relative;
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    font-size: var(--t-21);
}
.rafv2-tool__count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--palm);
    color: var(--ivory);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--r-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rafv2-tool__stack {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.rafv2-tool__hint {
    font-size: var(--t-12);
    color: var(--mist);
    font-weight: 400;
}
.rafv2-tool__label {
    font-size: var(--t-14);
    color: var(--ivory);
    font-weight: 600;
}

/* ================= SETTINGS PAGE ================= */

/* ---------- Settings section card (reusable "card with head + body + optional foot") ---------- */
.rafv2-settings-card {
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    overflow: hidden;
}
.rafv2-settings-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-16);
    padding: var(--s-20) var(--s-24);
    background: var(--ivory-dim);
    border-bottom: 1px solid var(--line-light);
    flex-wrap: wrap;
}
.rafv2-settings-card__title {
    font-family: var(--font-display);
    font-size: var(--t-18);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 var(--s-4);
    line-height: 1.2;
}
.rafv2-settings-card__sub {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    color: var(--smoke);
    line-height: 1.5;
    margin: 0;
    max-width: 56ch;
}
.rafv2-settings-card__body {
    padding: var(--s-24);
}
.rafv2-settings-card__body.p-0 { padding: 0; }
.rafv2-settings-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-16);
    padding: var(--s-16) var(--s-24);
    background: var(--ivory);
    border-top: 1px solid var(--line-light);
    margin-top: var(--s-20);
    margin-left: calc(var(--s-24) * -1);
    margin-right: calc(var(--s-24) * -1);
    margin-bottom: calc(var(--s-24) * -1);
    flex-wrap: wrap;
}

/* Danger-zone variant */
.rafv2-settings-card--danger {
    border-color: rgba(181, 50, 31, 0.3);
}
.rafv2-settings-card--danger .rafv2-settings-card__head {
    background: rgba(181, 50, 31, 0.05);
    border-bottom-color: rgba(181, 50, 31, 0.2);
}
.rafv2-settings-card--danger .rafv2-settings-card__title { color: var(--palm); }

.rafv2-btn-danger {
    display: inline-flex;
    align-items: center;
    gap: var(--s-8);
    padding: var(--s-10, 10px) var(--s-20);
    background: var(--ivory);
    color: var(--palm);
    border: 1.5px solid var(--palm);
    border-radius: var(--r-sm);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: var(--t-14);
    cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.rafv2-btn-danger:hover {
    background: var(--palm);
    color: var(--ivory);
}

/* ---------- Avatar editor ---------- */
.rafv2-avatar-editor {
    display: flex;
    align-items: center;
    gap: var(--s-20);
}
.rafv2-account-avatar--xl {
    width: 88px;
    height: 88px;
    font-size: var(--t-49);
    flex-shrink: 0;
}
.rafv2-avatar-editor__body strong {
    display: block;
    font-family: var(--font-display);
    font-size: var(--t-18);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: var(--s-4);
}

/* ---------- Settings icon chip (used in 2FA row etc.) ---------- */
.rafv2-settings-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory-dim);
    border: 1px solid var(--line-light);
    border-radius: var(--r-sm);
    color: var(--palm);
    font-size: var(--t-18);
    flex-shrink: 0;
}

/* ---------- Linked accounts list ---------- */
.rafv2-linked-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rafv2-linked-list > li {
    display: flex;
    align-items: center;
    gap: var(--s-16);
    padding: var(--s-16) var(--s-24);
    border-bottom: 1px solid var(--line-light);
}
.rafv2-linked-list > li:last-child { border-bottom: 0; }
.rafv2-linked-list__brand {
    display: flex;
    align-items: center;
    gap: var(--s-16);
    flex: 1;
    min-width: 0;
}
.rafv2-linked-list__brand > div { min-width: 0; }
.rafv2-linked-list strong {
    font-family: var(--font-display);
    font-size: var(--t-16);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.2;
}

/* ---------- Session list ---------- */
.rafv2-session-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rafv2-session-list > li {
    display: flex;
    align-items: center;
    gap: var(--s-16);
    padding: var(--s-16) var(--s-24);
    border-bottom: 1px solid var(--line-light);
}
.rafv2-session-list > li:last-child { border-bottom: 0; }
.rafv2-session-list__dot {
    width: 10px;
    height: 10px;
    background: var(--mist);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}
.rafv2-session-list__dot--active {
    background: #2E7D32;
}
.rafv2-session-list__dot--active::before {
    content: "";
    position: absolute;
    inset: -3px;
    background: #2E7D32;
    border-radius: 50%;
    opacity: 0.3;
    animation: rafv2-session-pulse 2s var(--ease) infinite;
}
@keyframes rafv2-session-pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .rafv2-session-list__dot--active::before { animation: none; }
}
.rafv2-session-list__info {
    flex: 1;
    min-width: 0;
}
.rafv2-session-list strong {
    font-family: var(--font-display);
    font-size: var(--t-14);
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--ink);
    display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
    .rafv2-settings-card__head,
    .rafv2-settings-card__body,
    .rafv2-settings-card__foot {
        padding-left: var(--s-16);
        padding-right: var(--s-16);
    }
    .rafv2-settings-card__foot {
        margin-left: calc(var(--s-16) * -1);
        margin-right: calc(var(--s-16) * -1);
        margin-bottom: calc(var(--s-16) * -1);
    }
    .rafv2-avatar-editor { flex-direction: column; align-items: flex-start; }
    .rafv2-linked-list > li,
    .rafv2-session-list > li {
        padding-left: var(--s-16);
        padding-right: var(--s-16);
        flex-wrap: wrap;
    }
}

/* ================= BREADCRUMB (reusable) ================= */

.rafv2-breadcrumb {
    padding: var(--s-8) var(--s-16);
    margin-bottom: var(--s-24);
    background: var(--ivory-dim);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
}
.rafv2-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--s-4);
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.rafv2-breadcrumb ol::-webkit-scrollbar { display: none; }
.rafv2-breadcrumb li {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.rafv2-breadcrumb__link {
    display: inline-flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-8);
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 500;
    color: var(--smoke);
    text-decoration: none;
    letter-spacing: -0.005em;
    border-radius: var(--r-sm);
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.rafv2-breadcrumb__link:hover {
    color: var(--palm);
    background: var(--ivory);
}

.rafv2-breadcrumb__home {
    gap: var(--s-8);
    padding-left: var(--s-4);
}
.rafv2-breadcrumb__home-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory);
    color: var(--palm);
    border: 1px solid var(--line-light);
    border-radius: 50%;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rafv2-breadcrumb__home-icon svg {
    width: 14px;
    height: 14px;
}
.rafv2-breadcrumb__home:hover .rafv2-breadcrumb__home-icon {
    background: var(--palm);
    color: var(--ivory);
    border-color: var(--palm);
    transform: scale(1.05);
}

.rafv2-breadcrumb__sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mist);
    padding: 0 2px;
    pointer-events: none;
}
.rafv2-breadcrumb__sep svg {
    width: 11px;
    height: 11px;
}

.rafv2-breadcrumb__current {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 600;
    color: var(--ink);
    padding: var(--s-4) var(--s-8);
    letter-spacing: -0.005em;
}

/* Fade-right edge hint when the chain overflows horizontally */
@media (max-width: 576px) {
    .rafv2-breadcrumb { position: relative; }
    .rafv2-breadcrumb::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 24px;
        background: linear-gradient(90deg, transparent, var(--ivory-dim));
        pointer-events: none;
        border-radius: 0 var(--r-md) var(--r-md) 0;
    }
    .rafv2-breadcrumb__link,
    .rafv2-breadcrumb__current { padding: var(--s-4) var(--s-4); font-size: 13px; }
}

/* ================= ADDRESSES PAGE ================= */

/* ---------- Immutability notice ---------- */
.rafv2-notice {
    display: flex;
    gap: var(--s-16);
    align-items: center;
    padding: var(--s-16) var(--s-20);
    background: var(--ivory-dim);
    border: 1px solid var(--line-light);
    border-left: 3px solid var(--ink);
    border-radius: var(--r-md);
}
.rafv2-notice__icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--amber);
    border-radius: 50%;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.rafv2-notice__body {
    flex: 1;
    font-family: var(--font-ui);
    font-size: var(--t-14);
    line-height: 1.5;
    color: var(--ink);
}
.rafv2-notice__body strong { display: block; font-weight: 600; }
.rafv2-notice__body span { color: var(--smoke); font-size: var(--t-12); }

/* ---------- Address management card ---------- */
.rafv2-addr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    overflow: hidden;
    height: 100%;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.rafv2-addr-card:hover {
    border-color: rgba(20, 18, 16, 0.2);
    transform: translateY(-1px);
}
.rafv2-addr-card.is-default {
    border-color: var(--palm);
    box-shadow: 0 0 0 3px rgba(181, 50, 31, 0.08);
}

.rafv2-addr-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-12);
    padding: var(--s-12) var(--s-20);
    background: var(--ivory-dim);
    border-bottom: 1px solid var(--line-light);
}
.rafv2-addr-card__label {
    font-family: var(--font-display);
    font-size: var(--t-16);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.rafv2-addr-card__tag {
    display: inline-flex;
    align-items: center;
    gap: var(--s-4);
    padding: 3px var(--s-8);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--palm);
    background: rgba(181, 50, 31, 0.08);
    border-radius: var(--r-pill);
}
.rafv2-addr-card__tag i { font-size: 0.7rem; }

.rafv2-addr-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--s-12);
    padding: var(--s-20);
    flex: 1;
}
.rafv2-addr-card__name {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.005em;
}
.rafv2-addr-card__address {
    font-style: normal;
    font-family: var(--font-ui);
    font-size: var(--t-14);
    line-height: 1.5;
    color: var(--ink);
    margin: 0;
}
.rafv2-addr-card__phone {
    display: inline-flex;
    align-items: center;
    gap: var(--s-8);
    font-family: var(--font-ui);
    font-size: var(--t-14);
    color: var(--smoke);
}
.rafv2-addr-card__phone i { color: var(--palm); font-size: 0.95rem; }

.rafv2-addr-card__meta {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-8) var(--s-20);
    background: var(--ivory);
    border-top: 1px solid var(--line-light);
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--smoke);
    flex-wrap: wrap;
}

.rafv2-addr-card__foot {
    display: flex;
    gap: var(--s-8);
    padding: var(--s-12) var(--s-20) var(--s-16);
    background: var(--ivory);
    border-top: 1px solid var(--line-light);
    flex-wrap: wrap;
}
.rafv2-addr-card__delete:hover:not([disabled]) {
    background: rgba(181, 50, 31, 0.08) !important;
    color: var(--palm) !important;
    border-color: var(--palm) !important;
}

/* "Add new" placeholder card variant */
.rafv2-addr-card--add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s-12);
    padding: var(--s-32);
    background: var(--ivory);
    border: 2px dashed var(--line-light);
    border-radius: var(--r-md);
    cursor: pointer;
    text-align: center;
    min-height: 220px;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.rafv2-addr-card--add:hover {
    border-color: var(--palm);
    background: rgba(181, 50, 31, 0.02);
    transform: translateY(-1px);
}
.rafv2-addr-card--add__plus {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory-dim);
    color: var(--palm);
    border-radius: 50%;
    font-size: var(--t-21);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.rafv2-addr-card--add:hover .rafv2-addr-card--add__plus {
    background: var(--palm);
    color: var(--ivory);
}
.rafv2-addr-card--add strong {
    font-family: var(--font-display);
    font-size: var(--t-16);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

/* ================= WISHLIST PAGE ================= */

/* ---------- Alert strip ---------- */
.rafv2-wish-alert {
    display: flex;
    align-items: center;
    gap: var(--s-16);
    padding: var(--s-16) var(--s-20);
    background: linear-gradient(90deg, rgba(232, 181, 71, 0.14) 0%, var(--ivory) 60%);
    border: 1px solid rgba(232, 181, 71, 0.4);
    border-left: 4px solid var(--amber);
    border-radius: var(--r-md);
    flex-wrap: wrap;
}
.rafv2-wish-alert__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--amber);
    color: var(--ink);
    border-radius: 50%;
    font-size: var(--t-16);
    flex-shrink: 0;
}
.rafv2-wish-alert__body {
    flex: 1;
    min-width: 180px;
    font-family: var(--font-ui);
    font-size: var(--t-14);
    color: var(--ink);
    line-height: 1.4;
}
.rafv2-wish-alert__body strong { font-weight: 700; }

/* ---------- Wishlist card ---------- */
.rafv2-wish-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    overflow: hidden;
    height: 100%;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.rafv2-wish-card:hover {
    border-color: rgba(20, 18, 16, 0.22);
    transform: translateY(-2px);
}
.rafv2-wish-card.is-oos .rafv2-wish-card__thumb img { opacity: 0.65; filter: grayscale(0.3); }

.rafv2-wish-card__thumb {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--ivory-dim);
    position: relative;
}
.rafv2-wish-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms var(--ease);
}
.rafv2-wish-card__thumb:hover img { transform: scale(1.05); }

.rafv2-wish-card__ribbon {
    position: absolute;
    top: var(--s-12);
    left: var(--s-12);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px var(--s-12);
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: var(--r-xs);
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(20, 18, 16, 0.14);
}
.rafv2-wish-card__ribbon i { font-size: 0.8rem; }
.rafv2-wish-card__ribbon--drop {
    background: var(--palm);
    color: var(--ivory);
}
.rafv2-wish-card__ribbon--back {
    background: #2E7D32;
    color: var(--ivory);
}

.rafv2-wish-card__remove {
    position: absolute;
    top: var(--s-12);
    right: var(--s-12);
    z-index: 2;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory);
    border: 0;
    border-radius: 50%;
    color: var(--smoke);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(20, 18, 16, 0.14);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.rafv2-wish-card__remove:hover {
    background: var(--palm);
    color: var(--ivory);
    transform: scale(1.05);
}
.rafv2-wish-card__remove i { font-size: 0.85rem; }

.rafv2-wish-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--s-8);
    padding: var(--s-16);
    flex: 1;
}
.rafv2-wish-card__cat {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
    font-weight: 500;
    letter-spacing: 0.01em;
}
.rafv2-wish-card__name {
    font-family: var(--font-display);
    font-size: var(--t-16);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.25;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.rafv2-wish-card__name:hover { color: var(--palm); }

.rafv2-wish-card__rating {
    display: flex;
    align-items: center;
    gap: var(--s-8);
}

.rafv2-wish-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--s-8);
    flex-wrap: wrap;
}
.rafv2-wish-card__price-now {
    font-family: var(--font-display);
    font-size: var(--t-21);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.rafv2-wish-card__price-old {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 500;
    color: var(--smoke);
    text-decoration: line-through;
}

.rafv2-wish-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-8);
    font-family: var(--font-ui);
    font-size: var(--t-12);
}
.rafv2-wish-card__weight { color: var(--smoke); font-weight: 500; }
.rafv2-wish-card__stock {
    display: inline-flex;
    align-items: center;
    gap: var(--s-4);
    font-weight: 600;
}
.rafv2-wish-card__stock > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.rafv2-wish-card__stock--in { color: #2E7D32; }
.rafv2-wish-card__stock--in > span { background: #2E7D32; }
.rafv2-wish-card__stock--out { color: var(--smoke); }
.rafv2-wish-card__stock--out > span { background: var(--smoke); }

.rafv2-wish-card__actions {
    margin-top: var(--s-4);
}

.rafv2-wish-card__added {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--smoke);
    font-weight: 500;
    text-align: center;
    padding-top: var(--s-8);
    border-top: 1px solid var(--line-light);
    margin-top: var(--s-4);
}

/* ================= ORDERS LIST PAGE ================= */

/* ---------- Filter bar ---------- */
.rafv2-filter-bar {
    padding: var(--s-20);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
}

/* ---------- Order card ---------- */
.rafv2-order-card {
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.rafv2-order-card:hover {
    border-color: rgba(20, 18, 16, 0.2);
    transform: translateY(-1px);
}

.rafv2-order-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-12);
    padding: var(--s-12) var(--s-20);
    background: var(--ivory-dim);
    border-bottom: 1px solid var(--line-light);
}
.rafv2-order-card__date {
    display: block;
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 500;
    color: var(--smoke);
    letter-spacing: 0.01em;
    margin-bottom: 2px;
}
.rafv2-order-card__ref {
    font-family: var(--font-display);
    font-size: var(--t-16);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.rafv2-order-card__body {
    display: flex;
    gap: var(--s-16);
    padding: var(--s-20);
    align-items: center;
}
.rafv2-order-card__thumbs {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.rafv2-order-card__thumbs img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-light);
}
.rafv2-order-card__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 56px;
    background: var(--ivory-dim);
    border: 1px solid var(--line-light);
    border-radius: var(--r-sm);
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 700;
    color: var(--smoke);
    margin-left: 2px;
}

.rafv2-order-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}
.rafv2-order-card__hero {
    font-family: var(--font-display);
    font-size: var(--t-16);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rafv2-order-card__meta {
    display: flex;
    align-items: baseline;
    gap: var(--s-12);
    font-family: var(--font-ui);
    font-size: var(--t-14);
    color: var(--smoke);
}
.rafv2-order-card__total {
    font-family: var(--font-display);
    font-size: var(--t-18);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.015em;
    margin-left: auto;
}
.rafv2-order-card__eta {
    display: inline-flex;
    align-items: center;
    gap: var(--s-8);
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
    margin-top: var(--s-4);
}
.rafv2-order-card__eta i {
    color: var(--palm);
    font-size: 0.95rem;
}

.rafv2-order-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-12);
    padding: var(--s-12) var(--s-20);
    background: var(--ivory);
    border-top: 1px solid var(--line-light);
    flex-wrap: wrap;
}

/* ---------- Empty state ---------- */
.rafv2-order-empty {
    text-align: center;
    max-width: 440px;
    margin: var(--s-48) auto;
    padding: var(--s-48) var(--s-16);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
}
.rafv2-order-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: var(--ivory-dim);
    border-radius: 50%;
    margin: 0 auto var(--s-24);
    color: var(--smoke);
    font-size: 2.4rem;
}
.rafv2-order-empty__title {
    font-family: var(--font-display);
    font-size: var(--t-28);
    font-weight: 500;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: var(--s-12);
}
.rafv2-order-empty__sub {
    font-family: var(--font-ui);
    font-size: var(--t-16);
    color: var(--smoke);
    line-height: 1.55;
    margin-bottom: var(--s-24);
}

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
    .rafv2-order-card__body { flex-direction: column; align-items: stretch; gap: var(--s-12); }
    .rafv2-order-card__thumbs { justify-content: flex-start; }
    .rafv2-order-card__total { margin-left: 0; }
    .rafv2-order-card__meta { flex-direction: column; gap: var(--s-4); align-items: flex-start; }
    .rafv2-order-card__foot { flex-direction: column; align-items: stretch; }
    .rafv2-order-card__foot > a { text-align: center; }
}

/* ================= ACCOUNT PAGES ================= */

/* ---------- Welcome header ---------- */
.rafv2-account-welcome {
    display: flex;
    align-items: center;
    gap: var(--s-20);
    padding: var(--s-24);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
}
.rafv2-account-avatar {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--amber);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: var(--t-37);
    font-weight: 500;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.rafv2-account-welcome__text { flex: 1; min-width: 0; }
.rafv2-account-welcome__title {
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 30, "opsz" 72 !important;
    font-size: clamp(var(--t-28), 3.5vw, var(--t-37)) !important;
    font-weight: 500 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.025em !important;
    color: var(--ink);
    margin: var(--s-4) 0 var(--s-8);
}
.rafv2-account-welcome__title em {
    font-style: normal;
    color: var(--palm);
    font-variation-settings: "SOFT" 100, "opsz" 72;
}
.rafv2-account-welcome__sub {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    color: var(--smoke);
    margin: 0;
}
.rafv2-account-welcome__actions { display: flex; gap: var(--s-8); flex-shrink: 0; }

/* ---------- Sidebar nav ---------- */
.rafv2-account-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--s-12);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    position: sticky;
    top: var(--s-24);
}
.rafv2-account-nav__item {
    display: flex;
    align-items: center;
    gap: var(--s-12);
    padding: var(--s-10, 10px) var(--s-12);
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.rafv2-account-nav__item > span:not(.rafv2-account-nav__count):not(.rafv2-account-nav__badge) {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rafv2-account-nav__item i {
    width: 20px;
    text-align: center;
    color: var(--smoke);
    font-size: 1rem;
    flex-shrink: 0;
    transition: color var(--dur) var(--ease);
}
.rafv2-account-nav__item:hover {
    background: var(--ivory-dim);
    color: var(--palm);
}
.rafv2-account-nav__item:hover i { color: var(--palm); }
.rafv2-account-nav__item.is-active {
    background: var(--ink);
    color: var(--ivory);
}
.rafv2-account-nav__item.is-active i { color: var(--amber); }
.rafv2-account-nav__item--danger { color: var(--palm); }
.rafv2-account-nav__item--danger i { color: var(--palm); }
.rafv2-account-nav__item--danger:hover {
    background: rgba(181, 50, 31, 0.08);
    color: var(--palm-dark);
}

.rafv2-account-nav__count {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
    font-weight: 600;
    flex-shrink: 0;
}
.rafv2-account-nav__item.is-active .rafv2-account-nav__count { color: var(--mist); }
.rafv2-account-nav__badge {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--amber);
    background: rgba(232, 181, 71, 0.14);
    padding: 2px var(--s-8);
    border-radius: var(--r-pill);
    flex-shrink: 0;
}
.rafv2-account-nav__divider {
    height: 1px;
    background: var(--line-light);
    margin: var(--s-8) 0;
}

/* ---------- Stat tiles ---------- */
.rafv2-stat {
    display: flex;
    align-items: center;
    gap: var(--s-12);
    padding: var(--s-16);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--ink);
    height: 100%;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.rafv2-stat:hover {
    border-color: rgba(20, 18, 16, 0.22);
    transform: translateY(-2px);
    color: var(--ink);
}
.rafv2-stat__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory-dim);
    border-radius: var(--r-sm);
    color: var(--palm);
    font-size: var(--t-18);
    flex-shrink: 0;
}
.rafv2-stat__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rafv2-stat__value {
    font-family: var(--font-display);
    font-size: var(--t-21);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.015em;
    line-height: 1;
}
.rafv2-stat__label {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
    font-weight: 500;
}
.rafv2-stat--highlight { background: linear-gradient(135deg, var(--ink) 0%, #0E0C0A 100%); color: var(--ivory); border-color: var(--ink); }
.rafv2-stat--highlight:hover { color: var(--ivory); }
.rafv2-stat--highlight .rafv2-stat__icon { background: rgba(232, 181, 71, 0.14); color: var(--amber); }
.rafv2-stat--highlight .rafv2-stat__value { color: var(--amber); }
.rafv2-stat--highlight .rafv2-stat__label { color: var(--mist); }

/* ---------- Active order callout ---------- */
.rafv2-active-order {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: var(--s-20);
    padding: var(--s-20) var(--s-24);
    background: linear-gradient(135deg, var(--ivory-dim) 0%, var(--ivory) 100%);
    border: 1px solid var(--line-light);
    border-left: 4px solid var(--palm);
    border-radius: var(--r-md);
}
.rafv2-active-order__status { flex-shrink: 0; }
.rafv2-active-order__title {
    font-family: var(--font-display);
    font-size: var(--t-21);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 var(--s-4);
    line-height: 1.2;
}
.rafv2-active-order__title em { font-style: normal; color: var(--palm); }
.rafv2-active-order__meta {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
    margin: 0;
}
.rafv2-active-order__thumbs {
    display: flex;
    gap: -8px;
}
.rafv2-active-order__thumbs img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--ivory);
    margin-left: -12px;
}
.rafv2-active-order__thumbs img:first-child { margin-left: 0; }

/* ---------- Order list ---------- */
.rafv2-order-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rafv2-order-list > li {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: var(--s-16);
    padding: var(--s-16) var(--s-20);
    border-bottom: 1px solid var(--line-light);
    transition: background var(--dur) var(--ease);
}
.rafv2-order-list > li:last-child { border-bottom: 0; }
.rafv2-order-list > li:hover { background: var(--ivory-dim); }

.rafv2-order-list__thumbs {
    display: flex;
    gap: 2px;
    position: relative;
}
.rafv2-order-list__thumbs img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-light);
}
.rafv2-order-list__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 44px;
    background: var(--ivory-dim);
    border: 1px solid var(--line-light);
    border-radius: var(--r-sm);
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 700;
    color: var(--smoke);
    margin-left: 2px;
}
.rafv2-order-list__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rafv2-order-list__ref {
    font-family: var(--font-display);
    font-size: var(--t-14);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.005em;
}
.rafv2-order-list__meta {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
}
.rafv2-order-list__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

/* Status pills */
.rafv2-status-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--s-4);
    padding: 4px var(--s-12);
    border-radius: var(--r-pill);
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.rafv2-status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.rafv2-status-pill.is-transit { background: rgba(181, 50, 31, 0.1); color: var(--palm); }
.rafv2-status-pill.is-delivered { background: rgba(46, 125, 50, 0.1); color: #2E7D32; }
.rafv2-status-pill.is-processing { background: rgba(232, 181, 71, 0.14); color: #C8973A; }
.rafv2-status-pill.is-cancelled { background: var(--ivory-dim); color: var(--smoke); }

/* ---------- Address card ---------- */
.rafv2-address-card {
    position: relative;
    padding: var(--s-16);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}
.rafv2-address-card strong {
    font-family: var(--font-display);
    font-size: var(--t-16);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.rafv2-address-card__tag {
    position: absolute;
    top: var(--s-8);
    right: var(--s-8);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--amber);
    background: rgba(232, 181, 71, 0.14);
    padding: 2px var(--s-8);
    border-radius: var(--r-pill);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .rafv2-account-nav { position: static; }
    .rafv2-active-order {
        grid-template-columns: 1fr;
        gap: var(--s-12);
    }
    .rafv2-active-order__thumbs { justify-content: flex-start; }
    .rafv2-order-list > li {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "thumbs info"
            "status actions";
        gap: var(--s-12);
    }
    .rafv2-order-list__thumbs { grid-area: thumbs; }
    .rafv2-order-list__info { grid-area: info; }
    .rafv2-status-pill { grid-area: status; justify-self: start; }
    .rafv2-order-list__actions { grid-area: actions; flex-direction: row; }
}
@media (max-width: 576px) {
    .rafv2-account-welcome {
        flex-direction: column;
        text-align: center;
        padding: var(--s-20);
    }
    .rafv2-account-welcome__actions { display: none !important; }
    .rafv2-account-avatar { width: 56px; height: 56px; font-size: var(--t-28); }
    .rafv2-stat { padding: var(--s-12); }
    .rafv2-stat__value { font-size: var(--t-18); }
}

/* ================= ORDER TRACKING PAGE ================= */

/* ---------- Big current-status hero ---------- */
.rafv2-track-status {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--s-32);
    align-items: stretch;
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    overflow: hidden;
}
.rafv2-track-status__main {
    padding: var(--s-32);
}
.rafv2-track-status__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-8);
    padding: var(--s-4) var(--s-12);
    background: rgba(181, 50, 31, 0.08);
    color: var(--palm);
    border: 1px solid rgba(181, 50, 31, 0.2);
    border-radius: var(--r-pill);
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.rafv2-track-status__pulse {
    position: relative;
    display: inline-flex;
    width: 8px;
    height: 8px;
    background: var(--palm);
    border-radius: 50%;
    flex-shrink: 0;
}
.rafv2-track-status__pulse::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--palm);
    border-radius: 50%;
    animation: rafv2-pulse 1.6s var(--ease) infinite;
}
@keyframes rafv2-pulse {
    0% { transform: scale(1); opacity: 0.75; }
    100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .rafv2-track-status__pulse::before { animation: none; }
}

.rafv2-track-status__title {
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 30, "opsz" 72 !important;
    font-size: clamp(var(--t-28), 4vw, var(--t-49)) !important;
    font-weight: 500 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.025em !important;
    color: var(--ink);
    margin: var(--s-12) 0 var(--s-12);
}
.rafv2-track-status__title em {
    font-style: normal;
    color: var(--palm);
    font-variation-settings: "SOFT" 100, "opsz" 72;
}
.rafv2-track-status__sub {
    font-family: var(--font-ui);
    font-size: var(--t-16);
    line-height: 1.55;
    color: var(--smoke);
    margin: 0 0 var(--s-24);
    max-width: 46ch;
}

.rafv2-track-status__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-16);
    padding-top: var(--s-16);
    border-top: 1px solid var(--line-light);
}
.rafv2-track-meta-item { display: flex; flex-direction: column; gap: 2px; }
.rafv2-track-meta-item__label {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--smoke);
}
.rafv2-track-meta-item strong {
    font-family: var(--font-display);
    font-size: var(--t-16);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.rafv2-track-copy {
    background: transparent;
    border: 0;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--smoke);
    cursor: pointer;
    border-radius: var(--r-xs);
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.rafv2-track-copy:hover { color: var(--palm); background: var(--ivory-dim); }
.rafv2-track-copy.is-copied { color: var(--palm); }

/* Map side */
.rafv2-track-status__map {
    position: relative;
    background: var(--ivory-dim);
    overflow: hidden;
    min-height: 280px;
    isolation: isolate;
}
.rafv2-track-status__map svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.rafv2-track-status__map-label {
    position: absolute;
    bottom: var(--s-16);
    left: var(--s-16);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--s-8) var(--s-12);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-sm);
    box-shadow: 0 6px 16px rgba(20, 18, 16, 0.08);
    z-index: 2;
}
.rafv2-track-status__map-label strong {
    font-family: var(--font-display);
    font-size: var(--t-14);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.rafv2-track-status__map-label span {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--smoke);
}

/* ---------- Vertical detailed timeline ---------- */
.rafv2-track-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.rafv2-track-timeline::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 13px;
    width: 2px;
    background: var(--line-light);
}
.rafv2-track-timeline-step {
    position: relative;
    display: flex;
    gap: var(--s-16);
    padding-bottom: var(--s-24);
}
.rafv2-track-timeline-step:last-child { padding-bottom: 0; }

.rafv2-track-timeline-step__dot {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ivory);
    border: 2px solid var(--line-light);
    color: var(--smoke);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.rafv2-track-timeline-step.is-done .rafv2-track-timeline-step__dot {
    background: var(--palm);
    border-color: var(--palm);
    color: var(--ivory);
}
.rafv2-track-timeline-step.is-active .rafv2-track-timeline-step__dot {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--amber);
    box-shadow: 0 0 0 5px rgba(181, 50, 31, 0.14);
    animation: rafv2-dot-pulse 2s var(--ease) infinite;
}
@keyframes rafv2-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(181, 50, 31, 0.14); }
    50% { box-shadow: 0 0 0 10px rgba(181, 50, 31, 0.06); }
}
@media (prefers-reduced-motion: reduce) {
    .rafv2-track-timeline-step.is-active .rafv2-track-timeline-step__dot { animation: none; }
}

.rafv2-track-timeline-step__body {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.rafv2-track-timeline-step__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--s-12);
    flex-wrap: wrap;
    margin-bottom: var(--s-4);
}
.rafv2-track-timeline-step__head strong {
    font-family: var(--font-display);
    font-size: var(--t-16);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.rafv2-track-timeline-step:not(.is-done):not(.is-active) .rafv2-track-timeline-step__head strong {
    color: var(--smoke);
}
.rafv2-track-timeline-step__head span {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
    font-weight: 500;
}
.rafv2-track-timeline-step__body p {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    line-height: 1.55;
    color: var(--smoke);
    margin: 0;
}

/* ---------- Help cards ---------- */
.rafv2-help-card {
    display: flex;
    flex-direction: column;
    gap: var(--s-12);
    padding: var(--s-24);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--ink);
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
    height: 100%;
}
.rafv2-help-card:hover {
    border-color: rgba(20, 18, 16, 0.22);
    transform: translateY(-2px);
    color: var(--ink);
}
.rafv2-help-card__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory-dim);
    border-radius: var(--r-sm);
    color: var(--palm);
    font-size: var(--t-18);
}
.rafv2-help-card strong {
    font-family: var(--font-display);
    font-size: var(--t-18);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--ink);
}

/* ---------- Lookup form ---------- */
.rafv2-track-lookup {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--s-24);
    padding: var(--s-24);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    align-items: center;
}
.rafv2-track-lookup h3 {
    font-family: var(--font-display);
    font-size: var(--t-21);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: var(--s-8) 0 var(--s-4);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .rafv2-track-status { grid-template-columns: 1fr; }
    .rafv2-track-status__map { min-height: 220px; order: -1; }
    .rafv2-track-lookup { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .rafv2-track-status__main { padding: var(--s-20); }
    .rafv2-track-status__meta { grid-template-columns: 1fr; gap: var(--s-12); }
    .rafv2-track-timeline-step { padding-bottom: var(--s-20); }
}

/* ================= ORDER CONFIRMATION PAGE ================= */

/* ---------- Hero success block ---------- */
.rafv2-confirm-hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: var(--s-24) 0;
}
.rafv2-confirm-hero__check {
    width: 96px;
    height: 96px;
    margin: 0 auto var(--s-24);
    color: var(--palm);
}
.rafv2-confirm-hero__check svg {
    width: 100%;
    height: 100%;
}
.rafv2-check-circle {
    stroke-dasharray: 207;
    stroke-dashoffset: 207;
    animation: rafv2-draw-circle 600ms var(--ease) 100ms forwards;
    transform-origin: center;
    transform: rotate(-90deg);
}
.rafv2-check-tick {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: rafv2-draw-tick 320ms var(--ease) 600ms forwards;
}
@keyframes rafv2-draw-circle { to { stroke-dashoffset: 0; } }
@keyframes rafv2-draw-tick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
    .rafv2-check-circle, .rafv2-check-tick {
        animation: none;
        stroke-dashoffset: 0;
    }
}

.rafv2-confirm-hero__title {
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 30, "opsz" 72 !important;
    font-size: clamp(var(--t-37), 5vw, var(--t-65)) !important;
    font-weight: 500 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.03em !important;
    color: var(--ink);
    margin: var(--s-12) 0 var(--s-16);
}
.rafv2-confirm-hero__title em {
    font-style: normal;
    color: var(--palm);
    font-variation-settings: "SOFT" 100, "opsz" 72;
}
.rafv2-confirm-hero__sub {
    font-family: var(--font-ui);
    font-size: var(--t-18);
    line-height: 1.55;
    color: var(--smoke);
    margin: 0 auto var(--s-24);
    max-width: 56ch;
}

.rafv2-confirm-ref {
    display: inline-flex;
    align-items: center;
    gap: var(--s-16);
    padding: var(--s-16) var(--s-20);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    text-align: left;
    margin-bottom: var(--s-32);
}
.rafv2-confirm-ref__label {
    display: block;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--smoke);
    margin-bottom: 2px;
}
.rafv2-confirm-ref__code {
    font-family: var(--font-display);
    font-size: var(--t-18);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.rafv2-confirm-hero__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--s-12);
}

/* ---------- Timeline ---------- */
.rafv2-confirm-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    padding: var(--s-24);
    position: relative;
    overflow: hidden;
}
.rafv2-timeline-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-12);
    padding: 0 var(--s-16) 0 0;
}
.rafv2-timeline-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 36px;
    right: 0;
    height: 2px;
    background: var(--line-light);
    z-index: 0;
}
.rafv2-timeline-step.is-done:not(:last-child)::after { background: var(--palm); }

.rafv2-timeline-step__dot {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ivory);
    border: 2px solid var(--line-light);
    color: var(--smoke);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.rafv2-timeline-step.is-done .rafv2-timeline-step__dot {
    background: var(--palm);
    border-color: var(--palm);
    color: var(--ivory);
}
.rafv2-timeline-step.is-active .rafv2-timeline-step__dot {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--amber);
    box-shadow: 0 0 0 4px rgba(20, 18, 16, 0.08);
}
.rafv2-timeline-step__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rafv2-timeline-step__body strong {
    font-family: var(--font-display);
    font-size: var(--t-14);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.2;
}
.rafv2-timeline-step.is-done .rafv2-timeline-step__body strong,
.rafv2-timeline-step.is-active .rafv2-timeline-step__body strong { color: var(--ink); }
.rafv2-timeline-step:not(.is-done):not(.is-active) .rafv2-timeline-step__body strong { color: var(--smoke); }
.rafv2-timeline-step__body span {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
    line-height: 1.3;
}

/* ---------- Detail cards (delivery / payment / items) ---------- */
.rafv2-confirm-card {
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    overflow: hidden;
    height: 100%;
}
.rafv2-confirm-card__head {
    display: flex;
    align-items: center;
    gap: var(--s-12);
    padding: var(--s-16) var(--s-20);
    border-bottom: 1px solid var(--line-light);
    background: var(--ivory-dim);
}
.rafv2-confirm-card__head i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-sm);
    color: var(--palm);
    font-size: var(--t-16);
    flex-shrink: 0;
}
.rafv2-confirm-card__head h3 {
    font-family: var(--font-display);
    font-size: var(--t-18);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0;
}
.rafv2-confirm-card__body {
    padding: var(--s-20);
    font-family: var(--font-ui);
    font-size: var(--t-14);
    color: var(--ink);
    line-height: 1.6;
}
.rafv2-confirm-card__body address {
    font-style: normal;
    font-family: var(--font-ui);
    font-size: var(--t-14);
    line-height: 1.5;
    color: var(--ink);
}
.rafv2-confirm-card__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--s-12);
    padding: var(--s-8) 0;
    border-top: 1px solid var(--line-light);
    font-family: var(--font-ui);
    font-size: var(--t-14);
}
.rafv2-confirm-card__row > span:first-child { color: var(--smoke); }
.rafv2-confirm-card__row > strong {
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--ink);
    text-align: right;
}

/* ---------- Signup CTA ---------- */
.rafv2-confirm-signup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-32);
    align-items: center;
    padding: var(--s-32);
    background: linear-gradient(135deg, var(--ink) 0%, #0E0C0A 100%);
    color: var(--ivory);
    border-radius: var(--r-md);
}
.rafv2-confirm-signup__left h3 {
    font-family: var(--font-display);
    font-size: var(--t-28);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--ivory);
    margin: var(--s-12) 0 var(--s-12);
}
.rafv2-confirm-signup__left .afro-eyebrow {
    color: var(--amber) !important;
    border-bottom-color: rgba(232, 181, 71, 0.4) !important;
}
.rafv2-confirm-signup__left p {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    color: var(--mist);
    line-height: 1.55;
    margin: 0;
    max-width: 42ch;
}
.rafv2-confirm-signup__form .form-label { color: var(--ivory); }
.rafv2-confirm-signup__form .form-control {
    background: rgba(247, 242, 232, 0.06);
    border-color: var(--line-dark);
    color: var(--ivory);
}
.rafv2-confirm-signup__form .form-control::placeholder { color: var(--mist); }
.rafv2-confirm-signup__form .form-text { color: var(--mist); }

/* ---------- Founder note ---------- */
.rafv2-confirm-note {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: var(--s-32);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
}
.rafv2-confirm-note__quote {
    font-family: var(--font-display);
    font-variation-settings: "SOFT" 70, "opsz" 48;
    font-size: var(--t-21);
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: var(--s-20);
    padding-bottom: var(--s-20);
    border-bottom: 1px dashed var(--line-light);
}
.rafv2-confirm-note .raf-signoff { align-items: center; border: 0; padding: 0; }

/* ---------- Recipe cards (while you wait) ---------- */
.rafv2-recipe-card {
    display: flex;
    gap: var(--s-16);
    padding: var(--s-12);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--ink);
    height: 100%;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.rafv2-recipe-card:hover {
    border-color: rgba(20, 18, 16, 0.2);
    transform: translateY(-2px);
    color: var(--ink);
}
.rafv2-recipe-card img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: var(--r-sm);
    flex-shrink: 0;
}
.rafv2-recipe-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.rafv2-recipe-card__title {
    font-family: var(--font-display);
    font-size: var(--t-16);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .rafv2-confirm-timeline {
        grid-template-columns: 1fr;
        gap: var(--s-16);
        padding: var(--s-20);
    }
    .rafv2-timeline-step { padding-right: 0; }
    .rafv2-timeline-step:not(:last-child)::after {
        top: 36px;
        bottom: -16px;
        left: 13px;
        width: 2px;
        height: auto;
        right: auto;
    }
    .rafv2-confirm-signup {
        grid-template-columns: 1fr;
        gap: var(--s-20);
        padding: var(--s-24);
    }
}
@media (max-width: 576px) {
    .rafv2-confirm-hero__check { width: 72px; height: 72px; }
    .rafv2-confirm-ref {
        flex-direction: column;
        align-items: stretch;
        gap: var(--s-12);
        padding: var(--s-16);
    }
}

/* ================= CHECKOUT PAGE ================= */

/* ---------- Progress stepper ---------- */
.rafv2-steps {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.rafv2-step {
    display: flex;
    align-items: center;
    gap: var(--s-8);
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 500;
    color: var(--smoke);
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}
.rafv2-step:last-child {
    flex: 0 0 auto;
}
.rafv2-step:not(:last-child)::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--line-light);
    margin-left: var(--s-8);
    min-width: var(--s-16);
}
.rafv2-step__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ivory);
    border: 1.5px solid var(--line-light);
    color: var(--smoke);
    font-family: var(--font-display);
    font-size: var(--t-14);
    font-weight: 600;
    flex-shrink: 0;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rafv2-step__label { line-height: 1; }
.rafv2-step.is-done {
    color: var(--ink);
}
.rafv2-step.is-done .rafv2-step__dot {
    background: var(--palm);
    border-color: var(--palm);
    color: var(--ivory);
}
.rafv2-step.is-done:not(:last-child)::after { background: var(--palm); }
.rafv2-step.is-active {
    color: var(--ink);
    font-weight: 700;
}
.rafv2-step.is-active .rafv2-step__dot {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--ivory);
}

/* ---------- Section cards ---------- */
.rafv2-checkout-section {
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    padding: var(--s-24);
    margin-bottom: var(--s-16);
}
.rafv2-checkout-section__head {
    display: flex;
    align-items: center;
    gap: var(--s-12);
    margin-bottom: var(--s-20);
    padding-bottom: var(--s-16);
    border-bottom: 1px solid var(--line-light);
    flex-wrap: wrap;
}
.rafv2-checkout-section__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--ink);
    color: var(--ivory);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--t-16);
    flex-shrink: 0;
}
.rafv2-checkout-section__title {
    font-family: var(--font-display) !important;
    font-size: var(--t-21) !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
    color: var(--ink);
    margin: 0;
    flex: 1;
}
.rafv2-checkout-section__alt {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--s-4);
}

/* ---------- Delivery / payment method radio-cards ---------- */
.rafv2-method {
    display: flex;
    align-items: center;
    gap: var(--s-16);
    padding: var(--s-16) var(--s-20);
    background: var(--ivory);
    border: 1.5px solid var(--line-light);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
    position: relative;
}
.rafv2-method:hover { border-color: rgba(20, 18, 16, 0.22); }
.rafv2-method__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.rafv2-method::before {
    content: "";
    display: inline-flex;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--line-light);
    border-radius: 50%;
    background: var(--ivory);
    flex-shrink: 0;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.rafv2-method:has(.rafv2-method__input:checked) {
    border-color: var(--palm);
    background: rgba(181, 50, 31, 0.03);
}
.rafv2-method:has(.rafv2-method__input:checked)::before {
    border-color: var(--palm);
    background: radial-gradient(circle, var(--palm) 42%, var(--ivory) 46%);
}
.rafv2-method__body {
    display: flex;
    align-items: center;
    gap: var(--s-12);
    flex: 1;
    min-width: 0;
}
.rafv2-method__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--ivory-dim);
    border-radius: var(--r-sm);
    color: var(--palm);
    font-size: var(--t-18);
    flex-shrink: 0;
}
.rafv2-method__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rafv2-method__title {
    font-family: var(--font-display);
    font-size: var(--t-16);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.rafv2-method__meta {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
}
.rafv2-method__price {
    font-family: var(--font-display);
    font-size: var(--t-14);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.005em;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--s-4);
    text-align: right;
    white-space: nowrap;
}
.rafv2-method__price small { font-family: var(--font-ui); font-weight: 400; font-size: 11px; }

/* ---------- Card details form ---------- */
.rafv2-card-form {
    background: var(--ivory-dim);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    padding: var(--s-20);
}

/* ---------- Compact summary items ---------- */
.rafv2-summary-items {
    list-style: none;
    padding: var(--s-16) 0;
    margin: 0;
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    display: flex;
    flex-direction: column;
    gap: var(--s-12);
}
.rafv2-summary-items li {
    display: flex;
    align-items: center;
    gap: var(--s-12);
}
.rafv2-summary-items__thumb {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--ivory-dim);
    flex-shrink: 0;
}
.rafv2-summary-items__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rafv2-summary-items__qty {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--ivory);
    border-radius: 50%;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    border: 2px solid var(--ivory);
}
.rafv2-summary-items__info { flex: 1; min-width: 0; }
.rafv2-summary-items__name {
    display: block;
    font-family: var(--font-display);
    font-size: var(--t-14);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rafv2-summary-items__meta {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--smoke);
    margin-top: 2px;
}
.rafv2-summary-items__price {
    font-family: var(--font-display);
    font-size: var(--t-14);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.005em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .rafv2-step__label { display: none; }
    .rafv2-step { padding-right: var(--s-8); }
    .rafv2-step:not(:last-child)::after { width: 20px; }
    .rafv2-step.is-active .rafv2-step__label { display: inline; }
}
@media (max-width: 576px) {
    .rafv2-checkout-section { padding: var(--s-16); }
    .rafv2-method { padding: var(--s-12); gap: var(--s-8); }
    .rafv2-method__icon { width: 36px; height: 36px; }
    .rafv2-method__price { font-size: var(--t-12); }
}

/* ================= CART PAGE ================= */

.rafv2-cart-count {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 500;
    color: var(--smoke);
    letter-spacing: 0.01em;
    margin-left: var(--s-8);
}

/* Free delivery progress */
.rafv2-cart-progress {
    background: var(--ivory-dim);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    padding: var(--s-16) var(--s-20);
}
.rafv2-cart-progress__text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-8);
    margin-bottom: var(--s-12);
    font-family: var(--font-ui);
    font-size: var(--t-14);
    color: var(--ink);
}
.rafv2-cart-progress__text strong { font-weight: 600; }
.rafv2-cart-progress__bar {
    height: 8px;
    background: var(--ivory);
    border-radius: var(--r-pill);
    overflow: hidden;
    position: relative;
}
.rafv2-cart-progress__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--amber) 0%, var(--palm) 100%);
    border-radius: var(--r-pill);
    transition: width 420ms var(--ease);
}

/* Cart items list */
.rafv2-cart {
    display: flex;
    flex-direction: column;
    gap: var(--s-16);
}

.rafv2-cart-item {
    display: grid;
    grid-template-columns: 110px 1fr auto auto auto;
    align-items: center;
    gap: var(--s-16);
    padding: var(--s-16);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    transition: border-color var(--dur) var(--ease);
}
.rafv2-cart-item:hover { border-color: rgba(20, 18, 16, 0.18); }

.rafv2-cart-item__thumb {
    display: block;
    width: 110px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--r-sm);
    background: var(--ivory-dim);
}
.rafv2-cart-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 500ms var(--ease);
}
.rafv2-cart-item__thumb:hover img { transform: scale(1.05); }

.rafv2-cart-item__info { min-width: 0; }
.rafv2-cart-item__name {
    display: block;
    font-family: var(--font-display);
    font-size: var(--t-16);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin-bottom: var(--s-4);
    text-decoration: none;
}
.rafv2-cart-item__name:hover { color: var(--palm); }
.rafv2-cart-item__meta {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
    margin-bottom: var(--s-8);
}
.rafv2-cart-item__note {
    display: flex;
    align-items: center;
    gap: var(--s-8);
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
}
.rafv2-cart-item__note i {
    color: var(--palm);
    font-size: 0.9rem;
}

.rafv2-cart-item__qty { flex-shrink: 0; }
.rafv2-qty--sm .rafv2-qty__btn { flex: 0 0 36px; width: 36px; height: 40px; font-size: 1rem; }
.rafv2-qty--sm .rafv2-qty__input {
    flex: 0 0 56px;
    width: 56px;
    height: 40px;
    font-size: var(--t-14);
    font-family: var(--font-ui) !important;
}

.rafv2-cart-item__price { text-align: right; min-width: 90px; }
.rafv2-cart-item__price-now {
    font-family: var(--font-display);
    font-size: var(--t-18);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.015em;
    line-height: 1;
}
.rafv2-cart-item__price-old {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
    text-decoration: line-through;
    margin-top: 2px;
}
.rafv2-cart-item__price-unit {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
    margin-top: 2px;
}

.rafv2-cart-item__actions {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    align-items: flex-end;
}
.rafv2-cart-item__action {
    display: inline-flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-8);
    background: transparent;
    border: 0;
    color: var(--smoke);
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--r-sm);
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.rafv2-cart-item__action:hover { color: var(--ink); background: var(--ivory-dim); }
.rafv2-cart-item__action--remove:hover { color: var(--palm); }

/* Note textarea */
.rafv2-cart-note {
    padding: var(--s-16) var(--s-20);
    background: var(--ivory-dim);
    border-radius: var(--r-md);
}

/* ---------- Order summary panel ---------- */
.rafv2-summary {
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    padding: var(--s-24);
    position: sticky;
    top: var(--s-24);
}

.rafv2-summary__title {
    font-family: var(--font-display);
    font-size: var(--t-21);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 var(--s-20);
    padding-bottom: var(--s-16);
    border-bottom: 1px solid var(--line-light);
}

.rafv2-summary__list {
    list-style: none;
    padding: 0;
    margin: var(--s-20) 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-12);
}
.rafv2-summary__list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--s-16);
    font-family: var(--font-ui);
    font-size: var(--t-14);
    color: var(--ink);
}
.rafv2-summary__list li > span:first-of-type { color: var(--ink); font-weight: 500; }
.rafv2-summary__list li > span:last-of-type { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

.rafv2-summary__total {
    padding-top: var(--s-16);
    border-top: 1px solid var(--line-light);
    margin-top: var(--s-4);
}
.rafv2-summary__total strong {
    font-family: var(--font-display);
    font-size: var(--t-21);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.rafv2-summary__trust {
    list-style: none;
    padding: var(--s-16) 0 0;
    margin: var(--s-16) 0 0;
    border-top: 1px solid var(--line-light);
    display: flex;
    flex-direction: column;
    gap: var(--s-8);
}
.rafv2-summary__trust li {
    display: flex;
    align-items: center;
    gap: var(--s-8);
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
}
.rafv2-summary__trust i {
    color: var(--palm);
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}

.rafv2-summary__payments {
    display: flex;
    flex-direction: column;
    gap: var(--s-8);
    padding-top: var(--s-16);
    margin-top: var(--s-16);
    border-top: 1px solid var(--line-light);
}
.rafv2-summary__payments img {
    height: 22px;
    width: auto;
    opacity: 0.85;
}

/* ---------- Empty cart state ---------- */
.rafv2-cart-empty {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    padding: var(--s-48) var(--s-16);
}
.rafv2-cart-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: var(--ivory-dim);
    border-radius: 50%;
    margin: 0 auto var(--s-24);
}
.rafv2-cart-empty__icon i {
    font-size: 2.4rem;
    color: var(--smoke);
}
.rafv2-cart-empty__title {
    font-family: var(--font-display);
    font-size: var(--t-37);
    font-weight: 500;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: var(--s-12);
}
.rafv2-cart-empty__sub {
    font-family: var(--font-ui);
    font-size: var(--t-16);
    color: var(--smoke);
    line-height: 1.55;
    margin-bottom: var(--s-24);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .rafv2-cart-item {
        grid-template-columns: 100px 1fr auto;
        grid-template-areas:
            "thumb info price"
            "thumb qty   actions";
        gap: var(--s-12);
    }
    .rafv2-cart-item__thumb { grid-area: thumb; }
    .rafv2-cart-item__info  { grid-area: info; }
    .rafv2-cart-item__qty   { grid-area: qty; justify-self: start; }
    .rafv2-cart-item__price { grid-area: price; }
    .rafv2-cart-item__actions {
        grid-area: actions;
        flex-direction: row;
        align-items: center;
    }
    .rafv2-summary { position: static; }
}

@media (max-width: 576px) {
    .rafv2-cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-areas:
            "thumb info"
            "qty   price"
            "actions actions";
        padding: var(--s-12);
    }
    .rafv2-cart-item__thumb { width: 80px; }
    .rafv2-cart-item__price { text-align: left; }
    .rafv2-cart-item__actions { justify-content: space-between; margin-top: var(--s-8); border-top: 1px solid var(--line-light); padding-top: var(--s-8); }
}

/* ================= PRODUCT DETAIL PAGE ================= */

/* ---------- Image gallery (Swiper) ---------- */
.rafv2-pdp-gallery { position: relative; }
.rafv2-pdp-main {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--ivory-dim);
    margin-bottom: var(--s-12);
}
.rafv2-pdp-main .swiper-slide {
    aspect-ratio: 6 / 5;
}
.rafv2-pdp-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rafv2-pdp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 242, 232, 0.92);
    border: 1px solid var(--line-light);
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    z-index: 5;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.rafv2-pdp-nav:hover { background: var(--ink); color: var(--ivory); }
.rafv2-pdp-nav--prev { left: var(--s-16); }
.rafv2-pdp-nav--next { right: var(--s-16); }

.rafv2-pdp-stamp {
    position: absolute;
    top: var(--s-16);
    right: var(--s-16);
    width: 100px;
    height: 100px;
    color: var(--palm);
    opacity: 0.95;
    transform: rotate(-6deg);
    pointer-events: none;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 1px 0 rgba(20, 18, 16, 0.15));
    z-index: 4;
}
.rafv2-pdp-stamp svg { width: 100%; height: 100%; }

.rafv2-pdp-thumbs .swiper-slide {
    cursor: pointer;
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.55;
    transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
    aspect-ratio: 1 / 1;
}
.rafv2-pdp-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rafv2-pdp-thumbs .swiper-slide:hover { opacity: 0.85; }
.rafv2-pdp-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--ink);
}

/* ---------- Info panel ---------- */
.rafv2-pdp-info { padding-top: var(--s-8); }

.rafv2-pdp-title {
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 30, "opsz" 72 !important;
    font-size: clamp(var(--t-28), 4vw, var(--t-49)) !important;
    font-weight: 500 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.025em !important;
    color: var(--ink) !important;
    margin: 0 0 var(--s-12) !important;
}
.rafv2-pdp-subtitle {
    font-family: var(--font-ui);
    font-size: var(--t-16);
    line-height: 1.55;
    color: var(--smoke);
    margin: 0 0 var(--s-16);
    max-width: 48ch;
}
.rafv2-pdp-label {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.005em;
}

.rafv2-pdp-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--s-12);
    padding-top: var(--s-16);
    border-top: 1px solid var(--line-light);
}
.rafv2-pdp-price__now {
    font-family: var(--font-display);
    font-variation-settings: "SOFT" 50, "opsz" 72;
    font-size: var(--t-37);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink);
    line-height: 1;
}
.rafv2-pdp-price__old {
    font-family: var(--font-ui);
    font-size: var(--t-18);
    color: var(--smoke);
    text-decoration: line-through;
    font-weight: 500;
}
.rafv2-pdp-price__save {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 700;
    color: var(--palm);
    background: rgba(181, 50, 31, 0.08);
    padding: 4px var(--s-8);
    border-radius: var(--r-xs);
    letter-spacing: 0.01em;
}

/* Variation options */
.rafv2-opt {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--s-8) var(--s-16);
    min-width: 92px;
    background: var(--ivory);
    border: 1.5px solid var(--line-light);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
    font-family: var(--font-ui);
}
.rafv2-opt:hover:not(.rafv2-opt--disabled) {
    border-color: rgba(20, 18, 16, 0.3);
    transform: translateY(-1px);
}
.rafv2-opt.is-selected {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--ivory);
}
.rafv2-opt.is-selected .rafv2-opt__price { color: var(--mist); }
.rafv2-opt__label {
    font-size: var(--t-14);
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1.1;
}
.rafv2-opt__price {
    font-size: var(--t-12);
    font-weight: 500;
    color: var(--smoke);
    line-height: 1.1;
}
.rafv2-opt--disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Qty stepper */
.rafv2-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--line-light);
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--ivory);
}
.rafv2-qty__btn {
    width: 48px;
    height: 54px;
    background: transparent;
    border: 0;
    font-size: 1.2rem;
    color: var(--ink);
    cursor: pointer;
    transition: background var(--dur) var(--ease);
}
.rafv2-qty__btn:hover:not(:disabled) { background: var(--ivory-dim); }
.rafv2-qty__btn:disabled { opacity: .35; cursor: not-allowed; }
.rafv2-qty__input {
    width: 48px;
    height: 54px;
    border: 0;
    border-left: 1px solid var(--line-light);
    border-right: 1px solid var(--line-light);
    text-align: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--t-16);
    color: var(--ink);
    background: transparent;
    outline: none;
    -moz-appearance: textfield;
}
.rafv2-qty__input::-webkit-outer-spin-button,
.rafv2-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Delivery note */
.rafv2-pdp-delivery {
    display: flex;
    gap: var(--s-12);
    align-items: flex-start;
    padding: var(--s-12) var(--s-16);
    background: var(--ivory-dim);
    border-radius: var(--r-sm);
    border-left: 3px solid var(--palm);
}
.rafv2-pdp-delivery i {
    color: var(--palm);
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.rafv2-pdp-delivery strong {
    display: block;
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
}
.rafv2-pdp-delivery span {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
    display: block;
    margin-top: 2px;
}

/* Trust mini-strip */
.rafv2-pdp-trust { display: flex; flex-direction: column; gap: var(--s-8); padding: 0; margin: 0; }
.rafv2-pdp-trust li {
    display: flex;
    align-items: center;
    gap: var(--s-12);
    font-family: var(--font-ui);
    font-size: var(--t-14);
    color: var(--smoke);
}
.rafv2-pdp-trust i {
    color: var(--palm);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ---------- Tabs ---------- */
.rafv2-tabs.nav-tabs {
    border-bottom: 1px solid var(--line-light);
    gap: var(--s-8);
    flex-wrap: wrap;
}
.rafv2-tabs .nav-link {
    font-family: var(--font-ui) !important;
    font-size: var(--t-14) !important;
    font-weight: 600 !important;
    color: var(--smoke) !important;
    padding: var(--s-12) var(--s-16) !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    letter-spacing: -0.005em;
    background: transparent !important;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rafv2-tabs .nav-link:hover { color: var(--ink) !important; }
.rafv2-tabs .nav-link.active {
    color: var(--ink) !important;
    border-bottom-color: var(--palm) !important;
}

/* Description callouts */
.rafv2-pdp-callouts {
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    padding: var(--s-20);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-16);
}
.rafv2-pdp-callout {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rafv2-pdp-callout__label {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--smoke);
}
.rafv2-pdp-callout__value {
    font-family: var(--font-display);
    font-size: var(--t-16);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* Nutrition table */
.rafv2-nutri { font-family: var(--font-ui); font-size: var(--t-14); }
.rafv2-nutri th {
    font-weight: 500;
    color: var(--ink);
    text-align: left;
    width: 50%;
}
.rafv2-nutri td {
    text-align: right;
    font-weight: 600;
    color: var(--ink);
    font-family: var(--font-display);
    letter-spacing: -0.005em;
}

/* How to use cards */
.rafv2-use-card {
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    padding: var(--s-24);
    height: 100%;
}
.rafv2-use-card__num {
    font-family: var(--font-display);
    font-variation-settings: "SOFT" 100, "opsz" 72;
    font-size: var(--t-37);
    font-weight: 500;
    color: var(--palm);
    line-height: 1;
    display: block;
    margin-bottom: var(--s-12);
    letter-spacing: -0.02em;
}
.rafv2-use-card h4 {
    font-family: var(--font-display);
    font-size: var(--t-18);
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 var(--s-8);
    color: var(--ink);
}
.rafv2-use-card p {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    line-height: 1.6;
    color: var(--smoke);
    margin: 0;
}

/* Review summary */
.rafv2-review-summary {
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    padding: var(--s-24);
}
.rafv2-review-summary__big {
    font-family: var(--font-display);
    font-size: var(--t-65);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: var(--s-8);
}
.rafv2-review-bars {
    display: flex;
    flex-direction: column;
    gap: var(--s-8);
    margin-top: var(--s-16);
}
.rafv2-review-bar {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    gap: var(--s-12);
    align-items: center;
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
}
.rafv2-review-bar__track {
    height: 6px;
    background: var(--ivory-dim);
    border-radius: var(--r-pill);
    overflow: hidden;
}
.rafv2-review-bar__track span {
    display: block;
    height: 100%;
    background: var(--amber);
    border-radius: var(--r-pill);
}

/* Individual review card */
.rafv2-review {
    padding: var(--s-20) 0;
    border-bottom: 1px solid var(--line-light);
}
.rafv2-review:last-of-type { border-bottom: 0; margin-bottom: var(--s-16); }
.rafv2-review__head {
    display: flex;
    align-items: center;
    gap: var(--s-12);
    margin-bottom: var(--s-12);
}
.rafv2-review__av {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--ivory);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: var(--t-18);
    font-weight: 600;
    flex-shrink: 0;
}
.rafv2-review__head > div:not(.rafv2-review__av) { flex: 1; }
.rafv2-review__head strong {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 600;
    color: var(--ink);
}
.rafv2-review__head .rafv2-stars { font-size: 0.95rem; margin-left: auto; }
.rafv2-review__title {
    font-family: var(--font-display);
    font-size: var(--t-18);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 var(--s-8);
}
.rafv2-review__body {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    line-height: 1.65;
    color: var(--ink);
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .rafv2-pdp-stamp { width: 72px; height: 72px; top: var(--s-12); right: var(--s-12); }
    .rafv2-pdp-price__now { font-size: var(--t-28); }
    .rafv2-pdp-callouts { grid-template-columns: 1fr; gap: var(--s-12); }
}
@media (max-width: 576px) {
    .rafv2-pdp-main .swiper-slide { aspect-ratio: 3 / 2; }
    .rafv2-pdp-nav { width: 36px; height: 36px; }
    .rafv2-opt { min-width: 76px; padding: var(--s-8) var(--s-12); }
    .rafv2-review-summary__big { font-size: var(--t-49); }
}

/* ---------- Search results — filters sidebar & chips ---------- */
.rafv2-filter {
    padding: var(--s-20) 0;
    border-bottom: 1px solid var(--line-light);
}
.rafv2-filter:first-of-type { padding-top: 0; }
.rafv2-filter:last-of-type { border-bottom: 0; padding-bottom: 0; }

.rafv2-filter__title {
    font-family: var(--font-display);
    font-size: var(--t-16);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 var(--s-16);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rafv2-filter__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-8);
}
.rafv2-filter__list .form-check { padding-left: 1.75em; margin: 0; }
.rafv2-filter__list .form-check-input { margin-left: -1.75em; }
.rafv2-filter__list .form-check-label {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.rafv2-filter__count {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 500;
    color: var(--smoke);
    margin-left: auto;
    padding-left: var(--s-8);
}
.rafv2-stars {
    color: var(--amber);
    letter-spacing: 2px;
    font-size: 0.95rem;
}

/* Filter chip (removable active filter / price presets) */
.rafv2-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--s-4);
    padding: 5px var(--s-12);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-pill);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 600;
    letter-spacing: -0.005em;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.rafv2-chip i { font-size: 0.75rem; color: var(--smoke); transition: color var(--dur) var(--ease); }
.rafv2-chip:hover {
    background: var(--ink);
    color: var(--ivory);
    border-color: var(--ink);
}
.rafv2-chip:hover i { color: var(--ivory); }
.rafv2-chip.is-active {
    background: var(--ink);
    color: var(--ivory);
    border-color: var(--ink);
}
.rafv2-chip--xs {
    font-size: 11px;
    padding: 3px var(--s-8);
}

/* ---------- Search autocomplete panel ---------- */
.rafv2-search { position: relative; }

.rafv2-ac {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    box-shadow: 0 24px 50px rgba(20, 18, 16, 0.14), 0 3px 12px rgba(20, 18, 16, 0.06);
    padding: var(--s-8);
    max-height: 540px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0s linear 160ms;
    z-index: 65;
    text-align: left;
}
.rafv2-ac.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0s;
}
.rafv2-ac::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.rafv2-ac__section-head {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    color: var(--smoke);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: var(--s-12) var(--s-12) var(--s-4);
}

.rafv2-ac__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-8) var(--s-12);
    list-style: none;
    margin: 0;
}
.rafv2-ac__chips li { margin: 0; }
.rafv2-ac__chips a {
    display: inline-flex;
    align-items: center;
    padding: 5px var(--s-12);
    background: var(--ivory-dim);
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 500;
    letter-spacing: -0.005em;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rafv2-ac__chips a:hover,
.rafv2-ac__chips a.is-active {
    background: var(--ink);
    color: var(--ivory);
}

.rafv2-ac__links,
.rafv2-ac__suggestions,
.rafv2-ac__products {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--s-4);
}

.rafv2-ac__links a,
.rafv2-ac__suggestions a {
    display: flex;
    align-items: center;
    gap: var(--s-12);
    padding: var(--s-10, 10px) var(--s-12);
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 500;
    letter-spacing: -0.005em;
    border-radius: var(--r-sm);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.rafv2-ac__links a:hover,
.rafv2-ac__links a.is-active,
.rafv2-ac__suggestions a:hover,
.rafv2-ac__suggestions a.is-active {
    background: var(--ivory-dim);
    color: var(--palm);
}
.rafv2-ac__links i,
.rafv2-ac__suggestions i {
    width: 20px;
    color: var(--smoke);
    font-size: 1rem;
    text-align: center;
    flex-shrink: 0;
}
.rafv2-ac__links a > span:first-of-type,
.rafv2-ac__suggestions a > span:first-of-type { flex: 1; }
.rafv2-ac__count {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
    font-weight: 500;
}

.rafv2-ac__product {
    display: flex;
    align-items: center;
    gap: var(--s-12);
    padding: var(--s-8) var(--s-12);
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--r-sm);
    transition: background var(--dur) var(--ease);
}
.rafv2-ac__product:hover,
.rafv2-ac__product.is-active { background: var(--ivory-dim); }

.rafv2-ac__product img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--r-sm);
    flex-shrink: 0;
}
.rafv2-ac__product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rafv2-ac__product-name {
    font-family: var(--font-display);
    font-size: var(--t-14);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rafv2-ac__product-meta {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
    font-weight: 500;
}
.rafv2-ac__product-price {
    font-family: var(--font-display);
    font-size: var(--t-14);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.rafv2-ac__see-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-8);
    padding: var(--s-12);
    margin-top: var(--s-8);
    background: var(--ink);
    color: var(--ivory);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 600;
    letter-spacing: -0.005em;
    border-radius: var(--r-sm);
    transition: background var(--dur) var(--ease);
}
.rafv2-ac__see-all:hover {
    background: var(--palm);
    color: var(--ivory);
}
.rafv2-ac__see-all i {
    font-size: 0.9rem;
    transition: transform var(--dur) var(--ease);
}
.rafv2-ac__see-all:hover i { transform: translateX(3px); }

.rafv2-ac__empty-msg {
    padding: var(--s-24) var(--s-16);
    text-align: center;
    font-family: var(--font-ui);
    font-size: var(--t-14);
    color: var(--smoke);
    list-style: none;
}

/* Highlighted matching substring */
.rafv2-ac__hl {
    color: var(--palm);
    font-weight: 700;
}

@media (max-width: 720px) {
    .rafv2-ac { max-height: 60vh; }
    .rafv2-ac__product-name { font-size: var(--t-14); }
}

/* ---------- Account hover-dropdown (desktop only) ---------- */
.rafv2-tool-wrap {
    position: relative;
    display: inline-flex;
}
.rafv2-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 240px;
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    box-shadow: 0 22px 44px rgba(20, 18, 16, 0.14), 0 3px 10px rgba(20, 18, 16, 0.06);
    padding: var(--s-8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms;
    z-index: 80;
}
/* Invisible bridge so a slow hover between tool → menu doesn't close it */
.rafv2-menu::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}
.rafv2-tool-wrap:hover .rafv2-menu,
.rafv2-tool-wrap:focus-within .rafv2-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s;
}

.rafv2-menu__head {
    padding: var(--s-12) var(--s-16) var(--s-16);
    border-bottom: 1px solid var(--line-light);
    margin-bottom: var(--s-8);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rafv2-menu__head-hint {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.rafv2-menu__head-name {
    font-family: var(--font-display);
    font-size: var(--t-16);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.2;
}

.rafv2-menu__item {
    display: flex;
    align-items: center;
    gap: var(--s-12);
    padding: var(--s-12) var(--s-16);
    border-radius: var(--r-sm);
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 500;
    letter-spacing: -0.005em;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.rafv2-menu__item i {
    width: 20px;
    text-align: center;
    color: var(--smoke);
    font-size: 1rem;
    transition: color var(--dur) var(--ease);
}
.rafv2-menu__item:hover {
    background: var(--ivory-dim);
    color: var(--palm);
}
.rafv2-menu__item:hover i { color: var(--palm); }

.rafv2-menu__divider {
    height: 1px;
    background: var(--line-light);
    margin: var(--s-8) var(--s-4);
}

.rafv2-menu__item--danger { color: var(--palm); }
.rafv2-menu__item--danger i { color: var(--palm); }
.rafv2-menu__item--danger:hover {
    background: rgba(181, 50, 31, 0.08);
    color: var(--palm-dark);
}

/* Mobile/tablet — hide the whole wrapper (account tool is hidden on these breakpoints anyway) */
@media (max-width: 1024px) {
    .rafv2-tool-wrap { display: none; }
}

/* Burger — hidden on desktop, shown on mobile */
.rafv2-burger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line-dark);
    border-radius: var(--r-sm);
    color: var(--ivory);
    cursor: pointer;
    transition: background var(--dur) var(--ease);
}
.rafv2-burger:hover { background: rgba(247, 242, 232, 0.06); }

/* Category strip under the header */
.rafv2-catbar {
    background: var(--ivory);
    border-bottom: 1px solid var(--line-light);
    overflow-x: auto;
    scrollbar-width: none;
}
.rafv2-catbar::-webkit-scrollbar { display: none; }
.rafv2-catbar__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-12) var(--s-24);
    white-space: nowrap;
}
.rafv2-catbar a {
    display: inline-flex;
    align-items: center;
    gap: var(--s-8);
    padding: var(--s-8) var(--s-16);
    border-radius: var(--r-pill);
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 500;
    letter-spacing: -0.005em;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.rafv2-catbar a:hover { background: var(--ivory-dim); }
.rafv2-catbar a.is-active {
    background: var(--ink);
    color: var(--ivory);
}
.rafv2-catbar a.rafv2-catbar__all {
    background: var(--palm);
    color: var(--ivory);
}
.rafv2-catbar a.rafv2-catbar__all:hover { background: var(--palm-dark); }

/* =========================================================
   HERO
   ========================================================= */

.rafv2-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--ink);
}
.rafv2-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Dim the background so content on top is cleaner.
       Tune 0.4 (darker) ↔ 0.8 (brighter) to taste. */
    opacity: 0.55;
}
/* Scrim — two-stop ink gradient from bottom.
   NOT a flat gradient wash; weighted so content sits in deep tint. */
.rafv2-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(20, 18, 16, 0.25) 0%,
            rgba(20, 18, 16, 0.55) 45%,
            rgba(20, 18, 16, 0.88) 100%);
}
/* Grain overlay — subtle film texture via SVG noise */
.rafv2-hero__grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.18;
    pointer-events: none;
    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.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 200px 200px;
}
.rafv2-hero__content {
    position: relative;
    z-index: 3;
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--s-96) var(--s-24) var(--s-64);
    width: 100%;
    color: var(--ivory);
}
.rafv2-hero__eyebrow {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--amber);
    margin-bottom: var(--s-16);
    padding-bottom: var(--s-8);
    border-bottom: 1px solid rgba(232, 181, 71, 0.4);
}
.rafv2-hero__title {
    font-family: var(--font-display);
    font-variation-settings: "SOFT" 30, "opsz" 144;
    font-weight: 500;
    font-size: clamp(var(--t-49), 7vw, var(--t-86));
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--ivory);
    max-width: 20ch;
    margin: 0 0 var(--s-24);
}
.rafv2-hero__lead {
    font-family: var(--font-ui);
    font-size: var(--t-18);
    line-height: 1.55;
    color: var(--ivory);
    opacity: 0.88;
    max-width: 56ch;
    margin: 0 0 var(--s-32);
}
.rafv2-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-12);
    margin-bottom: var(--s-48);
}

.rafv2-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s-8);
    padding: var(--s-16) var(--s-24);
    border-radius: var(--r-sm);
    font-family: var(--font-ui);
    font-size: var(--t-16);
    font-weight: 600;
    letter-spacing: -0.005em;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.rafv2-btn--primary {
    background: var(--palm);
    color: var(--ivory);
}
.rafv2-btn--primary:hover {
    background: var(--palm-dark);
    color: var(--ivory);
    transform: translateY(-1px);
}
.rafv2-btn--ghost {
    background: transparent;
    color: var(--ivory);
    border-color: rgba(247, 242, 232, 0.4);
}
.rafv2-btn--ghost:hover {
    background: var(--ivory);
    color: var(--ink);
    border-color: var(--ivory);
}

/* Hero trust strip */
.rafv2-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-20);
    padding-top: var(--s-20);
    border-top: 1px solid rgba(247, 242, 232, 0.15);
}
.rafv2-hero__trust-item {
    display: inline-flex;
    align-items: center;
    gap: var(--s-8);
    color: var(--ivory);
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 500;
    opacity: 0.92;
}
.rafv2-hero__trust-item i { color: var(--amber); font-size: var(--t-18); }

/* =========================================================
   MOBILE DRAWER — full-screen takeover
   ========================================================= */

.rafv2-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--ink);
    color: var(--ivory);
    transform: translateX(100%);
    transition: transform 320ms var(--ease);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.rafv2-drawer.is-open { transform: translateX(0); }

.rafv2-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-16) var(--s-24);
    border-bottom: 1px solid var(--line-dark);
}
.rafv2-drawer__close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line-dark);
    border-radius: var(--r-sm);
    color: var(--ivory);
    cursor: pointer;
    font-size: var(--t-21);
}

.rafv2-drawer__body { padding: var(--s-24); }

.rafv2-drawer__eyebrow {
    display: block;
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--mist);
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: var(--s-16);
}

.rafv2-drawer__cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-12);
    margin-bottom: var(--s-32);
}
.rafv2-drawer__cat {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--r-md);
    aspect-ratio: 1 / 1;
    text-decoration: none;
    color: var(--ivory);
    background: var(--line-dark);
}
.rafv2-drawer__cat img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms var(--ease);
}
.rafv2-drawer__cat:hover img { transform: scale(1.06); }
.rafv2-drawer__cat::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 18, 16, 0.1) 40%, rgba(20, 18, 16, 0.85) 100%);
}
.rafv2-drawer__cat-text {
    position: absolute;
    bottom: var(--s-12);
    left: var(--s-12);
    right: var(--s-12);
    z-index: 2;
}
.rafv2-drawer__cat-name {
    display: block;
    font-family: var(--font-display);
    font-size: var(--t-18);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: var(--s-4);
}
.rafv2-drawer__cat-count {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 500;
    color: var(--mist);
}

.rafv2-drawer__links {
    display: grid;
    gap: var(--s-4);
    margin-bottom: var(--s-32);
}
.rafv2-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-16) var(--s-16);
    color: var(--ivory);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: var(--t-16);
    font-weight: 500;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-dark);
}
.rafv2-drawer__link:hover { background: rgba(247, 242, 232, 0.04); }

.rafv2-drawer__footer {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--mist);
    padding-top: var(--s-16);
    border-top: 1px solid var(--line-dark);
}

/* Backdrop for drawer (optional, when open) */
.rafv2-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 16, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
    z-index: 80;
}
.rafv2-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--dur) var(--ease), visibility 0s;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
    .rafv2-header__inner {
        grid-template-columns: auto 1fr auto;
        gap: var(--s-16);
        padding: var(--s-12) var(--s-20);
    }
    .rafv2-header__inner--no-search {
        grid-template-columns: auto auto;
    }
    .rafv2-tools { gap: var(--s-12); }
    .rafv2-tool__stack { display: none; }
    .rafv2-tool:not(.rafv2-tool--cart):not(.rafv2-tool--wishlist) { display: none; }
    .rafv2-burger { display: inline-flex; }
    .rafv2-hero__content { padding: var(--s-64) var(--s-20) var(--s-48); }
}

/* Mobile */
@media (max-width: 720px) {
    .rafv2-header__inner {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "brand tools"
            "search search";
        row-gap: var(--s-12);
        padding: var(--s-12) var(--s-16);
    }
    .rafv2-header__inner--no-search {
        grid-template-columns: auto auto;
        grid-template-areas: "brand tools";
        row-gap: 0;
    }
    .rafv2-brand { grid-area: brand; }
    .rafv2-tools { grid-area: tools; justify-content: flex-end; }
    .rafv2-search { grid-area: search; max-width: none; margin: 0; }

    .rafv2-brand__mark { font-size: var(--t-28); }
    .rafv2-brand__name { font-size: var(--t-18); }
    .rafv2-brand__sub { display: none; }

    .rafv2-search__submit {
        padding: var(--s-8) var(--s-12);
        font-size: var(--t-12);
    }

    .rafv2-catbar { display: none; }

    .rafv2-hero { min-height: 86vh; }
    .rafv2-hero__content { padding: var(--s-48) var(--s-16) var(--s-32); }
    .rafv2-hero__eyebrow { font-size: var(--t-12); }
    .rafv2-hero__title { max-width: 16ch; }
    .rafv2-hero__lead { font-size: var(--t-16); }

    .rafv2-btn { padding: var(--s-12) var(--s-20); font-size: var(--t-14); }
    .rafv2-hero__cta { gap: var(--s-8); }

    .rafv2-drawer__cats { grid-template-columns: repeat(2, 1fr); }
    .rafv2-drawer__cat-name { font-size: var(--t-16); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .rafv2-hero__video { display: none; }
    .rafv2-hero { background: var(--ink); }
    .rafv2-drawer, .rafv2-drawer__cat img, .rafv2-btn { transition: none; }
}

/* =========================================================
   LEGACY CLASS EXTENSIONS — apply v2 tokens to the rest
   of the page without touching markup.
   ========================================================= */

/* Announcement bar — thin, confident, ivory on ink */
.afro-announcement {
    background: var(--ink) !important;
    color: var(--ivory) !important;
    border-top: 1px solid var(--line-dark) !important;
    border-bottom: 1px solid var(--line-dark) !important;
    font-family: var(--font-ui) !important;
    font-size: var(--t-12) !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    padding: var(--s-8) 0 !important;
}
.afro-announcement b { color: var(--amber) !important; font-weight: 700 !important; }
.afro-announcement i {
    color: var(--mist) !important;
    padding: 0 var(--s-16) !important;
}

/* Container width + side gutters, consistent with header */
.afro-container {
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding-left: var(--s-24) !important;
    padding-right: var(--s-24) !important;
}

/* Section rhythm */
.afro-section {
    padding-top: var(--s-96) !important;
    padding-bottom: var(--s-96) !important;
    background: var(--ivory);
}
.afro-section.cream { background: var(--ivory-dim); }
.afro-section.off {
    background: var(--ink);
    color: var(--ivory);
}
.afro-section.off .afro-title,
.afro-section.off h2,
.afro-section.off h3,
.afro-section.off h4 { color: var(--ivory) !important; }
.afro-section.off .afro-sub { color: var(--mist) !important; }

/* Section heads — restrained, one eyebrow, no caps, no middle-dots */
.afro-section-head,
.raf-section-head-row {
    margin-bottom: var(--s-48) !important;
    text-align: center !important;
    max-width: 760px;
}
.afro-eyebrow,
.afro-section-head .eyebrow {
    display: inline-block !important;
    font-family: var(--font-ui) !important;
    font-size: var(--t-14) !important;
    font-weight: 500 !important;
    letter-spacing: 0.015em !important;
    color: var(--palm) !important;
    margin-bottom: var(--s-12) !important;
    text-transform: none !important;
    padding-bottom: var(--s-4);
    border-bottom: 1px solid rgba(181, 50, 31, 0.3);
}
.afro-title,
.raf-title {
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 30, "opsz" 72 !important;
    font-weight: 500 !important;
    font-size: clamp(var(--t-37), 4.5vw, var(--t-49)) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.025em !important;
    color: var(--ink);
    margin-bottom: var(--s-16) !important;
}
/* Remove italic-one-word accent default from title; keep structure if used */
.afro-title em,
.raf-title em {
    font-style: normal !important;
    font-variation-settings: "SOFT" 100, "opsz" 72 !important;
    color: var(--palm) !important;
}
.afro-sub {
    font-family: var(--font-ui) !important;
    font-size: var(--t-18) !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    color: var(--smoke) !important;
    max-width: 60ch;
}

/* Buttons — route legacy to v2 button tokens */
.afro-btn,
.afro-btn-gold,
.afro-btn-ghost {
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--s-8) !important;
    padding: var(--s-16) var(--s-24) !important;
    border-radius: var(--r-sm) !important;
    font-family: var(--font-ui) !important;
    font-size: var(--t-16) !important;
    font-weight: 600 !important;
    letter-spacing: -0.005em !important;
    border: 1.5px solid transparent !important;
    text-decoration: none !important;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease) !important;
}
.afro-btn-gold {
    background: var(--palm) !important;
    color: var(--ivory) !important;
}
.afro-btn-gold:hover { background: var(--palm-dark) !important; }
.afro-btn-ghost {
    background: transparent !important;
    color: var(--ink) !important;
    border-color: rgba(20, 18, 16, 0.25) !important;
}
.afro-btn-ghost:hover {
    background: var(--ink) !important;
    color: var(--ivory) !important;
    border-color: var(--ink) !important;
}
.afro-section.off .afro-btn-ghost {
    color: var(--ivory) !important;
    border-color: rgba(247, 242, 232, 0.3) !important;
}

/* Trust bar — ink-dark stripe between hero and page */
.raf-trust {
    background: var(--ink) !important;
    color: var(--ivory) !important;
    padding: var(--s-32) 0 !important;
    border-bottom: 1px solid var(--line-dark);
}
.raf-trust .item {
    display: flex !important;
    align-items: center !important;
    gap: var(--s-16) !important;
}
.raf-trust .item i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-dark);
    border-radius: var(--r-sm);
    color: var(--amber) !important;
    font-size: var(--t-21) !important;
    flex-shrink: 0;
}
.raf-trust .item strong {
    display: block !important;
    font-family: var(--font-ui) !important;
    font-size: var(--t-16) !important;
    font-weight: 600 !important;
    color: var(--ivory) !important;
    margin-bottom: 2px;
}
.raf-trust .item span {
    display: block !important;
    font-family: var(--font-ui) !important;
    font-size: var(--t-14) !important;
    font-weight: 400 !important;
    color: var(--mist) !important;
    line-height: 1.4;
}

/* Category cards — clean, portrait, caption on bottom */
.afro-cat-card {
    position: relative;
    display: block !important;
    overflow: hidden;
    border-radius: var(--r-md) !important;
    aspect-ratio: 4 / 5;
    text-decoration: none !important;
    background: var(--ivory-dim);
    isolation: isolate;
    transition: transform var(--dur) var(--ease);
}
.afro-cat-card:hover { transform: translateY(-2px); }
.afro-cat-card img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 500ms var(--ease) !important;
}
.afro-cat-card:hover img { transform: scale(1.05); }
.afro-cat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 18, 16, 0.0) 42%, rgba(20, 18, 16, 0.86) 100%);
    z-index: 1;
    pointer-events: none;
}
.afro-cat-card .cap {
    position: absolute !important;
    left: var(--s-16) !important;
    right: var(--s-16) !important;
    bottom: var(--s-16) !important;
    z-index: 2 !important;
    color: var(--ivory) !important;
}
.afro-cat-card .cap h4 {
    font-family: var(--font-display) !important;
    font-size: var(--t-21) !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.015em !important;
    color: var(--ivory) !important;
    margin: 0 0 var(--s-4) !important;
}
.afro-cat-card .cap a {
    font-family: var(--font-ui) !important;
    font-size: var(--t-12) !important;
    font-weight: 500 !important;
    color: var(--mist) !important;
    text-decoration: none !important;
}

/* Product cards (menu grid) */
.afro-dish,
.raf-product {
    background: var(--ivory) !important;
    border: 1px solid var(--line-light) !important;
    border-radius: var(--r-md) !important;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.afro-dish:hover,
.raf-product:hover {
    border-color: rgba(20, 18, 16, 0.2) !important;
    transform: translateY(-2px);
}
.afro-section.off .afro-dish,
.afro-section.off .raf-product {
    background: #1C1916 !important;
    border-color: var(--line-dark) !important;
}
.afro-dish .thumb,
.raf-product .thumb,
.afro-dish .image,
.raf-product .image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--ivory-dim);
}
.afro-dish img,
.raf-product img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 500ms var(--ease);
}
.afro-dish:hover img,
.raf-product:hover img { transform: scale(1.04); }

/* Category quick-pick tile — used in Shop-by-category block */
.raf-cat-tile {
    display: flex;
    align-items: center;
    gap: var(--s-12);
    padding: var(--s-8);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--ink);
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.raf-cat-tile:hover {
    border-color: rgba(20, 18, 16, 0.22);
    background: var(--ivory-dim);
    transform: translateY(-1px);
    color: var(--ink);
}
.raf-cat-tile img {
    width: 48px;
    height: 48px;
    border-radius: var(--r-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.raf-cat-tile__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.raf-cat-tile__name {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.005em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.raf-cat-tile__count {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 500;
    color: var(--smoke);
    margin-top: 2px;
}

/* Wishlist icon on product card */
.raf-wish {
    position: absolute;
    top: var(--s-12);
    right: var(--s-12);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory);
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    z-index: 2;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
    text-decoration: none;
    padding: 0;
}
.raf-wish:hover { background: var(--palm); color: var(--ivory); }

/* Section head row (title left, see-all link right) */
.raf-section-head-row {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: var(--s-24) !important;
    flex-wrap: wrap;
    margin-bottom: var(--s-32) !important;
}
.raf-section-head-row > div > .raf-title,
.raf-section-head-row > div > .afro-title { margin-bottom: 0 !important; }
.raf-section-head-row a,
.raf-section-head-row .see-all {
    font-family: var(--font-ui) !important;
    font-size: var(--t-14) !important;
    font-weight: 600 !important;
    color: var(--ink);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: var(--s-8);
    white-space: nowrap;
    border-bottom: 1px solid currentColor;
    padding-bottom: var(--s-4);
    transition: color var(--dur) var(--ease);
}
.raf-section-head-row a:hover,
.raf-section-head-row .see-all:hover { color: var(--palm); }
.afro-section.off .raf-section-head-row a,
.afro-section.off .raf-section-head-row .see-all { color: var(--ivory); }
.afro-section.off .raf-section-head-row a:hover,
.afro-section.off .raf-section-head-row .see-all:hover { color: var(--amber); }

/* -------- Mobile bottom-tab toolbar — hide on desktop, show on mobile -------- */
.afro-toolbar { display: none; }

@media (max-width: 720px) {
    .afro-toolbar {
        display: block !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 70;
        background: var(--ink);
        border-top: 1px solid var(--line-dark);
        padding: var(--s-8) 0 max(var(--s-8), env(safe-area-inset-bottom));
    }
    .afro-toolbar .afro-container {
        padding-left: var(--s-8) !important;
        padding-right: var(--s-8) !important;
    }
    .afro-toolbar .row-t {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: var(--s-4);
    }
    .afro-toolbar .row-t a {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: var(--s-8) var(--s-4);
        color: var(--mist);
        text-decoration: none;
        font-family: var(--font-ui);
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.01em;
        border-radius: var(--r-sm);
        position: relative;
    }
    .afro-toolbar .row-t a i {
        font-size: var(--t-21);
        color: var(--ivory);
    }
    .afro-toolbar .row-t a span { color: var(--mist); }
    .afro-toolbar .row-t a:active { background: rgba(247,242,232,0.05); }

    /* Active tab — the one matching the current route. Icon turns amber, label
       brightens + gains weight, and a slim amber top-stripe anchors the eye.
       Mirrors the .rafv2-account-nav__item.is-active convention used elsewhere. */
    .afro-toolbar .row-t a.is-active { background: rgba(217,163,91,0.06); }
    .afro-toolbar .row-t a.is-active i { color: var(--amber); }
    .afro-toolbar .row-t a.is-active span { color: var(--ivory); font-weight: 600; }
    .afro-toolbar .row-t a.is-active::before {
        content: "";
        position: absolute;
        top: 0;
        left: 22%;
        right: 22%;
        height: 2px;
        background: var(--amber);
        border-radius: 0 0 2px 2px;
    }
    .afro-toolbar .row-t a .count-box {
        position: absolute;
        top: 4px;
        right: 20%;
        background: var(--palm);
        color: var(--ivory);
        font-size: 10px;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: var(--r-pill);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    /* Push page content so bottom-nav doesn't cover final section */
    body { padding-bottom: 64px; }
}

/* "How it works" steps — the content IS a sequence, so numbered markers are earned */
.afro-step {
    padding: var(--s-24);
    border-radius: var(--r-md);
    background: var(--ivory);
    border: 1px solid var(--line-light);
}
.afro-section.cream .afro-step {
    background: var(--ivory);
}
.afro-step .num,
.afro-step .number,
.afro-step strong[data-step] {
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 100, "opsz" 72 !important;
    font-size: var(--t-49) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    color: white !important;
    letter-spacing: -0.03em;
    display: block;
    margin-bottom: var(--s-16);
}
.afro-step h4, .afro-step h3 {
    font-family: var(--font-display) !important;
    font-size: var(--t-21) !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
    margin: 0 0 var(--s-8) !important;
    line-height: 1.15 !important;
}
.afro-step p {
    font-family: var(--font-ui) !important;
    font-size: var(--t-14) !important;
    line-height: 1.6 !important;
    color: var(--smoke) !important;
    margin: 0;
}

/* Video / promo band — overlay fills the whole section */
.afro-video-band {
    position: relative;
    min-height: 480px;
    background: var(--ink);
    color: var(--ivory);
    overflow: hidden;
    isolation: isolate;
}
.afro-video-band .overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(20,18,16,0.86) 0%, rgba(20,18,16,0.55) 100%);
    display: flex;
    align-items: center;
    padding: var(--s-64) 0;
}
.afro-video-band .box { max-width: 640px; }

@media (max-width: 720px) {
    .afro-video-band { min-height: 360px; }
    .afro-video-band .overlay {
        padding: var(--s-48) 0;
        background: linear-gradient(180deg, rgba(20,18,16,0.70) 0%, rgba(20,18,16,0.90) 100%);
    }
}
.afro-video-band .afro-eyebrow {
    color: var(--amber) !important;
    border-bottom-color: rgba(232,181,71,0.4) !important;
}
.afro-video-band h3,
.afro-video-band h2,
.afro-video-band .afro-title {
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 30, "opsz" 72 !important;
    font-size: clamp(var(--t-37), 5vw, var(--t-49)) !important;
    font-weight: 500 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.025em !important;
    color: var(--ivory) !important;
    margin: 0 0 var(--s-16) !important;
}
.afro-video-band p {
    font-family: var(--font-ui) !important;
    font-size: var(--t-18) !important;
    line-height: 1.55 !important;
    color: var(--ivory) !important;
    opacity: 0.88;
    margin: 0 0 var(--s-24);
    max-width: 56ch;
}
/* Instagram / gallery tiles on dark section */
.afro-section.off .afro-insta .col > a {
    display: block;
    overflow: hidden;
    border-radius: var(--r-sm);
    aspect-ratio: 1 / 1;
    position: relative;
}
.afro-section.off .afro-insta img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms var(--ease);
}
.afro-section.off .afro-insta .col > a:hover img { transform: scale(1.06); }

/* Brand-story split — photo left, ivory copy block right */
#story { padding: var(--s-96) 0; background: var(--ivory); }
.afro-split {
    overflow: hidden;
    border-radius: var(--r-md);
    margin: 0 auto;
    max-width: 1392px;
    background: var(--ivory);
    border: 1px solid var(--line-light);
}
.afro-split .col-img {
    padding: 0 !important;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--ivory-dim);
}
.afro-split .col-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.afro-split .col-body { padding: var(--s-64) var(--s-48) !important; }
.afro-split .col-body > .afro-title { margin-top: var(--s-12) !important; }
.afro-split .quote {
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 70, "opsz" 48 !important;
    font-size: var(--t-21) !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
    color: var(--ink) !important;
    padding: var(--s-16) var(--s-20) !important;
    border-left: 3px solid var(--palm) !important;
    background: var(--ivory-dim) !important;
    margin: var(--s-20) 0 !important;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.afro-split p {
    font-family: var(--font-ui) !important;
    font-size: var(--t-16) !important;
    line-height: 1.65 !important;
    color: var(--smoke) !important;
    margin: 0 0 var(--s-16);
    max-width: 56ch;
}
.afro-split .stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-16);
    margin-top: var(--s-32) !important;
    padding-top: var(--s-24);
    border-top: 1px solid var(--line-light);
}
.afro-split .stat .n {
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 50, "opsz" 72 !important;
    font-size: var(--t-37) !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    color: var(--palm) !important;
    letter-spacing: -0.03em;
    margin-bottom: var(--s-4);
}
.afro-split .stat .t {
    font-family: var(--font-ui) !important;
    font-size: var(--t-12) !important;
    font-weight: 500 !important;
    color: var(--smoke) !important;
    letter-spacing: 0.01em;
}

/* -------- Product cards — inner content (works in light and dark sections) -------- */
.afro-dish, .raf-product { position: relative; }
.afro-dish .info, .raf-product .info {
    padding: var(--s-16);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.afro-dish .info .add-cart, .raf-product .info .add-cart { margin-top: auto; }
.afro-dish .cat, .raf-product .cat {
    display: block;
    font-family: var(--font-ui) !important;
    font-size: var(--t-12) !important;
    font-weight: 500 !important;
    color: var(--smoke) !important;
    letter-spacing: 0.01em;
    margin-bottom: var(--s-4);
}
.afro-dish .name, .raf-product .name {
    display: block;
    font-family: var(--font-display) !important;
    font-size: var(--t-16) !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em;
    color: var(--ink) !important;
    text-decoration: none !important;
    margin: 0 0 var(--s-8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.afro-dish .name:hover, .raf-product .name:hover { color: var(--palm) !important; }
.afro-dish .rating, .raf-product .rating {
    display: flex;
    align-items: center;
    gap: var(--s-8);
    margin-bottom: var(--s-8);
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke) !important;
}
.afro-dish .rating .stars, .raf-product .rating .stars { color: var(--amber) !important; letter-spacing: 1px; }
.afro-dish .rating a, .raf-product .rating a { color: var(--smoke) !important; text-decoration: none !important; }
.afro-dish .weight, .raf-product .weight {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 500;
    color: var(--smoke) !important;
    margin-bottom: var(--s-8);
}
.afro-dish .price, .raf-product .price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--s-8);
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 50, "opsz" 48 !important;
    font-size: var(--t-21) !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    letter-spacing: -0.015em;
    margin-bottom: var(--s-12);
}
.afro-dish .price .old, .raf-product .price .old {
    font-family: var(--font-ui) !important;
    font-size: var(--t-14) !important;
    font-weight: 400 !important;
    color: var(--smoke) !important;
    text-decoration: line-through;
    font-variation-settings: normal !important;
}
.afro-dish .price .save, .raf-product .price .save {
    font-family: var(--font-ui) !important;
    font-size: var(--t-12) !important;
    font-weight: 700 !important;
    color: var(--palm) !important;
    font-variation-settings: normal !important;
}
.afro-dish .add-cart, .raf-product .add-cart {
    display: inline-flex !important;
    align-items: center;
    gap: var(--s-8);
    padding: var(--s-12) var(--s-16) !important;
    background: var(--ink) !important;
    color: var(--ivory) !important;
    font-family: var(--font-ui) !important;
    font-size: var(--t-14) !important;
    font-weight: 600 !important;
    border-radius: var(--r-sm) !important;
    text-decoration: none !important;
    transition: background var(--dur) var(--ease);
    width: 100%;
    justify-content: center;
}
.afro-dish .add-cart:hover, .raf-product .add-cart:hover { background: var(--palm) !important; }

/* Badges */
.raf-badge {
    position: absolute !important;
    top: var(--s-12);
    left: var(--s-12);
    z-index: 2;
    padding: 4px var(--s-8);
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: var(--r-xs);
    line-height: 1.4;
}
.raf-badge.sale { background: var(--palm); color: var(--ivory); }
.raf-badge.dark { background: var(--ink); color: var(--amber); }

/* -------- Dark section (.off) — invert all product internals -------- */
.afro-section.off .afro-dish .name,
.afro-section.off .raf-product .name { color: var(--ivory) !important; }
.afro-section.off .afro-dish .name:hover,
.afro-section.off .raf-product .name:hover { color: var(--amber) !important; }
.afro-section.off .afro-dish .cat,
.afro-section.off .raf-product .cat { color: var(--mist) !important; }
.afro-section.off .afro-dish .rating,
.afro-section.off .raf-product .rating,
.afro-section.off .afro-dish .rating a,
.afro-section.off .raf-product .rating a { color: var(--mist) !important; }
.afro-section.off .afro-dish .weight,
.afro-section.off .raf-product .weight { color: var(--mist) !important; }
.afro-section.off .afro-dish .price,
.afro-section.off .raf-product .price { color: var(--ivory) !important; }
.afro-section.off .afro-dish .price .old,
.afro-section.off .raf-product .price .old { color: var(--mist) !important; }
.afro-section.off .afro-dish .add-cart,
.afro-section.off .raf-product .add-cart {
    background: var(--palm) !important;
    color: var(--ivory) !important;
}
.afro-section.off .afro-dish .add-cart:hover,
.afro-section.off .raf-product .add-cart:hover { background: var(--palm-dark) !important; }
.afro-section.off .raf-wish {
    background: var(--ink-85) !important;
    color: var(--ivory) !important;
    border: 1px solid var(--line-dark);
}

/* Newsletter */
.afro-news {
    background: linear-gradient(180deg, var(--ink) 0%, #0E0C0A 100%) !important;
    color: var(--ivory) !important;
    padding: var(--s-96) 0 !important;
}
.afro-news .inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.afro-news .afro-eyebrow {
    color: var(--amber) !important;
    border-bottom-color: rgba(232,181,71,0.4) !important;
}
.afro-news h3, .afro-news h2, .afro-news .afro-title {
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 30, "opsz" 72 !important;
    font-size: clamp(var(--t-28), 4vw, var(--t-37)) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    color: var(--ivory) !important;
    font-weight: 500 !important;
    margin: var(--s-12) 0 var(--s-12) !important;
}
.afro-news p {
    font-family: var(--font-ui) !important;
    font-size: var(--t-16) !important;
    color: var(--mist) !important;
    margin: 0 0 var(--s-24);
    line-height: 1.55;
}
.afro-news form {
    display: flex;
    gap: var(--s-8);
    max-width: 480px;
    margin: 0 auto;
}
.afro-news input[type="email"] {
    flex: 1;
    background: rgba(247,242,232,0.06) !important;
    border: 1.5px solid var(--line-dark) !important;
    color: var(--ivory) !important;
    padding: var(--s-16) var(--s-20) !important;
    font-family: var(--font-ui) !important;
    font-size: var(--t-16) !important;
    border-radius: var(--r-sm) !important;
    outline: none;
    transition: border-color var(--dur) var(--ease);
    min-width: 0;
}
.afro-news input[type="email"]::placeholder { color: var(--mist) !important; }
.afro-news input[type="email"]:focus { border-color: var(--amber) !important; }
.afro-news button[type="submit"] {
    background: var(--palm) !important;
    color: var(--ivory) !important;
    border: 0 !important;
    padding: var(--s-16) var(--s-24) !important;
    border-radius: var(--r-sm) !important;
    font-family: var(--font-ui) !important;
    font-size: var(--t-16) !important;
    font-weight: 600 !important;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--dur) var(--ease);
}
.afro-news button[type="submit"]:hover { background: var(--palm-dark) !important; }

/* Testimonial */
.afro-tm {
    padding: var(--s-32);
    border-radius: var(--r-md);
    background: var(--ivory);
    border: 1px solid var(--line-light);
}
.afro-tm blockquote, .afro-tm q, .afro-tm p {
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 50, "opsz" 48 !important;
    font-size: var(--t-21) !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
    color: var(--ink) !important;
    margin: 0 0 var(--s-16);
}
.afro-tm cite, .afro-tm .by {
    font-family: var(--font-ui) !important;
    font-size: var(--t-14) !important;
    font-weight: 500 !important;
    color: var(--smoke) !important;
    font-style: normal !important;
}

/* Footer */
.afro-footer {
    background: #0E0C0A !important;
    color: var(--mist) !important;
    padding: var(--s-96) 0 var(--s-32) !important;
    font-family: var(--font-ui) !important;
    font-size: var(--t-14) !important;
    line-height: 1.65;
}
.afro-footer h4, .afro-footer h5, .afro-footer h6 {
    font-family: var(--font-ui) !important;
    font-size: var(--t-14) !important;
    font-weight: 600 !important;
    color: var(--ivory) !important;
    letter-spacing: 0.01em;
    margin: 0 0 var(--s-16) !important;
}
.afro-footer ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.afro-footer ul li { margin-bottom: 2px; }
.afro-footer a {
    color: var(--mist) !important;
    text-decoration: none !important;
    transition: color var(--dur) var(--ease);
    display: inline-block;
    padding: var(--s-4) 0;
}
.afro-footer a:hover { color: var(--ivory) !important; }

/* Brand block */
.afro-footer .brand-block .name {
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 70, "opsz" 48 !important;
    font-size: var(--t-21) !important;
    font-weight: 600 !important;
    color: var(--ivory) !important;
    letter-spacing: -0.01em !important;
    line-height: 1 !important;
}
.afro-footer .brand-block .tag {
    display: block;
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--amber);
    letter-spacing: 0.04em;
    margin-top: var(--s-4);
    margin-bottom: var(--s-16);
}
.afro-footer .brand-block p {
    font-size: var(--t-14) !important;
    color: var(--mist) !important;
    margin-bottom: var(--s-20) !important;
    max-width: 36ch;
}
.afro-footer .socials {
    display: inline-flex;
    gap: var(--s-8);
}
.afro-footer .socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-dark);
    border-radius: var(--r-sm);
    padding: 0;
    color: var(--ivory) !important;
    font-size: var(--t-16);
}
.afro-footer .socials a:hover {
    background: var(--palm);
    border-color: var(--palm);
    color: var(--ivory) !important;
}

/* Contact block */
.afro-footer .contact-block .li {
    display: flex;
    gap: var(--s-12);
    margin-bottom: var(--s-16);
    align-items: flex-start;
}
.afro-footer .contact-block .li i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-dark);
    border-radius: var(--r-sm);
    color: var(--amber);
    font-size: var(--t-14);
    flex-shrink: 0;
}
.afro-footer .contact-block .li strong {
    display: block;
    font-family: var(--font-ui) !important;
    font-size: var(--t-12) !important;
    font-weight: 600 !important;
    color: var(--ivory) !important;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
}
.afro-footer .contact-block .li > div {
    font-size: var(--t-13, 13px);
    color: var(--mist);
    line-height: 1.5;
}

/* Bottom bar */
.afro-footer .bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--s-16);
    margin-top: var(--s-48);
    padding-top: var(--s-24);
    border-top: 1px solid var(--line-dark);
    font-size: var(--t-12);
    color: var(--mist);
}
.afro-footer .bottom a {
    color: var(--mist) !important;
    padding: 0 !important;
}
.afro-footer .bottom a:hover { color: var(--ivory) !important; }
.afro-footer .bottom .payments {
    display: inline-flex;
    gap: var(--s-8);
    align-items: center;
}
.afro-footer .bottom .payments img {
    height: 24px;
    width: auto;
    opacity: 0.85;
    filter: brightness(0.95);
}

/* Responsive scaling */
@media (max-width: 1024px) {
    .afro-container {
        padding-left: var(--s-20) !important;
        padding-right: var(--s-20) !important;
    }
    .afro-section {
        padding-top: var(--s-64) !important;
        padding-bottom: var(--s-64) !important;
    }
    .afro-split {
        grid-template-columns: 1fr;
        min-height: unset;
        margin: 0 var(--s-20) var(--s-64);
    }
    .afro-split > * { padding: var(--s-32); }
}
@media (max-width: 1024px) {
    .afro-split .col-body { padding: var(--s-48) var(--s-32) !important; }
    .afro-split .col-img { aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
    .afro-container {
        padding-left: var(--s-16) !important;
        padding-right: var(--s-16) !important;
    }
    .afro-section {
        padding-top: var(--s-48) !important;
        padding-bottom: var(--s-48) !important;
    }
    .afro-section-head { margin-bottom: var(--s-32) !important; }
    .afro-title, .raf-title {
        font-size: clamp(var(--t-28), 7vw, var(--t-37)) !important;
    }
    .afro-sub { font-size: var(--t-16) !important; }
    .raf-trust { padding: var(--s-24) 0 !important; }
    .raf-trust .item { gap: var(--s-12) !important; }
    #story { padding: var(--s-48) 0; }
    /* Card sits inside the 16px section inset (matches .afro-container at mobile),
       keeps its border + rounded corners, and uses standard inner padding so the
       text has normal breathing room rather than the earlier 20/20 double-indent. */
    .afro-split {
        margin-left: var(--s-16) !important;
        margin-right: var(--s-16) !important;
    }
    .afro-split > * { padding: 0 !important; }
    .afro-split .col-body { padding: var(--s-24) var(--s-16) !important; }
    .afro-split .stats { grid-template-columns: 1fr; gap: var(--s-12); }
    .afro-split .quote { font-size: var(--t-18) !important; }
    .afro-video-band { padding: var(--s-64) 0; }
    .afro-footer { padding: var(--s-64) 0 var(--s-24) !important; }

    /* Product cards tighter on mobile */
    .afro-dish .info, .raf-product .info { padding: var(--s-12); }
    .afro-dish .name, .raf-product .name { font-size: var(--t-14) !important; }
    .afro-dish .price, .raf-product .price { font-size: var(--t-18) !important; }
    .afro-dish .add-cart, .raf-product .add-cart {
        padding: var(--s-8) var(--s-12) !important;
        font-size: var(--t-12) !important;
    }

    /* Newsletter form stacks on mobile */
    .afro-news form { flex-direction: column; }
    .afro-news { padding: var(--s-64) 0 !important; }
    .afro-news button[type="submit"] { width: 100%; }

    /* Footer tightens */
    .afro-footer .bottom { flex-direction: column; align-items: flex-start; }
    /* Hide the entire bottom row (copyright, payment icons, Privacy/Terms/Cookies)
       on mobile. Flex-direction above is kept so the layout re-emerges correctly
       if the display rule is ever flipped back on. */
    .afro-footer .bottom { display: none; }
    /* Hide brand-block social icons on mobile — the mobile bottom toolbar + account
       menu already give social-adjacent paths; footer socials add noise on narrow screens. */
    .afro-footer .brand-block .socials { display: none; }
    /* Hide the three link-list footer columns (Shop / Help / Company) on mobile but
       KEEP the Reach-us contact block visible — the support phone and email are
       high-value tap targets for a shopper with an order problem. Brand-block is
       .col-lg-4 (no .col-6) so it's unaffected; .bottom row sits outside .row g-4. */
    .afro-footer .row > .col-6:not(.contact-block) { display: none; }
}

/* =========================================================
   HUMAN TOUCH — hand gestures, restrained to 2 moments:
   1) Hero ink-stroke flourish
   2) Signature in brand-story + rotated ink stamp
   Plus a barely-there paper grain on ivory sections.
   ========================================================= */

/* 1. Hero hand-drawn flourish — replaces the eyebrow border tell */
.rafv2-hero__eyebrow {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.rafv2-hero__flourish {
    display: block;
    width: clamp(220px, 32%, 420px);
    height: auto;
    color: var(--amber);
    margin: calc(var(--s-16) * -0.4) 0 var(--s-20);
    transform: translateX(-2%);
    /* Subtle brush-paper feel — slight shadow like wet ink */
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.25));
}

/* 2a. Rotated ink stamp on brand-story photo */
.afro-split .col-img { position: relative; }
.raf-stamp {
    position: absolute;
    bottom: var(--s-20);
    right: var(--s-20);
    width: clamp(96px, 14vw, 148px);
    aspect-ratio: 1;
    color: var(--palm);
    opacity: 0.95;
    transform: rotate(-7deg);
    pointer-events: none;
    /* Looks pressed/inky — mix with background for ink-bleed */
    mix-blend-mode: multiply;
    filter: drop-shadow(0 1px 0 rgba(20,18,16,0.15));
}
.raf-stamp svg { width: 100%; height: 100%; }

/* 2b. Signature + role under the brand story */
.raf-signoff {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin: var(--s-24) 0 var(--s-16);
    padding-top: var(--s-16);
    border-top: 1px dashed rgba(20,18,16,0.15);
}
.raf-signoff__sig {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: var(--t-37);
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.01em;
    /* a touch of ink bleed */
    text-shadow: 0 0.5px 0 rgba(20,18,16,0.08);
}
.raf-signoff__role {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 500;
    color: var(--smoke);
    letter-spacing: 0.01em;
}

/* 3. Paper grain — very faint on cream/off-white only.
   Pure white sections stay clean to let the hero + photography carry.
   Keeps a hint of tactile warmth where sections alternate. */
.afro-section.cream,
#story {
    position: relative;
    isolation: isolate;
}
.afro-section.cream::before,
#story::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.58  0 0 0 0 0.54  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
    background-size: 220px 220px;
    mix-blend-mode: multiply;
}

/* Honor reduced motion / high contrast — strip the touches */
@media (prefers-reduced-motion: reduce) {
    .raf-stamp { transform: none; }
}
@media (max-width: 720px) {
    .rafv2-hero__flourish { width: 60%; }
    .raf-stamp {
        bottom: var(--s-12);
        right: var(--s-12);
        width: 88px;
    }
    .raf-signoff__sig { font-size: var(--t-28); }
}

/* =========================================================
   AUTH PAGES — login / register
   Split layout: form side + brand/testimonial side.
   Collapses to a top banner on ≤900px, then banner hidden on ≤500px.
   ========================================================= */

/* Minimal auth top bar — not sticky; auth needs focus */
.rafv2-authbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-16) var(--s-24);
    max-width: 1440px;
    margin: 0 auto;
    border-bottom: 1px solid var(--line-light);
    background: var(--ivory);
}
.rafv2-authbar .rafv2-brand__mark { color: var(--palm); }
.rafv2-authbar .rafv2-brand__name { color: var(--ink); }
.rafv2-authbar .rafv2-brand__sub { color: var(--smoke); }
.rafv2-authbar__help {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 500;
    color: var(--smoke);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--s-8);
    transition: color var(--dur) var(--ease);
}
.rafv2-authbar__help:hover { color: var(--palm); }

/* Main split */
.rafv2-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 74px);
    background: var(--ivory);
}

/* ---------- Form side ---------- */
.rafv2-auth__form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-48) var(--s-32);
}
.rafv2-auth__form-inner {
    width: 100%;
    max-width: 440px;
}
.rafv2-auth__title {
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 30, "opsz" 72 !important;
    font-size: var(--t-37) !important;
    font-weight: 500 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.025em !important;
    color: var(--ink) !important;
    margin: 0 0 var(--s-12) !important;
}
.rafv2-auth__sub {
    font-family: var(--font-ui) !important;
    font-size: var(--t-16) !important;
    line-height: 1.55 !important;
    color: var(--smoke) !important;
    margin: 0 0 var(--s-32) !important;
    max-width: 42ch;
}

/* Password field with show/hide toggle */
.rafv2-auth__pwd { position: relative; }
.rafv2-auth__pwd .form-control { padding-right: 44px; }
.rafv2-auth__pwd-toggle {
    position: absolute;
    top: 50%;
    right: var(--s-4);
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--smoke);
    cursor: pointer;
    border-radius: var(--r-sm);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.rafv2-auth__pwd-toggle:hover { background: var(--ivory-dim); color: var(--ink); }

.rafv2-auth__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-12);
}
.rafv2-auth__forgot {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--palm);
    font-weight: 600;
    text-decoration: none;
}
.rafv2-auth__forgot:hover { color: var(--palm-dark); text-decoration: underline; }

/* OR divider */
.rafv2-auth__divider {
    display: flex;
    align-items: center;
    gap: var(--s-16);
    margin: var(--s-24) 0;
    color: var(--smoke);
    font-family: var(--font-ui);
    font-size: var(--t-12);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.rafv2-auth__divider::before,
.rafv2-auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line-light);
}

/* Social buttons */
.rafv2-auth__social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-12);
}
.rafv2-auth__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-8);
    padding: var(--s-12) var(--s-16);
    background: transparent;
    border: 1.5px solid var(--line-light);
    border-radius: var(--r-sm);
    font-family: var(--font-ui);
    font-size: var(--t-14);
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.rafv2-auth__social-btn:hover {
    background: var(--ivory-dim);
    border-color: rgba(20, 18, 16, 0.18);
    color: var(--ink);
    transform: translateY(-1px);
}
.rafv2-auth__social-btn svg { width: 18px; height: 18px; }

/* Alt link ("New here? Create an account") */
.rafv2-auth__alt {
    margin: var(--s-32) 0 0;
    text-align: center;
    font-family: var(--font-ui);
    font-size: var(--t-14);
    color: var(--smoke);
}
.rafv2-auth__alt a {
    color: var(--palm);
    font-weight: 600;
    text-decoration: none;
}
.rafv2-auth__alt a:hover { color: var(--palm-dark); text-decoration: underline; }

/* Terms acceptance line */
.rafv2-auth__terms {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--smoke);
    line-height: 1.5;
}
.rafv2-auth__terms a {
    color: var(--palm);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Form check styling to brand palette */
.form-check-input {
    border: 1.5px solid var(--line-light);
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.2em;
    background-color: var(--ivory);
}
.form-check-input:checked {
    background-color: var(--palm);
    border-color: var(--palm);
}
.form-check-input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(232, 181, 71, 0.18);
}
.form-check-label {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    color: var(--ink);
}

/* ---------- Brand side ---------- */
.rafv2-auth__brand {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--ivory);
    background: var(--ink);
}
.rafv2-auth__brand-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.rafv2-auth__brand-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 18, 16, 0.40) 0%, rgba(20, 18, 16, 0.92) 100%);
    z-index: 1;
}
.rafv2-auth__brand-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: var(--s-64);
    gap: var(--s-32);
}
.rafv2-auth__quote {
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 50, "opsz" 72 !important;
    font-size: var(--t-28) !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.015em !important;
    color: var(--ivory) !important;
    margin: 0 !important;
    max-width: 32ch;
    border-left: 3px solid var(--amber);
    padding-left: var(--s-20);
}
.rafv2-auth__quote-by {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rafv2-auth__sig {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: var(--t-37);
    color: var(--amber);
    line-height: 1;
    letter-spacing: -0.01em;
}
.rafv2-auth__by {
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--mist);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.rafv2-auth__perks {
    display: grid;
    gap: var(--s-12);
    padding-top: var(--s-24);
    border-top: 1px solid rgba(247, 242, 232, 0.15);
}
.rafv2-auth__perk {
    display: flex;
    align-items: center;
    gap: var(--s-12);
    font-family: var(--font-ui);
    font-size: var(--t-14);
    color: var(--ivory);
}
.rafv2-auth__perk i,
.rafv2-auth__perk svg {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    font-size: var(--t-16);
    flex-shrink: 0;
}

/* Form errors (reusable for Symfony form rendering later) */
.form-control.is-invalid, .form-control.is-invalid:focus {
    border-color: var(--palm);
    box-shadow: 0 0 0 4px rgba(181, 50, 31, 0.14);
}
.invalid-feedback {
    display: block;
    font-family: var(--font-ui);
    font-size: var(--t-12);
    color: var(--palm);
    margin-top: var(--s-4);
}
.was-validated .form-control:valid { border-color: var(--line-light); background-image: none; }
.was-validated .form-control:valid:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(232, 181, 71, 0.18); }
.was-validated .form-control:invalid { border-color: var(--palm); background-image: none; }

/* Password input-group pairing — flush with form-control, no border clash */
.rafv2-input-group .form-control { border-right: 0 !important; }
.rafv2-input-group .form-control:focus + .rafv2-pwd-btn,
.rafv2-input-group .form-control:focus ~ .rafv2-pwd-btn {
    border-color: var(--amber) !important;
    box-shadow: 0 0 0 4px rgba(232, 181, 71, 0.18);
    z-index: 3;
}
.rafv2-pwd-btn {
    background: var(--ivory) !important;
    border: 1.5px solid var(--line-light) !important;
    border-left: 0 !important;
    color: var(--smoke) !important;
    padding: 0 var(--s-16) !important;
    transition: color var(--dur) var(--ease);
}
.rafv2-pwd-btn:hover { color: var(--ink) !important; background: var(--ivory-dim) !important; }
.rafv2-pwd-btn.is-shown { color: var(--palm) !important; }

/* SSO buttons — classier than default .btn-light */
.rafv2-sso-btn {
    background: var(--ivory) !important;
    border: 1.5px solid var(--line-light) !important;
    color: var(--ink) !important;
    font-family: var(--font-ui) !important;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease) !important;
}
.rafv2-sso-btn:hover {
    background: var(--ivory-dim) !important;
    border-color: rgba(20, 18, 16, 0.18) !important;
    color: var(--ink) !important;
    transform: translateY(-1px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .rafv2-auth__brand-content { padding: var(--s-48); gap: var(--s-24); }
    .rafv2-auth__quote { font-size: var(--t-21) !important; }
    .rafv2-auth__sig { font-size: var(--t-28); }
}
@media (max-width: 900px) {
    .rafv2-auth { grid-template-columns: 1fr; min-height: unset; }
    .rafv2-auth__brand {
        min-height: 220px;
        max-height: 260px;
    }
    .rafv2-auth__brand-content {
        padding: var(--s-24) var(--s-20);
        gap: var(--s-12);
        justify-content: center;
    }
    .rafv2-auth__quote {
        font-size: var(--t-16) !important;
        padding-left: var(--s-12);
        border-left-width: 2px;
    }
    .rafv2-auth__sig { font-size: var(--t-21); }
    .rafv2-auth__quote-by {
        flex-direction: row;
        align-items: baseline;
        gap: var(--s-8);
    }
    .rafv2-auth__perks { display: none; }

    .rafv2-auth__form { padding: var(--s-32) var(--s-20); }
    .rafv2-auth__title { font-size: var(--t-28) !important; }

    .rafv2-authbar { padding: var(--s-12) var(--s-16); }
    .rafv2-authbar .rafv2-brand__sub { display: none; }
}
@media (max-width: 500px) {
    .rafv2-auth__social { grid-template-columns: 1fr; }
    .rafv2-auth__brand { display: none; }
    .rafv2-auth { min-height: calc(100vh - 68px); }
}

/* ---------- Flash toasts (top-right) ---------- */
.rafv2-flash {
    position: fixed;
    top: var(--s-16);
    right: var(--s-16);
    z-index: 1080;
    pointer-events: none;
    width: min(420px, calc(100% - var(--s-32)));
}
.rafv2-flash .container-xl { padding: 0; max-width: none; }
.rafv2-flash .alert {
    pointer-events: auto;
    margin: 0 0 var(--s-8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
@media (max-width: 576px) {
    .rafv2-flash { left: var(--s-16); width: auto; }
}

/* =========================================================
   ERROR PAGES — 404 / 429 / 500 / generic fallback
   Shared single-column layout for templates/bundles/TwigBundle/Exception/*.
   ========================================================= */

.rafv2-error-body { background: var(--ivory-dim); }

.rafv2-error {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--s-48) var(--s-24);
    text-align: center;
    position: relative;
}

.rafv2-error__badge {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--s-24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ivory);
    border: 1px solid var(--line-light);
    box-shadow: 0 10px 28px rgba(20, 18, 16, 0.06);
    color: var(--palm);
    font-size: 28px;
}
.rafv2-error__badge .icon { line-height: 1; }

.rafv2-error .afro-eyebrow {
    display: inline-block;
    margin-bottom: var(--s-12);
}

.rafv2-error__title {
    font-family: var(--font-display) !important;
    font-variation-settings: "SOFT" 50, "opsz" 48;
    font-weight: 600;
    font-size: clamp(2.25rem, 4.5vw, var(--t-65));
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 var(--s-16);
}
.rafv2-error__title em {
    font-style: italic;
    color: var(--palm);
    font-variation-settings: "SOFT" 80, "opsz" 48;
}

.rafv2-error__lead {
    font-family: var(--font-ui);
    font-size: var(--t-18);
    line-height: 1.55;
    color: var(--smoke);
    margin: 0 auto var(--s-32);
    max-width: 520px;
}

/* ---------- Inline search (404 only) ---------- */
.rafv2-error__search {
    display: flex;
    gap: var(--s-8);
    max-width: 480px;
    margin: 0 auto var(--s-24);
}
.rafv2-error__search .rafv2-search__input {
    flex: 1;
    height: 48px;
    padding: 0 var(--s-16);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    border-radius: var(--r-sm);
    font-family: var(--font-ui);
    font-size: var(--t-14);
    color: var(--ink);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rafv2-error__search .rafv2-search__input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(20, 18, 16, 0.08);
}
.rafv2-error__search .btn {
    height: 48px;
    padding: 0 var(--s-20);
    white-space: nowrap;
}

/* ---------- Action buttons ---------- */
.rafv2-error__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--s-12);
    justify-content: center;
    margin-bottom: var(--s-32);
}
.rafv2-error__actions .btn {
    min-width: 180px;
    padding: var(--s-12) var(--s-20);
}

/* ---------- 404 suggestion block ---------- */
.rafv2-error__suggest {
    margin-top: var(--s-32);
    padding-top: var(--s-24);
    border-top: 1px solid var(--line-light);
}
.rafv2-error__suggest .afro-eyebrow {
    margin-bottom: var(--s-12);
}
.rafv2-error__suggest .rafv2-ac__chips {
    justify-content: center;
    padding: 0;
}

/* ---------- Help footer ---------- */
.rafv2-error__help {
    font-family: var(--font-ui);
    font-size: var(--t-14);
    color: var(--smoke);
    line-height: 1.6;
}
.rafv2-error__help a {
    color: var(--ink);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--line-light);
    text-underline-offset: 3px;
}
.rafv2-error__help a:hover {
    color: var(--palm);
    text-decoration-color: var(--palm);
}

@media (max-width: 576px) {
    .rafv2-error { padding: var(--s-32) var(--s-16); }
    .rafv2-error__badge { width: 60px; height: 60px; font-size: 24px; }
    .rafv2-error__lead { font-size: var(--t-16); }
    .rafv2-error__actions .btn { min-width: 0; width: 100%; }
    .rafv2-error__search {
        flex-direction: column;
    }
    .rafv2-error__search .btn { width: 100%; }
}
