/* ==========================================================================
   Raya — theme.css
   Neutral storefront theme. Bootstrap 5.3 base + token overrides.
   Fonts (Playfair Display + Inter) load from Google Fonts in layout/header.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    --ry-paper:        #FAFAFA;
    --ry-surface:      #FFFFFF;
    --ry-ink:          #111111;
    --ry-muted:        #6B6B6B;
    --ry-line:         #E5E5E5;
    --ry-inverse:      #FFFFFF;
    --ry-inverse-dim:  #A3A3A3;

    --ry-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --ry-font-sans:    "Inter", "Helvetica Neue", Arial, sans-serif;

    --ry-header-h:     72px;
    --ry-maxw:         1320px;
    --ry-radius:       2px;

    /* Micro-type (eyebrows/labels/buttons) multipliers — retuned for ar below */
    --ry-micro:        1;
    --ry-track:        1;

    /* ---- Bootstrap variable overrides ---- */
    --bs-body-bg:               var(--ry-paper);
    --bs-body-color:            var(--ry-ink);
    --bs-body-font-family:      var(--ry-font-sans);
    --bs-body-font-size:        0.95rem;
    --bs-body-font-weight:      400;
    --bs-emphasis-color:        var(--ry-ink);
    --bs-secondary-color:       var(--ry-muted);
    --bs-tertiary-color:        var(--ry-muted);
    --bs-border-color:          var(--ry-line);
    --bs-border-radius:         var(--ry-radius);
    --bs-link-color:            var(--ry-ink);
    --bs-link-hover-color:      var(--ry-muted);
    --bs-primary:               #111111;
    --bs-primary-rgb:           17, 17, 17;
    --bs-dark-rgb:              17, 17, 17;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
/* Single lever for Arabic type size. Every font-size in this theme is rem
   against the 16px root — a px size opts out. */
html[lang="ar"] { font-size: 112.5%; }   /* 16px → 18px */
/* Eyebrows/labels are Latin small-caps devices: tiny, wide-tracked, uppercase.
   Arabic has no caps, and tracking breaks its joined letterforms — so size them
   up and drop the tracking. */
html[lang="ar"] { --ry-micro: 1.18; --ry-track: 0; }
body {
    background: var(--ry-paper);
    color: var(--ry-ink);
    font-family: var(--ry-font-sans);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, .ry-display {
    font-family: var(--ry-font-display);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--ry-ink);
}
a { text-decoration: none; color: inherit; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--ry-muted); }
img { max-width: 100%; }
.ry-wrap { max-width: var(--ry-maxw); margin-inline: auto; padding-inline: clamp(20px, 4vw, 56px); }

/* Utility type */
.ry-eyebrow {
    font-family: var(--ry-font-sans);
    font-size: calc(0.6875rem * var(--ry-micro));
    font-weight: 400;
    letter-spacing: calc(.22em * var(--ry-track));
    text-transform: uppercase;
    color: var(--ry-muted);
}
.ry-label {
    font-family: var(--ry-font-sans);
    font-size: calc(0.75rem * var(--ry-micro));
    letter-spacing: calc(.14em * var(--ry-track));
    text-transform: uppercase;
}
.ry-muted { color: var(--ry-muted) !important; }
.ry-serif { font-family: var(--ry-font-display) !important; }

/* ---------- Buttons ---------- */
.ry-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--ry-font-sans);
    font-size: calc(0.75rem * var(--ry-micro)); letter-spacing: calc(.16em * var(--ry-track)); text-transform: uppercase;
    padding: 15px 30px; border: 1px solid var(--ry-ink);
    border-radius: var(--ry-radius); cursor: pointer; background: transparent; color: var(--ry-ink);
    transition: background .25s ease, color .25s ease, border-color .25s ease;
    line-height: 1;
}
.ry-btn--ink { background: var(--ry-ink); color: var(--ry-inverse); }
.ry-btn--ink:hover { background: #000; color: #fff; }
.ry-btn--outline:hover { background: var(--ry-ink); color: var(--ry-inverse); }
.ry-btn--block { width: 100%; }
.ry-btn--sm { padding: 11px 22px; font-size: calc(0.6875rem * var(--ry-micro)); }
.ry-btn:disabled, .ry-btn.is-disabled { opacity: .45; pointer-events: none; }

.ry-textlink {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: calc(0.6875rem * var(--ry-micro)); letter-spacing: calc(.18em * var(--ry-track)); text-transform: uppercase; color: var(--ry-ink);
    /* border-bottom: 1px solid var(--ry-ink); */ padding-bottom: 3px;
}
.ry-textlink:hover { color: var(--ry-muted); border-color: var(--ry-muted); }

/* ---------- Announcement bar ---------- */
.ry-announce {
    /* Per-headline colours arrive as inline custom properties; theme is the fallback. */
    background: var(--ry-announce-bg, var(--ry-ink)); color: var(--ry-announce-fg, var(--ry-inverse-dim));
    font-size: 0.8125rem; letter-spacing: calc(.18em * var(--ry-track)); text-transform: uppercase;
}
.ry-announce .ry-wrap { display: flex; align-items: center; justify-content: center; gap: 40px; min-height: 40px; }
/* Rotating messages: all items share one grid cell so the bar keeps a stable
   height and only opacity animates. Colours ride on the bar's custom properties,
   which the script swaps per message. */
.ry-announce { transition: background-color .55s ease, color .55s ease; }
/* align-content, not just align-items: min-height leaves free space in the grid
   container, and that is distributed by align-content — which defaults to start,
   so the row sat high in the bar. */
.ry-announce .ry-announce__track { display: grid; align-items: center; align-content: center; min-height: 40px; }
.ry-announce__item { grid-area: 1 / 1; text-align: center; line-height: 1.2; padding-block: 9px;
    opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.ry-announce__item.is-active { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
    .ry-announce, .ry-announce__item { transition: none; }
}
.ry-announce span + span { position: relative; }
.ry-announce span + span::before {
    content: ""; position: absolute; left: -20px; top: 50%; width: 3px; height: 3px;
    background: currentColor; border-radius: 50%; transform: translateY(-50%);
}
@media (max-width: 767px) { .ry-announce .ry-wrap span + span { display: none; } }

/* ---------- Header ---------- */
.ry-header {
    position: sticky; top: 0; z-index: 1030;
    background: var(--ry-paper);
    border-bottom: 1px solid var(--ry-line);
}
.ry-header__bar {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    min-height: var(--ry-header-h);
}
.ry-header__nav { display: flex; align-items: center; gap: 34px; }
.ry-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.ry-navlink {
    font-size: 0.875rem; letter-spacing: calc(.14em * var(--ry-track)); text-transform: uppercase; color: var(--ry-ink);
    white-space: nowrap;
}
.ry-navlink:hover { color: var(--ry-muted); }
.ry-logo {
    display: flex; align-items: center; justify-content: center; font-family: var(--ry-font-display); font-size: 1.625rem; 
    letter-spacing: .02em; color: var(--ry-ink); text-align: center; white-space: nowrap;
}
.ry-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; color: var(--ry-ink); font-size: 1.25rem; background: none; border: 0; position: relative;
}
.ry-icon-btn:hover { color: var(--ry-muted); }
.ry-cart-count {
    position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--ry-ink); color: var(--ry-inverse); border-radius: 9px;
    font-family: var(--ry-font-sans); font-size: 0.59375rem; letter-spacing: 0; line-height: 16px; text-align: center;
}
.ry-burger { display: none; }
@media (max-width: 991px) {
    .ry-header__nav { display: none; }
    .ry-burger { display: inline-flex; }
    .ry-header__bar { grid-template-columns: 1fr auto 1fr; }
    /* Symmetric icon spacing on both sides (left: burger + search · right: globe + profile). */
    .ry-header__left { gap: 6px; }
    .ry-header__actions { gap: 6px; }
}

/* ---------- Mobile drawer ---------- */
.ry-drawer { background: var(--ry-paper); width: min(88vw, 420px); }
.ry-drawer .offcanvas-header { border-bottom: 1px solid var(--ry-line); min-height: var(--ry-header-h); padding-inline: 24px; }
.ry-drawer .offcanvas-body { padding: 8px 24px 28px; display: flex; flex-direction: column; }
.ry-drawer__link {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--ry-font-display); font-size: 1.875rem; color: var(--ry-ink);
    padding: 18px 0; border-bottom: 1px solid var(--ry-line);
}
.ry-drawer__link i { font-size: 1.125rem; color: var(--ry-muted); }
.ry-drawer__sub { margin-top: 26px; }
.ry-drawer__row {
    display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0;
    border-bottom: 1px solid rgba(229, 229, 229,.5);
}
.ry-drawer__row .name { font-family: var(--ry-font-display); font-size: 1.1875rem; }
.ry-drawer__row .tag { font-size: calc(0.75rem * var(--ry-micro)); letter-spacing: calc(.14em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted); }
.ry-drawer__foot { margin-top: auto; padding-top: 26px; display: flex; justify-content: space-between;
    font-size: 0.875rem; letter-spacing: calc(.12em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted); }

