/* ==========================================================================
   ROAST — "Ember & Origin" · ScaanMe store theme "roast-coffee-store"
   Specialty coffee roastery · roasted-bean brown var(--tk-bg) / crema-amber var(--rc-accent)
   Fraunces (variable serif) display · Inter (variable) body · Tajawal (Arabic)
   Mobile-first · logical properties (RTL-safe) · prefers-reduced-motion aware
   Geometry: soft "burlap bag" corners + brass hairline + roast-meter fill bars
   Signature motion: "Steam rise" (2 wisps drift up from the hero cup) +
                     roast-level bars fill light->dark on hover.
   ========================================================================== */

:root {
    --rc-bg: var(--tk-bg);          /* roasted-bean brown */
    --rc-panel: #241810;       /* raised panel */
    --rc-panel-2: #2E2014;     /* second elevation tier */
    --rc-cream: #F7EEE2;       /* light card surface */
    --rc-txt: #F4EADD;         /* primary text on dark */
    --rc-muted: #B49C84;       /* muted clay text */
    --rc-line: color-mix(in srgb, var(--rc-accent) 18%, transparent);
    --rc-line-soft: color-mix(in srgb, var(--rc-accent) 10%, transparent);
    --rc-line-strong: color-mix(in srgb, var(--rc-accent) 36%, transparent);
    --rc-accent: var(--rc-accent);      /* crema-amber — THE single accent */
    --rc-accent-deep: #B26E2A;
    --rc-accent-glow: color-mix(in srgb, var(--rc-accent) 22%, transparent);
    --rc-ink: var(--tk-bg);         /* dark text on cream cards */
    --rc-ink-soft: #5A4631;

    --rc-r: 18px;              /* soft bag corner */
    --rc-r-sm: 12px;
    --rc-r-pill: 999px;

    --rc-font-d: 'Fraunces', 'Tajawal', Georgia, 'Times New Roman', serif;
    --rc-font-b: 'Inter', 'Tajawal', system-ui, -apple-system, sans-serif;
    --rc-font-num: 'Fraunces', 'Inter', system-ui, sans-serif;
    --rc-ease: cubic-bezier(.33, .8, .27, 1);
    --rc-shadow: 0 18px 44px -20px rgba(0, 0, 0, .72);
    --rc-shadow-soft: 0 8px 24px -16px rgba(0, 0, 0, .6);
}

html { scroll-behavior: smooth; }

body {
    background: var(--rc-bg) !important;
    color: var(--rc-txt);
    font-family: var(--rc-font-b);
    font-weight: 400;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    padding-block-end: 76px; /* mobile dock clearance */
    /* faint roasted radial warmth top-centre — CSS only, no image */
    background-image:
        radial-gradient(120% 70% at 50% -8%, color-mix(in srgb, var(--rc-accent) 12%, transparent), transparent 60%);
    background-attachment: fixed;
}

body[dir="rtl"] { font-family: 'Tajawal', var(--rc-font-b); }
body[dir="rtl"] .rc-display,
body[dir="rtl"] .rc-hero-title,
body[dir="rtl"] .rc-card-name,
body[dir="rtl"] .rc-product-name { font-family: 'Tajawal', var(--rc-font-d); font-weight: 700; }

img { max-width: 100%; }
a { color: var(--rc-txt); }
a:hover { color: var(--rc-accent); }

/* ---------- Shell / layout -------------------------------------------- */
.rc-page { min-height: 100vh; display: flex; flex-direction: column; }
.rc-main { flex: 1 0 auto; }
.rc-shell { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 18px; }
.rc-section { margin-block: 44px; }

/* ---------- Type ------------------------------------------------------- */
.rc-display {
    font-family: var(--rc-font-d);
    font-weight: 560;
    font-optical-sizing: auto;
    letter-spacing: -.01em;
    line-height: 1.1;
    color: var(--rc-txt);
    margin: 0;
}

