/* ══════════════════════════════════════════════════════════════════════════
   RaboTeb storefront — redesign 1405 ("Noir & Leaf")
   A near-black frame (bar, header, footer, campaign stages) around calm, light shopping surfaces, with the brand
   green as the one action colour and a single hot colour reserved for discounts. Loaded after store.css and scoped
   to .rb-site (StoreLayout), so other layouts are untouched. A store's own colour (ERP > فروشگاه‌ها) still drives
   --primary; everything green here derives from it.
   ══════════════════════════════════════════════════════════════════════════ */

.rb-site {
    --rb-ink: #0b100e;
    --rb-ink-2: #121916;
    --rb-ink-3: #1b2420;
    --rb-ink-line: rgba(255, 255, 255, .09);
    --rb-on-ink: #f1f5f2;
    --rb-on-ink-muted: #9eaca5;
    --rb-glow: color-mix(in srgb, var(--primary) 68%, #a6ffc6);
    --rb-hot: #e63b1f;
    --rb-hot-soft: #fff0ec;
    --rb-bg: #f3f5f2;
    --rb-surface: #fff;
    --rb-text: #18211d;
    --rb-muted: #67736d;
    --rb-line: #e1e6e2;
    --rb-radius: 18px;
    --rb-radius-sm: 12px;
    --rb-shadow: 0 1px 2px rgba(11, 16, 14, .04), 0 8px 24px -12px rgba(11, 16, 14, .18);
    --rb-shadow-lg: 0 24px 48px -24px rgba(11, 16, 14, .35);

    /* store.css tokens, re-pointed so every existing page follows the new look */
    --bg: var(--rb-bg);
    --surface: var(--rb-surface);
    --border: var(--rb-line);
    --text: var(--rb-text);
    --muted: var(--rb-muted);
    --tint: color-mix(in srgb, var(--primary) 9%, #fff);
    --radius: var(--rb-radius-sm);
    --radius-lg: var(--rb-radius);
    --shadow: var(--rb-shadow);
    --bs-heading-color: var(--rb-text);
    --bs-body-color: var(--rb-text);

    min-height: 100vh;
    color: var(--rb-text);
    background: var(--rb-bg);
}
body:has(.rb-site) { background: var(--rb-bg); }
.rb-site h1, .rb-site h2, .rb-site h3 { color: var(--rb-text); letter-spacing: -.01em; }
.rb-site ::selection { background: color-mix(in srgb, var(--primary) 30%, #fff); }
.rb-site .btn-primary { --bs-btn-border-radius: 999px; font-family: font-bold, tahoma, serif; }
.rb-site .card { --bs-card-border-radius: var(--rb-radius); border: 1px solid var(--rb-line); box-shadow: var(--rb-shadow); }
.rb-site .form-control, .rb-site .form-select { border-radius: var(--rb-radius-sm); border-color: var(--rb-line); min-height: 44px; }
.rb-site .form-control:focus, .rb-site .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--primary) 18%, transparent); }

/* Icons the pages name that the bundled Tabler font predates: the nearest glyph it has (they rendered blank). */
.ti-rosette-discount-check::before { content: "\ed76"; }
.ti-credit-card-pay::before { content: "\ea84"; }
.ti-transfer::before { content: "\f1f4"; }
.ti-shopping-cart-cog::before { content: "\eb20"; }

/* Buttons of the redesign */
.rb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .7rem 1.5rem; border: 1px solid transparent;
    border-radius: 999px; font-family: font-bold, tahoma, serif; font-size: .95rem; line-height: 1; cursor: pointer; transition: transform .15s, background .15s, color .15s, box-shadow .15s; }
