/* ==========================================================================
   HOROLOGY ATELIER — ScaanMe store theme "horology-watch-store"
   Time, kept beautifully · deep midnight luxury, platinum-and-sage
   midnight #0C1118 / panel #131A24 / txt #ECF1F7 / sage-platinum #9CB7A6
   Cormorant Garamond (display) · Inter (body) · JetBrains Mono (specs/ref)
   Amiri (Arabic) · Mobile-first · logical properties (RTL-safe)
   Signature: a single fine second-hand sweeps the hero dial (60s, GPU rotate)
   prefers-reduced-motion freezes the hand.
   ========================================================================== */

:root {
    /* Tokenised (gold standard): every brand value derives from a --tk-* token the owner can
       override, with horology's ORIGINAL default as the var() fallback so an un-customised card
       is pixel-identical. bg/text/accent are exact; panels+muted derive from bg; glows+lines from
       the accent. Semantic danger (rose) is tokenised via --tk-danger; pure black/white are intentionally NOT. */
    --hor-bg: var(--tk-bg, #0C1118);
    --hor-bg-2: color-mix(in srgb, var(--tk-bg, #0C1118), #fff 2%);
    --hor-panel: color-mix(in srgb, var(--tk-bg, #0C1118), #fff 4%);
    --hor-panel-2: color-mix(in srgb, var(--tk-bg, #0C1118), #fff 8%);
    --hor-txt: var(--tk-text, #ECF1F7);
    --hor-muted: color-mix(in srgb, var(--tk-text, #ECF1F7), var(--tk-bg, #0C1118) 44%);
    --hor-muted-soft: color-mix(in srgb, var(--tk-text, #ECF1F7), var(--tk-bg, #0C1118) 56%);
    --hor-accent: var(--tk-primary, #9CB7A6);        /* sage-platinum — the single accent */
    --hor-accent-deep: var(--tk-secondary, #7E9A89);
    --hor-accent-glow: rgb(from var(--tk-primary, #9CB7A6) r g b / .28);
    --hor-line: rgb(from var(--tk-primary, #9CB7A6) r g b / .16);
    --hor-line-soft: rgb(from var(--tk-primary, #9CB7A6) r g b / .08);
    --hor-line-strong: rgb(from var(--tk-primary, #9CB7A6) r g b / .34);
    --hor-platinum: linear-gradient(135deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.02) 38%, rgb(from var(--tk-primary, #9CB7A6) r g b / .10) 100%);
    --hor-r: 4px;
    --hor-r-lg: 8px;
    --hor-font-d: var(--tk-font-header, 'Cormorant Garamond'), 'Amiri', Georgia, serif;
    --hor-font-b: var(--tk-font-content, 'Inter'), 'Amiri', system-ui, -apple-system, sans-serif;
    --hor-font-num: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
    --hor-ease: cubic-bezier(.22, .61, .36, 1);
    --hor-shadow: 0 18px 48px rgba(0, 0, 0, .55);
}

html { scroll-behavior: smooth; }

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

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

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

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

/* ---------- Type ------------------------------------------------------- */
.hor-display {
    font-family: var(--hor-font-d);
    font-weight: 500;
    letter-spacing: .005em;
    line-height: 1.12;
    color: var(--hor-txt);
    margin: 0;
}

.hor-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--hor-font-num);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--hor-muted);
}
.hor-eyebrow .num { color: var(--hor-accent); }
.hor-eyebrow::after { content: ""; flex: 0 1 64px; height: 1px; background: var(--hor-line); }

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

/* ---------- Buttons / forms -------------------------------------------- */
.hor-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding-inline: 22px;
    border: 1px solid transparent; border-radius: var(--hor-r);
    font-family: var(--hor-font-b); font-size: 11.5px; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .25s var(--hor-ease), color .25s var(--hor-ease), border-color .25s var(--hor-ease), box-shadow .25s var(--hor-ease);
}
.hor-btn-ink {
    background: var(--hor-accent); color: var(--tk-bg, #0C1118) !important; border-color: var(--hor-accent);
}
.hor-btn-ink:hover {
    background: var(--hor-txt); border-color: var(--hor-txt); color: var(--tk-bg, #0C1118) !important;
    box-shadow: 0 0 0 4px var(--hor-accent-glow);
}
.hor-btn-ghost { background: transparent; color: var(--hor-txt) !important; border-color: var(--hor-line-strong); }
.hor-btn-ghost:hover { border-color: var(--hor-accent); background: var(--hor-panel-2); color: var(--hor-accent) !important; }
.hor-btn-paper { background: var(--hor-txt); color: var(--tk-bg, #0C1118) !important; border-color: var(--hor-txt); }
.hor-btn-paper:hover { background: var(--hor-accent); border-color: var(--hor-accent); color: var(--tk-bg, #0C1118) !important; }
.hor-btn-block { width: 100%; }

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

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

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

/* ---------- Hero (01 — sweeping second-hand dial) ----------------------- */
.hor-hero {
    position: relative; margin-block-start: 18px;
    border: 1px solid var(--hor-line); border-radius: var(--hor-r-lg);
    overflow: hidden; background: var(--hor-bg-2);
    box-shadow: var(--hor-shadow);
}
.hor-hero-rail {
    display: flex; height: clamp(420px, 66vh, 640px);
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
}
.hor-hero-rail::-webkit-scrollbar { display: none; }
.hor-hero-slide { flex: 0 0 100%; scroll-snap-align: center; height: 100%; }
.hor-hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hor-hero-scrim {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(120% 90% at 70% 30%, rgb(from var(--tk-primary, #9CB7A6) r g b / .10) 0%, rgb(from var(--tk-bg, #0C1118) r g b / 0) 50%),
        linear-gradient(to top, rgb(from var(--tk-bg, #0C1118) r g b / .88) 0%, rgb(from var(--tk-bg, #0C1118) r g b / .42) 46%, rgb(from var(--tk-bg, #0C1118) r g b / .10) 78%);
}

/* The signature dial — a fine sage second-hand sweeping 60s, GPU transform */
.hor-dial {
    position: absolute; inset-block-start: 22px; inset-inline-end: 22px;
    width: clamp(92px, 26vw, 132px); height: clamp(92px, 26vw, 132px);
    border-radius: 50%;
    border: 1px solid var(--hor-line-strong);
    background:
        radial-gradient(circle at 50% 42%, rgb(from var(--tk-primary, #9CB7A6) r g b / .10), rgb(from var(--tk-bg, #0C1118) r g b / .55) 70%),
        rgb(from var(--tk-bg, #0C1118) r g b / .55);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    pointer-events: none; z-index: 3;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 8px 22px rgba(0,0,0,.5);
}
/* hour ticks (CSS-only, 4 cardinal marks via pseudo + conic ring) */
.hor-dial::before {
    content: ""; position: absolute; inset: 9px; border-radius: 50%;
    background:
        conic-gradient(from 0deg,
            var(--hor-line-strong) 0 1deg, transparent 1deg 89deg,
            var(--hor-line-strong) 89deg 91deg, transparent 91deg 179deg,
            var(--hor-line-strong) 179deg 181deg, transparent 181deg 269deg,
            var(--hor-line-strong) 269deg 271deg, transparent 271deg 360deg);
    -webkit-mask: radial-gradient(circle, transparent 0 42%, #000 43% 50%, transparent 51%);
    mask: radial-gradient(circle, transparent 0 42%, #000 43% 50%, transparent 51%);
    opacity: .8;
}
/* center cap */
.hor-dial::after {
    content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--hor-accent);
    transform: translate(-50%, -50%); z-index: 2;
    box-shadow: 0 0 6px var(--hor-accent-glow);
}
.hor-dial-hand {
    position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
    width: 1.5px; height: 44%;
    background: linear-gradient(to top, var(--hor-accent) 0%, var(--hor-accent) 74%, transparent 100%);
    transform-origin: 50% 100%;
    transform: translate(-50%, -100%) rotate(0deg);
    animation: hor-sweep 60s linear infinite;
    border-radius: 2px;
    will-change: transform;
}
/* tail counterweight */
.hor-dial-hand::after {
    content: ""; position: absolute; inset-block-end: -7px; inset-inline-start: 50%;
    width: 4px; height: 12px; border-radius: 2px;
    background: var(--hor-accent); transform: translateX(-50%);
}
@keyframes hor-sweep {
    from { transform: translate(-50%, -100%) rotate(0deg); }
    to   { transform: translate(-50%, -100%) rotate(360deg); }
}

.hor-hero-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 20px 30px; color: var(--hor-txt); pointer-events: none; }
.hor-hero-cap .hor-eyebrow { color: rgb(from var(--tk-text, #ECF1F7) r g b / .76); }
.hor-hero-cap .hor-eyebrow .num { color: var(--hor-accent); }
.hor-hero-cap .hor-eyebrow::after { background: rgb(from var(--tk-text, #ECF1F7) r g b / .26); }
.hor-hero-title {
    font-family: var(--hor-font-d); font-weight: 500;
    font-size: clamp(2rem, 7.4vw, 3.6rem); line-height: 1.06;
    margin: 12px 0 18px; max-width: 18ch;
    text-shadow: 0 2px 28px rgba(0, 0, 0, .5);
}
.hor-hero-cap .hor-btn { pointer-events: auto; }

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

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

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

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

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

/* ---------- Product cards + spec ledger reveal --------------------------- */
.hor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hor-prodrail .hor-card { flex: 0 0 min(70%, 290px); scroll-snap-align: start; }

.hor-card {
    display: flex; flex-direction: column;
    background: var(--hor-panel);
    border: 1px solid var(--hor-line); border-radius: var(--hor-r-lg);
    overflow: hidden;
    transition: border-color .3s var(--hor-ease), box-shadow .3s var(--hor-ease), transform .3s var(--hor-ease);
}
.hor-card:hover { border-color: var(--hor-line-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transform: translateY(-2px); }
.hor-card-media {
    position: relative; display: block; aspect-ratio: 1 / 1;
    overflow: hidden; background: var(--hor-bg-2);
}
.hor-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--hor-ease), transform .7s var(--hor-ease); }
.hor-card-img-alt { opacity: 0; }
.hor-card:hover .hor-card-img-alt { opacity: 1; }
.hor-card:hover .hor-card-media .hor-card-img:only-child { transform: scale(1.05); }
.hor-flag {
    position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
    background: rgb(from var(--tk-bg, #0C1118) r g b / .78); color: var(--hor-accent);
    border: 1px solid var(--hor-line-strong);
    font-family: var(--hor-font-num);
    font-size: 9px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
    padding: 5px 9px; border-radius: 3px;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hor-flag-out { background: rgb(from var(--tk-danger, #C77B7B) r g b / .16); color: var(--tk-danger, #E0A6A6); border-color: rgb(from var(--tk-danger, #C77B7B) r g b / .4); }
.hor-card-body { display: flex; flex-direction: column; flex: 1; padding: 13px 14px 14px; gap: 3px; }
.hor-card-link { text-decoration: none; color: inherit; min-width: 0; }
.hor-card-name {
    font-family: var(--hor-font-d); font-weight: 600; font-size: 17px; line-height: 1.24;
    margin: 0; color: var(--hor-txt);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hor-card-meta {
    font-family: var(--hor-font-num);
    font-size: 11px; letter-spacing: .02em; color: var(--hor-muted); margin: 3px 0 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hor-card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-block-start: auto; padding-block-start: 11px;
    border-block-start: 1px solid var(--hor-line-soft);
}
.hor-price-wrap { display: flex; flex-direction: column; min-width: 0; }
.hor-price { font-family: var(--hor-font-num); font-weight: 500; font-size: 14px; color: var(--hor-accent); }
.hor-price-old { font-family: var(--hor-font-num); font-size: 11px; color: var(--hor-muted-soft); text-decoration: line-through; }
.hor-add {
    flex-shrink: 0; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: var(--hor-accent) !important;
    border: 1px solid var(--hor-line-strong); border-radius: var(--hor-r);
    cursor: pointer; text-decoration: none; font-size: 18px;
    transition: background .25s var(--hor-ease), border-color .25s var(--hor-ease), color .25s var(--hor-ease);
}
.hor-add:hover { background: var(--hor-accent); border-color: var(--hor-accent); color: var(--tk-bg, #0C1118) !important; }

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

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

/* ---------- Empty states (pure CSS dial mark) -------------------------------- */
.hor-empty {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-align: center; padding: 58px 18px; margin-block: 24px;
    background: var(--hor-panel);
    border: 1px dashed var(--hor-line-strong); border-radius: var(--hor-r-lg);
}
.hor-empty-mark {
    position: relative; width: 52px; height: 52px;
    border: 1px solid var(--hor-line-strong); border-radius: 50%;
    margin-block: 10px 16px;
}
.hor-empty-mark::before {
    content: ""; position: absolute; top: 50%; inset-inline-start: 50%;
    width: 1.5px; height: 18px; background: var(--hor-accent);
    transform-origin: 50% 100%; transform: translate(-50%, -100%) rotate(60deg);
}
.hor-empty-mark::after {
    content: ""; position: absolute; top: 50%; inset-inline-start: 50%;
    width: 5px; height: 5px; border-radius: 50%; background: var(--hor-accent);
    translate: -50% -50%;
}
.hor-empty-title { font-family: var(--hor-font-d); font-weight: 600; font-size: 22px; margin: 0; color: var(--hor-txt); }
.hor-empty-sub { color: var(--hor-muted); font-size: 14px; margin: 0; max-width: 42ch; }
.hor-empty .hor-btn { margin-block-start: 8px; }

/* ---------- Cart drawer — deeper midnight ------------------------------------- */
#offcanvasEnd.hor-drawer {
    background: var(--hor-bg-2); color: var(--hor-txt);
    width: min(420px, 94vw);
    border-inline-start: 1px solid var(--hor-line);
}
.hor-drawer .offcanvas-header { padding: 18px; border-block-end: 1px solid var(--hor-line); }
.hor-drawer-title { font-family: var(--hor-font-d); font-weight: 600; font-size: 22px; letter-spacing: .03em; color: var(--hor-txt); margin: 0; }
.hor-drawer .btn-close { filter: invert(1) grayscale(1); opacity: .7; }
.hor-drawer .offcanvas-body { padding: 16px 18px; }

.hor-cart-item {
    display: flex; gap: 12px; margin-block-end: 10px; padding: 11px;
    background: var(--hor-panel);
    border: 1px solid var(--hor-line); border-radius: var(--hor-r);
}
.hor-cart-item-img { width: 76px; height: 76px; object-fit: cover; flex-shrink: 0; border-radius: var(--hor-r); background: var(--hor-bg); }
.hor-cart-item-info { flex: 1; min-width: 0; }
.hor-cart-item-name {
    font-family: var(--hor-font-d); font-weight: 600; font-size: 16px;
    color: var(--hor-txt); margin: 0 0 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hor-cart-item-sub {
    display: block; font-family: var(--hor-font-num); font-size: 10.5px; color: var(--hor-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sm-cart-variants { color: var(--hor-accent) !important; }
.hor-cart-item-price { margin: 6px 0 9px; font-family: var(--hor-font-num); font-size: 13.5px; font-weight: 500; color: var(--hor-accent); }
.hor-cart-item-actions { display: flex; align-items: center; gap: 6px; }
.hor-qty-btn {
    width: 32px; height: 32px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: var(--hor-txt);
    border: 1px solid var(--hor-line-strong); border-radius: var(--hor-r);
    cursor: pointer; transition: background .2s var(--hor-ease), border-color .2s var(--hor-ease);
}
.hor-qty-btn:hover { border-color: var(--hor-accent); background: var(--hor-panel-2); }
.hor-qty-btn svg { width: 15px; height: 15px; }
.hor-qty-num { min-width: 28px; text-align: center; font-family: var(--hor-font-num); font-weight: 500; font-size: 14px; color: var(--hor-txt); }
.hor-qty-remove { margin-inline-start: auto; color: var(--tk-danger, #C77B7B); border-color: rgb(from var(--tk-danger, #C77B7B) r g b / .36); }
.hor-qty-remove:hover { background: rgb(from var(--tk-danger, #C77B7B) r g b / .14); border-color: var(--tk-danger, #C77B7B); color: var(--tk-danger, #E0A6A6); }

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

.hor-drawer-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--hor-line); }
.hor-cart-total {
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--hor-font-d); font-weight: 600; font-size: 19px;
    color: var(--hor-txt); margin: 0 0 12px;
}
.hor-cart-total-num { font-family: var(--hor-font-num); color: var(--hor-accent); font-size: 18px; }
.hor-place-order {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    height: 50px; width: 100%;
    background: var(--hor-accent); color: var(--tk-bg, #0C1118) !important;
    border-radius: var(--hor-r); cursor: pointer; text-decoration: none;
    font-family: var(--hor-font-b); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    transition: background .25s var(--hor-ease), color .25s var(--hor-ease), box-shadow .25s var(--hor-ease);
}
.hor-place-order:hover { background: var(--hor-txt); color: var(--tk-bg, #0C1118) !important; box-shadow: 0 0 0 4px var(--hor-accent-glow); }
.hor-place-order i { font-size: 18px; }

/* ---------- Modals ------------------------------------------------------------ */
.hor-modal .modal-content {
    position: relative;
    background: var(--hor-panel); color: var(--hor-txt);
    border: 1px solid var(--hor-line); border-radius: var(--hor-r-lg);
    box-shadow: var(--hor-shadow);
}
.hor-modal .modal-header { padding: 16px 20px; border-block-end: 1px solid var(--hor-line); align-items: flex-start; }
.hor-modal .modal-title { font-family: var(--hor-font-d); font-weight: 600; font-size: 21px; letter-spacing: .02em; }
.hor-modal-sub { display: block; margin-block-start: 2px; font-size: 12.5px; color: var(--hor-muted); }
.hor-modal .modal-footer { border-block-start: 1px solid var(--hor-line); gap: 8px; }
.hor-modal .form-label {
    font-family: var(--hor-font-num);
    font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
    color: var(--hor-muted);
}
.hor-modal .form-control, .hor-modal .form-select {
    border: 1px solid var(--hor-line); border-radius: var(--hor-r);
    background: var(--hor-bg); color: var(--hor-txt);
}
.hor-modal .form-control::placeholder { color: var(--hor-muted-soft); }
.hor-modal .form-control:focus, .hor-modal .form-select:focus {
    border-color: var(--hor-accent); box-shadow: 0 0 0 3px var(--hor-accent-glow); background: var(--hor-bg);
}
.hor-modal .form-check-input { background-color: var(--hor-bg); border-color: var(--hor-line-strong); }
.hor-modal .form-check-input:checked { background-color: var(--hor-accent); border-color: var(--hor-accent); }
.hor-modal .form-check-input:focus { border-color: var(--hor-accent); box-shadow: 0 0 0 3px var(--hor-accent-glow); }
.hor-modal .form-check-label { color: var(--hor-txt); }
.hor-modal .text-muted { color: var(--hor-muted) !important; }

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

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

.hor-product-name {
    font-family: var(--hor-font-d); font-weight: 600;
    font-size: clamp(1.9rem, 5.6vw, 2.7rem); line-height: 1.1;
    margin: 12px 0 6px; color: var(--hor-txt);
}
.hor-product-sub { color: var(--hor-muted); font-size: 15px; margin: 0 0 16px; }
.hor-product-price {
    display: flex; align-items: baseline; gap: 12px;
    margin-block: 4px 16px; padding-block-end: 16px;
    border-block-end: 1px solid var(--hor-line);
}
.hor-product-price .hor-price { font-family: var(--hor-font-num); font-size: 24px; font-weight: 500; }
.hor-product-price .hor-price-old { font-size: 15px; }
.hor-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 18px; }
.hor-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--hor-font-num);
    font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    border: 1px solid var(--hor-line); border-radius: 3px;
    padding: 7px 11px; color: var(--hor-muted); background: var(--hor-panel);
}
.hor-chip-accent { color: var(--hor-accent); border-color: var(--hor-line-strong); }

/* Spec ledger — the mono trust block (movement / case / water-res / ref) */
.hor-ledger {
    margin-block: 4px 20px;
    border: 1px solid var(--hor-line); border-radius: var(--hor-r-lg);
    background: var(--hor-panel); overflow: hidden;
}
.hor-ledger-head {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 15px; border-block-end: 1px solid var(--hor-line);
    font-family: var(--hor-font-num);
    font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--hor-accent);
    background: var(--hor-bg-2);
}
.hor-ledger-head i { font-size: 14px; }
.hor-ledger-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 11px 15px;
    border-block-end: 1px solid var(--hor-line-soft);
    font-family: var(--hor-font-num); font-size: 12px;
}
.hor-ledger-row:last-child { border-block-end: 0; }
.hor-ledger-key { color: var(--hor-muted); letter-spacing: .08em; text-transform: uppercase; font-size: 10px; }
.hor-ledger-val { color: var(--hor-txt); text-align: end; }

.hor-concierge-hint {
    display: flex; align-items: center; gap: 8px;
    margin-block: 16px 18px;
    font-family: var(--hor-font-num);
    font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--hor-muted);
}
.hor-concierge-hint i { font-size: 16px; color: var(--hor-accent); }

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

/* Spec ledger on hover for cards (dark luxury reveal) */
.hor-card-spec {
    display: none;
    font-family: var(--hor-font-num); font-size: 10px; letter-spacing: .04em;
    color: var(--hor-muted); margin: 4px 0 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Share include — dark re-skin */
.product-share-card .share-title {
    font-family: var(--hor-font-num);
    font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
    color: var(--hor-muted);
}
.product-share-card .share-icon { border-color: var(--hor-line); background: var(--hor-panel); }
.product-share-card .share-icon.x { color: var(--hor-txt); }

/* ---------- Policy page ----------------------------------------------------------- */
.hor-policy { padding-block: 32px 10px; max-width: 880px; }
.hor-policy .hor-display {
    font-size: clamp(1.9rem, 5.2vw, 2.6rem);
    margin-block: 10px 16px; padding-block-end: 16px;
    border-block-end: 1px solid var(--hor-line);
}

/* ---------- Footer ------------------------------------------------------------------ */
.hor-footer {
    flex-shrink: 0;
    background: var(--hor-bg-2); color: var(--hor-muted);
    margin-block-start: 60px; padding-block: 42px 28px;
    border-block-start: 1px solid var(--hor-line-strong);
}
.hor-footer a { text-decoration: none; transition: color .2s var(--hor-ease); }
.hor-footer-top {
    display: flex; flex-direction: column; gap: 22px;
    padding-block-end: 26px; border-block-end: 1px solid var(--hor-line);
}
.hor-footer-brand { min-width: 0; }
.hor-footer-wordmark { font-family: var(--hor-font-d); font-weight: 600; font-size: 27px; letter-spacing: .03em; color: var(--hor-txt); }
.hor-footer-tag { font-size: 13px; color: var(--hor-muted); margin: 6px 0 0; max-width: 48ch; }
.hor-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.hor-social a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--hor-line); border-radius: var(--hor-r);
    color: var(--hor-txt); font-size: 17px;
}
.hor-social a:hover { border-color: var(--hor-accent); background: var(--hor-panel); color: var(--hor-accent); }
.hor-footer-links {
    display: flex; flex-wrap: wrap; gap: 9px 22px;
    padding-block: 20px; border-block-end: 1px solid var(--hor-line);
    font-family: var(--hor-font-num);
    font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
}
.hor-footer-links a { color: var(--hor-muted); }
.hor-footer-links a:hover { color: var(--hor-accent); }
.hor-footer-base {
    display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between;
    padding-block-start: 20px; font-size: 12.5px; color: var(--hor-muted-soft);
}
.hor-footer-base a { color: var(--hor-accent); }
.hor-footer-base a:hover { color: var(--hor-txt); }

/* ---------- Mobile dock --------------------------------------------------------------- */
.hor-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, #0C1118) r g b / .96);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-block-start: 1px solid var(--hor-line);
    padding-block: 8px calc(8px + env(safe-area-inset-bottom));
}
.hor-dock a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--hor-muted); text-decoration: none; cursor: pointer;
    font-family: var(--hor-font-num);
    font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
}
.hor-dock a i { font-size: 21px; }
.hor-dock a.is-active, .hor-dock a:hover { color: var(--hor-accent); }

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

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

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

    /* Spec ledger reveal: card meta tucks away, the mono ledger surfaces on hover */
    @media (hover: hover) {
        .hor-card-spec { display: block; max-height: 0; opacity: 0; margin: 0; overflow: hidden; transition: max-height .35s var(--hor-ease), opacity .35s var(--hor-ease), margin .35s var(--hor-ease); }
        .hor-card:hover .hor-card-spec { max-height: 24px; opacity: 1; margin: 4px 0 0; }
    }
}

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

/* ---------- Reduced motion layer (freezes the second hand) -------------------------------- */
@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;
    }
    .hor-dial-hand { animation: none !important; transform: translate(-50%, -100%) rotate(38deg); }
    .hor-tile:hover .hor-tile-img,
    .hor-card:hover .hor-card-media .hor-card-img:only-child { transform: none; }
    .hor-card:hover { transform: none; }
}


/* ============================================================
   Cart toast — bulletproof compact pill (sage-platinum).
   Overrides the legacy inline showAlert() sizing (width:75% /
   inset-inline:0) that made the Tabler solid alert blow up.
   Forces a centered top toast, auto height.
   ============================================================ */
.alert-float {
    position: fixed !important;
    inset-block-start: 16px !important;
    inset-block-end: auto !important;
    bottom: auto !important;
    inset-inline: 16px !important;
    z-index: 4000;
    width: auto !important;
    max-width: 420px !important;
    margin-inline: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 13px 20px !important;
    border: 1px solid var(--hor-line-strong) !important;
    border-radius: 12px !important;
    text-align: center !important;
    font-family: var(--hor-font-b);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    background: var(--hor-panel-2) !important;
    color: var(--hor-txt) !important;
    box-shadow: 0 16px 38px -10px rgba(0, 0, 0, .6);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
#successAlertContainer.alert-float { border-inline-start: 3px solid var(--hor-accent) !important; }
#errorAlertContainer.alert-float { border-inline-start: 3px solid var(--tk-danger, #C77B7B) !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 / specs LTR; flip directional chevrons.
   ============================================================ */

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

/* ---- Modals: header title + close never collide (esp. RTL) ---- */
.hor-modal .modal-content { position: relative; }
.hor-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;
}
.hor-modal .modal-header > :first-child { min-width: 0; flex: 1 1 auto; }
.hor-modal .modal-title { overflow-wrap: anywhere; }
.hor-modal .modal-header .btn-close {
    position: absolute;
    inset-block-start: 16px;
    inset-inline-end: 18px;
    inset-inline-start: auto;
    margin: 0;
    z-index: 2;
    filter: invert(1) grayscale(1);
    opacity: .7;
}
.hor-modal .modal-body .btn-close { position: static; margin-inline-start: auto; filter: invert(1) grayscale(1); opacity: .7; }
.hor-modal .modal-body { padding-inline: 20px; }

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

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

/* Prices, the discount <del>, ledger specs & qty numbers stay LTR so
   "$2,400" never reorders around the currency glyph. */
body[dir="rtl"] .hor-price,
body[dir="rtl"] .hor-price-old,
body[dir="rtl"] .hor-cart-item-price,
body[dir="rtl"] .hor-cart-total-num,
body[dir="rtl"] .hor-qty-num,
body[dir="rtl"] .hor-ledger-val,
body[dir="rtl"] .hor-count {
    direction: ltr;
    unicode-bidi: isolate;
}
body[dir="rtl"] .hor-price-wrap { align-items: flex-end; }

/* Section-head numbered eyebrow + kicker: number leads LTR */
body[dir="rtl"] .hor-eyebrow .num,
body[dir="rtl"] .hor-tile-kicker { unicode-bidi: isolate; }

/* Directional chevrons / breadcrumb */
body[dir="rtl"] .hor-sechead-link,
body[dir="rtl"] .hor-crumb { direction: rtl; }
body[dir="rtl"] .hor-crumb-cur { max-width: 60vw; }

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

/* Tile CTA arrow mirrors via scaleX(-1); row reads right-to-left */
body[dir="rtl"] .hor-tile-cta { flex-direction: row-reverse; justify-content: flex-end; }

/* Trust strip dividers look even either dir */
body[dir="rtl"] .hor-trust-item + .hor-trust-item::before { inset-inline-start: -2px; }

/* The sweeping hand reads identically in both directions (no flip needed). */