/* ---------- Search panel (header dropdown) ---------- */
/* overflow-y: scroll, not auto — keeps the scrollbar gutter reserved in every
   state so the content width cannot shift. */
.ry-search-panel { background: var(--ry-paper); border-bottom: 1px solid var(--ry-line);
    box-shadow: 0 24px 48px -24px rgba(17, 17, 17,.35);
    overflow-y: scroll; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable; }
/* Two classes, to outweigh Bootstrap's .offcanvas.offcanvas-top (30vh +
   max-height:100%). svh not dvh — dvh resizes under the mobile keyboard. */
.ry-search-panel.offcanvas-top { height: 100vh; height: 100svh; max-height: none; }
/* width:100% is load-bearing: .offcanvas is a flex column and .ry-wrap's auto
   margins kill the stretch, so without it this box shrink-wraps its content and
   the panel snaps narrow while results load. */
.ry-search { width: 100%; padding-block: 28px 44px; }
/* Sticky: panel is full height and scrolls under it. */
.ry-search__head { position: sticky; top: 0; z-index: 2; background: var(--ry-paper);
    display: flex; align-items: center; justify-content: space-between;
    padding-block: 10px; margin-bottom: 8px; }
.ry-search__label { font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.22em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted); }
.ry-search__close { background: none; border: 0; color: var(--ry-ink); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px; }
.ry-search__close:hover { color: var(--ry-muted); }
.ry-search__form { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--ry-ink); padding-bottom: 14px; }
.ry-search__icon { font-size: 1.375rem; color: var(--ry-muted); flex-shrink: 0; }
.ry-search__input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ry-ink);
    font-family: var(--ry-font-display); font-size: clamp(1.375rem, 3.4vw, 2.5rem); line-height: 1.1; }
.ry-search__input::placeholder { color: var(--ry-muted); opacity: .6; }
.ry-search__submit { background: none; border: 0; color: var(--ry-ink); cursor: pointer; font-size: 1.375rem; flex-shrink: 0; transition: transform .2s ease; }
.ry-search__submit:hover { transform: translateX(3px); }
.ry-search__group { margin-top: 34px; }
.ry-search__grouphead { font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.2em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted); margin: 0 0 16px; }

.ry-search__cats { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.ry-search__cat { padding: 2px 0; font-size: 0.8125rem; letter-spacing: .04em; color: var(--ry-muted);
    border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.ry-search__cat:hover { color: var(--ry-ink); border-bottom-color: var(--ry-ink); }
.ry-search__prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ry-search__prod { display: flex; flex-direction: column; gap: 10px; color: var(--ry-ink); }
.ry-search__prod-thumb { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--ry-line); }
.ry-search__prod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.ry-search__prod:hover .ry-search__prod-thumb img { transform: scale(1.04); }
.ry-search__prod-name { font-family: var(--ry-font-display); font-size: 1rem; line-height: 1.2; }
.ry-search__prod-price { font-size: 0.75rem; letter-spacing: .04em; color: var(--ry-muted); }
.ry-search__searching { font-size: 0.8125rem; color: var(--ry-muted); padding-block: 20px; }
.ry-search__results { margin-top: 30px; min-height: 240px; }
@media (max-width: 575px) {
    .ry-search__prods { grid-template-columns: repeat(2, 1fr); }
    .ry-search__input { font-size: 1.375rem; }
}

/* ---------- Hero (full-width slider) ---------- */
.ry-hero { position: relative; background: var(--ry-ink); }
.ry-hero__swiper { width: 100%; }
.ry-hero__slide { position: relative; display: block; height: clamp(460px, 82vh, 820px); overflow: hidden; background: var(--ry-line); }
.ry-hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ry-hero__scrim { position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(17, 17, 17,0) 42%, rgba(17, 17, 17,.6) 100%); }
.ry-hero__caption { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; pointer-events: none; }
.ry-hero__caption .ry-wrap { width: 100%; padding-bottom: clamp(40px, 6vw, 88px); }
.ry-hero__title { font-family: var(--ry-font-display); color: var(--ry-inverse);
    font-size: clamp(2.375rem, 5.2vw, 4.625rem); line-height: 1.03; max-width: 18ch; }
.ry-hero__caption .ry-btn { margin-top: 24px; pointer-events: auto; }
.ry-hero__caption .ry-btn--ink { background: rgba(17, 17, 17, .28); color: var(--ry-inverse); border-color: var(--ry-inverse); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ry-hero__caption .ry-btn--ink:hover { background: rgba(17, 17, 17, .55); color: var(--ry-inverse); border-color: var(--ry-inverse); }
.ry-hero .swiper-pagination { z-index: 3; }
.ry-hero .swiper-pagination-bullet { background: var(--ry-inverse); opacity: .4; width: 8px; height: 8px; }
.ry-hero .swiper-pagination-bullet-active { opacity: 1; }
.ry-hero--empty { min-height: clamp(360px, 60vh, 600px); display: flex; align-items: center; justify-content: center;
    background: var(--ry-paper); border-bottom: 1px solid var(--ry-line); }
@media (max-width: 767px) { .ry-hero__slide { height: clamp(420px, 72vh, 640px); } }

/* Video hero — fills the viewport (the transparent header floats over it). */
.ry-hero--video .ry-hero__slide--video {
    position: relative; display: block; overflow: hidden; background: var(--ry-ink);
    height: 100vh;
    height: 100svh;
    min-height: 480px;
}
.ry-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* iOS Low Power Mode overlays a native play button on a blocked video; hide it so the
   frame reads clean while the JS kick resumes playback on the first user gesture. */
.ry-hero__video::-webkit-media-controls-start-playback-button,
.ry-hero__video::-webkit-media-controls-play-button,
.ry-hero__video::-webkit-media-controls { display: none !important; -webkit-appearance: none; }
@media (max-width: 767px) { .ry-hero--video .ry-hero__slide--video { min-height: 440px; } }

/* Overlay header — transparent, white nav over the home hero.
   No solidify-on-scroll: the header is non-sticky here and scrolls away with
   the hero (which fills the first screen). Activated by the `ry-overlay-hero`
   class the hero component sets on <html> when a hero renders. */
.ry-overlay-hero .ry-header {
    position: relative; z-index: 20;
    background: transparent;
    border-bottom: 0; /* fix visible line over home video */
}
.ry-overlay-hero .ry-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(17, 17, 17, .34), rgba(17, 17, 17, 0));
}
.ry-overlay-hero .ry-hero { margin-top: calc(-1 * var(--ry-header-h)); }
.ry-overlay-hero .ry-header .ry-navlink,
.ry-overlay-hero .ry-header .ry-icon-btn,
.ry-overlay-hero .ry-header .ry-logo { color: var(--ry-inverse); }
.ry-overlay-hero .ry-header .ry-navlink:hover,
.ry-overlay-hero .ry-header .ry-icon-btn:hover { color: var(--ry-inverse-dim); }
.ry-overlay-hero .ry-header .ry-logo img { filter: brightness(0) invert(1); }
.ry-overlay-hero .ry-header .ry-cart-count { background: var(--ry-inverse); color: var(--ry-ink); }

/* ---------- Section scaffolding ---------- */
.ry-section { padding-block: clamp(56px, 8vw, 120px); }
.ry-section--tight { padding-block: clamp(40px, 5vw, 72px); }
.ry-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.ry-section__title { font-size: clamp(1.625rem, 3vw, 2.5rem); line-height: 1.1; }
.ry-rule { height: 1px; background: var(--ry-line); border: 0; margin: 0; }

/* ---------- Product card ---------- */
.ry-card { display: flex; flex-direction: column; position: relative; }
/* Stretched navigation link: sits over the whole card so the card still reads as
   one click target, while the wishlist button stacks above it. */
.ry-card__link { position: absolute; inset: 0; z-index: 1; }
/* Badges are decorative — let clicks through to the link beneath. */
.ry-card .ry-card__badge, .ry-card .ry-discount { pointer-events: none; }
.ry-card__pricerow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ry-card__wish { position: relative; z-index: 2; flex: 0 0 auto; display: inline-flex;
    align-items: center; justify-content: center; width: 32px; height: 32px; margin: -6px -6px -6px 0;
    padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
    color: var(--ry-muted); font-size: 1.0625rem; line-height: 1;
    transition: color .2s ease, background .2s ease; }
