/* فسقلی — تم پاستلی شاد (کودک + والدین) */
:root {
    --shop-radius: 1rem;
    --shop-radius-lg: 1.5rem;
    --shop-bg: #fff9fc;
    --shop-surface: #ffffff;
    --shop-accent: #ff6b9d;
    --shop-accent-soft: #ff8fba;
    --shop-accent-deep: #e84d82;
    --shop-ink: #4a3a5c;
    --shop-muted: #8a6b84;
    --shop-line: #ffd0e4;
    --shop-soft: #fff5f9;
    --shop-soft-2: #ffe8f1;
    --shop-mint: #6ee7b7;
    --shop-sky: #7dd3fc;
    --shop-peach: #fcd34d;
    --shop-lav: #c4b5fd;
    --shop-shadow: 0 4px 24px -8px rgba(255, 107, 157, 0.18);
    --shop-shadow-hover: 0 12px 32px -12px rgba(255, 107, 157, 0.3);
    --shop-transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ??????? */
.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--shop-radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: transform var(--shop-transition), box-shadow var(--shop-transition), background var(--shop-transition), border-color var(--shop-transition), opacity var(--shop-transition);
    cursor: pointer;
    border: none;
    text-align: center;
}
.shop-btn:active:not(:disabled) { transform: scale(0.98); }
.shop-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.shop-btn-primary {
    background: linear-gradient(135deg, #ff8fba 0%, #ff6b9d 40%, #7dd3fc 100%);
    color: #fff;
    box-shadow: 0 6px 18px -6px rgba(255, 107, 157, 0.5);
}
.shop-btn-primary:hover:not(:disabled) {
    box-shadow: var(--shop-shadow-hover);
    background: linear-gradient(135deg, #ffb0d2 0%, #ff7ab5 45%, #38bdf8 100%);
}

.shop-btn-outline {
    background: #fff;
    color: #ff6b9d;
    border: 1.5px solid #ffd0e4;
}
.shop-btn-outline:hover:not(:disabled) {
    background: #fff5f9;
    border-color: #ffb0d2;
}

.shop-btn-ghost {
    background: transparent;
    color: #c23a68;
    border: 1.5px solid transparent;
}
.shop-btn-ghost:hover:not(:disabled) { background: #fff5f9; }

.shop-btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; font-weight: 700; }
.shop-btn-block { width: 100%; }

/* ?????? */
.shop-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.375rem;
}

.shop-input,
.shop-textarea,
.shop-select {
    width: 100%;
    border: 1.5px solid #ffe8f1;
    border-radius: var(--shop-radius-lg);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    background: rgba(255, 245, 249, 0.5);
    transition: border-color var(--shop-transition), box-shadow var(--shop-transition), background var(--shop-transition);
}
.shop-input:focus,
.shop-textarea:focus,
.shop-select:focus {
    outline: none;
    border-color: #ffb0d2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.22);
}
.shop-input.is-error,
.shop-textarea.is-error { border-color: #fca5a5; background: #fef2f2; }
.shop-field-error { font-size: 0.75rem; color: #f87171; margin-top: 0.25rem; }

.shop-search {
    border-radius: 9999px;
    padding-right: 2.75rem;
}

/* ???? */
.shop-card {
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 232, 241, 0.9);
    box-shadow: var(--shop-shadow);
}

.shop-card-soft {
    background: linear-gradient(135deg, #fff5f9 0%, #e0f2fe 100%);
    border: 1px solid #ffe8f1;
    border-radius: var(--shop-radius-lg);
}

/* ????? */
.shop-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #ffe8f1;
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    background: #fff5f9;
}
.shop-qty button {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: #e84d82;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background var(--shop-transition);
}
.shop-qty button:hover:not(:disabled) { background: #ffe8f1; }
.shop-qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.shop-qty input {
    width: 2.5rem;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 0.875rem;
    -moz-appearance: textfield;
}
.shop-qty input::-webkit-outer-spin-button,
.shop-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Toast — وسط صفحه (افقی) */
#shop-toast-root {
    position: fixed;
    top: max(1.25rem, calc(var(--shop-header-h, 4.5rem) + 0.75rem));
    left: 0;
    right: 0;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    max-width: 100vw;
    padding-inline: 1rem;
    box-sizing: border-box;
    pointer-events: none;
    transform: none;
}
.shop-toast {
    width: min(28rem, 100%);
    margin-inline: auto;
    padding: 0.95rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.7;
    box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.22);
    animation: shopToastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}
.shop-toast--success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.shop-toast--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
@keyframes shopToastIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ?????? ???? */
.shop-btn.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.shop-btn.is-loading::after {
    content: '';
    position: absolute;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: shopSpin 0.65s linear infinite;
}
.shop-btn-outline.is-loading::after {
    border-color: rgba(255, 107, 157, 0.25);
    border-top-color: #ff6b9d;
}
@keyframes shopSpin { to { transform: rotate(360deg); } }

/* ???? ?????? */
#shop-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(58, 45, 35, 0.22);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 55;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s;
}
#shop-menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
#shop-mobile-menu {
    position: fixed;
    top: var(--shop-header-h, 7.25rem);
    right: 0;
    left: auto;
    width: min(16.75rem, 76vw);
    max-width: 17.5rem;
    max-height: min(28rem, calc(100dvh - var(--shop-header-h, 7.25rem) - 0.5rem));
    z-index: 57;
    margin: 0;
    padding: 0.85rem 0.75rem 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255, 232, 241, 0.95);
    border-right: none;
    background: linear-gradient(180deg, rgba(255, 253, 250, 0.99), rgba(253, 248, 242, 0.97));
    border-radius: 1rem 0 0 1rem;
    box-shadow: -10px 8px 36px -12px rgba(107, 91, 138, 0.35);
    display: none;
    opacity: 0;
    transform: translateX(105%);
    transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
#shop-mobile-menu.is-open {
    display: block;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    animation: shopMenuIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes shopMenuIn {
    from { opacity: 0; transform: translateX(105%); }
    to { opacity: 1; transform: translateX(0); }
}

/* ?????? ?? ???? */
#shop-back-top {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 50;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #ffd0e4;
    color: #ff6b9d;
    box-shadow: var(--shop-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--shop-transition), visibility var(--shop-transition), transform var(--shop-transition), background var(--shop-transition);
    cursor: pointer;
}
#shop-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#shop-back-top:hover { background: #fff5f9; }