.rc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--rc-font-b);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--rc-accent);
}
.rc-eyebrow::before {
    content: "";
    width: 18px; height: 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, var(--rc-accent) 0 28%, transparent 30%),
        conic-gradient(from 0deg, var(--rc-accent-deep), var(--rc-accent), var(--rc-accent-deep));
    -webkit-mask: radial-gradient(circle at 50% 50%, transparent 0 30%, #000 32% 70%, transparent 72%);
    mask: radial-gradient(circle at 50% 50%, transparent 0 30%, #000 32% 70%, transparent 72%);
    flex-shrink: 0;
}

.rc-sechead { display: flex; flex-direction: column; gap: 10px; margin-block-end: 20px; }
.rc-sechead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.rc-sechead .rc-display { font-size: clamp(1.6rem, 5.4vw, 2.3rem); }
.rc-sechead-link {
    font-size: 12px; font-weight: 600; letter-spacing: .04em;
    color: var(--rc-accent); text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    transition: gap .25s var(--rc-ease), color .25s var(--rc-ease);
}
.rc-sechead-link::after { content: "\2192"; }
.rc-sechead-link:hover { gap: 11px; color: var(--rc-txt); }
body[dir="rtl"] .rc-sechead-link::after { content: "\2190"; }
.rc-count {
    font-family: var(--rc-font-num);
    font-size: 13px; color: var(--rc-muted); white-space: nowrap;
    direction: ltr; unicode-bidi: isolate;
}

/* ---------- Buttons / forms -------------------------------------------- */
.rc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 48px; padding-inline: 24px;
    border: 1px solid transparent; border-radius: var(--rc-r-pill);
    font-family: var(--rc-font-b); font-size: 14px; font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .25s var(--rc-ease), color .25s var(--rc-ease),
                border-color .25s var(--rc-ease), transform .2s var(--rc-ease),
                box-shadow .25s var(--rc-ease);
}
.rc-btn-ink {
    background: var(--rc-accent); color: var(--rc-ink) !important; border-color: var(--rc-accent);
    box-shadow: 0 10px 26px -14px var(--rc-accent-glow);
}
.rc-btn-ink:hover { background: var(--rc-accent-deep); border-color: var(--rc-accent-deep); color: #fff !important; transform: translateY(-2px); }
.rc-btn-ghost { background: transparent; color: var(--rc-txt) !important; border-color: var(--rc-line-strong); }
.rc-btn-ghost:hover { border-color: var(--rc-accent); color: var(--rc-accent) !important; }
.rc-btn-paper {
    background: var(--rc-cream); color: var(--rc-ink) !important; border-color: var(--rc-cream);
}
.rc-btn-paper:hover { background: var(--rc-accent); border-color: var(--rc-accent); color: var(--rc-ink) !important; transform: translateY(-2px); }
.rc-btn-block { width: 100%; }

.rc-input, .rc-select {
    height: 48px; width: 100%;
    border: 1px solid var(--rc-line); border-radius: var(--rc-r-sm);
    background: var(--rc-panel); color: var(--rc-txt);
    font-family: inherit; font-size: 15px; padding-inline: 15px;
    transition: border-color .2s var(--rc-ease), box-shadow .2s var(--rc-ease);
    appearance: auto;
}
.rc-input:focus, .rc-select:focus {
    outline: none; border-color: var(--rc-accent);
    box-shadow: 0 0 0 3px var(--rc-accent-glow);
}
.rc-input::placeholder { color: var(--rc-muted); }
.rc-select { padding-inline-end: 40px; }

/* ---------- Topbar ------------------------------------------------------ */
.rc-topbar {
    position: sticky; top: 0; z-index: 1030;
    background: color-mix(in srgb, var(--tk-bg) 86%, transparent);
    -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
    border-block-end: 1px solid var(--rc-line);
}
.rc-topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.rc-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.rc-brand-logo {
    width: 40px; height: 40px; object-fit: cover; flex-shrink: 0;
    border-radius: 50%; border: 1px solid var(--rc-line-strong); background: var(--rc-panel-2);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--rc-accent) 08%, transparent);
}
.rc-brand-name {
    font-family: var(--rc-font-d); font-weight: 560; font-size: 19px; letter-spacing: -.01em; color: var(--rc-txt);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc-topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.rc-cart-trigger {
    position: relative; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--rc-line-strong); border-radius: 50%;
    color: var(--rc-txt); background: transparent; cursor: pointer; text-decoration: none;
    transition: background .25s var(--rc-ease), color .25s var(--rc-ease), border-color .25s var(--rc-ease);
}
.rc-cart-trigger:hover { background: var(--rc-accent); color: var(--rc-ink); border-color: var(--rc-accent); }
.rc-cart-trigger svg { width: 21px; height: 21px; }
.rc-cart-badge {
    position: absolute; top: -5px; inset-inline-end: -5px;
    min-width: 19px; height: 19px; padding-inline: 5px;
    display: flex; align-items: center; justify-content: center;
    background: var(--rc-accent); color: var(--rc-ink);
    border: 2px solid var(--rc-bg);
    border-radius: 10px; font-size: 10px; font-weight: 700; line-height: 1;
    direction: ltr; unicode-bidi: isolate;
}