[dir="rtl"] .ry-card__wish { margin: -6px 0 -6px -6px; }
.ry-card__wish:hover { color: var(--ry-ink); background: rgba(17, 17, 17, .06); }
.ry-card__wish.is-active { color: #b23b5e; }
.ry-card__wish.is-active:hover { color: #8f2f4b; }
.ry-card__wish.is-busy { opacity: .45; pointer-events: none; }
.ry-card__media { position: relative; overflow: hidden; background: var(--ry-line); aspect-ratio: 3 / 4; display: block; }
.ry-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .5s ease; }
.ry-card:hover .ry-card__media img { transform: scale(1.04); }
.ry-card__badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: var(--ry-ink); color: var(--ry-inverse);
    font-size: calc(0.59375rem * var(--ry-micro)); letter-spacing: calc(.12em * var(--ry-track)); text-transform: uppercase; padding: 5px 10px; border-radius: var(--ry-radius);
}
/* Discount chip — shared by the product card and the PDP preview */
.ry-discount {
    display: inline-flex; align-items: center; vertical-align: middle;
    background: var(--ry-surface); color: var(--ry-ink);
    border: 1px solid var(--ry-line); border-radius: 0;
    font-size: 0.625rem; letter-spacing: .1em; padding: 4px 8px;
}
.ry-discount--corner { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; }
.ry-discount[hidden] { display: none; }
.ry-card__body { padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.ry-card__name { font-family: var(--ry-font-display); font-size: 1.25rem; line-height: 1.15; color: var(--ry-ink); }
.ry-card__meta { font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.16em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted); }
.ry-card__price { font-size: 0.8125rem; letter-spacing: .04em; color: var(--ry-ink); margin-top: 2px; }
.ry-card__price .was { color: var(--ry-muted); text-decoration: line-through; margin-right: 8px; }

/* Wide card (home 2x2) */
.ry-wcard { display: grid; grid-template-columns: 1fr 1fr; background: var(--ry-surface); border: 1px solid var(--ry-line); overflow: hidden; }
.ry-wcard__media { position: relative; overflow: hidden; background: var(--ry-line); aspect-ratio: 2 / 3; }
.ry-wcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.ry-wcard:hover .ry-wcard__media img { transform: scale(1.05); }
.ry-wcard__body { padding: clamp(20px, 2.4vw, 34px); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.ry-wcard__name { font-family: var(--ry-font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.05; }
@media (max-width: 575px) { .ry-wcard:not(.ry-wcard--cover) { grid-template-columns: 1fr; } .ry-wcard__body { padding: 14px; gap: 6px; } }

/* Wide card — full-bleed cover variant (matches the .pen "Wide Product Card"):
   a full-width landscape cover image with the name/meta/price caption below. */
.ry-wcard--cover { display: block; grid-template-columns: none; background: transparent; border: 0; overflow: visible; }
.ry-wcard--cover .ry-wcard__media { aspect-ratio: 16 / 10; border: 1px solid var(--ry-line); }
.ry-wcard--cover .ry-wcard__caption { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-top: 18px; }
.ry-wcard--cover .ry-wcard__caption-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ry-wcard--cover .ry-card__price { white-space: nowrap; }

/* Two-up on phones: portrait media, smaller name, caption stacked under the image */
@media (max-width: 575px) {
    .ry-wcard__media,
    .ry-wcard--cover .ry-wcard__media { aspect-ratio: 3 / 4; }
    .ry-wcard__name { font-size: 1.125rem; line-height: 1.15; }
    .ry-wcard--cover .ry-wcard__caption { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 12px; }
    .ry-wcard .ry-textlink { margin-top: 6px !important; }
}

/* ---------- Story block (dark) ---------- */
.ry-story { background: var(--ry-ink); color: var(--ry-inverse); }
.ry-story__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.ry-story__media { position: relative; overflow: hidden; min-height: 460px; background: #1F1F1F; }
.ry-story__media img { width: 100%; height: 100%; object-fit: cover; }
.ry-story__copy { display: flex; flex-direction: column; justify-content: center; gap: 22px;
    padding: clamp(44px, 6vw, 96px); }
.ry-story__title { font-family: var(--ry-font-display); font-size: clamp(1.875rem, 3.4vw, 2.875rem); color: var(--ry-inverse); line-height: 1.08; }
.ry-story__body { color: var(--ry-inverse-dim); font-size: 0.9375rem; line-height: 1.85; max-width: 46ch; }
.ry-story .ry-eyebrow { color: var(--ry-inverse-dim); }
.ry-story .ry-textlink { color: var(--ry-inverse); border-color: var(--ry-inverse); }
.ry-story .ry-textlink:hover { color: var(--ry-inverse-dim); border-color: var(--ry-inverse-dim); }
@media (max-width: 991px) { .ry-story__grid { grid-template-columns: 1fr; } .ry-story__media { min-height: 320px; order: -1; } }

/* ---------- Brand statement (home top section) ---------- */
.ry-brandstory { text-align: center; padding-block: clamp(64px, 9vw, 130px); }
.ry-brandstory .ry-eyebrow { display: block; margin-bottom: 28px; }
.ry-brandstory__quote {
    font-family: var(--ry-font-display); font-weight: 400; color: var(--ry-ink);
    font-size: clamp(1.5rem, 3vw, 2.625rem); line-height: 1.3; margin: 0;
}
.ry-brandstory .ry-textlink { margin-top: 34px; }

/* ---------- Featured product showcase (home) ---------- */
.ry-featured { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--ry-ink); }
.ry-featured__media { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--ry-ink); }
.ry-featured__media img { display: block; width: 100%; height: auto; max-height: calc(100vh - var(--ry-header-h)); object-fit: cover; }
.ry-featured__panel { background: var(--ry-ink); color: var(--ry-inverse); display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 5vw, 88px); }
.ry-featured__eyebrow { color: var(--ry-inverse-dim); }
.ry-featured__name { font-family: var(--ry-font-display); color: var(--ry-inverse); font-size: clamp(2.5rem, 4.5vw, 4.125rem); line-height: 1.02; margin: 18px 0 0; }
.ry-featured__rule { border: 0; height: 1px; background: rgba(163, 163, 163, .25); margin: 28px 0; }
.ry-featured__notes { margin: 0; }
.ry-featured__note { display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(163, 163, 163, .2); }
.ry-featured__note:last-child { border-bottom: 0; }
.ry-featured__note dt { margin: 0; font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.18em * var(--ry-track)); text-transform: uppercase; color: var(--ry-inverse-dim); }
.ry-featured__note dd { margin: 0; font-size: 0.9375rem; color: var(--ry-inverse); }
.ry-featured__cta { color: var(--ry-inverse); border-color: var(--ry-inverse); }
.ry-featured__cta:hover { color: var(--ry-inverse-dim); border-color: var(--ry-inverse-dim); }
@media (max-width: 900px) {
    .ry-featured { grid-template-columns: 1fr; }
    .ry-featured__media { order: -1; }
}

/* ---------- Newsletter ---------- */
.ry-news { text-align: center; }
.ry-news__title { font-family: var(--ry-font-display); font-size: clamp(1.625rem, 3vw, 2.5rem); }
.ry-news__form { display: flex; gap: 0; max-width: 460px; margin: 26px auto 0; border-bottom: 1px solid var(--ry-ink); }
.ry-news__form input {
    flex: 1; border: 0; background: transparent; padding: 12px 4px; color: var(--ry-ink);
    font-family: var(--ry-font-sans); font-size: 0.8125rem; letter-spacing: .04em; outline: none;
}
.ry-news__form input::placeholder { color: var(--ry-muted); }
.ry-news__form button {
    border: 0; background: transparent; color: var(--ry-ink); cursor: pointer;
    font-size: calc(0.6875rem * var(--ry-micro)); letter-spacing: calc(.18em * var(--ry-track)); text-transform: uppercase; padding: 0 8px;
}

/* ---------- Footer ---------- */
.ry-footer { background: var(--ry-ink); color: var(--ry-inverse-dim); }
/* Wide brand column on the left (bigger logo + blurb); the link columns share the
   remaining space on the right. Stacks to a single column on mobile. */
.ry-footer__top { display: flex; flex-direction: column; gap: 44px;
    padding-block: clamp(48px, 6vw, 84px); }
