/* ==========================================================================
   MAISON CACAO — ScaanMe store theme "cacao-chocolate-store"
   Bean-to-bar luxury chocolate · gifting & seasonal collections
   Dark-cacao #1B100C · panel #261610 · cream #F3E8DD · gold-foil #D9A441
   Fraunces (variable, luxe serif) display · Inter (variable) body
   Arabic: Amiri (display) + Tajawal (body)
   Signature: "Foil glint" — a single gold-foil sweep across the hero bar +
   featured gift box (one ::after gradient translate, reduced-motion killed).
   Mobile-first · logical properties (RTL-safe) · prefers-reduced-motion aware
   GLOBAL CONTAINMENT BASELINE · class prefix .cc-
   ========================================================================== */

:root {
    --cc-bg: var(--tk-bg, #1B100C);            /* dark cacao */
    --cc-bg-deep: color-mix(in srgb, var(--tk-bg, #1B100C), #000 30%);  /* deepest cacao */
    --cc-panel: color-mix(in srgb, var(--tk-bg, #1B100C), #fff 5%);     /* raised surface */
    --cc-panel-2: color-mix(in srgb, var(--tk-bg, #1B100C), #fff 9%);   /* second elevation */
    --cc-cream: var(--tk-text, #F3E8DD);       /* primary text on dark */
    --cc-milk: color-mix(in srgb, var(--tk-text, #F3E8DD), #fff 13%);   /* milk-cream cards */
    --cc-muted: color-mix(in srgb, var(--tk-text, #F3E8DD), var(--tk-bg, #1B100C) 34%);
    --cc-line: rgb(from var(--tk-primary, #D9A441) r g b / .2);         /* hairline (gold-tinted) */
    --cc-line-soft: rgb(from var(--tk-text, #F3E8DD) r g b / .1);
    --cc-line-strong: rgb(from var(--tk-primary, #D9A441) r g b / .42);
    --cc-accent: var(--tk-primary, #D9A441);   /* gold-foil — single accent */
    --cc-accent-deep: color-mix(in srgb, var(--tk-primary, #D9A441), #000 18%);  /* darker gold */
    --cc-accent-soft: rgb(from var(--tk-primary, #D9A441) r g b / .14);
    --cc-rose: var(--tk-secondary, #C76B7A);   /* secondary — berry/rose flavours ONLY */
    --cc-ink: color-mix(in srgb, var(--tk-bg, #1B100C), #fff 7%);       /* dark text on cream cards */
    --cc-ink-soft: color-mix(in srgb, var(--tk-bg, #1B100C), #fff 22%);
    --cc-r: 10px;
    --cc-r-lg: 18px;
    --cc-font-d: var(--tk-font-header, 'Fraunces'), 'Amiri', Georgia, 'Times New Roman', serif;
    --cc-font-b: var(--tk-font-content, 'Inter'), 'Tajawal', system-ui, -apple-system, sans-serif;
    --cc-ease: cubic-bezier(.2, .7, .25, 1);
    /* Gold-foil sheen gradient (gold stops -> primary; cream glint stops left decorative) */
    --cc-foil: linear-gradient(115deg,
        transparent 0%,
        rgb(from var(--tk-primary, #D9A441) r g b / 0) 38%,
        rgb(from var(--tk-accent3, #F6ECDF) r g b / .55) 49%,
        rgb(from var(--tk-primary, #D9A441) r g b / .85) 52%,
        rgb(from var(--tk-accent3, #F6ECDF) r g b / .35) 56%,
        rgb(from var(--tk-primary, #D9A441) r g b / 0) 66%,
        transparent 100%);
}

html { scroll-behavior: smooth; }

body {
    background: var(--cc-bg) !important;
    color: var(--cc-cream);
    font-family: var(--cc-font-b);
    font-weight: 400;
    letter-spacing: .005em;
    -webkit-font-smoothing: antialiased;
    padding-block-end: 76px; /* mobile dock clearance */
    /* layered depth: subtle warm radial glow + cacao grain */
    background-image:
        radial-gradient(120% 80% at 50% -10%, rgb(from var(--tk-primary, #D9A441) r g b / .08), transparent 60%),
        radial-gradient(90% 60% at 100% 0%, rgb(from var(--tk-secondary, #C76B7A) r g b / .05), transparent 55%);
    background-attachment: fixed;
}

body[dir="rtl"] { font-family: 'Tajawal', var(--cc-font-b); letter-spacing: 0; }
body[dir="rtl"] .cc-display,
body[dir="rtl"] .cc-hero-title,
body[dir="rtl"] .cc-card-name,
body[dir="rtl"] .cc-product-name,
body[dir="rtl"] .cc-footer-wordmark { font-family: 'Amiri', var(--cc-font-d); }

img { max-width: 100%; }
a { color: var(--cc-cream); }
a:hover { color: var(--cc-accent); }
::selection { background: var(--cc-accent); color: var(--cc-bg-deep); }

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

/* ---------- Type ------------------------------------------------------- */
.cc-display {
    font-family: var(--cc-font-d);
    font-weight: 500;
    font-optical-sizing: auto;
    letter-spacing: -.01em;
    line-height: 1.12;
    color: var(--cc-cream);
    margin: 0;
}

.cc-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--cc-font-b);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--cc-muted);
}
.cc-eyebrow .num { color: var(--cc-accent); unicode-bidi: isolate; }
.cc-eyebrow::after { content: ""; flex: 0 1 56px; height: 1px; background: var(--cc-line-strong); }

.cc-sechead { display: flex; flex-direction: column; gap: 8px; margin-block-end: 20px; }
.cc-sechead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.cc-sechead .cc-display { font-size: clamp(1.55rem, 5vw, 2.15rem); }
.cc-sechead-link {
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--cc-accent); text-decoration: none;
    border-block-end: 1px solid var(--cc-line-strong); padding-block-end: 3px; white-space: nowrap;
    transition: color .25s var(--cc-ease), border-color .25s var(--cc-ease);
}
.cc-sechead-link:hover { color: var(--cc-milk); border-color: var(--cc-accent); }
.cc-count { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cc-muted); white-space: nowrap; }

/* ---------- Buttons / forms -------------------------------------------- */
.cc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding-inline: 22px;
    border: 1px solid transparent; border-radius: 999px;
    font-family: var(--cc-font-b); font-size: 12px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .25s var(--cc-ease), color .25s var(--cc-ease),
                border-color .25s var(--cc-ease), box-shadow .25s var(--cc-ease), transform .15s var(--cc-ease);
}
.cc-btn:active { transform: translateY(1px); }
/* Gold-foil primary */
.cc-btn-ink {
    background: linear-gradient(180deg, var(--cc-accent), var(--cc-accent-deep));
    color: var(--cc-bg-deep) !important; border-color: var(--cc-accent);
    box-shadow: 0 8px 22px -10px rgb(from var(--tk-primary, #D9A441) r g b / .7);
}
.cc-btn-ink:hover { box-shadow: 0 12px 30px -10px rgb(from var(--tk-primary, #D9A441) r g b / .9); color: var(--cc-bg-deep) !important; }
.cc-btn-ghost { background: transparent; color: var(--cc-cream) !important; border-color: var(--cc-line-strong); }
.cc-btn-ghost:hover { border-color: var(--cc-accent); background: var(--cc-accent-soft); }
/* Cream button (on dark hero scrim) */
.cc-btn-paper { background: var(--cc-milk); color: var(--cc-ink) !important; border-color: var(--cc-milk); }
.cc-btn-paper:hover { background: var(--cc-accent); border-color: var(--cc-accent); color: var(--cc-bg-deep) !important; }
.cc-btn-block { width: 100%; }

.cc-input, .cc-select {
    height: 46px; width: 100%;
    border: 1px solid var(--cc-line); border-radius: var(--cc-r);
    background: var(--cc-panel); color: var(--cc-cream);
    font-family: inherit; font-size: 14px; padding-inline: 14px;
    transition: border-color .2s var(--cc-ease), box-shadow .2s var(--cc-ease);
    appearance: auto;
}
.cc-input:focus, .cc-select:focus { outline: none; border-color: var(--cc-accent); box-shadow: 0 0 0 3px var(--cc-accent-soft); }
.cc-input::placeholder { color: var(--cc-muted); }

/* ---------- Topbar ------------------------------------------------------ */
.cc-topbar {
    position: sticky; top: 0; z-index: 1030;
    background: rgb(from var(--tk-bg, #1B100C) r g b / .82);
    -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
    border-block-end: 1px solid var(--cc-line);
}
.cc-topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.cc-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.cc-brand-logo {
    width: 40px; height: 40px; object-fit: cover; flex-shrink: 0;
    border-radius: 50%; border: 1px solid var(--cc-line-strong); background: var(--cc-panel);
    box-shadow: 0 0 0 3px rgb(from var(--tk-primary, #D9A441) r g b / .08);
}
.cc-brand-name {
    font-family: var(--cc-font-d); font-weight: 500; font-size: 18px; letter-spacing: .01em; color: var(--cc-cream);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cc-cart-trigger {
    position: relative; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--cc-line-strong); border-radius: 50%;
    color: var(--cc-accent); background: transparent; cursor: pointer; text-decoration: none;
    transition: background .25s var(--cc-ease), color .25s var(--cc-ease), border-color .25s var(--cc-ease);
}
.cc-cart-trigger:hover { background: var(--cc-accent); color: var(--cc-bg-deep); border-color: var(--cc-accent); }
.cc-cart-trigger svg { width: 21px; height: 21px; }
.cc-cart-badge {
    position: absolute; top: -6px; inset-inline-end: -6px;
    min-width: 19px; height: 19px; padding-inline: 4px;
    display: flex; align-items: center; justify-content: center;
    background: var(--cc-rose); color: var(--cc-milk);
    border-radius: 10px; font-size: 10px; font-weight: 700; line-height: 1;
    border: 1.5px solid var(--cc-bg);
}

/* ---------- Notes (session alerts) -------------------------------------- */
.cc-note {
    border: 1px solid var(--cc-line); border-inline-start: 3px solid var(--cc-accent);
    background: var(--cc-panel); border-radius: var(--cc-r);
    padding: 14px 16px; margin-block: 14px 0; font-size: 14.5px; color: var(--cc-cream);
}
.cc-note-success { border-inline-start-color: var(--tk-success, #6FBE8C); }
.cc-note-danger { border-inline-start-color: var(--cc-rose); }

/* ==========================================================================
   SIGNATURE — "Foil glint": a single gold-foil sweep that runs once on load
   and again on hover, like light skating across foil wrap. One ::after with
   a translating gradient. Killed entirely under prefers-reduced-motion.
   ========================================================================== */
.cc-foil { position: relative; overflow: hidden; isolation: isolate; }
.cc-foil::after {
    content: ""; position: absolute; inset-block: 0; inset-inline-start: -60%;
    width: 60%; z-index: 3; pointer-events: none;
    background: var(--cc-foil);
    transform: skewX(-14deg);
    animation: cc-glint 5.2s var(--cc-ease) 1.1s 1 both;
}
.cc-foil:hover::after { animation: cc-glint 1.25s var(--cc-ease) 0s 1 both; }
@keyframes cc-glint {
    0%   { inset-inline-start: -60%; opacity: 0; }
    8%   { opacity: 1; }
    60%  { opacity: 1; }
    100% { inset-inline-start: 150%; opacity: 0; }
}
/* RTL: sweep travels the other way so it still reads as a light rake.
   The cc-glint keyframe uses logical inset-inline-start, so it auto-flips
   travel direction under [dir=rtl]; only the skew needs mirroring. */
body[dir="rtl"] .cc-foil::after { transform: skewX(14deg); }

/* ---------- Hero (01 — bean to bar) ------------------------------------- */
.cc-hero {
    position: relative; margin-block-start: 18px;
    border: 1px solid var(--cc-line); border-radius: var(--cc-r-lg);
    overflow: hidden; background: var(--cc-bg-deep);
    box-shadow: 0 26px 60px -28px rgba(0, 0, 0, .8);
}
.cc-hero-rail {
    display: flex; height: clamp(400px, 64vh, 620px);
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
}
.cc-hero-rail::-webkit-scrollbar { display: none; }
.cc-hero-slide { flex: 0 0 100%; scroll-snap-align: center; height: 100%; }
.cc-hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-hero-scrim {
    position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background:
        linear-gradient(to top, rgb(from var(--tk-bg, #1B100C) r g b / .9) 0%, rgb(from var(--tk-bg, #1B100C) r g b / .42) 46%, rgb(from var(--tk-bg, #1B100C) r g b / .04) 74%),
        linear-gradient(to right, rgb(from var(--tk-bg, #1B100C) r g b / .4), transparent 50%);
}
.cc-hero-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 24px 20px 30px; color: var(--cc-milk); z-index: 4; pointer-events: none; }
.cc-hero-cap .cc-eyebrow { color: rgb(from var(--tk-accent3, #F6ECDF) r g b / .82); }
.cc-hero-cap .cc-eyebrow .num { color: var(--cc-accent); }
.cc-hero-cap .cc-eyebrow::after { background: rgb(from var(--tk-primary, #D9A441) r g b / .5); }
.cc-hero-title {
    font-family: var(--cc-font-d); font-weight: 500; font-optical-sizing: auto;
    font-size: clamp(1.9rem, 7vw, 3.3rem); line-height: 1.06; letter-spacing: -.015em;
    margin: 12px 0 8px; max-width: 18ch;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .5);
}
.cc-hero-lede { font-size: 14.5px; color: rgb(from var(--tk-accent3, #F6ECDF) r g b / .82); margin: 0 0 18px; max-width: 40ch; letter-spacing: .01em; }
.cc-hero-cap .cc-btn { pointer-events: auto; }

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

/* ---------- Flavor chips (signature flavour rail) ------------------------ */
.cc-flavors { display: flex; flex-wrap: wrap; gap: 9px; margin-block: 4px 8px; }
.cc-flavor {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid var(--cc-line-strong); border-radius: 999px;
    padding: 8px 15px; background: var(--cc-panel);
    font-size: 11.5px; font-weight: 500; letter-spacing: .06em; color: var(--cc-cream);
    transition: border-color .2s var(--cc-ease), background .2s var(--cc-ease);
}
.cc-flavor::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cc-accent); flex-shrink: 0; }
.cc-flavor:hover { border-color: var(--cc-accent); background: var(--cc-panel-2); }
.cc-flavor.is-rose::before { background: var(--cc-rose); }

/* ---------- Rails (shared) ----------------------------------------------- */
.cc-tilerail, .cc-prodrail, .cc-cat-rail, .cc-thumb-rail, .cc-reviewrail {
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
    padding-block: 2px;
}
.cc-tilerail::-webkit-scrollbar, .cc-prodrail::-webkit-scrollbar,
.cc-cat-rail::-webkit-scrollbar, .cc-thumb-rail::-webkit-scrollbar,
.cc-reviewrail::-webkit-scrollbar { display: none; }
.cc-tilerail { gap: 14px; }
.cc-prodrail { gap: 14px; }
.cc-reviewrail { gap: 14px; }

/* ---------- Collection tiles (02 — Collections) -------------------------- */
.cc-tile {
    position: relative; flex: 0 0 min(82%, 460px); aspect-ratio: 4 / 3;
    border: 1px solid var(--cc-line); border-radius: var(--cc-r-lg);
    overflow: hidden; scroll-snap-align: start;
    text-decoration: none; background: var(--cc-panel); display: block;
}
.cc-tile-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--cc-ease); }
.cc-tile:hover .cc-tile-img { transform: scale(1.05); }
.cc-tile-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgb(from var(--tk-bg, #1B100C) r g b / .82), rgb(from var(--tk-bg, #1B100C) r g b / 0) 58%); pointer-events: none; }
.cc-tile-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; color: var(--cc-milk); z-index: 2; }
.cc-tile-kicker { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--cc-accent); unicode-bidi: isolate; }
.cc-tile-name { font-family: var(--cc-font-d); font-weight: 500; font-size: clamp(1.2rem, 3.8vw, 1.6rem); line-height: 1.16; }
.cc-tile-cta {
    display: inline-flex; align-items: center; gap: 6px; margin-block-start: 7px;
    font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--cc-milk);
}
.cc-tile-cta i { font-size: 14px; transition: transform .3s var(--cc-ease); }
.cc-tile:hover .cc-tile-cta i { transform: translateX(4px); }
body[dir="rtl"] .cc-tile-cta i { transform: scaleX(-1); }
body[dir="rtl"] .cc-tile:hover .cc-tile-cta i { transform: scaleX(-1) translateX(4px); }

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

/* ---------- Category pill rail (filter view) ------------------------------ */
.cc-cathead { margin-block-start: 24px; }
.cc-cat-rail { gap: 8px; margin-block: 14px 4px; }
.cc-cat-link {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--cc-line); border-radius: 999px;
    padding: 9px 15px; background: var(--cc-panel);
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--cc-cream); text-decoration: none; white-space: nowrap;
    scroll-snap-align: start;
    transition: border-color .2s var(--cc-ease), background .2s var(--cc-ease), color .2s var(--cc-ease);
}
.cc-cat-link img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.cc-cat-link:hover { border-color: var(--cc-accent); color: var(--cc-milk); }
.cc-cat-link.is-active { background: var(--cc-accent); color: var(--cc-bg-deep); border-color: var(--cc-accent); font-weight: 600; }

/* ---------- Gift-box builder block --------------------------------------- */
.cc-giftbox {
    position: relative; overflow: hidden;
    border: 1px solid var(--cc-line-strong); border-radius: var(--cc-r-lg);
    background: linear-gradient(160deg, var(--cc-panel-2), var(--cc-panel));
    padding: 26px 20px;
    box-shadow: inset 0 1px 0 rgb(from var(--tk-accent3, #F6ECDF) r g b / .06), 0 18px 44px -26px rgba(0, 0, 0, .7);
}
.cc-giftbox-head { display: flex; flex-direction: column; gap: 8px; margin-block-end: 18px; }
.cc-giftbox-title { font-family: var(--cc-font-d); font-weight: 500; font-size: clamp(1.4rem, 4.6vw, 1.9rem); line-height: 1.14; color: var(--cc-cream); margin: 0; }
.cc-giftbox-sub { font-size: 13.5px; color: var(--cc-muted); margin: 0; max-width: 44ch; }
.cc-giftbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cc-gift-opt {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 18px 10px; border: 1px solid var(--cc-line); border-radius: var(--cc-r);
    background: var(--cc-bg-deep); text-decoration: none; color: var(--cc-cream);
    transition: border-color .2s var(--cc-ease), transform .2s var(--cc-ease), background .2s var(--cc-ease);
}
.cc-gift-opt:hover { border-color: var(--cc-accent); transform: translateY(-3px); background: var(--cc-panel); color: var(--cc-milk); }
.cc-gift-count { font-family: var(--cc-font-d); font-weight: 600; font-size: 28px; line-height: 1; color: var(--cc-accent); unicode-bidi: isolate; }
.cc-gift-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-muted); }

/* ---------- Origin story strip ------------------------------------------- */
.cc-origin {
    display: grid; grid-template-columns: 1fr; gap: 14px;
    border: 1px solid var(--cc-line); border-radius: var(--cc-r-lg);
    background: var(--cc-panel); padding: 24px 20px; overflow: hidden;
}
.cc-origin-mark {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--cc-line-strong); color: var(--cc-accent); font-size: 24px;
    background: var(--cc-bg-deep);
}
.cc-origin-title { font-family: var(--cc-font-d); font-weight: 500; font-size: clamp(1.3rem, 4.4vw, 1.8rem); line-height: 1.16; color: var(--cc-cream); margin: 12px 0 6px; }
.cc-origin-text { font-size: 14.5px; line-height: 1.7; color: var(--cc-muted); margin: 0; max-width: 56ch; }

/* ---------- Product cards ------------------------------------------------- */
.cc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cc-prodrail .cc-card { flex: 0 0 min(66%, 280px); scroll-snap-align: start; }

.cc-card {
    display: flex; flex-direction: column;
    background: var(--cc-panel);
    border: 1px solid var(--cc-line); border-radius: var(--cc-r-lg);
    overflow: hidden;
    transition: border-color .3s var(--cc-ease), box-shadow .3s var(--cc-ease), transform .3s var(--cc-ease);
}
.cc-card:hover { border-color: var(--cc-line-strong); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .75); transform: translateY(-3px); }
.cc-card-media {
    position: relative; display: block; aspect-ratio: 1 / 1;
    overflow: hidden; background: var(--cc-bg-deep);
}
.cc-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--cc-ease), transform .7s var(--cc-ease); }
.cc-card-img-alt { opacity: 0; }
.cc-card:hover .cc-card-img-alt { opacity: 1; }
.cc-card:hover .cc-card-media .cc-card-img:only-child { transform: scale(1.06); }
.cc-flag {
    position: absolute; top: 11px; inset-inline-start: 11px; z-index: 2;
    background: linear-gradient(180deg, var(--cc-accent), var(--cc-accent-deep)); color: var(--cc-bg-deep);
    font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 999px;
}
.cc-flag-out { background: var(--cc-rose); color: var(--cc-milk); }
.cc-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 15px 15px; gap: 3px; }
.cc-card-link { text-decoration: none; color: inherit; min-width: 0; }
.cc-card-name {
    font-family: var(--cc-font-d); font-weight: 500; font-size: 16px; line-height: 1.26;
    margin: 0; color: var(--cc-cream);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-card:hover .cc-card-name { color: var(--cc-milk); }
.cc-card-meta {
    font-size: 12.5px; color: var(--cc-muted); margin: 2px 0 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-block-start: auto; padding-block-start: 12px;
    border-block-start: 1px solid var(--cc-line-soft);
}
.cc-price-wrap { display: flex; flex-direction: column; min-width: 0; }
.cc-price { font-weight: 600; font-size: 15px; color: var(--cc-accent); }
.cc-price-old { font-size: 12px; color: var(--cc-muted); text-decoration: line-through; }
.cc-add {
    flex-shrink: 0; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--cc-accent-soft); color: var(--cc-accent) !important;
    border: 1px solid var(--cc-line-strong); border-radius: 50%;
    cursor: pointer; text-decoration: none; font-size: 19px;
    transition: background .25s var(--cc-ease), border-color .25s var(--cc-ease), color .25s var(--cc-ease);
}
.cc-add:hover { background: var(--cc-accent); border-color: var(--cc-accent); color: var(--cc-bg-deep) !important; }

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

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

/* ---------- Empty states (pure CSS cacao-bean mark) -------------------------- */
.cc-empty {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-align: center; padding: 56px 18px; margin-block: 22px;
    background: var(--cc-panel);
    border: 1px dashed var(--cc-line-strong); border-radius: var(--cc-r-lg);
}
.cc-empty-mark {
    position: relative; width: 50px; height: 64px;
    border: 1px solid var(--cc-accent); border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
    margin-block: 8px 16px;
}
.cc-empty-mark::before {
    content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 50%;
    width: 1px; background: var(--cc-line-strong); translate: -50% 0;
}
.cc-empty-title { font-family: var(--cc-font-d); font-weight: 500; font-size: 21px; margin: 0; color: var(--cc-cream); }
.cc-empty-sub { color: var(--cc-muted); font-size: 14px; margin: 0; max-width: 42ch; }
.cc-empty .cc-btn { margin-block-start: 8px; }

/* ---------- Cart drawer — deepest cacao well --------------------------------- */
#offcanvasEnd.cc-drawer {
    background: var(--cc-bg-deep); color: var(--cc-cream);
    width: min(420px, 94vw);
    border-inline-start: 1px solid var(--cc-line);
}
.cc-drawer .offcanvas-header { padding: 18px; border-block-end: 1px solid var(--cc-line); }
.cc-drawer-title { font-family: var(--cc-font-d); font-weight: 500; font-size: 20px; letter-spacing: .01em; color: var(--cc-cream); margin: 0; }
.cc-drawer .btn-close { filter: invert(1) sepia(.4) saturate(2) hue-rotate(0deg); opacity: .8; }
.cc-drawer .offcanvas-body { padding: 16px 18px; }

.cc-cart-item {
    display: flex; gap: 12px; margin-block-end: 10px; padding: 11px;
    background: var(--cc-panel);
    border: 1px solid var(--cc-line); border-radius: var(--cc-r);
}
.cc-cart-item-img { width: 70px; height: 70px; object-fit: cover; flex-shrink: 0; border-radius: var(--cc-r); background: var(--cc-panel-2); }
.cc-cart-item-info { flex: 1; min-width: 0; }
.cc-cart-item-name {
    font-family: var(--cc-font-d); font-weight: 500; font-size: 15.5px;
    color: var(--cc-cream); margin: 0 0 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-cart-item-sub {
    display: block; font-size: 12px; color: var(--cc-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-cart-item-sub.sm-cart-variants { color: var(--cc-accent); letter-spacing: .02em; }
.cc-cart-item-price { margin: 6px 0 9px; font-size: 14px; font-weight: 600; color: var(--cc-accent); }
.cc-cart-item-actions { display: flex; align-items: center; gap: 6px; }
.cc-qty-btn {
    width: 32px; height: 32px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: var(--cc-cream);
    border: 1px solid var(--cc-line-strong); border-radius: 8px;
    cursor: pointer; transition: background .2s var(--cc-ease), border-color .2s var(--cc-ease);
}
.cc-qty-btn:hover { border-color: var(--cc-accent); background: var(--cc-accent-soft); }
.cc-qty-btn svg { width: 15px; height: 15px; }
.cc-qty-num { min-width: 28px; text-align: center; font-weight: 600; font-size: 14px; color: var(--cc-cream); }
.cc-qty-remove { margin-inline-start: auto; color: var(--cc-rose); border-color: rgb(from var(--tk-secondary, #C76B7A) r g b / .42); }
.cc-qty-remove:hover { background: var(--cc-rose); border-color: var(--cc-rose); color: var(--cc-milk); }

.cc-cart-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 44px 14px; }
.cc-empty-mark-light { border-color: var(--cc-line-strong); }
.cc-cart-empty-text { font-family: var(--cc-font-d); font-weight: 500; font-size: 17px; color: var(--cc-cream); margin: 0; }

.cc-drawer-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--cc-line); }
.cc-cart-total {
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--cc-font-d); font-weight: 500; font-size: 17px;
    color: var(--cc-cream); margin: 0 0 12px;
}
.cc-cart-total-num { color: var(--cc-accent); font-size: 20px; font-weight: 600; }
.cc-place-order {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    height: 50px; width: 100%;
    background: linear-gradient(180deg, var(--cc-accent), var(--cc-accent-deep)); color: var(--cc-bg-deep) !important;
    border-radius: 999px; cursor: pointer; text-decoration: none;
    font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    box-shadow: 0 10px 26px -12px rgb(from var(--tk-primary, #D9A441) r g b / .8);
    transition: box-shadow .25s var(--cc-ease);
}
.cc-place-order:hover { box-shadow: 0 14px 34px -12px rgb(from var(--tk-primary, #D9A441) r g b / 1); color: var(--cc-bg-deep) !important; }
.cc-place-order i { font-size: 18px; }

/* ---------- Modals ------------------------------------------------------------ */
.cc-modal .modal-content {
    position: relative;
    background: var(--cc-panel); color: var(--cc-cream);
    border: 1px solid var(--cc-line-strong); border-radius: var(--cc-r-lg);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
.cc-modal .modal-header { padding: 18px 20px; border-block-end: 1px solid var(--cc-line); align-items: flex-start; background: transparent; }
.cc-modal .modal-title { font-family: var(--cc-font-d); font-weight: 500; font-size: 20px; letter-spacing: .01em; color: var(--cc-cream); }
.cc-modal-sub { display: block; margin-block-start: 2px; font-size: 12.5px; color: var(--cc-muted); }
/* Footer must inherit the dark cacao panel — Tabler defaults it to near-white (#f6f8fb),
   which produced a bright strip behind Close/Confirm against the dark modal. */
.cc-modal .modal-footer { border-block-start: 1px solid var(--cc-line); gap: 8px; background: transparent; }
.cc-modal .modal-body { color: var(--cc-cream); background: transparent; }
.cc-modal .form-label {
    font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--cc-muted);
}
.cc-modal .form-control, .cc-modal .form-select {
    border: 1px solid var(--cc-line); border-radius: var(--cc-r);
    background: var(--cc-bg-deep); color: var(--cc-cream);
}
.cc-modal .form-control::placeholder { color: var(--cc-muted); }
.cc-modal .form-control:focus, .cc-modal .form-select:focus {
    border-color: var(--cc-accent); box-shadow: 0 0 0 3px var(--cc-accent-soft);
    background: var(--cc-bg-deep); color: var(--cc-cream);
}
.cc-modal .form-check-label { color: var(--cc-cream); }
.cc-modal .form-check-input { background-color: var(--cc-bg-deep); border-color: var(--cc-line-strong); }
.cc-modal .form-check-input:checked { background-color: var(--cc-accent); border-color: var(--cc-accent); }
.cc-modal .form-check-input:focus { border-color: var(--cc-accent); box-shadow: 0 0 0 3px var(--cc-accent-soft); }
.cc-modal .btn-close { filter: invert(1) sepia(.4) saturate(2); opacity: .8; }
.cc-modal .text-muted { color: var(--cc-muted) !important; }

/* ---------- Single product ------------------------------------------------------ */
.cc-crumb {
    display: flex; align-items: center; gap: 8px; margin-block: 18px 0;
    font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--cc-muted);
}
.cc-crumb a { color: var(--cc-cream); text-decoration: none; }
.cc-crumb a:hover { color: var(--cc-accent); }
.cc-crumb-sep { color: var(--cc-line-strong); }
.cc-crumb-cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; color: var(--cc-accent); }

.cc-product { display: grid; grid-template-columns: 1fr; gap: 28px; margin-block: 22px 10px; }
.cc-gallery { min-width: 0; }
.cc-gallery-main {
    display: block; position: relative; aspect-ratio: 1 / 1;
    border: 1px solid var(--cc-line); border-radius: var(--cc-r-lg);
    overflow: hidden; background: var(--cc-panel);
}
.cc-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-thumb-rail { gap: 10px; margin-block-start: 10px; }
.cc-thumb {
    flex: 0 0 74px; aspect-ratio: 1 / 1; display: block;
    border: 1px solid var(--cc-line); border-radius: var(--cc-r);
    overflow: hidden; background: var(--cc-panel); scroll-snap-align: start;
    transition: border-color .2s var(--cc-ease);
}
.cc-thumb:hover { border-color: var(--cc-accent); }
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

.cc-product-name {
    font-family: var(--cc-font-d); font-weight: 500; font-optical-sizing: auto;
    font-size: clamp(1.75rem, 5.5vw, 2.5rem); line-height: 1.1; letter-spacing: -.01em;
    margin: 10px 0 6px; color: var(--cc-cream);
}
.cc-product-sub { color: var(--cc-muted); font-size: 15px; margin: 0 0 14px; }
.cc-product-price {
    display: flex; align-items: baseline; gap: 12px;
    margin-block: 4px 16px; padding-block-end: 16px;
    border-block-end: 1px solid var(--cc-line);
}
.cc-product-price .cc-price { font-size: 25px; font-weight: 600; }
.cc-product-price .cc-price-old { font-size: 15px; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 18px; }
.cc-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    border: 1px solid var(--cc-line); border-radius: 999px;
    padding: 6px 12px; color: var(--cc-muted); background: var(--cc-panel);
}
.cc-chip-accent { color: var(--cc-accent); border-color: var(--cc-line-strong); }
.cc-concierge-hint {
    display: flex; align-items: flex-start; gap: 8px;
    margin-block: 14px 18px;
    font-size: 11px; letter-spacing: .04em; text-transform: none; color: var(--cc-muted); line-height: 1.5;
}
.cc-concierge-hint i { font-size: 16px; color: var(--cc-accent); flex-shrink: 0; margin-block-start: 1px; }

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

/* Variant picker — restyle the shared neutral chips to gold-foil chocolate chips */
.sm-variants { margin: 18px 0; }
.sm-variant-label { color: var(--cc-cream); font-weight: 600; letter-spacing: .04em; }
.sm-variant-opt {
    border: 1px solid var(--cc-line-strong) !important; color: var(--cc-cream) !important;
    background: var(--cc-panel) !important; opacity: 1 !important; border-radius: 999px !important;
    padding: 8px 17px !important; font-weight: 500;
    transition: border-color .18s var(--cc-ease), background .18s var(--cc-ease), color .18s var(--cc-ease) !important;
}
.sm-variant-opt:hover { border-color: var(--cc-accent) !important; background: var(--cc-panel-2) !important; }
.sm-variant-opt.is-selected {
    background: linear-gradient(180deg, var(--cc-accent), var(--cc-accent-deep)) !important;
    color: var(--cc-bg-deep) !important; border-color: var(--cc-accent) !important;
    border-width: 1px !important; font-weight: 700;
    box-shadow: 0 6px 16px -8px rgb(from var(--tk-primary, #D9A441) r g b / .8);
}
.sm-variant-opt:focus-visible { outline: 2px solid var(--cc-accent) !important; outline-offset: 2px; }

/* Share include — dark re-skin */
.product-share-card .share-title {
    font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--cc-muted) !important;
}
.product-share-card .share-icon { border-color: var(--cc-line) !important; background: var(--cc-panel) !important; }

/* ---------- Reviews scroll --------------------------------------------------------- */
.cc-review {
    flex: 0 0 min(80%, 320px); scroll-snap-align: start;
    border: 1px solid var(--cc-line); border-radius: var(--cc-r-lg);
    background: var(--cc-panel); padding: 18px 18px 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.cc-review-stars { color: var(--cc-accent); font-size: 13px; letter-spacing: 2px; }
.cc-review-text { font-size: 14px; line-height: 1.6; color: var(--cc-cream); margin: 0; }
.cc-review-by { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cc-muted); margin-block-start: auto; }

/* ---------- Policy page ----------------------------------------------------------- */
.cc-policy { padding-block: 30px 10px; max-width: 860px; }
.cc-policy .cc-display {
    font-size: clamp(1.8rem, 5.4vw, 2.5rem);
    margin-block: 10px 16px; padding-block-end: 16px;
    border-block-end: 1px solid var(--cc-line);
}

/* ---------- Footer (deepest cacao) -------------------------------------------------- */
.cc-footer {
    flex-shrink: 0;
    background: var(--cc-bg-deep); color: var(--cc-muted);
    margin-block-start: 60px; padding-block: 40px 28px;
    border-block-start: 1px solid var(--cc-line);
    position: relative;
}
.cc-footer::before {
    content: ""; position: absolute; inset-block-start: -1px; inset-inline: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--cc-accent), transparent);
}
.cc-footer a { text-decoration: none; transition: color .2s var(--cc-ease); }
.cc-footer-top {
    display: flex; flex-direction: column; gap: 22px;
    padding-block-end: 24px; border-block-end: 1px solid var(--cc-line-soft);
}
.cc-footer-brand { min-width: 0; }
.cc-footer-wordmark { font-family: var(--cc-font-d); font-weight: 500; font-size: 25px; letter-spacing: .01em; color: var(--cc-cream); display: block; }
.cc-footer-tag { font-size: 13px; color: var(--cc-muted); margin: 6px 0 0; max-width: 48ch; }
.cc-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.cc-social a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--cc-line); border-radius: 50%;
    color: var(--cc-cream); font-size: 16px;
}
.cc-social a:hover { border-color: var(--cc-accent); background: var(--cc-accent-soft); color: var(--cc-accent); }
.cc-footer-links {
    display: flex; flex-wrap: wrap; gap: 9px 22px;
    padding-block: 18px; border-block-end: 1px solid var(--cc-line-soft);
    font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
}
.cc-footer-links a { color: var(--cc-muted); }
.cc-footer-links a:hover { color: var(--cc-accent); }
.cc-footer-base {
    display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between;
    padding-block-start: 18px; font-size: 12.5px; color: var(--cc-muted);
}
.cc-footer-base a { color: var(--cc-accent); }
.cc-footer-base a:hover { color: var(--cc-milk); }
.cc-footer-base i { color: var(--cc-rose); }

/* ---------- Mobile dock --------------------------------------------------------------- */
.cc-dock {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 1040;
    display: flex; justify-content: space-around; align-items: stretch;
    background: rgb(from var(--tk-bg, #1B100C) r g b / .96);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-block-start: 1px solid var(--cc-line);
    padding-block: 9px calc(9px + env(safe-area-inset-bottom));
}
.cc-dock a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--cc-muted); text-decoration: none; cursor: pointer;
    font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
}
.cc-dock a i { font-size: 21px; }
.cc-dock a.is-active, .cc-dock a:hover { color: var(--cc-accent); }

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

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

/* ---------- >=760px layer ----------------------------------------------------------------- */
@media (min-width: 760px) {
    body { padding-block-end: 0; }
    .cc-dock { display: none; }
    .cc-shell { padding-inline: 30px; }
    .cc-section { margin-block: 64px; }
    .cc-topbar-in { height: 72px; }
    .cc-brand-name { font-size: 20px; }
    .cc-hero-cap { padding: 36px 36px 40px; }
    .cc-trust { margin-block: 44px 0; }
    .cc-trust-item { padding-inline: 28px; }
    .cc-tile { flex-basis: 460px; aspect-ratio: 16 / 10; }
    .cc-tile-cap { padding: 22px 24px; }
    .cc-tilegrid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .cc-giftbox { padding: 34px 32px; }
    .cc-giftbox-grid { gap: 16px; }
    .cc-gift-opt { padding: 24px 14px; }
    .cc-origin { grid-template-columns: auto 1fr; align-items: center; column-gap: 26px; padding: 34px 32px; }
    .cc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .cc-prodrail { gap: 18px; }
    .cc-prodrail .cc-card { flex-basis: 280px; }
    .cc-card-body { padding: 15px 17px 17px; }
    .cc-card-name { font-size: 17px; }
    .cc-toolbar { flex-direction: row; align-items: center; padding: 13px 15px; }
    .cc-search { flex: 1.5 1 0; }
    .cc-pricef { flex: 1.2 1 0; }
    .cc-toolbar .cc-select { flex: 0 0 200px; width: 200px; }
    .cc-product { grid-template-columns: 1fr 1fr; gap: 50px; margin-block: 44px 16px; }
    .cc-product-info { padding-block-start: 8px; }
    .cc-thumb { flex-basis: 84px; }
    .cc-review { flex-basis: 340px; }
    .cc-footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

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

/* ---------- Reduced motion layer (signature kill) ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    /* Kill the foil-glint signature entirely */
    .cc-foil::after { display: none !important; animation: none !important; }
    .cc-tile:hover .cc-tile-img,
    .cc-card:hover .cc-card-media .cc-card-img:only-child { transform: none; }
    .cc-card:hover { transform: none; }
    .cc-gift-opt:hover { transform: none; }
}


/* ============================================================
   Cart toast — bulletproof compact pill (preserved from exemplar).
   Overrides the legacy inline showAlert() sizing that made the
   Tabler solid alert blow up to a half-screen panel. Forces a
   centered top toast, auto height — restyled to cacao gold.
   ============================================================ */
.alert-float {
    position: fixed !important;
    inset-block-start: 16px !important;
    inset-block-end: auto !important;
    bottom: auto !important;
    inset-inline: 16px !important;
    z-index: 4000;
    width: auto !important;
    max-width: 420px !important;
    margin-inline: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 13px 20px !important;
    border: 0 !important;
    border-radius: 999px !important;
    text-align: center !important;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.4;
    background: linear-gradient(180deg, var(--cc-accent), var(--cc-accent-deep)) !important;
    color: var(--cc-bg-deep) !important;
    box-shadow: 0 16px 38px -10px rgba(0, 0, 0, .55);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.alert-float.alert-danger {
    background: linear-gradient(180deg, var(--cc-rose), color-mix(in srgb, var(--tk-secondary, #C76B7A), #000 22%)) !important;
    color: var(--cc-milk) !important;
}
.alert-float.show {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
}
.alert-float .btn-close,
.alert-float .alert-icon { display: none !important; }
@media (prefers-reduced-motion: reduce) {
    .alert-float { transition: none; }
}


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


/* ============================================================
   FOUNDER-REMARK POLISH PASS — spacing + RTL containment.
   (1) Header close-buttons (cart drawer + order/newsletter/info
       modals) must never glue to / collide with the title.
   (2) Comfortable inner padding so nothing touches an edge.
   (3) Keep prices / numbers LTR; flip directional chevrons.
   ============================================================ */

/* ---- Cart drawer header: guaranteed gap + breathing room ---- */
.cc-drawer .offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-block: calc(16px + env(safe-area-inset-top)) 16px;
}
.cc-drawer .offcanvas-header .btn-close {
    margin: 0;
    flex: 0 0 auto;
    padding: 6px;
}
.cc-drawer-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Modals: header title + close never collide (esp. RTL) ---- */
.cc-modal .modal-content { position: relative; }
.cc-modal .modal-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
    padding-inline-end: 52px;
    position: relative;
}
.cc-modal .modal-header > :first-child { min-width: 0; flex: 1 1 auto; }
.cc-modal .modal-title { overflow-wrap: anywhere; }
.cc-modal .modal-header .btn-close {
    position: absolute;
    inset-block-start: 16px;
    inset-inline-end: 18px;
    inset-inline-start: auto;
    margin: 0;
    z-index: 2;
}
.cc-modal .modal-body .btn-close { position: static; margin-inline-start: auto; }
.cc-modal .modal-body { padding-inline: 20px; }

/* ---- Inputs: long placeholders stay tidy inside the box ---- */
.cc-input, .cc-select,
.cc-modal .form-control, .cc-modal .form-select { text-overflow: ellipsis; }
.cc-modal .form-control, .cc-modal .form-select { padding-inline: 13px; }

/* ============================================================
   RTL refinements (Arabic). Logical props carry most of the
   layout; these handle the bits that need explicit care.
   ============================================================ */

/* Prices, the discount <del>, badges & qty numbers stay LTR so
   "$9" / "$45" never reorder around the currency glyph. */
body[dir="rtl"] .cc-price,
body[dir="rtl"] .cc-price-old,
body[dir="rtl"] .cc-cart-item-price,
body[dir="rtl"] .cc-cart-total-num,
body[dir="rtl"] .cc-qty-num,
body[dir="rtl"] .cc-gift-count,
body[dir="rtl"] .cc-count {
    direction: ltr;
    unicode-bidi: isolate;
}
body[dir="rtl"] .cc-price-wrap { align-items: flex-end; }

body[dir="rtl"] .cc-eyebrow .num,
body[dir="rtl"] .cc-tile-kicker { unicode-bidi: isolate; }

body[dir="rtl"] .cc-sechead-link,
body[dir="rtl"] .cc-crumb { direction: rtl; }
body[dir="rtl"] .cc-crumb-cur { max-width: 60vw; }

body[dir="rtl"] .cc-select { background-position: left .75rem center; }

body[dir="rtl"] .cc-tile-cta { flex-direction: row-reverse; justify-content: flex-end; }

body[dir="rtl"] .cc-trust-item + .cc-trust-item::before { inset-inline-start: -2px; }
