@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@500;600;700&family=Tajawal:wght@400;500;700;800&display=swap');

/* =====================================================================
   RIVA — luxury premium
   Midnight navy, antique gold and pearl ivory. A maison-seal preloader,
   a midnight utility row over an ivory glass header, serif titles under
   a gold ornament, gilded product cards with a hover gallery, a 3D
   showcase arc for categories, a gliding line of gilded brand plates,
   midnight feature cards, and a deep midnight footer.

    0. Tokens & base               12. FAQ
    1. Preloader (maison seal)     13. List of items
    2. Section titles & links      14. Footer (+ certificates, popups)
    3. Store-notify marquee        15. Product page
    4. Header                      16. Cart page
    5. Phone header & account      17. Cart sidebar
    6. Hero & reveals              18. Search window
    7. Product cards + gallery     19. Account pages
    8. Categories (showcase arc)   20. Pages, forms, pagination
    9. Brands (gilded glide)       21. Responsive · reduced motion
   10. Store features
   11. Customer reviews
   ===================================================================== */

/* ---------- 0. Tokens & base ---------- */
:root {
    --riva-night: #0d1526;      /* midnight navy: utility row, footer, buttons */
    --riva-night-2: #16213a;
    --riva-night-3: #22304f;
    /* merchant colours (partials/theme-colors): the gold follows the Store Color, the header the
       Header / Navbar colours; the main buttons are midnight by default and take the Store Color */
    --riva-gold: var(--tw-accent, #c2a165);       /* antique gold: the accent */
    --riva-gold-d: var(--tw-accent-dark, #9c7c42);
    --riva-gold-l: var(--tw-accent-light, #e7d6b0);
    --riva-gold-grad: linear-gradient(120deg, var(--tw-accent-dark, #9a7638) 0%, var(--tw-accent-light, #e9d6a6) 42%, var(--tw-accent, #c0a065) 62%, var(--tw-accent-dark, #8e6c33) 100%);
    --riva-champagne: #f3ead9;
    --riva-pearl: #faf7f1;      /* page */
    --riva-ivory: #fffdf9;      /* cards, panels */
    --riva-line: #ece5d8;
    --riva-line-2: #ddd2bf;
    --riva-text: #1b2234;
    --riva-mute: #7c7f8b;
    --riva-mute-2: #a9a8ad;
    --riva-sale: #9c2a36;       /* garnet */

    --riva-r-sm: 8px;
    --riva-r: 14px;
    --riva-r-lg: 22px;
    --riva-shadow: 0 20px 44px -30px rgba(13, 21, 38, .45);
    --riva-shadow-lg: 0 34px 80px -40px rgba(13, 21, 38, .55);
    --riva-glow: 0 18px 40px -22px rgba(var(--tw-accent-dark-rgb, 156, 124, 66), .55);
    --riva-ease: cubic-bezier(.22, .8, .25, 1);
    --riva-glide: cubic-bezier(.65, 0, .35, 1);
    --riva-head: 'El Messiri', 'Tajawal', Georgia, serif;
    --riva-font: 'Tajawal', 'El Messiri', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --riva-gutter: max(16px, calc((100vw - 1320px) / 2));
}
html body {
    background: var(--riva-pearl);
    color: var(--riva-text);
    font-family: var(--riva-font);
}
body :is(h1, h2, h3, h4, h5, h6, p, button, input, select, textarea, label, li, a, td, th, span):not([class^="icon-"]):not([class*=" icon-"]):not([class^="sicon-"]):not([class*=" sicon-"]) { font-family: var(--riva-font); }
body :is(h1, h2, .s-block__title h2, .s-slider-block__title h2) { font-family: var(--riva-head) !important; }
body ::selection { background: var(--riva-night); color: var(--riva-gold-l); }
body .angel_anime.animate__fadeInUp,
body .angel_anime.animate__fadeIn { animation-name: none; }
html, body { overflow-x: clip; }
html.riva-drawer-open { overflow: hidden; }
body :focus-visible { outline: 2px solid var(--riva-gold) !important; outline-offset: 2px; }
body .main-container-wrapper { background: transparent; }

/* ---------- 1. Preloader: a maison seal, then the curtain parts ---------- */
.riva-preloader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    visibility: visible;
    transition: visibility 0s linear 1.15s;
}
.riva-preloader__half {
    position: absolute;
    left: 0;
    right: 0;
    height: 50.5%;
    background: radial-gradient(120% 90% at 50% 100%, var(--riva-night-2), var(--riva-night) 70%);
    transition: transform 1s var(--riva-glide) .1s;
}
.riva-preloader__half--top { top: 0; }
.riva-preloader__half--bottom { bottom: 0; background: radial-gradient(120% 90% at 50% 0%, var(--riva-night-2), var(--riva-night) 70%); }
/* a gold seam where the halves meet */
.riva-preloader__half--top::after { content: ""; position: absolute; left: 50%; bottom: 0; width: min(420px, 70vw); height: 1px; transform: translateX(-50%) scaleX(0); background: linear-gradient(90deg, transparent, var(--riva-gold), transparent); animation: riva-seam 1.2s var(--riva-ease) .5s forwards; }
@keyframes riva-seam { to { transform: translateX(-50%) scaleX(1); } }
.riva-preloader__seal { position: relative; z-index: 1; width: 160px; height: 160px; display: grid; place-items: center; transition: opacity .45s ease, transform .6s var(--riva-ease); }
.riva-preloader__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.riva-preloader__ring circle { fill: none; }
.riva-preloader__dots { stroke: var(--riva-gold); stroke-width: 1.4; stroke-dasharray: .1 7.9; stroke-linecap: round; opacity: .7; transform-origin: 80px 80px; animation: riva-turn 14s linear infinite; }
.riva-preloader__draw { stroke: var(--riva-gold); stroke-width: 1.5; stroke-dasharray: 415; stroke-dashoffset: 415; transform: rotate(-90deg); transform-origin: 80px 80px; animation: riva-draw 1.6s var(--riva-ease) .15s forwards; }
html[dir="rtl"] .riva-preloader__draw { transform: rotate(-90deg) scaleY(-1); }
@keyframes riva-draw { to { stroke-dashoffset: 0; } }
@keyframes riva-turn { to { transform: rotate(360deg); } }
.riva-preloader__logo {
    position: relative;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 20px;
    background: radial-gradient(circle at 35% 30%, #fff, var(--riva-champagne));
    box-shadow: 0 0 0 1px rgba(var(--tw-accent-rgb, 194, 161, 101), .35), 0 24px 50px -20px rgba(0, 0, 0, .7);
    opacity: 0;
    transform: scale(.86);
    animation: riva-pl-logo 1s var(--riva-ease) .35s forwards;
}
.riva-preloader__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.riva-preloader__initial { font-family: var(--riva-head); font-size: 50px; font-weight: 700; line-height: 1; background: var(--riva-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes riva-pl-logo { to { opacity: 1; transform: none; } }
.riva-preloader__name {
    position: relative;
    z-index: 1;
    max-width: 80vw;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: var(--riva-head);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--riva-gold-l);
    opacity: 0;
    animation: riva-pl-name 1.2s var(--riva-ease) .7s forwards;
    transition: opacity .35s ease;
}
@keyframes riva-pl-name { from { opacity: 0; letter-spacing: .8em; } to { opacity: 1; letter-spacing: .42em; } }
.riva-preloader.is-done { visibility: hidden; pointer-events: none; }
.riva-preloader.is-done .riva-preloader__half--top { transform: translateY(-101%); }
.riva-preloader.is-done .riva-preloader__half--bottom { transform: translateY(101%); }
.riva-preloader.is-done .riva-preloader__seal { opacity: 0; transform: scale(1.12); }
.riva-preloader.is-done .riva-preloader__name { opacity: 0; }

/* ---------- 2. Section titles & links ---------- */
body .s-block__title,
body .s-slider-block__title-right { text-align: center !important; }
body .s-block__title > .flex { align-items: center !important; }
body .s-block__title h2,
body .s-slider-block__title h2,
body .s-block__title .da-cp {
    position: relative;
    display: block;
    width: fit-content !important;
    max-width: 100%;
    margin-inline: auto !important;
    padding-bottom: 22px;
    font-weight: 600 !important;
    font-size: clamp(24px, 2.4vw, 34px) !important;
    line-height: 1.35 !important;
    color: var(--riva-night) !important;
    text-align: center !important;
}
/* ornament: two gold hairlines meeting at a small diamond with a dot either side */
body .s-block__title h2::after,
body .s-slider-block__title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 120px;
    height: 9px;
    margin-left: -60px;
    background:
        linear-gradient(45deg, transparent 3.2px, var(--riva-gold) 3.2px 5.8px, transparent 5.8px) 50% 50% / 9px 9px no-repeat,
        radial-gradient(circle, var(--riva-gold) 1.4px, transparent 1.6px) calc(50% - 13px) 50% / 4px 4px no-repeat,
        radial-gradient(circle, var(--riva-gold) 1.4px, transparent 1.6px) calc(50% + 13px) 50% / 4px 4px no-repeat,
        linear-gradient(90deg, transparent, var(--riva-gold)) 0 50% / 42px 1px no-repeat,
        linear-gradient(90deg, var(--riva-gold), transparent) 100% 50% / 42px 1px no-repeat;
    transform: scaleX(1);
    transition: transform 1s var(--riva-ease) .25s;
}
html.riva-reveal-on body .riva-reveal:not(.is-in) .s-block__title h2::after,
html.riva-reveal-on body .riva-reveal:not(.is-in) .s-slider-block__title h2::after { transform: scaleX(0); }
body .s-block__title p,
body .s-block__title .da-ts { color: var(--riva-mute) !important; text-align: center !important; }
body .s-block__title { margin-bottom: 34px !important; }
body .s-slider-block__title { align-items: center !important; margin-bottom: 30px; gap: 12px; }
body .s-slider-block__title-right { flex: 1 1 auto; min-width: 0; width: auto !important; }
body .s-slider-block__title-left { flex: none; display: flex !important; align-items: center; gap: 10px; }
body .s-slider-block__display-all {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    padding: 9px 18px !important;
    border-radius: 999px !important;
    border: 1px solid var(--riva-line-2) !important;
    background: var(--riva-ivory) !important;
    color: var(--riva-night) !important;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
body .s-slider-block__display-all * { color: inherit !important; }
body .s-slider-block__display-all::after { content: "←"; transition: transform .35s var(--riva-ease); }
html[dir="ltr"] body .s-slider-block__display-all::after { content: "→"; }
body .s-slider-block__display-all:hover { background: var(--riva-night) !important; border-color: var(--riva-night) !important; color: var(--riva-gold-l) !important; }
body .s-slider-block__display-all:hover::after { transform: translateX(-4px); }
html[dir="ltr"] body .s-slider-block__display-all:hover::after { transform: translateX(4px); }
body .s-slider-block__title-nav { display: flex !important; gap: 8px; }
body .s-slider-block__title-nav button.s-slider-nav-arrow {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: var(--riva-ivory) !important;
    border: 1px solid var(--riva-line-2) !important;
    color: var(--riva-night) !important;
    display: grid !important;
    place-items: center;
    opacity: 1 !important;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
body .s-slider-block__title-nav button.s-slider-nav-arrow svg { width: 18px; height: 18px; }
body .s-slider-block__title-nav button.s-slider-nav-arrow svg,
body .s-slider-block__title-nav button.s-slider-nav-arrow svg * { fill: currentColor !important; color: inherit !important; }
body .s-slider-block__title-nav button.s-slider-nav-arrow:not(.swiper-button-disabled):hover { background: var(--riva-night) !important; border-color: var(--riva-night) !important; color: var(--riva-gold-l) !important; }
body .s-slider-block__title-nav button.s-slider-nav-arrow.swiper-button-disabled { opacity: .35 !important; }
body .s-block--banners .banner,
body .s-block--fixed-banner:not(.s-block-0) .banner { position: relative; border-radius: var(--riva-r) !important; overflow: hidden; }
body .s-block--banners .banner img,
body .s-block--fixed-banner:not(.s-block-0) .banner img { transition: transform 1.6s var(--riva-ease); }
/* a gold hairline frame settles inside banners on hover */
body .s-block--banners .banner::after,
body .s-block--fixed-banner:not(.s-block-0) .banner::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(var(--tw-accent-rgb, 231, 214, 176), .75); border-radius: calc(var(--riva-r) - 6px); opacity: 0; transform: scale(1.03); transition: opacity .5s ease, transform .7s var(--riva-ease); pointer-events: none; }
@media (hover: hover) {
    body .s-block--banners .banner:hover img,
    body .s-block--fixed-banner:not(.s-block-0) .banner:hover img { transform: scale(1.035); }
    body .s-block--banners .banner:hover::after,
    body .s-block--fixed-banner:not(.s-block-0) .banner:hover::after { opacity: 1; transform: none; }
}

/* ---------- 3. Store-notify: a looping marquee, each ad in its own style ---------- */
body .store-notify.riva-notify {
    position: relative;
    z-index: 160;
    display: flex;
    align-items: center;
    min-height: 42px;
    overflow: hidden;
    transition: opacity .35s ease, transform .35s var(--riva-ease);
}
body .store-notify.is-closing { opacity: 0; transform: translateY(-8px); }
.riva-notify__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
body .riva-notify__track {
    display: flex;
    width: max-content;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 42px !important;
    white-space: nowrap;
    animation: riva-marquee-rtl 42s linear infinite;
    will-change: transform;
}
html[dir="ltr"] body .riva-notify__track { animation-name: riva-marquee-ltr; }
body .store-notify:hover .riva-notify__track { animation-play-state: paused; }
.riva-notify__group { display: flex; align-items: center; gap: 34px; padding-inline-end: 34px; flex: none; }
body .riva-notify__group a { display: inline-flex; align-items: center; gap: 8px; color: inherit !important; text-decoration: none; }
body .riva-notify__group a:hover { text-decoration: underline; text-underline-offset: 5px; }
.riva-notify__sep { display: inline-grid; place-items: center; color: var(--riva-gold); }
.riva-notify__sep svg { width: 12px; height: 12px; fill: currentColor; }
@keyframes riva-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes riva-marquee-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body .store-notify .ad-close {
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    z-index: 2;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 0 !important;
    background: rgba(255, 255, 255, .92);
    color: var(--riva-night);
    font-size: 9px;
    transition: transform .35s var(--riva-ease);
}
body .store-notify .ad-close:hover { transform: rotate(90deg); }
body .store-notify .riva-notify__viewport { margin-inline-end: 40px; }
/* 1st ad: as the merchant set it, gold stars between the messages */
/* 2nd ad: runs the other way in spaced capitals between two gold hairlines, the stars turn slowly */
body .riva-notify--2 { box-shadow: inset 0 1px 0 rgba(var(--tw-accent-rgb, 194, 161, 101), .55), inset 0 -1px 0 rgba(var(--tw-accent-rgb, 194, 161, 101), .55); }
body .riva-notify--2 .riva-notify__track { animation-direction: reverse; animation-duration: 50s; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px !important; }
body .riva-notify--2 .riva-notify__sep svg { animation: riva-turn 6s linear infinite; }
/* 3rd ad: a slower glide with a soft light sweeping across */
body .riva-notify--3 { background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .16) 50%, transparent 70%) !important; background-size: 300% 100% !important; animation: riva-sweep 6s linear infinite; }
body .riva-notify--3 .riva-notify__track { animation-duration: 62s; font-family: var(--riva-head) !important; font-size: 15px !important; }
@keyframes riva-sweep { from { background-position: 150% 0; } to { background-position: -150% 0; } }

/* ---------- 4. Header ---------- */
/* utility row: midnight, champagne type */
.riva-topbar { display: none; }
@media (min-width: 1024px) {
    .riva-topbar {
        display: block;
        padding: 0 var(--riva-gutter);
        background: var(--tw-header-bg, var(--riva-night));
        color: var(--tw-header-text, var(--riva-gold-l));
        position: relative;
    }
    .riva-topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--tw-accent-rgb, 194, 161, 101), .6), transparent); }
    .riva-topbar__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 40px; font-size: 13px; }
    .riva-topbar__group { display: flex; align-items: center; gap: 18px; }
    .riva-topbar__group:last-child { justify-content: flex-end; }
    .riva-topbar__links a,
    .riva-topbar__contact a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: inherit !important;
        text-decoration: none;
        opacity: .9;
        background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
        transition: background-size .35s var(--riva-ease), opacity .2s ease;
    }
    .riva-topbar__links a:hover,
    .riva-topbar__contact a:hover { background-size: 100% 1px; opacity: 1; }
    .riva-topbar__links a + a,
    .riva-topbar__contact a + a { padding-inline-start: 18px; border-inline-start: 1px solid rgba(var(--tw-accent-rgb, 194, 161, 101), .4); }
    .riva-topbar svg { width: 15px; height: 15px; fill: none; stroke: var(--riva-gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
    .riva-topbar__lang { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(var(--tw-accent-rgb, 194, 161, 101), .3); color: inherit; font-size: 13px; cursor: pointer; transition: background-color .25s ease; }
    .riva-topbar__lang:hover { background: rgba(var(--tw-accent-rgb, 194, 161, 101), .16); }
    .riva-topbar__lang img { filter: brightness(0) invert(.9) sepia(.4); width: 11px; }
    .riva-topbar__sep { opacity: .5; }
}

/* main row: ivory glass */
body header.store-header {
    position: sticky !important;
    top: 0;
    z-index: 150;
    background: transparent;
    isolation: isolate;
}
/* the glass sits on a layer behind the header — a backdrop-filter on the header itself
   would trap its position: fixed children (phone account sheet, search window) */
body header.store-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--tw-header-bg, rgba(255, 253, 249, .97));
    border-bottom: 1px solid var(--tw-header-line, var(--riva-line));
    transition: background-color .4s ease, border-color .4s ease, box-shadow .4s ease;
    pointer-events: none;
}
html.riva-scrolled body header.store-header::before {
    background: var(--tw-header-bg, rgba(255, 253, 249, .86));
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    backdrop-filter: saturate(1.4) blur(16px);
    box-shadow: 0 18px 40px -30px rgba(13, 21, 38, .5);
}
body header.store-header #mainnav { box-shadow: none !important; position: relative; z-index: 3; }
body header.store-header #mainnav > .inner { background: transparent !important; }
body header.store-header #mainnav .container > .flex { min-height: 74px; transition: min-height .4s var(--riva-ease); }
html.riva-scrolled body header.store-header #mainnav .container > .flex { min-height: 62px; }
body header.store-header .navbar-brand { padding: 4px !important; display: inline-flex; }
body header.store-header .navbar-brand img {
    max-height: 58px;
    min-height: 30px;
    width: auto !important;
    height: auto !important;
    max-width: 200px;
    object-fit: contain;
    transition: max-height .4s var(--riva-ease), filter .4s ease;
}
html.riva-scrolled body header.store-header .navbar-brand img { max-height: 46px; }
body header.store-header .navbar-brand h2 { font-family: var(--riva-head) !important; font-weight: 600; letter-spacing: .14em; color: var(--tw-header-text, var(--riva-night)); }
/* icon buttons: plain glyphs in a gold ring on hover */
body header.store-header #customerLogin,
body header.store-header .search-btn,
body header.store-header .mburger,
body header.store-header .s-user-menu-trigger-slot,
body header.store-header #s-cart-icon .header-btn {
    position: relative;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: inline-grid !important;
    place-items: center;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: inset 0 0 0 1px transparent;
    color: var(--tw-header-text, var(--riva-night)) !important;
    cursor: pointer;
    transition: box-shadow .3s ease, color .3s ease, background-color .3s ease;
}
body header.store-header #customerLogin:hover,
body header.store-header .search-btn:hover,
body header.store-header .mburger:hover,
body header.store-header .s-user-menu-trigger-slot:hover { box-shadow: inset 0 0 0 1px var(--riva-gold); background: rgba(var(--tw-accent-rgb, 194, 161, 101), .08) !important; }
body header.store-header :is(#customerLogin, .search-btn, .mburger, .s-user-menu-trigger-slot, #s-cart-icon) i { color: inherit !important; font-size: 21px !important; }
body header.store-header .mburger i { font-size: 24px !important; }
body header.store-header .top-links-icon { display: grid; place-items: center; color: inherit; }
body header.store-header .s-cart-summary-wrapper { position: relative; display: inline-flex !important; align-items: center; padding: 0 !important; background: transparent !important; color: var(--riva-night) !important; }
body header.store-header .s-cart-summary-wrapper * { color: inherit; }
body header.store-header .s-cart-summary-content { display: none !important; }
body header.store-header .s-cart-summary-count.riva-pop { animation: riva-pop .5s cubic-bezier(.34, 1.5, .64, 1); }
@keyframes riva-pop { 40% { transform: scale(1.35); } }
body header.store-header twsaa-cart-summary + twsaa-cart-summary .s-wallet-summary-count {
    position: absolute !important;
    top: auto !important;
    bottom: -4px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    padding: 0 5px;
    border-radius: 999px;
    background: var(--riva-gold) !important;
    color: var(--tw-accent-text, #fff) !important;
    font-size: 9.5px !important;
    line-height: 15px;
    white-space: nowrap;
}
body header.store-header .s-wallet-summary-count img { filter: brightness(0) invert(1) !important; width: 8px !important; }
body header.store-header .s-user-menu-wrapper { position: relative; padding: 0 !important; margin: 0 !important; }
body header.store-header #mainnav .container > .flex > div:first-child,
body header.store-header #mainnav .container > .flex > div:last-child { gap: 6px; }

/* wishlist heart */
body header.store-header .riva-wish-btn {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-grid !important; place-items: center;
    padding: 0 !important; color: var(--tw-header-text, var(--riva-night)) !important;
    box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .3s ease, background-color .3s ease;
}
body header.store-header .riva-wish-btn:hover { box-shadow: inset 0 0 0 1px var(--riva-gold); background: rgba(var(--tw-accent-rgb, 194, 161, 101), .08); }
body header.store-header .riva-wish-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; transition: transform .35s cubic-bezier(.34, 1.5, .64, 1), fill .3s ease; }
body header.store-header .riva-wish-btn:hover svg { transform: scale(1.12); fill: rgba(156, 42, 54, .12); }
/* cart: a midnight pill — bag · label · a gold count */
body header.store-header .riva-cart__pill {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 6px 0 18px !important;
    border-radius: 999px !important;
    background: var(--riva-night) !important;
    color: var(--riva-ivory) !important;
    box-shadow: 0 12px 26px -16px rgba(13, 21, 38, .8), inset 0 0 0 1px rgba(var(--tw-accent-rgb, 194, 161, 101), .25);
    transition: background-color .3s ease, transform .3s var(--riva-ease), box-shadow .3s ease;
}
html[dir="rtl"] body header.store-header .riva-cart__pill { padding: 0 18px 0 6px !important; }
body header.store-header .riva-cart__pill:hover { background: var(--riva-night-2) !important; transform: translateY(-1px); box-shadow: 0 16px 30px -16px rgba(13, 21, 38, .85), inset 0 0 0 1px rgba(var(--tw-accent-rgb, 194, 161, 101), .55); }
body header.store-header .riva-cart__pill * { color: inherit; }
body header.store-header .riva-cart__pill #s-cart-icon { order: 0; }
body header.store-header .riva-cart__pill #s-cart-icon .header-btn { width: 24px !important; height: 24px !important; box-shadow: none !important; color: var(--riva-gold-l) !important; }
body header.store-header .riva-cart__bag { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
body header.store-header .riva-cart__label { order: 1; font-weight: 600; font-size: 15.5px; white-space: nowrap; letter-spacing: .02em; }
body header.store-header .riva-cart__pill .s-cart-summary-count {
    order: 2;
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    min-width: 40px !important;
    height: 36px !important;
    padding: 0 10px;
    border-radius: 999px !important;
    background: var(--riva-gold-grad) !important;
    color: var(--tw-accent-text, var(--riva-night)) !important;
    font-size: 15px !important;
    font-weight: 800;
    line-height: 36px !important;
    text-align: center;
    box-shadow: none !important;
}

/* menu row: centred under the logo */
body header.store-header .inner.nav-header { background: var(--tw-nav-bg, transparent) !important; position: relative; z-index: 1; }
@media (min-width: 1024px) {
    body header.store-header { top: calc(-1 * var(--riva-topbar-h, 41px)); }
    body header.store-header .search-btn.lg\:hidden { display: inline-grid !important; }
    body header.store-header .mburger { display: none !important; }
    body header.store-header .inner.nav-header > .container { justify-content: center !important; border: 0 !important; }
    body header.store-header .inner.nav-header > .container > div:not(:first-child) { display: none !important; }
    body header.store-header .inner.nav-header > .container > div:first-child { width: auto !important; max-width: 100%; }
    body header.store-header .inner.nav-header .main-menu,
    body header.store-header .inner.nav-header nav.mobile-menu { overflow: visible !important; background: transparent !important; }
    body header.store-header .inner.nav-header .main-menu { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 2px; padding: 0 0 6px !important; }
    body header.store-header .inner.nav-header .main-menu > li.root-level { position: relative; }
    body header.store-header .inner.nav-header .main-menu > li.root-level:hover { z-index: 90; }
    body header.store-header .inner.nav-header .main-menu > li.root-level > a {
        position: relative;
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        padding: 7px 15px 11px !important;
        color: var(--tw-nav-text, var(--tw-header-text, var(--riva-night))) !important;
        font-weight: 500 !important;
        font-size: 15px !important;
        letter-spacing: .01em;
        white-space: nowrap;
        transition: color .3s ease;
    }
    body header.store-header .inner.nav-header .main-menu > li.root-level > a * { color: inherit !important; }
    /* a gold line grows from the centre, a small diamond sits on it */
    body header.store-header .inner.nav-header .main-menu > li.root-level > a::before {
        content: "";
        position: absolute;
        left: 15px;
        right: 15px;
        bottom: 5px;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--riva-gold), transparent);
        transform: scaleX(0);
        transition: transform .5s var(--riva-ease);
    }
    body header.store-header .inner.nav-header .main-menu > li.root-level:hover > a { color: var(--tw-nav-text, var(--riva-gold-d)) !important; }
    body header.store-header .inner.nav-header .main-menu > li.root-level:hover > a::before { transform: scaleX(1); }
    body header.store-header .inner.nav-header .main-menu > li.has-children > a::after {
        content: "";
        width: 9px;
        height: 9px;
        border: 0 !important;
        opacity: .6;
        background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
        transform: none;
        transition: transform .3s var(--riva-ease);
    }
    body header.store-header .inner.nav-header .main-menu > li.has-children:hover > a::after { transform: rotate(180deg); }
    body header.store-header .inner.nav-header .sub-menu {
        top: 100% !important;
        z-index: 90 !important;
        min-width: 240px;
        padding: 12px !important;
        border-radius: var(--riva-r) !important;
        background: var(--riva-ivory) !important;
        border: 1px solid var(--riva-line) !important;
        border-top: 2px solid var(--riva-gold) !important;
        box-shadow: var(--riva-shadow-lg) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        overflow: visible;
        animation: riva-drop .35s var(--riva-ease) both;
    }
    body header.store-header .inner.nav-header .sub-menu li > a {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding: 10px 14px !important;
        border-radius: 8px;
        color: var(--riva-text) !important;
        font-size: 14.5px !important;
        transition: background-color .2s ease, padding .35s var(--riva-ease), color .2s ease;
    }
    body header.store-header .inner.nav-header .sub-menu li > a * { color: inherit !important; }
    body header.store-header .inner.nav-header .sub-menu li > a::before { content: ""; width: 5px; height: 5px; flex: none; transform: rotate(45deg) scale(0); background: var(--riva-gold); transition: transform .3s var(--riva-ease); }
    body header.store-header .inner.nav-header .sub-menu li > a:hover { background: var(--riva-champagne); color: var(--riva-night) !important; padding-inline-start: 18px !important; }
    body header.store-header .inner.nav-header .sub-menu li > a:hover::before { transform: rotate(45deg) scale(1); }
    body header.store-header .inner.nav-header .sub-menu .sub-menu { top: -12px !important; }
    body header.store-header .inner.nav-header .sub-menu:has(li.has-children) { overflow: visible !important; }
    /* the menu row folds away once the page scrolls (the logo bar stays); hover brings it back */
    body header.store-header .inner.nav-header > .container { max-height: 260px; transition: max-height .45s var(--riva-ease), opacity .3s ease; }
    html.riva-scrolled body header.store-header .inner.nav-header > .container { max-height: 0; opacity: 0; overflow: hidden; pointer-events: none; }
    html.riva-scrolled body header.store-header .inner.nav-header:hover > .container,
    html.riva-scrolled body header.store-header:hover .inner.nav-header > .container { max-height: 260px; opacity: 1; overflow: visible; pointer-events: auto; }

    /* account dropdown: centred under the icon */
    body header.store-header .s-user-menu-wrapper .s-user-menu-dropdown {
        top: calc(100% + 10px) !important;
        left: 50% !important;
        right: auto !important;
        margin-left: -130px !important;
        width: 260px !important;
        background: var(--riva-ivory) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        opacity: 1 !important;
        border-radius: var(--riva-r) !important;
        border: 1px solid var(--riva-line) !important;
        border-top: 2px solid var(--riva-gold) !important;
        box-shadow: var(--riva-shadow-lg) !important;
        overflow: hidden;
        animation: riva-drop .3s var(--riva-ease) both;
    }
    body header.store-header .s-user-menu-dropdown-item a { transition: background-color .2s ease, padding .3s var(--riva-ease); }
    body header.store-header .s-user-menu-dropdown-item a:hover { background: var(--riva-champagne) !important; padding-inline-start: 24px !important; }
    body header.store-header .s-user-menu-dropdown-item a i { color: var(--riva-gold-d) !important; }
    body header.store-header .s-user-menu-dropdown-item-logout a,
    body header.store-header .s-user-menu-dropdown-item-logout a i { color: var(--riva-sale) !important; }

    /* home: transparent over the hero — ivory type and a white logo until the page scrolls */
    body.riva-home:has(.s-block-0:is(.s-block--fixed-banner, .s-block--video-url, .s-block--youtube-url)) header.store-header { margin-bottom: calc(-1 * var(--riva-full-header-h, 180px)); }
    html:not(.riva-scrolled) body.riva-home:has(.s-block-0:is(.s-block--fixed-banner, .s-block--video-url, .s-block--youtube-url)) header.store-header::before {
        background: var(--tw-header-bg, linear-gradient(rgba(13, 21, 38, .55), rgba(13, 21, 38, 0)));
        border-color: transparent;
    }
    html:not(.riva-scrolled) body.riva-home:has(.s-block-0:is(.s-block--fixed-banner, .s-block--video-url, .s-block--youtube-url)) header.store-header :is(#customerLogin, .search-btn, .s-user-menu-trigger-slot, .riva-wish-btn) { color: var(--tw-header-text, #fff) !important; text-shadow: var(--tw-header-shadow, 0 1px 10px rgba(0, 0, 0, .4)); }
    html:not(.riva-scrolled) body.riva-home:has(.s-block-0:is(.s-block--fixed-banner, .s-block--video-url, .s-block--youtube-url)) header.store-header .inner.nav-header .main-menu > li.root-level > a { color: var(--tw-nav-text, var(--tw-header-text, #fff)) !important; text-shadow: var(--tw-header-shadow, 0 1px 10px rgba(0, 0, 0, .4)); }
    html:not(.riva-scrolled) body.riva-home:has(.s-block-0:is(.s-block--fixed-banner, .s-block--video-url, .s-block--youtube-url)) header.store-header .navbar-brand img { filter: var(--tw-header-logo-filter, brightness(0) invert(1)); }
}
@keyframes riva-drop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes riva-fade { from { opacity: 0; } }
body header.store-header #mainnav .container > .flex > * { animation: riva-fade .8s var(--riva-ease) 1s backwards; }
/* menu items with an empty label (merchant menu settings) stay hidden */
body header.store-header .main-menu > li.root-level:has(> a span:empty),
body header.store-header .main-menu > li:empty,
body .mm-spn li:has(> a span:empty) { display: none !important; }

/* ---------- 5. Phone header & account sheet ---------- */
@media (max-width: 1023px) {
    body header.store-header #mainnav .container > .flex { min-height: 62px !important; }
    body header.store-header .inner.nav-header { padding: 0 !important; min-height: 0; }
    /* the account menu opens as a bottom sheet with every item listed */
    body header.store-header #mainnav:has(.s-user-menu-trigger-slot.active),
    body header.store-header:has(.s-user-menu-trigger-slot.active) { z-index: 10050 !important; }
    body header.store-header .s-user-menu-toggler.opened::before { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; background: rgba(13, 21, 38, .55) !important; }
    body header.store-header .s-user-menu-dropdown {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        max-height: 86vh !important;
        max-height: 86dvh !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        z-index: 10051 !important;
        border: 0 !important;
        border-radius: 24px 24px 0 0 !important;
        background: var(--riva-ivory) !important;
        box-shadow: 0 -20px 50px rgba(13, 21, 38, .3) !important;
        padding-bottom: env(safe-area-inset-bottom);
        animation: riva-sheet .45s var(--riva-ease) both;
    }
    @keyframes riva-sheet { from { transform: translateY(40px); opacity: 0; } }
    body header.store-header .s-user-menu-dropdown::before { content: ""; display: block; width: 44px; height: 4px; margin: 10px auto 0; border-radius: 9px; background: var(--riva-gold-l); }
    body header.store-header .s-user-menu-dropdown-header { display: flex !important; align-items: center; padding: 14px 20px !important; border-bottom: 1px solid var(--riva-line) !important; background: transparent !important; }
    body header.store-header .s-user-menu-dropdown-header-content p { color: var(--riva-night) !important; font-weight: 700; font-family: var(--riva-head) !important; font-size: 17px; }
    body header.store-header .s-user-menu-dropdown-header-close { top: 50% !important; transform: translateY(-50%); }
    body header.store-header .s-user-menu-dropdown-list { display: block !important; max-height: none !important; overflow: visible !important; padding: 6px 0 14px !important; }
    body header.store-header .s-user-menu-dropdown-item { display: block !important; opacity: 1 !important; visibility: visible !important; }
    body header.store-header .s-user-menu-dropdown-item a { display: flex !important; align-items: center; gap: 12px; padding: 14px 22px !important; font-size: 15px !important; color: var(--riva-night) !important; border-bottom: 1px solid var(--riva-line); }
    body header.store-header .s-user-menu-dropdown-item a i { color: var(--riva-gold-d) !important; font-size: 18px; }
    body header.store-header .s-user-menu-dropdown-item:last-child a { border-bottom: 0; }
    body header.store-header .s-user-menu-dropdown-item-logout a,
    body header.store-header .s-user-menu-dropdown-item-logout a i { color: var(--riva-sale) !important; }
}
@media (max-width: 767px) {
    body header.store-header #mainnav .container { padding-inline: 12px !important; }
    body header.store-header #mainnav .container > .flex { gap: 6px; }
    body header.store-header #mainnav .container > .flex > .w-1\/3 { flex: 1 1 0% !important; width: auto !important; min-width: 0; gap: 2px !important; }
    body header.store-header #mainnav .container > .flex > div:nth-child(2) { flex: none; }
    body header.store-header .navbar-brand img { max-height: 42px !important; max-width: 108px; }
    body header.store-header :is(#customerLogin, .search-btn, .mburger, .s-user-menu-trigger-slot, #s-cart-icon .header-btn) { width: 38px !important; height: 38px !important; }
    body header.store-header :is(#customerLogin, .search-btn, .mburger, .s-user-menu-trigger-slot, #s-cart-icon) i { font-size: 19px !important; }
    body header.store-header .riva-wish-btn { display: none !important; }
    body header.store-header .riva-cart__label { display: none; }
    body header.store-header .riva-cart__pill { height: 38px; gap: 6px; padding: 0 4px 0 10px !important; }
    html[dir="rtl"] body header.store-header .riva-cart__pill { padding: 0 10px 0 4px !important; }
    body header.store-header .riva-cart__pill #s-cart-icon .header-btn { width: 20px !important; height: 20px !important; }
    body header.store-header .riva-cart__bag { width: 18px; height: 18px; }
    body header.store-header .riva-cart__pill .s-cart-summary-count { min-width: 28px !important; height: 30px !important; line-height: 30px !important; font-size: 13px !important; padding: 0 8px; }
}
@media (max-width: 359px) {
    body header.store-header :is(#customerLogin, .search-btn, .mburger, .s-user-menu-trigger-slot, #s-cart-icon .header-btn) { width: 33px !important; height: 33px !important; }
    body header.store-header .navbar-brand img { max-width: 86px; }
}
/* mobile drawer (Angle's mm-spn menu) */
body .mm-spn.mm-spn--light { background: var(--riva-ivory); color: var(--riva-night); }
body .mm-spn.mm-spn--navbar::after { background: var(--riva-night); color: var(--riva-gold-l); font-family: var(--riva-head); font-weight: 600; letter-spacing: .06em; }
body .mm-spn.mm-spn--navbar::before { color: var(--riva-gold-l); }
body .mm-spn li::before { border-color: var(--riva-gold) !important; }
body .mm-spn li::after { border-color: var(--riva-line) !important; }
body .mm-spn li a,
body .mm-spn li > span { color: var(--riva-night) !important; font-weight: 500; }
body .mm-spn li:hover > a { color: var(--riva-gold-d) !important; }
body .mm-ocd__backdrop { background: rgba(13, 21, 38, .55) !important; }

/* ---------- 6. Hero & reveals ---------- */
/* the first banner of the home page runs edge to edge, under the transparent header */
body.riva-home .main-container-wrapper > .container > .s-block-0:is(.s-block--fixed-banner, .s-block--video-url, .s-block--youtube-url) {
    width: 100vw;
    max-width: none;
    margin: 0 calc(50% - 50vw) !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}
body.riva-home .main-container-wrapper > .container > .s-block-0:is(.s-block--fixed-banner, .s-block--video-url, .s-block--youtube-url) > .container { max-width: none !important; width: 100% !important; padding: 0 !important; }
body.riva-home .main-container-wrapper > .container > .s-block-0:is(.s-block--fixed-banner, .s-block--video-url, .s-block--youtube-url) .banner { display: block; border-radius: 0 !important; }
body.riva-home .main-container-wrapper > .container > .s-block-0:is(.s-block--fixed-banner, .s-block--video-url, .s-block--youtube-url) .banner::after { display: none; }
body.riva-home .main-container-wrapper > .container > .s-block-0:is(.s-block--fixed-banner, .s-block--video-url, .s-block--youtube-url) .banner img { display: block; width: 100% !important; }
html.riva-loaded body.riva-home .main-container-wrapper > .container > .s-block-0:is(.s-block--fixed-banner, .s-block--video-url, .s-block--youtube-url) .banner img { animation: riva-hero 2.8s var(--riva-ease) both; }
@keyframes riva-hero { from { transform: scale(1.08); filter: brightness(.85); } to { transform: none; filter: none; } }
/* a slim gold line closes the hero */
body.riva-home .main-container-wrapper > .container > .s-block-0:is(.s-block--fixed-banner, .s-block--video-url, .s-block--youtube-url)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--riva-gold-grad); z-index: 2; }
body.riva-home .main-container-wrapper > .container > .s-block-0:is(.s-block--video-url, .s-block--youtube-url) :is(video, iframe) { display: block; width: 100% !important; max-width: none !important; margin: 0 !important; border: 0; border-radius: 0 !important; object-fit: cover; }
@media (min-width: 1024px) {
    body.riva-home .main-container-wrapper:has(> .container > .s-block-0:is(.s-block--fixed-banner, .s-block--video-url, .s-block--youtube-url)) { padding-top: 0 !important; margin-top: 0 !important; }
    body.riva-home .main-container-wrapper > .container > .s-block-0:is(.s-block--fixed-banner, .s-block--video-url, .s-block--youtube-url) { margin-top: 0 !important; }
    body.riva-home .main-container-wrapper > .container > .s-block-0:is(.s-block--fixed-banner, .s-block--video-url, .s-block--youtube-url) .banner img,
    body.riva-home .main-container-wrapper > .container > .s-block-0:is(.s-block--video-url, .s-block--youtube-url) :is(video, iframe) {
        height: clamp(480px, 74vh, 780px) !important;
        aspect-ratio: auto !important;
        object-fit: cover;
        object-position: center;
    }
}
@media (max-width: 1023px) {
    body.riva-home .main-container-wrapper > .container > .s-block-0:is(.s-block--fixed-banner, .s-block--video-url, .s-block--youtube-url) { margin-top: 0 !important; }
    body.riva-home .main-container-wrapper > .container > .s-block-0:is(.s-block--video-url, .s-block--youtube-url) :is(video, iframe) { height: auto !important; aspect-ratio: 16 / 9 !important; }
}
/* sections breathe */
body .main-container-wrapper > .container > .s-block:not(.s-block-0) { margin-top: clamp(44px, 6vw, 84px) !important; }
/* reveals (riva.js adds .riva-reveal / .is-in) — rise and un-blur */
html.riva-reveal-on body .riva-reveal { transition: opacity 1s var(--riva-ease), transform 1s var(--riva-ease), filter 1s var(--riva-ease); transition-delay: var(--riva-d, 0s); }
html.riva-reveal-on body .riva-reveal:not(.is-in) { opacity: 0; transform: translateY(34px); filter: blur(4px); }
html.riva-reveal-on body .riva-reveal:not(.is-in) img.lazyloading { opacity: 1; }
html.riva-reveal-on body .s-block-0.riva-reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
/* product cards in a revealed row only rise (blur on many cards costs too much) */
html.riva-reveal-on body .product-entry.riva-reveal:not(.is-in) { filter: none; transform: translateY(24px); }
/* first screen: the header items fade in after the curtain */
html.riva-loaded body .main-container-wrapper > .container > .s-block:is(.s-block-1, .s-block-2) { animation: riva-rise 1s var(--riva-ease) .2s backwards; }
@keyframes riva-rise { from { opacity: 0; transform: translateY(26px); } }

/* ---------- 7. Product cards ---------- */
.riva-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--riva-ivory);
    border: 1px solid var(--riva-line);
    border-radius: var(--riva-r);
    overflow: hidden;
    text-align: center;
    transition: border-color .4s ease, box-shadow .5s var(--riva-ease), transform .5s var(--riva-ease);
}
/* a gold hairline frame settles inside the photo on hover */
.riva-card__media::after { content: ""; position: absolute; inset: 10px; z-index: 3; border: 1px solid rgba(var(--tw-accent-rgb, 231, 214, 176), .9); border-radius: calc(var(--riva-r) - 6px); opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform .7s var(--riva-ease); pointer-events: none; }
@media (hover: hover) {
    .riva-card:hover { border-color: var(--riva-gold-l); box-shadow: var(--riva-shadow); transform: translateY(-5px); }
    .riva-card:hover .riva-card__media::after { opacity: 1; transform: none; }
}
.riva-card__media { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #fff, var(--riva-champagne)); overflow: hidden; }
.riva-card__image-link { position: absolute; inset: 0; display: block; }
.riva-card .riva-gallery { position: absolute; inset: 0; overflow: hidden; direction: ltr; }
.riva-card .riva-gallery__track { display: flex; height: 100%; transition: transform .8s var(--riva-ease); will-change: transform; }
.riva-card .riva-gallery__track > img { flex: 0 0 100%; width: 100%; height: 100%; min-width: 0; object-fit: cover; transition: transform 1.4s var(--riva-ease); }
@media (hover: hover) { .riva-card:hover .riva-gallery[data-count="1"] img { transform: scale(1.06); } }
.riva-card .riva-gallery__dots {
    position: absolute; z-index: 4; top: 14px; left: 50%;
    display: flex; gap: 4px;
    transform: translateX(-50%); opacity: 0;
    transition: opacity .3s ease;
}
.riva-card .riva-gallery__dots i { width: 12px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15); transition: background-color .3s ease, width .35s var(--riva-ease); }
.riva-card .riva-gallery__dots i.is-on { width: 22px; background: var(--riva-gold-l); }
.riva-card:hover .riva-gallery__dots,
.riva-card .riva-gallery.is-moved .riva-gallery__dots { opacity: 1; }
@media (hover: none) { .riva-card .riva-gallery:not([data-count="1"]) .riva-gallery__dots { opacity: 1; } }
/* badges */
.riva-card__badges { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 5; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: calc(100% - 24px); pointer-events: none; }
.riva-badge {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    max-width: 100%;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--riva-ivory);
    color: var(--riva-night);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 4px 12px -8px rgba(0, 0, 0, .4), inset 0 0 0 1px var(--riva-line);
}
.riva-badge--promo { background: var(--riva-night); color: var(--riva-gold-l); box-shadow: inset 0 0 0 1px rgba(var(--tw-accent-rgb, 194, 161, 101), .45); }
.riva-badge--muted { background: rgba(255, 253, 249, .92); color: var(--riva-mute); }
/* hover tools: two ivory discs above the add bar */
.riva-card__tools {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 70px;
    display: flex;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
}
.riva-card__tool {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--riva-ivory);
    color: var(--riva-night) !important;
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--riva-line);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: auto;
    transition: opacity .4s ease, transform .5s var(--riva-ease), background-color .25s ease, color .25s ease;
}
.riva-card__tool:nth-child(2) { transition-delay: .07s; }
.riva-card__tool svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.riva-card__tool:hover { background: var(--riva-night); color: var(--riva-gold-l) !important; }
.riva-card__tool.is-added { color: var(--riva-sale) !important; }
.riva-card__tool.is-added svg { fill: currentColor; }
/* add to cart: a midnight bar that rises over the photo */
.riva-card__form { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; margin: 0; }
.riva-card__add {
    width: 100%;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-top: 1px solid rgba(var(--tw-accent-rgb, 194, 161, 101), .45);
    background: rgba(var(--tw-accent-rgb, 13, 21, 38), .9);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: var(--tw-accent-text, var(--riva-gold-l));
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .03em;
    cursor: pointer;
    transform: translateY(100%);
    transition: transform .55s var(--riva-ease), background-color .25s ease, color .25s ease;
}
.riva-card__add .s-button-text { display: inline-flex; align-items: center; gap: 10px; }
.riva-card__add svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.riva-card__add:not([disabled]):hover { background: var(--tw-accent-dark, var(--riva-night)); color: var(--tw-accent-text, #fff); }
.riva-card__add[disabled] { background: rgba(255, 253, 249, .92); color: var(--riva-mute); border-top-color: var(--riva-line); cursor: not-allowed; }
.riva-card__add .loading-gif-cart .s-button-loader { border-color: currentColor; border-right-color: transparent; }
@media (hover: hover) {
    .riva-card:hover .riva-card__tool,
    .riva-card:focus-within .riva-card__tool { opacity: 1; transform: none; }
    .riva-card:hover .riva-card__add,
    .riva-card:focus-within .riva-card__add { transform: none; }
}
/* touch screens: wishlist in the corner, the add bar always visible (slimmer) */
@media (hover: none) {
    .riva-card__tools { top: 10px; bottom: auto; left: auto; right: auto; }
    html[dir="rtl"] .riva-card__tools { left: 10px; }
    html[dir="ltr"] .riva-card__tools { right: 10px; }
    .riva-card__tool { width: 34px; height: 34px; opacity: 1; transform: none; }
    .riva-card__tool + .riva-card__tool { display: none; }
    .riva-card__tool svg { width: 16px; height: 16px; }
    .riva-card__add { transform: none; min-height: 42px; font-size: 13px; }
    .riva-card__add svg { width: 16px; height: 16px; }
    .riva-card__media::after { display: none; }
}
/* info */
.riva-card__body { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 16px 20px; }
.riva-card__title { margin: 0; width: 100%; font-size: 15.5px; font-weight: 500; line-height: 1.6; height: calc(1.6em * 2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.riva-card__title a { color: var(--riva-night) !important; text-decoration: none; background: linear-gradient(var(--riva-gold), var(--riva-gold)) no-repeat 50% 100% / 0 1px; transition: background-size .5s var(--riva-ease), color .3s ease; }
.riva-card:hover .riva-card__title a { background-size: 100% 1px; }
.riva-card__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.riva-card__chips.is-empty { display: none; }
.riva-chip {
    min-width: 44px;
    padding: 5px 11px;
    border: 1px solid var(--riva-line-2);
    border-radius: 999px;
    color: var(--riva-night) !important;
    font-size: 12.5px;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.riva-chip:hover { border-color: var(--riva-night); background: var(--riva-night); color: var(--riva-gold-l) !important; }
.riva-chip--more { color: var(--riva-mute) !important; }
/* a short gold rule above the price */
.riva-card__price { position: relative; margin-top: auto !important; padding-top: 12px; }
.riva-card__price::before { content: ""; position: absolute; top: 0; left: 50%; width: 26px; height: 1px; margin-left: -13px; background: var(--riva-gold); opacity: .7; transition: width .5s var(--riva-ease), margin .5s var(--riva-ease); }
.riva-card:hover .riva-card__price::before { width: 54px; margin-left: -27px; }
.riva-card__price,
.riva-card__price .price,
.riva-card__price .special-price,
.riva-card__price .regular-price {
    display: inline-flex !important;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    gap: 2px 8px;
    white-space: nowrap;
    background: none !important;
    margin: 0;
}
.riva-card__price .price,
.riva-card__price .special-price,
.riva-card__price .regular-price { padding: 0 !important; }
.riva-card__price .price,
.riva-card__price .special-price { font-size: 18.5px !important; font-weight: 700; line-height: 1.4 !important; color: var(--riva-night) !important; }
.riva-card__price .special-price { color: var(--riva-sale) !important; }
.riva-card__price .regular-price { font-size: 13px !important; color: var(--riva-mute-2) !important; order: 2; }
.riva-card.is-sold-out .riva-card__title a { color: var(--riva-mute) !important; }
/* grids & sliders: cards in a row share one height */
body .products-container.grid { gap: 22px !important; align-items: stretch; }
body .products-container > .riva-card,
body .swiper-slide > .riva-card { height: 100%; }
body .s-block--best-offers .swiper-wrapper,
body .mySwiper .swiper-wrapper,
body .listSwiper .swiper-wrapper { align-items: stretch; }
body .s-block--best-offers .swiper-slide,
body .mySwiper .slide--one-sixth,
body .listSwiper .swiper-slide { height: auto !important; display: flex; padding-bottom: 8px; }
body .s-block--best-offers .swiper-slide > *,
body .mySwiper .slide--one-sixth > *,
body .listSwiper .swiper-slide > * { flex: 1 1 auto; min-width: 0; }

/* ---------- 8. Categories: a 3D showcase arc (motion in riva.js) ---------- */
body .riva-cats { overflow: hidden; padding: 24px 0 34px !important; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
body .riva-cats .swiper-wrapper { align-items: flex-start; }
body .riva-cats .swiper-slide { width: 200px !important; height: auto; transition-property: transform, opacity !important; transition-timing-function: var(--riva-ease) !important; will-change: transform; }
body .riva-cats .banner-square { position: relative; padding: 0 !important; background: none !important; text-align: center; cursor: pointer; }
body .riva-cats .banner-square > a { display: block; position: relative; padding: 8px; }
/* an arched window: rounded top like a boutique vitrine */
body .riva-cats .box-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto !important;
    border-radius: 999px 999px var(--riva-r) var(--riva-r) !important;
    overflow: hidden;
    background: linear-gradient(160deg, #fff, var(--riva-champagne));
    box-shadow: 0 0 0 1px var(--riva-line), 0 22px 40px -30px rgba(13, 21, 38, .5);
    transition: box-shadow .5s var(--riva-ease);
}
body .riva-cats .box-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; filter: none !important; transition: transform 1.2s var(--riva-ease); }
/* a gold ring follows the arch of the centre piece */
body .riva-cats .banner-square > a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px 999px calc(var(--riva-r) + 6px) calc(var(--riva-r) + 6px);
    border: 1px solid var(--riva-gold);
    transform: scale(.95);
    opacity: 0;
    transition: transform .6s var(--riva-ease), opacity .45s ease;
    pointer-events: none;
}
body .riva-cats .swiper-slide-active > a::after,
body .riva-cats .swiper-slide-active .banner-square > a::after { transform: none; opacity: 1; }
body .riva-cats .swiper-slide-active .box-img { box-shadow: 0 0 0 1px var(--riva-gold-l), 0 30px 50px -28px rgba(var(--tw-accent-dark-rgb, 156, 124, 66), .6); }
body .riva-cats .banner-square > div.relative { position: relative !important; padding: 14px 4px 0 !important; background: none !important; }
body .riva-cats .banner-square h3 { display: block; color: var(--riva-night) !important; font-family: var(--riva-head) !important; font-weight: 600; font-size: 18px !important; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s ease; }
body .riva-cats .swiper-slide-active h3 { color: var(--riva-gold-d) !important; }
body .riva-cats .riva-cat__sub { margin: 4px 0 0; color: var(--riva-mute); font-size: 13.5px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) {
    body .riva-cats .banner-square:hover > a::after { transform: none; opacity: 1; }
    body .riva-cats .banner-square:hover .box-img img { transform: scale(1.08); }
}
/* before riva.js starts (or a short list): a centred row */
body .riva-cats:not(.is-arc) .swiper-wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; transform: none !important; }
body .riva-cats.is-few { -webkit-mask-image: none; mask-image: none; }

/* ---------- 9. Brands: gilded plates gliding in one line (riva.js) ---------- */
body .riva-brands { overflow: hidden; padding: 10px 0 18px !important; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
/* the marquee (built by riva.js): two identical sets, the track slides half its width */
.riva-glide__track { display: flex; width: max-content; direction: ltr; animation: riva-glide var(--riva-glide-s, 40s) linear infinite; will-change: transform; }
html[dir="rtl"] .riva-glide__track { animation-direction: reverse; }
/* the marquee box is laid out left to right (RTL would anchor the wide track to the right edge
   and slide it off screen); the plates' own text keeps the page direction */
body .riva-brands.is-glide { direction: ltr; }
body .riva-brands.is-glide .banner-square { direction: inherit; }
html[dir="rtl"] body .riva-brands.is-glide .box-img { direction: rtl; }
body .riva-brands:hover .riva-glide__track { animation-play-state: paused; }
.riva-glide__set { display: flex; gap: 20px; padding-inline-end: 20px; flex: none; }
@keyframes riva-glide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body .riva-brands .banner-square {
    width: 170px !important;
    flex: none;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}
body .riva-brands .banner-square > a { display: block; width: 100%; }
/* a plate: ivory, a double gold hairline frame */
body .riva-brands .box-img {
    position: relative;
    width: 100%;
    height: 110px !important;
    border-radius: var(--riva-r) !important;
    background: var(--riva-ivory);
    display: grid;
    grid-template: 100% / 100%;
    place-items: stretch;
    padding: 22px 26px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--riva-line), inset 0 0 0 5px var(--riva-ivory), inset 0 0 0 6px rgba(var(--tw-accent-rgb, 194, 161, 101), .28);
    transition: box-shadow .45s var(--riva-ease), transform .5s var(--riva-ease), background-color .4s ease;
}
/* a light sweeps across on hover */
body .riva-brands .box-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
body .riva-brands .box-img img { width: 100% !important; height: 100% !important; object-fit: contain !important; filter: none; opacity: .92; transition: opacity .4s ease, transform .6s var(--riva-ease); }
body .riva-brands .banner-square > div.relative { display: none; }
/* broken logo → name plate */
body .riva-brands .box-img img { color: transparent; font-size: 0; position: relative; display: block; min-width: 100%; min-height: 100%; }
body .riva-brands .box-img img::before { content: attr(alt); position: absolute; inset: 0; display: grid; place-items: center; background: var(--riva-ivory); color: var(--riva-night); font-family: var(--riva-head); font-weight: 600; font-size: 15px; letter-spacing: .06em; line-height: 1.2; text-align: center; }
@media (hover: hover) {
    body .riva-brands .banner-square:hover .box-img { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--riva-gold-l), inset 0 0 0 5px var(--riva-ivory), inset 0 0 0 6px var(--riva-gold), var(--riva-glow); }
    body .riva-brands .banner-square:hover .box-img::after { transform: translateX(120%); transition: transform .9s var(--riva-ease); }
    body .riva-brands .banner-square:hover .box-img img { opacity: 1; transform: scale(1.06); }
}
/* before riva.js (or without JS): a simple wrapped row */
body .riva-brands:not(.is-glide) .swiper-wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; transform: none !important; }

/* ---------- 10. Store features: midnight cards, the gold diamond turns ---------- */
body .myStoreSwiper { overflow: hidden; padding: 10px 2px 16px !important; }
body .myStoreSwiper .swiper-wrapper { transition-timing-function: var(--riva-ease) !important; }
body .myStoreSwiper .swiper-slide { height: auto; margin-top: 0 !important; }
body .myStoreSwiper .s-block--features__item {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    gap: 6px;
    padding: 38px 24px 30px !important;
    border-radius: var(--riva-r-lg) !important;
    background: radial-gradient(120% 90% at 50% 0%, var(--riva-night-3), var(--riva-night) 70%) !important;
    border: 1px solid rgba(var(--tw-accent-rgb, 194, 161, 101), .22);
    box-shadow: 0 24px 50px -36px rgba(13, 21, 38, .8) !important;
    overflow: hidden;
    isolation: isolate;
    transition: transform .55s var(--riva-ease), box-shadow .55s var(--riva-ease), border-color .4s ease;
}
/* a fine inner gold frame */
body .myStoreSwiper .s-block--features__item::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(var(--tw-accent-rgb, 194, 161, 101), .16); border-radius: calc(var(--riva-r-lg) - 8px); pointer-events: none; transition: border-color .4s ease; }
body .myStoreSwiper .feature-icon {
    position: relative;
    width: 64px !important;
    height: 64px !important;
    margin: 0 0 16px !important;
    display: grid !important;
    place-items: center;
    background: transparent !important;
    color: var(--riva-gold-l) !important;
    transition: color .4s ease;
}
/* the icon sits in a gold diamond */
body .myStoreSwiper .feature-icon::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--riva-gold); transform: rotate(45deg); border-radius: 6px; transition: transform .8s var(--riva-ease), background-color .4s ease; z-index: -1; }
body .myStoreSwiper .feature-icon i { color: inherit !important; font-size: 24px !important; transition: transform .6s var(--riva-ease); }
body .myStoreSwiper .s-block--features__item h2 { margin: 0 !important; font-family: var(--riva-head) !important; font-weight: 600 !important; font-size: 18px !important; line-height: 1.5 !important; color: var(--riva-ivory) !important; text-align: center !important; }
body .myStoreSwiper .s-block--features__item p { margin: 2px 0 0 !important; font-size: 14px !important; line-height: 1.85 !important; color: rgba(var(--tw-accent-rgb, 231, 214, 176), .72) !important; text-align: center !important; }
@media (hover: hover) {
    body .myStoreSwiper .s-block--features__item:hover { transform: translateY(-6px); border-color: rgba(var(--tw-accent-rgb, 194, 161, 101), .55); box-shadow: 0 30px 60px -34px rgba(13, 21, 38, .9), var(--riva-glow) !important; }
    body .myStoreSwiper .s-block--features__item:hover::before { border-color: rgba(var(--tw-accent-rgb, 194, 161, 101), .4); }
    body .myStoreSwiper .s-block--features__item:hover .feature-icon { color: var(--riva-night) !important; }
    body .myStoreSwiper .s-block--features__item:hover .feature-icon::before { transform: rotate(225deg); background: var(--riva-gold); }
    body .myStoreSwiper .s-block--features__item:hover .feature-icon i { transform: scale(1.1); }
}