/* ????????? */
.shop-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; }
.shop-pagination a,
.shop-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.625rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background var(--shop-transition), color var(--shop-transition);
}
.shop-pagination a {
    background: #fff;
    border: 1px solid #ffe8f1;
    color: #c23a68;
}
.shop-pagination a:hover { background: #fff5f9; border-color: #ffb0d2; }
.shop-pagination span[aria-current="page"] {
    background: linear-gradient(135deg, #ff8fba, #ff6b9d);
    color: #fff;
    border: none;
}
.shop-pagination span[aria-disabled="true"] { color: #d1d5db; }

/* نوار ثابت سبد خرید — بالای تب پایین موبایل */
.shop-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 55;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid #ffe8f1;
    box-shadow: 0 -4px 24px -8px rgba(107, 91, 138, 0.12);
}

@media (max-width: 767px) {
    .shop-sticky-bar {
        /* بالای shop-bottom-nav تا دیده شود */
        bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
        padding: 0.7rem 0.85rem;
        z-index: 55;
    }

    .shop-body:has(.shop-sticky-bar) {
        padding-bottom: calc(9.25rem + env(safe-area-inset-bottom, 0px));
    }
}

/* ??????? */
.shop-skeleton {
    background: linear-gradient(90deg, #ffe8f1 25%, #fff5f9 50%, #ffe8f1 75%);
    background-size: 200% 100%;
    animation: shopShimmer 1.2s ease-in-out infinite;
    border-radius: 0.5rem;
}
@keyframes shopShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ????? ?????? */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid #ffb0d2;
    outline-offset: 2px;
}

/* ???? ??? */
.skip-link {
    position: absolute;
    top: -100%;
    right: 1rem;
    z-index: 200;
    padding: 0.5rem 1rem;
    background: #ff6b9d;
    color: #fff;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}
.skip-link:focus { top: 0.5rem; }

/* ?? ????? ? ?????????? v2 ?? */
.shop-body {
    background-color: var(--shop-bg, #fff9fc);
    background-image:
        radial-gradient(ellipse 90% 55% at 100% -5%, rgba(255, 158, 200, 0.35), transparent 58%),
        radial-gradient(ellipse 80% 50% at -5% 5%, rgba(125, 211, 252, 0.32), transparent 55%),
        radial-gradient(ellipse 70% 45% at 50% 105%, rgba(110, 231, 183, 0.28), transparent 55%),
        radial-gradient(ellipse 50% 40% at 80% 70%, rgba(196, 181, 253, 0.18), transparent 60%),
        radial-gradient(circle at 1px 1px, rgba(255, 143, 186, 0.14) 1px, transparent 0);
    background-size: auto, auto, auto, auto, 22px 22px;
    color: var(--shop-ink, #4a3a5c);
}

/* تب پایین موبایل */
.shop-bottom-nav {
    display: none;
}
@media (max-width: 767px) {
    .shop-body {
        padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }
    .shop-bottom-nav {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.15rem;
        padding: 0.4rem 0.35rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 249, 252, 0.96);
        backdrop-filter: blur(14px);
        border-top: 1px solid rgba(255, 208, 228, 0.9);
        box-shadow: 0 -10px 28px -18px rgba(255, 107, 157, 0.35);
    }
    .shop-bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        min-height: 3.15rem;
        padding: 0.2rem 0.15rem;
        border-radius: 0.95rem;
        text-decoration: none;
        color: #8a6b84;
        transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .shop-bottom-nav__item:active {
        transform: scale(0.96);
    }
    .shop-bottom-nav__item.is-active {
        color: #e84d82;
        background: linear-gradient(165deg, rgba(255, 240, 246, 0.95), rgba(224, 242, 254, 0.55));
    }
    .shop-bottom-nav__icon {
        position: relative;
        display: grid;
        place-items: center;
        width: 1.35rem;
        height: 1.35rem;
    }
    .shop-bottom-nav__icon svg {
        width: 100%;
        height: 100%;
    }
    .shop-bottom-nav__badge {
        position: absolute;
        top: -0.35rem;
        left: -0.45rem;
        min-width: 1rem;
        height: 1rem;
        padding: 0 0.2rem;
        border-radius: 999px;
        background: #ff6b9d;
        color: #fff;
        font-size: 0.62rem;
        font-weight: 800;
        line-height: 1rem;
        text-align: center;
        box-shadow: 0 2px 6px rgba(255, 107, 157, 0.45);
    }
    .shop-bottom-nav__label {
        font-size: 0.68rem;
        font-weight: 800;
        line-height: 1.1;
    }
    #shop-back-top {
        bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }
}

.shop-section-head {
    text-align: center;
    margin-bottom: 2rem;
}
.shop-section-head .shop-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #ff6b9d;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #ffe8f1;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.65rem;
    box-shadow: 0 2px 10px -4px rgba(255, 107, 157, 0.2);
}
.shop-section-head h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 900;
    color: #4a3a5c;
    line-height: 1.35;
}
.shop-section-head p {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-top: 0.35rem;
}

/* دسته‌بندی‌ها — قطار: اول لوکو، بعد واگن‌ها، بعد دوباره لوکو (لوپ بی‌درز راست→چپ) */
.cat-flow__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.cat-flow__stage {
    position: relative;
    isolation: isolate;
    border-radius: 1.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 194, 219, 0.65);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 18px 48px -28px rgba(255,107,157,0.22);
    direction: ltr;
    unicode-bidi: isolate;
}
.cat-flow__sky {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        linear-gradient(0deg, rgba(154,122,89,0.10) 0%, rgba(154,122,89,0) 26%),
        radial-gradient(ellipse 80% 55% at 70% 10%, rgba(255,255,255,0.7) 0%, transparent 55%),
        linear-gradient(180deg, #fff0f6 0%, #e0f2fe 48%, #ecfdf5 100%);
}
/* فضاسازی صحنه: خورشید، ابرهای شناور و ستاره‌های چشمک‌زن */
.cat-flow__ambience { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.cat-flow__sun {
    position: absolute; left: 7%; top: 11%;
    width: clamp(3.4rem, 7vw, 5rem); height: clamp(3.4rem, 7vw, 5rem);
    border-radius: 9999px;
    background: radial-gradient(circle, #fff9e6 0%, #ffeeb8 36%, rgba(255,222,130,0.55) 60%, rgba(255,214,102,0) 74%);
    filter: drop-shadow(0 0 18px rgba(255,214,102,0.6));
    animation: catSunPulse 6s ease-in-out infinite;
}
.cat-flow__clouds { position: absolute; inset: 0; }
.cat-flow__cloud {
    --cloud-scale: 1;
    position: absolute; left: -16rem;
    width: 7.5rem; height: 2.3rem; border-radius: 9999px;
    background: linear-gradient(180deg, #ffffff, #f0faff);
    box-shadow: 0 10px 22px -12px rgba(125,140,170,0.55);
    opacity: 0.92;
    animation: catCloudDrift linear infinite;
}
.cat-flow__cloud::before, .cat-flow__cloud::after {
    content: ''; position: absolute; background: inherit; border-radius: 9999px;
}
.cat-flow__cloud::before { width: 3.4rem; height: 3.4rem; top: -1.5rem; left: 1.1rem; }
.cat-flow__cloud::after { width: 2.5rem; height: 2.5rem; top: -1rem; right: 1.3rem; }
.cat-flow__cloud--1 { top: 13%; animation-duration: 90s; animation-delay: -24s; }
.cat-flow__cloud--2 { top: 33%; --cloud-scale: 0.7; opacity: 0.68; animation-duration: 130s; animation-delay: -78s; }
.cat-flow__cloud--3 { top: 5%; --cloud-scale: 0.52; opacity: 0.58; animation-duration: 110s; animation-delay: -50s; }
.cat-flow__sparkle {
    position: absolute; font-size: 1.05rem; color: #ffd166; line-height: 1;
    text-shadow: 0 0 10px rgba(255,209,102,0.85);
    animation: catTwinkle 3.2s ease-in-out infinite;
}
.cat-flow__sparkle--1 { left: 15%; top: 20%; }
.cat-flow__sparkle--2 { left: 45%; top: 10%; color: #ff9ecb; font-size: 0.78rem; text-shadow: 0 0 9px rgba(255,158,203,0.85); animation-delay: -1.1s; }
.cat-flow__sparkle--3 { left: 79%; top: 24%; font-size: 0.88rem; animation-delay: -2.1s; }
@keyframes catSunPulse {
    0%, 100% { transform: scale(1); opacity: 0.92; }
    50% { transform: scale(1.06); opacity: 1; }
}
@keyframes catCloudDrift {
    from { transform: translateX(0) scale(var(--cloud-scale)); }
    to { transform: translateX(calc(100vw + 22rem)) scale(var(--cloud-scale)); }
}
@keyframes catTwinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.55) rotate(-12deg); }
    50% { opacity: 1; transform: scale(1.12) rotate(14deg); }
}
.cat-flow__stage::before,
.cat-flow__stage::after {
    content: '';
    position: absolute; z-index: 5; top: 0; bottom: 0;
    width: clamp(0.75rem, 3vw, 2rem);
    pointer-events: none;
}
.cat-flow__stage::before { right: 0; background: linear-gradient(to left, #ecfdf5 5%, transparent); }
.cat-flow__stage::after { left: 0; background: linear-gradient(to right, #fff0f6 5%, transparent); }
.cat-flow__viewport {
    position: relative; z-index: 1; overflow: hidden;
    padding: 1.1rem 0 1.85rem;
    perspective: 1200px;
    direction: ltr;
    unicode-bidi: isolate;
}
.cat-flow__ground {
    position: absolute; left: 0; right: 0; bottom: 0.35rem; height: 2rem;
    z-index: 0; pointer-events: none;
}
.cat-flow__ties {
    position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 12px; opacity: 0.45;
    background: repeating-linear-gradient(90deg, #7a6248 0 4px, transparent 4px 26px);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.35), inset 0 -2px 0 rgba(60,42,28,0.35);
}
.cat-flow__ballast {
    position: absolute; left: 0; right: 0; bottom: 0.02rem; height: 1.05rem;
    border-radius: 9999px; opacity: 0.5;
    background: repeating-linear-gradient(90deg,
        rgba(150,132,108,0.65) 0 6px, rgba(199,183,158,0.65) 6px 12px, rgba(170,152,126,0.65) 12px 19px);
}
.cat-flow__hills {
    position: absolute; left: -2%; bottom: 1.55rem; width: 104%; height: 4.2rem;
    opacity: 0.55; pointer-events: none;
}
.cat-flow__rail-line {
    position: absolute; left: 0; right: 0; height: 3px; border-radius: 9999px;
    background: linear-gradient(90deg, #6b5648, #c4a88a, #6b5648);
}
.cat-flow__rail-line--far { bottom: 0.85rem; opacity: 0.55; }
.cat-flow__rail-line--near { bottom: 0.35rem; }
.cat-flow__rail-line--near::after {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95) 30%, rgba(255,255,255,0.95) 70%, transparent);
}

.cat-flow__rail {
    display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 0;
    width: max-content; min-width: max-content;
    direction: ltr;
    position: relative; z-index: 1;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}
.cat-flow__stage:hover .cat-flow__wheel-spin,
.cat-flow__stage:hover .cat-flow__bogie i,
.cat-flow__stage:hover .cat-flow__smoke,
.cat-flow__stage:hover .cat-flow__beam,
.cat-flow__stage:hover .cat-flow__lamp-glow,
.cat-flow__stage:hover .cat-flow__driver,
.cat-flow__stage:hover .cat-flow__engine-3d,
.cat-flow__stage:hover .cat-flow__wagon { animation-play-state: paused; }
/* حلقهٔ حرکت با JS (rAF) است — انیمیشن CSS باعث پرش ریست می‌شد */
.cat-flow__set {
    --cat-wagon-w: clamp(14rem, 26vw, 18rem);
    display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 0;
    flex: 0 0 auto; width: max-content;
    direction: ltr;
    transform-style: preserve-3d;
}

.cat-flow__engine {
    flex: 0 0 var(--cat-wagon-w);
    width: var(--cat-wagon-w);
    min-height: 16.5rem;
    /* لوکو سرِ قطار است؛ فاصلهٔ بعد از لوکو = فاصلهٔ بین دو قطار در حلقه */
    margin: 0 calc(var(--cat-wagon-w) * 1.5) 0 0;
    pointer-events: none; user-select: none;
    transform-style: preserve-3d;
}
.cat-flow__engine-3d {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    width: 100%;
    height: 16.5rem;
    padding: 0 0.35rem 0.15rem;
    box-sizing: border-box;
    filter: drop-shadow(0 12px 16px rgba(60,30,45,0.30));
    animation: catTrainBob 2.6s ease-in-out infinite;
    transform: translateZ(22px) rotateY(5deg) scaleX(-1);
}
.cat-flow__engine-svg {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
}
.cat-flow__smoke { animation: catSmoke 2.4s ease-out infinite; }
.cat-flow__smoke--2 { animation-delay: 0.4s; }
.cat-flow__smoke--3 { animation-delay: 0.85s; }
.cat-flow__smoke--4 { animation-delay: 1.25s; }
.cat-flow__wheel-spin {
    transform-box: fill-box; transform-origin: center;
    animation: catWheel 1.15s linear infinite;
}
.cat-flow__wheel--front { animation-duration: 0.85s; }
.cat-flow__wheel--drive { animation-duration: 1.25s; }
@keyframes catSmoke {
    0% { transform: translate(0, 8px) scale(0.55); opacity: 0; }
    20% { opacity: 0.95; }
    100% { transform: translate(-10px, -28px) scale(1.55); opacity: 0; }
}
@keyframes catWheel { to { transform: rotate(-360deg); } }
@keyframes catTrainBob {
    0%, 100% { transform: translateZ(22px) rotateY(5deg) scaleX(-1) translateY(0); }
    50% { transform: translateZ(22px) rotateY(5deg) scaleX(-1) translateY(-2px); }
}
/* جزئیات لوکس لوکوموتیو: پرتو نورافکن، زنگ تاب‌خوران و پرچم موج‌دار */
.cat-flow__beam {
    transform-box: fill-box; transform-origin: 100% 50%;
    animation: catBeamPulse 2.8s ease-in-out infinite;
}
.cat-flow__lamp-glow {
    transform-box: fill-box; transform-origin: center;
    animation: catBeamPulse 2.8s ease-in-out infinite;
}
@keyframes catBeamPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
/* گربه‌ی لوکوموتیوران روی بدنهٔ دیزل */
.cat-flow__driver {
    transform-box: fill-box; transform-origin: 50% 90%;
    animation: catDriverBob 2.6s ease-in-out infinite;
}
@keyframes catDriverBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1.1px); }
}

.cat-flow__wagon {
    position: relative;
    flex: 0 0 var(--cat-wagon-w);
    width: var(--cat-wagon-w);
    min-height: 16.5rem;
    margin: 0;
    text-decoration: none; color: inherit; direction: rtl;
    transform-style: preserve-3d;
    transform: translateZ(8px) rotateY(4deg);
    transition: transform 0.35s ease, filter 0.35s ease;
    animation: catWagonBob 2.6s ease-in-out infinite;
}
@keyframes catWagonBob {
    0%, 100% { transform: translateZ(8px) rotateY(4deg) translateY(0); }
    50% { transform: translateZ(8px) rotateY(4deg) translateY(-1.5px); }
}
.cat-flow__wagon:hover {
    filter: saturate(1.12) brightness(1.03);
    transform: translateZ(22px) rotateY(2deg) translateY(-6px) scale(1.03);
    z-index: 3; animation-play-state: paused;
}
/* سایبان راه‌راه بالای هر واگن — رنگش با متغیر --wc هماهنگ با کارت است */
.cat-flow__wagon::before {
    content: ''; position: absolute; top: -0.1rem; left: 0.55rem; right: 0.55rem; height: 0.55rem;
    border-radius: 0.4rem; z-index: 2; pointer-events: none;
    background: repeating-linear-gradient(90deg, var(--wc, #ff9ecb) 0 0.55rem, rgba(255,255,255,0.93) 0.55rem 1.1rem);
    box-shadow: 0 3px 9px -3px rgba(120,60,90,0.4), inset 0 1px 0 rgba(255,255,255,0.65);
}
.cat-flow__coupler {
    position: absolute; left: -1.05rem; right: auto; bottom: 2.8rem;
    width: 1.3rem; height: 0.5rem; border-radius: 9999px;
    background: linear-gradient(180deg, #9a9aa4, #3c3c46);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 4px rgba(0,0,0,0.25);
    z-index: 2; pointer-events: none;
}
.cat-flow__coupler::after {
    content: ''; position: absolute; left: -0.52rem; top: 50%; transform: translateY(-50%);
    width: 0.68rem; height: 0.68rem; border-radius: 9999px;
    border: 0.14rem solid #5a5a66; background: transparent; box-sizing: border-box;
}
.cat-flow__coupler::before {
    content: ''; position: absolute; right: -0.42rem; top: 50%; transform: translateY(-50%);
    width: 0.6rem; height: 0.6rem; border-radius: 9999px;
    border: 0.13rem solid #5a5a66; background: transparent; box-sizing: border-box;
}
.cat-flow__chassis {
    position: absolute; inset: auto 0.2rem 0.15rem; height: 3.1rem;
    z-index: 0; pointer-events: none;
}
.cat-flow__chassis-side {
    position: absolute; left: 0; right: 0; top: 0; height: 1.15rem; border-radius: 0.35rem;
    /* شاسی فولادی با درز پنل‌ها و لبهٔ بالایی براق */
    background:
        repeating-linear-gradient(90deg, rgba(40,32,26,0.22) 0 2px, transparent 2px 2.8rem),
        linear-gradient(180deg, #e8eaee 0%, #b3b9c2 35%, #828890 68%, #5a5f68 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), inset 0 -2px 3px rgba(30,25,22,0.35), 0 4px 10px rgba(60,40,25,0.22);
}
.cat-flow__bogie {
    position: absolute; left: 0.55rem; right: 0.55rem; bottom: 0.05rem;
    display: flex; justify-content: space-between; align-items: flex-end;
}
.cat-flow__axle {
    position: relative;
    display: flex; gap: 0.28rem; align-items: flex-end;
}
/* تیر محور فولادی پشت چرخ‌های هر بوژی */
.cat-flow__axle::before {
    content: ''; position: absolute; left: 0.15rem; right: 0.15rem; bottom: 0.55rem;
    height: 0.34rem; border-radius: 9999px;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.5) 0 2px, transparent 2px 6px),
        linear-gradient(180deg, #cfd4da, #7c828c);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -1px 1px rgba(20,18,16,0.4);
}
.cat-flow__bogie i {
    display: block;
    position: relative;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 9999px;
    box-sizing: border-box;
    /* چرخ واقعی: لاستیک سیاه + رینگ فولادی + توپی */
    background:
        radial-gradient(circle at 50% 50%,
            #1c1c1c 0 12%,
            #f2d488 13% 22%,
            #c0922f 23% 34%,
            #ffe9ad 35% 38%,
            #2a2a2a 39% 52%,
            #111 53% 68%,
            #050505 69% 100%);
    box-shadow:
        inset 0 0 0 2px #0a0a0a,
        inset 0 0 0 3.5px #26262a,
        inset 0 1px 2px rgba(255,255,255,0.25),
        0 2px 5px rgba(0,0,0,0.4);
    animation: catWheel 1.15s linear infinite;
}
.cat-flow__bogie i::after {
    content: '';
    position: absolute;
    inset: 28%;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
    pointer-events: none;
}
.cat-flow__cargo {
    position: relative; z-index: 1; display: block;
    margin: 0.35rem 0.35rem 2.85rem; min-height: 12.5rem;
    padding: 1.25rem 1.15rem 1.2rem;
    border-radius: 1.15rem 1.15rem 0.65rem 0.65rem;
    border: 1px solid rgba(255,255,255,0.85); overflow: hidden;
    box-shadow: inset 0 10px 14px -10px rgba(255,255,255,0.95), inset 0 1px 0 rgba(255,255,255,0.75), 0 10px 24px -14px rgba(255,107,157,0.22);
}
/* قاب داخلی ظریف مثل کارت‌های لوکس */
.cat-flow__cargo { outline: 1.5px solid rgba(255,255,255,0.55); outline-offset: -0.45rem; }
/* سایبان کنگره‌دار بالای واگن */
.cat-flow__cargo::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 0.8rem; z-index: 2;
    background-image: radial-gradient(circle at 50% 0, rgba(255,255,255,0.95) 0.47rem, rgba(255,255,255,0) 0.51rem);
    background-size: 1rem 0.8rem; background-repeat: repeat-x;
    filter: drop-shadow(0 2px 2px rgba(120,80,110,0.12));
    pointer-events: none;
}
/* جرقهٔ ظریف هنگام هاور */
.cat-flow__cargo::after {
    content: '✦'; position: absolute; top: 0.85rem; left: 0.75rem; z-index: 2;
    font-size: 1rem; line-height: 1; color: rgba(255,255,255,0.95);
    text-shadow: 0 0 9px rgba(255,255,255,0.95), 0 0 3px rgba(255,209,102,0.9);
    opacity: 0; transform: scale(0.3) rotate(-40deg);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
.cat-flow__wagon:hover .cat-flow__cargo::after { opacity: 1; transform: scale(1) rotate(0deg); }
.cat-flow__wagon--p0 .cat-flow__cargo,
.cat-flow__wagon--girl .cat-flow__cargo {
    background: linear-gradient(145deg, #ff9ecb 0%, #ffc6e2 42%, #ffeaf4 100%); color: #c02576;
}
.cat-flow__wagon--p1 .cat-flow__cargo,
.cat-flow__wagon--boy .cat-flow__cargo {
    background: linear-gradient(145deg, #6ef0c8 0%, #b6f7e2 42%, #ecfff9 100%); color: #0b8f6c;
}
.cat-flow__wagon--p2 .cat-flow__cargo {
    background: linear-gradient(145deg, #ffb887 0%, #ffd7b3 42%, #fff2e6 100%); color: #d95f1c;
}
.cat-flow__wagon--p3 .cat-flow__cargo {
    background: linear-gradient(145deg, #8fc6ff 0%, #c3e0ff 42%, #eef6ff 100%); color: #2472c4;
}
.cat-flow__wagon--p4 .cat-flow__cargo {
    background: linear-gradient(145deg, #c19bff 0%, #ddc7ff 42%, #f2ebff 100%); color: #7c48e6;
}
.cat-flow__wagon--p5 .cat-flow__cargo {
    background: linear-gradient(145deg, #ffe04d 0%, #fff09a 42%, #fffce4 100%); color: #b38f00;
}
/* رنگ سایبان هر واگن */
.cat-flow__wagon--p0, .cat-flow__wagon--girl { --wc: #ff77b4; }
.cat-flow__wagon--p1, .cat-flow__wagon--boy { --wc: #1ec89b; }
.cat-flow__wagon--p2 { --wc: #ff9440; }
.cat-flow__wagon--p3 { --wc: #4a9df0; }
.cat-flow__wagon--p4 { --wc: #a678ff; }
.cat-flow__wagon--p5 { --wc: #ffd23e; }
.cat-flow__glow {
    position: absolute; inset: -25%; pointer-events: none; opacity: 0.5;
    background:
        radial-gradient(ellipse 70% 55% at 28% 18%, rgba(255,255,255,0.85) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 78% 82%, rgba(255,255,255,0.45) 0%, transparent 60%);
    mix-blend-mode: soft-light;
}
.cat-flow__orb {
    position: absolute; width: 9rem; height: 9rem; border-radius: 9999px;
    right: -2.5rem; top: -2.5rem;
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, transparent 70%);
    pointer-events: none; opacity: 0.8;
}
.cat-flow__emoji {
    position: absolute; left: 0.35rem; bottom: 0.1rem;
    font-size: clamp(3.4rem, 10vw, 5rem); line-height: 1; opacity: 0.75;
    transform: rotate(-6deg); pointer-events: none;
    filter: saturate(1.2) drop-shadow(0 0 14px rgba(255,255,255,0.7));
}
.cat-flow__content { position: relative; z-index: 1; max-width: 15rem; display: block; }
.cat-flow__tag {
    display: inline-flex; font-size: 0.65rem; font-weight: 800;
    background: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.95);
    color: inherit; padding: 0.22rem 0.6rem; border-radius: 9999px; margin-bottom: 0.55rem;
}
.cat-flow__tag::before {
    content: '✦'; font-size: 0.62rem; margin-left: 0.35rem; opacity: 0.75;
}
.cat-flow__content h3 {
    font-size: clamp(1.05rem, 2.6vw, 1.4rem); font-weight: 900;
    margin-bottom: 0.35rem; color: #2a2035;
}
.cat-flow__content p {
    font-size: 0.78rem; line-height: 1.65; color: #5a5265; margin-bottom: 0.85rem;
}
.cat-flow__cta {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: #fff; color: inherit; font-size: 0.78rem; font-weight: 800;
    padding: 0.5rem 0.9rem; border-radius: 9999px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cat-flow__wagon:hover .cat-flow__cta {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -8px rgba(60,40,25,0.4);
}

@media (max-width: 767px) {
    .cat-flow__set { --cat-wagon-w: min(82vw, 17rem); }
    .cat-flow__engine {
        flex-basis: var(--cat-wagon-w);
        width: var(--cat-wagon-w);
        min-height: 15rem;
        margin-right: calc(var(--cat-wagon-w) * 1.5);
    }
    .cat-flow__engine-3d { height: 15rem; }
    .cat-flow__wagon { flex-basis: min(82vw, 17rem); width: min(82vw, 17rem); min-height: 15rem; }
    /* فضاسازی صحنه در موبایل جمع‌وجورتر */
    .cat-flow__sun { top: 7%; }
    .cat-flow__sparkle--3 { display: none; }
    .cat-flow__hills { height: 3rem; bottom: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
    .cat-flow__engine-3d, .cat-flow__wagon, .cat-flow__wheel-spin, .cat-flow__bogie i, .cat-flow__smoke,
    .cat-flow__sun, .cat-flow__cloud, .cat-flow__sparkle,
    .cat-flow__beam, .cat-flow__lamp-glow, .cat-flow__driver {
        animation: none !important;
    }
    .cat-flow__rail {
        transform: translate3d(0, 0, 0) !important;
    }
}

.shop-wave {
    display: block;
    width: 100%;
    height: 2rem;
    margin: -1px 0;
    color: #fff5f9;
}

.shop-card--product {
    position: relative;
    border-radius: 1.5rem;
}
.shop-card__media {
    aspect-ratio: 9 / 16;
    background: linear-gradient(145deg, #fff5f9, #eef6f2);
    overflow: hidden;
    padding: 0;
}
.shop-card__media .img-magnifier-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-card--product::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
    opacity: 0;
    transition: opacity var(--shop-transition);
}
.shop-card--product:hover::after { opacity: 1; }

.shop-product-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
}
.shop-product-sku {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    margin: 0;
    max-width: 100%;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.3;
    color: #c9bdb0;
    opacity: 0.78;
}
.shop-product-sku__label {
    flex-shrink: 0;
    font-family: inherit;
    font-weight: 600;
    color: #d2c6ba;
}
.shop-product-sku__value {
    min-width: 0;
    font-family: 'Vazirmatn', ui-sans-serif, system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #c4b5a5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-product-sku--lg {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    opacity: 0.72;
}
.shop-product-sku--lg .shop-product-sku__label {
    color: #d0c3b5;
}
.shop-product-sku--lg .shop-product-sku__value {
    color: #b9aa9a;
}
.shop-product-stock {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #5b8f7b;
}
.shop-product-stock--lg {
    font-size: 0.82rem;
}
.shop-product-stock.is-low {
    color: #c0784a;
}
.shop-product-stock.is-out {
    color: #b09191;
}
.shop-product-stock.is-updating {
    color: #0284c7;
}

/* آلبوم تصاویر محصول (صفحه محصول) */
.product-album {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}
.product-album__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-inline: 0.15rem;
}
.product-album__label {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #e84d82;
    letter-spacing: 0.01em;
}
.product-album__counter {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff6b9d;
    background: #ffe8f1;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}
.product-album__stage {
    position: relative;
}
.product-album__main {
    width: min(100%, 320px);
    margin-inline: auto;
    aspect-ratio: 9 / 16;
    border-radius: 1.5rem;
    background: linear-gradient(145deg, #fff5f9, #eef6f2);
    overflow: hidden;
    padding: 0;
}
.product-album__main .img-magnifier-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-album__nav {
    position: absolute;
    top: 50%;
    z-index: 6;
    transform: translateY(-50%);
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.92);
    color: #c23a68;
    font-size: 1.45rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px -12px rgba(107, 91, 138, 0.45);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.product-album__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.04);
}
.product-album__nav--prev { right: 0.65rem; }
.product-album__nav--next { left: 0.65rem; }
.product-album__strip {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.15rem 0.1rem 0.35rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.product-album__thumb {
    flex: 0 0 auto;
    width: 3.35rem;
    scroll-snap-align: start;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: center;
}
.product-album__thumb-frame {
    display: block;
    aspect-ratio: 9 / 16;
    border-radius: 0.9rem;
    border: 2px solid #ffd0e4;
    background: linear-gradient(145deg, #fff5f9, #ffe8f1);
    padding: 0;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.product-album__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
.product-album__thumb-num {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ff6b9d;
}
.product-album__thumb.is-active .product-album__thumb-frame,
.product-album__thumb:hover .product-album__thumb-frame {
    border-color: #ff8fba;
    box-shadow: 0 0 0 2px rgba(255, 143, 186, 0.25);
}
.product-album__thumb.is-active .product-album__thumb-frame {
    transform: translateY(-1px);
}
.product-album__lightbox-open {
    align-self: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e84d82;
    border: 1px dashed #ffb0d2;
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.product-album__lightbox-open:hover {
    background: #fff5f9;
    border-color: #ff8fba;
}
.product-album-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.product-album-lightbox.hidden { display: none; }
.product-album-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(42, 32, 26, 0.72);
    backdrop-filter: blur(4px);
}
.product-album-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(52rem, 100%);
    max-height: min(92vh, 52rem);
    background: #fff9fc;
    border-radius: 1.25rem;
    padding: 1rem 1rem 0.85rem;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.product-album-lightbox__close {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 3;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: #c23a68;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.35);
}
.product-album-lightbox__stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fff5f9, #eef6f2);
    border-radius: 1rem;
    padding: 0.75rem;
    margin-top: 1.5rem;
}
.product-album-lightbox__img {
    width: auto;
    height: auto;
    max-width: min(100%, 22rem);
    max-height: min(70vh, 38rem);
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 0.85rem;
}
.product-album-lightbox__counter {
    text-align: center;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #e84d82;
}
.product-album-lightbox__thumbs {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}
.product-album-lightbox__thumb {
    flex: 0 0 auto;
    width: 2.75rem;
    aspect-ratio: 9 / 16;
    height: auto;
    border-radius: 0.65rem;
    border: 2px solid #ffd0e4;
    background: #fff;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}
.product-album-lightbox__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-album-lightbox__thumb.is-active {
    border-color: #ff8fba;
    box-shadow: 0 0 0 2px rgba(255, 143, 186, 0.28);
}
.product-album-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #6b5b8a;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.35);
}
.product-album-lightbox__nav--prev { right: 0.75rem; }
.product-album-lightbox__nav--next { left: 0.75rem; }

/* ?? ???? ?????? ????? (PDP) ?? */
.pdp-info {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    min-width: 0;
}
.pdp-info__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}
.pdp-info__category {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #f55c9e;
    letter-spacing: 0.01em;
}
.pdp-info__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 800;
    color: #4a3a5c;
    line-height: 1.35;
}
.pdp-info .shop-product-sku--lg {
    margin: 0;
}

.pdp-price {
    padding: 0.95rem 1.05rem;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, #fffaf5 0%, #f7eee4 100%);
    border: 1px solid #ffd0e4;
}
.pdp-price__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem 0.75rem;
}
.pdp-price__current,
.pdp-price__old,
.shop-price {
    direction: rtl;
    unicode-bidi: isolate;
    text-align: right;
}
.pdp-price__current {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 800;
    color: #e84d82;
    letter-spacing: -0.01em;
}
.pdp-price__old {
    font-size: 0.9rem;
    color: #c4b5a5;
    text-decoration: line-through;
}
.pdp-price__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #ffd0e4;
    color: #ff6b9d;
    font-size: 0.75rem;
    font-weight: 700;
}
.pdp-price__ship,
.pdp-price__vat {
    margin: 0.45rem 0 0;
    font-size: 0.72rem;
    color: #a89888;
    line-height: 1.6;
}
.pdp-price__vat { margin-top: 0.2rem; }

.pdp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.pdp-chips--tight { gap: 0.35rem; }
.pdp-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
}
.pdp-chip--girl { background: #ffe0ed; color: #f55c9e; border-color: #ffc2db; }
.pdp-chip--boy { background: #e4f1ff; color: #4f9ad4; border-color: #c8e3ff; }
.pdp-chip--unisex { background: #f5f3ff; color: #7c6aad; border-color: #ddd6fe; }
.pdp-chip--age { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.pdp-chip--tag { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.pdp-chip--soft { background: #fff; color: #6b5b8a; border-color: #ffd0e4; font-weight: 600; }

.pdp-panel {
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    background: #faf7f3;
    border: 1px solid #ffe8f1;
}
.pdp-panel__title {
    margin: 0 0 0.7rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #6b5b8a;
}
.pdp-panel--desc p {
    margin: 0;
    color: #8a6b84;
    line-height: 1.9;
    font-size: 0.9rem;
}
.pdp-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1rem;
    margin: 0;
}
@media (max-width: 640px) {
    .pdp-specs { grid-template-columns: 1fr; }
}
.pdp-specs__row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px dashed #ffd0e4;
}
.pdp-specs__row dt {
    margin: 0;
    font-size: 0.75rem;
    color: #b09a88;
}
.pdp-specs__row dd {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4a3a5c;
    text-align: left;
}
.pdp-suitable { margin-top: 0.85rem; }
.pdp-suitable__label {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    color: #b09a88;
}

.pdp-variants {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 1.2rem;
    background: #fff;
    border: 1px solid #ffe8f1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.pdp-variants__group { min-width: 0; }
.pdp-variants__label {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #4a3a5c;
}
.pdp-variants__options,
.pdp-variants__colors,
.pdp-variants__designs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pdp-variants__designs {
    gap: 0.65rem;
}
.design-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 4.75rem;
    max-width: 5.5rem;
    padding: 0.35rem;
    border: 2px solid #ffe8f1;
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.design-btn:hover:not(:disabled) {
    border-color: #ffd0e4;
    box-shadow: 0 8px 18px -14px rgba(232, 77, 130, 0.45);
    transform: translateY(-1px);
}
.design-btn.is-selected {
    border-color: #e84d82;
    box-shadow: 0 0 0 2px rgba(232, 77, 130, 0.12);
}
.design-btn.is-disabled,
.design-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.design-btn__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f7f1ea;
}
.design-btn__thumb img,
.design-btn__swatch {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.design-btn__label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #4a3a5c;
    text-align: center;
    line-height: 1.4;
}
.pdp-variants__hint {
    margin: 0;
    font-size: 0.78rem;
    color: #b09a88;
}
.pdp-variants__hint.hidden { display: none; }

.pdp-buy {
    margin-top: 0.15rem;
    padding: 1rem 1.05rem;
    border-radius: 1.25rem;
    background: linear-gradient(160deg, #fffdfb 0%, #faf4ed 100%);
    border: 1px solid #ffd0e4;
    box-shadow: 0 10px 28px -18px rgba(107, 91, 138, 0.35);
}
.pdp-buy__form {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.65rem;
}
.pdp-buy__cta {
    flex: 1 1 12rem;
    min-height: 3.1rem;
}
.shop-qty--pdp {
    border-radius: 9999px;
    background: #fff;
    border-color: #ffd0e4;
    min-height: 3.1rem;
}
.shop-qty--pdp button {
    width: 2.5rem;
    height: 100%;
    color: #e84d82;
    font-size: 1.05rem;
}
.shop-qty--pdp input {
    width: 2.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: #4a3a5c;
}
.pdp-stock {
    display: inline-flex;
    align-items: center;
    margin: 0.75rem 0 0;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: rgba(91, 143, 123, 0.1);
    border: 1px solid rgba(91, 143, 123, 0.22);
    font-size: 0.78rem;
    font-weight: 700;
    color: #4f7d6c;
}
.pdp-stock.is-low {
    background: rgba(192, 120, 74, 0.1);
    border-color: rgba(192, 120, 74, 0.28);
    color: #c0784a;
}
.pdp-stock.is-out {
    background: rgba(176, 145, 145, 0.12);
    border-color: rgba(176, 145, 145, 0.28);
    color: #a08080;
}
.pdp-stock.is-updating {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.28);
    color: #0284c7;
}
.pdp-empty {
    margin: 0;
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    background: #faf7f3;
    border: 1px solid #ffe8f1;
    color: #a89888;
    font-size: 0.875rem;
}

.shop-trust-card {
    border-radius: 1.25rem;
    padding: 1rem;
    text-align: center;
    transition: transform var(--shop-transition), box-shadow var(--shop-transition);
}
.shop-trust-card:hover {
    transform: translateY(-3px) rotate(-0.5deg);
    box-shadow: var(--shop-shadow-hover);
}
.shop-trust-card .icon {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff 0%, #fff5f9 100%);
    border: 1px solid #ffe8f1;
    margin-bottom: 0.5rem;
}

.shop-auth-wrap {
    min-height: calc(100vh - 12rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 50% at 90% 10%, rgba(255, 158, 200, 0.22), transparent 55%),
        radial-gradient(ellipse 55% 40% at 8% 90%, rgba(125, 211, 252, 0.2), transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(167, 243, 208, 0.12), transparent 60%),
        #fff9fc;
}
.shop-auth-wrap::before,
.shop-auth-wrap::after {
    content: '?';
    position: absolute;
    font-size: 1.5rem;
    color: #ffc2db;
    opacity: 0.45;
    pointer-events: none;
    animation: shopFloat 4s ease-in-out infinite;
}
.shop-auth-wrap::before { top: 12%; right: 8%; }
.shop-auth-wrap::after { content: '?'; bottom: 18%; left: 10%; animation-delay: 1.2s; color: #f4c4d8; }

.shop-auth-card {
    width: 100%;
    max-width: 26rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid #ffd0e4;
    border-radius: 1.75rem;
    padding: 2rem;
    box-shadow: 0 16px 48px -20px rgba(255, 107, 157, 0.28);
    position: relative;
    z-index: 1;
}
.shop-auth-card .mascot {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #ffe0ed, #bae6fd);
    border: 1px solid #ffe8f1;
    animation: shopWiggle 3s ease-in-out infinite;
}

/* نوار دعوت فوتر — پاستلی شاد (بدون وابستگی به کلاس Tailwind) */
.shop-footer-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #ff9ec8 0%, #ff6b9d 42%, #7dd3fc 100%);
    color: #fff;
}
.shop-footer-cta__mesh {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    pointer-events: none;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.55) 1px, transparent 0);
    background-size: 24px 24px;
}
.shop-footer-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 80rem;
    margin-inline: auto;
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: center;
}
@media (min-width: 768px) {
    .shop-footer-cta__inner {
        flex-direction: row;
        text-align: right;
        padding-block: 3rem;
    }
}
.shop-footer-cta__eyebrow {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.25rem;
}
.shop-footer-cta__title {
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    font-weight: 900;
    line-height: 1.7;
    color: #fff;
}
.shop-footer-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-shrink: 0;
    background: #fff;
    color: #e84d82;
    font-weight: 800;
    padding: 0.9rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 10px 28px -12px rgba(74, 58, 92, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shop-footer-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -12px rgba(255, 107, 157, 0.4);
}

.otp-countdown {
    border-radius: 1.25rem;
    border: 1px solid #ffd0e4;
    background: linear-gradient(165deg, #fff5f9 0%, #e0f2fe 100%);
    padding: 0.9rem 1rem;
    text-align: center;
}
.otp-countdown__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8a6b84;
    margin-bottom: 0.25rem;
}
.otp-countdown__timer {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #e84d82;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.otp-countdown__expired {
    font-size: 0.7rem;
    font-weight: 700;
    color: #dc2626;
    margin-top: 0.35rem;
}
[data-otp-countdown].is-expired .otp-countdown__timer { color: #dc2626; }
[data-otp-countdown].is-expired .is-expired-msg { display: block !important; }

.otp-resend-btn {
    color: #e84d82;
    font-weight: 700;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s, opacity 0.2s;
}
.otp-resend-btn:hover:not(:disabled) { text-decoration: underline; color: #c23a68; }
.otp-resend-btn:disabled {
    color: #c4a8b8;
    cursor: not-allowed;
    opacity: 0.7;
    text-decoration: none;
}

.shop-otp-input {
    letter-spacing: 0.55em;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
}

/* OTP — شش باکس مربعی با هاور متحرک */
.otp-boxes {
    --otp-gap: 0.55rem;
    --otp-size: clamp(2.65rem, 12vw, 3.25rem);
    width: 100%;
}
.otp-boxes__track {
    position: relative;
    display: grid;
    place-items: center;
    margin-inline: auto;
    width: calc((var(--otp-size) * 6) + (var(--otp-gap) * 5));
    max-width: 100%;
}
.otp-boxes__input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 1;
    color: transparent;
    caret-color: transparent;
    background: transparent;
    font-size: 1.25rem;
    letter-spacing: 0.55em;
    text-align: center;
    -webkit-text-fill-color: transparent;
}
.otp-boxes__input:focus {
    outline: none;
}
.otp-boxes__cells {
    display: grid;
    grid-template-columns: repeat(6, var(--otp-size));
    gap: var(--otp-gap);
    width: 100%;
    pointer-events: none;
}
.otp-boxes__cell {
    position: relative;
    display: grid;
    place-items: center;
    width: var(--otp-size);
    height: var(--otp-size);
    border-radius: 0.95rem;
    border: 1.5px solid #ffd0e4;
    background: linear-gradient(160deg, #fff 0%, #fff5f9 100%);
    box-shadow: 0 6px 16px -12px rgba(255, 107, 157, 0.28);
    transition:
        transform .28s cubic-bezier(.22,1,.36,1),
        border-color .28s ease,
        box-shadow .28s ease,
        background .28s ease;
}
.otp-boxes__digit {
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    font-weight: 800;
    color: #6b5b8a;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.otp-boxes__caret {
    position: absolute;
    width: 2px;
    height: 1.15rem;
    border-radius: 999px;
    background: #ff6b9d;
    opacity: 0;
    transform: scaleY(0.6);
}
.otp-boxes__cell.is-active {
    border-color: #ff8fba;
    background: linear-gradient(160deg, #fff 0%, #ffe0ed 100%);
    box-shadow:
        0 10px 22px -12px rgba(255, 107, 157, 0.55),
        0 0 0 4px rgba(255, 158, 200, 0.22);
    transform: translateY(-3px) scale(1.04);
    animation: otpCellPulse 1.4s ease-in-out infinite;
}
.otp-boxes__cell.is-active .otp-boxes__caret {
    opacity: 1;
    transform: scaleY(1);
    animation: otpCaretBlink 1s steps(1) infinite;
}
.otp-boxes__cell.is-filled {
    border-color: #ffb0d2;
    background: linear-gradient(160deg, #fff 0%, #fff0f6 100%);
}
.otp-boxes__cell.is-complete {
    border-color: #ff8fba;
    transform: translateY(-1px);
}
.otp-boxes__track:hover .otp-boxes__cell:not(.is-active) {
    transform: translateY(-2px);
    border-color: #ffb0d2;
    box-shadow: 0 10px 18px -14px rgba(255, 107, 157, 0.35);
}
.otp-boxes__track:hover .otp-boxes__cell:nth-child(1) { transition-delay: 0ms; }
.otp-boxes__track:hover .otp-boxes__cell:nth-child(2) { transition-delay: 28ms; }
.otp-boxes__track:hover .otp-boxes__cell:nth-child(3) { transition-delay: 56ms; }
.otp-boxes__track:hover .otp-boxes__cell:nth-child(4) { transition-delay: 84ms; }
.otp-boxes__track:hover .otp-boxes__cell:nth-child(5) { transition-delay: 112ms; }
.otp-boxes__track:hover .otp-boxes__cell:nth-child(6) { transition-delay: 140ms; }
.otp-boxes--error .otp-boxes__cell {
    border-color: #f0b4b4;
    background: linear-gradient(160deg, #fff8f8 0%, #fdeeee 100%);
}
.otp-boxes--submitting .otp-boxes__cell {
    animation: otpCellPulse 0.9s ease-in-out infinite;
}
.otp-boxes__hint,
.otp-boxes__status {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    color: #9a8572;
}
.otp-boxes__status {
    color: #e84d82;
    font-weight: 700;
}
@keyframes otpCaretBlink {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
@keyframes otpCellPulse {
    0%, 100% { box-shadow: 0 10px 22px -12px rgba(255, 107, 157, 0.45), 0 0 0 4px rgba(192, 157, 128, 0.12); }
    50% { box-shadow: 0 12px 26px -10px rgba(255, 107, 157, 0.6), 0 0 0 6px rgba(192, 157, 128, 0.2); }
}
@media (prefers-reduced-motion: reduce) {
    .otp-boxes__cell,
    .otp-boxes__cell.is-active,
    .otp-boxes__caret {
        animation: none !important;
        transition: none !important;
    }
}

.shop-variant-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1.5px solid #ffe8f1;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #c23a68;
    background: #fff;
    transition: all var(--shop-transition);
}
.shop-variant-btn:hover:not(:disabled) {
    border-color: #ffb0d2;
    background: #fff5f9;
    transform: translateY(-1px);
}
.shop-variant-btn.is-active {
    background: linear-gradient(135deg, #ff8fba, #ff6b9d);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px -4px rgba(255, 107, 157, 0.5);
}
.shop-variant-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.shop-success-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.shop-success-card .celebrate {
    font-size: 3.5rem;
    display: inline-block;
    animation: shopWiggle 2.5s ease-in-out infinite;
}

@keyframes shopFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes shopWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-4deg); }
    75% { transform: rotate(4deg); }
}

::selection {
    background: rgba(255, 158, 200, 0.45);
    color: #4a3a5c;
}

@media (prefers-reduced-motion: reduce) {
    .shop-auth-wrap::before,
    .shop-auth-wrap::after,
    .shop-auth-card .mascot,
    .shop-success-card .celebrate,
    .shop-trust-card:hover {
        animation: none;
        transform: none;
    }
}

/* نوار اطلاع بالای سایت — پاستلی ولی جلب‌توجه */
.shop-top-banner {
    position: relative;
    z-index: 70;
    overflow: hidden;
    background:
        linear-gradient(105deg, #fff0f6 0%, #ffe0ed 26%, #e0f2fe 58%, #d1fae5 100%);
    border-bottom: 1px solid rgba(255, 176, 210, .65);
    box-shadow:
        0 1px 0 rgba(255,255,255,.85) inset,
        0 6px 18px -12px rgba(232, 77, 130, .28);
    animation: shopTopBannerSoftPulse 3.8s ease-in-out infinite;
}
.shop-top-banner__glow {
    position: absolute;
    inset: -40% -10%;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 143, 186, .35), transparent 42%),
        radial-gradient(circle at 80% 40%, rgba(125, 211, 252, .28), transparent 45%);
    animation: shopTopBannerGlow 5.5s ease-in-out infinite alternate;
}
.shop-top-banner__mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .4;
    background-image:
        radial-gradient(circle at 18% 40%, rgba(255,255,255,.95) 0 1.1px, transparent 1.7px),
        radial-gradient(circle at 78% 60%, rgba(255, 158, 200, .22) 0 1px, transparent 1.5px);
    background-size: 22px 22px, 30px 30px;
}
.shop-top-banner__shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
    background-size: 220% 100%;
    animation: shopTopBannerShine 3.8s ease-in-out infinite;
}
.shop-top-banner__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .35rem .55rem;
    min-height: 2.65rem;
    padding: .55rem 1rem;
    text-align: center;
}
.shop-top-banner__inner--link {
    text-decoration: none;
}
.shop-top-banner__inner--link:hover .shop-top-banner__text {
    color: #e84d82;
}
.shop-top-banner__pill {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .18rem .55rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #ff6b9d, #e84d82);
    box-shadow: 0 4px 10px -4px rgba(232, 77, 130, .55);
    animation: shopTopBannerPill 2.4s ease-in-out infinite;
}
.shop-top-banner__text {
    font-size: .84rem;
    font-weight: 900;
    letter-spacing: -.015em;
    color: #c23a68;
    line-height: 1.55;
    text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.shop-top-banner__heart,
.shop-top-banner__emoji {
    font-size: .95rem;
    line-height: 1;
    display: inline-block;
}
.shop-top-banner__heart--pulse {
    animation: shopTopBannerHeart 1.35s ease-in-out infinite;
}
.shop-top-banner__emoji--bob {
    animation: shopTopBannerBob 2.2s ease-in-out infinite;
}
@keyframes shopTopBannerSoftPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.04); }
}
@keyframes shopTopBannerGlow {
    from { transform: translateX(-2%) scale(1); opacity: .85; }
    to { transform: translateX(2%) scale(1.05); opacity: 1; }
}
@keyframes shopTopBannerShine {
    0%, 100% { background-position: 130% 0; }
    50% { background-position: -30% 0; }
}
@keyframes shopTopBannerHeart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.22); }
}
@keyframes shopTopBannerBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}
@keyframes shopTopBannerPill {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 10px -4px rgba(232, 77, 130, .45); }
    50% { transform: scale(1.05); box-shadow: 0 6px 14px -4px rgba(232, 77, 130, .65); }
}
@media (min-width: 640px) {
    .shop-top-banner__inner { min-height: 2.85rem; gap: .45rem .7rem; }
    .shop-top-banner__text { font-size: .95rem; }
    .shop-top-banner__heart,
    .shop-top-banner__emoji { font-size: 1.08rem; }
    .shop-top-banner__pill { font-size: .72rem; padding: .22rem .65rem; }
}
@media (prefers-reduced-motion: reduce) {
    .shop-top-banner,
    .shop-top-banner__glow,
    .shop-top-banner__shine,
    .shop-top-banner__heart--pulse,
    .shop-top-banner__emoji--bob,
    .shop-top-banner__pill { animation: none; }
}

/* ?? ??? ??????? ?? */
.site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 60;
    isolation: isolate;
    padding-top: env(safe-area-inset-top, 0px);
}

.site-header {
    position: relative;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(255, 249, 252, 0.97) 0%, rgba(255, 224, 237, 0.88) 40%, rgba(224, 242, 254, 0.9) 100%);
    border-bottom: 1px solid rgba(255, 194, 219, 0.65);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 4px 24px -14px rgba(255, 107, 157, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header-wrap.is-scrolled .site-header {
    background: rgba(255, 249, 252, 0.95);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 6px 22px -10px rgba(255, 107, 157, 0.2);
}

.site-header__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.site-header__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(32px);
    opacity: 0.32;
}

.site-header__orb--1 {
    width: 7rem;
    height: 7rem;
    top: -2.5rem;
    right: 8%;
    background: rgba(247, 168, 196, 0.42);
}

.site-header__orb--2 {
    width: 6rem;
    height: 6rem;
    top: -2rem;
    left: 12%;
    background: rgba(157, 206, 245, 0.4);
}

.site-header__mobile-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0 0.5rem;
    position: relative;
    z-index: 2;
}
.site-header__mobile-spacer { min-width: 0; }
.site-header__mobile-bar .site-header__brand-link--compact {
    justify-self: center;
}
.site-header__mobile-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-shrink: 0;
    justify-self: end;
}

/* دکمه ورود موبایل — دوخطی خوانا */
.mobile-login-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 2.4rem;
    max-width: 9.75rem;
    padding-inline: 0.65rem 0.75rem;
    border-radius: 9999px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #ff8fba 0%, #ff6b9d 55%, #7dd3fc 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 4px 12px -4px rgba(255, 107, 157, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 1;
    min-width: 0;
}

.mobile-login-cta:active {
    transform: scale(0.97);
}

.mobile-login-cta__glyph {
    flex-shrink: 0;
    color: #fff;
}

.mobile-login-cta__label {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.header-icon-btn--account {
    padding: 0;
    overflow: hidden;
    border-color: rgba(255, 143, 186, 0.45);
}

.header-icon-btn--account [data-user-avatar] {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    font-size: 0.95rem;
    box-shadow: none;
}

.header-icon-btn--account.is-active {
    border-color: #ff6b9d;
    box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.2);
}

/* کارت ورود داخل منوی موبایل */
.mobile-auth-card {
    margin: 0 0 0.85rem;
    padding: 0.85rem 0.8rem;
    border-radius: 1rem;
    background:
        linear-gradient(155deg, rgba(255, 252, 248, 0.98), rgba(245, 232, 214, 0.92));
    border: 1px solid rgba(255, 176, 210, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.mobile-auth-card__row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.7rem;
}

.mobile-auth-card__copy {
    min-width: 0;
}

.mobile-auth-card__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 800;
    color: #4a3a5c;
    line-height: 1.35;
}

.mobile-auth-card__sub {
    margin: 0.2rem 0 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #e84d82;
    line-height: 1.5;
}

.mobile-auth-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.7rem;
    min-height: 2.55rem;
    padding: 0.55rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #ff8fba 0%, #ff6b9d 55%, #e84d82 100%);
    box-shadow: 0 6px 16px -8px rgba(232, 77, 130, 0.55);
    -webkit-tap-highlight-color: transparent;
}

.mobile-auth-card__btn--soft {
    margin-top: 0;
    color: #6b5b8a;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 143, 186, 0.4);
    box-shadow: none;
}

.mobile-auth-card__btn:active {
    transform: scale(0.98);
}

.site-header__mobile-menu-label {
    margin: 0 0 0.45rem;
    padding: 0 0.15rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ff6b9d;
}

@media (max-width: 360px) {
    .mobile-login-cta {
        max-width: 7.6rem;
        padding-inline: 0.5rem 0.55rem;
        gap: 0.25rem;
    }

    .mobile-login-cta__label {
        font-size: 0.66rem;
    }

    .mobile-login-cta__glyph {
        display: none;
    }
}

#shop-menu-toggle {
    position: relative;
    z-index: 3;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.site-header__main {
    display: none;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 0 0.65rem;
}

.site-header__mobile-search {
    display: block;
    padding-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .site-header__mobile-bar,
    .site-header__mobile-search {
        display: none !important;
    }

    .site-header__main {
        display: grid;
    }
}

.site-header__brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    text-decoration: none;
}

.site-header__brand-link--compact {
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.site-header__brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.site-header__brand-name {
    font-size: 1.125rem;
    font-weight: 800;
    color: #e84d82;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.site-header__tagline {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #ff6b9d;
    opacity: 0.85;
}

.site-header__search {
    min-width: 0;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-block: 0.28rem;
    padding-inline-start: 0.9rem;
    padding-inline-end: 0.28rem;
    background: linear-gradient(180deg, #fffdfb 0%, #fff8f2 100%);
    border: 1.5px solid rgba(232, 196, 168, 0.7);
    border-radius: 9999px;
    box-shadow:
        0 2px 12px -4px rgba(255, 107, 157, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: border-color var(--shop-transition), box-shadow var(--shop-transition), background var(--shop-transition);
}

.header-search:focus-within {
    border-color: #e8b4c8;
    background: #fff;
    box-shadow:
        0 0 0 3px rgba(244, 166, 200, 0.2),
        0 6px 18px -8px rgba(196, 91, 138, 0.22);
}

.header-search__icon {
    display: inline-flex;
    width: 1.15rem;
    height: 1.15rem;
    color: #ff8fba;
    flex-shrink: 0;
    opacity: 0.9;
}

.header-search__icon svg {
    width: 100%;
    height: 100%;
}

.header-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0.55rem 0.15rem;
    font-size: 0.875rem;
    color: #6b5b8a;
    outline: none;
}

.header-search__input::-webkit-search-decoration,
.header-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.header-search__input::placeholder {
    color: #c4a8b8;
    opacity: 0.85;
}

.header-search__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 2.35rem;
    padding: 0 0.95rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #ff8fba 0%, #ff6b9d 55%, #7dd3fc 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px -4px rgba(255, 107, 157, 0.5);
    transition: transform var(--shop-transition), box-shadow var(--shop-transition), filter var(--shop-transition);
}

.header-search__btn:hover {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.03);
    box-shadow: 0 6px 16px -4px rgba(255, 107, 157, 0.55);
}

.header-search__btn:active {
    transform: scale(0.98);
}

.header-search__btn-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
}

