/* Wholesale Shop UI v2 — glass + turquoise/orange theme */

.wsp-app {
    --wsp-orange: #f28c28;
    --wsp-orange-soft: rgba(242, 140, 40, 0.22);
    --wsp-glass: rgba(255, 255, 255, 0.68);
    --wsp-glass-border: rgba(255, 255, 255, 0.55);
    --wsp-glass-shadow: 0 16px 40px rgba(15, 60, 58, 0.12);
    --wsp-order-bar-bottom: 78px;
    --wsp-order-bar-height: 68px;
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: clip;
    background: #eef5f4;
    font-family: IRANSans, IRANSansWeb, Tahoma, sans-serif;
}

.wsp-app *,
.wsp-app *::before,
.wsp-app *::after {
    box-sizing: border-box;
}

.wsp-app.is-offline > *:not(.wsp-offline-gate) {
    pointer-events: none;
    user-select: none;
}

.wsp-offline-gate {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 18, 32, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: auto;
}

.wsp-offline-card {
    width: min(100%, 320px);
    border-radius: 18px;
    padding: 20px 18px 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    color: #163038;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.wsp-offline-card strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.wsp-offline-card p {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.82;
}

.wsp-offline-retry {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    min-width: 140px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    background: #0f9c9a;
    color: #fff;
}

.wsp-offline-retry:disabled {
    opacity: 0.7;
    cursor: wait;
}

.wsp-app.is-home-view .wsp-offline-card,
.wsp-app.is-products-view .wsp-offline-card,
.wsp-app.is-desk-view .wsp-offline-card {
    background: rgba(18, 36, 52, 0.96);
    color: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 40px rgba(0, 0, 0, 0.4);
}

.wsp-app.is-home-view .wsp-offline-retry,
.wsp-app.is-products-view .wsp-offline-retry,
.wsp-app.is-desk-view .wsp-offline-retry {
    background: #1fb8ae;
    color: #042a28;
}

.wsp-app.is-home-view,
.wsp-app.is-products-view,
.wsp-app.is-desk-view {
    --wsp-bg-mesh: #081428;
    --wsp-bg-navy-top: #1a3a66;
    --wsp-bg-navy-mid: #102848;
    --wsp-bg-navy-deep: #0a1a36;
    --wsp-bg-grad: linear-gradient(165deg, var(--wsp-bg-navy-top) 0%, var(--wsp-bg-navy-mid) 36%, var(--wsp-bg-navy-deep) 68%, #071222 100%);
    --wsp-glass: rgba(255, 255, 255, 0.14);
    --wsp-glass-border: rgba(255, 255, 255, 0.28);
    --wsp-glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
    --wsp-ink: rgba(255, 255, 255, 0.92);
    --wsp-muted: rgba(255, 255, 255, 0.68);
    --wsp-teal-deep: #7aece4;
    --wsp-teal: #8ef0e8;
    --wsp-teal-soft: rgba(126, 236, 228, 0.18);
    --wsp-line: rgba(255, 255, 255, 0.22);
    --wsp-surface: rgba(255, 255, 255, 0.06);
    --wsp-card-solid: #142a48;
    background: var(--wsp-bg-grad);
    background-color: var(--wsp-bg-mesh);
    color: var(--wsp-ink);
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: clip;
    overflow-y: visible;
}

.wsp-app.is-home-view .wsp-home-shell {
    background: transparent;
    width: 100%;
}

.wsp-wholesale-root .wsp-app.is-home-view .wsp-page,
.wsp-wholesale-root .wsp-app.is-products-view .wsp-page {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 0;
}

.wsp-app.is-home-view .wsp-home-banner-track {
    width: 100%;
    padding: 0;
    margin: 0;
}

.wsp-app.is-home-view .wsp-home-banner-slide {
    border-radius: 0;
}

.wsp-glass-card,
.wsp-glass-sheet,
.wsp-glass-nav,
.wsp-glass-bar,
.wsp-home-search-header .wsp-search-bar,
.wsp-home-page .wsp-search-bar,
.wsp-home-page .wsp-template-preview {
    background: var(--wsp-glass);
    border: 1px solid var(--wsp-glass-border);
    box-shadow: var(--wsp-glass-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .wsp-glass-card,
    .wsp-glass-sheet,
    .wsp-glass-nav,
    .wsp-glass-bar {
        background: rgba(255, 255, 255, 0.94);
    }
}

.wsp-glass-inset {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 20px;
}

/* Ambient orbs removed — they caused dark-theme scroll jank and had nothing useful behind glass cards. */
.wsp-ambient,
.wsp-orb {
    display: none !important;
}

@keyframes wspOrbFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        filter: hue-rotate(0deg);
    }
    50% {
        transform: translate3d(0, -22px, 0) scale(1.06);
        filter: hue-rotate(28deg);
    }
}

@keyframes wspOrbFloatMesh {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(48px) hue-rotate(0deg);
    }
    33% {
        transform: translate3d(12px, -16px, 0) scale(1.05);
        filter: blur(48px) hue-rotate(32deg);
    }
    66% {
        transform: translate3d(-10px, -26px, 0) scale(1.08);
        filter: blur(48px) hue-rotate(-24deg);
    }
}

@keyframes wspOrbFloatMeshSoft {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(52px) hue-rotate(0deg);
    }
    40% {
        transform: translate3d(-14px, -18px, 0) scale(1.06);
        filter: blur(52px) hue-rotate(-30deg);
    }
    70% {
        transform: translate3d(10px, -28px, 0) scale(1.04);
        filter: blur(52px) hue-rotate(26deg);
    }
}

.wsp-boot-splash {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    min-height: 100dvh;
    pointer-events: none;
}

.wsp-boot-splash__logo {
    display: block;
    width: min(220px, 52vw);
    height: auto;
}

.wsp-boot-splash__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.wsp-page {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

/* Home layout */
.wsp-home-shell {
    position: relative;
    width: 100%;
}

.wsp-home-top-row {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: calc(var(--wsp-frame-left, 0px) + 12px);
    width: calc(var(--wsp-frame-width, 100%) - 24px);
    right: auto;
    z-index: 80;
    display: flex;
    flex-direction: row;
    direction: ltr;
    align-items: stretch;
    gap: 8px;
    box-sizing: border-box;
    pointer-events: none;
}

.wsp-home-top-row > * {
    pointer-events: auto;
}

.wsp-home-search-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    z-index: 80;
    height: auto;
    min-height: 56px;
    padding: 6px 10px;
    box-sizing: border-box;
    border-radius: 24px;
    pointer-events: auto;
    direction: rtl;
}

.wsp-home-search-row {
    display: flex;
    flex-direction: row;
    direction: ltr;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.wsp-home-search-row .wsp-search-bar,
.wsp-home-top-row .wsp-search-bar {
    flex: 1 1 auto;
    min-width: 0;
}

.wsp-appearance-dock {
    position: relative;
    flex: 0 0 56px;
    width: 56px;
    z-index: 90;
}

.wsp-appearance-trigger {
    width: 56px;
    height: 100%;
    min-height: 56px;
    margin: 0;
    padding: 0;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
}

.wsp-appearance-trigger .wsp-appearance-svg {
    width: 24px;
    height: 24px;
}

.wsp-appearance-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 56px;
    padding: 8px 6px;
    border-radius: 999px;
    background: var(--wsp-glass, rgba(255, 255, 255, 0.16));
    border: 1px solid var(--wsp-glass-border, rgba(255, 255, 255, 0.28));
    box-shadow: var(--wsp-glass-shadow, 0 14px 34px rgba(15, 23, 42, 0.18));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: wsp-appearance-expand .18s ease-out;
    transform-origin: top right;
    box-sizing: border-box;
}

.wsp-appearance-pill-btn {
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    cursor: pointer;
}

.wsp-appearance-pill-btn .wsp-appearance-svg {
    width: 22px;
    height: 22px;
}

.wsp-appearance-size-mark {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

@keyframes wsp-appearance-expand {
    from { opacity: 0; transform: translateY(-6px) scaleY(.92); }
    to { opacity: 1; transform: translateY(0) scaleY(1); }
}

.wsp-app[data-theme="light"] .wsp-appearance-trigger,
html[data-wsp-theme="light"] .wsp-appearance-trigger,
.wsp-app[data-theme="light"] .wsp-appearance-menu,
html[data-wsp-theme="light"] .wsp-appearance-menu,
.wsp-app[data-theme="light"] .wsp-appearance-pill-btn,
html[data-wsp-theme="light"] .wsp-appearance-pill-btn {
    color: #0f3f45;
}

.wsp-app[data-theme="light"] .wsp-appearance-pill-btn,
html[data-wsp-theme="light"] .wsp-appearance-pill-btn {
    background: rgba(11, 122, 129, 0.08);
}

.wsp-app.is-home-view:not([data-theme="light"]) .wsp-appearance-trigger.wsp-glass-nav {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 18px 44px rgba(0, 0, 0, 0.32);
}

.wsp-app.is-home-view:not([data-theme="light"]) .wsp-appearance-menu {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.wsp-home-search-header .wsp-search-bar,
.wsp-home-search-header .wsp-barcode-lookup-error {
    pointer-events: auto;
}

.wsp-home-search-header .wsp-search-bar {
    max-width: none;
    margin: 0;
    min-height: 44px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.wsp-home-search-header .wsp-barcode-lookup-error {
    max-width: none;
    margin: 8px 4px 2px;
}

.wsp-home-stage {
    position: relative;
    width: 100%;
    background: transparent;
}

.wsp-home-stage:has(.wsp-home-banner-track) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    isolation: isolate;
}

.wsp-home-stage:has(.wsp-home-banner-track) > .wsp-home-banner-track {
    grid-area: 1 / 1;
    align-self: start;
    z-index: 1;
    width: 100%;
}

.wsp-home-stage:has(.wsp-home-banner-track) > .wsp-home-page.has-banner-overlap {
    grid-area: 1 / 1;
    z-index: 2;
    margin-top: 0;
    padding-top: 50%;
    box-sizing: border-box;
    pointer-events: none;
}

.wsp-home-page.has-banner-overlap .wsp-home-content,
.wsp-home-page.has-banner-overlap .wsp-bottom-nav,
.wsp-home-page.has-banner-overlap .wsp-stories-slot,
.wsp-home-page.has-banner-overlap .wsp-stories,
.wsp-home-page.has-banner-overlap .wsp-story-circle {
    pointer-events: auto;
}

.wsp-home-page {
    padding-bottom: 18px;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.wsp-home-page .wsp-section {
    padding: 6px 10px;
}

.wsp-home-page.has-banner-overlap {
    position: relative;
    z-index: 2;
}

.wsp-home-page.has-banner-overlap .wsp-web-stories,
.wsp-home-page.has-banner-overlap .wsp-stories {
    padding-top: 0;
    margin-top: 0;
    position: relative;
    z-index: 6;
}

.wsp-app.is-home-view .wsp-story-circle,
.wsp-app.is-home-view .wsp-story-circle__caption {
    color: #fff !important;
}

.wsp-home-content {
    position: relative;
    z-index: 2;
}

.wsp-home-overlap-section {
    position: relative;
    z-index: 3;
}

.wsp-home-banner-track {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    z-index: 1;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.wsp-home-banner-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
}

.wsp-home-banner-slides {
    display: flex;
    height: 100%;
    width: 100%;
    will-change: transform;
}

.wsp-home-banner-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.wsp-home-banner-dots {
    position: relative;
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 4px 0 6px;
    margin: 0;
    pointer-events: auto;
}

.wsp-home-page.has-banner-overlap .wsp-stories-slot,
.wsp-home-page.has-banner-overlap .wsp-stories,
.wsp-home-page.has-banner-overlap .wsp-web-stories,
.wsp-home-page .wsp-stories-slot,
.wsp-home-page .wsp-stories,
.wsp-home-page .wsp-web-stories {
    margin: 0;
    padding: 0;
}

.wsp-home-page #wsp-occasion-calendar.wsp-section {
    margin-top: 0;
    padding-top: 0;
}

.wsp-home-banner-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.12);
    cursor: pointer;
}

.wsp-home-banner-dot.is-active {
    width: 18px;
    background: #fff;
}

.wsp-home-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.wsp-home-banner-blur {
    position: absolute;
    left: -8%;
    right: -8%;
    top: 62%;
    height: 48%;
    background-image: var(--wsp-banner-url);
    background-size: cover;
    background-position: center bottom;
    filter: blur(22px);
    transform: scale(1.06);
    opacity: 0.88;
    pointer-events: none;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 35%, rgba(0, 0, 0, 0.95) 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 35%, rgba(0, 0, 0, 0.95) 100%);
}