/* ---------- 11. Customer reviews: ivory cards, a gold quote mark ---------- */
body .myReviewSwiper { overflow: hidden; padding: 8px 4px 24px !important; }
body .myReviewSwiper .swiper-wrapper { transition-timing-function: var(--riva-ease) !important; }
body .myReviewSwiper .swiper-slide { height: auto !important; margin-top: 0 !important; }
body .myReviewSwiper .swiper-slide > div {
    position: relative;
    height: 100%;
    border-radius: var(--riva-r-lg) !important;
    background: var(--riva-ivory) !important;
    border: 1px solid var(--riva-line);
    box-shadow: none !important;
    overflow: hidden;
    transition: border-color .35s ease, transform .5s var(--riva-ease), box-shadow .5s var(--riva-ease);
}
body .myReviewSwiper .swiper-slide > div::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 2px; background: var(--riva-gold-grad); opacity: .8; }
body .myReviewSwiper .swiper-slide > div > div { margin: 0 !important; padding: 28px 24px 22px !important; display: flex !important; flex-direction: column; gap: 18px; height: 100%; }
body .myReviewSwiper .swiper-slide > div > div > p { order: 1; flex: 1; margin: 0 !important; font-size: 15px !important; line-height: 1.95 !important; text-align: start !important; color: var(--riva-text) !important; }
body .myReviewSwiper .swiper-slide > div > div > p::before { content: "“"; display: block; height: 30px; font-family: Georgia, serif !important; font-size: 60px; line-height: 1; background: var(--riva-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body .myReviewSwiper .s-testimonials--slider--img { order: 2; display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 12px !important; padding-top: 16px; border-top: 1px solid var(--riva-line); }
body .myReviewSwiper .testimonial__avatar { flex: none; order: 0; width: 44px !important; height: 44px !important; border-radius: 50% !important; overflow: hidden; background: var(--riva-champagne); box-shadow: 0 0 0 2px var(--riva-ivory), 0 0 0 3px var(--riva-gold-l); }
body .myReviewSwiper .testimonial__avatar img { width: 100% !important; height: 100% !important; object-fit: cover; }
body .myReviewSwiper .s-testimonials--slider--img > p { order: 1; margin: 0; text-align: start; font-weight: 700; font-size: 15px !important; color: var(--riva-night) !important; }
body .myReviewSwiper .testimonial__rating { order: 2; margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; }
body .myReviewSwiper .s-rating-stars-wrapper i { font-size: 12px; }
body .myReviewSwiper .s-rating-stars-wrapper i[style*="255, 215, 0"] { color: var(--riva-gold) !important; }
body .myReviewSwiper .testimonial__icon { display: none; }
@media (hover: hover) { body .myReviewSwiper .swiper-slide > div:hover { border-color: var(--riva-gold-l); transform: translateY(-5px); box-shadow: var(--riva-shadow) !important; } }

/* ---------- 12. FAQ: hairline rows, roman numerals, a plus that turns into a cross ---------- */
body .accordion { max-width: 940px; margin: 0 auto; padding: 8px 28px; border-radius: var(--riva-r-lg); background: var(--riva-ivory); border: 1px solid var(--riva-line); box-shadow: var(--riva-shadow); counter-reset: riva-faq; }
body .accordion .accordion-item { border: 0 !important; border-bottom: 1px solid var(--riva-line) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; counter-increment: riva-faq; }
body .accordion .accordion-item:last-child { border-bottom: 0 !important; }
body .accordion .accordion-header {
    display: flex !important;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 22px 4px !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--riva-night) !important;
    font-weight: 600;
    font-size: 16.5px !important;
    line-height: 1.6;
    text-align: start;
    cursor: pointer;
    transition: color .25s ease;
}
body .accordion .accordion-header::before { content: counter(riva-faq, upper-roman); flex: none; min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--riva-gold-l); color: var(--riva-gold-d); font-family: var(--riva-head); font-size: 13.5px; font-weight: 700; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
body .accordion .accordion-header:hover { color: var(--riva-gold-d) !important; }
body .accordion .accordion-item.active .accordion-header::before { background: var(--riva-night); border-color: var(--riva-night); color: var(--riva-gold-l); }
body .accordion .accordion-icon { flex: none; order: 2; margin-inline-start: auto; width: 34px; height: 34px; border-radius: 50%; position: relative; font-size: 0 !important; color: transparent !important; border: 1px solid var(--riva-line-2); transition: transform .5s var(--riva-ease), background-color .3s ease, border-color .3s ease; }
body .accordion .accordion-icon::before,
body .accordion .accordion-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--riva-night); transition: background-color .3s ease; }
body .accordion .accordion-icon::after { transform: rotate(90deg); }
body .accordion .accordion-item.active .accordion-icon { transform: rotate(135deg); background: var(--riva-gold); border-color: var(--riva-gold); }
body .accordion .accordion-item.active .accordion-icon::before,
body .accordion .accordion-item.active .accordion-icon::after { background: #fff; }
body .accordion .accordion-content { padding: 0 60px 0 !important; background: transparent !important; }
body .accordion .accordion-item.active .accordion-content { max-height: 900px; padding-bottom: 10px !important; }
body .accordion .accordion-content p { color: var(--riva-mute) !important; font-size: 15px; line-height: 2; margin: 0; padding: 0 0 14px; }

/* ---------- 13. List of items: tall photo tiles, a caption plate and a gold arrow ---------- */
body .s-block[data-item="list_of_items"] > .grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px !important; }
body .banner-entry,
body .banner-entry-list { position: relative; min-height: 340px; border-radius: var(--riva-r-lg) !important; overflow: hidden; isolation: isolate; background: var(--riva-champagne); box-shadow: 0 24px 50px -38px rgba(13, 21, 38, .7); }
body .banner-entry .lazy__bg,
body .banner-entry-list .lazy__bg { position: absolute; inset: 0; background-size: cover !important; background-position: center !important; transition: transform 1.6s var(--riva-ease); }
body .banner-entry::before,
body .banner-entry-list::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 40%, rgba(13, 21, 38, .78)); pointer-events: none; }
body .banner-entry::after,
body .banner-entry-list::after { content: ""; position: absolute; inset: 12px; z-index: 2; border: 1px solid rgba(var(--tw-accent-rgb, 231, 214, 176), .55); border-radius: calc(var(--riva-r-lg) - 8px); pointer-events: none; transition: inset .6s var(--riva-ease), border-color .4s ease; }
body .banner-entry > a,
body .banner-entry-list > a { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 28px; color: #fff !important; }
body .banner-entry h3,
body .banner-entry-list h3 { margin: 0; color: #fff !important; font-family: var(--riva-head) !important; font-weight: 600; font-size: 22px !important; line-height: 1.4; }
body .banner-entry > a::after,
body .banner-entry-list > a::after { content: "↖"; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--riva-gold-l); color: var(--riva-gold-l); font-size: 16px; transition: background-color .3s ease, color .3s ease, transform .5s var(--riva-ease); }
html[dir="ltr"] body .banner-entry > a::after,
html[dir="ltr"] body .banner-entry-list > a::after { content: "↗"; }
@media (hover: hover) {
    body .banner-entry:hover .lazy__bg,
    body .banner-entry-list:hover .lazy__bg { transform: scale(1.07); }
    body .banner-entry:hover::after,
    body .banner-entry-list:hover::after { inset: 18px; border-color: var(--riva-gold-l); }
    body .banner-entry:hover > a::after,
    body .banner-entry-list:hover > a::after { background: var(--riva-gold); border-color: var(--riva-gold); color: var(--tw-accent-text, var(--riva-night)); transform: rotate(-45deg); }
    html[dir="ltr"] body .banner-entry:hover > a::after,
    html[dir="ltr"] body .banner-entry-list:hover > a::after { transform: rotate(45deg); }
}
body .myListSwiper .swiper-pagination-bullet { background: var(--riva-line-2) !important; opacity: 1 !important; transition: width .35s var(--riva-ease); }
body .myListSwiper .swiper-pagination-bullet-active { width: 22px !important; border-radius: 4px !important; background: var(--riva-gold) !important; }

/* ---------- 14. Footer: deep midnight, a gold line on top, champagne type ---------- */
body .store-footer { position: relative; margin-top: 90px; }
body .store-footer .store-footer__inner {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(var(--tw-accent-rgb, 194, 161, 101), .14), transparent 60%),
        radial-gradient(50% 70% at 0% 100%, rgba(34, 48, 79, .9), transparent 70%),
        var(--riva-night) !important;
    color: #d9d3c6;
}
body .store-footer .store-footer__inner::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--riva-gold-grad); }
body .store-footer .to-top { padding-top: 28px; }
body .store-footer .to-top a { padding: 9px 20px !important; border-radius: 999px; border: 1px solid rgba(var(--tw-accent-rgb, 194, 161, 101), .45); color: var(--riva-gold-l) !important; transition: background-color .3s ease, color .3s ease, transform .4s var(--riva-ease); }
body .store-footer .to-top a * { color: inherit !important; }
body .store-footer .to-top a:hover { background: var(--riva-gold); color: var(--tw-accent-text, var(--riva-night)) !important; transform: translateY(-3px); }
body .store-footer .footer-container { border-color: rgba(var(--tw-accent-rgb, 194, 161, 101), .14) !important; padding: 44px 0 28px !important; }
body .store-footer .logo-footer { padding: 14px 18px; border-radius: var(--riva-r); background: var(--riva-ivory); width: max-content; max-width: 100%; margin-inline: auto; box-shadow: 0 0 0 1px rgba(var(--tw-accent-rgb, 194, 161, 101), .4), 0 20px 40px -26px rgba(0, 0, 0, .8); }
body .store-footer .logo-footer img { max-height: 58px; width: auto; }
body .store-footer,
body .store-footer p,
body .store-footer span,
body .store-footer a,
body .store-footer .da-tm,
body .store-footer .text-text-grey,
body .store-footer .vat-num,
body .store-footer .vat-num * { color: #d9d3c6 !important; }
body .store-footer h3 { position: relative; display: block; width: fit-content; font-family: var(--riva-head) !important; font-weight: 600 !important; font-size: 18px !important; color: var(--riva-gold-l) !important; margin-bottom: 18px !important; padding-bottom: 12px; letter-spacing: .02em; }
body .store-footer h3::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 30px; height: 1px; background: var(--riva-gold); transition: width .5s var(--riva-ease); }
body .store-footer h3.text-center::after { inset-inline-start: 50%; translate: 50% 0; }
html[dir="ltr"] body .store-footer h3.text-center::after { translate: -50% 0; }
body .store-footer .footer-container > div:hover h3::after { width: 58px; }
body .store-footer .footer-list a { display: inline-flex; align-items: center; gap: 8px; line-height: 2.25; opacity: .85; background: linear-gradient(var(--riva-gold), var(--riva-gold)) no-repeat 0 90% / 0 1px; transition: opacity .25s ease, background-size .45s var(--riva-ease), color .25s ease; }
body .store-footer .footer-list a:hover { opacity: 1; color: #fff !important; background-size: 100% 1px; }
body .store-footer .social-links a { width: 40px; height: 40px; border-radius: 50%; display: inline-grid !important; place-items: center; border: 1px solid rgba(var(--tw-accent-rgb, 194, 161, 101), .35); background: rgba(255, 255, 255, .03); transition: background-color .3s ease, border-color .3s ease, transform .45s var(--riva-ease); }
body .store-footer .social-links a img,
body .store-footer .social-links a svg { filter: brightness(0) invert(.88) sepia(.5); max-height: 16px; transition: filter .3s ease; }
body .store-footer .social-links a i { color: var(--riva-gold-l) !important; }
body .store-footer .social-links a:hover { background: var(--riva-gold); border-color: var(--riva-gold); transform: translateY(-4px) rotate(-6deg); }
body .store-footer .social-links a:hover img,
body .store-footer .social-links a:hover svg { filter: brightness(0); }
body .store-footer .social-links a:hover i { color: var(--riva-night) !important; }
body .store-footer .contact-links a { min-width: 66px; padding: 12px 10px !important; border-radius: var(--riva-r) !important; background: rgba(255, 255, 255, .04) !important; border: 1px solid rgba(var(--tw-accent-rgb, 194, 161, 101), .28); color: var(--riva-gold-l) !important; transition: border-color .3s ease, background-color .3s ease, transform .4s var(--riva-ease); }
body .store-footer .contact-links a * { color: inherit !important; }
body .store-footer .contact-links a:hover { border-color: var(--riva-gold); background: rgba(var(--tw-accent-rgb, 194, 161, 101), .14) !important; transform: translateY(-3px); }
body .store-footer .footer-bottom { border-top: 1px solid rgba(var(--tw-accent-rgb, 194, 161, 101), .14); padding-top: 18px !important; }
body .store-footer .footer-bottom li { background: #fff !important; border-radius: 6px !important; transition: transform .35s var(--riva-ease); }
body .store-footer .footer-bottom li:hover { transform: translateY(-3px); }
body .store-footer .copyrights p { color: #8f8a80 !important; }

/* certificates (VAT / CR / freelance / SBC): one aligned list — the markup centres only some
   of them and the logos come in different sizes, so each gets the same ivory tile */
body .store-footer .footer-container > div:has(.footer-vat) { gap: 12px !important; }
body .store-footer .footer-vat:has(.vat-num) { display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 12px !important; padding: 0 !important; }
body .store-footer .footer-vat:has(.vat-num) > a:first-child { flex: 0 0 52px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; padding: 6px; border-radius: var(--riva-r-sm); background: var(--riva-ivory); box-shadow: 0 0 0 1px rgba(var(--tw-accent-rgb, 194, 161, 101), .45); transition: box-shadow .3s ease, transform .4s var(--riva-ease); }
body .store-footer .footer-vat:has(.vat-num) > a:first-child:hover { box-shadow: 0 0 0 2px var(--riva-gold); transform: translateY(-3px); }
body .store-footer .footer-vat:has(.vat-num) > a:first-child img { width: 100% !important; height: 100% !important; object-fit: contain; padding: 0; border-radius: 0; background: none; }
body .store-footer .footer-vat:has(.vat-num) > .flex { margin: 0 !important; min-width: 0; }
body .store-footer .footer-vat .vat-num { display: flex; flex-direction: column; gap: 2px; text-align: start; line-height: 1.35; }
body .store-footer .footer-vat .vat-num p { color: #9b9486 !important; font-size: 12.5px !important; }
body .store-footer .footer-vat .vat-num span { color: #fff !important; overflow-wrap: anywhere; }
body .store-footer .footer-container > div > .flex:has(> .footer-vat) { justify-content: flex-start !important; gap: 8px; flex-wrap: wrap; }
body .store-footer .footer-container > div > .flex > .footer-vat { padding: 0 !important; }
@media (max-width: 767px) {
    body .store-footer .footer-container > div:has(.footer-vat) { width: fit-content !important; align-self: center; margin-top: 8px; }
    body .store-footer .footer-container > div > .flex:has(> .footer-vat) { justify-content: center !important; }
}

/* certificate popups: centred, sized to the certificate, never taller than the screen —
   past that the certificate scrolls inside (title and close stay pinned) */
body .store-footer .footer-container > div:has(.twsaa-modal) { transform: none !important; filter: none !important; }
body .store-footer .twsaa-modal.s-modal-container { top: 0 !important; }
body .store-footer .twsaa-modal .s-modal-wrapper { height: 100% !important; overflow-y: auto !important; overscroll-behavior: contain; padding: 16px; display: flex !important; align-items: center; justify-content: center; }
body .store-footer .twsaa-modal .s-modal-spacer { display: none !important; }
body .store-footer .twsaa-modal .s-modal-body { min-height: 0; max-height: calc(100dvh - 32px); overflow-y: auto !important; overscroll-behavior: contain; margin: 0 !important; border-radius: var(--riva-r-lg) !important; background: var(--riva-ivory) !important; border-top: 2px solid var(--riva-gold); }
body .store-footer .twsaa-modal .s-modal-header { position: sticky; top: -1px; z-index: 2; background: var(--riva-ivory); padding-bottom: 10px; }
body .store-footer .twsaa-modal .s-modal-body :is(p, span, .s-modal-title) { color: var(--riva-night) !important; }
body .store-footer .twsaa-modal .s-modal-body .s-modal-title { font-family: var(--riva-head) !important; }
body .store-footer .twsaa-modal .s-modal-body .s-modal-sub-title { color: var(--riva-mute) !important; }
body .store-footer .twsaa-modal .s-modal-close,
body .store-footer .twsaa-modal .s-modal-close * { color: var(--riva-night) !important; }
body .store-footer .twsaa-modal .s-modal-body img { height: auto; border-radius: var(--riva-r-sm); }

/* ---------- 15. Product page ---------- */
body section.product-detail { color: var(--riva-text); }
body section.product-detail .sidebar { top: calc(var(--riva-header-h, 90px) + 20px) !important; }
body section.product-detail .product-hero-image { position: relative; border-radius: var(--riva-r-lg) !important; background: linear-gradient(160deg, #fff, var(--riva-champagne)) !important; border: 1px solid var(--riva-line); overflow: hidden; }
body section.product-detail .product-hero-image img { transition: transform 1.4s var(--riva-ease); }
@media (hover: hover) { body section.product-detail .product-hero-image:hover img { transform: scale(1.045); } }
body section.product-detail .product-hero-image .discountPercentage { display: none !important; }
body section.product-detail .promotion-title { border-radius: 999px !important; background: var(--riva-night) !important; color: var(--riva-gold-l) !important; padding: 5px 13px !important; font-size: 12px !important; box-shadow: inset 0 0 0 1px rgba(var(--tw-accent-rgb, 194, 161, 101), .45); }
body section.product-detail .thumb-frame,
body section.product-detail .gallery-thumb { border-radius: var(--riva-r-sm) !important; border: 1px solid var(--riva-line) !important; background: var(--riva-ivory); overflow: hidden; transition: border-color .25s ease, opacity .25s ease, transform .3s var(--riva-ease); opacity: .72; }
body section.product-detail .thumb-frame.active,
body section.product-detail .gallery-thumb.active,
body section.product-detail .thumb-frame:hover { border-color: var(--riva-gold) !important; opacity: 1; }
body section.product-detail .thumb-frame:hover { transform: translateY(-2px); }
body section.product-detail .swiper-button-next,
body section.product-detail .swiper-button-prev { width: 44px !important; height: 44px !important; border-radius: 50%; background: rgba(255, 253, 249, .94); color: var(--riva-night) !important; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--riva-line); transition: background-color .25s ease, color .25s ease; }
body section.product-detail .swiper-button-next::after,
body section.product-detail .swiper-button-prev::after { font-size: 14px !important; font-weight: 700; }
body section.product-detail .swiper-button-next:hover,
body section.product-detail .swiper-button-prev:hover { background: var(--riva-night); color: var(--riva-gold-l) !important; }
body section.product-detail h1 { font-family: var(--riva-head) !important; font-weight: 600 !important; font-size: clamp(24px, 2.4vw, 34px) !important; line-height: 1.45 !important; color: var(--riva-night); }
/* a gold rule under the title */
body section.product-detail h1::after { content: ""; display: block; width: 46px; height: 1px; margin-top: 14px; background: var(--riva-gold); }
body section.product-detail .s-rating-stars-wrapper i { color: var(--riva-gold) !important; }
body section.product-detail .price { margin-top: 16px !important; }
body section.product-detail .productDetails { gap: 12px !important; align-items: baseline !important; }
body section.product-detail .price.my-1 .price.d-flex,
body section.product-detail .price.my-1 .price-label,
body section.product-detail .special-price,
body section.product-detail .final-price { font-weight: 700 !important; font-size: 30px !important; color: var(--riva-night) !important; }
body section.product-detail .regular-price ~ .special-price { color: var(--riva-sale) !important; }
body section.product-detail .regular-price { color: var(--riva-mute) !important; font-size: 16px !important; }
body section.product-detail .product-entry :is(.special-price, .price-label, .final-price, .price.d-flex) { font-size: 18.5px !important; }
/* detail rows */
body section.product-detail section.details { margin: 0 0 8px !important; padding: 12px 16px !important; background: var(--riva-ivory) !important; border: 1px solid var(--riva-line) !important; border-radius: var(--riva-r-sm) !important; box-shadow: none !important; }
body section.product-detail section.details.sku { margin-top: 18px !important; }
body section.product-detail .details .details__wrapper { min-height: 0; padding: 0 !important; border: 0 !important; background: transparent !important; }
body section.product-detail .details__container { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; }
body section.product-detail .details__title { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--riva-mute) !important; }
body section.product-detail .details__title i { color: var(--riva-gold-d); }
body section.product-detail .details__action span { font-weight: 700; color: var(--riva-night); direction: ltr; unicode-bidi: isolate; }
body section.product-detail #TabbyPromo,
body section.product-detail tamara-widget { display: block; margin: 4px 0 8px; }
/* weight row (products/weight: grams under 1 kg) */
body section.product-detail .product-metadata.weight { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--riva-line); border-radius: var(--riva-r-sm); background: var(--riva-ivory); font-size: 14px; color: var(--riva-mute); }
body section.product-detail .product-metadata__label { display: inline-flex; align-items: center; gap: 8px; }
body section.product-detail .product-metadata.weight i { margin: 0 !important; color: var(--riva-gold-d); }
body section.product-detail .product-metadata.weight .product-shipping-weight { font-weight: 700; color: var(--riva-night); }
/* options */
body section.product-detail .s-product-options-option-label { font-weight: 700; color: var(--riva-night); }
body section.product-detail .s-product-options-option-content :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea) { border-radius: var(--riva-r-sm) !important; border: 1px solid var(--riva-line-2) !important; background: var(--riva-ivory) !important; transition: border-color .2s ease, box-shadow .2s ease; }
body section.product-detail .s-product-options-option-content :is(input, select, textarea):focus { border-color: var(--riva-gold) !important; outline: none; box-shadow: 0 0 0 3px rgba(var(--tw-accent-rgb, 194, 161, 101), .18) !important; }
body section.product-detail .s-product-options-multiple-options-wrapper label,
body section.product-detail .s-product-options-thumbnails-wrapper label { border-radius: 10px !important; transition: border-color .25s ease, background-color .25s ease, transform .3s var(--riva-ease); }
body section.product-detail .s-product-options-multiple-options-wrapper input:checked + label,
body section.product-detail .s-product-options-thumbnails-wrapper input:checked + label { border-color: var(--riva-gold) !important; box-shadow: 0 0 0 1px var(--riva-gold); }
/* buy box */
body section.product-detail .sticky-product-bar { border-radius: var(--riva-r-lg) !important; background: var(--riva-ivory) !important; border: 1px solid var(--riva-line); border-top: 2px solid var(--riva-gold); box-shadow: var(--riva-shadow) !important; }
body .s-quantity-input-container { border: 1px solid var(--riva-line-2) !important; border-radius: 999px !important; background: var(--riva-ivory) !important; padding: 3px; overflow: hidden; }
body .s-quantity-input-button { width: 38px !important; height: 38px !important; border-radius: 50% !important; background: transparent !important; color: var(--riva-night) !important; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
body .s-quantity-input-button:hover { background: var(--riva-night) !important; color: var(--riva-gold-l) !important; }
body .s-quantity-input-button:active { transform: scale(.9); }
body .s-quantity-input-input { background: transparent !important; font-weight: 700 !important; color: var(--riva-night) !important; border: 0 !important; }
body section.product-detail .sticky-product-bar button[type="submit"] {
    position: relative;
    overflow: hidden;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--tw-accent, var(--riva-night)) !important;
    color: var(--tw-accent-text, var(--riva-gold-l)) !important;
    font-weight: 700 !important;
    min-height: 54px;
    letter-spacing: .03em;
    box-shadow: inset 0 0 0 1px rgba(var(--tw-accent-rgb, 194, 161, 101), .45);
    transition: background-color .3s ease, transform .2s ease, box-shadow .3s ease !important;
}
body section.product-detail .sticky-product-bar button[type="submit"] * { color: inherit !important; }
/* a light passes over the button on hover */
body section.product-detail .sticky-product-bar button[type="submit"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(var(--tw-accent-rgb, 231, 214, 176), .28) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
body section.product-detail .sticky-product-bar button[type="submit"]:not([disabled]):hover { background: var(--tw-accent-dark, var(--riva-night-2)) !important; transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--riva-gold), var(--riva-glow); }
body section.product-detail .sticky-product-bar button[type="submit"]:not([disabled]):hover::after { transform: translateX(120%); transition: transform .9s var(--riva-ease); }
body section.product-detail .sticky-product-bar button[type="submit"][disabled] { background: var(--riva-line) !important; color: var(--riva-mute) !important; box-shadow: none; }
body section.product-detail .s-quick-buy-button { min-height: 54px; border-radius: 999px !important; border: 1px solid var(--riva-gold) !important; background: transparent !important; color: var(--riva-gold-d) !important; font-weight: 700 !important; transition: background-color .3s ease, color .3s ease !important; }
body section.product-detail .s-quick-buy-button * { color: inherit !important; }
body section.product-detail .s-quick-buy-button:not([disabled]):hover { background: var(--riva-gold-grad) !important; border-color: transparent !important; color: var(--tw-accent-text, var(--riva-night)) !important; }
/* tabs */
body section.product-detail .s-product-tabs .nav-tabs { gap: 26px; border: 0 !important; border-bottom: 1px solid var(--riva-line) !important; }
body section.product-detail .s-product-tabs .nav-link { position: relative; border: 0 !important; background: transparent !important; color: var(--riva-mute) !important; font-weight: 600; padding: 12px 2px !important; transition: color .25s ease; }
body section.product-detail .s-product-tabs .nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--riva-gold-grad); transform: scaleX(0); transition: transform .45s var(--riva-ease); }
body section.product-detail .s-product-tabs .nav-link.active,
body section.product-detail .s-product-tabs .nav-link:hover { color: var(--riva-night) !important; }
body section.product-detail .s-product-tabs .nav-link.active::after { transform: scaleX(1); }
body section.product-detail .s-product-tabs .tab-content { margin-top: 16px; border-radius: var(--riva-r) !important; border: 1px solid var(--riva-line); background: var(--riva-ivory); }
body section.product-detail .s-comment-form-content textarea,
body section.product-detail .s-comment-form-input { border-radius: var(--riva-r-sm) !important; border: 1px solid var(--riva-line-2) !important; background: var(--riva-ivory) !important; }
body section.product-detail .s-comment-form-content textarea:focus { border-color: var(--riva-gold) !important; outline: none; }
body section.product-detail .comment { border-radius: var(--riva-r-sm); background: var(--riva-champagne) !important; padding: 12px; }
body section.product-detail #load-more,
body section.product-detail .s-comment-form-content button { border-radius: 999px !important; background: var(--riva-night) !important; border: 0 !important; color: var(--riva-gold-l) !important; padding-inline: 18px !important; }

/* ---------- 16. Cart page & page banners ---------- */
/* inner-page banner (cart, account, categories): champagne panel with a gold seal */
body .nav-header.bg-gray-100 {
    margin-top: 12px;
    border-radius: var(--riva-r-lg);
    padding: 36px 30px !important;
    background:
        radial-gradient(60% 120% at 100% 50%, rgba(var(--tw-accent-rgb, 194, 161, 101), .2), transparent 60%),
        linear-gradient(120deg, var(--riva-ivory), var(--riva-champagne)) !important;
    border: 1px solid var(--riva-line);
    position: relative;
    overflow: hidden;
}
body .nav-header.bg-gray-100::after { content: ""; position: absolute; inset-inline-end: 30px; top: 50%; width: 76px; height: 76px; margin-top: -38px; border: 1px solid var(--riva-gold); border-radius: 50%; box-shadow: 0 0 0 6px rgba(255, 253, 249, .6), 0 0 0 7px rgba(var(--tw-accent-rgb, 194, 161, 101), .35); }
body .nav-header.bg-gray-100::before { content: ""; position: absolute; inset-inline-end: 56px; top: 50%; width: 24px; height: 24px; margin-top: -12px; background: var(--riva-gold-d); transform: rotate(45deg) scale(.6); }
body .nav-header.bg-gray-100 h1 { font-family: var(--riva-head) !important; font-weight: 600 !important; font-size: clamp(22px, 2.4vw, 32px) !important; color: var(--riva-night) !important; }
body .nav-header.bg-gray-100 :is(a, span, li, i) { color: var(--riva-mute) !important; }
body .nav-header.bg-gray-100 a:hover { color: var(--riva-gold-d) !important; }
body .s-conditional-offer-progress-container,
body .s-conditional-offer-container { border-radius: var(--riva-r) !important; border: 1px solid var(--riva-line); background: var(--riva-ivory) !important; box-shadow: none !important; }
body .s-conditional-offer-progress-line-container { height: 6px !important; border-radius: 999px; background: var(--riva-line) !important; overflow: hidden; }
body .s-conditional-offer-progress-line-active { border-radius: 999px; background: var(--riva-gold-grad) !important; }
body .s-conditional-offer-checkpoint { background: var(--riva-ivory) !important; border: 1px solid var(--riva-gold) !important; font-weight: 700; }
body .main-content .cart-item { border-radius: var(--riva-r) !important; border: 1px solid var(--riva-line); background: var(--riva-ivory) !important; box-shadow: none !important; padding: 18px !important; transition: border-color .3s ease, box-shadow .45s var(--riva-ease), transform .45s var(--riva-ease); }
body .main-content .cart-item:hover { border-color: var(--riva-gold-l); box-shadow: var(--riva-shadow) !important; }
body .main-content .cart-item img { border-radius: var(--riva-r-sm) !important; border: 1px solid var(--riva-line) !important; background: #fff; object-fit: cover; }
body .main-content .cart-item a { color: var(--riva-night); font-weight: 600; }
body .main-content .cart-item .item-price.text-red-400,
body .main-content .cart-item .text-primary { color: var(--riva-night) !important; font-weight: 700; }
body .main-content .cart-item .btn--delete { border-radius: 999px !important; background: transparent !important; color: var(--riva-sale) !important; border: 1px solid #ecd2d5 !important; transition: background-color .25s ease, color .25s ease; }
body .main-content .cart-item .btn--delete * { color: inherit !important; }
body .main-content .cart-item .btn--delete:hover { background: var(--riva-sale) !important; color: #fff !important; }
body .main-content ~ .sticky.top-20 { top: calc(var(--riva-header-h, 90px) + 20px) !important; }
body .main-content ~ .sticky.top-20 > div,
body .main-content ~ .sticky.top-20 .shadow-default { border-radius: var(--riva-r-lg) !important; border: 1px solid var(--riva-line); background: var(--riva-ivory) !important; box-shadow: var(--riva-shadow) !important; }
body .main-content ~ .sticky.top-20 > div:first-child { border-top: 2px solid var(--riva-gold); }
body .main-content ~ .sticky.top-20 .s-loyalty-widget .s-list-tile-item { background: var(--riva-night); border-radius: var(--riva-r); padding: 14px; color: var(--riva-gold-l); }
body .main-content ~ .sticky.top-20 .s-loyalty-widget * { color: inherit; }
body .s-loyalty-widget .s-list-tile-item-icon { background: var(--riva-gold) !important; color: var(--tw-accent-text, var(--riva-night)) !important; border-radius: 50% !important; }
body .s-loyalty-widget .s-list-tile-item-icon * { background-color: transparent !important; color: var(--riva-night) !important; }
body .main-content ~ .sticky.top-20 :is(input.form-input, input.s-form-control, input[type="text"]) { height: 48px; border-radius: 999px !important; border: 1px solid var(--riva-line-2) !important; background: #fff !important; padding-inline: 18px !important; }
body .main-content ~ .sticky.top-20 input:focus { border-color: var(--riva-gold) !important; outline: none; box-shadow: 0 0 0 3px rgba(var(--tw-accent-rgb, 194, 161, 101), .18) !important; }
body .main-content ~ .sticky.top-20 .btn--coupon { border-radius: 999px !important; background: var(--riva-night) !important; color: var(--riva-gold-l) !important; border: 0 !important; }
body .main-content ~ .sticky.top-20 .cart-submit-wrap :is(.s-button-primary, a, button) {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 56px;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--riva-gold-grad) !important;
    background-size: 160% 100% !important;
    color: var(--tw-accent-text, var(--riva-night)) !important;
    font-weight: 800 !important;
    font-size: 15.5px !important;
    letter-spacing: .03em;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: var(--riva-glow);
    transition: background-position .6s var(--riva-ease), transform .2s ease !important;
}
body .main-content ~ .sticky.top-20 .cart-submit-wrap :is(.s-button-primary, a) * { color: inherit !important; background: none !important; }
body .main-content ~ .sticky.top-20 .cart-submit-wrap :is(.s-button-primary, a):hover { background-position: 100% 0 !important; transform: translateY(-1px); }
body .main-content ~ .sticky.top-20 .text-primary { color: var(--riva-night) !important; font-weight: 700; }

/* ---------- 17. Cart sidebar (markup: layouts/cart-drawer, behaviour: riva.js) ---------- */
.riva-drawer { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; visibility: hidden; transition: visibility 0s linear .6s; }
.riva-drawer.is-open { pointer-events: auto; visibility: visible; transition: visibility 0s; }
.riva-drawer__overlay { position: absolute; inset: 0; background: rgba(13, 21, 38, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .5s ease; }
.riva-drawer.is-open .riva-drawer__overlay { opacity: 1; }
.riva-drawer__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: min(440px, 100%);
    display: flex;
    flex-direction: column;
    background: var(--riva-ivory);
    color: var(--riva-night);
    font-family: var(--riva-font);
    overflow: hidden;
    outline: none;
    transform: translateX(105%);
    transition: transform .65s var(--riva-glide);
    box-shadow: -30px 0 70px -40px rgba(0, 0, 0, .55);
}
html[dir="rtl"] .riva-drawer__panel { transform: translateX(-105%); }
.riva-drawer.is-open .riva-drawer__panel { transform: none; }
.riva-drawer__content { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.riva-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; background: var(--riva-night); color: var(--riva-gold-l); border-bottom: 1px solid rgba(var(--tw-accent-rgb, 194, 161, 101), .45); }
.riva-drawer__title { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--riva-head) !important; font-weight: 600; font-size: 20px; color: var(--riva-gold-l); }
.riva-drawer__count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--riva-gold-grad); color: var(--tw-accent-text, var(--riva-night)); font-family: var(--riva-font); font-size: 12.5px; font-weight: 800; }
.riva-drawer__close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(var(--tw-accent-rgb, 194, 161, 101), .45); background: transparent; color: var(--riva-gold-l); cursor: pointer; transition: background-color .25s ease, color .25s ease, transform .4s var(--riva-ease); }
.riva-drawer__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.riva-drawer__close:hover { background: var(--riva-gold); color: var(--tw-accent-text, var(--riva-night)); transform: rotate(90deg); }
.riva-drawer__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 24px; overscroll-behavior: contain; }
.riva-drawer__item { display: grid; grid-template-columns: 86px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--riva-line); transition: opacity .3s ease; }
.riva-drawer.is-open .riva-drawer__item { animation: riva-item-in .55s var(--riva-ease) both; animation-delay: calc(.07s * var(--i) + .2s); }
@keyframes riva-item-in { from { opacity: 0; transform: translateY(12px); } }
.riva-drawer__item.is-removing { opacity: .3; }
.riva-drawer__thumb { display: block; aspect-ratio: 4 / 5; border-radius: var(--riva-r-sm); background: linear-gradient(160deg, #fff, var(--riva-champagne)); border: 1px solid var(--riva-line); overflow: hidden; }
.riva-drawer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.riva-drawer__info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.riva-drawer__name { font-weight: 600; font-size: 15px; line-height: 1.55; color: var(--riva-night) !important; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.riva-drawer__price { font-weight: 700; font-size: 15px; color: var(--riva-gold-d); }
.riva-drawer__price img.sar-icon { width: 11px !important; }
.riva-drawer__row-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.riva-qty { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--riva-line-2); padding: 2px; background: #fff; }
.riva-qty__btn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; color: var(--riva-night); transition: background-color .2s ease, color .2s ease; }
.riva-qty__btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.riva-qty__btn:hover { background: var(--riva-night); color: var(--riva-gold-l); }
.riva-qty__value { min-width: 30px; text-align: center; font-weight: 700; font-size: 14px; }
.riva-drawer__qty-text { font-size: 13px; color: var(--riva-mute); }
.riva-drawer__remove { font-size: 12.5px; color: var(--riva-mute) !important; text-decoration: underline; text-underline-offset: 3px; }
.riva-drawer__remove:hover { color: var(--riva-sale) !important; }
.riva-drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--riva-line); background: var(--riva-pearl); }
.riva-drawer__total { display: flex; align-items: baseline; justify-content: space-between; font-weight: 600; font-size: 16px; }
.riva-drawer__total b { font-size: 21px; font-weight: 800; color: var(--riva-night); }
.riva-drawer__total img.sar-icon { width: 13px !important; }
.riva-drawer__note { margin: 6px 0 16px; font-size: 12px; color: var(--riva-mute); }
.riva-drawer__actions { display: grid; gap: 10px; }
.riva-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 999px; font-family: var(--riva-font); font-weight: 700; font-size: 15px; letter-spacing: .03em; text-align: center; border: 1px solid var(--riva-night); cursor: pointer; transition: background-color .3s ease, color .3s ease, background-position .6s var(--riva-ease); }
.riva-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--riva-ease); }
html[dir="rtl"] .riva-btn svg { transform: scaleX(-1); }
.riva-btn--solid { background: var(--riva-gold-grad); background-size: 160% 100%; border-color: transparent; color: var(--tw-accent-text, var(--riva-night)) !important; }
.riva-btn--solid:hover { background-position: 100% 0; }
.riva-btn--solid:hover svg { transform: translateX(4px); }
html[dir="rtl"] .riva-btn--solid:hover svg { transform: scaleX(-1) translateX(4px); }
.riva-btn--outline { background: transparent; color: var(--riva-night) !important; }
.riva-btn--outline:hover { background: var(--riva-night); color: var(--riva-gold-l) !important; }
.riva-drawer__empty { display: grid; justify-items: center; gap: 10px; padding: 80px 10px; text-align: center; }
.riva-drawer__empty-icon svg { width: 58px; height: 58px; fill: none; stroke: var(--riva-gold); stroke-width: 1.2; }
.riva-drawer__empty-title { margin: 6px 0 0; font-family: var(--riva-head) !important; font-weight: 600; font-size: 20px; }
.riva-drawer__empty-sub { margin: 0 0 14px; color: var(--riva-mute); font-size: 14px; }
.riva-drawer__loading { position: absolute; inset: 0 0 auto 0; height: 2px; overflow: hidden; opacity: 0; transition: opacity .2s ease; z-index: 2; }
.riva-drawer.is-loading .riva-drawer__loading { opacity: 1; }
.riva-drawer__loading span { display: block; width: 40%; height: 100%; background: var(--riva-gold); animation: riva-bar-run 1s var(--riva-ease) infinite; }
@keyframes riva-bar-run { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.riva-drawer.is-loading .riva-drawer__body { opacity: .55; pointer-events: none; }

/* ---------- 18. Search window ---------- */
body #searchProductModal { z-index: 10060 !important; }
/* the popup lives inside the sticky header — lift the header (and its row) while it is open
   so the store-notify bar and the logo row never paint over it (Bootstrap adds .in) */
body header.store-header:has(#searchProductModal.in) { z-index: 10060 !important; }
body header.store-header .inner.nav-header:has(#searchProductModal.in) { z-index: 6 !important; }
body #searchProductModal.in .s-modal-overlay { position: fixed; inset: 0; display: block !important; opacity: 1 !important; visibility: visible !important; background: rgba(13, 21, 38, .62) !important; -webkit-backdrop-filter: blur(6px) saturate(.6); backdrop-filter: blur(6px) saturate(.6); animation: riva-fade .3s ease both; }
body #searchProductModal .s-modal-wrapper { padding: 0 16px; }
body #searchProductModal .s-modal-spacer { display: none !important; }
body #searchProductModal .s-modal-body { position: relative; width: min(720px, 100%) !important; max-width: none !important; margin: 12vh auto 0 !important; padding: 24px !important; border-radius: var(--riva-r-lg) !important; background: var(--riva-ivory) !important; border-top: 2px solid var(--riva-gold); box-shadow: 0 40px 90px -36px rgba(0, 0, 0, .6) !important; overflow: visible !important; animation: riva-drop .45s var(--riva-ease) both; }
body #searchProductModal .s-search-modal::before { content: "ابحث في المتجر"; display: block; margin: 0 4px 14px; padding-inline-end: 56px; font-family: var(--riva-head); font-weight: 600; font-size: 20px; color: var(--riva-night); }
html[dir="ltr"] body #searchProductModal .s-search-modal::before { content: "Search the store"; }
body #searchProductModal .s-modal-header { position: static !important; padding: 0 !important; margin: 0 !important; border: 0 !important; min-height: 0 !important; }
body #searchProductModal .s-modal-close { position: absolute !important; top: 18px !important; z-index: 3; width: 40px !important; height: 40px !important; border-radius: 50% !important; display: grid !important; place-items: center; padding: 0 !important; background: var(--riva-ivory) !important; border: 1px solid var(--riva-line-2) !important; color: var(--riva-night) !important; transform: none !important; transition: background-color .25s ease, color .25s ease, transform .4s var(--riva-ease) !important; }
html[dir="rtl"] body #searchProductModal .s-modal-close { left: 18px !important; right: auto !important; }
html[dir="ltr"] body #searchProductModal .s-modal-close { right: 18px !important; left: auto !important; }
body #searchProductModal .s-modal-close * { color: inherit !important; font-size: 12px !important; }
body #searchProductModal .s-modal-close:hover { background: var(--riva-night) !important; color: var(--riva-gold-l) !important; transform: rotate(90deg) !important; }
body #searchProductModal .s-search-container { position: relative; max-height: none !important; }
body #searchProductModal .s-search-input-wrapper { position: relative; display: flex !important; align-items: center; gap: 10px; height: 58px; min-width: 0 !important; padding: 0 8px !important; border-radius: 999px !important; background: var(--riva-pearl) !important; border: 1px solid var(--riva-line) !important; box-shadow: none !important; transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }
body #searchProductModal .s-search-input-wrapper:focus-within { background: #fff !important; border-color: var(--riva-gold) !important; box-shadow: 0 0 0 4px rgba(var(--tw-accent-rgb, 194, 161, 101), .16) !important; }
body #searchProductModal .s-search-icon-wrap { position: static !important; top: auto !important; inset-inline: auto !important; margin: 0 !important; transform: none !important; flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid !important; place-items: center; background: var(--riva-night); }
body #searchProductModal .s-search-icon-wrap .icon-search { color: var(--riva-gold-l) !important; font-size: 17px !important; }
body #searchProductModal .s-search-input { flex: 1; min-width: 0; height: 100% !important; padding: 0 6px !important; margin: 0 !important; border: 0 !important; outline: none !important; box-shadow: none !important; background: transparent !important; font-size: 16px !important; color: var(--riva-night) !important; }
body #searchProductModal .s-search-input:focus-visible { outline: none !important; }
body #searchProductModal .s-search-input::placeholder { color: var(--riva-mute) !important; }
body #searchProductModal .s-search-input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
body #searchProductModal .riva-search-camera { flex: none; width: 44px; height: 44px; margin-inline-start: auto; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--riva-line-2); color: var(--riva-night); cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .3s var(--riva-ease); }
body #searchProductModal .riva-search-camera svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
body #searchProductModal .riva-search-camera:hover { background: var(--riva-night); border-color: var(--riva-night); color: var(--riva-gold-l); transform: scale(1.05); }
body #image-search-loader { z-index: 10070 !important; }
/* live results under the field (the window has overflow visible, so nothing clips them) */
body #searchProductModal .ui.search > .results { position: absolute !important; top: calc(100% + 12px) !important; left: -2px !important; right: -2px !important; width: auto !important; max-height: min(56vh, 480px); overflow-y: auto; overscroll-behavior: contain; margin: 0 !important; padding: 8px !important; border: 1px solid var(--riva-line) !important; border-radius: var(--riva-r) !important; background: var(--riva-ivory) !important; box-shadow: var(--riva-shadow-lg) !important; z-index: 5; transform: none !important; }
body #searchProductModal .ui.search > .results:empty { display: none !important; }
body #searchProductModal .ui.search > .results > .result { display: flex !important; align-items: center; gap: 14px; padding: 10px 12px !important; border: 0 !important; border-radius: var(--riva-r-sm); text-decoration: none !important; transition: background-color .2s ease; }
body #searchProductModal .ui.search > .results > .result + .result { border-top: 1px solid var(--riva-line) !important; }
body #searchProductModal .ui.search > .results > .result:hover,
body #searchProductModal .ui.search > .results > .result.active { background: var(--riva-champagne) !important; }
body #searchProductModal .ui.search > .results > .result .image { float: none !important; order: -1; flex: none; width: 54px !important; height: 66px !important; margin: 0 !important; padding: 0 !important; border-radius: 8px; background: #fff; border: 1px solid var(--riva-line); overflow: hidden; }
body #searchProductModal .ui.search > .results > .result .image img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; object-fit: cover; border-radius: 0 !important; }
body #searchProductModal .ui.search > .results > .result .content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; margin: 0 !important; padding: 0 !important; text-align: start !important; }
body #searchProductModal .ui.search > .results > .result .title { order: 0; margin: 0 !important; font-weight: 600 !important; font-size: 15px !important; color: var(--riva-night) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body #searchProductModal .ui.search > .results > .result .price { order: 1; float: none !important; margin: 0 !important; display: flex; }
body #searchProductModal .ui.search > .results > .result .price span { display: inline-flex !important; align-items: center; color: var(--riva-gold-d) !important; font-weight: 700 !important; font-size: 14px !important; }

/* ---------- 19. Account pages ---------- */
body .account-content .container { padding-top: 6px; }
/* side menu: an ivory card, a gold bar marks the current page */
body .account-content nav.sidebar {
    padding: 14px !important;
    border-radius: var(--riva-r-lg) !important;
    background: var(--riva-ivory) !important;
    border: 1px solid var(--riva-line);
    border-top: 2px solid var(--riva-gold);
    box-shadow: var(--riva-shadow) !important;
    top: calc(var(--riva-header-h, 90px) + 20px) !important;
}
body .account-content nav.sidebar .s-user-menu-inline { margin: 0; padding: 0; list-style: none; }
body .account-content nav.sidebar .s-user-menu-dropdown-item a {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 14px !important;
    border-radius: 12px;
    color: var(--riva-text) !important;
    font-size: 15px;
    font-weight: 500;
    transition: background-color .25s ease, color .25s ease, padding .35s var(--riva-ease);
}
body .account-content nav.sidebar .s-user-menu-dropdown-item a i { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--riva-champagne); color: var(--riva-gold-d) !important; font-size: 16px; transition: background-color .3s ease, color .3s ease; }
body .account-content nav.sidebar .s-user-menu-dropdown-item a:hover { background: var(--riva-pearl); padding-inline-start: 18px !important; }
body .account-content nav.sidebar .s-user-menu-dropdown-item.active a { background: var(--riva-night) !important; color: var(--riva-gold-l) !important; }
body .account-content nav.sidebar .s-user-menu-dropdown-item.active a i { background: var(--riva-gold); color: var(--tw-accent-text, var(--riva-night)) !important; }
body .account-content nav.sidebar .s-user-menu-dropdown-item.active a::after { content: ""; position: absolute; inset-inline-end: 14px; width: 6px; height: 6px; transform: rotate(45deg); background: var(--riva-gold); }
body .account-content nav.sidebar .s-user-menu-dropdown-item-logout a,
body .account-content nav.sidebar .s-user-menu-dropdown-item-logout a i { color: var(--riva-sale) !important; }
/* the avatar in the page banner gets a gold ring */
body .account-content .nav-header .profile-photo { border-radius: 50%; }
body .account-content .nav-header .rounded-full:has(.profile-photo) { box-shadow: 0 0 0 3px var(--riva-ivory), 0 0 0 4px var(--riva-gold); }
/* content panels */
body .account-content .main-content { min-width: 0; }
body .account-content .main-content > :is(.account-head, .account-table-content, .account-items-list, form, .grid, div):first-child:not(.cart-item) {
    padding: clamp(18px, 2.4vw, 30px);
    border-radius: var(--riva-r-lg);
    background: var(--riva-ivory);
    border: 1px solid var(--riva-line);
    box-shadow: var(--riva-shadow);
}
body .account-content .main-content label { color: var(--riva-night) !important; font-weight: 700; }
/* order / address tables: rows as cards */
body .account-content .s-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
body .account-content .s-table thead th { padding: 8px 16px !important; font-size: 13px; font-weight: 700; color: var(--riva-mute) !important; text-transform: none; border: 0 !important; background: none !important; }
body .account-content .s-table tbody tr,
body .account-content .s-table__tr { background: #fff !important; transition: box-shadow .35s var(--riva-ease), transform .35s var(--riva-ease); }
body .account-content .s-table tbody td { padding: 16px !important; border-top: 1px solid var(--riva-line) !important; border-bottom: 1px solid var(--riva-line) !important; color: var(--riva-text) !important; vertical-align: middle; }
body .account-content .s-table tbody td:first-child { border-inline-start: 1px solid var(--riva-line) !important; border-start-start-radius: 12px; border-end-start-radius: 12px; font-weight: 700; color: var(--riva-night) !important; }
body .account-content .s-table tbody td:last-child { border-inline-end: 1px solid var(--riva-line) !important; border-start-end-radius: 12px; border-end-end-radius: 12px; }
@media (hover: hover) { body .account-content .s-table tbody tr:hover { box-shadow: var(--riva-shadow); transform: translateY(-2px); } }
body .account-content .address-card { border-radius: var(--riva-r) !important; border: 1px solid var(--riva-line) !important; background: #fff !important; box-shadow: none !important; transition: border-color .3s ease, box-shadow .35s var(--riva-ease); }
body .account-content .address-card:hover { border-color: var(--riva-gold-l) !important; box-shadow: var(--riva-shadow) !important; }
/* wishlist rows */
body .account-content .product-entry--wishlist { border-radius: var(--riva-r) !important; border: 1px solid var(--riva-line) !important; background: #fff !important; padding: 12px !important; transition: border-color .3s ease, box-shadow .35s var(--riva-ease); }
body .account-content .product-entry--wishlist:hover { border-color: var(--riva-gold-l) !important; box-shadow: var(--riva-shadow); }
body .account-content .product-entry--wishlist img { border-radius: var(--riva-r-sm) !important; }

/* ---------- 20. Forms, buttons, pagination, empty states, toasts ---------- */
body :is(.form-input, .s-form-control, select.form-select, textarea.form-input) {
    border-radius: 12px !important;
    border: 1px solid var(--riva-line-2) !important;
    background: #fff !important;
    color: var(--riva-night) !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}
body :is(.form-input, .s-form-control, select.form-select, textarea.form-input):focus { border-color: var(--riva-gold) !important; outline: none !important; box-shadow: 0 0 0 3px rgba(var(--tw-accent-rgb, 194, 161, 101), .18) !important; }
body :is(.s-button-primary, .btn-primary, button.s-button-element.s-button-solid:not(.s-button-link):not(.s-button-light):not(.s-button-dark-link)) {
    border-radius: 999px !important;
    background: var(--riva-night) !important;
    border-color: var(--riva-night) !important;
    color: var(--riva-gold-l) !important;
    font-weight: 700 !important;
    transition: background-color .3s ease, box-shadow .3s ease, transform .2s ease !important;
}
body :is(.s-button-primary, .btn-primary) * { color: inherit !important; }
body :is(.s-button-primary, .btn-primary):hover { background: var(--riva-night-2) !important; box-shadow: inset 0 0 0 1px var(--riva-gold); transform: translateY(-1px); }
/* pagination */
body .pagination :is(a, span),
body .s-pagination :is(a, span) { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50% !important; border: 1px solid var(--riva-line-2) !important; background: var(--riva-ivory) !important; color: var(--riva-night) !important; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
body .pagination :is(a:hover, .active span, span.active),
body .s-pagination :is(a:hover, .active span, span.active) { background: var(--riva-night) !important; border-color: var(--riva-night) !important; color: var(--riva-gold-l) !important; }
/* category / search listing toolbar */
body #filters-menu,
body .filters-wrapper,
body .s-filters-widget-container { border-radius: var(--riva-r-lg) !important; background: var(--riva-ivory) !important; border: 1px solid var(--riva-line) !important; }
body .no-result-found,
body .s-no-content { color: var(--riva-mute) !important; }
/* toasts */
body #toast-container > div { border-radius: 14px !important; box-shadow: var(--riva-shadow-lg) !important; opacity: 1 !important; }
body #toast-container > .toast-success { background-color: var(--riva-night) !important; color: var(--riva-gold-l) !important; }

/* ---------- 21. Floating bits, responsive, reduced motion ---------- */
body .s-block { scroll-margin-top: calc(var(--riva-header-h, 90px) + 20px); }
body .floating-social .floating-btn { box-shadow: 0 10px 24px -12px rgba(13, 21, 38, .55) !important; }
@media (max-width: 1023px) {
    body .floating-social:has(.whatsapp) .floating-btn:not(.whatsapp) { display: none !important; }
    body .floating-social:not(:has(.whatsapp)) .floating-btn:not(:first-child) { display: none !important; }
    body section.product-detail .sidebar { top: calc(var(--riva-header-h, 62px) + 16px) !important; }
    body .main-content ~ .sticky.top-20 { position: static !important; }
    body .account-content nav.sidebar { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    body .store-footer .footer-container { display: grid !important; grid-template-columns: 1fr 1fr; gap: 32px 28px !important; align-items: start; }
    body .store-footer .footer-container > div { width: auto !important; max-width: none !important; min-width: 0; }
    body .riva-cats .swiper-slide { width: 180px !important; }
}
@media (max-width: 767px) {
    body .s-slider-block__title-nav { display: none !important; }
    body .s-slider-block__display-all { padding: 7px 13px !important; font-size: 13px; }
    body .floating-social .floating-btn { width: 46px !important; height: 46px !important; }
    body .riva-notify__track { font-size: 13px !important; line-height: 38px !important; animation-duration: 28s; }
    body .store-notify.riva-notify { min-height: 38px; }
    body .riva-notify__group { gap: 22px; padding-inline-end: 22px; }
    body .main-container-wrapper > .container > .s-block:not(.s-block-0) { margin-top: 44px !important; }
    body .products-container.grid { gap: 14px 10px !important; }
    .riva-card { border-radius: 12px; }
    .riva-card__badges { top: 8px; inset-inline-start: 8px; }
    .riva-badge { font-size: 10px; padding: 3px 8px; }
    .riva-card__body { padding: 12px 10px 14px; gap: 8px; }
    .riva-card__title { font-size: 13.5px; }
    .riva-chip { min-width: 34px; padding: 3px 8px; font-size: 11.5px; }
    .riva-card__price .price,
    .riva-card__price .special-price { font-size: 15.5px !important; }
    .riva-card__price .regular-price { font-size: 11.5px !important; }
    body .riva-cats { padding: 14px 0 24px !important; }
    body .riva-cats .swiper-slide { width: 138px !important; }
    body .riva-cats .banner-square h3 { font-size: 15px !important; }
    body .riva-cats .riva-cat__sub { font-size: 12px; }
    body .riva-brands .banner-square { width: 130px !important; }
    .riva-glide__set { gap: 12px; padding-inline-end: 12px; }
    body .riva-brands .box-img { height: 86px !important; padding: 16px 18px; }
    body .myStoreSwiper .s-block--features__item { padding: 30px 16px 24px !important; }
    body .accordion { padding: 4px 14px; border-radius: var(--riva-r); }
    body .accordion .accordion-header { font-size: 15px !important; padding: 18px 2px !important; gap: 12px; }
    body .accordion .accordion-header::before { min-width: 32px; height: 32px; font-size: 12px; }
    body .accordion .accordion-content { padding: 0 44px !important; }
    body .banner-entry, body .banner-entry-list { min-height: 240px; }
    body .nav-header.bg-gray-100 { padding: 24px 18px !important; border-radius: var(--riva-r); }
    body .nav-header.bg-gray-100::after,
    body .nav-header.bg-gray-100::before { display: none; }
    body .store-footer .footer-container { text-align: center; }
    body .store-footer h3 { margin-inline: auto !important; }
    body .store-footer h3::after { inset-inline-start: 50%; translate: 50% 0; }
    html[dir="ltr"] body .store-footer h3::after { translate: -50% 0; }
    body .store-footer .store-footer__inner { border-radius: 26px 26px 0 0; }
    /* search: a top sheet on phones */
    body #searchProductModal .s-modal-wrapper { padding: 0; }
    body #searchProductModal .s-modal-body { width: 100% !important; margin: 0 !important; padding: max(18px, env(safe-area-inset-top)) 14px 14px !important; border-radius: 0 0 22px 22px !important; border-top: 0; }
    body #searchProductModal .s-search-modal::before { font-size: 17px; margin-bottom: 12px; }
    body #searchProductModal .s-modal-close { top: max(12px, env(safe-area-inset-top)) !important; width: 36px !important; height: 36px !important; }
    body #searchProductModal .s-search-input-wrapper { height: 52px; }
    body #searchProductModal .s-search-icon-wrap { width: 38px; height: 38px; }
    body #searchProductModal .riva-search-camera { width: 38px; height: 38px; }
    body #searchProductModal .ui.search > .results { max-height: calc(100dvh - 170px); }
    .riva-drawer__panel { width: 100%; }
    body .account-content .main-content > :first-child:not(.cart-item) { padding: 16px; }
    body .account-content .s-table tbody td { padding: 12px !important; }
}
@media (max-width: 359px) {
    body .riva-cats .swiper-slide { width: 120px !important; }
}
@media (prefers-reduced-motion: reduce) {
    body .riva-notify__track { animation: none !important; width: auto; }
    body .riva-notify__group[aria-hidden="true"],
    body .riva-notify__group > :nth-child(n+3) { display: none; }
    .riva-preloader__dots { animation: none !important; }
    .riva-glide__track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; }
    .riva-glide__set[aria-hidden="true"] { display: none; }
    body *, body *::before, body *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
    }
}

/* ---------- 22. Slider headers & short product grids ---------- */
/* the title sits in the middle of the page; "view all" + arrows pin to the inline end */
body .s-slider-block__title { position: relative; display: flex !important; justify-content: center !important; flex-wrap: wrap; margin-bottom: 38px !important; }
body .s-slider-block__title-right { flex: 0 1 auto !important; order: 0; }
body .s-slider-block__title-left { order: 1; }
@media (min-width: 768px) {
    body .s-slider-block__title-right { padding-inline: 230px !important; }
    body .s-slider-block__title-left { position: absolute; inset-inline-end: 0; top: calc(50% - 11px); transform: translateY(-50%); }
}
@media (max-width: 767px) {
    body .s-slider-block__title { flex-direction: column; align-items: center !important; gap: 4px; margin-bottom: 26px !important; }
    body .s-slider-block__title-left { justify-content: center; }
}
/* product sliders loop without end (riva.js); slides keep the theme widths, cards fill them */
body .mySwiper.riva-loop .swiper-wrapper { align-items: stretch; }
/* a home product grid with only a few items fills the row instead of hugging one side */
@media (min-width: 1024px) {
    body .s-block--best-offers .products-container.grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; }
}

/* product page: the image-zoom layer (ezPlus .zoomContainer, z-index 999 inline) covers the photo and sat above
   the header (150), so the menu's dropdowns closed wherever they overlapped the photo — keep it under the header */
body .zoomContainer { z-index: 140 !important; }