.ry-footer__brand-col { max-width: 560px; }
.ry-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; }
.ry-footer__cols > .ry-footer__col { flex: 1 1 150px; min-width: 140px; }
@media (min-width: 900px) {
    .ry-footer__top { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 64px; }
    .ry-footer__brand-col { flex: 1 1 440px; }
    .ry-footer__cols { flex: 1 1 auto; gap: 56px; justify-content: flex-end; }
}
.ry-footer__brand { font-family: var(--ry-font-display); font-size: 2.125rem; color: var(--ry-inverse); }
/* Logo rendered white on the dark footer (works for any monochrome mark). */
.ry-footer__brand-logo { display: inline-block; }
.ry-footer__brand-logo img { height: clamp(96px, 11vw, 132px); width: auto; max-width: 100%; filter: brightness(0) invert(1); }
.ry-footer__blurb { margin-top: 20px; font-size: 0.9375rem; line-height: 1.85; color: var(--ry-inverse-dim); max-width: 42ch; }
.ry-footer__social { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 26px 0 0; padding: 0; }
.ry-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border: 1px solid rgba(163, 163, 163, .35); border-radius: 50%; color: var(--ry-inverse-dim); font-size: 1.125rem;
    transition: color .2s ease, border-color .2s ease, background .2s ease; }
.ry-footer__social a:hover { color: var(--ry-ink); background: var(--ry-inverse); border-color: var(--ry-inverse); }

/* ---------- Cart + Checkout drawer (Alpine) ---------- */
[x-cloak] { display: none !important; }
.ry-overflow-hidden { overflow: hidden; }

.scrim { position: fixed; inset: 0; z-index: 1080; background: rgba(17, 17, 17, .42);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

.drawer { position: fixed; top: 0; right: 0; z-index: 1090; height: 100%; height: 100dvh;
    width: min(420px, 100vw); background: var(--ry-paper); display: flex; flex-direction: column;
    overflow: hidden; transform: translateX(100%); transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
[dir="rtl"] .drawer { right: auto; left: 0; transform: translateX(-100%); }
.drawer.is-open { transform: translateX(0); }
.drawer--cart.cartpanel { width: min(560px, 100vw); }

.cartpanel__head { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--ry-line); }
.cartpanel__title { font-family: var(--ry-font-display); font-size: 1.5rem; line-height: 1.1; color: var(--ry-ink); }
.cartpanel__meta { margin-top: 4px; font-size: calc(0.6875rem * var(--ry-micro)); letter-spacing: calc(.1em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted); }
.drawer__close { background: none; border: 0; color: var(--ry-ink); font-size: 1.625rem; line-height: 1; cursor: pointer; padding: 2px 6px; }
.drawer__close:hover { color: var(--ry-muted); }

.drawer__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 22px 26px 30px; }
.drawer__body.is-loading { opacity: .55; pointer-events: none; }

/* Cart line items */
.cart-empty { padding: 44px 0; text-align: center; color: var(--ry-muted); }
.cart-empty p { margin: 0 0 10px; }
.cart-lines { display: flex; flex-direction: column; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start;
    padding: 16px 0; border-bottom: 1px solid var(--ry-line); }
.cart-line__thumb { width: 64px; height: 80px; object-fit: cover; background: var(--ry-line); display: block; }
.cart-line__name { font-family: var(--ry-font-display); font-size: 1rem; line-height: 1.2; color: var(--ry-ink); }
.cart-line__meta { margin-top: 3px; font-size: 0.6875rem; letter-spacing: .06em; color: var(--ry-muted); }
.cart-line__unit { margin-top: 1px; font-size: 0.75rem; line-height: 1.2; letter-spacing: .02em; color: var(--ry-muted); }
.cart-line__unit span { font-size: calc(0.625rem * var(--ry-micro)); text-transform: uppercase; letter-spacing: calc(.08em * var(--ry-track)); opacity: .7; }
.cart-line__remove { margin-top: 8px; background: none; border: 0; padding: 0; cursor: pointer;
    font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.12em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted);
    text-decoration: underline; text-underline-offset: 3px; }
.cart-line__remove:hover { color: var(--ry-ink); }
.cart-line__price { font-size: 0.8125rem; letter-spacing: .04em; color: var(--ry-ink); white-space: nowrap; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--ry-line); width: max-content; }
.qty__btn { width: 30px; height: 30px; background: none; border: 0; cursor: pointer; color: var(--ry-ink); font-size: 0.9375rem; line-height: 1; }
.qty__btn:hover { background: var(--ry-line); }
.qty__val { min-width: 34px; text-align: center; font-size: 0.8125rem; color: var(--ry-ink); }

.cartpanel__clear { margin: 14px 0 0; background: none; border: 0; padding: 0; cursor: pointer;
    font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.14em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted);
    text-decoration: underline; text-underline-offset: 3px; }
.cartpanel__clear:hover { color: var(--ry-ink); }

/* Checkout form inside the drawer */
.cartpanel__h2 { font-family: var(--ry-font-display); font-size: 1.375rem; color: var(--ry-ink); margin: 26px 0 6px; }
.cartpanel__label { font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.18em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted); margin: 22px 0 10px; }
.cartpanel__sublabel { display: block; font-size: calc(0.625rem * var(--ry-micro)); letter-spacing: calc(.14em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted); margin: 12px 0 6px; }
.cartpanel__fields { display: flex; flex-direction: column; gap: 10px; }