/* ---------- Notes (session alerts) -------------------------------------- */
.rc-note {
    border: 1px solid var(--rc-line); border-inline-start: 3px solid var(--rc-accent);
    background: var(--rc-panel); border-radius: var(--rc-r-sm);
    padding: 15px 17px; margin-block: 16px 0; font-size: 15px; color: var(--rc-txt);
}
.rc-note-success { border-inline-start-color: #6FBF73; }
.rc-note-danger { border-inline-start-color: var(--tk-secondary); }

/* ---------- Hero (01 — steam-rise over a roastery cover) ---------------- */
/* Full-bleed cover image hero with a scrim + amber caption block and
   two drifting steam wisps anchored upper-centre. The blade ships a
   #rcHeroRail of cover slides (handles the JSON cover array). */
.rc-hero {
    position: relative; margin-block-start: 22px;
    border-radius: var(--rc-r);
    overflow: hidden;
    border: 1px solid var(--rc-line-strong);
    box-shadow: var(--rc-shadow);
    background: var(--rc-panel-2);
    isolation: isolate;
}
.rc-hero-rail {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
    aspect-ratio: 4 / 5;
}
.rc-hero-rail::-webkit-scrollbar { display: none; }
.rc-hero-slide { flex: 0 0 100%; scroll-snap-align: start; }
.rc-hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-hero-scrim {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        linear-gradient(to top, color-mix(in srgb, color-mix(in srgb, var(--tk-bg), #000 30%) 92%, transparent) 4%, color-mix(in srgb, color-mix(in srgb, var(--tk-bg), #000 30%) 42%, transparent) 46%, color-mix(in srgb, color-mix(in srgb, var(--tk-bg), #000 30%) 12%, transparent) 100%),
        radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--rc-accent) 18%, transparent), transparent 58%);
}
.rc-hero-cap {
    position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 4;
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 26px 22px 28px;
}
.rc-hero-title {
    font-family: var(--rc-font-d); font-weight: 580;
    font-size: clamp(2rem, 8.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.02em;
    margin: 0; max-width: 16ch; color: var(--rc-cream);
}
.rc-hero-title em { font-style: italic; color: var(--rc-accent); }
.rc-hero-cap .rc-eyebrow { color: var(--rc-accent); }
.rc-hero-cap .rc-btn { margin-block-start: 4px; }

/* Steam wisps anchored above the cup region of the cover */
.rc-steam {
    position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 8%;
    height: 46%; pointer-events: none; z-index: 3;
    display: flex; justify-content: center;
}
.rc-steam span, .rc-steam i {
    position: absolute; bottom: 0;
    width: 8px; height: 100%;
    border-radius: 999px;
    background: linear-gradient(to top, color-mix(in srgb, var(--tk-text) 0%, transparent), color-mix(in srgb, var(--tk-text) 42%, transparent) 45%, color-mix(in srgb, var(--tk-text) 0%, transparent));
    filter: blur(3px);
    opacity: 0;
    transform: translate3d(0, 14px, 0) scaleY(.7);
    animation: rc-steam 4.4s var(--rc-ease) infinite;
}
.rc-steam span:nth-child(1), .rc-steam i:nth-child(1) { inset-inline-start: 42%; animation-delay: 0s; }
.rc-steam span:nth-child(2), .rc-steam i:nth-child(2) { inset-inline-start: 54%; height: 86%; animation-delay: 1.6s; }
@keyframes rc-steam {
    0%   { opacity: 0; transform: translate3d(0, 18px, 0) scaleY(.6); }
    24%  { opacity: .9; }
    62%  { opacity: .55; }
    100% { opacity: 0; transform: translate3d(6px, -34px, 0) scaleY(1.15); }
}

/* ---------- Trust strip -------------------------------------------------- */
.rc-trust {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0;
    border-block: 1px solid var(--rc-line);
    padding-block: 18px; margin-block: 34px 8px;
}
.rc-trust-item {
    position: relative; display: flex; align-items: center; gap: 9px;
    padding-inline: 20px;
    font-size: 12px; font-weight: 500; letter-spacing: .06em;
    color: var(--rc-muted); text-align: center;
}
.rc-trust-item i { font-size: 18px; color: var(--rc-accent); }
.rc-trust-item + .rc-trust-item::before {
    content: ""; position: absolute; inset-inline-start: -2px; top: 50%; translate: 0 -50%;
    width: 4px; height: 4px; border-radius: 50%; background: var(--rc-accent);
}

/* ---------- Roast-level selector (02 — visual fill bar) ------------------ */
/* THE signature interaction beside steam: a light->dark roast meter that
   FILLS to its roast level on hover (--fill set inline per card). */
.rc-roast-grid {
    display: grid; grid-template-columns: 1fr; gap: 12px;
}
.rc-roast-card {
    position: relative; overflow: hidden;
    background: var(--rc-panel);
    border: 1px solid var(--rc-line); border-radius: var(--rc-r);
    padding: 18px 18px 22px; text-decoration: none; color: var(--rc-txt);
    display: flex; flex-direction: column; gap: 10px;
    transition: border-color .3s var(--rc-ease), transform .3s var(--rc-ease), box-shadow .3s var(--rc-ease);
}
/* the roast meter: light->dark gradient track with an amber fill that
   grows from the inline-start to --fill on hover (transform = GPU-cheap). */
.rc-roast-bar {
    position: absolute; inset-inline: 18px; inset-block-end: 12px; height: 7px;
    border-radius: 999px; overflow: hidden; pointer-events: none;
    background: linear-gradient(to right, color-mix(in srgb, var(--tk-primary), #fff 45%), color-mix(in srgb, var(--tk-primary), #000 28%) 55%, color-mix(in srgb, var(--tk-bg), #fff 9%));
}
.rc-roast-bar::before {
    content: ""; position: absolute; inset-block: 0; inset-inline-start: 0;
    width: var(--fill, 33%); background: var(--rc-accent);
    transform: scaleX(0); transform-origin: inline-start;
    transition: transform .6s var(--rc-ease);
}
.rc-roast-card:hover .rc-roast-bar::before { transform: scaleX(1); }
.rc-roast-card:hover { border-color: var(--rc-line-strong); transform: translateY(-3px); box-shadow: var(--rc-shadow-soft); color: var(--rc-txt); }
.rc-roast-icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--rc-accent-glow); color: var(--rc-accent); font-size: 23px;
}
.rc-roast-name { font-family: var(--rc-font-d); font-weight: 560; font-size: 19px; }
.rc-roast-desc { font-size: 13.5px; color: var(--rc-muted); line-height: 1.55; margin: 0 0 16px; }

/* ---------- Bean catalog cards ------------------------------------------- */
.rc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rc-prodrail {
    display: flex; gap: 14px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
    padding-block: 2px;
}
.rc-prodrail::-webkit-scrollbar { display: none; }
.rc-prodrail .rc-card { flex: 0 0 min(74%, 300px); scroll-snap-align: start; }

.rc-card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--rc-panel);
    border: 1px solid var(--rc-line); border-radius: var(--rc-r);
    overflow: hidden;
    transition: border-color .3s var(--rc-ease), box-shadow .3s var(--rc-ease), transform .3s var(--rc-ease);
}
.rc-card:hover { border-color: var(--rc-line-strong); box-shadow: var(--rc-shadow); transform: translateY(-3px); }
.rc-card-media {
    position: relative; display: block; aspect-ratio: 1 / 1;
    overflow: hidden; background: var(--rc-panel-2);
}
.rc-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--rc-ease), transform .7s var(--rc-ease); }
.rc-card-img-alt { opacity: 0; }
.rc-card:hover .rc-card-img-alt { opacity: 1; }
.rc-card:hover .rc-card-media .rc-card-img:only-child { transform: scale(1.06); }
.rc-flag {
    position: absolute; top: 11px; inset-inline-start: 11px; z-index: 2;
    background: var(--rc-accent); color: var(--rc-ink);
    font-size: 10px; font-weight: 700; letter-spacing: .06em;
    padding: 5px 11px; border-radius: var(--rc-r-pill);
}
.rc-flag-out { background: var(--rc-panel); color: var(--rc-muted); border: 1px solid var(--rc-line-strong); }
.rc-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 15px 16px; gap: 6px; }
.rc-card-link { text-decoration: none; color: inherit; min-width: 0; }
.rc-card-name {
    font-family: var(--rc-font-d); font-weight: 560; font-size: 17px; line-height: 1.25;
    margin: 0; color: var(--rc-txt);
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
/* tasting-notes / origin meta line (the spec-coffee buyer's checklist) */
.rc-card-meta,
.rc-card-notes {
    font-size: 13px; color: var(--rc-muted); margin: 0; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rc-card-stamp {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    font-size: 10.5px; letter-spacing: .02em; color: var(--rc-accent);
    background: var(--rc-accent-glow); border-radius: var(--rc-r-pill);
    padding: 3px 10px;
}
.rc-card-stamp i { font-size: 13px; }
.rc-card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-block-start: auto; padding-block-start: 12px;
    border-block-start: 1px solid var(--rc-line-soft);
}
.rc-price-wrap { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; }
.rc-price { font-family: var(--rc-font-num); font-weight: 560; font-size: 16px; color: var(--rc-txt); direction: ltr; unicode-bidi: isolate; }
.rc-price-old { font-size: 12.5px; color: var(--rc-muted); text-decoration: line-through; direction: ltr; unicode-bidi: isolate; }
.rc-add {
    flex-shrink: 0; width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--rc-accent); color: var(--rc-ink) !important;
    border: 1px solid var(--rc-accent); border-radius: 50%;
    cursor: pointer; text-decoration: none; font-size: 19px;
    transition: background .25s var(--rc-ease), transform .2s var(--rc-ease);
}
.rc-add:hover { background: var(--rc-accent-deep); color: #fff !important; transform: scale(1.08) rotate(-6deg); }

/* ---------- Subscription block (06 — recurring revenue) ------------------ */
.rc-sub {
    background: var(--rc-panel);
    border: 1px solid var(--rc-line); border-radius: var(--rc-r);
    overflow: hidden;
    display: grid; grid-template-columns: 1fr; gap: 0;
    box-shadow: var(--rc-shadow-soft);
}
.rc-sub-head {
    padding: 24px 22px 22px;
    display: flex; flex-direction: column; gap: 10px;
    background:
        radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--rc-accent) 14%, transparent), transparent 62%),
        var(--rc-panel-2);
    border-block-end: 1px solid var(--rc-line);
}
.rc-sub-title { font-family: var(--rc-font-d); font-weight: 560; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.12; color: var(--rc-txt); margin: 0; }
.rc-sub-lead { font-size: 14.5px; color: var(--rc-muted); line-height: 1.6; margin: 0; max-width: 46ch; }
.rc-sub-rows { display: flex; flex-direction: column; }
.rc-sub-row {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 22px;
    transition: background .25s var(--rc-ease);
}
.rc-sub-row + .rc-sub-row { border-block-start: 1px solid var(--rc-line-soft); }
.rc-sub-row:hover { background: var(--rc-accent-glow); }
.rc-sub-row > i { flex-shrink: 0; font-size: 24px; color: var(--rc-accent); }
.rc-sub-row-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rc-sub-row-name { font-family: var(--rc-font-d); font-weight: 560; font-size: 16px; color: var(--rc-txt); }
.rc-sub-row-sub { font-size: 12.5px; color: var(--rc-muted); }
.rc-sub-save {
    flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: .04em;
    color: var(--rc-ink); background: var(--rc-accent);
    border-radius: var(--rc-r-pill); padding: 6px 13px;
    direction: ltr; unicode-bidi: isolate;
}