.header-search__btn-icon {
    display: none;
    width: 1rem;
    height: 1rem;
}

.header-search--mobile {
    padding-block: 0.22rem;
    padding-inline-start: 0.75rem;
    padding-inline-end: 0.22rem;
}

.header-search--mobile .header-search__input {
    padding: 0.5rem 0.1rem;
    font-size: 0.8125rem;
}

.header-search--mobile .header-search__btn {
    min-height: 2.15rem;
    padding: 0 0.85rem;
}

.header-search--mobile .header-search__btn-label {
    font-size: 0.75rem;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 208, 228, 0.8);
    background: rgba(255, 255, 255, 0.75);
    color: #c23a68;
    transition: background var(--shop-transition), border-color var(--shop-transition), transform var(--shop-transition), box-shadow var(--shop-transition);
}

.header-icon-btn--bell {
    color: #eab308;
    border-color: rgba(250, 204, 21, 0.55);
    background: rgba(254, 249, 195, 0.85);
}

.header-icon-btn--bell:hover {
    color: #ca8a04;
    border-color: #facc15;
    background: #fef9c3;
    box-shadow: 0 4px 14px -6px rgba(202, 138, 4, 0.35);
}

.header-icon-btn--bell svg {
    fill: currentColor;
    fill-opacity: 0.18;
}

