:root {
    --bg: #f0e8e1;
    --bg-soft: #f7efe8;
    --surface: #fffcfa;
    --ink: #352032;
    --ink-soft: #543948;
    --plum: #7a3d5c;
    --rose: #edd6e0;
    --gold: #b9844f;
    --gold-bright: #9a6a35;
    --gold-soft: #f0dcc4;
    --sand: #352032;
    --mute: rgba(53, 32, 50, .64);
    --line: rgba(122, 61, 92, .2);
    --ok: #2f8a55;
    --bad: #c45c5c;
    --wa: #1f9e55;
    --font: "Tajawal", system-ui, sans-serif;
    --display: "El Messiri", "Tajawal", serif;
    --dock-h: 58px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --shadow: 0 12px 32px rgba(53, 32, 50, .14);
    --shadow-lg: 0 18px 44px rgba(53, 32, 50, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top-h, 52px); overflow-x: clip; max-width: 100%; }
:root { --top-h: 44px; }
[hidden] { display: none !important; }
body.sx {
    margin: 0;
    overflow-x: clip;
    max-width: 100%;
    font-family: var(--font);
    background:
        radial-gradient(ellipse at 8% 0%, rgba(237, 214, 224, .35), transparent 42%),
        radial-gradient(ellipse at 92% 12%, rgba(240, 220, 190, .28), transparent 38%),
        var(--bg);
    color: var(--ink);
    line-height: 1.65;
    padding-bottom: calc(var(--dock-h) + var(--safe-b) + 12px);
}
img, iframe, video { max-width: 100%; }
img { display: block; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.sx-skip {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sx-skip:focus {
    width: auto; height: auto; margin: 0; clip: auto; overflow: visible;
    inset-inline-start: .5rem; top: .5rem;
    background: var(--gold); color: #fff; padding: .5rem 1rem; z-index: 100;
}

/* Top */
.sx-top {
    position: fixed; inset-inline: 0; top: 0; z-index: 30;
    display: flex; align-items: center; gap: .35rem;
    height: var(--top-h);
    min-height: var(--top-h);
    max-height: var(--top-h);
    padding: 0 .7rem;
    background: linear-gradient(105deg, rgba(74, 32, 52, .88), rgba(122, 61, 92, .8) 55%, rgba(154, 106, 53, .62));
    border-bottom: 1px solid rgba(232, 201, 160, .22);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(53, 32, 50, .16);
    overflow: hidden;
}
.sx-top::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: -35%;
    width: 28%;
    background: linear-gradient(100deg, transparent, rgba(255,247,230,.22), transparent);
    animation: sxNavShine 4.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes sxNavShine {
    0%, 22% { inset-inline-start: -40%; opacity: 0; }
    40% { opacity: 1; }
    78%, 100% { inset-inline-start: 115%; opacity: 0; }
}
.sx-top > * { position: relative; z-index: 1; }
.sx-top.is-solid {
    background: linear-gradient(105deg, rgba(58, 28, 42, .96), rgba(106, 50, 78, .94) 50%, rgba(122, 78, 42, .9));
    box-shadow: 0 2px 8px rgba(53, 32, 50, .2);
}
.sx-top__brand { display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.sx-top__brand img {
    width: 32px; height: 32px; object-fit: contain; border-radius: 50%;
    background: #fff;
    padding: 2px;
    box-shadow: 0 0 0 1px rgba(232, 201, 160, .65);
}
.sx-top__brand b { font-family: var(--display); font-weight: 700; font-size: .95rem; color: #f7e7d2; }
.sx-top__nav {
    display: flex; align-items: center; gap: .28rem;
    margin-inline-start: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
}
.sx-top__mode {
    border: 1px solid rgba(247, 231, 210, .35);
    background: rgba(255,255,255,.1);
    color: #f7efe8;
    border-radius: 999px;
    padding: .2rem .65rem;
    cursor: pointer;
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}
.sx-top__mode.is-on {
    background: linear-gradient(135deg, #e8c9a0, #c4925a);
    border-color: transparent;
    color: #3a2434;
}
.sx-top__link {
    font-size: .76rem;
    font-weight: 700;
    color: #f7e7d2;
    padding: .18rem .4rem;
    white-space: nowrap;
    text-decoration: none;
}
.sx-top__place {
    background: rgba(255,255,255,.12);
    border-radius: 999px;
    padding: .2rem .65rem !important;
    box-shadow: inset 0 0 0 1px rgba(247, 231, 210, .35);
}
.sx-top__place:hover { background: rgba(232, 201, 160, .28); color: #fff; }
.sx-top__place.is-on {
    background: linear-gradient(135deg, #e8c9a0, #c4925a);
    color: #3a2434;
}
.sx-top__acts { display: flex; gap: .3rem; flex-shrink: 0; }
.sx-top__wa, .sx-top__bag {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid rgba(247, 231, 210, .35);
    background: rgba(255,255,255,.12);
    display: grid; place-items: center; cursor: pointer; color: #f7e7d2;
    font-size: .95rem;
}
.sx-top__wa { color: #7dffa8; }
.sx-top__bag { position: relative; }
.sx-top__bag span {
    position: absolute; top: -3px; inset-inline-end: -3px;
    min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px;
    background: #e8c9a0; color: #3a2434; font-size: 10px; font-weight: 800;
    display: grid; place-items: center;
}

/* Contact dropdown in the top bar */
.sx-top__social { position: relative; }
.sx-top__social-btn {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .76rem; font-weight: 700;
    color: #f7e7d2; padding: .18rem .4rem;
    white-space: nowrap; cursor: pointer;
    background: transparent; border: 0; font-family: inherit;
}
.sx-top__social-btn:hover { color: #fff; }
.sx-top__social-drop {
    position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
    display: flex; gap: 8px; padding: 12px;
    background: var(--surface); border-radius: 16px;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 40;
}
.sx-top__social:hover .sx-top__social-drop,
.sx-top__social[aria-expanded="true"] .sx-top__social-drop {
    opacity: 1; visibility: visible; transform: none;
}
.sx-top__social-link {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: #352032; color: #fff; text-decoration: none; font-size: 1.2rem;
    transition: transform .2s ease;
}
.sx-top__social-link:hover { transform: scale(1.1); }
.sx-top__social-link--facebook { background: #1877F2; }
.sx-top__social-link--tiktok { background: #010101; }
.sx-top__social-link--instagram { background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80); }
.sx-top__social-link--twitter { background: #010101; }
.sx-top__social-link--whatsapp { background: #25D366; }

/* Hero */
.sx-hero {
    position: relative;
    min-height: min(100vh, 920px);
    min-height: min(100dvh, 920px);
    display: grid; align-items: end;
}
.sx-hero__bg { position: absolute; inset: 0; overflow: hidden; }
.sx-hero__bg img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 40%;
    opacity: 0; transform: scale(1);
    transition: opacity 1.1s ease, transform 9s ease;
}
.sx-hero__bg img.is-on { opacity: 1; transform: scale(1); }
.sx-hero__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(105deg, rgba(40, 22, 34, .48) 0%, rgba(40, 22, 34, .12) 42%, transparent 68%),
        linear-gradient(180deg,
            transparent 0%,
            transparent 58%,
            rgba(240, 232, 225, .25) 72%,
            rgba(240, 232, 225, .72) 88%,
            var(--bg) 100%);
}
.sx-hero__inner {
    position: relative; z-index: 1;
    padding: 6.5rem 1.25rem 2.5rem;
    max-width: 640px;
    animation: sxIn .8s ease both;
}
.sx-hero__inner::before {
    content: "";
    position: absolute;
    inset: 4.8rem 0 0.4rem;
    background: linear-gradient(120deg, rgba(28, 14, 24, .55), rgba(28, 14, 24, .28) 55%, transparent 85%);
    border-radius: 28px;
    filter: blur(18px);
    z-index: -1;
    pointer-events: none;
}
.sx-hero__logo {
    width: 110px; height: 110px; object-fit: contain;
    margin-bottom: .95rem;
    background: rgba(255,255,255,.95);
    border-radius: 50%;
    padding: .45rem;
    box-shadow:
        0 0 0 3px rgba(232, 201, 160, .7),
        0 0 0 8px rgba(255,255,255,.18),
        0 16px 36px rgba(0,0,0,.35);
    filter: none;
}
.sx-hero__kicker {
    margin: 0 0 .35rem;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 700;
    color: #f7e7d2;
    text-shadow:
        0 1px 0 rgba(0,0,0,.45),
        0 2px 8px rgba(0,0,0,.55),
        0 0 18px rgba(0,0,0,.4);
}
.sx-hero h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2.5rem, 9vw, 4.2rem);
    line-height: 1.15;
    color: #fffaf3;
    font-weight: 700;
    text-shadow:
        0 1px 0 rgba(0,0,0,.5),
        0 4px 12px rgba(0,0,0,.55),
        0 12px 32px rgba(0,0,0,.45),
        0 0 2px rgba(0,0,0,.8);
}
.sx-hero__tag {
    margin: .55rem 0 .35rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    text-shadow:
        0 1px 0 rgba(0,0,0,.5),
        0 3px 10px rgba(0,0,0,.55),
        0 0 1px rgba(0,0,0,.7);
}
.sx-hero__lead {
    margin: 0 0 1.35rem;
    color: #fff;
    max-width: 36ch;
    font-size: 1.02rem;
    text-shadow:
        0 1px 0 rgba(0,0,0,.45),
        0 3px 12px rgba(0,0,0,.5),
        0 0 1px rgba(0,0,0,.65);
}
.sx-hero__go { display: flex; flex-wrap: wrap; gap: .65rem; }

.sx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    border: 1px solid transparent; border-radius: 999px;
    padding: .85rem 1.3rem; font-weight: 800; cursor: pointer;
    transition: transform .18s ease, opacity .18s ease, background .18s ease, box-shadow .18s ease;
}
.sx-btn:hover { transform: translateY(-1px); }
.sx-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.sx-btn--gold {
    background: linear-gradient(135deg, #e2b887, #c4925a 55%, #a87440);
    color: #fff;
    box-shadow: 0 8px 20px rgba(168, 116, 64, .28);
}
.sx-btn--line {
    background: rgba(255,255,255,.88);
    border-color: rgba(255,255,255,.5);
    color: var(--ink);
}
.sx-hero .sx-btn--line { color: var(--ink); }
.sx-btn--wa {
    background: linear-gradient(135deg, #34c76a, #1f9e55);
    color: #fff;
    box-shadow: 0 8px 22px rgba(31, 158, 85, .28);
}
.sx-btn--wa:hover { box-shadow: 0 10px 26px rgba(31, 158, 85, .38); }
.sx-btn--block { width: 100%; }
.sx-btn--sm { padding: .45rem .9rem; font-size: .82rem; }

/* Promo strip */
.sx-promo {
    overflow: clip;
    max-width: 100%;
    contain: inline-size;
    margin: 0;
    padding: .85rem 0;
    border-block: 1px solid rgba(201, 162, 39, .2);
    background: linear-gradient(90deg, rgba(122,61,92,.08), rgba(201,162,39,.12), rgba(122,61,92,.08));
}
.sx-promo__track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: sxMarquee 28s linear infinite;
    padding-inline: 2rem;
}
.sx-promo p {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.05rem, 2.8vw, 1.28rem);
    color: var(--plum);
    font-weight: 600;
    white-space: nowrap;
}
@keyframes sxMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

/* Story */
.sx-story {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .85rem;
    padding: 0 1.15rem 1.5rem;
    max-width: 980px;
    margin: 0 auto;
}
.sx-story article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.sx-story article:hover {
    transform: translateY(-8px) rotate(-.6deg);
    box-shadow: 0 18px 36px rgba(53,32,50,.16);
}
.sx-story i { color: var(--gold); font-size: 1.35rem; }
.sx-story h3 {
    margin: .45rem 0 .2rem;
    font-family: var(--display);
    font-size: 1.35rem;
    color: var(--plum);
}
.sx-story p { margin: 0; color: var(--mute); font-size: .9rem; }

/* قناة المتجر */
.chan { padding: 1rem 1.15rem; max-width: 980px; margin: 0 auto; }
.chan__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: .7rem; }
.chan__title { margin: 0; font-family: var(--display); font-size: 1.3rem; color: var(--plum); display: flex; align-items: center; gap: 8px; }
.chan__title i { color: var(--gold); }
.chan__all { color: var(--gold-bright); font-weight: 800; font-size: .85rem; text-decoration: none; }
.chan__all:hover { text-decoration: underline; }
.chan-rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.chan-rail::-webkit-scrollbar { display: none; }
.chan-rail__item { flex: none; width: 84px; background: none; border: 0; padding: 0; cursor: pointer; display: grid; gap: 6px; justify-items: center; scroll-snap-align: center; }
.chan-rail__ring { position: relative; width: 76px; height: 76px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--gold), #e8b7c6); }
.chan-rail__ring img, .chan-rail__ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; border: 3px solid var(--surface); background: var(--rose); color: var(--plum); }
.chan-rail__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.3rem; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.chan-rail__cap { font-size: .76rem; color: var(--ink-soft); font-weight: 700; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan-rail__new { position: absolute; top: -2px; inset-inline-end: 0; z-index: 3; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #16a34a, #0d8a4a); color: #fff; font-size: .8rem; box-shadow: 0 3px 10px rgba(13,138,74,.5); border: 2px solid var(--surface); }

.chan-page { padding: 1.5rem 1.15rem 2rem; max-width: 1080px; margin: 0 auto; }
.chan-page__kicker { color: var(--gold-bright); font-weight: 800; letter-spacing: .1em; font-size: .8rem; }
.chan-page__title { margin: 2px 0 6px; font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.4rem); color: var(--plum); }
.chan-page__lead { margin: 0 0 1.4rem; color: var(--mute); }
.chan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.chan-card { position: relative; border: 0; padding: 0; cursor: pointer; background: none; text-align: start; display: grid; gap: 8px; }
.chan-card__open { position: relative; border: 0; padding: 0; background: none; cursor: pointer; display: block; }
.chan-card__media { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--rose); box-shadow: var(--shadow); }
.chan-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chan-card__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--plum); font-size: 2rem; }
.chan-card__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 2rem; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.chan-card:hover .chan-card__media { transform: translateY(-4px); }
.chan-card__media { transition: transform .3s ease; }
.chan-card__new { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, #16a34a, #0d8a4a); color: #fff; font-size: .7rem; font-weight: 800; box-shadow: 0 4px 12px rgba(13,138,74,.4); }
.chan-card__badge { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.94); color: #1f6f5b; font-size: .7rem; font-weight: 800; }
.chan-card__cap { font-size: .85rem; color: var(--ink-soft); font-weight: 700; line-height: 1.5; }
.chan-card__acts { display: flex; align-items: center; gap: 8px; }
.chan-card__act { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--plum); cursor: pointer; font-size: 1rem; text-decoration: none; }
.chan-card__act:hover { background: var(--gold-soft); }
.chan-card__act[href] { color: #1f9e55; }
.chan-card__views { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; color: var(--mute); font-size: .8rem; font-weight: 700; }
.chan-card__likes { display: inline-flex; align-items: center; gap: 4px; color: #e11d48; font-size: .8rem; font-weight: 800; }
.chan-empty { text-align: center; padding: 3rem 1rem; color: var(--mute); }
.chan-empty i { font-size: 2.6rem; display: block; margin-bottom: 10px; color: var(--gold); }
@media (max-width: 620px) { .chan-grid { grid-template-columns: repeat(2, 1fr); } }


/* Gate */
.sx-gate { padding: 1.5rem 1.15rem 1rem; max-width: 820px; margin: 0 auto; }
.sx-gate__box {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.25rem;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(243, 224, 232, .7), transparent 55%),
        var(--surface);
    box-shadow: var(--shadow);
}
.sx-gate h2 {
    margin: 0 0 1rem;
    font-family: var(--display);
    font-size: clamp(1.55rem, 4vw, 2.05rem);
    color: var(--plum);
}
.sx-mode { display: grid; gap: .65rem; grid-template-columns: 1fr 1fr; }
.sx-mode__btn {
    text-align: start;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 1rem;
    cursor: pointer;
}
.sx-mode__btn strong { display: block; font-size: 1.15rem; margin-bottom: .25rem; color: var(--ink); }
.sx-mode__btn small { color: var(--mute); font-size: .8rem; line-height: 1.45; display: block; }
.sx-mode__btn.is-on {
    border-color: var(--gold);
    background: var(--gold-soft);
    box-shadow: inset 0 0 0 1px rgba(196, 146, 90, .25);
}
.sx-date {
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr 1fr;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.sx-date.is-needed {
    border-radius: 16px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(196, 146, 90, .45);
    background: linear-gradient(180deg, rgba(196, 146, 90, .12), rgba(255,255,255,.6));
    box-shadow: 0 10px 28px rgba(58, 36, 52, .08);
}
.sx-date label { display: grid; gap: .35rem; font-size: .82rem; color: var(--mute); }
.sx-date .sx-req { color: #c45a3a; font-style: normal; font-weight: 800; }
.sx-date input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .7rem .8rem;
    color-scheme: light;
}
.sx-date input:disabled {
    opacity: .55;
    background: #f5f0ec;
}
.sx-date__hint {
    grid-column: 1 / -1;
    margin: 0;
    font-size: .85rem;
    color: var(--gold-bright);
}

.sx-gallery { position: relative; padding: 1.5rem 1.15rem 2rem; max-width: 1440px; margin: 0 auto; }
.sx-gallery.is-locked .sx-sticky,
.sx-gallery.is-locked .sx-grid,
.sx-gallery.is-locked .sx-empty {
    opacity: .35;
    pointer-events: none;
    filter: grayscale(.2);
}
.sx-gallery__lock {
    position: absolute;
    inset: 12px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: 22px;
    background: rgba(255, 252, 248, .94);
    border: 1px dashed rgba(196, 146, 90, .45);
    color: var(--plum);
}
.sx-gallery__lock strong {
    display: block;
    font-family: var(--display);
    font-size: 1.25rem;
    margin-bottom: .4rem;
}
.sx-gallery__lock p {
    margin: 0 auto .9rem;
    max-width: 28rem;
    color: var(--mute);
    font-size: .92rem;
    line-height: 1.55;
}
.sx-gallery__bar {
    display: flex; flex-wrap: wrap; gap: .55rem;
    align-items: end; justify-content: space-between;
    margin-bottom: .4rem;
}
.sx-gallery h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.35rem, 3.2vw, 1.75rem);
    color: var(--plum);
}
.sx-gallery__bar p { margin: .15rem 0 0; color: var(--mute); font-size: .82rem; }
.sx-q {
    flex: 1 1 180px;
    max-width: 280px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .5rem .9rem;
    box-shadow: 0 2px 10px rgba(58,36,52,.04);
}
.sx-chips-wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .35rem;
    align-items: center;
    margin-bottom: .3rem;
}
.sx-chips {
    display: flex; flex-wrap: nowrap; gap: .4rem;
    overflow-x: auto; padding: .2rem .1rem .35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.sx-chips::-webkit-scrollbar { display: none; }
.sx-chips__nav {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--plum);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 5px 12px rgba(53, 32, 50, .14);
    flex-shrink: 0;
    transition: opacity .2s ease, transform .15s ease;
}
.sx-chips__nav:hover { transform: scale(1.06); }
.sx-chips__nav:disabled {
    opacity: .28;
    cursor: default;
    transform: none;
    box-shadow: none;
}
.sx-chips button {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: .5rem 1rem;
    cursor: pointer;
    white-space: nowrap;
    font-size: .88rem;
    color: var(--ink-soft);
    box-shadow: 0 6px 16px rgba(53, 32, 50, .14);
    transition: box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.sx-chips button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(53, 32, 50, .2);
}
.sx-chips button.is-on {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--gold-bright);
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(154, 106, 53, .28);
}
.sx-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

/* Empty */
.sx-empty {
    text-align: center;
    color: var(--mute);
    padding: 2.8rem 1.2rem;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.sx-empty > i {
    font-size: 2.2rem;
    color: var(--plum);
    display: block;
    margin-bottom: .65rem;
}
.sx-empty__title {
    margin: 0 0 .45rem;
    font-family: var(--display);
    font-size: 1.45rem;
    color: var(--ink);
    font-weight: 700;
}
.sx-empty__lead {
    margin: 0 auto 1.15rem;
    max-width: 36ch;
    font-size: .95rem;
    line-height: 1.7;
}

.sx-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: border-color .25s ease, transform .28s ease, box-shadow .28s ease;
}
.sx-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 132, 79, .45);
}
.sx-card.is-picked {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px rgba(196,146,90,.35), var(--shadow);
}
.sx-card.is-busy { opacity: .55; }
.sx-card__media {
    position: relative;
    aspect-ratio: 4 / 4.6;
    background: linear-gradient(180deg, #f3e4ea, #ebe0d6);
    overflow: hidden;
}
.sx-card__media img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform .6s cubic-bezier(.22,.61,.36,1), filter .45s ease;
    transform-origin: center 30%;
}
.sx-card:hover .sx-card__media img {
    filter: brightness(1.02);
}
.sx-card__mark {
    position: absolute; top: .55rem; inset-inline-end: .55rem;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--gold); color: #fff;
    display: none; place-items: center; font-weight: 900; font-size: .9rem;
    z-index: 1;
}
.sx-card.is-picked .sx-card__mark { display: grid; }
.sx-card__flag {
    position: absolute; top: .55rem; inset-inline-start: .55rem;
    font-size: .7rem; padding: .22rem .5rem; border-radius: 999px;
    background: rgba(255,255,255,.92); color: var(--gold-bright);
    font-weight: 700;
    z-index: 1;
}
.sx-card__flag.is-ok { color: var(--ok); }
.sx-card__flag.is-no { color: var(--bad); }
.sx-card__body { padding: .65rem .55rem .7rem; }
.sx-card__name {
    margin: 0;
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    color: var(--ink);
}
.sx-card__meta { margin: .15rem 0 .35rem; color: var(--mute); font-size: .7rem; }
.sx-card__price {
    margin: 0 0 .45rem;
    color: var(--gold-bright);
    font-weight: 800;
    font-size: .9rem;
}
.sx-card__add {
    margin: 0;
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    border-radius: 10px;
    padding: .48rem .35rem;
    cursor: pointer;
    font-weight: 800;
    font-size: .76rem;
    color: var(--ink);
}
.sx-card__acts {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .35rem;
}
.sx-card__add:hover { border-color: var(--gold); color: var(--gold-bright); }
.sx-card__add.is-on {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--gold-bright);
}
.sx-card__add:disabled { opacity: .45; cursor: not-allowed; }
.sx-card__view {
    width: 44px;
    border: 1px solid rgba(196, 146, 90, .45);
    border-radius: 10px;
    background: var(--gold-soft);
    color: var(--gold-bright);
    cursor: pointer;
    display: grid;
    place-items: center;
    position: relative;
    animation: sxGlow 2.2s ease-in-out infinite;
}
.sx-card__view i { font-size: 1.05rem; }
.sx-card__view::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    border: 1px solid rgba(196, 146, 90, .35);
    animation: sxPulse 2.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes sxGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196,146,90,.12); }
    50% { box-shadow: 0 0 16px 2px rgba(196,146,90,.4); }
}
@keyframes sxPulse {
    0%, 100% { opacity: .35; transform: scale(1); }
    50% { opacity: .9; transform: scale(1.04); }
}