/* ---------- Brew-guide strip (07 — Espresso · V60 · French Press) -------- */
.rc-brew-rail {
    display: flex; gap: 14px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
    padding-block: 2px;
}
.rc-brew-rail::-webkit-scrollbar { display: none; }
.rc-brew-card {
    position: relative; flex: 0 0 min(76%, 300px); scroll-snap-align: start;
    display: flex; flex-direction: column; gap: 9px;
    background: var(--rc-panel); border: 1px solid var(--rc-line); border-radius: var(--rc-r);
    padding: 20px 18px 18px;
    transition: border-color .3s var(--rc-ease), transform .3s var(--rc-ease);
}
.rc-brew-card:hover { border-color: var(--rc-line-strong); transform: translateY(-3px); }
.rc-brew-num {
    position: absolute; top: 14px; inset-inline-end: 16px;
    font-family: var(--rc-font-num); font-size: 13px; font-weight: 600;
    color: var(--rc-line-strong); letter-spacing: .04em;
    direction: ltr; unicode-bidi: isolate;
}
.rc-brew-icon {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--rc-accent-glow); color: var(--rc-accent); font-size: 24px;
}
.rc-brew-name { font-family: var(--rc-font-d); font-weight: 560; font-size: 17px; margin: 0; color: var(--rc-txt); }
.rc-brew-desc { font-size: 13px; color: var(--rc-muted); margin: 0; line-height: 1.55; }

/* ---------- Category tiles ----------------------------------------------- */
.rc-tilerail {
    display: flex; gap: 14px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
    padding-block: 2px;
}
.rc-tilerail::-webkit-scrollbar { display: none; }
.rc-tile {
    position: relative; flex: 0 0 min(72%, 320px); aspect-ratio: 5 / 4;
    border: 1px solid var(--rc-line); border-radius: var(--rc-r);
    overflow: hidden; scroll-snap-align: start;
    text-decoration: none; background: var(--rc-panel-2); display: block;
}
.rc-tile-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--rc-ease); }
.rc-tile:hover .rc-tile-img { transform: scale(1.06); }
.rc-tile-scrim { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, color-mix(in srgb, var(--tk-bg), #000 30%) 82%, transparent), color-mix(in srgb, color-mix(in srgb, var(--tk-bg), #000 30%) 08%, transparent) 64%); pointer-events: none; }
.rc-tile-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 16px; display: flex; flex-direction: column; gap: 4px; color: var(--rc-cream); }
.rc-tile-kicker { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--rc-accent); }
.rc-tile-name { font-family: var(--rc-font-d); font-weight: 560; font-size: clamp(1.2rem, 4vw, 1.6rem); line-height: 1.15; }
.rc-tile-cta {
    display: inline-flex; align-items: center; gap: 6px; margin-block-start: 5px;
    font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--rc-cream);
}
.rc-tile-cta i { font-size: 15px; transition: transform .3s var(--rc-ease); }
.rc-tile:hover .rc-tile-cta i { transform: translateX(4px); }
body[dir="rtl"] .rc-tile-cta i { transform: scaleX(-1); }
body[dir="rtl"] .rc-tile:hover .rc-tile-cta i { transform: scaleX(-1) translateX(4px); }

/* Categories page grid */
.rc-tilegrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rc-tilegrid .rc-tile { flex: none; aspect-ratio: 16 / 9; }