.field__input, .field__select { width: 100%; border: 1px solid var(--ry-line); background: var(--ry-surface, #fff);
    padding: 12px 14px; font-family: var(--ry-font-sans); font-size: 0.875rem; color: var(--ry-ink); outline: none; border-radius: 0; }
.field__input::placeholder { color: var(--ry-muted); }
.field__input:focus, .field__select:focus { border-color: var(--ry-ink); }
.field__phone { display: flex; align-items: stretch; border: 1px solid var(--ry-line); background: var(--ry-surface, #fff); }
.field__phone:focus-within { border-color: var(--ry-ink); }
.field__phone-code { display: inline-flex; align-items: center; padding: 0 12px; font-size: 0.875rem; color: var(--ry-muted); border-right: 1px solid var(--ry-line); background: var(--ry-paper); }
[dir="rtl"] .field__phone-code { border-right: 0; border-left: 1px solid var(--ry-line); }
.field__phone-input { border: 0; flex: 1; min-width: 0; }

/* Shipping option cards */
.ship-grid { display: grid; gap: 10px; }
.ship-grid--two { grid-template-columns: 1fr 1fr; }
.ship-grid--single { grid-template-columns: 1fr; }
.ship-card { text-align: left; border: 1px solid var(--ry-line); background: var(--ry-surface, #fff); padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
[dir="rtl"] .ship-card { text-align: right; }
.ship-card.is-active { border-color: var(--ry-ink); box-shadow: inset 0 0 0 1px var(--ry-ink); }
.ship-card__name { font-size: 0.8125rem; color: var(--ry-ink); }
.ship-card__sub { font-size: 0.6875rem; color: var(--ry-muted); }

/* Paid add-ons (steel card / gift box), shown above the checkout form */
.addon-rows { display: flex; flex-direction: column; gap: 8px; }
.addon { border: 1px solid var(--ry-line); background: var(--ry-surface, #fff); }
.addon.is-on { border-color: var(--ry-ink); }
.addon__head { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0; cursor: pointer; }
.addon__head input { position: absolute; opacity: 0; width: 0; height: 0; }
.addon__box { flex: 0 0 auto; width: 16px; height: 16px; border: 1px solid var(--ry-muted); position: relative; }
.addon__head input[type="checkbox"]:checked ~ .addon__box { border-color: var(--ry-ink); background: var(--ry-ink); }
.addon__head input[type="checkbox"]:checked ~ .addon__box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px;
    border: solid var(--ry-inverse); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.addon__text { flex: 1; min-width: 0; }
.addon__name { display: block; font-size: 0.8125rem; color: var(--ry-ink); }
.addon__desc { display: block; font-size: 0.6875rem; color: var(--ry-muted); margin-top: 2px; }
.addon__price { flex: 0 0 auto; font-size: 0.75rem; color: var(--ry-ink); white-space: nowrap; }
.addon__fields { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 14px; }

/* Express wallet button (Apple Pay / Google Pay) */
.express { margin: 18px 0 0; }
.express[hidden] { display: none; }
.express__label { display: block; text-align: center; color: var(--ry-muted); margin-bottom: 10px;
    font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.18em * var(--ry-track)); text-transform: uppercase; }
#cpExpressElement { min-height: 44px; }
.express__or { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--ry-muted);
    font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.14em * var(--ry-track)); text-transform: uppercase; }
.express__or::before, .express__or::after { content: ""; flex: 1; height: 1px; background: var(--ry-line); }

/* Payment rows */
.payment-rows { display: flex; flex-direction: column; gap: 8px; }
.payment-row { position: relative; display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--ry-line); background: var(--ry-surface, #fff); padding: 12px 14px; cursor: pointer; }
.payment-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.payment-row__dot { flex: 0 0 auto; width: 16px; height: 16px; border: 1px solid var(--ry-muted); border-radius: 50%; margin-top: 2px; position: relative; }
.payment-row input:checked + .payment-row__dot { border-color: var(--ry-ink); }
.payment-row input:checked + .payment-row__dot::after { content: ""; position: absolute; inset: 3px; background: var(--ry-ink); border-radius: 50%; }
.payment-row:has(input:checked) { border-color: var(--ry-ink); }
.payment-row__name { display: block; font-size: 0.8125rem; color: var(--ry-ink); }
.payment-row__desc { display: block; font-size: 0.6875rem; color: var(--ry-muted); margin-top: 2px; }

/* Inline Stripe card, revealed under the card payment row */
.payment-card { display: block; border: 1px solid var(--ry-ink); border-top: 0; background: var(--ry-surface, #fff); padding: 14px; }
.payment-card[hidden] { display: none; }
.payment-card__label { display: block; font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.18em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted); margin-bottom: 8px; }
.payment-card #cpStripeCardElement { background: var(--ry-surface, #fff); }
.payment-card__error { color: #c0392b; font-size: 0.75rem; margin: 8px 0 0; min-height: 1em; }
.payment-card__secure { display: flex; align-items: center; gap: 6px; font-size: 0.6875rem; color: var(--ry-muted); margin-top: 10px; }

/* Discount + coupon */
.cartpanel__discount { display: flex; gap: 10px; align-items: stretch; }
.cartpanel__discount .field__input { flex: 1; }
.link-line { background: none; border: 0; padding: 0; cursor: pointer; font-size: calc(0.6875rem * var(--ry-micro)); letter-spacing: calc(.12em * var(--ry-track)); text-transform: uppercase; color: var(--ry-ink); text-decoration: underline; text-underline-offset: 3px; }
.link-line:hover { color: var(--ry-muted); }
.cartpanel__discount-msg { margin-top: 6px; font-size: 0.75rem; }
.cartpanel__discount-msg.is-ok { color: #2e7d32; }
.cartpanel__discount-msg.is-err { color: #c0392b; }
.cartpanel__coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.cartpanel__coupon-tag { font-size: 0.75rem; color: var(--ry-ink); }

/* Totals */
.cartpanel__total-h { font-family: var(--ry-font-display); font-size: 1.125rem; color: var(--ry-ink); margin: 26px 0 0; }
.cartpanel__sep { color: var(--ry-line); letter-spacing: .4em; margin: 8px 0; }
.cartpanel__price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 0.8125rem; }
.cartpanel__price-label { color: var(--ry-muted); }
.cartpanel__price-val { color: var(--ry-ink); }
.cartpanel__grand { font-family: var(--ry-font-display); font-size: 1.625rem; color: var(--ry-ink); text-align: right; margin: 4px 0 0; }
[dir="rtl"] .cartpanel__grand { text-align: left; }

.cartpanel__terms { margin: 18px 0 0; font-size: 0.71875rem; line-height: 1.6; color: var(--ry-muted); }
.cartpanel__terms-link { color: var(--ry-ink); text-decoration: underline; text-underline-offset: 3px; }
.cartpanel__submit { width: 100%; margin-top: 16px; border: 0; background: var(--ry-ink); color: var(--ry-inverse);
    padding: 15px; font-size: calc(0.75rem * var(--ry-micro)); letter-spacing: calc(.18em * var(--ry-track)); text-transform: uppercase; cursor: pointer; }
.cartpanel__submit:hover { background: #000; }
.cartpanel__submit-tabby { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cartpanel__submit-tabby img { height: 18px; width: auto; }
.cartpanel__continue { width: 100%; margin-top: 10px; background: none; border: 0; cursor: pointer;
    font-size: calc(0.6875rem * var(--ry-micro)); letter-spacing: calc(.12em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted); text-decoration: underline; text-underline-offset: 3px; }
.cartpanel__continue:hover { color: var(--ry-ink); }
.cartpanel__sample-hint { font-size: 0.75rem; color: var(--ry-muted); }

.cartpanel__footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--ry-line); text-align: center; }
.cartpanel__footer p { margin: 2px 0; font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.1em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted); }

@media (max-width: 575px) {
    .drawer--cart.cartpanel { width: 100vw; }
    .ship-grid--two { grid-template-columns: 1fr; }
}
.ry-footer__col h6 { font-size: 0.8125rem; letter-spacing: calc(.18em * var(--ry-track)); text-transform: uppercase; color: var(--ry-inverse); margin-bottom: 18px; font-family: var(--ry-font-sans); }
.ry-footer__col a { display: block; font-size: 0.9375rem; color: var(--ry-inverse-dim); padding: 6px 0; }
.ry-footer__col a:hover { color: var(--ry-inverse); }
.ry-footer__bottom { border-top: 1px solid rgba(163, 163, 163,.25); padding-block: 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-size: 0.8125rem; letter-spacing: calc(.12em * var(--ry-track)); text-transform: uppercase; color: var(--ry-inverse-dim); }
/* Social icons reused on the contact page. The footer's palette is built for
   the dark footer, where ink-on-paper hover would be invisible on paper. */
.ry-contact-socials .ry-footer__social a { border-color: var(--ry-line); color: var(--ry-muted); }
.ry-contact-socials .ry-footer__social a:hover {
    background: var(--ry-ink); border-color: var(--ry-ink); color: var(--ry-paper); }

/* Platform credit in the footer bottom bar — quiet by default, lifts to
   paper on hover like the rest of the inverse footer links. */
.ry-footer__credit a { color: var(--ry-inverse-dim); text-decoration: none;
    border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.ry-footer__credit a:hover { color: var(--ry-inverse); border-bottom-color: var(--ry-inverse); }

@media (max-width: 767px) {
    .ry-footer__cols { gap: 28px 32px; }
    .ry-footer__cols > .ry-footer__col { flex: 1 1 40%; }
    .ry-footer__bottom { flex-direction: column; text-align: center; }
}

/* ---------- Shop ---------- */
/* Category header — info beside image (single column when no image) */
.ry-cathero { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 3vw, 40px); align-items: center; }
.ry-cathero__media { overflow: hidden; border-radius: var(--ry-radius); background: var(--ry-line); aspect-ratio: 16 / 10; }
.ry-cathero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) {
    .ry-cathero { grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 5vw, 80px); }
    .ry-cathero--noimg { grid-template-columns: 1fr; }
    .ry-cathero__media { aspect-ratio: 4 / 3; }
}
.ry-shop__intro { max-width: 60ch; color: var(--ry-muted); font-size: 0.9375rem; line-height: 1.75; }
.ry-shop__query { color: var(--ry-muted); font-size: 0.9375rem; }
.ry-shop__query strong { color: var(--ry-ink); font-weight: 400; }
.ry-shop__query a { margin-inline-start: 10px; font-size: calc(0.75rem * var(--ry-micro)); letter-spacing: calc(.12em * var(--ry-track)); text-transform: uppercase;
    color: var(--ry-muted); border-bottom: 1px solid var(--ry-line); }
.ry-shop__query a:hover { color: var(--ry-ink); border-bottom-color: var(--ry-ink); }
.ry-shop__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    border-top: 1px solid var(--ry-line); border-bottom: 1px solid var(--ry-line); padding: 16px 0; margin-block: 40px; }
@media (max-width: 575px) {
    .ry-shop__bar { gap: 10px; padding: 12px 0; margin-block: 28px; }
    .ry-shop__bar > .d-flex { gap: 14px !important; }
    .ry-shop__bar select { max-width: 46vw; text-overflow: ellipsis; }
}
.ry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2vw, 34px); }
@media (max-width: 991px) { .ry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } }
@media (max-width: 480px) { .ry-grid { gap: 16px; } }

/* ---------- PDP ---------- */
.ry-pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.ry-pdp__gallery { display: flex; flex-direction: column; gap: 14px; }
/* pan-y keeps vertical page scroll native while leaving horizontal drags to the
   swipe handler, so no preventDefault (and no scroll-jank) is needed. */
.ry-pdp__main { position: relative; overflow: hidden; background: var(--ry-line); aspect-ratio: 4 / 5;
    touch-action: pan-y; }
/* Native image-drag would otherwise hijack the pointer gesture on desktop. */
.ry-pdp__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .22s ease;
    user-select: none; -webkit-user-drag: none; }
