/* ==========================================================================
   HEARTH — ScaanMe store theme "hearth-decor-store"
   Warm-minimal artisan homeware · clay-and-linen · slow-living
   Linen-oat #F6F1E9 / clay-ink #2E2620 / terracotta #B5663E / sage #7E8B72
   Fraunces (variable warm serif) display · Inter body · Almarai (Arabic)
   Signature geometry: soft arch-top niche cards + clay-dot pill chips
   Signature motion: "soft settle" — objects fade-and-settle onto the shelf
   Mobile-first · logical properties (RTL-safe) · prefers-reduced-motion aware
   ========================================================================== */

:root {
    --h-bg: var(--tk-bg, #F6F1E9);          /* linen-oat */
    --h-bg-deep: color-mix(in srgb, var(--tk-bg, #F6F1E9), #000 5%);     /* deeper oat wash */
    --h-panel: #FFFFFF;
    --h-panel-2: color-mix(in srgb, var(--tk-bg, #F6F1E9), #FFFFFF 62%); /* warm off-white tier 2 */
    --h-ink: var(--tk-text, #2E2620);         /* clay-ink */
    --h-ink-soft: color-mix(in srgb, var(--tk-text, #2E2620), var(--tk-bg, #F6F1E9) 14%);
    --h-muted: color-mix(in srgb, var(--tk-text, #2E2620), var(--tk-bg, #F6F1E9) 44%);
    --h-line: color-mix(in srgb, var(--tk-bg, #F6F1E9), #000 7%);
    --h-line-soft: color-mix(in srgb, var(--tk-bg, #F6F1E9), #000 4%);
    --h-accent: var(--tk-primary, #B5663E);      /* terracotta — the single accent */
    --h-accent-deep: color-mix(in srgb, var(--tk-primary, #B5663E), #000 18%);
    --h-accent-wash: color-mix(in srgb, var(--tk-primary, #B5663E), #FFFFFF 78%);
    --h-sage: var(--tk-secondary, #7E8B72);      /* secondary, greenery/material */
    --h-sage-wash: color-mix(in srgb, var(--tk-secondary, #7E8B72), #FFFFFF 78%);
    --h-r-sm: 12px;
    --h-r: 18px;
    --h-r-lg: 26px;
    --h-r-arch: 26px 26px 12px 12px;
    --h-r-pill: 999px;
    --h-font-d: var(--tk-font-header, 'Fraunces'), 'Almarai', Georgia, 'Times New Roman', serif;
    --h-font-b: var(--tk-font-content, 'Inter'), 'Almarai', system-ui, -apple-system, sans-serif;
    --h-ease: cubic-bezier(.21, .6, .35, 1);
    --h-shadow-1: 0 1px 2px rgb(from var(--tk-text, #2E2620) r g b / .05), 0 4px 14px rgb(from var(--tk-text, #2E2620) r g b / .05);
    --h-shadow-2: 0 10px 30px rgb(from var(--tk-text, #2E2620) r g b / .10), 0 2px 8px rgb(from var(--tk-text, #2E2620) r g b / .06);
    --h-shadow-warm: 0 14px 34px rgb(from var(--tk-primary, #B5663E) r g b / .18), 0 3px 10px rgb(from var(--tk-text, #2E2620) r g b / .08);
    --h-shell: 1120px;
}

/* ---------- Global reset / containment baseline ------------------------- */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: clip;             /* CONTAINMENT BASELINE */
}

body {
    margin: 0;
    background: var(--h-bg) !important;
    color: var(--h-ink);
    font-family: var(--h-font-b);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: .005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;             /* CONTAINMENT BASELINE */
    padding-block-end: 76px;      /* mobile dock clearance */
    /* linen-weave wash — CSS only, reduced-motion safe (static) */
    background-image:
        repeating-linear-gradient(90deg, rgb(from var(--tk-text, #2E2620) r g b / .018) 0 1px, transparent 1px 7px),
        repeating-linear-gradient(0deg, rgb(from var(--tk-text, #2E2620) r g b / .018) 0 1px, transparent 1px 7px);
    background-attachment: fixed;
}

body[dir="rtl"] {
    font-family: 'Almarai', var(--h-font-b);
    letter-spacing: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.h-page { min-height: 100vh; display: flex; flex-direction: column; }
.h-main { flex: 1 1 auto; }

.h-shell {
    width: 100%;
    max-width: var(--h-shell);
    margin-inline: auto;
    padding-inline: 18px;
}

/* ---------- Preloader --------------------------------------------------- */
.preloader-wrapper {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--h-bg);
    display: flex; align-items: center; justify-content: center;
}
.h-loader {
    width: 46px; height: 46px; border-radius: 50%;
    border: 3px solid var(--h-line);
    border-top-color: var(--h-accent);
    animation: h-spin .9s linear infinite;
}
@keyframes h-spin { to { transform: rotate(360deg); } }

/* ---------- Typography helpers ----------------------------------------- */
.h-display {
    font-family: var(--h-font-d);
    font-weight: 540;
    font-optical-sizing: auto;
    line-height: 1.08;
    letter-spacing: -.01em;
    color: var(--h-ink);
    margin: 0;
    font-size: clamp(1.55rem, 5.2vw, 2.5rem);
}
.h-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--h-font-b);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--h-accent);
}
.h-kicker::before {
    content: "";
    inline-size: 22px;
    block-size: 2px;
    border-radius: 2px;
    background: var(--h-accent);
    flex: none;
}

/* hand-drawn-ish hairline divider */
.h-rule {
    border: 0;
    block-size: 1px;
    background: var(--h-line);
    margin: 0;
}

/* ---------- Section scaffold ------------------------------------------- */
.h-section { padding-block: clamp(34px, 7vw, 60px); }
.h-sechead {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-block-end: 22px;
}
.h-sechead-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.h-sechead-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--h-accent);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.h-sechead-link:hover { color: var(--h-accent-deep); }
.h-sechead-link i { font-size: 16px; }
[dir="rtl"] .h-sechead-link i { transform: scaleX(-1); }
.h-count {
    font-size: 13px;
    color: var(--h-muted);
    white-space: nowrap;
}

/* ---------- Buttons ----------------------------------------------------- */
.h-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--h-font-b);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1;
    padding: 13px 22px;
    border-radius: var(--h-r-pill);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .25s var(--h-ease), background-color .25s var(--h-ease),
        color .25s var(--h-ease), box-shadow .25s var(--h-ease), border-color .25s var(--h-ease);
    text-align: center;
}
.h-btn i { font-size: 18px; }
.h-btn-clay {
    background: var(--h-accent);
    color: color-mix(in srgb, var(--tk-bg, #F6F1E9), #FFFFFF 70%);
    box-shadow: 0 6px 16px rgb(from var(--tk-primary, #B5663E) r g b / .26);
}
.h-btn-clay:hover { background: var(--h-accent-deep); transform: translateY(-2px); box-shadow: 0 10px 22px rgb(from var(--tk-primary, #B5663E) r g b / .32); }
.h-btn-ink {
    background: var(--h-ink);
    color: var(--h-bg);
}
.h-btn-ink:hover { background: #1f1a15; transform: translateY(-2px); }
.h-btn-paper {
    background: var(--h-panel);
    color: var(--h-ink);
    border-color: var(--h-line);
    box-shadow: var(--h-shadow-1);
}
.h-btn-paper:hover { transform: translateY(-2px); box-shadow: var(--h-shadow-2); border-color: var(--h-accent); }
.h-btn-ghost {
    background: transparent;
    color: var(--h-ink);
    border-color: var(--h-line);
}
.h-btn-ghost:hover { border-color: var(--h-accent); color: var(--h-accent); }
.h-btn-block { width: 100%; }

/* ---------- Topbar ------------------------------------------------------ */
.h-topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--h-bg) 86%, transparent);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    border-block-end: 1px solid var(--h-line);
}
.h-topbar-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-block-size: 64px;
    padding-block: 9px;
}
.h-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.h-brand-logo {
    inline-size: 40px;
    block-size: 40px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--h-line);
    background: var(--h-panel);
    box-shadow: var(--h-shadow-1);
}
.h-brand-name {
    font-family: var(--h-font-d);
    font-weight: 560;
    font-size: 19px;
    letter-spacing: -.01em;
    color: var(--h-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.h-topbar-actions { display: inline-flex; align-items: center; gap: 10px; }
.h-cart-trigger {
    position: relative;
    inline-size: 44px;
    block-size: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--h-panel);
    border: 1px solid var(--h-line);
    color: var(--h-ink);
    box-shadow: var(--h-shadow-1);
    transition: transform .2s var(--h-ease), border-color .2s var(--h-ease);
}
.h-cart-trigger:hover { transform: translateY(-2px); border-color: var(--h-accent); }
.h-cart-badge {
    position: absolute;
    inset-block-start: -4px;
    inset-inline-end: -4px;
    min-inline-size: 20px;
    block-size: 20px;
    padding-inline: 5px;
    border-radius: 999px;
    background: var(--h-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgb(from var(--tk-primary, #B5663E) r g b / .4);
}

/* ---------- Notes ------------------------------------------------------- */
.h-note { border-radius: var(--h-r); padding: 13px 16px; margin-block-start: 16px; font-size: 14px; font-weight: 500; }
.h-note-success { background: var(--h-sage-wash); color: var(--tk-success, #3f4a36); border: 1px solid color-mix(in srgb, var(--tk-success, #3f4a36), #FFFFFF 70%); }
.h-note-danger { background: var(--h-accent-wash); color: var(--tk-danger, #7a3c20); border: 1px solid color-mix(in srgb, var(--tk-danger, #7a3c20), #FFFFFF 62%); }

/* ============================ HERO ===================================== */
.h-hero {
    position: relative;
    margin-block-start: 22px;
    border-radius: var(--h-r-lg);
    overflow: hidden;
    background: var(--h-bg-deep);
    box-shadow: var(--h-shadow-1);
}
.h-hero-media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}
.h-hero-media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    object-position: center;
}
.h-hero-media::after {
    /* warm bottom warmth, never a heavy black scrim */
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, transparent 38%, rgb(from var(--tk-text, #2E2620) r g b / .28) 100%);
    pointer-events: none;
}
/* offset caption card overlapping bottom — Hearth's signature, not a centered scrim */
.h-hero-cap {
    position: relative;
    margin: -54px 16px 18px;
    background: var(--h-panel);
    border: 1px solid var(--h-line);
    border-radius: var(--h-r);
    padding: 22px 20px;
    box-shadow: var(--h-shadow-2);
    z-index: 2;
}
.h-hero-title {
    font-family: var(--h-font-d);
    font-weight: 560;
    font-size: clamp(1.7rem, 7vw, 2.7rem);
    line-height: 1.04;
    letter-spacing: -.015em;
    color: var(--h-ink);
    margin: 10px 0 6px;
}
.h-hero-sub {
    color: var(--h-muted);
    font-size: 15px;
    margin: 0 0 16px;
    max-width: 46ch;
}
.h-hero-cta { display: inline-flex; gap: 10px; flex-wrap: wrap; }

/* ============================ ROOM FILTER ============================== */
.h-rooms {
    margin-block-start: 26px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-block-end: 4px;
    scroll-snap-type: x proximity;
}
.h-rooms::-webkit-scrollbar { display: none; }
.h-room {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: var(--h-r-pill);
    background: var(--h-panel);
    border: 1.5px solid var(--h-line);
    color: var(--h-ink-soft);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color .2s var(--h-ease), background-color .2s var(--h-ease),
        color .2s var(--h-ease), transform .2s var(--h-ease);
}
.h-room i { font-size: 18px; color: var(--h-sage); }
.h-room:hover { transform: translateY(-2px); border-color: var(--h-sage); }
.h-room.is-active {
    background: var(--h-ink);
    border-color: var(--h-ink);
    color: var(--h-bg);
}
.h-room.is-active i { color: var(--h-accent); }

/* ============================ MATERIAL CHIPS =========================== */
.h-materials {
    margin-block-start: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: var(--h-panel-2);
    border: 1px solid var(--h-line);
    border-radius: var(--h-r);
}
.h-matchip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--h-r-pill);
    background: var(--h-panel);
    border: 1px solid var(--h-line);
    font-size: 13px;
    font-weight: 600;
    color: var(--h-ink-soft);
}
/* the signature clay dot */
.h-matchip::before {
    content: "";
    inline-size: 9px;
    block-size: 9px;
    border-radius: 50%;
    background: var(--h-accent);
    flex: none;
    box-shadow: 0 0 0 3px var(--h-accent-wash);
}
.h-matchip:nth-child(2n)::before { background: var(--h-sage); box-shadow: 0 0 0 3px var(--h-sage-wash); }

/* ============================ ARTISAN STORY STRIP ===================== */
.h-story {
    position: relative;
    margin-block-start: 12px;
    border-radius: var(--h-r-lg);
    background: var(--h-ink);
    color: var(--h-bg);
    overflow: hidden;
    padding: 30px 22px;
    background-image:
        repeating-linear-gradient(90deg, rgb(from var(--tk-bg, #F6F1E9) r g b / .04) 0 1px, transparent 1px 8px),
        repeating-linear-gradient(0deg, rgb(from var(--tk-bg, #F6F1E9) r g b / .04) 0 1px, transparent 1px 8px);
}
.h-story-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--h-accent);
}
.h-story-kicker::before { content: ""; width: 22px; height: 2px; background: var(--h-accent); border-radius: 2px; }
.h-story-title {
    font-family: var(--h-font-d);
    font-weight: 540;
    font-size: clamp(1.4rem, 5vw, 2rem);
    line-height: 1.12;
    margin: 12px 0 10px;
    color: var(--h-bg);
}
.h-story-text { color: #C9C0B4; font-size: 14.5px; margin: 0 0 4px; max-width: 56ch; }
.h-story-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 16px; }
.h-story-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: var(--h-r-pill);
    background: rgb(from var(--tk-bg, #F6F1E9) r g b / .08);
    border: 1px solid rgb(from var(--tk-bg, #F6F1E9) r g b / .16);
    font-size: 12.5px; font-weight: 600; color: var(--h-bg);
}
.h-story-pill i { color: var(--h-sage); font-size: 16px; }

/* ============================ CATEGORY TILES ========================== */
.h-tilerail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-block-end: 6px;
    scroll-snap-type: x mandatory;
}
.h-tilerail::-webkit-scrollbar { display: none; }
.h-tilegrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.h-tile {
    position: relative;
    display: block;
    border-radius: var(--h-r);
    overflow: hidden;
    background: var(--h-panel);
    border: 1px solid var(--h-line);
    box-shadow: var(--h-shadow-1);
    transition: transform .3s var(--h-ease), box-shadow .3s var(--h-ease);
}
.h-tilerail .h-tile { flex: 0 0 76%; max-width: 280px; scroll-snap-align: start; }
.h-tile:hover { transform: translateY(-3px); box-shadow: var(--h-shadow-warm); }
.h-tile-img {
    inline-size: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .5s var(--h-ease);
}
.h-tile:hover .h-tile-img { transform: scale(1.05); }
.h-tile-cap {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    padding: 16px 16px 14px;
    background: linear-gradient(180deg, transparent, rgb(from var(--tk-text, #2E2620) r g b / .78));
    color: color-mix(in srgb, var(--tk-bg, #F6F1E9), #FFFFFF 70%);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.h-tile-kicker { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--h-accent-wash); }
.h-tile-name { font-family: var(--h-font-d); font-weight: 540; font-size: 18px; line-height: 1.1; }
.h-tile-cta { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; opacity: .9; }
[dir="rtl"] .h-tile-cta i { transform: scaleX(-1); }

/* ============================ TOOLBAR / FILTERS ======================= */
.h-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-block-end: 22px;
    padding: 14px;
    background: var(--h-panel);
    border: 1px solid var(--h-line);
    border-radius: var(--h-r);
    box-shadow: var(--h-shadow-1);
}
.h-search { display: flex; gap: 8px; flex: 1 1 220px; min-width: 0; }
.h-pricef { display: flex; gap: 8px; flex: 1 1 auto; }
.h-input {
    inline-size: 100%;
    min-width: 0;
    padding: 11px 14px;
    border-radius: var(--h-r-sm);
    border: 1.5px solid var(--h-line);
    background: var(--h-bg);
    color: var(--h-ink);
    font: inherit;
    font-size: 14px;
    transition: border-color .2s var(--h-ease), box-shadow .2s var(--h-ease);
}
.h-input::placeholder { color: var(--h-muted); }
.h-input:focus { outline: none; border-color: var(--h-accent); box-shadow: 0 0 0 3px var(--h-accent-wash); }
.h-pricef .h-input { inline-size: 92px; flex: 0 0 auto; }
.h-select {
    padding: 11px 38px 11px 14px;
    border-radius: var(--h-r-sm);
    border: 1.5px solid var(--h-line);
    background: var(--h-bg);
    color: var(--h-ink);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2380766A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
}
[dir="rtl"] .h-select { background-position: left 13px center; padding: 11px 14px 11px 38px; }
.h-select:focus { outline: none; border-color: var(--h-accent); }

/* ============================ PRODUCT CARDS =========================== */
.h-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.h-prodrail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-block-end: 6px;
    scroll-snap-type: x proximity;
}
.h-prodrail::-webkit-scrollbar { display: none; }
.h-prodrail .h-card { flex: 0 0 72%; max-width: 260px; scroll-snap-align: start; }

.h-card {
    display: flex;
    flex-direction: column;
    background: var(--h-panel);
    border: 1px solid var(--h-line);
    border-radius: var(--h-r);
    overflow: hidden;
    box-shadow: var(--h-shadow-1);
    transition: transform .3s var(--h-ease), box-shadow .3s var(--h-ease), border-color .3s var(--h-ease);
}
.h-card:hover { transform: translateY(-4px); box-shadow: var(--h-shadow-warm); border-color: color-mix(in srgb, var(--h-accent) 35%, var(--h-line)); }

/* signature: arch-top niche media */
.h-card-media {
    position: relative;
    display: block;
    margin: 8px 8px 0;
    border-radius: var(--h-r-arch);
    overflow: hidden;
    background: var(--h-panel-2);
    aspect-ratio: 1 / 1;
}
.h-card-img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transition: opacity .45s var(--h-ease), transform .55s var(--h-ease);
}
.h-card-img-alt {
    position: absolute; inset: 0;
    opacity: 0;
}
.h-card-media:hover .h-card-img-alt { opacity: 1; }
.h-card-media:hover .h-card-img:not(.h-card-img-alt) { transform: scale(1.04); }
.h-flag {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    background: var(--h-accent);
    color: color-mix(in srgb, var(--tk-bg, #F6F1E9), #FFFFFF 70%);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 5px 11px;
    border-radius: var(--h-r-pill);
    box-shadow: 0 3px 8px rgb(from var(--tk-primary, #B5663E) r g b / .3);
}
.h-flag-out { background: var(--h-muted); box-shadow: none; }

.h-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
    flex: 1 1 auto;
}
.h-card-link { display: block; color: inherit; }
.h-card-name {
    font-family: var(--h-font-d);
    font-weight: 540;
    font-size: 16px;
    line-height: 1.18;
    color: var(--h-ink);
    margin: 0;
}
.h-card-meta {
    font-size: 13px;
    color: var(--h-muted);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.h-card-foot {
    margin-block-start: auto;
    padding-block-start: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.h-price-wrap { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.h-price {
    font-family: var(--h-font-d);
    font-weight: 560;
    font-size: 17px;
    color: var(--h-ink);
    unicode-bidi: isolate;          /* prices never reorder in RTL */
}
.h-price-old {
    font-size: 13px;
    color: var(--h-muted);
    text-decoration: line-through;
    unicode-bidi: isolate;
}
.h-add {
    inline-size: 42px;
    block-size: 42px;
    flex: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--h-accent-wash);
    color: var(--h-accent-deep);
    border: 1px solid color-mix(in srgb, var(--h-accent) 26%, transparent);
    cursor: pointer;
    transition: transform .2s var(--h-ease), background-color .2s var(--h-ease), color .2s var(--h-ease);
}
.h-add i { font-size: 21px; }
.h-add:hover { background: var(--h-accent); color: color-mix(in srgb, var(--tk-bg, #F6F1E9), #FFFFFF 70%); transform: translateY(-2px) rotate(-6deg); }

/* ---------- Pagination -------------------------------------------------- */
.h-pagination { margin-block-start: 30px; display: flex; justify-content: center; }
.h-pagination .pagination { gap: 6px; }

/* ---------- Empty states ----------------------------------------------- */
.h-empty {
    text-align: center;
    padding: 46px 20px;
    background: var(--h-panel);
    border: 1px dashed var(--h-line);
    border-radius: var(--h-r);
}
.h-empty-mark {
    display: inline-flex;
    inline-size: 60px;
    block-size: 60px;
    border-radius: var(--h-r-arch);
    background: var(--h-bg-deep);
    margin-block-end: 14px;
    position: relative;
}
.h-empty-mark::after {
    content: "";
    position: absolute; inset: 16px;
    border-radius: 50%;
    border: 2px solid var(--h-accent);
    opacity: .5;
}
.h-empty-mark-light { background: var(--h-panel-2); }
.h-empty-title { font-family: var(--h-font-d); font-weight: 540; font-size: 20px; margin: 0 0 8px; color: var(--h-ink); }
.h-empty-sub { color: var(--h-muted); font-size: 14px; margin: 0 0 18px; }

/* ============================ CATEGORY VIEW HEADER ==================== */
.h-cathead { padding-block-start: 26px; }
.h-cat-rail {
    margin-block-start: 16px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-block-end: 6px;
}
.h-cat-rail::-webkit-scrollbar { display: none; }
.h-cat-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px 8px 8px;
    border-radius: var(--h-r-pill);
    background: var(--h-panel);
    border: 1.5px solid var(--h-line);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--h-ink-soft);
    white-space: nowrap;
    transition: border-color .2s var(--h-ease), transform .2s var(--h-ease);
}
[dir="rtl"] .h-cat-link { padding: 8px 8px 8px 16px; }
.h-cat-link img { inline-size: 30px; block-size: 30px; border-radius: 50%; object-fit: cover; }
.h-cat-link:hover { transform: translateY(-2px); border-color: var(--h-sage); }
.h-cat-link.is-active { background: var(--h-ink); border-color: var(--h-ink); color: var(--h-bg); }

/* ============================ SINGLE PRODUCT ========================== */
.h-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--h-muted); margin-block: 22px 18px; flex-wrap: wrap; }
.h-crumb a { color: var(--h-accent); font-weight: 600; }
.h-crumb-sep { opacity: .6; }
[dir="rtl"] .h-crumb-sep { transform: scaleX(-1); }
.h-crumb-cur { color: var(--h-ink); }

.h-product {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.h-gallery { display: flex; flex-direction: column; gap: 12px; }
.h-gallery-main {
    display: block;
    border-radius: var(--h-r-lg);
    overflow: hidden;
    background: var(--h-panel-2);
    border: 1px solid var(--h-line);
    aspect-ratio: 1 / 1;
    box-shadow: var(--h-shadow-1);
}
.h-gallery-main img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.h-thumb-rail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.h-thumb-rail::-webkit-scrollbar { display: none; }
.h-thumb {
    flex: 0 0 auto;
    inline-size: 72px;
    block-size: 72px;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid var(--h-line);
    background: var(--h-panel-2);
    cursor: pointer;
    transition: border-color .2s var(--h-ease);
}
.h-thumb img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.h-thumb:hover { border-color: var(--h-accent); }

.h-product-info { display: flex; flex-direction: column; gap: 14px; }
.h-product-name {
    font-family: var(--h-font-d);
    font-weight: 560;
    font-size: clamp(1.5rem, 5vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: -.01em;
    color: var(--h-ink);
    margin: 6px 0 0;
}
.h-product-sub { color: var(--h-muted); font-size: 15px; margin: 0; }
.h-product-price { display: flex; align-items: baseline; gap: 10px; }
.h-product-price .h-price { font-size: 24px; }

.h-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.h-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--h-r-pill);
    background: var(--h-panel);
    border: 1px solid var(--h-line);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--h-ink-soft);
}
.h-chip-accent { background: var(--h-accent-wash); border-color: color-mix(in srgb, var(--h-accent) 30%, transparent); color: var(--h-accent-deep); }

.h-concierge-hint {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12.5px;
    color: var(--h-muted);
    line-height: 1.5;
    background: var(--h-panel-2);
    border: 1px solid var(--h-line);
    border-radius: var(--h-r-sm);
    padding: 12px 14px;
    margin: 0;
}
.h-concierge-hint i { color: #25d366; font-size: 18px; flex: none; margin-block-start: 1px; }

.h-prose { color: var(--h-ink-soft); font-size: 15px; line-height: 1.7; }
.h-prose h1, .h-prose h2, .h-prose h3 { font-family: var(--h-font-d); color: var(--h-ink); font-weight: 540; }
.h-prose a { color: var(--h-accent); text-decoration: underline; }
.h-prose img { border-radius: var(--h-r-sm); margin-block: 12px; }
.h-prose ul, .h-prose ol { padding-inline-start: 20px; }

/* ============================ VARIANT PICKER (restyle) ================ */
.sm-variants { margin: 4px 0 6px; gap: 16px; }
.sm-variant-label {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--h-muted) !important;
    opacity: 1 !important;
}
.sm-variant-opt {
    border: 1.5px solid var(--h-line) !important;
    border-radius: var(--h-r-pill) !important;
    padding: 9px 18px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    background: var(--h-panel) !important;
    color: var(--h-ink-soft) !important;
    opacity: 1 !important;
    box-shadow: var(--h-shadow-1);
    transition: border-color .2s var(--h-ease), background-color .2s var(--h-ease), color .2s var(--h-ease), transform .2s var(--h-ease) !important;
}
.sm-variant-opt:hover { transform: translateY(-1px); border-color: var(--h-sage) !important; }
.sm-variant-opt.is-selected {
    background: var(--h-accent) !important;
    border-color: var(--h-accent) !important;
    color: color-mix(in srgb, var(--tk-bg, #F6F1E9), #FFFFFF 70%) !important;
    box-shadow: 0 5px 14px rgb(from var(--tk-primary, #B5663E) r g b / .28) !important;
}
.sm-variant-opt:focus-visible { outline: 2px solid var(--h-accent) !important; outline-offset: 2px; }

/* ============================ CART DRAWER ============================= */
.h-drawer {
    background: var(--h-bg) !important;
    color: var(--h-ink);
    border-inline-start: 1px solid var(--h-line);
    inline-size: min(420px, 92vw) !important;
}
.h-drawer .offcanvas-header {
    border-block-end: 1px solid var(--h-line);
    padding: 18px 20px;
}
.h-drawer-title { font-family: var(--h-font-d); font-weight: 560; font-size: 20px; color: var(--h-ink); }
.h-drawer .offcanvas-body { padding: 16px 20px; }
.h-drawer-foot {
    padding: 16px 20px 20px;
    border-block-start: 1px solid var(--h-line);
    background: var(--h-panel-2);
}

.h-cart-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-block-end: 1px solid var(--h-line-soft);
}
.h-cart-item-img {
    inline-size: 72px;
    block-size: 72px;
    flex: none;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--h-line);
    background: var(--h-panel);
}
.h-cart-item-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.h-cart-item-name { font-family: var(--h-font-d); font-weight: 540; font-size: 15px; color: var(--h-ink); margin: 0; }
.h-cart-item-sub { font-size: 12px; color: var(--h-muted); }
.sm-cart-variants { color: var(--h-accent) !important; font-weight: 600; }
.h-cart-item-price { font-weight: 700; font-size: 15px; color: var(--h-accent-deep); margin: 4px 0 0; unicode-bidi: isolate; }
.h-cart-item-actions { display: flex; align-items: center; gap: 8px; margin-block-start: 8px; }
.h-qty-btn {
    inline-size: 32px;
    block-size: 32px;
    border-radius: 10px;
    border: 1px solid var(--h-line);
    background: var(--h-panel);
    color: var(--h-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s var(--h-ease), color .2s var(--h-ease);
}
.h-qty-btn svg { width: 17px; height: 17px; }
.h-qty-btn:hover { border-color: var(--h-accent); color: var(--h-accent); }
.h-qty-num { min-inline-size: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.h-qty-remove { margin-inline-start: 4px; }
.h-qty-remove:hover { border-color: var(--tk-danger, #c0573a); color: var(--tk-danger, #c0573a); }

.h-cart-empty { text-align: center; padding: 40px 10px; }
.h-cart-empty-text { color: var(--h-muted); font-size: 14px; margin: 0 0 18px; }

.h-cart-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-family: var(--h-font-d);
    font-weight: 540;
    font-size: 17px;
    margin: 0 0 14px;
    color: var(--h-ink);
}
.h-cart-total-num { font-size: 21px; color: var(--h-accent-deep); unicode-bidi: isolate; }
.h-place-order {
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 14px;
    border-radius: var(--h-r-pill);
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background-color .2s var(--h-ease), transform .2s var(--h-ease);
}
.h-place-order i { font-size: 20px; }
.h-place-order:hover { background: #1eb858; transform: translateY(-1px); }

/* ============================ ORDER MODAL ============================= */
.h-modal .modal-content {
    position: relative;
    border: 1px solid var(--h-line);
    border-radius: var(--h-r-lg);
    background: var(--h-panel);
    color: var(--h-ink);
    overflow: hidden;
}
.h-modal .modal-header { border-block-end: 1px solid var(--h-line); padding: 18px 20px; }
.h-modal .modal-title { font-family: var(--h-font-d); font-weight: 560; font-size: 19px; color: var(--h-ink); }
.h-modal-sub { color: var(--h-muted); font-size: 13px; }
.h-modal .modal-body { padding: 20px; }
.h-modal .modal-footer { border-block-start: 1px solid var(--h-line); padding: 14px 20px; gap: 10px; }
.h-modal .form-label { font-weight: 600; font-size: 13.5px; color: var(--h-ink-soft); margin-block-end: 6px; }
.h-modal .form-control {
    border-radius: var(--h-r-sm);
    border: 1.5px solid var(--h-line);
    background: var(--h-bg);
    color: var(--h-ink);
    padding: 11px 14px;
    font-size: 14px;
}
.h-modal .form-control:focus { border-color: var(--h-accent); box-shadow: 0 0 0 3px var(--h-accent-wash); }
.h-modal .form-control::placeholder { color: var(--h-muted); }
.h-modal .form-check-input:checked { background-color: var(--h-accent); border-color: var(--h-accent); }
.h-modal .form-check-label { color: var(--h-ink-soft); }
.h-modal .btn-close { position: relative; z-index: 2; }

/* ============================ FOOTER ================================== */
.h-footer {
    margin-block-start: 30px;
    background: var(--h-ink);
    color: var(--h-bg);
    padding-block: 36px 28px;
    background-image:
        repeating-linear-gradient(90deg, rgb(from var(--tk-bg, #F6F1E9) r g b / .035) 0 1px, transparent 1px 8px),
        repeating-linear-gradient(0deg, rgb(from var(--tk-bg, #F6F1E9) r g b / .035) 0 1px, transparent 1px 8px);
}
.h-footer-top {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-block-end: 22px;
    border-block-end: 1px solid rgb(from var(--tk-bg, #F6F1E9) r g b / .14);
}
.h-footer-brand { min-width: 0; }
.h-footer-wordmark { font-family: var(--h-font-d); font-weight: 560; font-size: 24px; color: var(--h-bg); display: block; }
.h-footer-tag { color: #C9C0B4; font-size: 14px; margin: 6px 0 0; max-width: 40ch; }
.h-social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.h-social a {
    inline-size: 40px;
    block-size: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(from var(--tk-bg, #F6F1E9) r g b / .08);
    border: 1px solid rgb(from var(--tk-bg, #F6F1E9) r g b / .16);
    color: var(--h-bg);
    transition: background-color .2s var(--h-ease), color .2s var(--h-ease), transform .2s var(--h-ease);
}
.h-social a:hover { background: var(--h-accent); border-color: var(--h-accent); transform: translateY(-2px); }
.h-social i { font-size: 19px; }
.h-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-block: 20px;
}
.h-footer-links a { color: #C9C0B4; font-size: 13.5px; transition: color .2s var(--h-ease); }
.h-footer-links a:hover { color: var(--h-accent); }
.h-footer-base {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12.5px;
    color: #A89E91;
}
.h-footer-base a { color: var(--h-bg); }
.h-footer-base i { color: var(--h-accent); font-size: 13px; vertical-align: -1px; }

/* ============================ MOBILE DOCK ============================= */
.h-dock {
    position: fixed;
    inset-block-end: 0;
    inset-inline: 0;
    z-index: 70;
    display: flex;
    background: color-mix(in srgb, var(--h-bg) 92%, transparent);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border-block-start: 1px solid var(--h-line);
    padding-block: 7px;
    padding-block-end: calc(7px + env(safe-area-inset-bottom));
}
.h-dock a {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--h-muted);
    transition: color .2s var(--h-ease);
}
.h-dock a i { font-size: 22px; }
.h-dock a.is-active { color: var(--h-accent); }

/* ============================ POLICY =================================== */
.h-policy { padding-block: 30px; }
.h-policy .h-display { margin-block: 12px 18px; }

/* ============================ ALERT PILL (toast) ====================== */
/* compact top-center pill — NEVER a full-screen panel */
.alert-float {
    position: fixed !important;
    /* Center via left:50% + translateX(-50%) — MUST match (and override) the shared
       store.css which sets left:50%; transform:translateX(-50%); bottom:-100px.
       Using inset-inline:0 fought the shared transform and ballooned the pill. */
    top: 18px !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;   /* physical centering — direction-agnostic */
    margin: 0 !important;
    width: max-content !important;
    max-width: min(360px, calc(100vw - 32px)) !important;
    z-index: 9999;
    display: none;
    border-radius: var(--h-r-pill) !important;
    padding: 12px 22px !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    box-shadow: var(--h-shadow-2) !important;
    border: 1px solid transparent !important;
    opacity: 1 !important;            /* shared base sets opacity:0; .show animates in below */
    transition: none !important;       /* drop shared top/opacity transition (we animate via keyframe) */
}
.alert-float.show { display: block; animation: h-pill-in .3s var(--h-ease); }
.alert-success.alert-float { background: var(--h-ink) !important; color: var(--h-bg) !important; }
.alert-danger.alert-float { background: var(--h-accent) !important; color: color-mix(in srgb, var(--tk-bg, #F6F1E9), #FFFFFF 70%) !important; }
/* keep the X centering (translateX -50%) while sliding in from the top */
@keyframes h-pill-in {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================ SOFT SETTLE (signature motion) ========== */
/* Objects fade-and-settle into place on reveal, like being placed on a shelf. */
/* Only hide for the reveal when JS is present (the inline head script adds .js).
   No-JS / crawlers / failed JS => content stays visible (never a dead page). */
.js .h-settle {
    opacity: 0;
    transform: translateY(12px);
    will-change: transform, opacity;
}
.h-settle.is-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s var(--h-ease), transform .5s var(--h-ease);
}
/* gentle stagger within a row */
.h-settle:nth-child(2) { transition-delay: .06s; }
.h-settle:nth-child(3) { transition-delay: .12s; }
.h-settle:nth-child(4) { transition-delay: .18s; }
.h-settle:nth-child(5) { transition-delay: .06s; }
.h-settle:nth-child(6) { transition-delay: .12s; }

/* ============================ DESKTOP LAYER (>=760px) ================= */
@media (min-width: 760px) {
    body { font-size: 16px; }
    .h-shell { padding-inline: 28px; }

    .h-hero-media { aspect-ratio: 21 / 9; }
    .h-hero-cap {
        position: absolute;
        inset-block-end: 26px;
        inset-inline-start: 28px;
        margin: 0;
        max-inline-size: 480px;
        padding: 28px 30px;
    }

    .h-tilegrid { grid-template-columns: repeat(4, 1fr); }
    .h-tilerail .h-tile { flex: 0 0 300px; }

    .h-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
    .h-prodrail .h-card { flex: 0 0 250px; }

    .h-story { padding: 44px 40px; }

    .h-product { grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
    .h-gallery { position: sticky; top: 86px; }

    .h-dock { display: none; }
    body { padding-block-end: 0; }

    .h-materials { padding: 18px 22px; }
}

@media (min-width: 1024px) {
    .h-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================ RTL fine-tuning ========================= */
[dir="rtl"] .h-add:hover { transform: translateY(-2px) rotate(6deg); }

/* ============================ REDUCED MOTION (kill layer) ============= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .js .h-settle { opacity: 1; transform: none; }
    .h-settle.is-in { transition: opacity .2s ease; }
    .h-card:hover, .h-tile:hover, .h-btn:hover, .h-add:hover { transform: none; }
    .h-tile:hover .h-tile-img, .h-card-media:hover .h-card-img:not(.h-card-img-alt) { transform: none; }
}