/* ---------- Category pill rail (filter view) ------------------------------ */
.rc-cathead { margin-block-start: 24px; }
.rc-cat-rail {
    display: flex; gap: 9px; overflow-x: auto; margin-block: 16px 4px;
    scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding-block: 2px;
}
.rc-cat-rail::-webkit-scrollbar { display: none; }
.rc-cat-link {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--rc-line); border-radius: var(--rc-r-pill);
    padding: 9px 16px; background: var(--rc-panel);
    font-size: 13px; font-weight: 500;
    color: var(--rc-txt); text-decoration: none; white-space: nowrap;
    scroll-snap-align: start;
    transition: border-color .2s var(--rc-ease), background .2s var(--rc-ease), color .2s var(--rc-ease);
}
.rc-cat-link img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.rc-cat-link:hover { border-color: var(--rc-accent); color: var(--rc-accent); }
.rc-cat-link.is-active { background: var(--rc-accent); color: var(--rc-ink); border-color: var(--rc-accent); }

/* ---------- Toolbar (search / price / sort) -------------------------------- */
.rc-toolbar {
    display: flex; flex-direction: column; gap: 10px;
    padding: 15px; margin-block: 18px 22px;
    background: var(--rc-panel);
    border: 1px solid var(--rc-line); border-radius: var(--rc-r);
}
.rc-search, .rc-pricef { display: flex; gap: 8px; min-width: 0; }
.rc-search .rc-input, .rc-pricef .rc-input { flex: 1 1 auto; min-width: 0; }

/* ---------- Pagination ------------------------------------------------------ */
.rc-pagination { margin-block: 28px 8px; }
.rc-pagination .justify-content-end { justify-content: center !important; }
.rc-pagination .pagination { display: flex; gap: 6px; margin: 0; flex-wrap: wrap; justify-content: center; }
.rc-pagination .page-link {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding-inline: 10px;
    border: 1px solid var(--rc-line); border-radius: var(--rc-r-pill);
    background: var(--rc-panel); color: var(--rc-txt);
    font-weight: 500; box-shadow: none;
    transition: border-color .2s var(--rc-ease), background .2s var(--rc-ease);
}
.rc-pagination .page-link:hover { border-color: var(--rc-accent); color: var(--rc-accent); }
.rc-pagination .page-item.active .page-link { background: var(--rc-accent); border-color: var(--rc-accent); color: var(--rc-ink); }
.rc-pagination .page-item.disabled .page-link { color: var(--rc-muted); background: transparent; opacity: .55; }

/* ---------- Empty states (pure CSS coffee-bean mark) ------------------------- */
.rc-empty {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    text-align: center; padding: 58px 18px; margin-block: 24px;
    background: var(--rc-panel);
    border: 1px dashed var(--rc-line-strong); border-radius: var(--rc-r);
}
/* coffee-bean mark — a brass-outlined bean with the centre crease (CSS only) */
.rc-empty-mark {
    position: relative; width: 46px; height: 60px;
    border: 2px solid var(--rc-accent); border-radius: 50% / 46%;
    transform: rotate(28deg); margin-block: 8px 14px;
}
.rc-empty-mark::after {
    content: ""; position: absolute; inset-block: 8%; inset-inline-start: 50%;
    width: 2px; background: var(--rc-accent); transform: translateX(-50%);
    border-radius: 2px;
}
.rc-empty-mark-light { border-color: var(--rc-accent); opacity: .85; }
.rc-empty-title { font-family: var(--rc-font-d); font-weight: 560; font-size: 21px; margin: 0; color: var(--rc-txt); }
.rc-empty-sub { color: var(--rc-muted); font-size: 14.5px; margin: 0; max-width: 42ch; }
.rc-empty .rc-btn { margin-block-start: 8px; }