.header-badge {
    position: absolute;
    top: -0.2rem;
    left: -0.2rem;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.25rem;
    border-radius: 9999px;
    background: #ff6b9d;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff;
}

.header-badge--alert {
    background: #ef4444;
}

.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0 0.85rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--shop-transition), box-shadow var(--shop-transition), background var(--shop-transition);
}

.header-pill:hover {
    transform: translateY(-1px);
}

.header-pill--login {
    background: linear-gradient(135deg, #ff8fba 0%, #7dd3fc 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.header-pill--login:hover {
    box-shadow: 0 4px 14px -4px rgba(255, 107, 157, 0.32);
}

.header-pill--cart {
    background: #fff;
    border: 1.5px solid rgba(107, 91, 138, 0.12);
    color: #6b5b8a;
}

.header-pill--cart:hover {
    border-color: rgba(255, 107, 157, 0.35);
    box-shadow: 0 4px 14px -6px rgba(107, 91, 138, 0.12);
}

.header-pill--user {
    background: linear-gradient(135deg, #fff 0%, #fff5f9 100%);
    border: 1.5px solid rgba(255, 208, 228, 0.9);
    color: #6b5b8a;
    padding-left: 0.35rem;
    padding-right: 0.85rem;
}

.header-pill--user.is-active,
.header-pill--user:hover {
    border-color: #ffb0d2;
    box-shadow: 0 4px 14px -6px rgba(255, 107, 157, 0.2);
}

.header-pill__count {
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    border-radius: 9999px;
    background: #ffe8f1;
    color: #e84d82;
    font-size: 0.6875rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-header__nav {
    display: none;
    padding-bottom: 0.5rem;
}

.site-header__mobile-menu {
    /* positioning: see #shop-mobile-menu */
}

.header-nav-link--mobile {
    justify-content: flex-start;
    text-align: right;
    padding: 0.55rem 0.65rem;
    font-size: 0.8125rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #ffe8f1;
}

/* ???????? ???? ? ?????? ??? ??? */
@media (min-width: 768px) {
    .site-header__nav {
        display: flex;
    }

    #shop-mobile-menu,
    #shop-mobile-menu.is-open {
        display: none !important;
    }
}

.header-nav-tray {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.35rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 232, 241, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    scrollbar-width: none;
}

.header-nav-tray::-webkit-scrollbar {
    display: none;
}

.header-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.5rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #c23a68;
    text-decoration: none;
    transition: background var(--shop-transition), color var(--shop-transition), transform var(--shop-transition), box-shadow var(--shop-transition);
}

.header-nav-link__icon {
    font-size: 0.9rem;
    line-height: 1;
    opacity: 0.85;
}

.header-nav-link:hover {
    background: rgba(255, 245, 249, 0.95);
    color: #e84d82;
    transform: translateY(-1px);
}

.header-nav-link.is-active {
    background: linear-gradient(135deg, #ff8fba, #ff6b9d);
    color: #fff;
    box-shadow: 0 4px 12px -4px rgba(255, 107, 157, 0.45);
}

.header-nav-link.is-active .header-nav-link__icon {
    opacity: 1;
}

.header-nav-link--featured .header-nav-link__dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #f87171;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.25);
}

.header-nav-link--mobile {
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #ffe8f1;
}

/* ???????? ???? ? ?????? ??? ??? */
.header-fairy-lights {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 2.85rem;
    pointer-events: none;
    overflow: visible;
    opacity: 1;
    transition: opacity 0.4s ease, filter 0.4s ease;
    filter: none;
    z-index: 1;
}

.header-fairy-lights.is-fading {
    opacity: var(--fairy-scroll-opacity, 1);
    filter: blur(calc((1 - var(--fairy-scroll-opacity, 1)) * 1.5px));
}

.header-fairy-lights__bulbs {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 2.5%;
}

.fairy-bulb {
    position: relative;
    display: flex;
    justify-content: center;
    flex: 1;
    max-width: 2.25rem;
    margin-top: calc(var(--bulb-drop, 0.25) * 1.6rem);
}

.fairy-bulb__pendant {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: top center;
    animation: fairyHeartSway 5.5s ease-in-out infinite;
    animation-delay: calc(var(--bulb-i) * 0.32s);
}

.fairy-bulb:nth-child(odd) .fairy-bulb__pendant {
    animation-duration: 6.2s;
}

.fairy-bulb__heart {
    display: block;
    overflow: visible;
    color: var(--bulb-color);
    filter: drop-shadow(0 1px 2px rgba(107, 91, 138, 0.08));
}

.fairy-bulb__heart-shape {
    fill: currentColor;
    opacity: 0.35;
    transition: opacity 0.45s ease, filter 0.45s ease;
}

.fairy-bulb__glow {
    position: absolute;
    inset: -0.15rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--bulb-color) 0%, transparent 72%);
    opacity: 0;
    transform: scale(0.55);
    pointer-events: none;
}

