/* ==========================================================================
   TINY TOT — ScaanMe store theme "tinytot-baby-store"
   Gentle newborn essentials · powder-cloud #FBF7FB / soft-plum-ink #3A3340
   baby-blue #8AB6E0 + blush #F0A6C2 (disciplined pastel pair)
   Quicksand display · Mulish body · Almarai (Arabic, rounded)
   Signature: cloud-and-cotton rounded-everything geometry + "Float bob"
   (hero cloud/star gently bobs, ≤2 elements) + toy-like squish-scale on tap.
   Mobile-first · logical properties (RTL-safe) · prefers-reduced-motion aware
   ========================================================================== */

:root {
    --tt-bg: var(--tk-bg, #FBF7FB);
    --tt-panel: #FFFFFF;
    --tt-txt: var(--tk-text, #3A3340);
    --tt-txt-soft: color-mix(in srgb, var(--tk-text, #3A3340), var(--tk-bg, #FBF7FB) 12%);
    --tt-muted: color-mix(in srgb, var(--tk-text, #3A3340), var(--tk-bg, #FBF7FB) 38%);
    --tt-line: color-mix(in srgb, var(--tk-bg, #FBF7FB), #000 8%);
    --tt-line-soft: rgb(from var(--tk-text, #3A3340) r g b / .06);
    --tt-line-strong: rgb(from var(--tk-text, #3A3340) r g b / .18);
    --tt-accent: var(--tk-primary, #8AB6E0);        /* baby-blue */
    --tt-accent-deep: color-mix(in srgb, var(--tk-primary, #8AB6E0), #000 18%);
    --tt-accent2: var(--tk-secondary, #F0A6C2);       /* blush */
    --tt-accent2-deep: color-mix(in srgb, var(--tk-secondary, #F0A6C2), #000 18%);
    --tt-blue-wash: color-mix(in srgb, var(--tk-primary, #8AB6E0), #fff 78%);
    --tt-rose-wash: color-mix(in srgb, var(--tk-secondary, #F0A6C2), #fff 80%);
    --tt-cloud: color-mix(in srgb, var(--tk-bg, #FBF7FB), #000 4%);         /* faint cloud surface */
    --tt-success: var(--tk-success, #5BBF8A);          /* semantic success green */
    --tt-shadow-ink: var(--tk-shadow, #5F4F6E);        /* soft-plum shadow tint */
    --tt-r: 18px;                /* rounded-everything */
    --tt-r-sm: 12px;
    --tt-r-pill: 999px;
    --tt-shadow: 0 14px 34px rgb(from var(--tt-shadow-ink) r g b / .10);
    --tt-shadow-soft: 0 6px 18px rgb(from var(--tt-shadow-ink) r g b / .07);
    --tt-font-d: var(--tk-font-header, 'Quicksand'), 'Baloo 2', 'Almarai', system-ui, sans-serif;
    --tt-font-b: var(--tk-font-content, 'Mulish'), 'Almarai', system-ui, sans-serif;
    --tt-ease: cubic-bezier(.34, 1.56, .64, 1);   /* gentle springy ease */
    --tt-ease-soft: cubic-bezier(.22, .61, .36, 1);
}

html { scroll-behavior: smooth; }

body {
    background: var(--tt-bg) !important;
    color: var(--tt-txt);
    font-family: var(--tt-font-b);
    font-weight: 400;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    padding-block-end: 76px; /* mobile dock clearance */
}

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

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

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

/* ---------- Type ------------------------------------------------------- */
.tt-display {
    font-family: var(--tt-font-d);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.15;
    color: var(--tt-txt);
    margin: 0;
}

.tt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--tt-font-d);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tt-accent-deep);
}
.tt-eyebrow::before {
    content: "";
    width: 18px; height: 18px; flex: 0 0 auto;
    background:
        radial-gradient(circle at 30% 60%, var(--tt-accent2) 0 5px, transparent 5px),
        radial-gradient(circle at 62% 50%, var(--tt-accent) 0 6px, transparent 6px),
        radial-gradient(circle at 82% 62%, var(--tt-accent2) 0 4px, transparent 4px);
    border-radius: 50%;
}

.tt-sechead { display: flex; flex-direction: column; gap: 7px; margin-block-end: 18px; }
.tt-sechead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.tt-sechead .tt-display { font-size: clamp(1.5rem, 5vw, 2.05rem); }
.tt-sechead-link {
    font-family: var(--tt-font-d);
    font-size: 12px; font-weight: 700; letter-spacing: .04em;
    color: var(--tt-accent-deep); text-decoration: none; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; border-radius: var(--tt-r-pill);
    background: var(--tt-blue-wash);
    transition: background .25s var(--tt-ease-soft), color .25s var(--tt-ease-soft);
}
.tt-sechead-link:hover { background: var(--tt-accent); color: #fff; }
.tt-count {
    font-family: var(--tt-font-d); font-size: 12px; font-weight: 700;
    color: var(--tt-muted); white-space: nowrap;
    padding: 6px 12px; border-radius: var(--tt-r-pill); background: var(--tt-cloud);
}

/* ---------- Buttons / forms -------------------------------------------- */
.tt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding-inline: 22px;
    border: 2px solid transparent; border-radius: var(--tt-r-pill);
    font-family: var(--tt-font-d); font-size: 14px; font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .25s var(--tt-ease-soft), color .25s var(--tt-ease-soft),
        border-color .25s var(--tt-ease-soft), transform .2s var(--tt-ease), box-shadow .25s var(--tt-ease-soft);
}
.tt-btn:active { transform: scale(.95); }
.tt-btn-ink { background: var(--tt-accent); color: #fff !important; border-color: var(--tt-accent); box-shadow: var(--tt-shadow-soft); }
.tt-btn-ink:hover { background: var(--tt-accent-deep); border-color: var(--tt-accent-deep); color: #fff !important; }
.tt-btn-rose { background: var(--tt-accent2); color: #5A2C40 !important; border-color: var(--tt-accent2); box-shadow: var(--tt-shadow-soft); }
.tt-btn-rose:hover { background: var(--tt-accent2-deep); border-color: var(--tt-accent2-deep); color: #fff !important; }
.tt-btn-ghost { background: var(--tt-panel); color: var(--tt-txt) !important; border-color: var(--tt-line-strong); }
.tt-btn-ghost:hover { border-color: var(--tt-accent); color: var(--tt-accent-deep) !important; background: var(--tt-blue-wash); }
.tt-btn-paper { background: #fff; color: var(--tt-txt) !important; border-color: #fff; box-shadow: var(--tt-shadow-soft); }
.tt-btn-paper:hover { background: var(--tt-rose-wash); border-color: var(--tt-rose-wash); color: var(--tt-accent2-deep) !important; }
.tt-btn-block { width: 100%; }

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

/* ---------- Topbar ------------------------------------------------------ */
.tt-topbar {
    position: sticky; top: 0; z-index: 1030;
    background: rgb(from var(--tk-bg, #FBF7FB) r g b / .9);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-block-end: 1px solid var(--tt-line);
}
.tt-topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.tt-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.tt-brand-logo {
    width: 40px; height: 40px; object-fit: cover; flex-shrink: 0;
    border-radius: 50%; border: 2px solid var(--tt-panel); background: var(--tt-cloud);
    box-shadow: 0 0 0 2px var(--tt-blue-wash);
}
.tt-brand-name {
    font-family: var(--tt-font-d); font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--tt-txt);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tt-topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tt-cart-trigger {
    position: relative; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--tt-line); border-radius: 50%;
    color: var(--tt-txt); background: var(--tt-panel); cursor: pointer; text-decoration: none;
    transition: background .25s var(--tt-ease-soft), color .25s var(--tt-ease-soft), border-color .25s var(--tt-ease-soft);
}
.tt-cart-trigger:hover { background: var(--tt-accent); color: #fff; border-color: var(--tt-accent); }
.tt-cart-trigger svg { width: 21px; height: 21px; }
.tt-cart-badge {
    position: absolute; top: -4px; inset-inline-end: -4px;
    min-width: 19px; height: 19px; padding-inline: 5px;
    display: flex; align-items: center; justify-content: center;
    background: var(--tt-accent2); color: #fff;
    border: 2px solid var(--tt-bg);
    border-radius: var(--tt-r-pill); font-size: 10px; font-weight: 700; line-height: 1;
}

/* ---------- Notes (session alerts) -------------------------------------- */
.tt-note {
    border: 1px solid var(--tt-line); border-inline-start: 4px solid var(--tt-accent);
    background: var(--tt-panel); border-radius: var(--tt-r-sm);
    padding: 14px 16px; margin-block: 14px 0; font-size: 14.5px;
    box-shadow: var(--tt-shadow-soft);
}
.tt-note-success { border-inline-start-color: var(--tt-success); }
.tt-note-danger { border-inline-start-color: var(--tt-accent2-deep); }

/* ---------- Hero (01 — Gentle from day one) ----------------------------- */
.tt-hero {
    position: relative; margin-block-start: 18px;
    border-radius: var(--tt-r);
    overflow: hidden; background: var(--tt-blue-wash);
    box-shadow: var(--tt-shadow);
    isolation: isolate;
}
.tt-hero-rail {
    display: flex; height: clamp(360px, 58vh, 540px);
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
}
.tt-hero-rail::-webkit-scrollbar { display: none; }
.tt-hero-slide { flex: 0 0 100%; scroll-snap-align: center; height: 100%; }
.tt-hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-hero-scrim {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(to top, rgb(from var(--tk-text, #3A3340) r g b / .58) 0%, rgb(from var(--tk-text, #3A3340) r g b / .14) 48%, rgb(from var(--tk-text, #3A3340) r g b / 0) 74%);
}
/* Float-bob signature: a cloud + a star drift gently up-down (≤2 elements). */
.tt-hero-float {
    position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden;
}
.tt-cloud-bob, .tt-star-bob { position: absolute; will-change: transform; }
.tt-cloud-bob {
    inset-inline-end: 7%; top: 14%;
    width: clamp(74px, 18vw, 128px); height: clamp(46px, 11vw, 78px);
    background: rgba(255, 255, 255, .92);
    border-radius: 50%;
    box-shadow:
        -34% 18% 0 -6% rgba(255, 255, 255, .92),
        34% 18% 0 -10% rgba(255, 255, 255, .92);
    filter: drop-shadow(0 8px 18px rgb(from var(--tt-shadow-ink) r g b / .14));
    animation: tt-bob 3.2s var(--tt-ease-soft) infinite alternate;
}
.tt-star-bob {
    inset-inline-start: 9%; top: 22%;
    width: clamp(26px, 6vw, 40px); height: clamp(26px, 6vw, 40px);
    background: var(--tt-accent2);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 6px 12px rgb(from var(--tk-secondary, #F0A6C2) r g b / .35));
    animation: tt-bob 3.6s var(--tt-ease-soft) infinite alternate;
    animation-delay: .5s;
}
@keyframes tt-bob { from { transform: translateY(0); } to { transform: translateY(-14px); } }

.tt-hero-cap { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; padding: 24px 20px 28px; color: #fff; }
.tt-hero-cap .tt-eyebrow { color: #fff; }
.tt-hero-cap .tt-eyebrow::before { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
.tt-hero-title {
    font-family: var(--tt-font-d); font-weight: 700;
    font-size: clamp(1.85rem, 7vw, 3.1rem); line-height: 1.08;
    margin: 12px 0 8px; max-width: 16ch; color: #fff;
    text-shadow: 0 2px 18px rgb(from var(--tk-text, #3A3340) r g b / .4);
}
.tt-hero-sub { font-size: 15px; color: rgba(255, 255, 255, .92); margin: 0 0 18px; max-width: 34ch; text-shadow: 0 1px 8px rgb(from var(--tk-text, #3A3340) r g b / .35); }
.tt-hero-cap .tt-btn { pointer-events: auto; }

/* ---------- Trust / safety chips strip (Safety/organic chips) ----------- */
.tt-trust {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin-block: 26px 8px;
}
.tt-trust-item {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--tt-r-pill);
    background: var(--tt-panel); border: 1px solid var(--tt-line);
    font-family: var(--tt-font-d); font-size: 12.5px; font-weight: 700; color: var(--tt-txt-soft);
    box-shadow: var(--tt-shadow-soft);
}
.tt-trust-item i { font-size: 17px; color: var(--tt-accent); }
.tt-trust-item:nth-child(even) i { color: var(--tt-accent2-deep); }

/* ---------- Age filter rail (Newborn · 0-6m · 6-12m · Toddler) ---------- */
.tt-agefilter { margin-block: 24px; }
.tt-age-rail {
    display: flex; gap: 10px; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-block: 4px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.tt-age-rail::-webkit-scrollbar { display: none; }
.tt-age-chip {
    flex: 0 0 auto; scroll-snap-align: start;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 18px; border-radius: var(--tt-r-pill);
    background: var(--tt-panel); border: 1.5px solid var(--tt-line);
    font-family: var(--tt-font-d); font-size: 13.5px; font-weight: 700;
    color: var(--tt-txt); text-decoration: none; white-space: nowrap;
    transition: background .22s var(--tt-ease-soft), color .22s var(--tt-ease-soft),
        border-color .22s var(--tt-ease-soft), transform .2s var(--tt-ease);
}
.tt-age-chip i { font-size: 16px; color: var(--tt-accent); }
.tt-age-chip:hover { border-color: var(--tt-accent); color: var(--tt-accent-deep); transform: translateY(-2px); }
.tt-age-chip.is-active { background: var(--tt-accent); border-color: var(--tt-accent); color: #fff; }
.tt-age-chip.is-active i { color: #fff; }

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

/* ---------- Category tiles (Catalog collections) ------------------------- */
.tt-tile {
    position: relative; flex: 0 0 min(78%, 320px); aspect-ratio: 4 / 3;
    border-radius: var(--tt-r);
    overflow: hidden; scroll-snap-align: start;
    text-decoration: none; background: var(--tt-cloud); display: block;
    box-shadow: var(--tt-shadow-soft);
    transition: transform .3s var(--tt-ease), box-shadow .3s var(--tt-ease-soft);
}
.tt-tile:hover { transform: translateY(-4px); box-shadow: var(--tt-shadow); }
.tt-tile-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--tt-ease-soft); }
.tt-tile:hover .tt-tile-img { transform: scale(1.05); }
.tt-tile-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgb(from var(--tk-text, #3A3340) r g b / .62), rgb(from var(--tk-text, #3A3340) r g b / 0) 58%); pointer-events: none; }
.tt-tile-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 16px; display: flex; flex-direction: column; gap: 3px; color: #fff; }
.tt-tile-kicker { font-family: var(--tt-font-d); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.tt-tile-name { font-family: var(--tt-font-d); font-weight: 700; font-size: clamp(1.15rem, 4vw, 1.45rem); line-height: 1.2; }
.tt-tile-cta {
    display: inline-flex; align-items: center; gap: 6px; margin-block-start: 4px;
    font-family: var(--tt-font-d); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: #fff;
}
.tt-tile-cta i { font-size: 15px; transition: transform .3s var(--tt-ease); }
.tt-tile:hover .tt-tile-cta i { transform: translateX(4px); }
body[dir="rtl"] .tt-tile-cta i { transform: scaleX(-1); }
body[dir="rtl"] .tt-tile:hover .tt-tile-cta i { transform: scaleX(-1) translateX(4px); }

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

/* ---------- Category pill rail (filter view) ------------------------------ */
.tt-cathead { margin-block-start: 22px; }
.tt-cat-rail { gap: 8px; margin-block: 14px 4px; }
.tt-cat-link {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    border: 1.5px solid var(--tt-line); border-radius: var(--tt-r-pill);
    padding: 9px 14px; background: var(--tt-panel);
    font-family: var(--tt-font-d); font-size: 13px; font-weight: 700;
    color: var(--tt-txt); text-decoration: none; white-space: nowrap;
    scroll-snap-align: start;
    transition: border-color .2s var(--tt-ease-soft), background .2s var(--tt-ease-soft), color .2s var(--tt-ease-soft);
}
.tt-cat-link img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.tt-cat-link:hover { border-color: var(--tt-accent); color: var(--tt-accent-deep); }
.tt-cat-link.is-active { background: var(--tt-accent); color: #fff; border-color: var(--tt-accent); }

/* ---------- Gift-bundle block (Welcome Baby Box) ------------------------- */
.tt-bundle {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 16px;
    border-radius: var(--tt-r); padding: 26px 22px;
    background: linear-gradient(135deg, var(--tt-blue-wash) 0%, var(--tt-rose-wash) 100%);
    box-shadow: var(--tt-shadow-soft);
}
.tt-bundle::after {
    content: ""; position: absolute; inset-inline-end: -30px; top: -30px;
    width: 130px; height: 130px; border-radius: 50%;
    background: rgba(255, 255, 255, .5); pointer-events: none;
}
.tt-bundle-tag {
    align-self: flex-start;
    font-family: var(--tt-font-d); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--tt-accent2-deep); background: #fff; padding: 6px 14px; border-radius: var(--tt-r-pill);
    position: relative; z-index: 1;
}
.tt-bundle-title { font-family: var(--tt-font-d); font-weight: 700; font-size: clamp(1.4rem, 5vw, 1.9rem); line-height: 1.15; margin: 0; color: var(--tt-txt); position: relative; z-index: 1; }
.tt-bundle-sub { font-size: 14.5px; color: var(--tt-txt-soft); margin: 0; max-width: 44ch; position: relative; z-index: 1; }
.tt-bundle-feats { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.tt-bundle-feat {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--tt-font-d); font-size: 12.5px; font-weight: 700; color: var(--tt-txt-soft);
    background: rgba(255, 255, 255, .72); padding: 7px 13px; border-radius: var(--tt-r-pill);
}
.tt-bundle-feat i { font-size: 15px; color: var(--tt-accent-deep); }
.tt-bundle .tt-btn { align-self: flex-start; position: relative; z-index: 1; }

/* ---------- Subscription (diaper auto-ship) ------------------------------ */
.tt-sub {
    display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
    border-radius: var(--tt-r); padding: 24px 22px;
    background: var(--tt-panel); border: 2px dashed var(--tt-accent);
    box-shadow: var(--tt-shadow-soft);
}
.tt-sub-icon {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--tt-blue-wash); color: var(--tt-accent-deep); font-size: 26px;
}
.tt-sub-title { font-family: var(--tt-font-d); font-weight: 700; font-size: 1.3rem; margin: 0; color: var(--tt-txt); }
.tt-sub-sub { font-size: 14.5px; color: var(--tt-txt-soft); margin: 0; max-width: 46ch; }
.tt-sub-steps { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.tt-sub-step { display: inline-flex; align-items: center; gap: 8px; font-family: var(--tt-font-d); font-size: 13px; font-weight: 700; color: var(--tt-txt-soft); }
.tt-sub-step span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tt-accent2); color: #fff; font-size: 12px; }

/* ---------- Reviews scroll ----------------------------------------------- */
.tt-reviewrail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 4px; scrollbar-width: none; -ms-overflow-style: none; }
.tt-reviewrail::-webkit-scrollbar { display: none; }
.tt-review {
    flex: 0 0 min(82%, 340px); scroll-snap-align: start;
    display: flex; flex-direction: column; gap: 10px;
    border-radius: var(--tt-r); padding: 20px;
    background: var(--tt-panel); border: 1px solid var(--tt-line);
    box-shadow: var(--tt-shadow-soft);
}
.tt-review-stars { color: var(--tt-accent2-deep); font-size: 14px; letter-spacing: 2px; }
.tt-review-text { font-size: 14.5px; line-height: 1.6; color: var(--tt-txt-soft); margin: 0; }
.tt-review-by { font-family: var(--tt-font-d); font-size: 13px; font-weight: 700; color: var(--tt-txt); display: flex; align-items: center; gap: 8px; }
.tt-review-av { width: 30px; height: 30px; border-radius: 50%; background: var(--tt-blue-wash); display: inline-flex; align-items: center; justify-content: center; color: var(--tt-accent-deep); font-size: 14px; }

/* ---------- Product cards (squish-scale on tap) -------------------------- */
.tt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tt-prodrail .tt-card { flex: 0 0 min(62%, 250px); scroll-snap-align: start; }

.tt-card {
    display: flex; flex-direction: column;
    background: var(--tt-panel);
    border: 1px solid var(--tt-line); border-radius: var(--tt-r);
    overflow: hidden;
    box-shadow: var(--tt-shadow-soft);
    transition: transform .18s var(--tt-ease), box-shadow .3s var(--tt-ease-soft);
}
.tt-card:hover { box-shadow: var(--tt-shadow); transform: translateY(-3px); }
.tt-card:active { transform: scale(.97); }      /* toy-like squish on tap */
.tt-card-media {
    position: relative; display: block; aspect-ratio: 1 / 1;
    overflow: hidden; background: var(--tt-cloud);
}
.tt-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s var(--tt-ease-soft), transform .6s var(--tt-ease-soft); }
.tt-card-img-alt { opacity: 0; }
.tt-card:hover .tt-card-img-alt { opacity: 1; }
.tt-card:hover .tt-card-media .tt-card-img:only-child { transform: scale(1.06); }
.tt-flag {
    position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
    background: var(--tt-accent2); color: #fff;
    font-family: var(--tt-font-d); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 5px 11px; border-radius: var(--tt-r-pill);
}
.tt-flag-out { background: var(--tt-muted); }
.tt-card-body { display: flex; flex-direction: column; flex: 1; padding: 13px 14px 14px; gap: 3px; }
.tt-card-link { text-decoration: none; color: inherit; min-width: 0; }
.tt-card-name {
    font-family: var(--tt-font-d); font-weight: 700; font-size: 15px; line-height: 1.3;
    margin: 0; color: var(--tt-txt);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tt-card-meta {
    font-size: 12.5px; color: var(--tt-muted); margin: 2px 0 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tt-card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-block-start: auto; padding-block-start: 10px;
}
.tt-price-wrap { display: flex; flex-direction: column; min-width: 0; }
.tt-price { font-family: var(--tt-font-d); font-weight: 700; font-size: 15.5px; color: var(--tt-accent-deep); }
.tt-price-old { font-size: 12px; color: var(--tt-muted); text-decoration: line-through; }
.tt-add {
    flex-shrink: 0; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--tt-accent); color: #fff !important;
    border: none; border-radius: 50%;
    cursor: pointer; text-decoration: none; font-size: 19px;
    transition: background .25s var(--tt-ease-soft), transform .18s var(--tt-ease);
}
.tt-add:hover { background: var(--tt-accent-deep); }
.tt-add:active { transform: scale(.85); }

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

/* ---------- Pagination ------------------------------------------------------ */
.tt-pagination { margin-block: 26px 8px; }
.tt-pagination .justify-content-end { justify-content: center !important; }
.tt-pagination .pagination { display: flex; gap: 6px; margin: 0; flex-wrap: wrap; justify-content: center; }
.tt-pagination .page-link {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding-inline: 8px;
    border: 1.5px solid var(--tt-line); border-radius: var(--tt-r-pill);
    background: var(--tt-panel); color: var(--tt-txt);
    font-family: var(--tt-font-d); font-weight: 700; box-shadow: none;
    transition: border-color .2s var(--tt-ease-soft), background .2s var(--tt-ease-soft), color .2s var(--tt-ease-soft);
}
.tt-pagination .page-link:hover { border-color: var(--tt-accent); color: var(--tt-accent-deep); }
.tt-pagination .page-item.active .page-link { background: var(--tt-accent); border-color: var(--tt-accent); color: #fff; }
.tt-pagination .page-item.disabled .page-link { color: var(--tt-muted); background: transparent; }

/* ---------- Empty states (cloud mark) --------------------------- */
.tt-empty {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    text-align: center; padding: 52px 18px; margin-block: 22px;
    background: var(--tt-panel);
    border: 2px dashed var(--tt-line-strong); border-radius: var(--tt-r);
}
.tt-empty-mark {
    position: relative; width: 62px; height: 40px;
    background: var(--tt-blue-wash); border-radius: 50%;
    box-shadow: -22px 7px 0 -4px var(--tt-blue-wash), 22px 7px 0 -7px var(--tt-blue-wash);
    margin-block: 8px 14px;
}
.tt-empty-mark::after {
    content: ""; position: absolute; inset-inline-start: 50%; top: 50%; translate: -50% -50%;
    width: 16px; height: 16px;
    background: var(--tt-accent2);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.tt-empty-title { font-family: var(--tt-font-d); font-weight: 700; font-size: 20px; margin: 0; color: var(--tt-txt); }
.tt-empty-sub { color: var(--tt-muted); font-size: 14px; margin: 0; max-width: 42ch; }
.tt-empty .tt-btn { margin-block-start: 8px; }

/* ---------- Cart drawer --------------------------------------------------- */
#offcanvasEnd.tt-drawer {
    background: var(--tt-bg); color: var(--tt-txt);
    width: min(420px, 94vw);
    border-inline-start: 1px solid var(--tt-line);
}
.tt-drawer .offcanvas-header { padding: 18px; border-block-end: 1px solid var(--tt-line); }
.tt-drawer-title { font-family: var(--tt-font-d); font-weight: 700; font-size: 19px; color: var(--tt-txt); margin: 0; }
.tt-drawer .offcanvas-body { padding: 16px 18px; }

.tt-cart-item {
    display: flex; gap: 12px; margin-block-end: 10px; padding: 10px;
    background: var(--tt-panel);
    border: 1px solid var(--tt-line); border-radius: var(--tt-r-sm);
    box-shadow: var(--tt-shadow-soft);
}
.tt-cart-item-img { width: 72px; height: 72px; object-fit: cover; flex-shrink: 0; border-radius: var(--tt-r-sm); background: var(--tt-cloud); }
.tt-cart-item-info { flex: 1; min-width: 0; }
.tt-cart-item-name {
    font-family: var(--tt-font-d); font-weight: 700; font-size: 14.5px;
    color: var(--tt-txt); margin: 0 0 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tt-cart-item-sub {
    display: block; font-size: 12px; color: var(--tt-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tt-cart-item-sub.sm-cart-variants { color: var(--tt-accent-deep); font-weight: 700; }
.tt-cart-item-price { margin: 6px 0 9px; font-family: var(--tt-font-d); font-size: 14px; font-weight: 700; color: var(--tt-accent2-deep); }
.tt-cart-item-actions { display: flex; align-items: center; gap: 6px; }
.tt-qty-btn {
    width: 32px; height: 32px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--tt-bg); color: var(--tt-txt);
    border: 1px solid var(--tt-line); border-radius: 50%;
    cursor: pointer; transition: background .2s var(--tt-ease-soft), border-color .2s var(--tt-ease-soft);
}
.tt-qty-btn:hover { border-color: var(--tt-accent); background: var(--tt-blue-wash); }
.tt-qty-btn svg { width: 15px; height: 15px; }
.tt-qty-num { min-width: 28px; text-align: center; font-family: var(--tt-font-d); font-weight: 700; font-size: 14px; color: var(--tt-txt); }
.tt-qty-remove { margin-inline-start: auto; color: var(--tt-accent2-deep); border-color: rgb(from var(--tk-secondary, #F0A6C2) r g b / .4); }
.tt-qty-remove:hover { background: var(--tt-rose-wash); border-color: var(--tt-accent2); }

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

.tt-drawer-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--tt-line); }
.tt-cart-total {
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--tt-font-d); font-weight: 700; font-size: 17px;
    color: var(--tt-txt); margin: 0 0 12px;
}
.tt-cart-total-num { color: var(--tt-accent-deep); font-size: 19px; }
.tt-place-order {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    height: 50px; width: 100%;
    background: var(--tt-accent); color: #fff !important;
    border-radius: var(--tt-r-pill); cursor: pointer; text-decoration: none;
    font-family: var(--tt-font-d); font-size: 14.5px; font-weight: 700;
    box-shadow: var(--tt-shadow-soft);
    transition: background .25s var(--tt-ease-soft), transform .2s var(--tt-ease);
}
.tt-place-order:hover { background: var(--tt-accent-deep); color: #fff !important; }
.tt-place-order:active { transform: scale(.97); }
.tt-place-order i { font-size: 18px; }

/* ---------- Modals ------------------------------------------------------------ */
.tt-modal .modal-content {
    position: relative;
    background: var(--tt-panel); color: var(--tt-txt);
    border: 1px solid var(--tt-line); border-radius: var(--tt-r);
    box-shadow: 0 30px 70px rgb(from var(--tt-shadow-ink) r g b / .22);
}
.tt-modal .modal-header { padding: 18px 20px; border-block-end: 1px solid var(--tt-line); align-items: flex-start; }
.tt-modal .modal-title { font-family: var(--tt-font-d); font-weight: 700; font-size: 19px; }
.tt-modal-sub { display: block; margin-block-start: 2px; font-size: 12.5px; color: var(--tt-muted); }
.tt-modal .modal-footer { border-block-start: 1px solid var(--tt-line); gap: 8px; }
.tt-modal .form-label {
    font-family: var(--tt-font-d); font-size: 12.5px; font-weight: 700; color: var(--tt-txt-soft);
}
.tt-modal .form-control, .tt-modal .form-select {
    border: 1.5px solid var(--tt-line); border-radius: var(--tt-r-pill);
    background: var(--tt-bg); color: var(--tt-txt);
}
.tt-modal .form-control:focus, .tt-modal .form-select:focus {
    border-color: var(--tt-accent); box-shadow: 0 0 0 4px var(--tt-blue-wash);
}
.tt-modal textarea.form-control { border-radius: var(--tt-r-sm); }
.tt-modal .form-check-input:checked { background-color: var(--tt-accent); border-color: var(--tt-accent); }
.tt-modal .form-check-input:focus { border-color: var(--tt-accent); box-shadow: 0 0 0 4px var(--tt-blue-wash); }

/* ---------- Single product ------------------------------------------------------ */
.tt-crumb {
    display: flex; align-items: center; gap: 8px; margin-block: 18px 0;
    font-family: var(--tt-font-d); font-size: 12.5px; font-weight: 700; color: var(--tt-muted);
}
.tt-crumb a { color: var(--tt-accent-deep); text-decoration: none; }
.tt-crumb a:hover { color: var(--tt-accent2-deep); }
.tt-crumb-sep { color: var(--tt-line-strong); }
.tt-crumb-cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }

.tt-product { display: grid; grid-template-columns: 1fr; gap: 24px; margin-block: 20px 10px; }
.tt-gallery { min-width: 0; }
.tt-gallery-main {
    display: block; position: relative; aspect-ratio: 1 / 1;
    border-radius: var(--tt-r);
    overflow: hidden; background: var(--tt-cloud);
    box-shadow: var(--tt-shadow-soft);
}
.tt-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-thumb-rail { gap: 10px; margin-block-start: 10px; }
.tt-thumb {
    flex: 0 0 72px; aspect-ratio: 1 / 1; display: block;
    border: 1.5px solid var(--tt-line); border-radius: var(--tt-r-sm);
    overflow: hidden; background: var(--tt-cloud); scroll-snap-align: start;
    transition: border-color .2s var(--tt-ease-soft);
}
.tt-thumb:hover { border-color: var(--tt-accent); }
.tt-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

.tt-product-name {
    font-family: var(--tt-font-d); font-weight: 700;
    font-size: clamp(1.6rem, 5.4vw, 2.2rem); line-height: 1.14;
    margin: 10px 0 6px; color: var(--tt-txt);
}
.tt-product-sub { color: var(--tt-muted); font-size: 15px; margin: 0 0 14px; }
.tt-product-price {
    display: flex; align-items: baseline; gap: 12px;
    margin-block: 4px 16px; padding-block-end: 16px;
    border-block-end: 1px solid var(--tt-line);
}
.tt-product-price .tt-price { font-size: 24px; }
.tt-product-price .tt-price-old { font-size: 15px; }
.tt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 18px; }
.tt-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--tt-font-d); font-size: 11px; font-weight: 700; letter-spacing: .04em;
    border: 1px solid var(--tt-line); border-radius: var(--tt-r-pill);
    padding: 7px 13px; color: var(--tt-txt-soft); background: var(--tt-panel);
}
.tt-chip-accent { color: var(--tt-accent2-deep); border-color: rgb(from var(--tk-secondary, #F0A6C2) r g b / .4); background: var(--tt-rose-wash); }
.tt-concierge-hint {
    display: flex; align-items: flex-start; gap: 8px;
    margin-block: 14px 18px;
    font-size: 13px; line-height: 1.5; color: var(--tt-muted);
}
.tt-concierge-hint i { font-size: 17px; color: #25d366; flex-shrink: 0; margin-block-start: 1px; }

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

/* Share include — re-skin to soft pastel */
.product-share-card .share-title {
    font-family: var(--tt-font-d); font-size: 13px; font-weight: 700; letter-spacing: .04em;
    color: var(--tt-muted);
}
.product-share-card .share-icon { border-color: var(--tt-line); background: var(--tt-panel); }

/* ---------- Variant picker re-skin (toy-like rounded chips) -------------- */
.sm-variants { margin-block: 18px; gap: 14px; }
.sm-variant-label { font-family: var(--tt-font-d); font-size: 13px; font-weight: 700; color: var(--tt-txt); opacity: 1; }
.sm-variant-opt {
    border: 1.5px solid var(--tt-line); border-radius: var(--tt-r-pill);
    padding: 8px 18px; font-family: var(--tt-font-d); font-size: 13px; font-weight: 700;
    background: var(--tt-panel); color: var(--tt-txt-soft); opacity: 1;
    transition: background .18s var(--tt-ease-soft), color .18s var(--tt-ease-soft),
        border-color .18s var(--tt-ease-soft), transform .18s var(--tt-ease);
}
.sm-variant-opt:hover { border-color: var(--tt-accent); color: var(--tt-accent-deep); opacity: 1; }
.sm-variant-opt:active { transform: scale(.92); }
.sm-variant-opt.is-selected {
    background: var(--tt-accent) !important; border-color: var(--tt-accent); color: #fff;
    border-width: 1.5px; opacity: 1;
}
.sm-variant-opt:focus-visible { outline: 2px solid var(--tt-accent); outline-offset: 2px; }

/* ---------- Policy page ----------------------------------------------------------- */
.tt-policy { padding-block: 28px 10px; max-width: 860px; }
.tt-policy .tt-display {
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    margin-block: 10px 16px; padding-block-end: 16px;
    border-block-end: 1px solid var(--tt-line);
}

/* ---------- Footer ------------------------------------------------------------ */
.tt-footer {
    flex-shrink: 0;
    background: var(--tt-panel); color: var(--tt-txt-soft);
    margin-block-start: 52px; padding-block: 38px 26px;
    border-block-start: 1px solid var(--tt-line);
    position: relative;
}
.tt-footer::before {
    content: ""; position: absolute; inset-inline: 0; top: -1px; height: 5px;
    background: linear-gradient(90deg, var(--tt-accent) 0%, var(--tt-accent2) 100%);
}
.tt-footer a { text-decoration: none; transition: color .2s var(--tt-ease-soft); }
.tt-footer-top {
    display: flex; flex-direction: column; gap: 22px;
    padding-block-end: 24px; border-block-end: 1px solid var(--tt-line);
}
.tt-footer-brand { min-width: 0; }
.tt-footer-wordmark { display: block; font-family: var(--tt-font-d); font-weight: 700; font-size: 24px; letter-spacing: -.01em; color: var(--tt-txt); }
.tt-footer-tag { font-size: 13.5px; color: var(--tt-muted); margin: 6px 0 0; max-width: 48ch; }
.tt-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tt-social a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--tt-line); border-radius: 50%;
    color: var(--tt-txt-soft); font-size: 17px; background: var(--tt-bg);
    transition: background .2s var(--tt-ease-soft), color .2s var(--tt-ease-soft), border-color .2s var(--tt-ease-soft);
}
.tt-social a:hover { border-color: var(--tt-accent); background: var(--tt-blue-wash); color: var(--tt-accent-deep); }
.tt-footer-links {
    display: flex; flex-wrap: wrap; gap: 9px 22px;
    padding-block: 18px; border-block-end: 1px solid var(--tt-line);
    font-family: var(--tt-font-d); font-size: 13px; font-weight: 700;
}
.tt-footer-links a { color: var(--tt-muted); }
.tt-footer-links a:hover { color: var(--tt-accent-deep); }
.tt-footer-base {
    display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between;
    padding-block-start: 18px; font-size: 12.5px; color: var(--tt-muted);
}
.tt-footer-base a { color: var(--tt-accent-deep); }
.tt-footer-base a:hover { color: var(--tt-accent2-deep); }
.tt-footer-base i { color: var(--tt-accent2); }

/* ---------- Mobile dock --------------------------------------------------------------- */
.tt-dock {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 1040;
    display: flex; justify-content: space-around; align-items: stretch;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-block-start: 1px solid var(--tt-line);
    padding-block: 9px calc(9px + env(safe-area-inset-bottom));
}
.tt-dock a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--tt-muted); text-decoration: none; cursor: pointer;
    font-family: var(--tt-font-d); font-size: 10.5px; font-weight: 700;
}
.tt-dock a i { font-size: 21px; }
.tt-dock a.is-active, .tt-dock a:hover { color: var(--tt-accent-deep); }

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

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

/* ---------- >=760px layer ----------------------------------------------------------------- */
@media (min-width: 760px) {
    body { padding-block-end: 0; }
    .tt-dock { display: none; }
    .tt-shell { padding-inline: 28px; }
    .tt-section { margin-block: 56px; }
    .tt-topbar-in { height: 72px; }
    .tt-brand-name { font-size: 20px; }
    .tt-hero-cap { padding: 36px 36px 40px; }
    .tt-trust { margin-block: 36px 0; }
    .tt-tile { flex-basis: 360px; aspect-ratio: 16 / 10; }
    .tt-tile-cap { padding: 20px 22px; }
    .tt-tilegrid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .tt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .tt-prodrail { gap: 18px; }
    .tt-prodrail .tt-card { flex-basis: 250px; }
    .tt-card-body { padding: 14px 16px 16px; }
    .tt-card-name { font-size: 16px; }
    .tt-bundle { flex-direction: row; align-items: center; flex-wrap: wrap; padding: 32px 30px; gap: 8px 28px; }
    .tt-bundle-copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
    .tt-bundle .tt-btn { margin-inline-start: auto; }
    .tt-sub { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 18px 24px; }
    .tt-sub-copy { flex: 1 1 320px; }
    .tt-toolbar { flex-direction: row; align-items: center; padding: 12px 14px; }
    .tt-search { flex: 1.5 1 0; }
    .tt-pricef { flex: 1.2 1 0; }
    .tt-toolbar .tt-select { flex: 0 0 200px; width: 200px; }
    .tt-product { grid-template-columns: 1fr 1fr; gap: 44px; margin-block: 38px 16px; }
    .tt-product-info { padding-block-start: 6px; }
    .tt-thumb { flex-basis: 82px; }
    .tt-footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

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

/* ---------- Reduced motion layer (kill the float-bob + springs) ----------------------------- */
@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;
    }
    .tt-cloud-bob, .tt-star-bob { animation: none !important; transform: none !important; }
    .tt-tile:hover .tt-tile-img,
    .tt-card:hover .tt-card-media .tt-card-img:only-child,
    .tt-card:active, .tt-add:active, .tt-btn:active, .sm-variant-opt:active,
    .tt-place-order:active { transform: none !important; }
}


/* ============================================================
   Cart toast — bulletproof compact pill.
   Overrides the legacy inline showAlert() sizing (width:75% /
   inset-inline:0) so the Tabler solid alert stays a compact
   centered top toast, auto height.
   ============================================================ */
.alert-float {
    position: fixed !important;
    inset-block-start: 16px !important;
    inset-block-end: auto !important;
    bottom: auto !important;
    inset-inline: 16px !important;
    z-index: 4000;
    width: auto !important;
    max-width: 420px !important;
    margin-inline: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 13px 20px !important;
    border: 0 !important;
    border-radius: var(--tt-r-pill) !important;
    text-align: center !important;
    font-family: var(--tt-font-d);
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.4;
    background: var(--tt-accent) !important;
    color: #fff !important;
    box-shadow: 0 16px 38px -10px rgb(from var(--tt-shadow-ink) r g b / .42);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.alert-float.alert-danger { background: var(--tt-accent2-deep) !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 */
.tt-tilerail, .tt-prodrail, .tt-cat-rail, .tt-thumb-rail, .tt-age-rail, .tt-reviewrail, .tt-hero-rail,
[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 never glue to / collide with 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 ---- */
.tt-drawer .offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-block: calc(16px + env(safe-area-inset-top)) 16px;
}
.tt-drawer .offcanvas-header .btn-close {
    margin: 0;            /* kill Bootstrap's -.5rem/auto margins */
    flex: 0 0 auto;
    padding: 6px;
}
.tt-drawer-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

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

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

/* ============================================================
   RTL refinements (Arabic).
   ============================================================ */

/* Prices, the discount <del>, badges & qty numbers stay LTR so
   "$24" / "$30" never reorder around the currency glyph. */
body[dir="rtl"] .tt-price,
body[dir="rtl"] .tt-price-old,
body[dir="rtl"] .tt-cart-item-price,
body[dir="rtl"] .tt-cart-total-num,
body[dir="rtl"] .tt-qty-num,
body[dir="rtl"] .tt-count {
    direction: ltr;
    unicode-bidi: isolate;
}
/* keep the price block hugging the correct (start) edge of the row */
body[dir="rtl"] .tt-price-wrap { align-items: flex-end; }

/* Flip directional chevrons / arrows that imply "forward" */
body[dir="rtl"] .tt-crumb { direction: rtl; }
body[dir="rtl"] .tt-crumb-cur { max-width: 60vw; }

/* Toolbar: in row mode the sort <select> chevron + text read RTL */
body[dir="rtl"] .tt-select { background-position: left .75rem center; }

/* The tile CTA arrow already mirrors via scaleX(-1); make sure the
   row itself reads right-to-left so the glyph trails the label. */
body[dir="rtl"] .tt-tile-cta { flex-direction: row-reverse; justify-content: flex-end; }

/* In RTL the float cloud/star anchor flips automatically via logical inset props. */