/* ---------- Cart drawer — panel inversion ----------------------------------- */
#offcanvasEnd.rc-drawer {
    background: var(--rc-bg); color: var(--rc-txt);
    width: min(420px, 94vw);
    border-inline-start: 1px solid var(--rc-line);
    background-image: radial-gradient(120% 50% at 50% 0%, color-mix(in srgb, var(--rc-accent) 1%, transparent), transparent 60%);
}
.rc-drawer .offcanvas-header {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding-block: calc(18px + env(safe-area-inset-top)) 16px; padding-inline: 18px;
    border-block-end: 1px solid var(--rc-line);
}
.rc-drawer-title { font-family: var(--rc-font-d); font-weight: 560; font-size: 21px; color: var(--rc-txt); margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-drawer .btn-close { filter: invert(1) sepia(.4) saturate(2) hue-rotate(-10deg); opacity: .8; margin: 0; flex: 0 0 auto; padding: 6px; }
.rc-drawer .offcanvas-body { padding: 16px 18px; }

.rc-cart-item {
    display: flex; gap: 13px; margin-block-end: 11px; padding: 11px;
    background: var(--rc-panel);
    border: 1px solid var(--rc-line); border-radius: var(--rc-r-sm);
}
.rc-cart-item-img { width: 70px; height: 70px; object-fit: cover; flex-shrink: 0; border-radius: var(--rc-r-sm); background: var(--rc-panel-2); }
.rc-cart-item-info { flex: 1; min-width: 0; }
.rc-cart-item-name {
    font-family: var(--rc-font-d); font-weight: 560; font-size: 16px;
    color: var(--rc-txt); margin: 0 0 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc-cart-item-sub {
    display: block; font-size: 12px; color: var(--rc-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sm-cart-variants { color: var(--rc-accent) !important; }
.rc-cart-item-price { margin: 6px 0 9px; font-family: var(--rc-font-num); font-size: 15px; font-weight: 560; color: var(--rc-accent); direction: ltr; unicode-bidi: isolate; }
.rc-cart-item-actions { display: flex; align-items: center; gap: 7px; }
.rc-qty-btn {
    width: 32px; height: 32px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: var(--rc-txt);
    border: 1px solid var(--rc-line-strong); border-radius: 50%;
    cursor: pointer; transition: background .2s var(--rc-ease), border-color .2s var(--rc-ease);
}
.rc-qty-btn:hover { border-color: var(--rc-accent); background: var(--rc-accent-glow); }
.rc-qty-btn svg { width: 15px; height: 15px; }
.rc-qty-num { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; color: var(--rc-txt); direction: ltr; unicode-bidi: isolate; }
.rc-qty-remove { margin-inline-start: auto; color: var(--tk-secondary); border-color: color-mix(in srgb, var(--tk-secondary) 40%, transparent); }
.rc-qty-remove:hover { background: color-mix(in srgb, var(--tk-secondary) 14%, transparent); border-color: var(--tk-secondary); color: var(--tk-secondary); }

.rc-cart-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 46px 14px; }
.rc-cart-empty-text { font-family: var(--rc-font-d); font-weight: 560; font-size: 18px; color: var(--rc-txt); margin: 0; }

.rc-drawer-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--rc-line); }
.rc-cart-total {
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--rc-font-d); font-weight: 560; font-size: 18px;
    color: var(--rc-txt); margin: 0 0 12px;
}
.rc-cart-total-num { color: var(--rc-accent); font-family: var(--rc-font-num); font-size: 21px; direction: ltr; unicode-bidi: isolate; }
.rc-place-order {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    height: 50px; width: 100%;
    background: var(--rc-accent); color: var(--rc-ink) !important;
    border-radius: var(--rc-r-pill); cursor: pointer; text-decoration: none;
    font-size: 14px; font-weight: 700; letter-spacing: .01em;
    transition: background .25s var(--rc-ease), transform .2s var(--rc-ease);
}
.rc-place-order:hover { background: var(--rc-accent-deep); color: #fff !important; transform: translateY(-2px); }
.rc-place-order i { font-size: 18px; }

/* ---------- Modals ------------------------------------------------------------ */
.rc-modal .modal-content {
    position: relative;
    background: var(--rc-panel); color: var(--rc-txt);
    border: 1px solid var(--rc-line); border-radius: var(--rc-r);
    box-shadow: var(--rc-shadow);
}
.rc-modal .modal-header {
    display: flex; align-items: flex-start; gap: 10px; flex-wrap: nowrap;
    padding: 18px 20px; padding-inline-end: 52px; position: relative;
    border-block-end: 1px solid var(--rc-line-soft);
}
.rc-modal .modal-header > :first-child { min-width: 0; flex: 1 1 auto; }
.rc-modal .modal-title { font-family: var(--rc-font-d); font-weight: 560; font-size: 20px; overflow-wrap: anywhere; color: var(--rc-txt); }
.rc-modal-sub { display: block; margin-block-start: 2px; font-size: 13px; color: var(--rc-muted); }
.rc-modal .modal-header .btn-close {
    position: absolute; inset-block-start: 18px; inset-inline-end: 18px; inset-inline-start: auto;
    margin: 0; z-index: 2; filter: invert(1) sepia(.4) saturate(2) hue-rotate(-10deg); opacity: .8;
}
.rc-modal .modal-body { padding: 18px 20px; }
.rc-modal .modal-body .btn-close { position: static; margin-inline-start: auto; filter: invert(1) sepia(.4) saturate(2) hue-rotate(-10deg); }
.rc-modal .modal-footer { border-block-start: 1px solid var(--rc-line-soft); gap: 8px; padding: 14px 20px; }
.rc-modal .form-label {
    font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--rc-muted);
}
.rc-modal .form-control, .rc-modal .form-select {
    border: 1px solid var(--rc-line); border-radius: var(--rc-r-sm);
    background: var(--rc-bg); color: var(--rc-txt); padding-inline: 14px;
    text-overflow: ellipsis;
}
.rc-modal .form-control::placeholder { color: var(--rc-muted); }
.rc-modal .form-control:focus, .rc-modal .form-select:focus {
    border-color: var(--rc-accent); box-shadow: 0 0 0 3px var(--rc-accent-glow); background: var(--rc-bg); color: var(--rc-txt);
}
.rc-modal .form-check-input { background-color: var(--rc-bg); border-color: var(--rc-line-strong); }
.rc-modal .form-check-input:checked { background-color: var(--rc-accent); border-color: var(--rc-accent); }
.rc-modal .form-check-input:focus { border-color: var(--rc-accent); box-shadow: 0 0 0 3px var(--rc-accent-glow); }
.rc-modal .form-check-label { color: var(--rc-txt); }
.rc-modal .text-muted { color: var(--rc-muted) !important; }

/* ---------- Single product ------------------------------------------------------ */
.rc-crumb {
    display: flex; align-items: center; gap: 8px; margin-block: 20px 0;
    font-size: 12px; color: var(--rc-muted);
}
.rc-crumb a { color: var(--rc-muted); text-decoration: none; }
.rc-crumb a:hover { color: var(--rc-accent); }
.rc-crumb-sep { color: var(--rc-line-strong); }
.rc-crumb-cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; color: var(--rc-txt); }

.rc-product { display: grid; grid-template-columns: 1fr; gap: 26px; margin-block: 22px 10px; }
.rc-gallery-main {
    display: block; position: relative; aspect-ratio: 1 / 1;
    border: 1px solid var(--rc-line); border-radius: var(--rc-r);
    overflow: hidden; background: var(--rc-panel-2);
    box-shadow: var(--rc-shadow-soft);
}
.rc-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-thumb-rail {
    display: flex; gap: 10px; margin-block-start: 12px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
}
.rc-thumb-rail::-webkit-scrollbar { display: none; }
.rc-thumb {
    flex: 0 0 72px; aspect-ratio: 1 / 1; display: block;
    border: 1px solid var(--rc-line); border-radius: var(--rc-r-sm);
    overflow: hidden; background: var(--rc-panel-2); scroll-snap-align: start;
    transition: border-color .2s var(--rc-ease);
}
.rc-thumb:hover { border-color: var(--rc-accent); }
.rc-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