.header-fairy-lights.is-lit .fairy-bulb__heart-shape {
    animation: fairyHeartTwinkle 3.4s ease-in-out infinite;
    animation-delay: calc(var(--bulb-i) * 0.24s);
}

.header-fairy-lights.is-lit .fairy-bulb:nth-child(3n) .fairy-bulb__heart-shape {
    animation-duration: 4s;
}

.header-fairy-lights.is-lit .fairy-bulb:nth-child(3n+1) .fairy-bulb__heart-shape {
    animation-duration: 2.9s;
}

@keyframes fairyHeartSway {
    0%, 100% { transform: rotate(-4deg) translateX(-1px); }
    50% { transform: rotate(4deg) translateX(1px); }
}

@keyframes fairyHeartTwinkle {
    0%, 100% {
        opacity: 0.32;
        filter: brightness(0.94);
    }
    45%, 55% {
        opacity: 0.95;
        filter: brightness(1.12) drop-shadow(0 0 4px var(--bulb-color));
    }
}

.header-fairy-lights.is-lit .fairy-bulb__glow {
    animation: fairyHeartGlow 3.4s ease-in-out infinite;
    animation-delay: calc(var(--bulb-i) * 0.24s);
}

@keyframes fairyHeartGlow {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.45; transform: scale(1.05); }
}