.ry-pdp__main.is-swiping { cursor: grabbing; }
.ry-pdp__thumbs { display: flex; gap: 12px; }
.ry-pdp__thumb { width: 76px; height: 92px; object-fit: cover; background: var(--ry-line); cursor: pointer; border: 1px solid transparent; }
.ry-pdp__thumb.is-active { border-color: var(--ry-ink); }
.ry-pdp__info { position: sticky; top: calc(var(--ry-header-h) + 24px); display: flex; flex-direction: column; }
.ry-pdp__title { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.03; margin-top: 8px; }
.ry-pdp__price { font-size: 1.0625rem; letter-spacing: .04em; margin-top: 16px; }
.ry-pdp__price .was { color: var(--ry-muted); text-decoration: line-through; margin-right: 10px; }
.ry-pdp__price .ry-discount { margin-inline-start: 10px; }
.ry-pdp__desc { color: var(--ry-muted); font-size: 0.9375rem; line-height: 1.85; margin-top: 22px; max-width: 52ch; }
.ry-pdp__divider { height: 1px; background: var(--ry-line); border: 0; margin: 12px 0; }
.ry-pdp__qty { display: inline-flex; align-items: stretch; border: 1px solid var(--ry-ink); border-radius: var(--ry-radius); align-self: stretch; }
.ry-pdp__qty button { width: 46px; border: 0; background: transparent; color: var(--ry-ink); font-size: 1.125rem; cursor: pointer; }
.ry-pdp__qty input { width: 52px; border: 0; border-inline: 1px solid var(--ry-line); text-align: center;
    background: transparent; font-size: 0.9375rem; color: var(--ry-ink); -moz-appearance: textfield; }
.ry-pdp__qty input::-webkit-outer-spin-button, .ry-pdp__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Wishlist heart — matches the qty stepper's height so the action row stays level */
.ry-wishbtn { display: inline-flex; align-items: center; justify-content: center; align-self: stretch;
    width: 52px; padding: 0; border: 1px solid var(--ry-ink); border-radius: var(--ry-radius);
    background: transparent; color: var(--ry-ink); font-size: 1.2rem; cursor: pointer;
    transition: background .25s ease, color .25s ease; }
.ry-wishbtn:hover { background: var(--ry-ink); color: var(--ry-inverse); }
.ry-wishbtn.is-active { color: #b23b5e; }
.ry-wishbtn.is-active:hover { background: transparent; color: #8f2f4b; }
.ry-wishbtn.is-busy { opacity: .45; pointer-events: none; }
@media (max-width: 991px) { .ry-pdp { grid-template-columns: 1fr; } .ry-pdp__info { position: static; } }

/* Notes pyramid */
.ry-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 56px); }
.ry-notes__col h6 { font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.2em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted);
    margin-bottom: 16px; font-family: var(--ry-font-display); }
.ry-notes__col ul { list-style: none; padding: 0; margin: 0; }
.ry-notes__col li { font-family: var(--ry-font-sans); font-size: 1.1875rem; padding: 5px 0; color: var(--ry-ink); }
@media (max-width: 640px) { .ry-notes { grid-template-columns: 1fr; gap: 26px; } }

/* Detail sections (custom_fields renderer) */
.ry-detail + .ry-detail { margin-top: clamp(32px, 4vw, 56px); }
.ry-detail__label { font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.2em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted); margin-bottom: 14px; }
.ry-detail__story { font-family: var(--ry-font-sans); font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.5; color: var(--ry-ink); max-width: 60ch; }
.ry-specs { border-top: 1px solid var(--ry-line); }
.ry-specs__row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--ry-line); }
.ry-specs__row dt { color: var(--ry-muted); font-size: calc(0.75rem * var(--ry-micro)); letter-spacing: calc(.1em * var(--ry-track)); text-transform: uppercase; }
.ry-specs__row dd { margin: 0; font-size: 0.875rem; color: var(--ry-ink); text-align: right; }

/* PDP content bands: white facts section + 2-col editorial story */
.ry-section--surface { padding-bottom: 6rem; }
.ry-section--related { background: var(--ry-surface); }
.ry-pdp-story { display: grid; grid-template-columns: 1fr 2.2fr; gap: clamp(28px, 4vw, 72px); align-items: start; }
.ry-pdp-story--stacked { margin-top: clamp(28px, 4vw, 48px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--ry-line); }
.ry-pdp-story__aside { padding-top: 4px; }
.ry-pdp-story__body { font-family: var(--ry-font-sans); font-size: clamp(1.1875rem, 1.9vw, 1.625rem); line-height: 1.6; color: var(--ry-ink); max-width: 62ch; }
.ry-pdp-story__body p { margin: 0 0 .8em; }
.ry-pdp-story__body p:last-child { margin-bottom: 0; }

/* ── Product detail — single-band accordion (current PDP layout) ── */
.ry-acc-sections { max-width: 780px; margin-inline: auto; }
.ry-acc { border-top: 1px solid var(--ry-line); }
.ry-acc:last-of-type { border-bottom: 1px solid var(--ry-line); }
.ry-acc__h { margin: 0; }
.ry-acc__head {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    background: none; border: 0; color: var(--ry-ink); cursor: pointer; text-align: start;
    padding: 20px 2px; font-family: var(--ry-font-display);
    font-size: calc(0.78125rem * var(--ry-micro)); letter-spacing: calc(.14em * var(--ry-track)); text-transform: uppercase;
}
.ry-acc__head:hover { color: var(--ry-muted); }
.ry-acc__icon { flex: 0 0 auto; font-size: 20px; font-family: var(--ry-font-sans); line-height: 1; color: var(--ry-muted); transition: transform .4s ease; }
.ry-acc.is-open .ry-acc__icon { transform: rotate(45deg); }   /* + → × */
.ry-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.ry-acc.is-open .ry-acc__panel { grid-template-rows: 1fr; }
.ry-acc__inner { overflow: hidden; }
.ry-acc__inner > * { padding: 0 2px 26px; }
.ry-acc__inner .ry-detail__story { font-size: clamp(1rem, 1.5vw, 1.1875rem); line-height: 1.7; max-width: none; }
.ry-acc__inner .ry-notes { grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 40px); }
@media (max-width: 640px) { .ry-acc__inner .ry-notes { grid-template-columns: 1fr 1fr; gap: 20px; } }
/* Dark story band context: inverse text + dimmer divider */
.ry-story .ry-pdp-story__body { color: var(--ry-inverse); }
.ry-story .ry-pdp-story--stacked { border-top-color: rgba(163, 163, 163, .28); }
@media (max-width: 768px) { .ry-pdp-story { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Cart ---------- */
.ry-cart { display: grid; grid-template-columns: 1.6fr .9fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.ry-cart__head { display: grid; grid-template-columns: 1fr 132px 120px; gap: 16px; padding-bottom: 14px;
    border-bottom: 1px solid var(--ry-line); font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.16em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted); }
.ry-cart__row { display: grid; grid-template-columns: 1fr 132px 120px; gap: 16px; align-items: center;
    padding: 24px 0; border-bottom: 1px solid var(--ry-line); }
.ry-cart__prod { display: flex; gap: 18px; align-items: flex-start; }
.ry-cart__thumb { width: 84px; height: 96px; object-fit: cover; background: var(--ry-line); flex: 0 0 auto; }
.ry-cart__info { display: flex; flex-direction: column; gap: 7px; min-width: 0; align-items: flex-start; }
.ry-cart__name { font-family: var(--ry-font-display); font-size: 1.25rem; line-height: 1.1; }
.ry-cart__opt { font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.12em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted); }
.ry-cart__unit { font-size: 0.8125rem; letter-spacing: .02em; color: var(--ry-ink); }
.ry-cart__remove { background: none; border: 0; color: var(--ry-muted); font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.14em * var(--ry-track));
    text-transform: uppercase; padding: 0; margin-top: 2px; cursor: pointer; border-bottom: 1px solid transparent; }
.ry-cart__remove:hover { color: var(--ry-ink); border-color: var(--ry-ink); }
.ry-cart__total { text-align: right; font-size: 0.875rem; }
.ry-summary { background: var(--ry-surface); border: 1px solid var(--ry-line); padding: clamp(24px, 3vw, 36px);
    position: sticky; top: calc(var(--ry-header-h) + 24px); }
.ry-summary h6 { font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.2em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted);
    font-family: var(--ry-font-sans); margin-bottom: 22px; }
.ry-summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 0.8125rem; }
.ry-summary__row .k { color: var(--ry-muted); }
.ry-summary__total { display: flex; justify-content: space-between; align-items: baseline;
    border-top: 1px solid var(--ry-line); margin-top: 14px; padding-top: 18px; }