.wsp-home-banner-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(238, 245, 244, 0) 0%,
        rgba(238, 245, 244, 0) 58%,
        rgba(238, 245, 244, 0.35) 78%,
        rgba(238, 245, 244, 0.82) 92%,
        rgba(238, 245, 244, 0) 100%
    );
    pointer-events: none;
}

/* پس‌زمینه سرمه‌ای — بدون orb */
.wsp-app.is-products-view:not([data-theme="light"]),
.wsp-app.is-home-view.is-products-view:not([data-theme="light"]),
.wsp-wholesale-root:has(.wsp-app.is-products-view:not([data-theme="light"])) {
    background: var(--wsp-bg-grad, #081428);
    background-color: var(--wsp-bg-mesh, #081428);
}

.wsp-app.is-home-view:not([data-theme="light"]) .wsp-home-banner-fade {
    background: linear-gradient(
        180deg,
        rgba(26, 58, 102, 0) 0%,
        rgba(26, 58, 102, 0) 36%,
        rgba(26, 58, 102, 0.2) 50%,
        rgba(16, 40, 72, 0.48) 66%,
        rgba(10, 26, 54, 0.82) 84%,
        var(--wsp-bg-navy-deep, #0a1a36) 94%,
        var(--wsp-bg-navy-deep, #0a1a36) 100%
    );
}

.wsp-app.is-home-view:not([data-theme="light"]) .wsp-home-banner-blur {
    opacity: 0.42;
    filter: blur(34px) saturate(1.05);
    mask-image: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.22) 24%,
        rgba(0, 0, 0, 0.55) 55%,
        rgba(0, 0, 0, 0.2) 82%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.22) 24%,
        rgba(0, 0, 0, 0.55) 55%,
        rgba(0, 0, 0, 0.2) 82%,
        transparent 100%
    );
}

.wsp-app.is-home-view:not([data-theme="light"]) .wsp-term-group,
.wsp-app.is-home-view:not([data-theme="light"]) .wsp-term-group.wsp-tone-teal,
.wsp-app.is-home-view:not([data-theme="light"]) .wsp-term-group.wsp-tone-mint,
.wsp-app.is-home-view:not([data-theme="light"]) .wsp-term-group.wsp-tone-sand,
.wsp-app.is-home-view:not([data-theme="light"]) .wsp-term-group.wsp-tone-lilac,
.wsp-app.is-home-view:not([data-theme="light"]) .wsp-term-group.wsp-tone-sky,
.wsp-app.is-home-view:not([data-theme="light"]) .wsp-term-group.wsp-tone-peach {
    background: var(--wsp-card-solid, #142a48);
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

/* فقط کارت اطلاعات قالب شفاف بماند */
.wsp-app.is-home-view:not([data-theme="light"]) .wsp-calendar-detail.wsp-glass-card,
.wsp-app.is-home-view:not([data-theme="light"]) .wsp-calendar-grid.wsp-glass-card,
.wsp-app.is-home-view:not([data-theme="light"]) .wsp-home-search-header.wsp-glass-nav,
.wsp-app.is-home-view:not([data-theme="light"]) .wsp-home-page .wsp-search-bar {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 18px 44px rgba(0, 0, 0, 0.32);
}

.wsp-app.is-home-view:not([data-theme="light"]) .wsp-home-page .wsp-template-preview {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 18px 44px rgba(0, 0, 0, 0.32);
}

.wsp-app.is-home-view .wsp-bottom-nav.wsp-glass-nav,
.wsp-app.is-products-view .wsp-bottom-nav.wsp-glass-nav,
.wsp-app.is-desk-view .wsp-bottom-nav.wsp-glass-nav {
    background: rgba(10, 16, 32, 0.52);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(24px) saturate(1.15);
    -webkit-backdrop-filter: blur(24px) saturate(1.15);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 14px 36px rgba(0, 0, 0, 0.28);
}

.wsp-app.is-home-view .wsp-bottom-nav button,
.wsp-app.is-products-view .wsp-bottom-nav button,
.wsp-app.is-desk-view .wsp-bottom-nav button {
    color: rgba(255, 255, 255, 0.82);
}

.wsp-app.is-home-view .wsp-bottom-nav button.is-active,
.wsp-app.is-products-view .wsp-bottom-nav button.is-active,
.wsp-app.is-desk-view .wsp-bottom-nav button.is-active {
    color: var(--wsp-teal-deep);
}

.wsp-app.is-home-view .wsp-glass-inset,
.wsp-app.is-home-view .wsp-calendar-occasions.wsp-glass-inset {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.wsp-app.is-home-view .wsp-calendar-occasions ul {
    color: rgba(255, 255, 255, 0.82);
}

.wsp-app.is-home-view .wsp-calendar-count,
.wsp-app.is-home-view .wsp-template-preview-top span {
    background: rgba(126, 236, 228, 0.18);
    color: #b8fff8;
}

.wsp-app.is-home-view .wsp-calendar-arrow {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.88);
}

.wsp-app.is-home-view .wsp-calendar-top-toggle {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
}

.wsp-app.is-home-view .wsp-calendar-occasions ul::-webkit-scrollbar-track {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.22) 8%,
        rgba(255, 255, 255, 0.22) 92%,
        transparent 100%
    );
    background-size: 2px 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.wsp-app.is-home-view .wsp-calendar-grid-head {
    border-bottom-color: transparent;
}

.wsp-app.is-home-view .wsp-calendar-grid-head::after {
    background: rgba(255, 255, 255, 0.16);
}

.wsp-app.is-home-view .wsp-month-table {
    border: 0;
}

.wsp-app.is-home-view .wsp-month-table .wsp-month-tile {
    background: transparent;
    border-inline-start-color: rgba(255, 255, 255, 0.16);
    border-bottom-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
}

.wsp-app.is-home-view .wsp-month-table .wsp-month-tile small {
    color: rgba(255, 255, 255, 0.58);
}

.wsp-app.is-home-view .wsp-month-table .wsp-month-tile.is-active {
    background: transparent;
    border-inline-start-color: rgba(255, 255, 255, 0.16);
    border-bottom-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
    color: #fff;
}

.wsp-app.is-home-view .wsp-month-table .wsp-month-tile.is-active::before {
    background: rgba(242, 140, 40, 0.38);
    box-shadow: 0 0 28px rgba(242, 140, 40, 0.42);
    filter: blur(28px);
}

.wsp-app.is-home-view .wsp-term-group-title {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.9);
}

.wsp-app.is-home-view .wsp-term-group-icon {
    background: rgba(126, 236, 228, 0.12);
    border: 1px solid rgba(126, 236, 228, 0.28);
    color: var(--wsp-teal-deep);
}

.wsp-app.is-home-view .wsp-term-group-icon-img {
    filter: brightness(0) saturate(100%) invert(84%) sepia(21%) saturate(746%) hue-rotate(118deg) brightness(101%) contrast(92%);
}

.wsp-app.is-home-view .wsp-chip {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.88);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.wsp-app.is-home-view .wsp-chip:hover,
.wsp-app.is-home-view .wsp-chip.is-active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(126, 236, 228, 0.42);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(126, 236, 228, 0.22);
}

.wsp-app.is-home-view .wsp-template-size-item {
    color: rgba(255, 255, 255, 0.68);
}

.wsp-app.is-home-view .wsp-template-size-sep {
    background: rgba(255, 255, 255, 0.22);
}

.wsp-app.is-home-view .wsp-term-group-head strong {
    color: var(--wsp-teal-deep);
}

.wsp-app.is-home-view .wsp-template-preview-top h3 {
    color: rgba(255, 255, 255, 0.94);
}

.wsp-app.is-home-view .wsp-bottom-nav button {
    color: rgba(255, 255, 255, 0.62);
}

.wsp-app.is-home-view .wsp-bottom-nav button.is-active {
    color: var(--wsp-teal-deep);
}

.wsp-app.is-home-view .wsp-home-page,
.wsp-app.is-home-view .wsp-home-content,
.wsp-app.is-home-view .wsp-home-shell {
    overflow-x: clip;
    max-width: 100%;
}

.wsp-web-stories,
.wsp-wholesale-root.is-home-view #wsp-story-root {
    padding-top: 0;
    position: relative;
    z-index: 3;
    overflow: visible;
}

.wsp-web-stories-slot,
.wsp-web-stories-inner,
.wsp-web-stories-inner .web-stories-list,
.wsp-web-stories-inner .web-stories-list__inner-wrapper {
    overflow: visible;
    max-width: 100%;
}

.wsp-web-stories-inner .web-stories-list.is-carousel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.wsp-web-stories-inner .web-stories-list__inner-wrapper {
    --ws-circle-size: 75px;
    --ws-font-size-circle-title: 11px;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    position: relative;
    overflow: visible;
    padding-top: 36px;
}

.wsp-web-stories-inner .web-stories-list {
    margin: 0;
}

.wsp-web-stories-inner .web-stories-list__carousel.circles {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    touch-action: pan-x;
    padding: 0 8px 0;
    direction: ltr;
}

.wsp-web-stories-inner .web-stories-list__carousel.circles.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.wsp-web-stories-inner .web-stories-list__carousel.circles::-webkit-scrollbar {
    display: none;
}

.wsp-web-stories-inner .web-stories-list__story {
    flex: 0 0 auto;
    width: var(--ws-circle-size);
    min-width: var(--ws-circle-size);
    max-width: var(--ws-circle-size);
    direction: rtl;
}

.wsp-web-stories-inner .web-stories-list.is-view-type-circles .web-stories-list__story-poster,
.wsp-web-stories-inner .web-stories-list.is-view-type-circles .web-stories-list__story-poster img {
    width: var(--ws-circle-size);
    height: var(--ws-circle-size);
    border-radius: 50%;
}

.wsp-app.is-home-view .wsp-web-stories-inner .web-stories-list.has-title.is-view-type-circles .web-stories-list__story-content-overlay {
    position: static;
    display: block;
    margin-top: 6px;
    padding: 0;
    background: transparent;
    pointer-events: none;
}

.wsp-app.is-home-view .wsp-web-stories-inner .story-content-overlay__title {
    color: rgba(255, 255, 255, 0.88);
    font-size: var(--ws-font-size-circle-title);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wsp-web-stories-inner .glider-prev,
.wsp-web-stories-inner .glider-next {
    position: absolute;
    top: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    z-index: 4;
    color: #333;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wsp-web-stories-inner .glider-prev::before {
    content: '‹';
}

.wsp-web-stories-inner .glider-next::before {
    content: '›';
}

.wsp-web-stories-inner .glider-prev {
    left: calc(50% - 40px);
}

.wsp-web-stories-inner .glider-next {
    right: calc(50% - 40px);
    left: auto;
}

body.web-stories-lightbox-open {
    overflow: hidden;
}

#wsp-story-lightbox-close,
.wsp-story-lightbox-close#wsp-story-lightbox-close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top, 12px));
    right: max(12px, env(safe-area-inset-right, 12px));
    z-index: 1000000001 !important;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    padding: 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

#wsp-story-lightbox-close.is-visible,
body.wsp-story-lightbox-active #wsp-story-lightbox-close {
    display: flex !important;
}

.web-stories-list__lightbox.show amp-story-player,
.web-stories-singleton__lightbox.show amp-story-player {
    width: min(calc((100vh - 24px) * 0.6), calc(100vw - 24px), 400px) !important;
    height: min(calc(100vh - 24px), calc((100vw - 24px) / 0.6), 740px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 24px) !important;
    margin: 0 auto;
}