@media (max-width: 640px) {
    .header-fairy-lights { height: 2.1rem; }
    .fairy-bulb__heart { width: 11px; height: 10px; }
    .fairy-bulb:nth-child(even) { display: none; }
    .site-header__brand-link--compact .site-header__brand-text {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-fairy-lights,
    .fairy-bulb__pendant,
    .fairy-bulb__heart-shape,
    .fairy-bulb__glow,
    .site-header,
    .header-nav-link,
    .header-pill,
    .header-icon-btn {
        animation: none !important;
        transition: none !important;
    }
    .header-fairy-lights.is-lit .fairy-bulb__heart-shape {
        opacity: 0.75;
        filter: drop-shadow(0 0 3px var(--bulb-color));
    }
}

/* ?? ????? ???? (Checkout) ?? */
.checkout-page__head {
    margin-bottom: 1.15rem;
}
.checkout-page__head h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #4a3a5c;
}
.checkout-page__head p {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #a89888;
}
.checkout-layout {
    display: grid;
    gap: 1rem;
    align-items: start;
}
@media (min-width: 900px) {
    .checkout-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
        gap: 1.25rem;
    }
}
.checkout-form {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.checkout-form__head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #4a3a5c;
}
.checkout-saved {
    padding: 0.7rem 0.8rem;
    border-radius: 0.95rem;
    background: #faf7f3;
    border: 1px solid #ffe8f1;
}
.checkout-saved__label {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #a89888;
}
.checkout-saved__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.checkout-saved__btn {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #ffd0e4;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    color: #c23a68;
    cursor: pointer;
    transition: border-color var(--shop-transition), background var(--shop-transition), box-shadow var(--shop-transition);
}
.checkout-saved__btn:hover,
.checkout-saved__btn.is-active {
    border-color: #ff8fba;
    background: #fffaf5;
    box-shadow: 0 0 0 2px rgba(198, 160, 127, 0.2);
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem 0.75rem;
}
@media (min-width: 640px) {
    .checkout-grid { grid-template-columns: 1fr 1fr; }
}
.checkout-field { min-width: 0; }
.checkout-field .shop-label {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}
.checkout-optional {
    color: #c4b5a5;
    font-weight: 500;
}
.shop-input--compact,
.shop-textarea--compact {
    padding: 0.5rem 0.8rem;
    font-size: 0.8125rem;
    border-radius: 0.9rem;
}
.shop-textarea--compact {
    min-height: 2.75rem;
    resize: vertical;
}
.checkout-locations .shop-label {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}
.checkout-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: #8a6b84;
    cursor: pointer;
}
.checkout-check input {
    accent-color: #ff6b9d;
}
.checkout-pay {
    padding: 0.75rem 0.85rem;
    border-radius: 0.95rem;
    background: #faf7f3;
    border: 1px solid #ffe8f1;
}
.checkout-pay h3 {
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #4a3a5c;
}
.checkout-pay__list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.checkout-pay__item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.8rem;
    border: 1px solid #ffd0e4;
    background: #fff;
    cursor: pointer;
    transition: border-color var(--shop-transition), box-shadow var(--shop-transition);
}
.checkout-pay__item:has(input:checked) {
    border-color: #ff8fba;
    box-shadow: 0 0 0 2px rgba(198, 160, 127, 0.18);
}
.checkout-pay__item input {
    margin-top: 0.15rem;
    accent-color: #ff6b9d;
}
.checkout-pay__title {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4a3a5c;
}
.checkout-pay__note {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.7rem;
    color: #a89888;
}
.checkout-pay__card {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-family: 'Vazirmatn', ui-sans-serif, system-ui, sans-serif;
    color: #c23a68;
}
.checkout-pay__empty {
    margin: 0;
    font-size: 0.75rem;
    color: #c0784a;
}
.checkout-form__foot {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.25rem;
}
.checkout-note {
    margin: 0;
    font-size: 0.7rem;
    color: #a89888;
}
.checkout-note--green { color: #5b8f7b; }

.checkout-summary {
    padding: 1rem 1.05rem 1.1rem;
}
@media (min-width: 900px) {
    .checkout-summary {
        position: sticky;
        top: 5.5rem;
    }
}
.checkout-summary h2 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #4a3a5c;
}
.checkout-summary__items {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #ffe8f1;
}
.checkout-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: #4a3a5c;
}
.checkout-summary__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #8a6b84;
}
.checkout-summary__price {
    flex-shrink: 0;
    font-weight: 700;
    direction: rtl;
    unicode-bidi: isolate;
    text-align: right;
}
.checkout-summary__meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.65rem 0;
}
.checkout-summary__row.is-muted { color: #a89888; font-weight: 500; }
.checkout-summary__row.is-green { color: #5b8f7b; font-weight: 600; }
.checkout-summary__ship {
    margin: 0;
    font-size: 0.68rem;
    color: #c4b5a5;
    line-height: 1.5;
}
.checkout-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, #fffaf5 0%, #f7eee4 100%);
    border: 1px solid #ffd0e4;
    font-weight: 800;
    color: #4a3a5c;
}
.checkout-summary__total span:last-child {
    font-size: 1.05rem;
    color: #e84d82;
}

/* ——— ریسپانسیو موبایل (کل سایت فروشگاهی) ——— */
@media (max-width: 767px) {
    img,
    video,
    canvas,
    svg {
        max-width: 100%;
        height: auto;
    }

    .shop-otp-input {
        letter-spacing: 0.28em;
        font-size: 1.25rem;
        padding-inline: 0.5rem;
    }

    .header-search--mobile .header-search__btn {
        min-width: 2.35rem;
        min-height: 2.15rem;
        padding: 0 0.55rem;
    }

    .header-search--mobile .header-search__btn-label {
        display: none;
    }

    .header-search--mobile .header-search__btn-icon {
        display: block;
    }

    .cat-flow__orb {
        width: 7.5rem;
        height: 7.5rem;
        right: -2rem;
        top: -2rem;
    }

    .cat-flow__content {
        max-width: 100%;
        padding-inline-end: 0.25rem;
    }

    .cat-flow__content p {
        font-size: 0.78rem;
        margin-bottom: 0.85rem;
    }

    .shop-sticky-bar {
        padding: 0.65rem 0.85rem;
    }

    .shop-btn.shop-btn-lg {
        padding: 0.7rem 1rem;
        font-size: 0.875rem;
    }

    .pdp-buy__cta {
        flex: 1 1 100%;
        min-height: 2.85rem;
    }

    .checkout-summary__total span:last-child {
        font-size: 0.95rem;
    }

    .checkout-summary__name {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .shop-product-sku__value {
        font-size: 0.7rem;
    }

    .addr-book__head,
    .msg-inbox__head {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .home-hero__content {
        padding-inline-start: 1rem !important;
        padding-inline-end: 1rem !important;
    }
}

/* ——— بهینه‌سازی سرعت اسکرول در موبایل ——— */
@media (max-width: 767px) {
    /* backdrop-filter روی المان‌های ثابت/چسبان در «هر فریم» اسکرول دوباره محاسبه
       می‌شود و روی گوشی عامل اصلی پرش و کندی اسکرول است؛ با پس‌زمینهٔ تقریباً مات
       جایگزین شد تا خوانایی حفظ شود */
    .site-header,
    .site-header-wrap.is-scrolled .site-header,
    .shop-bottom-nav,
    .shop-sticky-bar,
    .glass,
    .pf-active-bar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .glass { background: rgba(255, 255, 255, 0.94); }
    .pf-active-bar { background: #fff; }

    /* هدرِ اسکرول‌شده کاملاً مات باشد تا متن زیرش خوانا بماند */
    .site-header-wrap.is-scrolled .site-header { background: #fff9fc; }

    /* در حین اسکرول فعال (کلاس is-scrolling که shop-ui.js می‌گذارد) انیمیشن‌های
       تزئینی متوقف می‌شوند تا تمام توان رندر صرف خود اسکرول شود؛ با توقف
       اسکرول دوباره از همان‌جا ادامه می‌دهند */
    html.is-scrolling .site-header__glow,
    html.is-scrolling .shop-top-banner,
    html.is-scrolling .shop-top-banner__glow,
    html.is-scrolling .shop-top-banner__shine,
    html.is-scrolling .shop-top-banner__pill,
    html.is-scrolling .shop-top-banner__heart--pulse,
    html.is-scrolling .shop-top-banner__emoji--bob,
    html.is-scrolling .cat-flow__engine-3d,
    html.is-scrolling .cat-flow__wheel-spin,
    html.is-scrolling .cat-flow__bogie i,
    html.is-scrolling .cat-flow__smoke,
    html.is-scrolling .header-fairy-lights .fairy-bulb,
    html.is-scrolling .header-fairy-lights .fairy-bulb * {
        animation-play-state: paused !important;
    }
}

/* محافظت نمایشی از عکس‌های فروشگاه — بدون درگ/انتخاب/منوی لمسی طولانی iOS
   (محافظت اصلی، واترمارک سمت سرور روی خود فایل است) */
.shop-body img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}

@media (max-width: 400px) {
    .shop-otp-input {
        letter-spacing: 0.18em;
        font-size: 1.125rem;
    }

    .header-pill {
        padding-inline: 0.55rem;
        font-size: 0.7rem;
    }

    .site-header__actions {
        gap: 0.3rem;
    }
}

/* ——— صفحه خطای ۴۰۴ ——— */
.shop-error {
    position: relative;
    isolation: isolate;
    min-height: calc(100dvh - var(--shop-header-h, 8rem) - 6rem);
    display: grid;
    place-items: center;
    padding: 2.5rem 1rem 3.5rem;
    overflow: hidden;
}
.shop-error__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 78% 12%, rgba(255, 236, 244, 0.9) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 12% 88%, rgba(232, 244, 236, 0.75) 0%, transparent 50%),
        linear-gradient(165deg, #fff5f9 0%, #e0f2fe 48%, #ecfdf5 100%);
}
.shop-error__orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.85;
    animation: shopErrorOrb 9s ease-in-out infinite;
}
.shop-error__orb--a {
    width: 14rem; height: 14rem; top: -3rem; left: -2rem;
    background: rgba(244, 196, 188, 0.55);
}
.shop-error__orb--b {
    width: 12rem; height: 12rem; bottom: 8%; right: -1rem;
    background: rgba(214, 230, 214, 0.55);
    animation-delay: -3s;
}
.shop-error__orb--c {
    width: 9rem; height: 9rem; top: 38%; right: 28%;
    background: rgba(232, 214, 240, 0.4);
    animation-delay: -5.5s;
}
.shop-error__dot {
    position: absolute;
    font-size: 1.1rem;
    color: #d4b59a;
    opacity: 0.55;
    animation: shopFloat 4.5s ease-in-out infinite;
}
.shop-error__dot--1 { top: 18%; right: 14%; color: #e8a4c4; }
.shop-error__dot--2 { bottom: 22%; left: 16%; animation-delay: -1.4s; color: #f4c4bc; }
.shop-error__dot--3 { top: 42%; left: 10%; animation-delay: -2.6s; font-size: 0.95rem; }

.shop-error__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 32rem);
    text-align: center;
    padding: 2.25rem 1.5rem 2rem;
}
.shop-error__code {
    font-family: 'Vazirmatn', ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(5.5rem, 22vw, 8.5rem);
    font-weight: 800;
    line-height: 0.85;
    margin: 0 0 0.35rem;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #c4a48a 0%, #e8b4c8 42%, #b8d4c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.95;
    animation: shopErrorCode 5s ease-in-out infinite;
    user-select: none;
}
.shop-error__mascot {
    width: 4.25rem;
    height: 4.25rem;
    margin: -0.35rem auto 1rem;
    display: grid;
    place-items: center;
    font-size: 2.1rem;
    border-radius: 1.35rem;
    background: linear-gradient(145deg, #fff0f6, #e0f2fe);
    border: 1px solid rgba(255, 232, 241, 0.95);
    box-shadow: 0 12px 28px -16px rgba(255, 107, 157, 0.28);
    animation: shopWiggle 3.2s ease-in-out infinite;
}
.shop-error__kicker {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #e84d82;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #ffe8f1;
    padding: 0.28rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}
.shop-error__title {
    font-size: clamp(1.45rem, 4.2vw, 1.9rem);
    font-weight: 900;
    color: #4a3a5c;
    margin: 0 0 0.65rem;
}
.shop-error__lead {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #8a6b84;
    max-width: 26rem;
    margin: 0 auto 1.75rem;
}
.shop-error__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

@keyframes shopErrorOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8px, -10px) scale(1.06); }
}
@keyframes shopErrorCode {
    0%, 100% { transform: translateY(0); filter: saturate(1); }
    50% { transform: translateY(-4px); filter: saturate(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .shop-error__orb,
    .shop-error__dot,
    .shop-error__mascot,
    .shop-error__code {
        animation: none !important;
    }
}

@media (max-width: 640px) {
    .shop-error {
        padding-top: 1.75rem;
        padding-bottom: 2.5rem;
    }
    .shop-error__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .shop-error__actions .shop-btn {
        width: 100%;
        justify-content: center;
    }
}

/* رندر تنبل کارت‌های محصول زیر فولد */
[data-product-slug] {
    content-visibility: auto;
    contain-intrinsic-size: 340px;
}

/* هشدار بدون لغو / مرجوعی */
.shop-no-return {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid #ffd0e4;
    background: linear-gradient(135deg, #fff5f9 0%, #f0f9ff 100%);
}
.shop-no-return__icon {
    font-size: 1.1rem;
    line-height: 1.5;
    flex-shrink: 0;
}
.shop-no-return__text {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #9a4a6a;
    line-height: 1.75;
}
.pdp-panel--desc .shop-no-return {
    margin-top: 0.85rem;
}

.shop-no-return-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.shop-no-return-modal[hidden] {
    display: none !important;
}
.shop-no-return-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(83, 64, 50, 0.45);
    backdrop-filter: blur(3px);
}
.shop-no-return-modal__card {
    position: relative;
    z-index: 1;
    width: min(100%, 26rem);
    background: #fff;
    border-radius: 1.75rem;
    border: 1px solid #ffe8f1;
    box-shadow: 0 24px 60px -18px rgba(83, 64, 50, 0.35);
    padding: 1.75rem 1.5rem 1.35rem;
    text-align: center;
}
.shop-no-return-modal__icon {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}
.shop-no-return-modal__title {
    margin: 0 0 0.65rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: #5c4033;
}
.shop-no-return-modal__text {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.85;
    color: #8a5a6e;
    font-weight: 600;
}
.shop-no-return-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}
.shop-no-return-modal__actions .shop-btn {
    min-width: 8.5rem;
}
@media (max-width: 420px) {
    .shop-no-return-modal__actions {
        flex-direction: column;
    }
    .shop-no-return-modal__actions .shop-btn {
        width: 100%;
    }
}

/* —— PWA standalone parity —— */
html {
    min-height: 100%;
    min-height: 100dvh;
}

.shop-body {
    min-height: 100%;
    min-height: 100dvh;
}

@media (display-mode: standalone), (display-mode: minimal-ui) {
    .shop-body {
        padding-top: 0;
    }

    .site-header-wrap {
        padding-top: max(env(safe-area-inset-top, 0px), 0px);
    }

    /* toast / overlays clear notches */
    #shop-toast-root {
        top: calc(0.75rem + env(safe-area-inset-top, 0px));
    }

    .entry-popup__card,
    .shop-no-return-modal__panel {
        margin-top: env(safe-area-inset-top, 0px);
        margin-bottom: env(safe-area-inset-bottom, 0px);
    }
}