/* Sticky filters */
.sx-sticky {
    position: sticky;
    top: var(--top-h);
    z-index: 20;
    background: rgba(240, 232, 225, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    margin: 0 -1.15rem 1rem;
    padding: .45rem 1.15rem .3rem;
    box-shadow: 0 8px 20px rgba(53, 32, 50, .06);
}
.sx-status {
    position: relative;
    overflow: hidden;
    margin-bottom: .55rem;
    padding: .75rem 1rem .8rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #3a2238, #6a3558 55%, #8a5a32);
    color: #fff8ee;
    border: 1px solid rgba(244, 226, 168, .35);
    box-shadow: 0 12px 28px rgba(53, 32, 50, .18);
}
.sx-status__glow {
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 20% 40%, rgba(244,226,168,.28), transparent 42%);
    animation: sxStatusGlow 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes sxStatusGlow {
    50% { transform: translateX(18%) scale(1.08); opacity: .75; }
}
.sx-status__badge {
    position: relative;
    display: inline-block;
    margin: 0 0 .35rem;
    padding: .18rem .7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f4e2a8, #c9a227);
    color: #3a2434;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
}
.sx-status__title {
    position: relative;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.05rem, 2.6vw, 1.35rem);
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
}
.sx-status__hint {
    position: relative;
    margin: .35rem 0 0;
    font-size: .9rem;
    font-weight: 600;
    color: rgba(255,247,238,.88);
}
.sx-status[data-kind="buy"] {
    background: linear-gradient(135deg, #1f4d3a, #2d8a6e);
}
.sx-status[data-kind="hint"] {
    background: linear-gradient(135deg, #3a2238, #4a3728);
}
.sx-status[data-kind="wait"] .sx-status__hint {
    animation: sxPulse 1.2s ease-in-out infinite;
}
@keyframes sxPulse { 50% { opacity: .55; } }

/* Visit / foot */
.sx-visit {
    padding: 2.5rem 1.15rem 3rem;
    max-width: 980px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}
.sx-visit__head { margin-bottom: 1.25rem; }
.sx-visit__head h2 {
    margin: 0;
    font-family: var(--display);
    color: var(--plum);
    font-size: clamp(1.7rem, 4vw, 2.2rem);
}
.sx-visit__head p { margin: .35rem 0 0; color: var(--mute); }
.sx-branches { display: grid; gap: 1.15rem; }
.sx-branch {
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
}
@media (min-width: 980px) {
    .sx-branch { grid-template-columns: 1.05fr 1fr; align-items: stretch; }
}
.sx-branch__info { padding: 1.1rem 1.15rem; }
.sx-branch__info h3 {
    margin: 0 0 .55rem;
    font-family: var(--display);
    color: var(--plum);
    font-size: 1.45rem;
}
.sx-branch__info p { margin: 0 0 .4rem; color: var(--mute); font-size: .92rem; }
.sx-branch__info a { color: var(--gold-bright); }
.sx-branch__map {
    position: relative;
    height: 220px;
    min-height: 220px;
    background: var(--rose);
    overflow: hidden;
}
.sx-branch__map iframe {
    width: 100%;
    height: 220px;
    border: 0;
    display: block;
}
.sx-branch__map-hit {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .65rem;
    background: linear-gradient(180deg, transparent, rgba(53,32,50,.55));
    color: #fff;
    font-weight: 800;
    font-size: .88rem;
    pointer-events: auto;
}
.sx-branch__map-hit span {
    background: rgba(255,255,255,.96);
    color: var(--plum);
    border-radius: 999px;
    padding: .45rem .95rem;
    box-shadow: var(--shadow);
}
.sx-branch__map-hit:hover span { background: var(--gold-soft); }
.sx-visit__wa {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(31,158,85,.08), rgba(243,224,232,.45));
}
.sx-visit__wa p { margin: 0; color: var(--mute); }
.sx-visit__wa strong { color: var(--wa); }

/* Contact section */
.sx-social {
    max-width: 960px;
    margin: 2.5rem auto 1rem;
    padding: 2.25rem 1.25rem;
    text-align: center;
    background: var(--surface);
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.sx-social h2 {
    margin: 0 0 .35rem;
    font-family: var(--display);
    font-size: 1.9rem;
    color: var(--plum);
}
.sx-social__lead { margin: 0 0 1.25rem; color: var(--mute); font-weight: 700; }
.sx-social__links { justify-content: center; }

.sx-foot {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--mute);
    background: rgba(255,255,255,.45);
}
.sx-foot img { width: 48px; height: 48px; margin: 0 auto .5rem; object-fit: contain; }
.sx-foot strong {
    display: block;
    font-family: var(--display);
    color: var(--plum);
    font-size: 1.35rem;
}

/* Dock — شريط سفلي أنيق ومضغوط */
.sx-dock {
    position: fixed;
    inset-inline: auto;
    left: 50%;
    translate: -50% 0;
    bottom: calc(.55rem + var(--safe-b));
    z-index: 40;
    width: min(520px, calc(100% - 1.5rem));
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .6rem .55rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(58, 28, 42, .94), rgba(106, 50, 78, .92));
    border: 1px solid rgba(232, 201, 160, .35);
    backdrop-filter: blur(14px);
    box-shadow:
        0 10px 28px rgba(53, 32, 50, .28),
        0 0 0 1px rgba(255,255,255,.06) inset;
    animation: sxUp .35s ease both;
    color: #f7efe8;
}
.sx-dock__info {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: .12rem;
    text-align: center;
    justify-items: center;
    padding-inline: .35rem;
}
.sx-dock__info strong { font-size: .82rem; color: #fff; line-height: 1.25; }
.sx-dock__info span { color: #e8c9a0; font-weight: 800; font-size: .95rem; line-height: 1.2; }
.sx-dock__info em {
    font-style: normal;
    color: rgba(247, 239, 232, .78);
    font-size: .7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.sx-dock .sx-btn {
    padding: .55rem 1.05rem;
    font-size: .8rem;
    flex-shrink: 0;
}

/* Sheet */
.sx-sheet { position: fixed; inset: 0; z-index: 50; }
.sx-sheet__backdrop {
    position: absolute; inset: 0;
    background: rgba(40, 22, 34, .46);
    animation: sxFade .25s ease both;
}
@keyframes sxFade { from { opacity: 0; } to { opacity: 1; } }
.sx-sheet__panel {
    position: absolute;
    inset-inline-start: 0;
    inset-block: 0;
    width: min(400px, 100%);
    height: 100%;
    background: #fffdf9;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--safe-b);
    animation: sxSideInRtl .38s cubic-bezier(.22, 1, .36, 1) both;
    color: var(--ink);
    box-shadow: -16px 0 40px rgba(20, 8, 16, .22);
    overflow: hidden;
}
.sx-sheet.is-out .sx-sheet__panel { animation: sxSideOut .24s ease forwards; }
.sx-sheet.is-out .sx-sheet__backdrop { animation: sxFadeOut .24s ease forwards; }
@keyframes sxSideOut { to { opacity: 0; transform: translateX(-28px); } }
@keyframes sxFadeOut { to { opacity: 0; } }
@keyframes sxSideInRtl {
    from { opacity: .5; transform: translateX(-24px); }
    to { opacity: 1; transform: none; }
}
.sx-sheet__silk { display: none; }
.sx-sheet__head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .7rem .9rem;
    background: linear-gradient(135deg, #3b1f3a, #6a3558);
    color: #fff8ee;
}
.sx-sheet__jewel { display: none; }
.sx-sheet__kicker {
    margin: 0;
    color: #f4e2a8;
    font-size: .7rem;
    letter-spacing: .12em;
    font-weight: 800;
}
.sx-sheet__panel h3 {
    margin: .1rem 0 0;
    font-family: var(--display);
    font-size: 1.2rem;
    color: #fff;
}
.sx-sheet__head .sx-x { color: #fff8ee; }
.sx-sheet__meta {
    flex-shrink: 0;
    padding: .45rem .9rem;
    background: #f7efe8;
    color: var(--ink-soft);
    font-size: .8rem;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}
.sx-sheet__empty {
    color: var(--mute);
    padding: 2rem .5rem;
    text-align: center;
    font-family: var(--display);
}
@keyframes sxLineIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
@media (max-width: 639px) {
    .sx-sheet__panel {
        inset-inline: 0;
        width: 100%;
        border-radius: 18px 18px 0 0;
        inset-block: auto 0;
        height: min(90vh, 860px);
        animation: sxUp .3s ease both;
        box-shadow: 0 -16px 40px rgba(53, 32, 50, .2);
        background: #fffdf9;
    }
}
.sx-x {
    border: 0; background: transparent; color: var(--ink-soft);
    font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.sx-sheet__list {
    flex: 1 1 auto;
    overflow: auto;
    padding: .7rem .8rem 1rem;
    background: #fffdf9;
    min-height: 0;
}
.sx-line {
    display: grid;
    grid-template-columns: 48px 1fr auto auto;
    gap: .5rem;
    align-items: center;
    padding: .5rem;
    margin-bottom: .45rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    min-height: 64px;
    animation: sxLineIn .35s ease both;
}
.sx-line img {
    width: 44px; height: 54px;
    object-fit: contain; border-radius: 7px;
    background: #f7efe8;
}
.sx-line__info strong {
    display: block;
    font-size: .82rem;
    color: var(--ink);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sx-line__info small { color: var(--mute); font-size: .72rem; }
.sx-line__price { color: var(--gold-bright); font-weight: 800; font-size: .82rem; text-align: end; }
.sx-line__rm {
    width: 30px; height: 30px;
    border: 1px solid rgba(196, 92, 92, .35);
    background: #fff5f5;
    color: var(--bad);
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: .75rem;
    transition: background .15s ease, transform .15s ease;
}
.sx-line__rm:hover {
    background: #ffe3e3;
    transform: scale(1.06);
}
.sx-sheet__sum {
    display: flex; justify-content: space-between; align-items: center;
    padding: .55rem 1rem;
    border-block: 1px solid var(--line);
    background: var(--gold-soft);
    flex-shrink: 0;
}
.sx-sheet__sum strong {
    font-size: 1.1rem;
    color: var(--gold-bright);
}
.sx-sheet__form {
    padding: .55rem 1rem .85rem;
    display: grid; gap: .4rem;
    flex-shrink: 0;
}
.sx-sheet__form label {
    display: grid; gap: .15rem;
    font-size: .75rem; color: var(--mute);
}
.sx-sheet__form input {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .55rem .7rem;
}
.sx-sheet__form input.sx-input--accent {
    background: linear-gradient(180deg, #fff8ef, #f7ebe0);
    border: 1.5px solid rgba(196, 146, 90, .55);
    color: #4a2a40;
    font-weight: 700;
    text-align: center;
    font-size: 1.02rem;
    letter-spacing: .02em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.sx-sheet__form input.sx-input--accent::placeholder {
    color: #b08978;
    font-weight: 600;
    opacity: .85;
}
.sx-sheet__form input.sx-input--accent:focus {
    outline: none;
    border-color: var(--gold-bright);
    box-shadow: 0 0 0 3px rgba(196, 146, 90, .22);
}
.sx-sheet__hint { margin: 0; font-size: .78rem; color: var(--mute); text-align: center; }
.sx-hp { position: absolute !important; left: -9999px !important; height: 0 !important; width: 0 !important; opacity: 0 !important; }

.sx-toast {
    position: fixed; left: 50%; bottom: calc(var(--dock-h) + 24px + var(--safe-b));
    transform: translateX(-50%);
    z-index: 60;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    padding: .7rem 1.1rem;
    border-radius: 999px;
    font-size: .9rem;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 12px 30px rgba(58,36,52,.18);
}

@keyframes sxIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}
@keyframes sxUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

@media (min-width: 760px) {
    .sx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
@media (min-width: 1100px) {
    .sx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
}
@media (min-width: 1400px) {
    .sx-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.05rem; }
}
@media (max-width: 560px) {
    .sx-mode { grid-template-columns: 1fr; }
    .sx-date { grid-template-columns: 1fr; }
    .sx-story { grid-template-columns: 1fr; }
    .sx-dock {
        width: calc(100% - 1rem);
        border-radius: 16px;
        padding: .4rem .45rem .4rem .7rem;
    }
    .sx-dock .sx-btn { width: auto; }
}

/* Product view modal */
.sx-view { position: fixed; inset: 0; z-index: 70; }
.sx-view__backdrop {
    position: absolute; inset: 0;
    background: rgba(40, 22, 34, .55);
    backdrop-filter: blur(8px);
    animation: sxBackdropIn .35s ease both;
}
.sx-view__panel {
    position: absolute;
    inset: 0;
    height: 100vh;
    max-height: 100vh;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(232, 201, 160, .22), transparent 42%),
        radial-gradient(ellipse at 100% 0%, rgba(237, 214, 224, .55), transparent 50%),
        linear-gradient(180deg, #fffefc, var(--bg-soft));
    border-radius: 0;
    border: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    animation: sxViewIn .48s cubic-bezier(.22, 1, .36, 1) both;
    color: var(--ink);
    box-shadow:
        0 -18px 50px rgba(53, 32, 50, .28),
        0 0 0 1px rgba(255,255,255,.4) inset;
}
@media (min-width: 800px) {
    .sx-view__panel {
        inset: 0;
        translate: none;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        border: 0;
        grid-template-columns: 1.45fr .7fr;
        grid-template-rows: minmax(0, 1fr);
        overflow: hidden;
        animation: sxViewInDesk .5s cubic-bezier(.22, 1, .36, 1) both;
        box-shadow:
            0 28px 70px rgba(53, 32, 50, .32),
            0 0 0 1px rgba(255,255,255,.5) inset;
    }
    .sx-view__info { max-height: none; height: 100%; }
}
@keyframes sxBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes sxViewIn {
    from { opacity: 0; transform: translateY(48px) scale(.96); }
    to { opacity: 1; transform: none; }
}
@keyframes sxViewInDesk {
    from { opacity: 0; transform: translateY(28px) scale(.94); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
}
@keyframes sxFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes sxImgSwap {
    from { opacity: .35; filter: blur(2px); }
    to { opacity: 1; filter: none; }
}
.sx-view__close {
    position: absolute;
    top: .65rem;
    inset-inline-end: .75rem;
    z-index: 3;
    border: 0;
    background: rgba(255,255,255,.92);
    color: var(--ink);
    width: 42px; height: 42px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.sx-view__stage {
    position: relative;
    padding: 3.2rem 1rem 1rem;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(184, 132, 79, .28), transparent 52%),
        linear-gradient(165deg, #2a1524 0%, #4a2a3c 40%, #6b3d4e 100%);
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: center;
    gap: .55rem;
}
.sx-view__stage::before {
    content: "";
    position: absolute;
    inset: .85rem;
    border: 1px solid rgba(232, 201, 160, .35);
    border-radius: 18px;
    pointer-events: none;
    box-shadow: inset 0 0 40px rgba(0,0,0,.2);
}
.sx-view__stage::after {
    content: "";
    position: absolute;
    top: 1.1rem;
    inset-inline: 20% ;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(232,201,160,.7), transparent);
    pointer-events: none;
}
.sx-view__count {
    position: absolute;
    top: 1.15rem;
    inset-inline-start: 1.25rem;
    z-index: 2;
    font-size: .78rem;
    font-weight: 800;
    color: #3a2434;
    background: rgba(247, 231, 210, .95);
    border-radius: 999px;
    padding: .28rem .65rem;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.sx-view__3d {
    width: min(92vw, 560px);
    height: calc(100vh - 16rem);
    max-height: calc(100vh - 11rem);
    aspect-ratio: auto;
    perspective: 1000px;
    transform-style: preserve-3d;
    position: relative;
    z-index: 1;
    transition: transform .12s ease-out;
    transform: rotateY(0deg) rotateX(0deg);
    will-change: transform;
    cursor: grab;
}
@media (min-width: 800px) {
    .sx-view__3d {
        width: min(58vw, calc((100vh - 6.5rem) * .78));
        height: calc(100vh - 6.5rem);
        max-height: calc(100vh - 6.5rem);
    }
}
.sx-view__3d img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow:
        0 24px 50px rgba(0,0,0,.45),
        0 0 0 3px rgba(232, 201, 160, .45);
    border: 0;
    transform: none;
}
.sx-view__3d img.is-swap {
    animation: sxImgSwap .38s ease both;
}
.sx-view__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(232, 201, 160, .55);
    background: rgba(255,255,255,.95);
    color: var(--plum);
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
    transition: transform .15s ease, background .15s ease;
}
.sx-view__nav:hover {
    transform: translateY(-50%) scale(1.06);
    background: var(--gold-soft);
}
.sx-view__nav--prev { inset-inline-start: .75rem; }
.sx-view__nav--next { inset-inline-end: .75rem; }
.sx-view__thumbs {
    display: flex; gap: .45rem; justify-content: center;
    flex-wrap: wrap;
    margin-top: .35rem;
    position: relative;
    z-index: 1;
}
.sx-view__thumbs button {
    width: 48px; height: 58px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    opacity: .72;
    transition: opacity .15s ease, border-color .15s ease, transform .15s ease;
}
.sx-view__thumbs button img {
    width: 100%; height: 100%;
    object-fit: contain;
}
.sx-view__thumbs button.is-on {
    opacity: 1;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(53,32,50,.16);
}
.sx-view__dots {
    display: none;
}
.sx-view__3dhint { display: none; }
.sx-view__picked {
    margin: 0 0 .55rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .75rem;
    border-radius: 999px;
    background: rgba(47, 138, 85, .12);
    color: var(--ok);
    font-weight: 800;
    font-size: .86rem;
}
.sx-btn.is-picked {
    background: linear-gradient(135deg, #5ecf88, #2f8a55) !important;
    box-shadow: 0 8px 20px rgba(47, 138, 85, .28) !important;
}
.sx-view__info {
    max-height: 34vh;
    overflow: auto;
    padding: 1.35rem 1.4rem 1.55rem;
    display: flex;
    flex-direction: column;
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,255,255,.4), transparent 30%),
        var(--bg-soft);
}
.sx-view__info::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 1.4rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.sx-view__cat {
    margin: .35rem 0 0;
    color: var(--gold-bright);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .04em;
}
.sx-view__info h3 {
    margin: .2rem 0 .15rem;
    font-family: var(--display);
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    color: var(--plum);
    text-shadow: 0 2px 10px rgba(122, 61, 92, .12);
}
.sx-view__code {
    margin: 0 0 .7rem;
    display: inline-flex;
    align-self: start;
    color: var(--ink-soft);
    font-size: .78rem;
    font-weight: 700;
    background: rgba(122, 61, 92, .08);
    border-radius: 999px;
    padding: .2rem .65rem;
}
.sx-view__desc {
    margin: 0 0 1rem;
    color: var(--mute);
    font-size: .94rem;
    line-height: 1.75;
    white-space: pre-wrap;
    flex: 1;
}
.sx-view__prices { margin-bottom: 1rem; }
.sx-view__price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    padding: .65rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5e6d4, #e8c9a0);
    border: 1px solid rgba(184,132,79,.45);
    color: var(--ink-soft);
    font-size: .9rem;
    box-shadow: 0 8px 20px rgba(154, 106, 53, .18);
}
.sx-view__price-tag strong {
    color: #7a4a22;
    font-size: 1.25rem;
}
.sx-view__price-tag em {
    font-style: normal;
    color: var(--mute);
    font-size: .82rem;
}

.sx-top__burger {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(247, 231, 210, .35);
    background: rgba(255,255,255,.12);
    color: #f7e7d2;
    place-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.sx-branch,
.sx-branch__map,
.sx-branch__info,
.sx-place-card,
.sx-place-card__map,
.sx-place-card__body,
.sx-grid,
.sx-gallery,
.sx-visit,
.sx-story,
.sx-gate,
.sx-card__acts,
.sx-line__info {
    min-width: 0;
    max-width: 100%;
}

/* Place intro */
.sx-place { padding-top: var(--top-h); overflow-x: clip; }
.sx-place__stage {
    position: relative;
    overflow: hidden;
    color: #fff8ee;
    min-height: min(72vh, 640px);
    display: grid;
    align-items: center;
    padding: 2.4rem 1.15rem 3.2rem;
}
.sx-place__bands { position: absolute; inset: -20% -10%; pointer-events: none; }
.sx-place__band {
    position: absolute;
    height: 18%;
    width: 140%;
    right: -20%;
    background: linear-gradient(90deg, transparent, rgba(232,201,160,.18), transparent);
    transform: rotate(-11deg);
    animation: sxBand 7s linear infinite;
}
.sx-place__band:nth-child(1) { top: 12%; animation-duration: 9s; }
.sx-place__band:nth-child(2) { top: 38%; animation-duration: 6.4s; animation-direction: reverse; opacity: .7; }
.sx-place__band:nth-child(3) { top: 64%; animation-duration: 8.2s; }
@keyframes sxBand {
    from { transform: rotate(-11deg) translateX(-12%); }
    to { transform: rotate(-11deg) translateX(12%); }
}
.sx-place__stage-bg {
    position: absolute; inset: 0;
    background:
        conic-gradient(from 210deg at 80% 20%, rgba(201,162,39,.18), transparent 28%),
        linear-gradient(115deg, #1c0f18 0%, #3b1f3a 52%, #6a3a2a 100%);
}
.sx-place__stage-inner {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
}
.sx-place__eyebrow {
    display: inline-block;
    margin: 0 0 .7rem;
    padding: .2rem .7rem;
    border: 1px solid rgba(244,226,168,.4);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    color: #f4e2a8;
    text-shadow: 0 1px 0 rgba(255,247,230,.45), 0 6px 16px rgba(20,8,16,.35);
    box-shadow: 0 8px 18px rgba(20,8,16,.18);
    animation: sxSlideIn .7s cubic-bezier(.22,1,.36,1) both;
}
.sx-place__stage h1 {
    font-family: var(--display);
    font-size: clamp(2rem, 6vw, 3.6rem);
    margin: 0 0 .85rem;
    line-height: 1.15;
    clip-path: inset(0 0 0 0);
    text-shadow:
        0 1px 0 rgba(255,247,230,.55),
        0 10px 28px rgba(12,4,10,.45),
        0 0 32px rgba(232,201,160,.32);
    animation: sxTitleIn .9s .1s cubic-bezier(.22,1,.36,1) both;
}
@keyframes sxTitleIn {
    from { opacity: 0; transform: translateX(48px) skewX(8deg); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
}
@keyframes sxSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
.sx-place__stage .lead {
    max-width: 38rem;
    font-size: clamp(1.05rem, 2.4vw, 1.28rem);
    color: rgba(255,247,238,.92);
    margin: 0 0 1.4rem;
    text-shadow: 0 2px 0 rgba(20,8,16,.18), 0 8px 22px rgba(12,4,10,.4);
    animation: sxSlideIn .8s .25s both;
}
.sx-place__facts {
    display: flex; flex-wrap: wrap; gap: .55rem;
    animation: sxSlideIn .8s .4s both;
}
.sx-place__facts b {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(244,226,168,.3);
    border-radius: 12px;
    padding: .45rem .8rem;
    font-size: .88rem;
    font-weight: 800;
}
.sx-place__story {
    max-width: 860px;
    margin: -1.6rem auto 0;
    padding: 0 1.15rem 2.4rem;
    position: relative;
    z-index: 2;
}
.sx-place__story article {
    background: #fffdf9;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.35rem 1.25rem 1.5rem;
    box-shadow: 0 16px 36px rgba(53,32,50,.1);
}
.sx-place__story h2 {
    font-family: var(--display);
    margin: 0 0 .7rem;
    color: var(--plum);
    font-size: 1.55rem;
    text-shadow:
        0 1px 0 rgba(255,255,255,.9),
        0 8px 18px rgba(122,61,92,.18),
        0 0 18px rgba(201,162,39,.18);
}
.sx-place__story p {
    margin: 0 0 .85rem;
    color: var(--ink-soft);
    font-size: 1.05rem;
    text-shadow: 0 1px 0 rgba(255,255,255,.85), 0 6px 14px rgba(53,32,50,.1);
}
.sx-place__story p:last-child { margin-bottom: 0; }
.sx-place__beats {
    max-width: 860px;
    margin: 0 auto 2.4rem;
    padding: 0 1.15rem;
    display: grid;
    gap: .8rem;
}
@media (min-width: 760px) {
    .sx-place__beats { grid-template-columns: 1fr 1fr 1fr; }
}
.sx-place__beat {
    background: linear-gradient(180deg, #fff, #f7efe8);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem 1rem 1.1rem;
    animation: sxBeat 4.8s ease-in-out infinite;
}
.sx-place__beat:nth-child(2) { animation-delay: .6s; }
.sx-place__beat:nth-child(3) { animation-delay: 1.2s; }
@keyframes sxBeat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
.sx-place__beat strong {
    display: block;
    font-family: var(--display);
    color: var(--plum);
    font-size: 1.15rem;
    margin-bottom: .3rem;
    text-shadow: 0 1px 0 #fff, 0 6px 14px rgba(122,61,92,.16);
}
.sx-place__beat p {
    margin: 0;
    color: var(--mute);
    font-size: .95rem;
    text-shadow: 0 1px 0 rgba(255,255,255,.8);
}
.sx-place__grid-title {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.15rem .8rem;
    font-family: var(--display);
    font-size: 1.6rem;
    color: var(--plum);
    text-shadow: 0 1px 0 #fff, 0 8px 16px rgba(122,61,92,.16);
}
.sx-place__grid {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.15rem 2.4rem;
    display: grid;
    gap: 1.1rem;
}
@media (min-width: 860px) {
    .sx-place__grid { grid-template-columns: 1fr 1fr; }
}
.sx-place-card {
    background: #fffdf9;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(201,162,39,.22);
    box-shadow: 0 14px 32px rgba(53,32,50,.1);
    animation: sxCardIn .7s cubic-bezier(.22,1,.36,1) both;
}
.sx-place-card:nth-child(2) { animation-delay: .12s; }
.sx-place-card:nth-child(3) { animation-delay: .22s; }
@keyframes sxCardIn {
    from { opacity: 0; transform: translateX(-28px) rotate(-1deg); }
    to { opacity: 1; transform: none; }
}
.sx-place-card__map { height: 180px; position: relative; background: #efe4dc; }
.sx-place-card__map iframe { width: 100%; height: 180px; border: 0; display: block; }
.sx-place-card__body { padding: 1rem 1.1rem 1.15rem; }
.sx-place-card h2 {
    margin: 0 0 .45rem;
    font-family: var(--display);
    font-size: 1.45rem;
    color: var(--plum);
}
.sx-place-card p { margin: 0 0 .4rem; color: var(--mute); }
.sx-place-card a.tel {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--gold-bright);
    font-weight: 800;
    font-size: 1.02rem;
}
.sx-place__wa {
    text-align: center;
    padding: 0 1.15rem 4rem;
}
.sx-place__wa p { color: var(--mute); margin: 0 0 1rem; font-size: 1.05rem; }

/* موبايل وتابلت */
@media (max-width: 980px) {
    :root { --top-h: 52px; }
    .sx-top {
        overflow: visible;
        backdrop-filter: none;
        gap: .4rem;
        padding-inline: .55rem;
    }
    .sx-top::after { display: none; }
    .sx-top__burger { display: grid; }
    .sx-top__brand { min-width: 0; }
    .sx-top__brand b {
        max-width: 46vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .sx-top__nav {
        display: none;
        position: fixed;
        z-index: 45;
        top: calc(var(--top-h) + .4rem);
        inset-inline: .65rem;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        gap: .35rem;
        padding: .55rem;
        border-radius: 16px;
        background: linear-gradient(160deg, rgba(48, 24, 40, .98), rgba(90, 42, 66, .98));
        border: 1px solid rgba(232, 201, 160, .28);
        box-shadow: 0 16px 36px rgba(20, 8, 16, .35);
    }
    .sx-top.is-menu .sx-top__nav {
        display: flex;
        background: #3a2034;
    }
    .sx-top.is-menu .sx-top__mode,
    .sx-top.is-menu .sx-top__link,
    .sx-top.is-menu .sx-top__place {
        display: flex !important;
        justify-content: center;
        width: 100%;
        padding: .7rem .85rem !important;
        font-size: .95rem;
        text-align: center;
        background: #4e2a42;
        color: #f7efe8;
        box-shadow: none;
    }
    .sx-top.is-menu .sx-top__mode.is-on,
    .sx-top.is-menu .sx-top__place.is-on {
        background: linear-gradient(135deg, #e8c9a0, #c4925a);
        color: #3a2434;
    }
    .sx-story { grid-template-columns: 1fr; }
    .sx-place__beats { grid-template-columns: 1fr; }
    .sx-place__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .sx-hero {
        min-height: 0;
    }
    .sx-hero__inner {
        padding: 4.8rem .9rem 1.5rem;
        max-width: none;
    }
    .sx-hero__inner::before { inset: 3.8rem 0 0; }
    .sx-hero__logo { width: 78px; height: 78px; margin-bottom: .65rem; }
    .sx-hero h1 { font-size: clamp(1.9rem, 11vw, 2.6rem); }
    .sx-hero__tag, .sx-hero__lead { font-size: .95rem; }
    .sx-hero__go {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .5rem;
    }
    .sx-hero__go .sx-btn {
        width: 100%;
        padding: .75rem .4rem;
        font-size: .92rem;
    }
    .sx-story,
    .sx-gate,
    .sx-gallery,
    .sx-visit,
    .sx-place__story,
    .sx-place__beats,
    .sx-place__grid,
    .sx-place__grid-title,
    .sx-place__wa {
        padding-inline: .85rem;
    }
    .sx-story { gap: .6rem; padding-bottom: 1rem; }
    .sx-story article { padding: .95rem .8rem; }
    .sx-story article:hover { transform: none; }
    .sx-story h3 { font-size: 1.2rem; }
    .sx-gate { padding-top: 1rem; }
    .sx-gate__box { padding: 1rem .85rem; border-radius: 18px; }
    .sx-mode__btn { padding: .8rem .75rem; }
    .sx-mode__btn small { font-size: .78rem; }
    .sx-gallery { padding-top: .65rem; }
    .sx-sticky {
        margin-inline: -.85rem;
        margin-bottom: .45rem;
        padding: .25rem .85rem .15rem;
    }
    .sx-gallery__bar {
        flex-wrap: nowrap;
        align-items: center;
        margin-bottom: .15rem;
        gap: .45rem;
    }
    .sx-gallery__bar > div { flex: 0 0 auto; min-width: 0; }
    .sx-gallery h2 { font-size: 1rem; line-height: 1.2; white-space: nowrap; }
    .sx-gallery__bar p { display: none; }
    .sx-q {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        min-width: 0;
        padding: .38rem .7rem;
        font-size: .82rem;
    }
    .sx-date {
        grid-template-columns: 1fr 1fr;
        gap: .4rem;
        margin-top: .65rem;
        padding-top: .65rem;
    }
    .sx-date label { font-size: .68rem; gap: .18rem; }
    .sx-date input {
        padding: .38rem .35rem;
        font-size: .78rem;
        border-radius: 8px;
    }
    .sx-date__hint { font-size: .72rem; line-height: 1.35; }
    .sx-view__panel {
        height: 100dvh;
        max-height: 100dvh;
    }
    .sx-view__stage {
        padding: 2.35rem .4rem .3rem;
        overflow: hidden;
        min-height: 0;
    }
    .sx-view__3d {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        min-height: 0;
    }
    .sx-view__thumbs { margin-top: 0; gap: .3rem; }
    .sx-view__thumbs button { width: 34px; height: 42px; }
    .sx-view__info {
        max-height: 42dvh;
        padding: .55rem .8rem .7rem;
    }
    .sx-view__info h3 { font-size: 1.12rem; }
    .sx-view__code { margin-bottom: .3rem; }
    .sx-view__desc {
        margin-bottom: .35rem;
        font-size: .8rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .sx-view__prices { margin-bottom: .4rem; }
    .sx-view__price-tag { padding: .32rem .7rem; }
    .sx-view__price-tag strong { font-size: 1.02rem; }
    .sx-grid { gap: .55rem; }
    .sx-card__name { font-size: .78rem; }
    .sx-card__price { font-size: .82rem; }
    .sx-card__add { font-size: .7rem; padding: .42rem .2rem; }
    .sx-card__view { width: 38px; }
    .sx-status {
        display: flex;
        align-items: center;
        gap: .4rem;
        margin-bottom: .3rem;
        padding: .28rem .55rem;
        border-radius: 12px;
    }
    .sx-status__badge { margin: 0; flex-shrink: 0; font-size: .66rem; padding: .1rem .5rem; }
    .sx-status__title {
        font-family: var(--font);
        font-size: .8rem;
        font-weight: 700;
        line-height: 1.25;
    }
    .sx-status__hint:empty { display: none; }
    .sx-status__hint { margin: 0; font-size: .72rem; }
    .sx-visit { padding-top: 1.6rem; }
    .sx-visit__wa {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .sx-branch__info h3,
    .sx-place-card h2 { font-size: 1.25rem; }
    .sx-dock {
        width: calc(100% - .8rem);
        border-radius: 16px;
        gap: .4rem;
        padding: .4rem .45rem .4rem .65rem;
    }
    .sx-dock .sx-btn { padding: .5rem .75rem; }
    .sx-line { grid-template-columns: 42px minmax(0, 1fr) auto auto; gap: .35rem; }
    .sx-sheet__form,
    .sx-sheet__sum,
    .sx-sheet__head { padding-inline: .75rem; }
    .sx-place__stage { min-height: 0; padding: 1.6rem .9rem 2.2rem; }
    .sx-place__stage h1 { font-size: clamp(1.8rem, 9vw, 2.4rem); }
    .sx-place__facts b { font-size: .8rem; }
}
@media (min-width: 761px) and (max-width: 1024px) {
    .sx-hero { min-height: min(72vh, 640px); }
    .sx-hero__inner { max-width: 680px; padding-top: 6rem; }
    .sx-gallery { padding-inline: 1.25rem; }
    .sx-sticky { margin-inline: -1.25rem; padding-inline: 1.25rem; }
    .sx-q { max-width: 100%; flex: 1 1 240px; }
}
.sx-hero--sale .sx-hero__bg {
    background: linear-gradient(160deg, var(--plum), color-mix(in srgb, var(--plum) 45%, #000) 48%, var(--gold));
}
.sx-hero--sale .sx-hero__bg img { display: none; }
body.sx .sx-top {
    background: linear-gradient(105deg, var(--plum), color-mix(in srgb, var(--plum) 58%, var(--gold)));
}
.sx-btn--gold { background: var(--gold); color: var(--plum); }
.sx-branch-pick { display: flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .85rem; }
.sx-branch-pick select {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: .35rem .7rem;
    min-width: 140px;
}
.sx-branch.is-on { outline: 2px solid var(--gold); outline-offset: 2px; }
.sx-top__wholesale {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 .8rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--plum);
    font-weight: 800;
    font-size: .78rem;
    white-space: nowrap;
}
body.sx {
    background:
        radial-gradient(ellipse at 8% 0%, color-mix(in srgb, var(--gold) 24%, transparent), transparent 42%),
        radial-gradient(ellipse at 92% 12%, color-mix(in srgb, var(--rose) 85%, transparent), transparent 38%),
        var(--bg);
}
.sx-chips button.is-on {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--plum);
}
.sx-card { border-top: 3px solid var(--gold); }
@media (max-width: 980px) {
    .sx-top__nav,
    .sx-top.is-menu .sx-top__nav {
        background: var(--plum);
        border-color: color-mix(in srgb, var(--gold) 45%, transparent);
    }
}
body.sx > main,
body.sx > footer { position: relative; z-index: 1; }
.industry-float {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.industry-float i {
    position: absolute;
    color: var(--plum);
    opacity: .12;
    line-height: 1;
    animation: industryDrift 18s ease-in-out infinite;
}
.industry-float i:nth-child(1) { top: 8%; inset-inline-start: 2%; font-size: 9rem; }
.industry-float i:nth-child(2) { top: 22%; inset-inline-end: 4%; font-size: 7rem; animation-duration: 22s; animation-delay: -3s; }
.industry-float i:nth-child(3) { top: 48%; inset-inline-start: 8%; font-size: 6rem; animation-duration: 16s; animation-delay: -7s; }
.industry-float i:nth-child(4) { bottom: 6%; inset-inline-end: 6%; font-size: 11rem; animation-duration: 24s; opacity: .09; }
.industry-float i:nth-child(5) { bottom: 18%; inset-inline-start: 24%; font-size: 5.5rem; animation-delay: -5s; }
.industry-float i:nth-child(6) { top: 36%; inset-inline-start: 46%; font-size: 8rem; animation-duration: 20s; animation-delay: -9s; opacity: .08; }
.industry-float i:nth-child(7) { top: 64%; inset-inline-end: 18%; font-size: 7.5rem; animation-delay: -2s; }
.industry-float i:nth-child(8) { bottom: 2%; inset-inline-start: 48%; font-size: 6.5rem; animation-duration: 19s; }
.industry-float i:nth-child(9) { top: 12%; inset-inline-end: 28%; font-size: 5rem; animation-delay: -12s; }
.industry-float i:nth-child(10) { top: 78%; inset-inline-start: 4%; font-size: 8rem; animation-duration: 21s; }
.industry-float i:nth-child(11) { bottom: 40%; inset-inline-end: 2%; font-size: 6rem; animation-delay: -6s; }
.industry-float i:nth-child(12) { top: 4%; inset-inline-start: 30%; font-size: 4.5rem; animation-duration: 17s; opacity: .08; }
.industry-float.is-hero {
    position: absolute;
    z-index: 1;
}
.industry-float.is-hero i {
    color: #fff;
    opacity: .18;
}
.industry-float.is-hero i:nth-child(odd) { opacity: .22; }
@keyframes industryDrift {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-12deg); }
    50% { transform: translate3d(20px, -36px, 0) rotate(14deg); }
}
@media (prefers-reduced-motion: reduce) {
    .industry-float i { animation: none; }
}

.sx-hero--sale { min-height: min(78vh, 680px); align-items: end; }
.sx-hero--sale .sx-hero__bg {
    background:
        radial-gradient(circle at 78% 18%, rgba(232, 201, 160, .42), transparent 34%),
        linear-gradient(155deg, #1c0f18 0%, var(--plum) 58%, #3a2218 100%);
}
.sx-hero--sale .sx-hero__shade {
    background: linear-gradient(180deg, rgba(20, 10, 16, .12) 0%, rgba(20, 10, 16, .28) 62%, var(--bg) 100%);
}
.sx-card__media .ph {
    width: 100%; height: 100%; display: grid; place-items: center;
    font-family: var(--display); font-size: 3rem; color: var(--plum); background: linear-gradient(180deg, #f3e4ea, #ebe0d6);
}
.sx-card__price s { color: var(--mute); font-weight: 600; margin-inline-end: .35rem; }
.sx-card__price .price-note { display: block; font-size: .72rem; font-weight: 700; }
.sx-page { width: min(1100px, calc(100% - 2rem)); margin: calc(var(--top-h) + 1.4rem) auto 2rem; }
.sx-login { width: min(440px, 100%); margin-inline: auto; background: var(--surface); border-radius: 24px; padding: 1.4rem; box-shadow: var(--shadow); }
.sx-login h2 { font-family: var(--display); margin: 0 0 .4rem; }
.sx-page .field input, .sx-page .field textarea, .sx-login .field input {
    width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; background: #fff;
}
.sx-qty { width: 72px; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
body.theme-2 {
    --bg: #14110f; --bg-soft: #1c1714; --surface: #221c18; --ink: #f6f1ea; --ink-soft: #f6f1ea;
    --mute: rgba(246,241,234,.72); --line: rgba(232,201,160,.28); --rose: #3a2a24;
}
body.theme-2 .sx-card__media .ph { background: #2a221c; color: #e8c9a0; }
body.theme-3 { padding-bottom: 0; }
.t3-app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.t3-rail {
    position: sticky; top: 0; height: 100vh; padding: 22px 16px; display: flex; flex-direction: column; gap: 4px;
    background: linear-gradient(180deg, #2a1529, var(--plum)); color: #fff;
}
.t3-rail a, .t3-rail button {
    color: inherit; text-decoration: none; background: transparent; border: 0; text-align: right; font: inherit;
    min-height: 46px; border-radius: 14px; padding: 8px 12px; cursor: pointer; font-weight: 700;
}
.t3-rail a:hover, .t3-rail button:hover { background: rgba(255,255,255,.08); }
.t3-logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.3rem; margin-bottom: 18px; color: #fff; }
.t3-logo img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #fff; }
.t3-cart { background: var(--gold) !important; color: #2a1529 !important; margin-top: 8px; text-align: center !important; }
.t3-admin { margin-top: auto; color: #f4d27a !important; }
.t3-stage { padding: 28px; min-width: 0; }
.t3-stage .sx-gallery { padding-top: 0; }
@media (max-width: 900px) {
    .t3-app { grid-template-columns: 1fr; padding-bottom: 84px; }
    .t3-rail {
        position: fixed; inset-inline: 0; bottom: 0; top: auto; height: auto; z-index: 40;
        flex-direction: row; overflow: auto; padding: 8px; border-radius: 18px 18px 0 0;
    }
    .t3-logo, .t3-admin { display: none; }
    .t3-rail a, .t3-rail button { white-space: nowrap; }
    .t3-stage { padding: 16px; }
}
.sx-hero--sale .sx-hero__bg.has-slides img { display: block; }
.sx-hero--sale .sx-hero__bg.has-slides { background: #140c12; }
.sx-place__stage-bg img,
.t3-banner img,
.site-bg img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 1.1s ease;
}
.sx-place__stage-bg img.is-on,
.t3-banner img.is-on,
.site-bg img.is-on { opacity: 1; }
.sx-place__stage-bg.has-slides { background: #140c12; }
.sx-place__stage-bg.has-slides::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(20, 10, 16, .55), rgba(20, 10, 16, .28));
}
.sx-place__stage-inner { z-index: 2; }
.site-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.site-bg::after {
    content: ""; position: absolute; inset: 0;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
}
body.theme-3 .t3-app { position: relative; z-index: 1; }
.t3-banner { position: relative; height: 240px; overflow: hidden; border-radius: 18px; margin-bottom: 16px; background: #140c12; }
.sx-alerts { margin: calc(var(--top-h) + 12px) 16px 0; display: grid; gap: 8px; }
.wa-flash a { color: #0f6b3c; font-weight: 800; }
.checkout .hint, .sx-sheet__form .hint { color: var(--mute); font-size: .85rem; margin: 0; }
.pick { position: relative; }
.pick__native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.pick__btn {
    width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
    font: inherit; font-weight: 700; cursor: pointer;
}
.pick__panel {
    position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 4px);
    background: #fff; color: #1c1712; border-radius: 14px; box-shadow: 0 16px 40px rgba(43,29,47,.18); padding: 8px;
}
.pick__search { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; }
.pick__list { max-height: 220px; overflow: auto; display: grid; }
.pick__opt { border: 0; background: transparent; text-align: right; min-height: 40px; border-radius: 8px; cursor: pointer; font-weight: 700; }
.pick__opt.is-on, .pick__opt:hover { background: #f6f1f4; }

@keyframes t1-slide-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.16); }
}
body.theme-1 .sx-hero--sale .sx-hero__bg.has-slides img {
    transition: opacity .7s ease;
    transform-origin: center center;
}
body.theme-1 .sx-hero--sale .sx-hero__bg.has-slides img.is-on {
    animation: t1-slide-zoom 5s linear both;
}
body.theme-1 .sx-hero--sale .sx-hero__bg.has-slides img:only-child {
    animation: t1-slide-zoom 9s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
    body.theme-1 .sx-hero--sale .sx-hero__bg.has-slides img.is-on,
    body.theme-1 .sx-hero--sale .sx-hero__bg.has-slides img:only-child {
        animation: none;
    }
}
.t1-up {
    position: fixed; z-index: 45; bottom: 22px; inset-inline-end: 18px;
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border: 2px solid #c9a227; border-radius: 16px;
    background: #fff; color: var(--plum, #3b1f3a); font-size: 1.25rem; cursor: pointer;
    box-shadow: 0 12px 26px rgba(59, 31, 58, .16);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
}
.t1-up.is-on { opacity: 1; pointer-events: auto; }
body.theme-1:has(.sx-dock) .t1-up { bottom: 86px; }