.wsp-wholesale-root {
    --wsp-shell-max: 430px;
    position: relative;
    /* دسکتاپ: ستون موبایل‌مانند وسط صفحه؛ موبایل همان ۱۰۰٪ می‌ماند. */
    width: 100%;
    max-width: var(--wsp-shell-max);
    margin-inline: auto;
    padding: 0;
    min-height: 100dvh;
    overflow-x: clip;
    overflow-y: visible;
    box-sizing: border-box;
    background: var(--wsp-bg-grad, var(--wsp-bg-mesh, #081428));
    background-color: var(--wsp-bg-mesh, #081428);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.28);
}

body.wsp-wholesale-page {
    overflow-x: hidden;
    min-height: 100dvh;
    background: #081428;
    overscroll-behavior-y: none;
}

html:has(body.wsp-wholesale-page) {
    min-height: 100dvh;
    background: #081428;
    overscroll-behavior-y: none;
}

/* جلوگیری از فلش سفید/روشن هنگام توقف اسکرول (overscroll + لایه زیر شیشه) */
html:not([data-wsp-theme="light"]):has(body.wsp-wholesale-page),
html:not([data-wsp-theme="light"]) body.wsp-wholesale-page {
    background: #081428 !important;
}

.wsp-app:not([data-theme="light"]) {
    background-color: #081428;
}

.wsp-wholesale-root:not([data-theme="light"]),
.wsp-app.is-home-view:not([data-theme="light"]),
.wsp-app.is-products-view:not([data-theme="light"]),
.wsp-app.is-desk-view:not([data-theme="light"]) {
    overscroll-behavior-y: none;
}

body.wsp-wholesale-page #page,
body.wsp-wholesale-page .site,
body.wsp-wholesale-page .site-content,
body.wsp-wholesale-page #primary,
body.wsp-wholesale-page .content-area,
body.wsp-wholesale-page article,
body.wsp-wholesale-page .entry-content,
body.wsp-wholesale-page .wp-block-post-content,
body.wsp-wholesale-page main .wp-block-group,
body.wsp-wholesale-page .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: none !important;
    width: 100% !important;
    padding-inline: 0 !important;
    margin-inline: 0 !important;
    background: transparent !important;
}

.wsp-wholesale-root .wsp-app {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 100dvh;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.wsp-wholesale-root .wsp-page,
.wsp-wholesale-root .wsp-products-page,
.wsp-wholesale-root .wsp-home-page {
    width: 100%;
    max-width: none;
    margin: 0;
}

.wsp-wholesale-root .wsp-bottom-nav.wsp-glass-nav,
.wsp-wholesale-root .wsp-bottom-nav {
    position: fixed;
    left: calc(var(--wsp-frame-left, 0px) + 12px);
    width: calc(var(--wsp-frame-width, 100%) - 24px);
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.wsp-wholesale-root .wsp-home-top-row {
    left: calc(var(--wsp-frame-left, 0px) + 12px);
    width: calc(var(--wsp-frame-width, 100%) - 24px);
    right: auto;
    max-width: none;
    margin: 0;
}

.wsp-wholesale-root .wsp-order-bar {
    left: calc(var(--wsp-frame-left, 0px) + 12px);
    width: calc(var(--wsp-frame-width, 100%) - 24px);
    right: auto;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.wsp-wholesale-root.is-home-view #wsp-story-root:not([hidden]) {
    position: relative;
    z-index: 3;
}

.wsp-web-stories-slot {
    min-height: 0;
}

.wsp-web-stories-slot:empty {
    display: none;
}

.wsp-web-stories-inner {
    overflow: visible;
    scrollbar-width: none;
    min-height: 0;
    width: 100%;
}

.wsp-web-stories-inner > .web-stories-list {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.wsp-app.is-home-view .wsp-web-stories-inner .web-stories-list__story,
.wsp-app.is-home-view .wsp-web-stories-inner .web-stories-list__story-poster,
.wsp-app.is-home-view .wsp-web-stories-inner .wp-story-item,
.wsp-app.is-home-view .wsp-web-stories-inner .wp-story-circle,
.wsp-app.is-home-view .wsp-web-stories-inner [class*="story"] img {
    opacity: 1;
}

.wsp-app.is-home-view .wsp-web-stories-inner .web-stories-list,
.wsp-app.is-home-view .wsp-web-stories-inner .web-stories-list__inner,
.wsp-app.is-home-view .wsp-web-stories-inner .wp-story-list,
.wsp-app.is-home-view .wsp-web-stories-inner .wp-story-wrap {
    display: block;
    overflow: visible;
    padding: 0;
    gap: 0;
}

.wsp-web-stories-inner::-webkit-scrollbar {
    display: none;
}

/* Header */
.wsp-site-header.is-glass,
.wsp-site-header.is-compact {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    gap: 10px;
    align-items: center;
    padding: 10px 16px;
    margin: 0;
    border-radius: 0 0 22px 22px;
}

.wsp-site-header.is-compact {
    grid-template-columns: auto 1fr auto;
}

.wsp-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.wsp-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
}

.wsp-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px 8px;
}

.wsp-products-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    font-size: 13px;
}

.wsp-products-breadcrumb .wsp-breadcrumb-current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wsp-products-breadcrumb button {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.wsp-app.is-home-view .wsp-products-breadcrumb {
    color: rgba(255, 255, 255, 0.62);
}

.wsp-app.is-home-view .wsp-products-breadcrumb button {
    color: rgba(255, 255, 255, 0.82);
}

.wsp-app.is-home-view .wsp-breadcrumb-current {
    color: var(--wsp-teal-deep);
    font-weight: 800;
}

.wsp-app.is-products-view {
    --wsp-order-bar-bottom: 0px;
    --wsp-order-bar-height: 84px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.wsp-app.is-home-view .wsp-person-event-tabs,
.wsp-app.is-home-view .wsp-product-tabs {
    top: auto;
    padding-inline: 10px;
    background: rgba(10, 15, 30, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* تم تیره: نوار آدرس و تب‌ها هم‌رنگ، بدون فاصله بین نوارها */
.wsp-app.is-home-view:not([data-theme="light"]) .wsp-products-head,
.wsp-app.is-products-view:not([data-theme="light"]) .wsp-products-head {
    position: sticky;
    top: 0;
    z-index: 22;
    background: #101c34;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    margin: 0;
}

.wsp-app.is-home-view:not([data-theme="light"]) .wsp-products-sticky-chrome,
.wsp-app.is-products-view:not([data-theme="light"]) .wsp-products-sticky-chrome {
    top: 52px;
    z-index: 21;
    background: #101c34;
    border-bottom: 0;
}

.wsp-app.is-home-view:not([data-theme="light"]) .wsp-person-event-tabs,
.wsp-app.is-home-view:not([data-theme="light"]) .wsp-product-tabs,
.wsp-app.is-products-view:not([data-theme="light"]) .wsp-person-event-tabs,
.wsp-app.is-products-view:not([data-theme="light"]) .wsp-product-tabs {
    position: relative;
    top: auto;
    background: #101c34 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    margin: 0;
}

.wsp-app.is-home-view:not([data-theme="light"]) .wsp-products-page .wsp-person-event-tabs,
.wsp-app.is-products-view:not([data-theme="light"]) .wsp-products-page .wsp-person-event-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0;
    padding-bottom: 0;
}

.wsp-app.is-home-view:not([data-theme="light"]) .wsp-products-page .wsp-product-tabs,
.wsp-app.is-products-view:not([data-theme="light"]) .wsp-products-page .wsp-product-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* اسکرول پایین: تب ولادت/شهادت جمع می‌شود؛ اسکرول بالا برمی‌گردد */
.wsp-products-page.has-person-event-tabs.is-event-tabs-hidden .wsp-person-event-tabs {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    border-bottom-color: transparent;
}

.wsp-products-page.has-person-event-tabs .wsp-product-section {
    scroll-margin-top: 112px;
}

.wsp-products-page.has-person-event-tabs.is-event-tabs-hidden .wsp-product-section {
    scroll-margin-top: 104px;
}

/* Calendar glass */
.wsp-calendar-shell {
    background: transparent;
    border: 0;
    box-shadow: none;
    height: auto;
    min-height: 392px;
}

.wsp-calendar-detail.wsp-glass-card,
.wsp-calendar-grid.wsp-glass-card {
    border-radius: 28px;
    padding: 18px 16px 16px;
    min-height: 392px;
}

.wsp-calendar-nav {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 10px;
    direction: ltr;
}

.wsp-calendar-nav-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    direction: rtl;
}

.wsp-calendar-title {
    font-size: 26px;
    flex: 0 1 auto;
}

.wsp-calendar-grid-head {
    display: block;
    margin: 0 0 12px;
    padding: 0 10px;
    flex-shrink: 0;
    text-align: center;
}

.wsp-calendar-grid-head::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.16);
}

.wsp-calendar-grid-head strong {
    font-size: 16px;
}

.wsp-calendar-enter {
    background: linear-gradient(135deg, #12b5b1, #0d8f8c);
    box-shadow: 0 10px 24px rgba(15, 156, 154, 0.25);
}

.wsp-month-grid-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 10px 4px;
}

.wsp-month-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.wsp-month-grid.wsp-month-table {
    gap: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    align-content: stretch;
}

.wsp-month-touch-highlight {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 18px;
    background: rgba(242, 140, 40, 0.38);
    box-shadow: 0 0 28px rgba(242, 140, 40, 0.42);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    pointer-events: none;
    z-index: 2;
    transition: transform 0.12s ease, width 0.12s ease, height 0.12s ease;
    will-change: transform, width, height;
}

.wsp-month-tile {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 12px 8px;
    border-radius: 16px;
    min-height: 72px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.wsp-month-table .wsp-month-tile {
    border-radius: 0;
    border: 0;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    min-height: 74px;
    box-shadow: none;
    overflow: hidden;
}

.wsp-month-table .wsp-month-tile strong,
.wsp-month-table .wsp-month-tile small {
    position: relative;
    z-index: 1;
}

.wsp-month-table .wsp-month-tile.is-active::before {
    content: '';
    position: absolute;
    inset: 12px 14px;
    border-radius: 18px;
    background: rgba(242, 140, 40, 0.38);
    box-shadow: 0 0 28px rgba(242, 140, 40, 0.42);
    filter: blur(28px);
    z-index: 0;
    pointer-events: none;
}

.wsp-month-table .wsp-month-tile.is-active {
    background: transparent;
    border-inline-start-color: rgba(255, 255, 255, 0.16);
    border-bottom-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.wsp-month-table .wsp-month-tile:nth-child(3n + 1) {
    border-inline-start: 0;
}

.wsp-month-table .wsp-month-tile:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.wsp-month-tile strong {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 800;
}

.wsp-month-tile small {
    font-size: 13px;
}

.wsp-month-tile.is-active {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 156, 154, 0.35);
    box-shadow: inset 0 0 0 1px rgba(15, 156, 154, 0.2);
    transform: none;
}

.wsp-month-table .wsp-month-tile:hover {
    background: transparent;
    border-inline-start-color: rgba(255, 255, 255, 0.16);
    border-bottom-color: rgba(255, 255, 255, 0.16);
}

/* Search bar */
.wsp-search-bar {
    background: var(--wsp-glass);
    border: 1px solid var(--wsp-glass-border);
    box-shadow: var(--wsp-glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    min-height: 52px;
    cursor: pointer;
}

/* Template preview + groups */
.wsp-template-preview {
    background: var(--wsp-glass);
    border: 1px solid var(--wsp-glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.wsp-term-group {
    background: var(--wsp-card-solid, #142a48);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.wsp-template-sizes strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--wsp-teal-deep);
}

.wsp-template-size-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.wsp-template-size-item {
    background: transparent;
    color: var(--wsp-muted);
    padding: 0;
    font-weight: 600;
    font-size: 13px;
}

.wsp-template-size-sep {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

/* Bottom nav */
.wsp-bottom-nav.wsp-glass-nav {
    position: fixed;
    z-index: 50;
    border-radius: 24px;
    border: 1px solid var(--wsp-glass-border);
    height: 72px;
    padding: 8px 10px;
    box-sizing: border-box;
}

.wsp-bottom-nav button {
    display: grid;
    gap: 4px;
    justify-items: center;
    align-content: center;
    position: relative;
    color: var(--wsp-muted);
    font-size: 11px;
}

.wsp-bottom-nav button.is-active {
    color: var(--wsp-teal-deep);
}

.wsp-nav-svg {
    width: 22px;
    height: 22px;
    display: block;
}

.wsp-bottom-nav em {
    font-style: normal;
    font-weight: 700;
}

.wsp-bottom-nav .wsp-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(8px);
}

.wsp-nav-icon {
    display: block;
    width: 22px;
    height: 22px;
    position: relative;
}

.wsp-icon-home {
    border: 2px solid currentColor;
    border-radius: 4px;
}

.wsp-icon-home::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 3px;
    width: 12px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
}

.wsp-icon-grid {
    background:
        linear-gradient(currentColor, currentColor) 0 0 / 8px 8px,
        linear-gradient(currentColor, currentColor) 14px 0 / 8px 8px,
        linear-gradient(currentColor, currentColor) 0 14px / 8px 8px,
        linear-gradient(currentColor, currentColor) 14px 14px / 8px 8px;
    background-repeat: no-repeat;
}

.wsp-icon-bag {
    border: 2px solid currentColor;
    border-radius: 4px 4px 8px 8px;
}

.wsp-icon-bag::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 4px;
    width: 10px;
    height: 8px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.wsp-icon-menu {
    background: linear-gradient(currentColor, currentColor) 0 4px / 18px 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 10px / 18px 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 16px / 18px 2px no-repeat;
}

.wsp-icon-user {
    border: 2px solid currentColor;
    border-radius: 50%;
}

.wsp-icon-user::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 5px;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

/* Quick search sheet */
.wsp-sheet-overlay:has(+ .wsp-quick-sheet) {
    background: rgba(8, 12, 22, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.wsp-sheet.wsp-quick-sheet.wsp-glass-sheet {
    top: 25vh;
    bottom: auto;
    left: 16px;
    right: 16px;
    width: auto;
    height: 50vh;
    max-height: 50vh;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 8px 16px 12px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 28px 64px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.wsp-app.is-home-view .wsp-sheet.wsp-quick-sheet {
    top: 25vh;
    bottom: auto;
    height: 50vh;
    max-height: 50vh;
}

.wsp-quick-top {
    position: relative;
    min-height: 16px;
    margin-bottom: 8px;
}

.wsp-quick-sheet .wsp-sheet-handle {
    width: 54px;
    height: 4px;
    margin: 4px auto 0;
    background: rgba(120, 130, 140, 0.42);
}

.wsp-quick-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    gap: 10px;
    align-items: center;
    margin: 0 0 12px;
}

.wsp-barcode-scan-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: rgba(40, 48, 56, 0.82);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    padding: 0;
}

.wsp-barcode-scan-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.wsp-barcode-scan-icon {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
}

.wsp-barcode-lookup-error,
.wsp-barcode-scanner-status {
    margin: -4px 0 10px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.wsp-barcode-lookup-error,
.wsp-barcode-scanner-status.is-error {
    background: rgba(180, 35, 45, 0.16);
    border: 1px solid rgba(180, 35, 45, 0.28);
    color: #ffb4b4;
}

.wsp-barcode-lookup-error[data-action],
.wsp-desk-status[data-action] {
    cursor: pointer;
}

.wsp-barcode-lookup-dismiss {
    display: inline-block;
    margin-right: 6px;
    opacity: 0.8;
    text-decoration: underline;
    font-weight: 600;
}

.wsp-barcode-scanner-status:not(.is-error) {
    background: rgba(78, 205, 196, 0.14);
    border: 1px solid rgba(78, 205, 196, 0.28);
    color: #9ef0ea;
}

.wsp-barcode-scanner-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 16px;
}

.wsp-barcode-scanner-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(8, 12, 22, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.wsp-barcode-scanner-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(10, 15, 30, 0.94);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.wsp-barcode-scanner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.wsp-barcode-scanner-head h3 {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
}

.wsp-barcode-scanner-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.82);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.wsp-barcode-scanner-help {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.wsp-barcode-scanner-stage {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    width: 100%;
    margin: 0 auto;
    min-height: 300px;
    aspect-ratio: 3 / 4;
}

.wsp-barcode-scanner-view {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wsp-barcode-scanner-view > *,
.wsp-barcode-scanner-view #wsp-barcode-scanner__scan_region,
.wsp-barcode-scanner-view #qr-shaded-region {
    box-sizing: border-box;
}

.wsp-barcode-scanner-view #wsp-barcode-scanner__scan_region,
.wsp-barcode-scanner-view > div:first-child {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: grid !important;
    place-items: center !important;
}

.wsp-barcode-scanner-view video,
.wsp-barcode-scanner-view canvas,
.wsp-barcode-scanner-view img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    /* contain: تصویر و تشخیص روی هم منطبق بمانند (cover قبلاً اسکن را خراب می‌کرد) */
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
    left: 0 !important;
    top: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #000;
}

/* سایهٔ پیش‌فرض کتابخانه را مخفی می‌کنیم؛ کادر خودمان معیار وسط است */
.wsp-barcode-scanner-view #qr-shaded-region {
    display: none !important;
}

.wsp-barcode-scanner-view #wsp-barcode-scanner__dashboard {
    display: none !important;
}

.wsp-barcode-scan-guide {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: min(92%, 400px);
    height: 42%;
    min-height: 120px;
    max-height: 220px;
    transform: translate(-50%, -50%);
    border: 1.5px dashed rgba(126, 236, 228, 0.72);
    border-radius: 14px;
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.22);
}

.wsp-barcode-scanner-tools {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.wsp-barcode-scanner-tools .wsp-desk-secondary {
    min-width: 120px;
}

.wsp-barcode-engine-tag {
    align-self: center;
    font-size: 11px;
    opacity: 0.55;
    direction: ltr;
}

.wsp-quick-sheet .wsp-sheet-close-inline {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: rgba(40, 48, 56, 0.72);
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    flex-shrink: 0;
}

.wsp-quick-search {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    padding: 12px 16px;
    margin: 0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    min-width: 0;
}

.wsp-quick-search .wsp-search-icon,
.wsp-home-search-header .wsp-search-icon {
    width: 16px;
    height: 16px;
    border: 2px solid #4ecdc4;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    justify-self: center;
}

.wsp-quick-search .wsp-search-icon::after,
.wsp-home-search-header .wsp-search-icon::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 2px;
    background: #4ecdc4;
    transform: rotate(45deg);
    right: -4px;
    bottom: -1px;
}

.wsp-home-search-header .wsp-search-scan {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #4ecdc4;
    justify-self: center;
}

.wsp-home-search-header .wsp-barcode-scan-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.wsp-quick-search input {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    font: inherit;
    color: #1f2a32;
    text-align: right;
}

.wsp-quick-search input::placeholder {
    color: rgba(70, 82, 92, 0.58);
}

.wsp-quick-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 0 0 10px;
    padding: 0;
    border-bottom: 0;
}

.wsp-quick-tabs button {
    position: relative;
    border: 0;
    background: transparent;
    padding: 8px 4px 14px;
    color: rgba(55, 65, 75, 0.72);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.wsp-quick-tabs button.is-active {
    color: #1f8f88;
}

.wsp-quick-tabs button.is-active::after {
    content: '';
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 2px;
    height: 3px;
    border-radius: 999px;
    background: #f2c94c;
    box-shadow: 0 4px 14px rgba(242, 201, 76, 0.72);
}

.wsp-quick-subtabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 12px;
    padding: 0 0 2px;
    scrollbar-width: none;
}

.wsp-quick-subtabs::-webkit-scrollbar {
    display: none;
}

.wsp-quick-subtabs button {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 800;
    color: rgba(35, 45, 55, 0.82);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.wsp-quick-subtabs button.is-active {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(78, 205, 196, 0.48);
    color: #1f8f88;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.wsp-quick-list {
    gap: 0;
}

.wsp-quick-item {
    min-height: 72px;
    border: 0;
    border-bottom: 1px solid rgba(120, 130, 140, 0.14);
    border-radius: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 20px;
    gap: 12px;
    align-items: center;
    padding: 10px 2px;
    text-align: right;
    cursor: pointer;
}

.wsp-quick-item:last-child {
    border-bottom: 0;
}

.wsp-quick-item img,
.wsp-quick-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wsp-quick-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f8f88;
    font-weight: 900;
    font-size: 18px;
}

.wsp-quick-item strong,
.wsp-quick-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wsp-quick-item strong {
    font-size: 15px;
    color: #1f2a32;
}

.wsp-quick-item small {
    color: rgba(80, 90, 100, 0.72);
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
}

.wsp-quick-item em {
    color: rgba(100, 110, 120, 0.55);
    font-style: normal;
    font-size: 22px;
    line-height: 1;
}

.wsp-quick-empty {
    color: rgba(80, 90, 100, 0.72);
    font-weight: 700;
}

/* Products */
.wsp-product-card {
    background: var(--wsp-glass);
    border: 1px solid var(--wsp-glass-border);
    box-shadow: var(--wsp-glass-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wsp-product-card.is-featured {
    border-color: rgba(255, 196, 86, 0.55);
    box-shadow: 0 10px 28px rgba(255, 196, 86, 0.14);
}

.wsp-product-image {
    position: relative;
}

.wsp-product-featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 196, 86, 0.92);
    color: #1d1405;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.wsp-product-content strong {
    font-size: 12px;
}

.wsp-product-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    text-align: center;
}

.wsp-product-discount-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    direction: ltr;
}

.wsp-product-content small {
    color: var(--wsp-teal);
    font-weight: 800;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wsp-section-diamond {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 8px;
    background: var(--wsp-teal);
    transform: rotate(45deg);
    border-radius: 2px;
}

.wsp-product-tabs,
.wsp-person-event-tabs {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Products page — same width + dark glass theme as home */
.wsp-app.is-home-view .wsp-products-page {
    position: relative;
    z-index: 2;
    width: 100%;
}

.wsp-app.is-home-view .wsp-products-page .wsp-section {
    padding: 6px 10px 18px;
}

.wsp-app.is-home-view .wsp-person-event-tab,
.wsp-app.is-products-view .wsp-person-event-tab,
.wsp-app.is-home-view .wsp-product-tab {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.72);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    outline: none;
}

.wsp-app.is-home-view .wsp-person-event-tab:focus,
.wsp-app.is-home-view .wsp-person-event-tab:focus-visible,
.wsp-app.is-home-view .wsp-person-event-tab.is-active,
.wsp-app.is-products-view .wsp-person-event-tab:focus,
.wsp-app.is-products-view .wsp-person-event-tab:focus-visible,
.wsp-app.is-products-view .wsp-person-event-tab.is-active,
.wsp-app.is-home-view .wsp-product-tab.is-active {
    background: transparent;
    border: 0;
    color: var(--wsp-teal-deep);
    box-shadow: none;
    outline: none;
}

.wsp-app.is-home-view .wsp-person-event-tab.is-active::after {
    background: #f2c94c;
    box-shadow: 0 4px 14px rgba(242, 201, 76, 0.72);
}

.wsp-app.is-home-view .wsp-product-section-title {
    color: rgba(255, 255, 255, 0.9);
}

.wsp-app.is-home-view .wsp-section-diamond {
    background: var(--wsp-teal-deep);
}

.wsp-app.is-home-view .wsp-products-page .wsp-product-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.2);
    padding: 8px;
}