@supports (-webkit-touch-callout: none) {
    @media (display-mode: standalone) {
        .shop-bottom-nav {
            padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
        }
    }
}

/* ==========================================================
   فیلترهای صفحهٔ محصولات (pf = product filters)
   ========================================================== */
.pf-panel {
    background: #fff;
    border: 1px solid rgba(255, 208, 228, 0.75);
    border-radius: 1.5rem;
    box-shadow: var(--shop-shadow);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}
.pf-panel--page {
    position: sticky;
    top: calc(4.5rem + 1rem);
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #ffd0e4 transparent;
}
.pf-panel--page::-webkit-scrollbar { width: 6px; }
.pf-panel--page::-webkit-scrollbar-thumb { background: #ffd0e4; border-radius: 999px; }

.pf-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pf-head__icon {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #fff5f9, #ffe8f1);
    border: 1px solid #ffe8f1;
    border-radius: 0.9rem;
}
.pf-head__title {
    font-weight: 900;
    color: var(--shop-ink, #4a3a5c);
    font-size: 0.95rem;
}
.pf-badge {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.4rem;
    display: inline-grid;
    place-items: center;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ff8fba, #ff6b9d);
    border-radius: 9999px;
    box-shadow: 0 3px 10px -3px rgba(255, 107, 157, 0.55);
}
.pf-clear {
    margin-right: auto;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #c23a68;
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    transition: background var(--shop-transition);
}
.pf-clear:hover { background: #fff5f9; }

.pf-group { display: flex; flex-direction: column; gap: 0.55rem; }
.pf-group__title {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--shop-muted, #8a6b84);
}

/* دسته‌بندی‌ها — ردیفی با نقطهٔ رنگی پاستلی */
.pf-cats { display: flex; flex-direction: column; gap: 0.25rem; }
.pf-cat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b5b7b;
    transition: background var(--shop-transition), color var(--shop-transition), transform var(--shop-transition);
}
.pf-cat:hover { background: #fff5f9; transform: translateX(-2px); }
.pf-cat__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 9999px;
    background: #ffd0e4;
    flex-shrink: 0;
    transition: transform var(--shop-transition), box-shadow var(--shop-transition);
}
.pf-dot--1 { background: #ff9ec4; }
.pf-dot--2 { background: #7dd3fc; }
.pf-dot--3 { background: #6ee7b7; }
.pf-dot--4 { background: #c4b5fd; }
.pf-cat.is-active {
    background: linear-gradient(135deg, #fff0f6, #ffe8f1);
    color: #e84d82;
    font-weight: 800;
}
.pf-cat.is-active .pf-cat__dot {
    background: var(--shop-accent, #ff6b9d);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.18);
}
.pf-cat--child { margin-right: 1.15rem; font-size: 0.78rem; }

/* چیپ‌های جنسیت/رده سنی */
.pf-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pf-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.42rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b5b7b;
    background: #fff5f9;
    border: 1.5px solid transparent;
    border-radius: 9999px;
    transition: all var(--shop-transition);
}
.pf-chip:hover { border-color: #ffd0e4; background: #fff; transform: translateY(-1px); }
.pf-chip.is-active {
    color: #fff;
    background: linear-gradient(135deg, #ff8fba 0%, #ff6b9d 60%, #7dd3fc 130%);
    box-shadow: 0 5px 14px -5px rgba(255, 107, 157, 0.55);
}

/* سگمنت مرتب‌سازی */
.pf-seg {
    display: inline-flex;
    gap: 0.2rem;
    background: #fff5f9;
    border: 1px solid #ffe8f1;
    border-radius: 9999px;
    padding: 0.25rem;
}
.pf-seg a {
    padding: 0.38rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #8a6b84;
    border-radius: 9999px;
    white-space: nowrap;
    transition: all var(--shop-transition);
}
.pf-seg a:hover { color: #e84d82; }
.pf-seg a.is-active {
    color: #fff;
    background: linear-gradient(135deg, #ff8fba, #ff6b9d);
    box-shadow: 0 3px 10px -3px rgba(255, 107, 157, 0.5);
}
.pf-seg--toolbar { background: #fff; box-shadow: 0 2px 12px -6px rgba(255, 107, 157, 0.25); }

/* تولبار بالای محصولات */
.pf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.9rem;
    border-bottom: 1.5px dashed #ffe8f1;
}
.pf-toolbar__count { font-size: 0.8125rem; color: #8a6b84; }
.pf-toolbar__count strong {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--shop-ink, #4a3a5c);
}

/* نوار فیلترهای فعال بالای صفحه */
.pf-active-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #ffe8f1;
    border-radius: 1.1rem;
    box-shadow: 0 2px 12px -6px rgba(255, 107, 157, 0.2);
}
.pf-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.45rem 0.32rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #c23a68;
    background: #fff5f9;
    border: 1px solid #ffd0e4;
    border-radius: 9999px;
    transition: all var(--shop-transition);
}
.pf-active-chip:hover { background: #ffe8f1; transform: translateY(-1px); }
.pf-active-chip__x {
    width: 1.05rem;
    height: 1.05rem;
    display: grid;
    place-items: center;
    font-size: 0.6rem;
    color: #fff;
    background: #ff9ec4;
    border-radius: 9999px;
    transition: background var(--shop-transition), transform var(--shop-transition);
}
.pf-active-chip:hover .pf-active-chip__x {
    background: #ff6b9d;
    transform: rotate(90deg);
}
.pf-active-clear {
    margin-right: auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: #9ca3af;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--shop-transition);
}
.pf-active-clear:hover { color: #e84d82; }

/* کشوی فیلتر موبایل */
.pf-drawer {
    background: #fff;
    border: 1px solid rgba(255, 208, 228, 0.75);
    border-radius: 1.25rem;
    box-shadow: var(--shop-shadow);
    overflow: hidden;
}
.pf-drawer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    background: linear-gradient(135deg, #fff5f9, #fdf4ff);
    list-style: none;
}
.pf-drawer__bar::-webkit-details-marker { display: none; }
.pf-drawer__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    font-size: 0.875rem;
    color: var(--shop-ink, #4a3a5c);
}
.pf-drawer__emoji { font-size: 1.05rem; }
.pf-drawer__meta { display: inline-flex; align-items: center; gap: 0.55rem; }
.pf-drawer__chevron {
    color: #c23a68;
    font-size: 0.8rem;
    transition: transform 0.22s ease;
}
.pf-drawer[open] .pf-drawer__chevron { transform: rotate(180deg); }
.pf-drawer__body {
    padding: 1rem 1.1rem 1.15rem;
    border-top: 1.5px dashed #ffe8f1;
}