.rb-btn:hover { transform: translateY(-1px); }
.rb-btn:active { transform: none; }
.rb-btn .ti { font-size: 1.15rem; }
.rb-btn-primary { color: #fff; background: var(--primary); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--primary) 80%, transparent); }
.rb-btn-primary:hover { color: #fff; background: var(--primary-hover, var(--primary)); }
.rb-btn-ghost { color: var(--rb-on-ink); border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }
.rb-btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.rb-btn-light { color: var(--rb-ink); background: #fff; }
.rb-btn-light:hover { color: var(--rb-ink); background: var(--rb-glow); }

.rb-eyebrow { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; font-family: font-bold, tahoma, serif;
    color: var(--primary); background: var(--tint); }
.rb-empty { padding: 3rem 1.5rem; text-align: center; color: var(--rb-muted); background: var(--rb-surface); border: 1px dashed var(--rb-line); border-radius: var(--rb-radius); }

/* ── Campaign bar ─────────────────────────────────────────────────────────── */
.rb-bar { color: var(--rb-on-ink); background: var(--rb-ink); border-bottom: 1px solid var(--rb-ink-line); font-size: .85rem; }
.rb-bar.plain { background: var(--primary); border: 0; }
.rb-bar-inner { display: flex; align-items: center; justify-content: center; gap: .5rem 1.25rem; min-height: 44px; padding-block: .35rem; flex-wrap: wrap; text-align: center; }
.rb-bar-title { display: inline-flex; align-items: center; gap: .5rem; color: #fff; }
.rb-bar-title:hover { color: var(--rb-glow); }
.rb-bar-title strong { font-family: font-extra-bold, tahoma, serif; font-size: .95rem; }
.rb-flame { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: var(--rb-hot); font-size: .95rem; }
.rb-bar-pct { padding: .1rem .55rem; border-radius: 6px; color: var(--rb-ink); background: var(--rb-glow); font-family: font-extra-bold, tahoma, serif; font-size: .78rem; }
.rb-bar-sub { color: var(--rb-on-ink-muted); }
.rb-count { display: inline-flex; align-items: center; gap: .3rem; direction: rtl; }
.rb-count > span { display: inline-flex; align-items: baseline; gap: .2rem; padding: .15rem .45rem; border-radius: 6px; background: var(--rb-ink-3); }
.rb-count b { min-width: 1.3em; font-family: font-extra-bold, tahoma, serif; font-variant-numeric: tabular-nums; color: #fff; text-align: center; }
.rb-count small { font-size: .68rem; color: var(--rb-on-ink-muted); }
@media (max-width: 767.98px) {
    .rb-bar-sub { display: none; }
    .rb-bar-inner { gap: .4rem .75rem; }
    .rb-count small { display: none; }
    .rb-count > span:not(:last-child)::after { content: ":"; margin-inline-start: .15rem; color: var(--rb-on-ink-muted); }
    .rb-count > span { padding: 0; background: none; }
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.rb-site .rb-header { color: var(--rb-on-ink); background: var(--rb-ink); box-shadow: none; }
.rb-site .rb-header.scrolled { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); }
.rb-site .rb-header .st-head-main { min-height: 78px; }
.rb-site .rb-header .st-logo img { height: 34px; width: auto; }
.rb-site .rb-header .st-search .form-control { height: 48px; color: var(--rb-on-ink); background: var(--rb-ink-2); border: 1px solid var(--rb-ink-line); }
.rb-site .rb-header .st-search .form-control::placeholder { color: var(--rb-on-ink-muted); }
.rb-site .rb-header .st-search .form-control:focus { background: var(--rb-ink-3); border-color: var(--rb-glow); box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--rb-glow) 22%, transparent); }
.rb-site .rb-header .st-search > .ti { color: var(--rb-on-ink-muted); }
.rb-site .rb-header .st-icon-btn { color: var(--rb-on-ink); background: var(--rb-ink-2); border: 1px solid var(--rb-ink-line); border-radius: 14px; }
.rb-site .rb-header .st-icon-btn:hover { color: #fff; border-color: var(--rb-glow); }
.rb-site .rb-header .st-cart .badge { color: #fff; background: var(--rb-hot) !important; border-color: var(--rb-ink); }
.rb-site .rb-header .st-account { color: var(--rb-ink); background: var(--rb-glow); font-family: font-bold, tahoma, serif; }
.rb-site .rb-header .st-account:hover { color: var(--rb-ink); background: #fff; }
@keyframes rb-bump { 40% { transform: scale(1.18); } }
.rb-site .st-cart.st-bump { animation: rb-bump .4s ease; }

.rb-site .rb-header .st-nav { background: var(--rb-ink); border-top: 1px solid var(--rb-ink-line); }
.rb-site .rb-header .st-nav-list > li > a,
.rb-site .rb-header .st-nav-list > li > details > summary { color: var(--rb-on-ink-muted); border-radius: 10px; font-size: .9rem; }
.rb-site .rb-header .st-nav-list > li > a:hover,
.rb-site .rb-header .st-nav-list > li > details > summary:hover,
.rb-site .rb-header .st-nav-list > li > details[open] > summary { color: #fff; background: var(--rb-ink-3); }
.rb-site .rb-header .st-catmenu > summary { color: #fff !important; background: var(--rb-ink-3); }
.rb-site .rb-header .rb-nav-deal > a { color: #fff !important; background: var(--rb-hot) !important; font-family: font-bold, tahoma, serif; }
.rb-site .rb-header .rb-nav-deal > a:hover { background: color-mix(in srgb, var(--rb-hot) 85%, #000) !important; }
.rb-site .rb-header .rb-nav-deal .ti { animation: rb-flicker 2.4s ease-in-out infinite; }
@keyframes rb-flicker { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15) rotate(-6deg); } }
.rb-site .rb-header .st-dropdown { color: var(--rb-text); border: 0; border-radius: var(--rb-radius); box-shadow: var(--rb-shadow-lg); }
.rb-site .rb-header .st-dropdown .dropdown-item { color: var(--rb-text); }
.rb-site .rb-header .st-dropdown .dropdown-item:hover { color: var(--primary); background: var(--tint); }

@media (max-width: 991.98px) {
    .rb-site .rb-header .st-nav { background: var(--rb-ink); }
    .rb-site .rb-header .st-drawer-head { border-bottom-color: var(--rb-ink-line); }
    .rb-site .rb-header .st-mega,
    .rb-site .rb-header .st-navdrop .st-dropdown { background: transparent; }
    .rb-site .rb-header .st-nav .st-dropdown .dropdown-item { color: var(--rb-on-ink-muted); }
    .rb-site .rb-header .st-nav .st-dropdown .dropdown-item:hover { color: #fff; background: var(--rb-ink-3); }
    .rb-site .rb-header .st-mega .st-mega-all { color: #fff; background: var(--rb-ink-3); }
    .rb-site .rb-header .st-menu-overlay { background: rgba(0, 0, 0, .6); }
}

/* ── Main ─────────────────────────────────────────────────────────────────── */
.rb-site .store-main { padding-top: 1.5rem; padding-bottom: 4rem; }
.rb-site .breadcrumb a { color: var(--rb-muted); }

.rb-section { margin: 3rem 0; }
.rb-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.rb-section-head h2 { margin: 0; font-family: font-extra-bold, tahoma, serif; font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem); }
.rb-section-head p { margin: .35rem 0 0; color: var(--rb-muted); font-size: .9rem; line-height: 1.8 !important; }
.rb-section-head > a { display: inline-flex; align-items: center; gap: .35rem; flex: none; font-family: font-bold, tahoma, serif; font-size: .9rem; color: var(--primary); }
.rb-section-head > a:hover { gap: .6rem; }

/* ── Home: hero ───────────────────────────────────────────────────────────── */
.rb-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; align-items: center; overflow: hidden;
    padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: 28px; color: var(--rb-on-ink); isolation: isolate;
    background: radial-gradient(70% 90% at 10% 10%, color-mix(in srgb, var(--primary) 55%, transparent), transparent 70%), var(--rb-ink); }
.rb-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(var(--rb-ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--rb-ink-line) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(80% 80% at 30% 40%, #000, transparent); }
.rb-hero:not(.is-bf) { background: radial-gradient(80% 100% at 15% 0, color-mix(in srgb, var(--primary) 70%, #fff), transparent 70%), color-mix(in srgb, var(--primary) 70%, #000); }
.rb-hero h1 { display: flex; flex-direction: column; gap: .35rem; margin: 1rem 0 .75rem; color: #fff; }
.rb-outline { font-family: system-ui, "Segoe UI", sans-serif; font-weight: 900; font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5rem); line-height: .95; letter-spacing: -.02em;
    direction: ltr; text-align: right; color: transparent; -webkit-text-stroke: 1.5px var(--rb-glow); }
.rb-h1-main { font-family: font-extra-bold, tahoma, serif; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.45; }
.rb-hero p { max-width: 34rem; margin: 0 0 1.25rem; color: var(--rb-on-ink-muted); font-size: 1rem; }
.rb-hero .rb-eyebrow { color: var(--rb-ink); background: var(--rb-glow); }
.rb-hero-pct { display: inline-flex; align-items: baseline; gap: .6rem; margin-bottom: 1.5rem; padding: .5rem 1rem .5rem 1.25rem; border-radius: 16px;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--rb-ink-line); }
.rb-hero-pct strong { font-family: font-extra-bold, tahoma, serif; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1; color: var(--rb-hot); }
.rb-hero-pct span { color: var(--rb-on-ink); font-size: .95rem; }
.rb-hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.rb-hero-side { display: flex; flex-direction: column; gap: 1rem; }
.rb-hero-timer { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem 1.25rem; border-radius: 20px; background: rgba(255, 255, 255, .05);
    border: 1px solid var(--rb-ink-line); backdrop-filter: blur(8px); }
.rb-timer-label { color: var(--rb-on-ink-muted); font-size: .85rem; }
.rb-timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; direction: rtl; }
.rb-timer > span { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem .25rem; border-radius: 14px; background: var(--rb-ink-3); }
.rb-timer b { font-family: font-extra-bold, tahoma, serif; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.rb-timer small { color: var(--rb-on-ink-muted); font-size: .72rem; }
.rb-hero-product { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 22px; background: #fff; }
.rb-hero-product img { width: 100%; height: 100%; object-fit: contain; padding: 1.25rem 1.25rem 4.5rem; transition: transform .4s; }
.rb-hero-product:hover img { transform: scale(1.04); }
.rb-hero-product-tag { position: absolute; inset: auto .75rem .75rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 .75rem;
    padding: .7rem 1rem; border-radius: 14px; color: var(--rb-on-ink); background: var(--rb-ink); }
.rb-hero-product-tag small { grid-column: 1 / -1; color: var(--rb-glow); font-size: .72rem; }
.rb-hero-product-tag strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .9rem; }
.rb-hero-product-tag em { font-style: normal; font-family: font-bold, tahoma, serif; white-space: nowrap; }
/* Without a product photo: a seal with the season's name running round a big percent sign. */
.rb-hero-art { position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, 300px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%;
    color: var(--rb-glow); background: radial-gradient(circle, color-mix(in srgb, var(--primary) 45%, transparent), transparent 68%); }
.rb-hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: rb-turn 28s linear infinite; }
.rb-hero-art text { fill: var(--rb-on-ink-muted); font-size: 9.5px; letter-spacing: 3px; font-family: system-ui, "Segoe UI", sans-serif; font-weight: 700; }
.rb-hero-art b { font-family: system-ui, "Segoe UI", sans-serif; font-size: clamp(5rem, 3rem + 6vw, 8.5rem); font-weight: 900; line-height: 1; color: transparent;
    -webkit-text-stroke: 2px var(--rb-glow); text-shadow: 0 0 40px color-mix(in srgb, var(--rb-glow) 45%, transparent); }
@keyframes rb-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rb-hero-art svg { animation: none; } }
@media (max-width: 991.98px) {
    .rb-hero { grid-template-columns: 1fr; }
    .rb-hero-product { aspect-ratio: 16 / 10; }
}
@media (max-width: 575.98px) {
    .rb-hero { border-radius: 22px; padding: 1.5rem 1.15rem; margin-inline: -.25rem; }
    .rb-hero-cta .rb-btn { flex: 1 1 100%; }
    .rb-hero-product { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .rb-site .rb-header .rb-nav-deal .ti { animation: none; }
    .rb-btn, .rb-hero-product img { transition: none; }
}

/* ── Home: perks ──────────────────────────────────────────────────────────── */
.rb-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 1.25rem 0 0; padding: 0; list-style: none;
    background: var(--rb-surface); border: 1px solid var(--rb-line); border-radius: var(--rb-radius); }
.rb-perks li { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.25rem; }
.rb-perks li + li { border-inline-start: 1px solid var(--rb-line); }
.rb-perks .ti { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 12px; font-size: 1.35rem;
    color: var(--primary); background: var(--tint); }
.rb-perks strong { display: block; font-family: font-bold, tahoma, serif; font-size: .9rem; }
.rb-perks span { color: var(--rb-muted); font-size: .78rem; }
@media (max-width: 991.98px) {
    .rb-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rb-perks li:nth-child(3) { border-inline-start: 0; }
    .rb-perks li:nth-child(n + 3) { border-top: 1px solid var(--rb-line); }
}
@media (max-width: 575.98px) {
    .rb-perks li { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .9rem; }
}

/* ── Home: categories ─────────────────────────────────────────────────────── */
.rb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: .75rem; }
.rb-cats a { display: flex; flex-direction: column; align-items: center; gap: .65rem; padding: 1.1rem .5rem 1rem; text-align: center; color: var(--rb-text);
    font-size: .85rem; font-family: font-bold, tahoma, serif; line-height: 1.6; background: var(--rb-surface); border: 1px solid var(--rb-line); border-radius: var(--rb-radius);
    transition: border-color .2s, transform .2s, box-shadow .2s; }
.rb-cats a > span { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; color: var(--primary); background: var(--tint); transition: background .2s, color .2s; }
.rb-cats .st-icon { width: 1.75rem; height: 1.75rem; }
.rb-cats a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 35%, transparent); box-shadow: var(--rb-shadow); }
.rb-cats a:hover > span { color: #fff; background: var(--primary); }
@media (max-width: 575.98px) {
    .rb-cats { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding-inline: 1rem; scroll-snap-type: x proximity; }
    .rb-cats::-webkit-scrollbar { display: none; }
    .rb-cats a { flex: 0 0 104px; scroll-snap-align: start; }
}

/* ── Home: deals band ─────────────────────────────────────────────────────── */
.rb-deals { position: relative; margin: 3rem 0; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: 28px; background: var(--rb-surface); border: 1px solid var(--rb-line); }
.rb-deals.is-bf { background: var(--rb-ink); border: 0; }
.rb-deals.is-bf .rb-section-head h2 { color: #fff; }
.rb-deals.is-bf .rb-section-head p { color: var(--rb-on-ink-muted); }
.rb-deals.is-bf .rb-section-head > a { color: var(--rb-glow); }
.rb-deals.is-bf .rb-empty { color: var(--rb-on-ink-muted); background: transparent; border-color: var(--rb-ink-line); }
.rb-deals .st-rail { gap: .9rem; padding-bottom: .25rem; }
.rb-deals .st-rail > * { flex: 0 0 228px; }
.rb-site .st-arrow { color: var(--rb-ink); background: #fff; box-shadow: var(--rb-shadow-lg); }
@media (max-width: 575.98px) {
    .rb-deals { margin-inline: -.25rem; border-radius: 22px; }
    .rb-deals .st-rail > * { flex-basis: 172px; }
}

/* ── Product card ─────────────────────────────────────────────────────────── */
.rb-site .product-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem; }
.rb-site .product-card { position: relative; gap: .6rem; padding: .6rem .6rem .75rem; border: 1px solid var(--rb-line); border-radius: var(--rb-radius); box-shadow: none; }
.rb-site .product-card:hover { transform: translateY(-3px); box-shadow: var(--rb-shadow-lg); border-color: transparent; }
.rb-site .product-image { position: relative; border-radius: 14px; background: #f6f7f5; }
.rb-site .product-image img { object-fit: contain; padding: .5rem; mix-blend-mode: multiply; transition: transform .35s; }
.rb-site .product-card:hover .product-image img { transform: scale(1.05); }
.rb-site .product-name { min-height: 3.2em; padding-inline: .25rem; font-size: .9rem; line-height: 1.75; color: var(--rb-text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rb-site .product-card .product-name:hover { color: var(--primary); }
.rb-site .product-foot { align-items: flex-end; min-height: 0; padding: .25rem .25rem 0; border-top: 0; }
.rb-site .product-price { display: flex; flex-direction: column; gap: .05rem; min-width: 0; font-family: font-extra-bold, tahoma, serif; font-size: .95rem; color: var(--rb-text); }
.rb-site .product-price s { color: var(--rb-muted); font-family: font-regular, tahoma, serif; font-size: .75rem; }
.rb-site .product-card.is-deal .product-price > span { color: var(--rb-hot); }
.rb-site .rb-cart-note { color: var(--rb-hot); font-family: font-bold, tahoma, serif; font-size: .7rem; }
.rb-site .st-add { width: 42px; height: 42px; flex: none; border-radius: 50%; color: #fff; background: var(--rb-ink); font-size: 1.2rem; }
.rb-site .st-add:hover { color: #fff; background: var(--primary); }
.rb-site .st-add:disabled { opacity: .6; }
/* "No image": Bootstrap's own .placeholder (a grey loading block) would paint the icon as a solid square. */
.rb-site .placeholder { min-height: 0; background: none; opacity: 1; cursor: default; vertical-align: baseline; }
.rb-site .product-image .placeholder { color: #c9d2cc; }
.rb-site .product-image .placeholder .st-icon { width: 3.25rem; height: 3.25rem; }
.rb-badge-off { position: absolute; top: .55rem; inset-inline-start: .55rem; z-index: 1; padding: .2rem .55rem; border-radius: 8px; color: #fff; background: var(--rb-hot);
    font-family: font-extra-bold, tahoma, serif; font-size: .8rem; line-height: 1.5; box-shadow: 0 6px 14px -6px var(--rb-hot); }
.rb-badge-out { position: absolute; inset: auto .55rem .55rem; padding: .15rem .5rem; border-radius: 8px; text-align: center; color: var(--rb-muted);
    background: rgba(255, 255, 255, .9); font-size: .75rem; }
/* The product's own campaign or discount price: named at the foot of the photo. */
.rb-badge-deal { position: absolute; inset: auto .55rem .55rem auto; padding: .12rem .5rem; border-radius: 8px; color: var(--rb-hot);
    background: rgba(255, 255, 255, .92); border: 1px solid color-mix(in srgb, var(--rb-hot) 35%, transparent); font-size: .72rem; max-width: calc(100% - 1.1rem);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-deal-ends { display: block; font-size: .8rem; color: var(--rb-muted); margin-top: .15rem; }
.rb-site .product-card.is-out .product-image img { opacity: .55; filter: grayscale(.6); }
@media (max-width: 575.98px) {
    .rb-site .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
    .rb-site .product-name { font-size: .82rem; }
    .rb-site .product-price { font-size: .85rem; }
    .rb-site .st-add { width: 36px; height: 36px; font-size: 1rem; }
}

/* ── Home: cart ladder ────────────────────────────────────────────────────── */
.rb-ladder ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; counter-reset: rung; }
.rb-ladder li { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.15rem 1.2rem; border-radius: var(--rb-radius);
    background: var(--rb-surface); border: 1px solid var(--rb-line); counter-increment: rung; }
.rb-ladder li::after { content: counter(rung); position: absolute; top: .9rem; inset-inline-end: 1rem; font-family: font-extra-bold, tahoma, serif; font-size: 2rem; line-height: 1;
    color: color-mix(in srgb, var(--primary) 14%, #fff); }
.rb-ladder-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: .5rem; border-radius: 12px; font-size: 1.3rem;
    color: #fff; background: var(--rb-ink); }
.rb-ladder small { color: var(--rb-muted); font-size: .78rem; }
.rb-ladder strong { font-family: font-extra-bold, tahoma, serif; font-size: 1.05rem; }
.rb-ladder-reward { margin-top: .35rem; align-self: flex-start; padding: .15rem .6rem; border-radius: 8px; color: var(--primary); background: var(--tint); font-size: .82rem; font-family: font-bold, tahoma, serif; }

/* ── Home: consultation ───────────────────────────────────────────────────── */
.rb-consult { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; margin: 3rem 0; padding: clamp(1.25rem, 3vw, 2.25rem);
    border-radius: 28px; background: linear-gradient(135deg, var(--tint), #fff 70%); border: 1px solid var(--rb-line); }
.rb-consult h2 { margin: .75rem 0 .4rem; font-family: font-extra-bold, tahoma, serif; font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); }
.rb-consult p { margin: 0 0 1rem; color: var(--rb-muted); }
.rb-consult-form { display: flex; flex-wrap: wrap; gap: .6rem; }
.rb-consult-form .form-select { flex: 1 1 150px; width: auto; min-height: 50px; border-radius: 999px; }
.rb-consult-form .rb-btn { flex: 1 1 150px; }
.rb-consult-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.rb-consult-links a { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border-radius: var(--rb-radius); color: var(--rb-text); background: #fff;
    border: 1px solid var(--rb-line); font-family: font-bold, tahoma, serif; font-size: .85rem; transition: border-color .2s, transform .2s; }
.rb-consult-links .ti { font-size: 1.5rem; color: var(--primary); }
.rb-consult-links a:hover { transform: translateY(-2px); border-color: var(--primary); }
@media (max-width: 767.98px) { .rb-consult { grid-template-columns: 1fr; } }

/* ── Home: club ───────────────────────────────────────────────────────────── */
.rb-club { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; overflow: hidden; margin: 3rem 0;
    padding: clamp(1.5rem, 3.5vw, 2.75rem); border-radius: 28px; color: var(--rb-on-ink);
    background: radial-gradient(60% 120% at 100% 100%, color-mix(in srgb, var(--primary) 60%, transparent), transparent 70%), var(--rb-ink); }
.rb-club h2 { max-width: 36rem; margin: .9rem 0 .6rem; color: #fff; font-family: font-extra-bold, tahoma, serif; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.9rem); line-height: 1.5 !important; }
.rb-club p { max-width: 38rem; margin: 0 0 1rem; color: var(--rb-on-ink-muted); }
.rb-club .rb-eyebrow { color: var(--rb-ink); background: #ffd25e; }
.rb-club ul { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.rb-club li { padding: .25rem .85rem; border-radius: 999px; border: 1px solid var(--rb-ink-line); color: var(--rb-on-ink); font-size: .82rem; }
.rb-club-art { display: flex; align-items: center; justify-content: center; width: 180px; height: 180px; border-radius: 50%; font-size: 5rem; color: #ffd25e;
    background: radial-gradient(circle, rgba(255, 210, 94, .18), transparent 70%); border: 1px dashed rgba(255, 210, 94, .35); }
.rb-club-art .ti { font-size: 5rem; }
@media (max-width: 767.98px) { .rb-club { grid-template-columns: 1fr; } .rb-club-art { display: none; } }

/* ── Home: courses and FAQ (store.css components in the new frame) ────────── */
.rb-site .st-course { padding: .6rem; border-radius: var(--rb-radius); background: var(--rb-surface); border: 1px solid var(--rb-line); }
.rb-faq .st-accordion { border: 0; background: var(--rb-surface); border-radius: var(--rb-radius); border: 1px solid var(--rb-line); padding: .25rem; }
.rb-faq .st-accordion details { padding: 1rem 1.15rem; }
.rb-faq .st-accordion details[open] { box-shadow: none; background: var(--rb-bg); border-radius: 14px; }
.rb-faq .st-accordion summary .ti { color: var(--primary); font-size: 1.2rem; }
.rb-faq .st-accordion p { margin: .6rem 0 0; color: var(--rb-muted); }

/* ── Listings (category, search, all products) ────────────────────────────── */
.rb-site .st-banner { margin: 0 0 1.25rem; padding: 1.6rem 1.75rem; border-radius: 22px; background: var(--rb-ink); }
.rb-site .st-banner h1 { color: #fff; font-family: font-extra-bold, tahoma, serif; }
.rb-site .st-list-tools { padding: .75rem 1rem; border-radius: var(--rb-radius); background: var(--rb-surface); border: 1px solid var(--rb-line); }
.rb-site .pager a { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--rb-text); }
.rb-site .pager a.active { color: #fff; background: var(--rb-ink); border-color: var(--rb-ink); }

/* ── Deals page ───────────────────────────────────────────────────────────── */
.rb-deal-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; margin-bottom: 1.5rem;
    padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: 28px; color: var(--rb-on-ink);
    background: radial-gradient(70% 120% at 0 0, color-mix(in srgb, var(--primary) 50%, transparent), transparent 70%), var(--rb-ink); }
.rb-deal-hero h1 { margin: .9rem 0 .5rem; color: #fff; font-family: font-extra-bold, tahoma, serif; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); }
.rb-deal-hero p { margin: 0; color: var(--rb-on-ink-muted); }
.rb-deal-hero .rb-eyebrow { color: var(--rb-ink); background: var(--rb-glow); }
.rb-deal-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.rb-deal-facts li { display: flex; flex-direction: column; padding: .6rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--rb-ink-line); }
.rb-deal-facts strong { color: #fff; font-family: font-extra-bold, tahoma, serif; font-size: 1.15rem; }
.rb-deal-facts li:first-child strong { color: var(--rb-hot); font-size: 1.5rem; }
.rb-deal-facts span { color: var(--rb-on-ink-muted); font-size: .78rem; }
@media (max-width: 767.98px) { .rb-deal-hero { grid-template-columns: 1fr; } }
.rb-sortbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.rb-sortbar > span { color: var(--rb-muted); font-size: .9rem; }
.rb-sortbar div { display: flex; gap: .35rem; padding: .3rem; border-radius: 999px; background: var(--rb-surface); border: 1px solid var(--rb-line); }
.rb-sortbar a { padding: .45rem 1rem; border-radius: 999px; color: var(--rb-muted); font-size: .85rem; font-family: font-bold, tahoma, serif; }
.rb-sortbar a.active { color: #fff; background: var(--rb-ink); }

/* ── Product page ─────────────────────────────────────────────────────────── */
.rb-site .pd-image { border-radius: 24px; background: #fff; border: 1px solid var(--rb-line); box-shadow: none; }
.rb-site .pd-image img { padding: 1.5rem; }
.rb-site .pd-title { color: var(--rb-text); }
.rb-site .pd-keyspecs li { background: var(--rb-surface); border: 1px solid var(--rb-line); }
.rb-site .pd-buy { border: 1px solid var(--rb-line); box-shadow: var(--rb-shadow); border-radius: 22px; }
.rb-site .pd-price { color: var(--rb-text); font-family: font-extra-bold, tahoma, serif; }
.rb-site .rb-pd-deal { display: flex; flex-direction: column; gap: .1rem; color: var(--rb-hot); }
.rb-pd-was { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; }
.rb-pd-was s { color: var(--rb-muted); font-family: font-regular, tahoma, serif; }
.rb-pd-was b { padding: .05rem .45rem; border-radius: 6px; color: #fff; background: var(--rb-hot); font-size: .78rem; }
.rb-site .pd-offer { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: 14px; color: #fff; font-family: font-bold, tahoma, serif; font-size: .9rem;
    line-height: 1.7; background: linear-gradient(90deg, var(--rb-ink), var(--rb-ink-3)); border-inline-start: 4px solid var(--rb-hot); }
.rb-site .pd-offer .ti { flex: none; font-size: 1.35rem; color: var(--rb-hot); }
.rb-site .pd-add { border-radius: 999px; }
.rb-site .pd-qty { border-radius: 999px; }
.rb-site .pd-tabs { border-radius: 18px 18px 0 0; }
.rb-site .pd-tabs a:hover { color: var(--rb-text); background: var(--rb-bg); }
.rb-site .pd-section { border-inline: 1px solid var(--rb-line); }
.rb-site .pd-section:last-of-type { border-bottom: 1px solid var(--rb-line); }

/* ── Cart & checkout ──────────────────────────────────────────────────────── */
.rb-site .cart-items, .rb-site .cart-empty { border: 1px solid var(--rb-line); box-shadow: none; }
.rb-site .ci-img { background: #f6f7f5; }
.rb-site .summary, .rb-site .cart-summary { border: 1px solid var(--rb-line); box-shadow: var(--rb-shadow); border-radius: 22px; }
.rb-site .summary .total { font-family: font-extra-bold, tahoma, serif; }
.rb-site .summary .btn-primary, .rb-site .co-summary .btn-primary { min-height: 52px; }
.rb-site .free-ship { border-radius: 14px; }
.rb-site .co-card { border-radius: 22px; border: 1px solid var(--rb-line); box-shadow: none; }
.rb-site .pay-card { border-radius: 16px; }
.rb-site .co-steps .current { color: var(--primary); }
.rb-site .sum-row.discount, .rb-site .sum-row.discount * { color: var(--rb-hot); }

/* The campaign's progress box in the cart: in the season it wears the campaign's black. */
.rb-site.is-bf .cart-progress { color: var(--rb-on-ink); background: var(--rb-ink); border: 0; }
.rb-site.is-bf .cart-progress strong, .rb-site.is-bf .cp-head { color: #fff; }
.rb-site.is-bf .cp-head > i, .rb-site.is-bf .cp-percent, .rb-site.is-bf .cp-next, .rb-site.is-bf .cp-steps li.reached { color: var(--rb-glow); }
.rb-site.is-bf .cp-banner, .rb-site.is-bf .cp-note, .rb-site.is-bf .cp-steps li, .rb-site.is-bf .cp-steps small { color: var(--rb-on-ink-muted); }
.rb-site.is-bf .cp-bar { background: var(--rb-ink-3); }
.rb-site.is-bf .cp-bar > span { background: linear-gradient(90deg, var(--primary), var(--rb-glow)); }
.rb-site.is-bf .cp-mark { border-color: var(--rb-glow); background: var(--rb-ink); }
.rb-site.is-bf .cp-mark.reached { background: var(--rb-glow); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.rb-footer { margin-top: 2rem; color: var(--rb-on-ink-muted); background: var(--rb-ink); }
.rb-promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 2rem 0; list-style: none; border-bottom: 1px solid var(--rb-ink-line); }
.rb-promises li { display: flex; align-items: center; gap: .8rem; }
.rb-promises .ti { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 14px; font-size: 1.4rem;
    color: var(--rb-glow); background: var(--rb-ink-3); }
.rb-promises strong { display: block; color: #fff; font-family: font-bold, tahoma, serif; font-size: .9rem; }
.rb-promises span { font-size: .78rem; }
.rb-footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 2.5rem 0; }
.rb-footer-logo img { height: 36px; width: auto; }
.rb-footer-brand p { margin: 1rem 0; max-width: 26rem; font-size: .9rem; }
.rb-contact { display: flex; flex-direction: column; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .85rem; }
.rb-contact li { display: flex; align-items: flex-start; gap: .5rem; }
.rb-contact .ti { margin-top: .2rem; color: var(--rb-glow); }
.rb-footer a { color: var(--rb-on-ink-muted); }
.rb-footer a:hover { color: #fff; }
.rb-footer nav h2 { margin: 0 0 1rem; color: #fff; font-family: font-bold, tahoma, serif; font-size: .95rem; }
.rb-footer nav ul { display: flex; flex-direction: column; gap: .6rem; margin: 0; padding: 0; list-style: none; font-size: .88rem; }
.rb-footer .st-trust { display: flex; gap: .5rem; flex-wrap: wrap; }
.rb-footer .st-trust img { background: #fff; border-radius: 10px; }
.rb-footer-bottom { border-top: 1px solid var(--rb-ink-line); font-size: .8rem; }
.rb-footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-block: 1rem; }
.rb-credit { display: inline-flex; align-items: center; gap: .6rem; }
.rb-credit > span { padding: .1rem .5rem; border-radius: 6px; background: var(--rb-ink-3); }
@media (max-width: 991.98px) {
    .rb-promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rb-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rb-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    .rb-promises { gap: 1rem .75rem; padding: 1.5rem 0; }
    .rb-promises li { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .rb-footer-bottom .container { flex-direction: column; text-align: center; }
}

/* ── Phone tab bar ────────────────────────────────────────────────────────── */
.rb-tabbar { display: none; }
@media (max-width: 767.98px) {
    .rb-tabbar { position: fixed; inset-inline: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom)); z-index: 1025; display: flex; justify-content: space-around;
        padding: .35rem; border-radius: 22px; background: color-mix(in srgb, var(--rb-ink) 92%, transparent); backdrop-filter: blur(12px);
        box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); }
    .rb-tabbar a, .rb-tabbar button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .4rem 0; border: 0;
        border-radius: 16px; color: var(--rb-on-ink-muted); background: none; font: inherit; font-size: .68rem; cursor: pointer; }
    .rb-tabbar .ti { font-size: 1.35rem; }
    .rb-tabbar .active { color: #fff; background: var(--rb-ink-3); }
    .rb-tabbar .rb-tab-deal { color: #fff; }
    .rb-tabbar .rb-tab-deal .ti { color: var(--rb-hot); }
    .rb-tab-badge { position: absolute; top: .1rem; inset-inline-start: calc(50% + .3rem); min-width: 1.15rem; padding: 0 .25rem; border-radius: 999px; color: #fff;
        background: var(--rb-hot); font-size: .65rem; line-height: 1.15rem; text-align: center; }
    .rb-site .store-main { padding-bottom: 6.5rem; }
    .rb-site .rb-footer { padding-bottom: 5.5rem; }
    body:has(.rb-tabbar) #st-chat { bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
    body:has(.rb-tabbar) .st-cart-toast { bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 575.98px) {
    /* The product page has its own buy bar at the bottom on phones; the tab bar steps aside there. */
    body:has(.pd-bar) .rb-tabbar { display: none; }
}