/* صفحه خرید تم تیره: کارت محصول جدا از پس‌زمینه، بدون قاب خاکستری روشن */
.wsp-app.is-products-view:not([data-theme="light"]) .wsp-products-page .wsp-product-card,
.wsp-app.is-home-view.is-products-view:not([data-theme="light"]) .wsp-products-page .wsp-product-card {
    background: linear-gradient(165deg, rgba(36, 58, 96, 0.92) 0%, rgba(18, 32, 58, 0.96) 100%);
    border: 1px solid rgba(126, 236, 228, 0.16);
    border-radius: 20px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 12px 28px rgba(0, 0, 0, 0.32);
    padding: 7px;
}

.wsp-app.is-home-view.is-products-view:not([data-theme="light"]) .wsp-products-page .wsp-product-image,
.wsp-app.is-products-view:not([data-theme="light"]) .wsp-products-page .wsp-product-image {
    border-radius: 14px;
    background: #070e1c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.wsp-app.is-home-view.is-products-view:not([data-theme="light"]) .wsp-products-page .wsp-product-image img,
.wsp-app.is-products-view:not([data-theme="light"]) .wsp-products-page .wsp-product-image img {
    background: #070e1c;
    object-fit: cover;
}

.wsp-app.is-home-view .wsp-products-page .wsp-product-image {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.wsp-app.is-home-view .wsp-products-page .wsp-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wsp-app.is-home-view .wsp-products-page .wsp-product-content strong {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wsp-app.is-home-view .wsp-products-page .wsp-product-content {
    gap: 2px;
    padding-top: 6px;
    padding-bottom: 4px;
}

.wsp-app.is-home-view .wsp-products-page .wsp-product-content small,
.wsp-app.is-products-view .wsp-products-page .wsp-product-content small,
.wsp-app.is-home-view .wsp-products-page .wsp-product-price-row,
.wsp-app.is-products-view .wsp-products-page .wsp-product-price-row {
    justify-content: center;
    text-align: center;
}

.wsp-app.is-home-view .wsp-products-page .wsp-product-content small {
    color: var(--wsp-teal-deep);
}

.wsp-app.is-home-view .wsp-products-page .wsp-product-content em {
    color: rgba(255, 255, 255, 0.55);
}

.wsp-app.is-home-view .wsp-products-page .wsp-empty {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.62);
}

.wsp-wholesale-root .wsp-order-bar {
    position: fixed;
    z-index: 100;
    left: calc(var(--wsp-frame-left, 0px) + 12px);
    width: calc(var(--wsp-frame-width, 100%) - 24px);
    right: auto;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.wsp-app.is-home-view .wsp-order-bar.wsp-glass-bar {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 18px 44px rgba(0, 0, 0, 0.32);
}

.wsp-app.is-home-view .wsp-order-bar .wsp-order-summary strong {
    color: rgba(255, 255, 255, 0.92);
}

.wsp-app.is-home-view .wsp-order-bar .wsp-order-summary small {
    color: rgba(255, 255, 255, 0.62);
}

.wsp-app.is-home-view .wsp-order-bar .wsp-order-view {
    background: linear-gradient(135deg, #72ebe3 0%, #4ecdc4 100%);
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(78, 205, 196, 0.35);
}

.wsp-order-bar.wsp-glass-bar {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
}

/* Sheets */
.wsp-sheet.wsp-glass-sheet {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 28px 28px 0 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.wsp-sheet-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 12px;
}

.wsp-sheet-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wsp-muted);
    font-size: 12px;
    font-weight: 700;
}

.wsp-sheet-step-index {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eef4f2;
    color: var(--wsp-muted);
    font-style: normal;
}

.wsp-sheet-step.is-active .wsp-sheet-step-index,
.wsp-sheet-step.is-done .wsp-sheet-step-index {
    background: var(--wsp-teal);
    color: #fff;
}

.wsp-sheet-step i {
    width: 28px;
    height: 2px;
    background: #d7dfde;
    display: block;
}

.wsp-sheet-step.is-done + .wsp-sheet-step i,
.wsp-sheet-step.is-active i {
    background: var(--wsp-teal);
}

.wsp-option.is-active {
    border-color: var(--wsp-teal);
    box-shadow: inset 0 0 0 1px rgba(15, 156, 154, 0.25);
}

/* Cart UI-007 */
.wsp-cart-head {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: start;
    padding: 0 16px 12px;
}

.wsp-cart-head-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wsp-cart-head h2 {
    margin: 0;
    font-size: 20px;
}

.wsp-cart-head span {
    color: var(--wsp-teal);
    font-weight: 800;
    white-space: nowrap;
}

.wsp-cart-item.wsp-glass-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 20px;
    padding: 12px;
    flex-shrink: 0;
}

.wsp-cart-item img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.wsp-cart-item-body em {
    margin-top: 6px;
}

.wsp-cart-item-remove {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(180, 60, 70, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    color: #c0392b;
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.wsp-cart-item-remove:active {
    transform: scale(0.96);
}

.wsp-cart-footer {
    display: grid;
    gap: 8px;
    flex: 0 0 auto;
    padding: 10px 2px 0;
}

.wsp-cart-secondary,
.wsp-cart-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.wsp-cart-secondary {
    border: 1px solid rgba(78, 205, 196, 0.4);
    background: rgba(255, 255, 255, 0.72);
    color: #1f8f88;
}

.wsp-cart-danger {
    border: 1px solid rgba(192, 57, 43, 0.28);
    background: rgba(255, 255, 255, 0.7);
    color: #c0392b;
}

.wsp-cart-secondary:disabled,
.wsp-cart-danger:disabled {
    opacity: 0.55;
    cursor: wait;
}

/* Cart swipe — gradient overlay + fade-in icons */
.wsp-cart-swipe {
    --wsp-swipe-progress: 0;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    touch-action: pan-y;
}

.wsp-cart-item.is-dragging {
    transition: none;
}

.wsp-cart-swipe-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    border-radius: inherit;
    transition: opacity 140ms ease;
}

.wsp-cart-swipe.is-dragging .wsp-cart-swipe-layer {
    transition: none;
}

.wsp-cart-swipe-layer--edit {
    background: linear-gradient(
        270deg,
        rgba(8, 116, 95, 0.48) 0%,
        rgba(8, 116, 95, 0.36) calc(var(--wsp-swipe-progress, 0) * 38%),
        transparent calc(var(--wsp-swipe-progress, 0) * 62% + 18%)
    );
}

.wsp-cart-swipe-layer--delete {
    background: linear-gradient(
        90deg,
        rgba(180, 35, 45, 0.48) 0%,
        rgba(180, 35, 45, 0.36) calc(var(--wsp-swipe-progress, 0) * 38%),
        transparent calc(var(--wsp-swipe-progress, 0) * 62% + 18%)
    );
}

.wsp-cart-swipe-layer--edit .wsp-swipe-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
}

.wsp-cart-swipe-layer--delete .wsp-swipe-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
}