.rc-product-name {
    font-family: var(--rc-font-d); font-weight: 580;
    font-size: clamp(1.8rem, 6vw, 2.5rem); line-height: 1.08; letter-spacing: -.02em;
    margin: 12px 0 8px; color: var(--rc-txt);
}
.rc-product-sub { color: var(--rc-muted); font-size: 16px; margin: 0 0 16px; line-height: 1.5; }
.rc-product-price {
    display: flex; align-items: baseline; gap: 12px;
    margin-block: 4px 18px; padding-block-end: 18px;
    border-block-end: 1px solid var(--rc-line);
}
.rc-product-price .rc-price { font-family: var(--rc-font-num); font-size: 26px; font-weight: 560; }
.rc-product-price .rc-price-old { font-size: 16px; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 18px; }
.rc-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 500; letter-spacing: .01em;
    border: 1px solid var(--rc-line); border-radius: var(--rc-r-pill);
    padding: 6px 13px; color: var(--rc-muted); background: var(--rc-panel);
}
.rc-chip-accent { color: var(--rc-accent); border-color: var(--rc-line-strong); background: var(--rc-accent-glow); }
.rc-concierge-hint {
    display: flex; align-items: flex-start; gap: 9px;
    margin-block: 16px 18px; padding: 12px 14px;
    background: var(--rc-panel); border: 1px solid var(--rc-line); border-radius: var(--rc-r-sm);
    font-size: 12.5px; line-height: 1.5; color: var(--rc-muted);
}
.rc-concierge-hint i { font-size: 17px; color: var(--rc-accent); flex-shrink: 0; }

/* Variant picker — restyle the neutral sm- chips to amber pebbles */
.sm-variants { margin-block: 18px; }
.sm-variant-label { color: var(--rc-txt); font-weight: 600; font-size: 13px; letter-spacing: .01em; }
.sm-variant-opt {
    border: 1px solid var(--rc-line-strong) !important;
    border-radius: var(--rc-r-pill) !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    color: var(--rc-txt) !important;
    background: var(--rc-panel) !important;
    opacity: 1 !important;
    transition: background .18s var(--rc-ease), border-color .18s var(--rc-ease), color .18s var(--rc-ease) !important;
}
.sm-variant-opt:hover { border-color: var(--rc-accent) !important; color: var(--rc-accent) !important; }
.sm-variant-opt.is-selected {
    background: var(--rc-accent) !important; color: var(--rc-ink) !important;
    border-color: var(--rc-accent) !important; font-weight: 600 !important;
}
.sm-variant-opt:focus-visible { outline: 2px solid var(--rc-accent) !important; outline-offset: 2px; }

.rc-prose { font-size: 15.5px; line-height: 1.8; color: var(--rc-muted); }
.rc-prose h1, .rc-prose h2, .rc-prose h3, .rc-prose h4 {
    font-family: var(--rc-font-d); font-weight: 560; color: var(--rc-txt);
    margin-block: 1.2em .5em;
}
.rc-prose img { border-radius: var(--rc-r); }
.rc-prose a { color: var(--rc-accent); }
.rc-prose table { width: 100%; border-collapse: collapse; }
.rc-prose th, .rc-prose td { border: 1px solid var(--rc-line); padding: 8px 10px; }
.rc-prose blockquote { border-inline-start: 3px solid var(--rc-accent); margin-inline: 0; padding-inline-start: 14px; color: var(--rc-txt); }

/* Share include — dark re-skin */
.product-share-card { padding-block: 18px 4px; }
.product-share-card .share-title { color: var(--rc-muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.product-share-card .share-icon { border-color: var(--rc-line) !important; background: var(--rc-panel) !important; }
.product-share-card .share-icon:hover { background: var(--rc-panel-2) !important; }
.product-share-card .share-icon.x { color: var(--rc-txt); }

/* ---------- Policy page ----------------------------------------------------------- */
.rc-policy { padding-block: 32px 12px; max-width: 820px; }
.rc-policy .rc-display {
    font-size: clamp(1.9rem, 6vw, 2.6rem);
    margin-block: 12px 18px; padding-block-end: 18px;
    border-block-end: 1px solid var(--rc-line);
}

/* ---------- Footer ------------------------------------------------------------------ */
.rc-footer {
    flex-shrink: 0;
    background: var(--rc-panel); color: var(--rc-muted);
    margin-block-start: 60px; padding-block: 40px 28px;
    border-block-start: 1px solid var(--rc-line);
    background-image: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--rc-accent) 08%, transparent), transparent 60%);
}
.rc-footer a { text-decoration: none; transition: color .2s var(--rc-ease); }
.rc-footer-top {
    display: flex; flex-direction: column; gap: 22px;
    padding-block-end: 24px; border-block-end: 1px solid var(--rc-line);
}
.rc-footer-brand { min-width: 0; }
.rc-footer-wordmark { font-family: var(--rc-font-d); font-weight: 580; font-size: 26px; letter-spacing: -.01em; color: var(--rc-txt); display: block; }
.rc-footer-tag { font-size: 13.5px; color: var(--rc-muted); margin: 7px 0 0; max-width: 48ch; line-height: 1.5; }
.rc-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.rc-social a {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--rc-line-strong); border-radius: 50%;
    color: var(--rc-txt); font-size: 17px;
}
.rc-social a:hover { border-color: var(--rc-accent); background: var(--rc-accent-glow); color: var(--rc-accent); }
.rc-footer-links {
    display: flex; flex-wrap: wrap; gap: 9px 22px;
    padding-block: 18px; border-block-end: 1px solid var(--rc-line);
    font-size: 13px;
}
.rc-footer-links a { color: var(--rc-muted); }
.rc-footer-links a:hover { color: var(--rc-accent); }
.rc-footer-base {
    display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between;
    padding-block-start: 18px; font-size: 13px; color: var(--rc-muted);
}
.rc-footer-base a { color: var(--rc-accent); }
.rc-footer-base a:hover { color: var(--rc-txt); }
.rc-footer-base i { color: var(--rc-accent); }

/* ---------- Mobile dock --------------------------------------------------------------- */
.rc-dock {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 1040;
    display: flex; justify-content: space-around; align-items: stretch;
    background: color-mix(in srgb, var(--tk-bg) 97%, transparent);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-block-start: 1px solid var(--rc-line);
    padding-block: 9px calc(9px + env(safe-area-inset-bottom));
}
.rc-dock a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--rc-muted); text-decoration: none; cursor: pointer;
    font-size: 10.5px; letter-spacing: .04em;
}
.rc-dock a i { font-size: 21px; }
.rc-dock a.is-active, .rc-dock a:hover { color: var(--rc-accent); }