.ry-summary__total .k { font-size: calc(0.75rem * var(--ry-micro)); letter-spacing: calc(.16em * var(--ry-track)); text-transform: uppercase; }
.ry-summary__total .v { font-family: var(--ry-font-display); font-size: 1.625rem; }
.ry-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--ry-line); border-radius: var(--ry-radius); background: var(--ry-surface); }
.ry-qty button { width: 38px; height: 40px; border: 0; background: transparent; color: var(--ry-ink); font-size: 1rem; cursor: pointer; }
.ry-qty button:disabled { opacity: .35; cursor: default; }
.ry-qty input { width: 44px; border: 0; border-inline: 1px solid var(--ry-line); text-align: center; background: transparent;
    font-size: 0.875rem; color: var(--ry-ink); -moz-appearance: textfield; }
.ry-qty input::-webkit-outer-spin-button, .ry-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ry-cart__empty { text-align: center; padding-block: clamp(60px, 10vw, 140px); }
@media (max-width: 991px) { .ry-cart { grid-template-columns: 1fr; } .ry-summary { position: static; } }
@media (max-width: 575px) {
    .ry-cart__head { display: none; }
    .ry-cart__row { grid-template-columns: 1fr auto; grid-template-areas: "prod total" "qty total"; row-gap: 14px; }
    .ry-cart__prod { grid-area: prod; } .ry-cart__row > .ry-qty-wrap { grid-area: qty; } .ry-cart__total { grid-area: total; }
}

/* ---------- Breadcrumb ---------- */
.ry-crumb { font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.16em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted); }
.ry-crumb a:hover { color: var(--ry-ink); }

/* ---------- Legal / prose (policy, about) ---------- */
.ry-legal { color: var(--ry-muted); font-size: 0.9375rem; line-height: 1.85; }
.ry-legal h1, .ry-legal h2, .ry-legal h3, .ry-legal h4 { color: var(--ry-ink); font-family: var(--ry-font-display); margin: 1.6em 0 .6em; line-height: 1.2; }
.ry-legal h2 { font-size: 1.5rem; } .ry-legal h3 { font-size: 1.2rem; }
.ry-legal p { margin: 0 0 1.1em; }
.ry-legal a { color: var(--ry-ink); border-bottom: 1px solid var(--ry-line); }
.ry-legal a:hover { color: var(--ry-muted); }
.ry-legal ul, .ry-legal ol { margin: 0 0 1.1em; padding-inline-start: 1.3em; }
.ry-legal li { margin: .35em 0; }
.ry-legal strong { color: var(--ry-ink); }

/* ---------- Form fields (contact) ---------- */
.ry-field { display: block; margin-bottom: 18px; }
/* The caption is a <span> inside `<label class="ry-field">` — a `.ry-field label`
   selector never matched it, so captions rendered as unstyled 15px body text. */
.ry-field > span, .ry-field label { display: block; font-size: calc(0.6875rem * var(--ry-micro)); letter-spacing: calc(.14em * var(--ry-track)); text-transform: uppercase; color: var(--ry-muted); margin-bottom: 8px; }
.ry-field input, .ry-field textarea {
    width: 100%; background: var(--ry-surface); border: 1px solid var(--ry-line); border-radius: var(--ry-radius);
    padding: 12px 14px; font-family: var(--ry-font-sans); font-size: 0.875rem; color: var(--ry-ink); outline: none;
    transition: border-color .2s ease;
}
.ry-field input:focus, .ry-field textarea:focus { border-color: var(--ry-ink); }
.ry-field textarea { resize: vertical; min-height: 130px; }

/* ---------- Mini-cart (AJAX sidebar) ---------- */
.ry-minicart { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.ry-minicart__row { display: flex; gap: 14px; align-items: flex-start; }
.ry-minicart__row img { width: 64px; height: 72px; object-fit: cover; background: var(--ry-line); flex: 0 0 auto; }
.ry-minicart__row .name { font-family: var(--ry-font-display); font-size: 1rem; }
.ry-minicart__row .qtyprice { font-size: 0.75rem; color: var(--ry-muted); margin-top: 4px; }
.ry-minicart__foot { display: flex; justify-content: space-between; border-top: 1px solid var(--ry-line); padding-top: 14px; font-size: 0.8125rem; letter-spacing: .04em; }

/* Payment in flight: dim and lock the panel. The button spinner alone is easy to
   miss on a phone, where a slow gateway just looks like nothing happened. */
.cartpanel__paying { position: absolute; inset: 0; z-index: 3; display: none;
    align-items: center; justify-content: center; padding: 24px 32px; text-align: center;
    background: rgba(250, 250, 250, .92); }
.drawer--cart.is-paying .cartpanel__paying { display: flex; }
.drawer--cart.is-paying .cartpanel__body { opacity: .3; pointer-events: none; user-select: none; }
/* Keep Close clickable above the overlay as an escape hatch. */
.drawer--cart.is-paying .cartpanel__head { position: relative; z-index: 4; opacity: .55; }
.cartpanel__paying-inner { display: grid; justify-items: center; gap: 14px; }
.cartpanel__paying-spin { width: 30px; height: 30px; border: 2px solid var(--ry-ink);
    border-inline-end-color: transparent; border-radius: 50%; animation: ry-spin .8s linear infinite; }
.cartpanel__paying-title { font-family: var(--ry-font-display); font-size: 1.25rem; color: var(--ry-ink); margin: 0; }
.cartpanel__paying-note { font-size: 0.8125rem; line-height: 1.6; color: var(--ry-muted); margin: 0; max-width: 34ch; }

/* ---------- Helpers ---------- */
/* Busy state for action buttons (checkout submit, newsletter subscribe): keeps
   the label, appends a spinner, blocks re-submits. */
.ry-busy { pointer-events: none; opacity: .8; }
.ry-busy::after { content: ""; display: inline-block; width: 14px; height: 14px;
    margin-inline-start: 10px; vertical-align: -2px; border: 2px solid currentColor;
    border-inline-end-color: transparent; border-radius: 50%; animation: ry-spin .7s linear infinite; }
@keyframes ry-spin { to { transform: rotate(360deg); } }

/* Inline form feedback + Turnstile widget spacing */
.ry-formnote { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px;
    border: 1px solid var(--ry-line); border-radius: var(--ry-radius);
    background: var(--ry-surface); font-size: 0.9375rem; color: var(--ry-ink); }
.ry-formnote i { font-size: 1.05rem; line-height: 1.4; }
.ry-formnote--ok { border-color: #9bb08a; background: #f2f6ec; color: #46603a; }
.ry-formnote--err { border-color: #d3a6a6; background: #fbf1f1; color: #8c3b3b; }

/* Flash notice inside the cart drawer */
.cartpanel__note { margin-bottom: 18px; font-size: 0.875rem; line-height: 1.5; }
.cartpanel__note-x { margin-inline-start: auto; flex: 0 0 auto; background: none; border: 0; padding: 0 2px;
    font-size: 1.25rem; line-height: 1; color: inherit; opacity: .6; cursor: pointer; }
.cartpanel__note-x:hover { opacity: 1; }
.cf-turnstile { max-width: 100%; overflow: hidden; }
.cf-turnstile-error { color: #b23b3b; font-size: 0.8125rem; margin: 6px 0 0; }

.ry-fade-up { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.ry-fade-up.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Customer account (dashboard)
   Every value below comes from an --acc-* token. To re-skin the dashboard for
   another brand, override this token block only — no rule below needs touching.
   ========================================================================== */
:root {
    --acc-surface:      var(--ry-surface);
    --acc-surface-2:    var(--ry-paper);
    --acc-ink:          var(--ry-ink);
    --acc-muted:        var(--ry-muted);
    --acc-line:         var(--ry-line);
    --acc-accent:       var(--ry-ink);        /* active nav item + primary button fill */
    --acc-on-accent:    var(--ry-inverse);
    --acc-accent-hover: #000;
    --acc-danger:       #9a5a4a;
    --acc-danger-bg:    #f7ece9;

    --acc-font:         var(--ry-font-sans);
    --acc-font-display: var(--ry-font-display);

    --acc-radius:       var(--ry-radius);
    --acc-radius-pill:  999px;
    --acc-pad:          22px;
    --acc-gap:          clamp(24px, 3vw, 48px);
    --acc-sidebar-w:    260px;
    --acc-shadow:       none;
}

.acc { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 96px); font-family: var(--acc-font); }
.acc-grid { display: grid; grid-template-columns: var(--acc-sidebar-w) 1fr; gap: var(--acc-gap); align-items: start; }
/* Grid/flex children default to min-width:auto, so a wide table or long string
   pushes the column past the viewport instead of scrolling inside .acc-table-wrap. */
.acc-grid > *, .acc-main { min-width: 0; }
@media (max-width: 991px) { .acc-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- Sidebar ---- */
.acc-sidebar { border: 1px solid var(--acc-line); border-radius: var(--acc-radius); background: var(--acc-surface);
    box-shadow: var(--acc-shadow); padding: var(--acc-pad); position: sticky; top: calc(var(--ry-header-h) + 16px); }
.acc-user { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--acc-line); }
.acc-avatar { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
    background: var(--acc-accent); color: var(--acc-on-accent); font-family: var(--acc-font-display); font-size: 1.125rem; }
.acc-user-name { margin: 0; font-size: 0.9375rem; color: var(--acc-ink); }
.acc-user-email { margin: 2px 0 0; font-size: 0.75rem; color: var(--acc-muted); overflow-wrap: anywhere; }
.acc-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.acc-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
    border: 0; border-radius: var(--acc-radius); background: none; font-family: inherit; font-size: 0.875rem;
    color: var(--acc-ink); text-align: start; cursor: pointer; transition: background .2s ease, color .2s ease; }
.acc-link i { font-size: 1.05rem; color: var(--acc-muted); transition: color .2s ease; }
.acc-link:hover { background: var(--acc-surface-2); color: var(--acc-ink); }
.acc-link.is-active { background: var(--acc-accent); color: var(--acc-on-accent); }
.acc-link.is-active i { color: var(--acc-on-accent); }
.acc-divider { border: 0; border-top: 1px solid var(--acc-line); margin: 12px 0; opacity: 1; }
.acc-logout, .acc-logout i { color: var(--acc-danger); }
.acc-logout:hover { background: var(--acc-danger-bg); color: var(--acc-danger); }

/* Below the sidebar breakpoint the nav becomes a horizontal rail */
@media (max-width: 991px) {
    .acc-sidebar { position: static; padding: 16px; }
    .acc-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: thin; }
    .acc-link { flex: 0 0 auto; width: auto; white-space: nowrap; padding: 9px 14px; }
    .acc-divider { display: none; }
    .acc-nav form { flex: 0 0 auto; }
}

/* ---- Page head ---- */
.acc-head { margin-bottom: 26px; }
.acc-eyebrow { display: block; font-size: calc(0.6875rem * var(--ry-micro)); letter-spacing: calc(.22em * var(--ry-track));
    text-transform: uppercase; color: var(--acc-muted); margin-bottom: 8px; }
.acc-title { font-family: var(--acc-font-display); font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1;
    color: var(--acc-ink); margin: 0; }

/* ---- Stat tiles ---- */
.acc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 14px; margin-bottom: 26px; }
.acc-stat { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--acc-line);
    border-radius: var(--acc-radius); background: var(--acc-surface); box-shadow: var(--acc-shadow); }