.wsp-cart-swipe.is-swiping-edit .wsp-cart-swipe-layer--edit {
    opacity: 1;
}

.wsp-cart-swipe.is-swiping-delete .wsp-cart-swipe-layer--delete {
    opacity: 1;
}

.wsp-swipe-icon {
    width: 44px;
    height: 44px;
    color: #fff;
    opacity: var(--wsp-swipe-progress, 0);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
    transition: opacity 140ms ease;
}

.wsp-cart-swipe.is-dragging .wsp-swipe-icon {
    transition: none;
}

.wsp-checkout-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin: 0;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #12b5b1, #0d8f8c);
    color: #fff;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 156, 154, 0.22);
    cursor: pointer;
}

.wsp-checkout-link:disabled {
    opacity: 0.72;
    cursor: wait;
}

/* Product + cart bottom sheets — dark glass + side margins */
.wsp-sheet-overlay:has(+ .wsp-product-sheet),
.wsp-sheet-overlay:has(+ .wsp-cart-sheet),
.wsp-sheet-overlay:has(+ .wsp-account-sheet) {
    background: rgba(8, 12, 22, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.wsp-app.is-home-view .wsp-sheet.wsp-product-sheet.wsp-glass-sheet {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: calc(100% - 32px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 28px 64px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.wsp-app.is-home-view .wsp-sheet.wsp-cart-sheet.wsp-glass-sheet {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: calc(100% - 32px);
    max-height: calc(100vh - var(--wsp-order-bar-bottom) - var(--wsp-order-bar-height) - var(--wsp-sheet-gap, 8px) - 24px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 28px 64px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    padding: 8px 14px 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wsp-app.is-home-view .wsp-sheet.wsp-account-sheet.wsp-glass-sheet {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: calc(100% - 32px);
    max-height: min(78dvh, 560px);
    height: auto;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 18px 44px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 8px 0 16px;
}

.wsp-app.is-home-view .wsp-product-sheet .wsp-sheet-handle,
.wsp-app.is-home-view .wsp-cart-sheet .wsp-sheet-handle,
.wsp-app.is-home-view .wsp-account-sheet .wsp-sheet-handle {
    background: rgba(255, 255, 255, 0.28);
}

.wsp-app.is-home-view .wsp-sheet.wsp-product-sheet.wsp-glass-sheet {
    padding: 8px 14px 14px;
    max-height: calc(100vh - var(--wsp-order-bar-bottom) - var(--wsp-order-bar-height) - var(--wsp-sheet-gap, 8px) - 24px);
}

.wsp-product-sheet-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    padding-inline: 2px;
}

.wsp-product-sheet-tools {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.wsp-product-sheet-tool {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(120, 130, 140, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: #1f8f88;
    display: grid;
    place-items: center;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.wsp-product-sheet-sku {
    margin: 0;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(31, 143, 136, 0.28);
    background: rgba(255, 255, 255, 0.82);
    color: #146862;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    direction: ltr;
    unicode-bidi: isolate;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.wsp-product-sheet-sku:active {
    transform: scale(0.98);
    background: rgba(122, 236, 228, 0.28);
}

.wsp-product-sheet-tool.is-waitlist-on {
    background: rgba(242, 140, 40, 0.22);
    border-color: rgba(242, 140, 40, 0.45);
    color: #f28c28;
}

.wsp-product-sheet-submit.is-success {
    background: rgba(46, 180, 120, 0.95);
    border-color: rgba(46, 180, 120, 0.95);
    color: #fff;
}

.wsp-sheet-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.wsp-product-sheet-hero {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}

.wsp-product-sheet-hero-main {
    display: flex;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
}

.wsp-product-sheet-hero-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wsp-product-sheet-hero-text h2 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.55;
    color: #1f2a32;
}

.wsp-product-sheet-hero-text span {
    display: block;
    color: #1f8f88;
    font-size: 18px;
    font-weight: 900;
}

.wsp-product-sheet-hero-image {
    width: 104px;
    height: 104px;
    max-width: 104px;
    aspect-ratio: 1 / 1;
    align-self: center;
    border-radius: 16px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    flex: 0 0 104px;
    cursor: pointer;
}

.wsp-product-sheet-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wsp-product-sheet-nav {
    position: relative;
    z-index: 3;
    width: 28px;
    height: 104px;
    align-self: center;
    border: 1.5px solid rgba(8, 110, 105, 0.7);
    border-radius: 14px;
    background: transparent;
    color: #065f5b;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.wsp-product-sheet-nav:disabled {
    opacity: 0.28;
    cursor: default;
    box-shadow: none;
    pointer-events: none;
}

.wsp-product-sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 6px;
}

.wsp-product-sheet-section {
    margin-bottom: 16px;
}

.wsp-product-sheet-section-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
    color: rgba(35, 45, 55, 0.72);
    text-align: right;
}

.wsp-product-sheet-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 8px;
}

.wsp-product-sheet-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wsp-color-swatch {
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    position: relative;
}

.wsp-color-swatch-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--wsp-swatch, #9e9e9e);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.wsp-color-swatch.is-light .wsp-color-swatch-dot {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.wsp-color-swatch.is-active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4ecdc4;
}

.wsp-color-swatch:focus-visible {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}

.wsp-product-sheet-option {
    position: relative;
    min-height: 52px;
    border: 1px solid rgba(120, 130, 140, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
    padding: 10px 8px;
    cursor: pointer;
    display: grid;
    gap: 2px;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.wsp-product-sheet-option strong {
    font-size: 14px;
    color: #1f2a32;
}

.wsp-product-sheet-option-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.wsp-product-sheet-options.has-thumbs .wsp-product-sheet-option {
    padding-top: 12px;
}

.wsp-product-sheet-option small {
    font-size: 11px;
    color: rgba(70, 82, 92, 0.72);
}

.wsp-product-sheet-option-check {
    position: absolute;
    top: 6px;
    right: 8px;
    left: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4ecdc4;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: none;
    place-items: center;
    line-height: 1;
}

.wsp-product-sheet-option.is-active {
    border-color: rgba(78, 205, 196, 0.65);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(78, 205, 196, 0.22);
}

.wsp-product-sheet-option.is-active strong {
    color: #1f8f88;
}

.wsp-product-sheet-option.is-active .wsp-product-sheet-option-check {
    display: grid;
}

.wsp-product-sheet-option.is-disabled,
.wsp-color-swatch.is-disabled {
    opacity: 0.42;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(0.35);
}

.wsp-product-sheet-option-off {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-style: normal;
    opacity: 0.75;
    color: #b42318;
}

.wsp-product-sheet-quantity .wsp-quantity-row {
    margin-bottom: 10px;
}

.wsp-product-sheet-body.wsp-sheet-loading-inline {
    display: grid;
    place-items: center;
    min-height: 120px;
    color: rgba(70, 82, 92, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.wsp-product-sheet-skeleton {
    display: grid;
    gap: 16px;
    padding: 8px 4px 12px;
    min-height: 280px;
}

.wsp-sheet-skel-block {
    display: grid;
    gap: 8px;
}

.wsp-sheet-skel-line,
.wsp-sheet-skel-row,
.wsp-sheet-skel-qty {
    display: block;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    background-size: 200% 100%;
    animation: wsp-skel-shimmer 1.2s ease-in-out infinite;
}

.wsp-sheet-skel-line.is-title {
    width: 42%;
    height: 14px;
}

.wsp-sheet-skel-line.is-price {
    width: 58%;
    height: 16px;
}

.wsp-sheet-skel-line.is-price-sm {
    width: 36%;
    height: 12px;
    margin-top: 6px;
}

.wsp-sheet-skel-row {
    width: 100%;
    height: 48px;
}

.wsp-sheet-skel-qty {
    width: 100%;
    height: 72px;
}

.wsp-product-sheet-footer--skeleton {
    opacity: 0.72;
    pointer-events: none;
}

.wsp-product-sheet-skeleton .wsp-sheet-loading-inline {
    margin: 4px 0 0;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
}

@keyframes wsp-skel-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.wsp-product-sheet-design {
    width: 100%;
    min-height: 42px;
    margin: 0 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(44, 184, 154, 0.4);
    background: rgba(44, 184, 154, 0.1);
    color: #1f8f88;
    font-weight: 800;
    cursor: pointer;
}

.wsp-product-sheet-design:disabled,
.wsp-product-sheet-tool[data-action="request-design"]:disabled {
    opacity: 0.4;
    cursor: default;
}

.wsp-product-sheet-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(120, 130, 140, 0.14);
}

.wsp-product-sheet-submit {
    justify-self: end;
    border: 0;
    border-radius: 999px;
    min-height: 52px;
    padding: 0 18px;
    background: linear-gradient(135deg, #72ebe3 0%, #4ecdc4 100%);
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(78, 205, 196, 0.35);
}

.wsp-product-sheet-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.wsp-product-sheet-submit .wsp-sheet-icon {
    width: 20px;
    height: 20px;
}

.wsp-product-sheet-summary {
    text-align: right;
    min-width: 108px;
}

.wsp-product-sheet-summary strong {
    display: block;
    color: #1f2a32;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 4px;
}

.wsp-product-sheet-summary span {
    display: block;
    color: #1f2a32;
    font-size: 17px;
    font-weight: 900;
}

.wsp-app.is-home-view .wsp-product-sheet .wsp-quantity-row button,
.wsp-app.is-home-view .wsp-product-sheet .wsp-quantity-presets button {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(120, 130, 140, 0.2);
    color: #1f2a32;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wsp-app.is-home-view .wsp-product-sheet .wsp-quantity-presets button.is-active {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(78, 205, 196, 0.55);
    color: #1f8f88;
    box-shadow: inset 0 0 0 1px rgba(78, 205, 196, 0.22);
}

.wsp-app.is-home-view .wsp-product-sheet .wsp-quantity-row strong {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(120, 130, 140, 0.2);
    color: #1f8f88;
}

.wsp-app.is-home-view .wsp-product-sheet .wsp-variation-status {
    background: rgba(242, 201, 76, 0.2);
    border: 1px solid rgba(242, 201, 76, 0.35);
    color: #7a5d00;
    margin-top: 4px;
}

.wsp-app.is-home-view .wsp-product-sheet .wsp-sheet-notice {
    background: rgba(78, 205, 196, 0.14);
    border: 1px solid rgba(78, 205, 196, 0.28);
    color: #1f8f88;
    margin-top: 4px;
}

.wsp-app.is-home-view .wsp-product-sheet .wsp-empty {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(120, 130, 140, 0.16);
    color: rgba(70, 82, 92, 0.82);
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-sheet-handle {
    background: rgba(120, 130, 140, 0.28);
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-cart-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-inline: 2px;
    align-content: start;
    grid-auto-rows: max-content;
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-cart-head {
    flex: 0 0 auto;
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-sheet-loading,
.wsp-app.is-home-view .wsp-cart-sheet .wsp-empty {
    flex: 1 1 auto;
    min-height: 120px;
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-cart-swipe {
    flex-shrink: 0;
    height: auto;
    min-height: max-content;
    align-self: start;
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-cart-item.wsp-glass-card {
    height: auto;
    min-height: 96px;
    align-self: start;
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-cart-item img {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    object-fit: cover;
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-checkout-link {
    width: 100%;
    margin: 0;
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-cart-head h2 {
    color: #1f2a32;
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-cart-head span {
    color: #1f8f88;
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-sheet-close-inline {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 24px;
    line-height: 1;
    border: 1px solid rgba(120, 130, 140, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: #1f8f88;
    box-shadow: none;
    cursor: pointer;
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-empty {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(120, 130, 140, 0.16);
    color: rgba(70, 82, 92, 0.82);
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-cart-item.wsp-glass-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(120, 130, 140, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 8px 20px rgba(15, 60, 58, 0.08);
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-cart-item strong {
    color: #1f2a32;
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-cart-item small {
    color: rgba(70, 82, 92, 0.72);
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-cart-item-body em {
    color: #1f8f88;
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-checkout-link {
    background: linear-gradient(135deg, #72ebe3 0%, #4ecdc4 100%);
    box-shadow: 0 8px 18px rgba(78, 205, 196, 0.35);
}

.wsp-app.is-home-view .wsp-cart-sheet .wsp-sheet-loading {
    color: rgba(70, 82, 92, 0.72);
}

/* Auth — wholesale partner login */
.wsp-app.is-auth-view {
    min-height: 100vh;
}

.wsp-auth-screen {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 24px);
    display: grid;
    place-items: center;
    padding: 24px 16px 40px;
}

.wsp-auth-screen.is-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    min-height: 100dvh;
    background: rgba(10, 15, 30, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.wsp-auth-card {
    position: relative;
    width: min(100%, 380px);
    padding: 24px 20px 20px;
    border-radius: 28px;
    text-align: center;
}

.wsp-auth-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.wsp-app.is-home-view .wsp-auth-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 18px 44px rgba(0, 0, 0, 0.28);
}

.wsp-auth-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
}

.wsp-auth-title {
    margin: 0 0 6px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.94);
}

.wsp-auth-subtitle,
.wsp-auth-message,
.wsp-auth-note {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.8;
}

.wsp-auth-form {
    position: relative;
    display: grid;
    gap: 12px;
    margin: 18px 0 12px;
    text-align: right;
}

.wsp-auth-username-assist {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wsp-auth-field {
    display: grid;
    gap: 6px;
}

.wsp-auth-field span {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
}

.wsp-auth-field input {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.94);
    padding: 0 14px;
    font-size: 15px;
    box-sizing: border-box;
}

.wsp-auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.wsp-auth-field input:focus {
    outline: none;
    border-color: rgba(126, 236, 228, 0.55);
    box-shadow: inset 0 0 0 1px rgba(126, 236, 228, 0.22);
}

.wsp-auth-error {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(220, 80, 80, 0.18);
    border: 1px solid rgba(255, 120, 120, 0.28);
    color: #ffd4d4;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
}

.wsp-auth-submit,
.wsp-auth-link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #72ebe3 0%, #4ecdc4 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(78, 205, 196, 0.35);
}

.wsp-auth-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.wsp-auth-secondary,
.wsp-auth-retail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.wsp-auth-retail-link {
    width: auto;
    min-width: 220px;
    padding: 0 18px;
}

/* Account sheet */
.wsp-account-sheet {
    max-height: min(78dvh, 560px);
    height: auto;
}

.wsp-account-head {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: start;
    padding: 0 16px 12px;
}

.wsp-account-head-main {
    min-width: 0;
    text-align: right;
}

.wsp-account-head-main h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.wsp-account-head-main span {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.wsp-account-body {
    display: grid;
    gap: 10px;
    padding: 0 16px 12px;
    min-height: 0;
}

.wsp-account-link,
.wsp-account-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 48px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.wsp-app.is-home-view .wsp-account-sheet .wsp-account-head h2 {
    color: rgba(255, 255, 255, 0.92);
}

.wsp-app.is-home-view .wsp-account-sheet .wsp-account-head-main span {
    color: var(--wsp-teal-deep);
}

.wsp-app.is-home-view .wsp-account-sheet .wsp-sheet-close-inline {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 24px;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.wsp-app.is-home-view .wsp-account-sheet .wsp-account-link {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wsp-app.is-home-view .wsp-account-sheet .wsp-account-logout {
    border: 1px solid rgba(255, 120, 120, 0.32);
    background: rgba(180, 35, 45, 0.22);
    color: #ffb4b4;
}

.wsp-account-link {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(120, 130, 140, 0.2);
    color: #1f2a32;
}

.wsp-account-logout {
    border: 1px solid rgba(220, 90, 90, 0.28);
    background: rgba(220, 90, 90, 0.12);
    color: #b42318;
}

@media (prefers-reduced-motion: reduce) {
    .wsp-zoom-in,
    .wsp-zoom-out,
    .wsp-month-touch-highlight {
        animation: none !important;
        transition: none !important;
    }
}

/* Layout shell — ستون موبایل؛ داخل root دیگر max-width جدا نمی‌خواهد */
body.wsp-wholesale-page .wsp-wholesale-root {
    max-width: var(--wsp-shell-max, 430px) !important;
    margin-inline: auto !important;
}

body.wsp-wholesale-page .wsp-wholesale-root .wsp-app {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}

body.wsp-wholesale-page .wsp-wholesale-root .wsp-page {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
}

body.wsp-wholesale-page .wsp-wholesale-root .wsp-bottom-nav,
body.wsp-wholesale-page .wsp-wholesale-root .wsp-home-top-row {
    left: calc(var(--wsp-frame-left, 0px) + 12px) !important;
    width: calc(var(--wsp-frame-width, 100%) - 24px) !important;
    right: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

body.wsp-wholesale-page .wsp-wholesale-root .wsp-order-bar,
body.wsp-wholesale-page .wsp-wholesale-root .wsp-sheet,
body.wsp-wholesale-page .wsp-wholesale-root .wsp-account-sheet {
    left: calc(var(--wsp-frame-left, 0px) + 12px) !important;
    width: calc(var(--wsp-frame-width, 100%) - 24px) !important;
    right: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

body.wsp-app-shell .whb-header,
body.wsp-app-shell .whb-main-header,
body.wsp-app-shell .wd-header,
body.wsp-app-shell header.whb-header,
body.wsp-app-shell .elementor-location-header,
body.wsp-app-shell .elementor-location-footer,
body.wsp-app-shell .wd-toolbar,
body.wsp-app-shell .wd-nav-mob,
body.wsp-app-shell .wd-bottom-toolbar,
body.wsp-app-shell .mobile-nav,
body.wsp-app-shell .wd-sticky-nav,
body.wsp-app-shell .wd-footer,
body.wsp-app-shell .wd-preloader,
body.wsp-app-shell .woodmart-preloader,
body.wsp-app-shell .wd-page-loader,
body.wsp-app-shell .promo-banner,
body.wsp-app-shell .wd-promo-banner,
body.wsp-app-shell #wpadminbar,
body.wsp-app-shell .wd-skip-links,
body.wsp-app-shell .wd-skip-navigation,
body.wsp-app-shell .wd-skip-content,
body.wsp-app-shell .skip-link,
body.wsp-app-shell .screen-reader-text {
    display: none !important;
}

body.wsp-wholesale-page .wsp-app button.wsp-chip,
body.wsp-wholesale-page .wsp-app .wsp-chip {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    color: rgba(255, 255, 255, 0.88) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

body.wsp-wholesale-page .wsp-app .wsp-chip.is-active,
body.wsp-wholesale-page .wsp-app .wsp-chip:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(126, 236, 228, 0.42) !important;
    color: #fff !important;
}

body.wsp-wholesale-page .wsp-template-size-list {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 10px !important;
}

body.wsp-wholesale-page .wsp-template-size-sep {
    display: inline-block !important;
    width: 1px !important;
    min-width: 1px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.22) !important;
    overflow: hidden !important;
    flex: 0 0 1px !important;
}

/* Stable loading states (no layout-shifting skeleton placeholders) */
.wsp-products-page.is-loading .wsp-products-tabs-placeholder {
    min-height: 48px;
}

.wsp-products-loading-state,
.wsp-product-sheet-loading-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52vh;
    padding: 24px 16px;
}

.wsp-products-loading-state p,
.wsp-product-sheet-loading-shell p,
.wsp-product-sheet-body.wsp-sheet-loading-inline {
    margin: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
}

.wsp-product-sheet-hero-image.is-placeholder {
    display: block;
    background: rgba(255, 255, 255, 0.1);
}

.wsp-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 12px;
    background: rgba(8, 12, 24, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    touch-action: none;
}

.wsp-image-lightbox-stage {
    position: relative;
    width: min(96vw, 920px);
    height: min(88vh, 920px);
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 20px;
    touch-action: none;
    cursor: zoom-in;
}

.wsp-image-lightbox-stage.is-zoomed {
    cursor: grab;
}

.wsp-image-lightbox-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 20px;
    object-fit: contain;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    transform-origin: center center;
    transition: transform 0.08s ease-out;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.wsp-image-lightbox-hint {
    position: absolute;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
}

.wsp-image-lightbox-close {
    position: absolute;
    top: calc(16px + env(safe-area-inset-top, 0px));
    left: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

/* Product sort + featured filter */
.wsp-template-fabric,
.wsp-product-fabric,
.wsp-product-dimension {
    margin: 6px 0 0;
    color: #466068;
    font-size: 13px;
    font-weight: 700;
}

.wsp-product-sheet-hero-text .wsp-product-fabric,
.wsp-product-sheet-hero-text .wsp-product-dimension {
    font-size: 14px;
    color: rgba(70, 82, 92, 0.88);
}

.wsp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wsp-header-cart .wsp-nav-svg {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
}

.wsp-products-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    position: relative;
}

.wsp-products-tool-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}

.wsp-products-tool-btn .wsp-nav-svg {
    width: 18px;
    height: 18px;
}

.wsp-products-tool-btn.is-active {
    color: var(--wsp-teal-deep, #7aece4);
    border-color: rgba(122, 236, 228, 0.45);
    background: rgba(122, 236, 228, 0.16);
}

.wsp-products-tool-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.wsp-products-sort-wrap {
    position: relative;
}

.wsp-products-sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 168px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 14, 26, 0.96);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    z-index: 20;
    display: grid;
    gap: 2px;
}

.wsp-products-sort-option {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    text-align: right;
    padding: 10px 12px;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.wsp-products-sort-option.is-active,
.wsp-products-sort-option:hover {
    background: rgba(122, 236, 228, 0.16);
    color: var(--wsp-teal-deep, #7aece4);
}

.wsp-app.is-home-view .wsp-products-page .wsp-product-tabs,
.wsp-app.is-home-view .wsp-products-page.has-person-event-tabs .wsp-product-tabs {
    top: auto;
}

.wsp-template-preview-body p.wsp-template-fabric {
    -webkit-line-clamp: 1;
    color: var(--wsp-teal-deep, #1f8f88);
    font-weight: 800;
}

.wsp-nav-svg {
    width: 22px;
    height: 22px;
    aspect-ratio: 1;
    display: block;
    flex-shrink: 0;
}

/* Share caption sheet */
.wsp-sheet-overlay:has(+ .wsp-share-sheet) {
    background: rgba(8, 12, 22, 0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 95;
}

.wsp-share-sheet {
    z-index: 96;
    max-height: min(78dvh, 640px);
    height: auto;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: calc(100% - 32px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.94);
    color: #172033;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 28px 64px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    padding: 8px 0 16px;
    overflow: visible;
}

.wsp-share-head {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: start;
    padding: 0 16px 10px;
}

.wsp-share-head-main {
    min-width: 0;
    text-align: right;
}

.wsp-share-head-main h2 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #172033;
}

.wsp-share-head-main span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: rgba(23, 32, 51, 0.62);
}

.wsp-share-body {
    display: grid;
    gap: 12px;
    padding: 0 16px 8px;
}

.wsp-share-select {
    position: relative;
}

.wsp-share-select-trigger {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 18px;
    gap: 10px;
    align-items: center;
    text-align: right;
    border-radius: 14px;
    border: 1px solid rgba(20, 30, 50, 0.14);
    background: #fff;
    color: #172033;
    padding: 12px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.wsp-share-select-trigger span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wsp-share-select-trigger i {
    width: 10px;
    height: 10px;
    border-inline-end: 2px solid rgba(23, 32, 51, 0.55);
    border-bottom: 2px solid rgba(23, 32, 51, 0.55);
    transform: rotate(45deg) translateY(-2px);
    justify-self: center;
    transition: transform 0.18s ease;
}

.wsp-share-select.is-open .wsp-share-select-trigger {
    border-color: rgba(31, 143, 136, 0.55);
    box-shadow: 0 0 0 3px rgba(122, 236, 228, 0.18);
}

.wsp-share-select.is-open .wsp-share-select-trigger i {
    transform: rotate(225deg) translateY(-1px);
}

.wsp-share-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 220px;
    overflow: auto;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(20, 30, 50, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    z-index: 8;
    display: grid;
    gap: 2px;
}

.wsp-share-select-option {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
}

.wsp-share-select-option-main {
    display: grid;
    gap: 2px;
    text-align: right;
    border: 0;
    background: transparent;
    color: #172033;
    padding: 10px 12px;
    font: inherit;
    cursor: pointer;
}

.wsp-share-select-option-main strong {
    font-size: 13px;
    font-weight: 800;
}

.wsp-share-select-option-main em {
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    color: #1f8f88;
}

.wsp-share-select-option.is-active .wsp-share-select-option-main,
.wsp-share-select-option-main:hover {
    background: rgba(122, 236, 228, 0.16);
    color: #146862;
}

.wsp-share-select-empty {
    padding: 12px;
    font-size: 12px;
    color: rgba(23, 32, 51, 0.62);
    text-align: right;
}

.wsp-share-delete {
    width: 34px;
    border: 0;
    background: rgba(180, 40, 40, 0.08);
    color: #a12a2a;
    font-size: 18px;
    cursor: pointer;
}

.wsp-share-add {
    border: 1px dashed rgba(31, 143, 136, 0.45);
    background: rgba(122, 236, 228, 0.12);
    color: #146862;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.wsp-share-preview {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(12, 20, 36, 0.04);
    border: 1px solid rgba(20, 30, 50, 0.06);
}

.wsp-share-preview strong {
    font-size: 12px;
    color: rgba(23, 32, 51, 0.72);
}

.wsp-share-preview-text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: IRANSans, IRANSansWeb, Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.75;
    color: #172033;
    max-height: 220px;
    overflow: auto;
}

/* ایموجی‌ها به‌صورت تصویر SVG هم‌اندازه متن رندر می‌شوند (فونت سایت گلیف خالی دارد). */
img.wsp-share-emoji,
.wsp-share-emoji {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    margin: 0 0.04em;
    vertical-align: -0.2em;
    object-fit: contain;
    border: 0;
    padding: 0;
    font-size: 1em;
    line-height: 1;
}

.wsp-share-field {
    display: grid;
    gap: 6px;
    text-align: right;
}

.wsp-share-field > span {
    font-size: 12px;
    font-weight: 800;
    color: rgba(23, 32, 51, 0.72);
}

.wsp-share-field input,
.wsp-share-field textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(20, 30, 50, 0.14);
    padding: 10px 12px;
    font: inherit;
    font-size: 13px;
    background: #fff;
    color: #172033;
    resize: vertical;
}

.wsp-share-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8px;
}

.wsp-share-btn {
    border: 0;
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    background: #146862;
    color: #fff;
}

.wsp-share-btn.is-ghost {
    background: rgba(20, 30, 50, 0.08);
    color: #1d2a44;
}

.wsp-share-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.wsp-share-sheet .wsp-sheet-notice {
    margin: 0 16px;
}

.wsp-share-sheet .wsp-sheet-close-inline {
    color: #172033;
    border-color: rgba(23, 32, 51, 0.16);
}

/* Limited home/type scale — large stays modest so cards don't break */
.wsp-app[data-font-scale="large"] .wsp-calendar-title {
    font-size: 28px;
}

.wsp-app[data-font-scale="large"] .wsp-calendar-grid-head strong,
.wsp-app[data-font-scale="large"] .wsp-calendar-occasions strong,
.wsp-app[data-font-scale="large"] .wsp-term-group-head strong {
    font-size: 17px;
}

.wsp-app[data-font-scale="large"] .wsp-calendar-occasions ul {
    font-size: 17px;
    max-height: calc(17px * 1.9 * 4);
}

.wsp-app[data-font-scale="large"] .wsp-calendar-count,
.wsp-app[data-font-scale="large"] .wsp-calendar-desc,
.wsp-app[data-font-scale="large"] .wsp-month-tile small,
.wsp-app[data-font-scale="large"] .wsp-template-preview-top span,
.wsp-app[data-font-scale="large"] .wsp-template-preview-body p,
.wsp-app[data-font-scale="large"] .wsp-template-sizes strong,
.wsp-app[data-font-scale="large"] .wsp-template-size-item {
    font-size: 14px;
}

.wsp-app[data-font-scale="large"] .wsp-month-tile strong {
    font-size: 17px;
}

.wsp-app[data-font-scale="large"] .wsp-template-preview-top h3 {
    font-size: 18px;
}

.wsp-app[data-font-scale="large"] .wsp-chip {
    font-size: 15px;
}

.wsp-app[data-font-scale="large"] .wsp-month-tile {
    min-height: 78px;
    padding: 12px 8px;
}

.wsp-app[data-font-scale="xlarge"] .wsp-calendar-title {
    font-size: 34px;
}

.wsp-app[data-font-scale="xlarge"] .wsp-calendar-grid-head strong,
.wsp-app[data-font-scale="xlarge"] .wsp-calendar-occasions strong,
.wsp-app[data-font-scale="xlarge"] .wsp-term-group-head strong {
    font-size: 20px;
}

.wsp-app[data-font-scale="xlarge"] .wsp-calendar-occasions ul {
    font-size: 19px;
    max-height: calc(19px * 1.9 * 4);
}

.wsp-app[data-font-scale="xlarge"] .wsp-calendar-count,
.wsp-app[data-font-scale="xlarge"] .wsp-calendar-desc,
.wsp-app[data-font-scale="xlarge"] .wsp-month-tile small,
.wsp-app[data-font-scale="xlarge"] .wsp-template-preview-top span,
.wsp-app[data-font-scale="xlarge"] .wsp-template-preview-body p,
.wsp-app[data-font-scale="xlarge"] .wsp-template-sizes strong,
.wsp-app[data-font-scale="xlarge"] .wsp-template-size-item {
    font-size: 16px;
}

.wsp-app[data-font-scale="xlarge"] .wsp-month-tile strong {
    font-size: 19px;
}

.wsp-app[data-font-scale="xlarge"] .wsp-template-preview-top h3 {
    font-size: 21px;
}

.wsp-app[data-font-scale="xlarge"] .wsp-chip {
    font-size: 17px;
}

.wsp-app[data-font-scale="xlarge"] .wsp-month-tile {
    min-height: 88px;
    padding: 14px 9px;
}

.wsp-app[data-font-scale="xlarge"] {
    font-size: 17px;
}

.wsp-app[data-font-scale="xlarge"] .wsp-desk-notice,
.wsp-app[data-font-scale="xlarge"] .wsp-desk-status,
.wsp-app[data-font-scale="xlarge"] .wsp-desk-item-copy b,
.wsp-app[data-font-scale="xlarge"] .wsp-product-card strong,
.wsp-app[data-font-scale="xlarge"] .wsp-bottom-nav span {
    font-size: 1.08em;
}

/* Occasion → general pull-up (Telegram-like) */
.wsp-occasion-pull {
    --wsp-pull: 0px;
    --wsp-pull-p: 0;
    position: relative;
    margin: 12px 14px 8px;
    padding: calc(8px + (var(--wsp-pull-p) * 58px)) 0 0;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    z-index: 5;
}

.wsp-products-page.is-occasion-at-end .wsp-occasion-pull {
    position: sticky;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

.wsp-occasion-pull__icon-wrap {
    position: absolute;
    left: 50%;
    top: 0;
    width: 56px;
    height: 56px;
    margin-left: -28px;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: calc(var(--wsp-pull-p) * 1.08);
    transform:
        translate3d(0, calc((1 - var(--wsp-pull-p)) * 10px), 0)
        scale(calc(0.42 + (var(--wsp-pull-p) * 0.58)));
    transform-origin: center bottom;
    transition: opacity 0.1s ease, transform 0.1s ease;
    will-change: transform, opacity;
    z-index: 2;
}

.wsp-occasion-pull.is-releasing .wsp-occasion-pull__icon-wrap {
    transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.wsp-occasion-pull__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.28),
        0 0 0 4px rgba(122, 236, 228, calc(var(--wsp-pull-p) * 0.22));
}

.wsp-occasion-pull.is-armed .wsp-occasion-pull__icon {
    animation: wsp-occasion-pull-pulse 1.1s ease-in-out infinite;
}

.wsp-occasion-pull.is-launching .wsp-occasion-pull__icon {
    animation: wsp-occasion-pull-launch 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wsp-occasion-pull__glyph-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wsp-occasion-pull__glyph-fallback {
    font-size: 18px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
}

.wsp-occasion-pull__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 14px 12px;
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(122, 236, 228, 0.12) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1;
    transition: border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.wsp-occasion-pull.is-pulling .wsp-occasion-pull__stage {
    border-color: rgba(122, 236, 228, 0.4);
    background: linear-gradient(
        180deg,
        rgba(122, 236, 228, 0.08) 0%,
        rgba(242, 140, 40, 0.12) 100%
    );
}

.wsp-occasion-pull.is-armed .wsp-occasion-pull__stage {
    border-color: rgba(122, 236, 228, 0.6);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(122, 236, 228, 0.2),
        0 0 28px rgba(122, 236, 228, 0.24);
}

.wsp-occasion-pull__hint {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
}

.wsp-occasion-pull__hint p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    font-weight: 600;
    max-width: 26ch;
}

.wsp-occasion-pull.is-armed .wsp-occasion-pull__hint {
    color: rgba(122, 236, 228, 0.98);
}

.wsp-occasion-pull__chevrons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    height: 16px;
    opacity: 0.8;
    color: currentColor;
}

.wsp-occasion-pull__chev {
    width: 18px;
    height: 9px;
    display: block;
    opacity: 0.35;
    animation: wsp-occasion-pull-chevron 1.35s ease-in-out infinite;
}

.wsp-occasion-pull__chev:last-child {
    margin-top: -3px;
    animation-delay: 0.18s;
}

.wsp-occasion-pull.is-pulling .wsp-occasion-pull__chevrons {
    opacity: 0.3;
}

.wsp-products-page.is-occasion-pulling .wsp-section {
    transform: translate3d(0, calc(var(--wsp-pull, 0px) * -0.15), 0);
    transition: none;
}

@keyframes wsp-occasion-pull-chevron {
    0%, 100% { opacity: 0.2; transform: translateY(2px); }
    50% { opacity: 0.9; transform: translateY(-2px); }
}

@keyframes wsp-occasion-pull-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(122, 236, 228, 0.35); }
    50% { transform: scale(1.05); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(122, 236, 228, 0); }
}

@keyframes wsp-occasion-pull-launch {
    0% { transform: scale(1); opacity: 1; }
    70% { transform: scale(1.18); opacity: 1; }
    100% { transform: scale(0.2); opacity: 0; }
}

.wsp-app[data-theme="light"] .wsp-occasion-pull__stage {
    background: linear-gradient(180deg, rgba(15, 60, 58, 0.03) 0%, rgba(15, 120, 110, 0.08) 100%);
    border-color: rgba(15, 60, 58, 0.14);
    box-shadow: 0 10px 24px rgba(15, 60, 58, 0.08);
}

.wsp-app[data-theme="light"] .wsp-occasion-pull__icon {
    background: #fff;
    border-color: rgba(15, 60, 58, 0.16);
}

.wsp-app[data-theme="light"] .wsp-occasion-pull__hint {
    color: rgba(15, 40, 50, 0.75);
}

.wsp-app[data-theme="light"] .wsp-occasion-pull.is-armed .wsp-occasion-pull__hint {
    color: #0f6d66;
}

html.wsp-sheet-scroll-lock,
body.wsp-sheet-scroll-lock {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
}

body.wsp-sheet-scroll-lock {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}

#wsp-wholesale-root.wsp-sheet-scroll-lock {
    overscroll-behavior: none;
}

body.wsp-sheet-scroll-lock .wsp-product-sheet,
body.wsp-sheet-scroll-lock .wsp-cart-sheet,
body.wsp-sheet-scroll-lock .wsp-quick-sheet,
body.wsp-sheet-scroll-lock .wsp-share-sheet {
    touch-action: auto;
    overscroll-behavior: contain;
}

/* ── Dark theme: product / cart / share sheets ── */
.wsp-app:not([data-theme="light"]) .wsp-sheet.wsp-product-sheet.wsp-glass-sheet,
.wsp-app:not([data-theme="light"]) .wsp-sheet.wsp-cart-sheet.wsp-glass-sheet,
html:not([data-wsp-theme="light"]) .wsp-sheet.wsp-product-sheet.wsp-glass-sheet,
html:not([data-wsp-theme="light"]) .wsp-sheet.wsp-cart-sheet.wsp-glass-sheet {
    background: rgba(18, 26, 40, 0.96);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(236, 244, 248, 0.94);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 28px 64px rgba(0, 0, 0, 0.5);
}

.wsp-app:not([data-theme="light"]) .wsp-product-sheet .wsp-sheet-handle,
.wsp-app:not([data-theme="light"]) .wsp-cart-sheet .wsp-sheet-handle,
html:not([data-wsp-theme="light"]) .wsp-product-sheet .wsp-sheet-handle,
html:not([data-wsp-theme="light"]) .wsp-cart-sheet .wsp-sheet-handle {
    background: rgba(255, 255, 255, 0.28);
}

.wsp-app:not([data-theme="light"]) .wsp-product-sheet-tool,
.wsp-app:not([data-theme="light"]) .wsp-product-sheet-sku,
.wsp-app:not([data-theme="light"]) .wsp-cart-sheet .wsp-sheet-close-inline,
html:not([data-wsp-theme="light"]) .wsp-product-sheet-tool,
html:not([data-wsp-theme="light"]) .wsp-product-sheet-sku,
html:not([data-wsp-theme="light"]) .wsp-cart-sheet .wsp-sheet-close-inline {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    color: #8ef0e8;
    box-shadow: none;
}

.wsp-app:not([data-theme="light"]) .wsp-product-sheet-hero-text h2,
.wsp-app:not([data-theme="light"]) .wsp-product-sheet-summary strong,
.wsp-app:not([data-theme="light"]) .wsp-product-sheet-summary span,
.wsp-app:not([data-theme="light"]) .wsp-product-sheet-section-title,
.wsp-app:not([data-theme="light"]) .wsp-cart-sheet .wsp-cart-head h2,
.wsp-app:not([data-theme="light"]) .wsp-cart-sheet .wsp-cart-item strong,
html:not([data-wsp-theme="light"]) .wsp-product-sheet-hero-text h2,
html:not([data-wsp-theme="light"]) .wsp-product-sheet-summary strong,
html:not([data-wsp-theme="light"]) .wsp-product-sheet-summary span,
html:not([data-wsp-theme="light"]) .wsp-product-sheet-section-title,
html:not([data-wsp-theme="light"]) .wsp-cart-sheet .wsp-cart-head h2,
html:not([data-wsp-theme="light"]) .wsp-cart-sheet .wsp-cart-item strong {
    color: rgba(236, 244, 248, 0.96);
}

.wsp-app:not([data-theme="light"]) .wsp-product-sheet-hero-text span,
.wsp-app:not([data-theme="light"]) .wsp-cart-sheet .wsp-cart-head span,
html:not([data-wsp-theme="light"]) .wsp-product-sheet-hero-text span,
html:not([data-wsp-theme="light"]) .wsp-cart-sheet .wsp-cart-head span {
    color: #8ef0e8;
}

.wsp-app:not([data-theme="light"]) .wsp-product-sheet-hero-text .wsp-product-fabric,
.wsp-app:not([data-theme="light"]) .wsp-product-sheet-hero-text .wsp-product-dimension,
.wsp-app:not([data-theme="light"]) .wsp-cart-sheet .wsp-cart-item small,
.wsp-app:not([data-theme="light"]) .wsp-cart-sheet .wsp-cart-item-body em,
html:not([data-wsp-theme="light"]) .wsp-product-sheet-hero-text .wsp-product-fabric,
html:not([data-wsp-theme="light"]) .wsp-product-sheet-hero-text .wsp-product-dimension,
html:not([data-wsp-theme="light"]) .wsp-cart-sheet .wsp-cart-item small,
html:not([data-wsp-theme="light"]) .wsp-cart-sheet .wsp-cart-item-body em {
    color: rgba(200, 214, 224, 0.78);
}

.wsp-app:not([data-theme="light"]) .wsp-product-sheet-nav,
html:not([data-wsp-theme="light"]) .wsp-product-sheet-nav {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(142, 240, 232, 0.35);
    color: #8ef0e8;
}

.wsp-app:not([data-theme="light"]) .wsp-product-sheet-option,
.wsp-app:not([data-theme="light"]) .wsp-product-sheet .wsp-quantity-row button,
.wsp-app:not([data-theme="light"]) .wsp-product-sheet .wsp-quantity-presets button,
.wsp-app:not([data-theme="light"]) .wsp-product-sheet .wsp-quantity-row strong,
html:not([data-wsp-theme="light"]) .wsp-product-sheet-option,
html:not([data-wsp-theme="light"]) .wsp-product-sheet .wsp-quantity-row button,
html:not([data-wsp-theme="light"]) .wsp-product-sheet .wsp-quantity-presets button,
html:not([data-wsp-theme="light"]) .wsp-product-sheet .wsp-quantity-row strong {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(236, 244, 248, 0.92);
}

.wsp-app:not([data-theme="light"]) .wsp-product-sheet-option strong,
html:not([data-wsp-theme="light"]) .wsp-product-sheet-option strong {
    color: rgba(236, 244, 248, 0.96);
}

.wsp-app:not([data-theme="light"]) .wsp-product-sheet-option small,
html:not([data-wsp-theme="light"]) .wsp-product-sheet-option small {
    color: rgba(200, 214, 224, 0.7);
}

.wsp-app:not([data-theme="light"]) .wsp-product-sheet-option.is-active,
.wsp-app:not([data-theme="light"]) .wsp-product-sheet .wsp-quantity-presets button.is-active,
html:not([data-wsp-theme="light"]) .wsp-product-sheet-option.is-active,
html:not([data-wsp-theme="light"]) .wsp-product-sheet .wsp-quantity-presets button.is-active {
    background: rgba(78, 205, 196, 0.16);
    border-color: rgba(78, 205, 196, 0.5);
    color: #8ef0e8;
    box-shadow: inset 0 0 0 1px rgba(78, 205, 196, 0.18);
}

.wsp-app:not([data-theme="light"]) .wsp-product-sheet-option.is-active strong,
.wsp-app:not([data-theme="light"]) .wsp-product-sheet .wsp-quantity-row strong,
html:not([data-wsp-theme="light"]) .wsp-product-sheet-option.is-active strong,
html:not([data-wsp-theme="light"]) .wsp-product-sheet .wsp-quantity-row strong {
    color: #8ef0e8;
}

.wsp-app:not([data-theme="light"]) .wsp-cart-sheet .wsp-cart-item.wsp-glass-card,
html:not([data-wsp-theme="light"]) .wsp-cart-sheet .wsp-cart-item.wsp-glass-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.wsp-app:not([data-theme="light"]) .wsp-cart-sheet .wsp-empty,
.wsp-app:not([data-theme="light"]) .wsp-product-sheet .wsp-empty,
html:not([data-wsp-theme="light"]) .wsp-cart-sheet .wsp-empty,
html:not([data-wsp-theme="light"]) .wsp-product-sheet .wsp-empty {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(200, 214, 224, 0.8);
}

.wsp-app:not([data-theme="light"]) .wsp-share-sheet,
html:not([data-wsp-theme="light"]) .wsp-share-sheet {
    background: rgba(18, 26, 40, 0.97);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(236, 244, 248, 0.94);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 28px 64px rgba(0, 0, 0, 0.5);
}

.wsp-app:not([data-theme="light"]) .wsp-share-head-main h2,
.wsp-app:not([data-theme="light"]) .wsp-share-preview strong,
.wsp-app:not([data-theme="light"]) .wsp-share-sheet .wsp-sheet-close-inline,
html:not([data-wsp-theme="light"]) .wsp-share-head-main h2,
html:not([data-wsp-theme="light"]) .wsp-share-preview strong,
html:not([data-wsp-theme="light"]) .wsp-share-sheet .wsp-sheet-close-inline {
    color: rgba(236, 244, 248, 0.96);
}

.wsp-app:not([data-theme="light"]) .wsp-share-head-main span,
.wsp-app:not([data-theme="light"]) .wsp-share-preview-text,
html:not([data-wsp-theme="light"]) .wsp-share-head-main span,
html:not([data-wsp-theme="light"]) .wsp-share-preview-text {
    color: rgba(200, 214, 224, 0.78);
}

.wsp-app:not([data-theme="light"]) .wsp-share-select-trigger,
.wsp-app:not([data-theme="light"]) .wsp-share-field input,
.wsp-app:not([data-theme="light"]) .wsp-share-field textarea,
.wsp-app:not([data-theme="light"]) .wsp-share-preview,
html:not([data-wsp-theme="light"]) .wsp-share-select-trigger,
html:not([data-wsp-theme="light"]) .wsp-share-field input,
html:not([data-wsp-theme="light"]) .wsp-share-field textarea,
html:not([data-wsp-theme="light"]) .wsp-share-preview {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(236, 244, 248, 0.94);
}

.wsp-app:not([data-theme="light"]) .wsp-share-select-trigger i,
html:not([data-wsp-theme="light"]) .wsp-share-select-trigger i {
    border-color: rgba(236, 244, 248, 0.55);
}

.wsp-app:not([data-theme="light"]) .wsp-share-select-menu,
html:not([data-wsp-theme="light"]) .wsp-share-select-menu {
    background: rgba(22, 32, 48, 0.98);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(236, 244, 248, 0.94);
}

.wsp-app:not([data-theme="light"]) .wsp-share-btn.is-ghost,
html:not([data-wsp-theme="light"]) .wsp-share-btn.is-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(236, 244, 248, 0.92);
}

.wsp-app:not([data-theme="light"]) .wsp-share-field > span,
.wsp-app:not([data-theme="light"]) .wsp-share-select-option-main strong,
html:not([data-wsp-theme="light"]) .wsp-share-field > span,
html:not([data-wsp-theme="light"]) .wsp-share-select-option-main strong {
    color: rgba(236, 244, 248, 0.9);
}

.wsp-app:not([data-theme="light"]) .wsp-share-select-option-main em,
.wsp-app:not([data-theme="light"]) .wsp-share-select-empty,
html:not([data-wsp-theme="light"]) .wsp-share-select-option-main em,
html:not([data-wsp-theme="light"]) .wsp-share-select-empty {
    color: rgba(200, 214, 224, 0.7);
}

.wsp-app:not([data-theme="light"]) .wsp-share-add,
html:not([data-wsp-theme="light"]) .wsp-share-add {
    border-color: rgba(78, 205, 196, 0.45);
    color: #8ef0e8;
    background: rgba(78, 205, 196, 0.08);
}

.wsp-app:not([data-theme="light"]) .wsp-cart-sheet .wsp-checkout-link,
html:not([data-wsp-theme="light"]) .wsp-cart-sheet .wsp-checkout-link {
    color: #fff;
}