/* ---------- Preloader ----------------------------------------------------------------- */
.preloader-wrapper {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    background: var(--rc-bg);
}
.rc-loader {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid var(--rc-line);
    border-block-start-color: var(--rc-accent);
    animation: rc-spin 1s linear infinite;
}
@keyframes rc-spin { to { transform: rotate(360deg); } }

/* ---------- Wallet partial spacing ---------------------------------------------------- */
.scaanme-wallet-buttons { margin-block: 32px 6px !important; }

/* ---------- >=760px layer ------------------------------------------------------------- */
@media (min-width: 760px) {
    body { padding-block-end: 0; }
    .rc-dock { display: none; }
    .rc-shell { padding-inline: 28px; }
    .rc-section { margin-block: 64px; }
    .rc-topbar-in { height: 72px; }
    .rc-brand-name { font-size: 21px; }

    .rc-hero { margin-block-start: 40px; }
    .rc-hero-rail { aspect-ratio: 21 / 9; }
    .rc-hero-cap { padding: 40px 44px 44px; gap: 16px; }
    .rc-trust { margin-block: 44px 0; }
    .rc-trust-item { padding-inline: 28px; }

    .rc-roast-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .rc-brew-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; overflow: visible; }
    .rc-brew-card { flex-basis: auto; }
    .rc-sub { grid-template-columns: 1fr 1fr; }
    .rc-sub-head { border-block-end: 0; border-inline-end: 1px solid var(--rc-line); }

    .rc-tile { flex-basis: 380px; aspect-ratio: 16 / 10; }
    .rc-tilegrid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .rc-tile-cap { padding: 20px 22px; }

    .rc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .rc-prodrail .rc-card { flex-basis: 300px; }
    .rc-card-body { padding: 16px 18px 18px; }

    .rc-toolbar { flex-direction: row; align-items: center; padding: 14px 16px; }
    .rc-search { flex: 1.5 1 0; }
    .rc-pricef { flex: 1.2 1 0; }
    .rc-toolbar .rc-select { flex: 0 0 210px; width: 210px; }

    .rc-product { grid-template-columns: 1fr 1fr; gap: 48px; margin-block: 40px 16px; align-items: start; }
    .rc-product-info { padding-block-start: 8px; }
    .rc-gallery { position: sticky; top: 90px; }
    .rc-thumb { flex-basis: 84px; }

    .rc-footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

@media (min-width: 1080px) {
    .rc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Reduced motion layer ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .rc-steam span, .rc-steam i { display: none; }                 /* kill the steam wisps */
    /* show the roast meter pre-filled (no hover-grow) so the level still reads */
    .rc-roast-bar::before { transform: scaleX(1) !important; transition: none !important; }
    .rc-tile:hover .rc-tile-img,
    .rc-card:hover .rc-card-media .rc-card-img:only-child { transform: none; }
    body { background-attachment: scroll; }
}


/* ============================================================
   Cart toast — bulletproof compact pill.
   Overrides the legacy inline showAlert() sizing (width:75% /
   inset-inline:0) that made the Tabler solid alert blow up.
   Forces a centered top toast, auto height.
   ============================================================ */
.alert-float {
    position: fixed !important;
    inset-block-start: 16px !important;
    inset-block-end: auto !important;
    bottom: auto !important;
    inset-inline: 16px !important;
    z-index: 4000;
    width: auto !important;
    max-width: 420px !important;
    margin-inline: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 13px 20px !important;
    border: 0 !important;
    border-radius: var(--rc-r-pill) !important;
    text-align: center !important;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.4;
    background: var(--rc-accent) !important;
    color: var(--rc-ink) !important;
    box-shadow: 0 16px 38px -10px rgba(0, 0, 0, .55);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
#errorAlertContainer.alert-float { background: var(--tk-secondary) !important; color: #fff !important; }
.alert-float.show {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
}
.alert-float .btn-close,
.alert-float .alert-icon { display: none !important; }
@media (prefers-reduced-motion: reduce) {
    .alert-float { transition: none; }
}


/* ============================================================
   GLOBAL CONTAINMENT BASELINE (founder remark: diagonal-scroll
   drift / horizontal "wiggle" on mobile + zoom-out).
   overflow-x:clip on html is sticky-safe (unlike hidden) and
   stops the horizontal pan; overscroll-behavior-x:none kills the
   rubber-band; max-width:100% + min-width:0 prevent any child
   from forcing the document wider than the viewport.
   ============================================================ */
html { overflow-x: clip; }
body { overflow-x: clip; overscroll-behavior-x: none; max-width: 100%; }
.car-track, .reel, .film-reel, .tm-track, .letters, .marquee, .marquee-track,
[class*="-track"], [class*="-rail"], [class*="-carousel"], [class*="-scroll"] {
    overscroll-behavior-x: contain;
    max-width: 100vw;
}


/* ============================================================
   RTL refinements (Arabic). Logical props already carry most of
   the layout; these handle the bits that need explicit care.
   Prices / numbers stay LTR (unicode-bidi:isolate already set
   per-element above) so currency glyphs never reorder.
   ============================================================ */
body[dir="rtl"] .rc-eyebrow { flex-direction: row-reverse; }
body[dir="rtl"] .rc-select { background-position: left .75rem center; }
body[dir="rtl"] .rc-tile-cta { flex-direction: row-reverse; justify-content: flex-end; }
body[dir="rtl"] .rc-crumb-cur { max-width: 60vw; }
body[dir="rtl"] .rc-ribbon-item + .rc-ribbon-item::before { inset-inline-start: -2px; }
/* steam wisps drift the other way in RTL so they don't read as "leaning out" */
body[dir="rtl"] .rc-steam span, body[dir="rtl"] .rc-steam i { animation-name: rc-steam-rtl; }
@keyframes rc-steam-rtl {
    0%   { opacity: 0; transform: translate3d(0, 18px, 0) scaleY(.6); }
    24%  { opacity: .9; }
    62%  { opacity: .55; }
    100% { opacity: 0; transform: translate3d(-6px, -34px, 0) scaleY(1.15); }
}