.acc-stat-ic { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
    background: var(--acc-surface-2); color: var(--acc-ink); font-size: 1.15rem; }
.acc-stat-val { font-family: var(--acc-font-display); font-size: 1.625rem; line-height: 1; color: var(--acc-ink); }
.acc-stat-label { font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.14em * var(--ry-track));
    text-transform: uppercase; color: var(--acc-muted); margin-top: 4px; }

/* ---- Cards ---- */
.acc-card { padding: var(--acc-pad); border: 1px solid var(--acc-line); border-radius: var(--acc-radius);
    background: var(--acc-surface); box-shadow: var(--acc-shadow); margin-bottom: 20px; }
.acc-card-title { display: flex; align-items: center; gap: 8px; font-family: var(--acc-font-display); font-size: 1.25rem;
    color: var(--acc-ink); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--acc-line); }
.acc-card-title i { font-size: 1.05rem; color: var(--acc-muted); }
.acc-link-text { margin-inline-start: auto; font-size: calc(0.6875rem * var(--ry-micro));
    letter-spacing: calc(.12em * var(--ry-track)); text-transform: uppercase; color: var(--acc-muted); }
.acc-link-text:hover { color: var(--acc-ink); }

/* ---- Loyalty ---- */
.acc-points { text-align: center; padding: 18px 0; }
.acc-points-big { font-family: var(--acc-font-display); font-size: 2.75rem; line-height: 1; color: var(--acc-ink); }
.acc-points-label { font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.16em * var(--ry-track));
    text-transform: uppercase; color: var(--acc-muted); margin-top: 6px; }
.acc-progress { height: 4px; background: var(--acc-line); border-radius: var(--acc-radius-pill); overflow: hidden; }
.acc-progress > * { display: block; height: 100%; background: var(--acc-accent); }
.acc-voucher { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 14px 16px; margin-bottom: 10px; border: 1px dashed var(--acc-line); border-radius: var(--acc-radius);
    background: var(--acc-surface-2); font-size: 0.875rem; color: var(--acc-ink); }

/* ---- Buttons ---- */
.acc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1; cursor: pointer;
    padding: 13px 26px; border: 1px solid var(--acc-accent); border-radius: var(--acc-radius);
    background: var(--acc-accent); color: var(--acc-on-accent); font-family: inherit;
    font-size: calc(0.6875rem * var(--ry-micro)); letter-spacing: calc(.16em * var(--ry-track)); text-transform: uppercase;
    transition: background .25s ease, color .25s ease; }
.acc-btn:hover { background: var(--acc-accent-hover); color: var(--acc-on-accent); }
.acc-btn-ghost { background: transparent; color: var(--acc-ink); }
.acc-btn-ghost:hover { background: var(--acc-accent); color: var(--acc-on-accent); }

/* ---- Tables ---- */
.acc-table-wrap { overflow-x: auto; }
.acc-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.acc-table th { padding: 10px 12px; border-bottom: 1px solid var(--acc-line); white-space: nowrap;
    font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.14em * var(--ry-track));
    text-transform: uppercase; font-weight: 400; text-align: start; color: var(--acc-muted); }
.acc-table td { padding: 14px 12px; border-bottom: 1px solid var(--acc-line); color: var(--acc-ink); vertical-align: middle; }
.acc-table tr:last-child td { border-bottom: 0; }

/* ---- Badges, rows, empty states ---- */
.acc-badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 4px 10px;
    border: 1px solid var(--acc-line); border-radius: var(--acc-radius-pill); background: var(--acc-surface-2);
    font-size: 0.6875rem; letter-spacing: .04em; color: var(--acc-muted); }
.acc-info-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0;
    border-bottom: 1px dashed var(--acc-line); font-size: 0.875rem; }
.acc-info-row:last-child { border-bottom: 0; }
.acc-info-row .k { color: var(--acc-muted); }
.acc-info-row .v { color: var(--acc-ink); text-align: end; overflow-wrap: anywhere; }
.acc-empty { text-align: center; color: var(--acc-muted); padding-block: clamp(32px, 6vw, 72px); font-size: 0.9375rem; }
.acc-empty i { display: block; font-size: 2.5rem; color: var(--acc-line); margin-bottom: 12px; }

/* ---- Forms ---- */
.acc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 575px) { .acc-grid-2 { grid-template-columns: 1fr; } }
.acc-field { display: flex; flex-direction: column; }
.acc-label { font-size: calc(0.65625rem * var(--ry-micro)); letter-spacing: calc(.14em * var(--ry-track));
    text-transform: uppercase; color: var(--acc-muted); margin-bottom: 6px; }
.acc-input { width: 100%; padding: 12px 14px; border: 1px solid var(--acc-line); border-radius: var(--acc-radius);
    background: var(--acc-surface); font-family: inherit; font-size: 0.875rem; color: var(--acc-ink); outline: none;
    transition: border-color .2s ease; }
.acc-input:focus { border-color: var(--acc-accent); }
.acc-input[readonly] { background: var(--acc-surface-2); color: var(--acc-muted); }
.acc-help { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--acc-muted); margin-top: 6px; }

/* ---- Wishlist ---- */
.acc-wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 18px; }
.acc-wish { display: flex; flex-direction: column; border: 1px solid var(--acc-line); border-radius: var(--acc-radius);
    background: var(--acc-surface); box-shadow: var(--acc-shadow); overflow: hidden; }
.acc-wish-img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--acc-line); }
.acc-wish-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-wish-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 14px; }
.acc-wish-name { font-family: var(--acc-font-display); font-size: 1.0625rem; line-height: 1.2; color: var(--acc-ink); }
.acc-wish-price { font-size: 0.8125rem; letter-spacing: .04em; color: var(--acc-muted); }
.acc-wish-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 0 14px; }
.acc-wish-actions > * { flex: 1 1 auto; }
.acc-wish-actions .acc-btn { width: 100%; }
