﻿/* ═══════════════════════════════════════════════════════════════
   GLASS MORPHISM — Shopping Cart Offcanvas (:is(#modalShoppingCart, #wholesaleShoppingCart))
   iOS-style: semi-transparent, blurred, squircle cards + icons
   ═══════════════════════════════════════════════════════════════ */

/* ── Panel itself ── */
:is(#modalShoppingCart, #wholesaleShoppingCart).offcanvas {
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(22px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.6) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
    z-index: 10500 !important;
}

:is(#modalShoppingCart, #wholesaleShoppingCart).offcanvas ~ .offcanvas-backdrop,
.offcanvas-backdrop {
    z-index: 10499 !important;
}

/* ── Header & Footer glass strips (legacy — kept for other offcanvas) ── */
:is(#modalShoppingCart, #wholesaleShoppingCart) .offcanvas-header {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

:is(#modalShoppingCart, #wholesaleShoppingCart) .offcanvas-footer {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

/* ── Each product row — glass card ── */
:is(#modalShoppingCart, #wholesaleShoppingCart) .list-group-item.draw-line {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    border-radius: 20px !important;
    margin: 8px 12px !important;
    padding: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

:is(#modalShoppingCart, #wholesaleShoppingCart) .list-group-item.draw-line:hover {
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.13);
    transform: translateY(-1px);
}

/* ── list-group wrapper: remove default bg/border ── */
:is(#modalShoppingCart, #wholesaleShoppingCart) .list-group {
    background: transparent !important;
    padding: 4px 0;
}

/* ── Circular glass delete button ── */
:is(#modalShoppingCart, #wholesaleShoppingCart) .bask-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    color: #888 !important;
    font-size: 0.8rem !important;
    transition: box-shadow 0.2s ease, transform 0.18s ease, background 0.2s ease !important;
    cursor: pointer;
    padding: 0 !important;
}

/* text label inside the button — hide on glass style, show only icon */
:is(#modalShoppingCart, #wholesaleShoppingCart) .bask-button .bask-btn-label {
    display: none;
}

:is(#modalShoppingCart, #wholesaleShoppingCart) .bask-button:hover {
    background: rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 0 14px rgba(var(--color-primary-rgb, 255, 153, 0), 0.55),
                0 0 6px rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.12);
    color: var(--color-primary) !important;
}

/* ── Close button — glass circle ── */
:is(#modalShoppingCart, #wholesaleShoppingCart) .btn-close {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    opacity: 1;
    transition: box-shadow 0.2s ease, transform 0.18s ease !important;
}

:is(#modalShoppingCart, #wholesaleShoppingCart) .btn-close:hover {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9) !important;
    transform: scale(1.1);
}

/* ── Body scroll area ── */
:is(#modalShoppingCart, #wholesaleShoppingCart) .offcanvas-body {
    background: transparent !important;
    overflow-y: auto;
}

/* ── Mobile/Tablet: cart uses the same bottom-sheet pattern as the mobile menu ── */
@media (max-width: 991.98px) {
    :is(#modalShoppingCart, #wholesaleShoppingCart).offcanvas.offcanvas-end {
        top: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: min(88dvh, 860px) !important;
        max-height: calc(100dvh - 12px) !important;
        border: 0 !important;
        border-radius: 22px 22px 0 0 !important;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.28) !important;
        backdrop-filter: blur(18px) saturate(1.5) !important;
        -webkit-backdrop-filter: blur(18px) saturate(1.5) !important;
        transform: translateY(calc(100% + 24px)) !important;
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1) !important;
        will-change: transform;
        overflow: hidden;
    }

    :is(#modalShoppingCart, #wholesaleShoppingCart).offcanvas.showing,
    :is(#modalShoppingCart, #wholesaleShoppingCart).offcanvas.show:not(.hiding) {
        transform: translateY(0) !important;
    }

    :is(#modalShoppingCart, #wholesaleShoppingCart).offcanvas.hiding {
        transform: translateY(calc(100% + 24px)) !important;
    }

    :is(#modalShoppingCart, #wholesaleShoppingCart) .list-group-item.draw-line {
        margin: 6px 8px !important;
        border-radius: 16px !important;
    }

    :is(#modalShoppingCart, #wholesaleShoppingCart) .cart-drag-handle {
        display: flex;
    }

    :is(#modalShoppingCart, #wholesaleShoppingCart) .bask-button {
        width: 32px;
        height: 32px;
        font-size: 0.75rem !important;
    }
}

:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-drag-handle {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 9px 0 3px;
    cursor: grab;
    flex-shrink: 0;
    touch-action: none;
}

:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-drag-handle span {
    display: block;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #222;
    opacity: 0.2;
}

@media (max-width: 991.98px) {
    :is(#modalShoppingCart, #wholesaleShoppingCart) .cart-drag-handle {
        display: flex;
    }
}

/* ── Cart Glass Header ── */
:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-glass-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;          /* عنوان راست، close چپ (RTL) */
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-header-title {
    font-size: 1rem;
    font-weight: 700;
}

/* Close button — دایره با ایکون × واقعی */
:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-close-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #444;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.18s;
    padding: 0;
    line-height: 1;
}

:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-close-btn:hover {
    background: rgba(0, 0, 0, 0.18) !important;
    transform: scale(1.1);
    color: #111;
}

/* ── Empty cart state ── */
:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-empty-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
}

:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-empty-state {
    min-height: 132px;
    margin: 8px 14px 14px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 2px;
    color: #52616b;
    text-align: center;
}

:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-empty-icon {
    font-size: 2.35rem;
    line-height: 1;
    color: #52616b;
}

:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-empty-text {
    margin: 0;
    color: #4c5962;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    :is(#modalShoppingCart, #wholesaleShoppingCart) .cart-empty-state {
        margin: 8px 12px 12px;
        min-height: 138px;
    }
}

/* ── Scrollable list area ── */
:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-items-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
}

:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-items-scroll::-webkit-scrollbar {
    width: 4px;
}
:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-items-scroll::-webkit-scrollbar-track {
    background: transparent;
}
:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-items-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
}

/* ── Checkout panel — dark glass, total + button in one row ── */
:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-checkout-panel {
    flex-shrink: 0;
    padding: 14px 16px 18px;
    background: rgba(15, 15, 15, 0.72) !important;
    backdrop-filter: blur(18px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}

/* صف تکمیل خرید + مجموع کنار هم */
:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-checkout-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* دکمه تکمیل خرید — flex:1 سمت چپ */
:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-checkout-btn {
    flex: 1;
    display: block;
    text-align: center;
    padding: 12px 16px;
    background: #fff;
    color: #111;
    font-weight: 700;
    font-size: 0.97rem;
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.18s, transform 0.15s;
}

:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-checkout-btn:hover {
    background: #f0f0f0;
    transform: scale(1.02);
}

/* pill مجموع — سمت راست */
:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-total-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    min-width: 90px;
}

:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-total-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
}

:is(#modalShoppingCart, #wholesaleShoppingCart) .cart-total-amount {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    direction: rtl;
}

/* ── Make offcanvas a column flex so scroll + sticky footer work ── */
:is(#modalShoppingCart, #wholesaleShoppingCart).offcanvas {
    display: flex !important;
    flex-direction: column !important;
}

/* ── Mobile: adjust checkout panel padding for safe area ── */
@media (max-width: 991.98px) {
    :is(#modalShoppingCart, #wholesaleShoppingCart) .cart-checkout-panel {
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }
    :is(#modalShoppingCart, #wholesaleShoppingCart) .cart-items-scroll {
        padding-bottom: 4px;
    }
}

/* ── iOS Safari Overscroll Background Fix ── */
/* جلوگیری از نمایش سفیدی هنگام bounce/overscroll در Safari iOS */

/* ── Fix: ensure dsh-chips can scroll inside search result panel ── */
/* The panel itself has overflow:hidden (for border-radius clipping),
   but .dsh-chips must scroll — so we only need the panel to clip visually,
   not block child scroll. touch-action + explicit dimensions fix this. */
.dsh-chips {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    cursor: grab;
    /* must have explicit width to enable scroll inside overflow:hidden parent */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.dsh-chips:active { cursor: grabbing; }
.dsh-chips::-webkit-scrollbar { display: none; }
html {
    background-color: #fff;
    overscroll-behavior: none;
}

/* ─── Header Pill Group — nested/interlocking pair ─── */
/*
   ┌──────────────────────┬──────────────┐
   │   ورود / ثبت‌نام  👤  │ 🛒 سبد خرید │
   └──────────────────────┴──────────────┘
   The cart pill overlaps the right (account) pill from the left,
   creating a concave/interlocking join like two linked oval shapes.
*/
.header-pill-group {
    display: inline-flex;
    align-items: center;
    flex-direction: row-reverse;   /* RTL: cart pill goes to the left */
    position: relative;
}

/* flatten ul/li wrapper coming out of LoginStatusPartial */
.header-pill-group #login-status-container,
.header-pill-group #login-status-container ul,
.header-pill-group #login-status-container .navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: contents;
}
.header-pill-group #login-status-container .nav-item {
    display: contents;
}

/* basket wrapper: sits above account pill */
.header-pill-group #basketIcon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

/* علاقه‌مندی‌ها: اکشن مشترک هدرهای کلاسیک و ژورنالی */
.header-wishlist-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0 4px;
    padding: 0 !important;
    border: 1.5px solid var(--header-cart-border);
    border-radius: 50%;
    background: var(--header-cart-bg);
    color: var(--header-cart-text) !important;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.header-wishlist-btn:hover {
    background: var(--header-cart-hover-bg);
    border-color: var(--header-cart-hover-border);
    color: var(--header-cart-hover-text) !important;
    transform: translateY(-1px);
}
.header-wishlist-btn:focus-visible {
    outline: 3px solid var(--amin-button-primary-focus-ring);
    outline-offset: 3px;
}
.header-wishlist-btn i { font-size: 18px; line-height: 1; }

/* Match all three controls while preserving the classic curved, overlapping joins. */
.header-pill-group .header-account-btn,
.header-pill-group .header-wishlist-btn,
.header-pill-group .header-cart-btn {
    box-sizing: border-box;
    height: 46px;
    min-height: 46px;
    flex-shrink: 0;
}
.header-pill-group .header-account-btn {
    /* Reserve room for the heart's overlap on the right edge. */
    padding: 0 32px 0 16px !important;
}
.header-pill-group .header-wishlist-btn {
    /* The next pill covers 16px; keep the heart centered in the exposed 46px. */
    flex-basis: 62px;
    width: 62px;
    margin: 0 0 0 -16px;
    padding: 0 16px 0 0 !important;
    border-radius: 50px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(0,0,0,0.08);
}
.header-pill-group .header-wishlist-btn:hover {
    transform: none;
}
.header-pill-group .header-cart-btn {
    margin-left: -16px;
    padding: 0 16px !important;
    border-radius: 50px;
    box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(0,0,0,0.12);
}
.header-pill-group .header-wishlist-btn:focus-visible,
.header-pill-group #basketIcon:focus-within {
    z-index: 3;
}

/* ─── Account Button — right pill ─── */
.header-account-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    border-radius: 30px 0px 0px 0px;
    border: 1.5px solid #e0e0e0;
    padding: 7px 16px 7px 42px !important;
    font-size: 14px;
    font-weight: 600;
    color: #333 !important;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    text-decoration: none;
    overflow: hidden;
    margin-right: 0;
}
.header-account-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}
.header-account-btn i {
    font-size: 16px;
    flex-shrink: 0;
}
.header-account-label {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── Cart Button — left pill, overlaps into account pill ─── */
.header-cart-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: var(--header-cart-bg, #000000);
    border-radius: 50px;
    border: 1.5px solid var(--header-cart-border, #000000);
    padding: 12px 16px !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--header-cart-text, #ffffff) !important;
    transition: background 0.2s, opacity 0.2s;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    z-index: 2;
    /* overlap: right half of cart pill sits inside account pill */
    margin-left: -16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.12);
    overflow: hidden;
}
.header-cart-btn:hover {
    opacity: 1;
    background: var(--header-cart-hover-bg, #ffffff);
    border-color: var(--header-cart-hover-border, #000000);
    color: var(--header-cart-hover-text, #000000) !important;
}
.header-cart-btn i {
    font-size: 16px;
    flex-shrink: 0;
}
.header-cart-label {
    /* text label */
}
.header-cart-count {
    background: rgba(255,255,255,0.22);
    border-radius: 12px;
    padding: 1px 7px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    line-height: 1.5;
}
.header-cart-count.has-items {
    background: #fff;
    color: var(--header-cart-bg, #000000);
}

/* ─── shine effect — only on account pill; cart already dark ─── */
.header-cart-btn,
.header-account-btn {
    position: relative;
    overflow: hidden;
}

.header-account-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    right: 140%;
    width: 60%;
    height: 200%;
    background: linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 80%);
    transform: skewX(-20deg);
    transition: right 0s;
    pointer-events: none;
}
.header-cart-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    right: 140%;
    width: 60%;
    height: 200%;
    background: linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0) 80%);
    transform: skewX(-20deg);
    transition: right 0s;
    pointer-events: none;
}

.header-cart-btn:hover::after,
.header-account-btn:hover::after {
    right: -20%;
    transition: right 0.5s ease;
}

/* ─── Sticky Navigation Row (زیر سرچ) ─── */
@media (min-width: 992px) {
    .sticky-navbar-row {
        position: sticky;
        top: 0;
        z-index: 1040;
        
        transition: box-shadow 0.3s;
    }
    .sticky-navbar-row.is-stuck {
        box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    }
}

/* gap between login and cart buttons — disabled: overlap handled by header-pill-group */
@media (min-width: 992px) {
    #basketIcon {
        margin-inline-start: 0 !important;
    }
}

/* search results z-index above sticky navbar */
#main-search-resault.active {
    z-index: 1050 !important;
}

.search-big-div {
    position: relative;
    z-index: 1044;
}


.nav-item.dropdown.depth2 .dropdown-menu, .nav-item.dropdown.depth1 .dropdown-menu {
    right: 0;
    left: auto;
    width: 100%;
}
@media(max-width :992px) {

    .btn-loadmore{
        margin-right:1rem;
    }

    .list-by-category .kala-list {
        width: 100% !important;
    }
    .list-by-category .btn-more {
        font-size: 13px;
    }
    .list-by-category .kala-list {
        padding: 0;
    }

  
  
}

/* Responsive adjustments */
    @media (max-width: 992px) {
        .product-gallery .gallery-main .swiper-button-prev {
            left: 18%;
        }
        .el-11 .icons-list .icon-item {
            padding: 1rem 1rem;
        }
            .el-11 .icons-list {
            display: flex;
            flex-direction: row;
            gap: 10px;
            justify-content: center;
        }

        #productList #pagination-product {
            margin-top:2rem;
        }



        .product-title {
            font-size: 21px;
        }
            .list-by-category .kala {
            flex-direction: column;
        }

            .list-by-category .kala .pad {
                width: 100%;
                flex-direction: row;
                justify-content: space-between;
                padding: 15px 0;
            }
        .list-by-category .name, .list-by-category .name span , .list-by-category .name span *{
            margin-bottom: 0 ;
        }
        .list-by-category .btn-more {
            padding: 5px 15px;
            background: white;
            margin-left: 1rem;
        }
        .list-by-category .image-holder {
            height: auto;
            margin-bottom: 0;
            margin-right: 5px;
        }

        .list-by-category .btn-loadmore {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }
        .footer-title {
            margin-bottom: 1rem;
        }
        .footer-item {
            margin-bottom: 2rem;
        }
        .site-footer {
            padding-bottom: 80px;
        }
    }



    @media(min-width :992px) {

        .el-11 .icons-list {
            display: flex;
            flex-direction: row;
            gap: 35px;
            justify-content: center;
        }



        .flickity-slide {
            padding-inline: 5rem;
        }

        .nav-item.dropdown.depth2, .nav-item.dropdown.depth1, .nav-item.dropdown.depth3, .nav-item.dropdown.with-separator, .depth3 .layer1 {
            transition: opacity 0.3s ease-in-out, border-color 0.3s ease-in-out;
        }

            .nav-item.dropdown.depth2:hover, .nav-item.dropdown.depth1:hover, .nav-item.dropdown.depth3:hover, .nav-item.dropdown.with-separator:hover, .depth3 .layer1:hover {
                border-color: var(--color-primary);
                background-color: var(--header-item-hover-bg, var(--header-item-bg, #fff));
                transition: background-color 0.3s ease;
            }
        .nav-item.dropdown.depth2, .nav-item.dropdown.depth1 {
            position: static;
        }
        .nav-item.dropdown.depth3 .dropdown-menu {
            transform: translateY(-4px);
        }
        .nav-item.dropdown.depth2 .dropdown-menu, .nav-item.dropdown.depth1 .dropdown-menu {
            transform: translateY(3px);
        }
        .nav-item.dropdown.depth2 .dropdown-menu, .nav-item.dropdown.depth1 .dropdown-menu, .nav-item.dropdown.depth3 .dropdown-menu {
            right: 0;
            left: auto;
            width: 100%;
        }

                .nav-item.dropdown.depth2 .dropdown-menu .card-body, .nav-item.dropdown.depth1 .dropdown-menu .card-body {
                    padding: 1.5rem 10rem 2.5rem 10rem;
                }

                    .nav-item.dropdown.depth2 .dropdown-menu .card-body .col, .nav-item.dropdown.depth1 .dropdown-menu .card-body .col {
                        max-width: 270px !important;
                        min-width: 200px;
                    }
    }

    @media (min-width: 1600px) {
        .container {
            max-width: 1560px;
        }
    }

    @media (min-width: 1430px ) {
        .nav-item.dropdown.depth2, .nav-item.dropdown.depth1 {
            position: static;
        }

            .nav-item.dropdown.depth2 .dropdown-menu .card-body .col, .nav-item.dropdown.depth3 .dropdown-menu .card-body .col {
                max-width: 270px !important;
                min-width: 200px;
            }
    }

    @media (min-width: 1200px) {
        .flickity-slide {
            padding-inline: 12rem;
        }

        .fs-auto {
            font-size: clamp(0.8125rem, 0.7768rem + 0.1786vw, 0.9375rem);
        }

        .fs-auto-small {
            font-size: clamp(0.6875rem, 0.6696rem + 0.0893vw, 0.75rem);
        }
    }

    @media (max-width: 1200px) {

        .prd-support {
            width: 100%;
            margin-top: 10px !important;
        }

            .prd-support > .prd-support-text {
                bottom: -50px;
                left: 23%;
                right: auto;
                top: auto;
                clip-path: polygon(50% 0%, 100% 20%, 100% 100%, 50% 100%, 0px 100%, 0px 20%);
                padding-top: 1rem;
            }
    }

    @media (max-width: 1060px) {
        .flickity-slide {
            padding-inline: 5rem;
        }

        .mob {
            display: block !important;
        }

        .tablet {
            display: none;
        }

        .desk {
            display: none;
        }
    }

    @media (min-width: 1061px) and (max-width:1399px) {
        .mob {
            display: none;
        }

        .tablet {
            display: block !important;
        }

        .desk {
            display: none;
        }
    }

    @media (min-width: 1400px) {
        .mob {
            display: none;
        }

        .tablet {
            display: none;
        }

        .desk {
            display: block !important;
        }
    }

    @media (max-width : 1499px) {
        #main-search-resault {
            width: 591px;
        }
    }
    /*--------Mobile------*/
    @media (max-width: 1199px) {
        .el-11-border:nth-child(2n) {
            border: none;
        }

        .row.justify-content-between > div:nth-child(3), .row.justify-content-between > div:nth-child(4) {
            margin-top: 10px; /* Adjust the value to your needs */
        }
    }

@media (max-width: 850px) {
    .swiper-button-prev.mainbanner {
        right: 30px;
        left: auto;
    }

    .swiper-button-next.mainbanner {
        left: auto;
        right: 70px;
    }


}
    @media (max-width: 991.98px) {

        /* ── iOS Safari Dynamic Viewport Fix ── */
        body {
            padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
            min-height: 100dvh;
        }

        .flickity-slide {
            padding-inline: 4rem;
        }

        .pay-gw-footer-area {
            padding-bottom: 7rem;
        }

        .footer-about {
            text-align: center;
            
        }

        .footer-social-list {
            justify-content: center;
        }

        .footer-about img {
            margin-right: 10px;
        }

        .heart-div {
            display: none !important;
        }


        .content-hotspot {
            min-width: 400px;
        }

        .add-buttons {
            flex-wrap: wrap;
        }

        .el1-box .hotspot-label {
            visibility: visible !important;
            transition: all 0.3s ease-out;
            opacity: 1;
        }


        .content-hotspot {
            left: 5px !important;
            right: 5px !important;
            position: fixed !important;
        }

        .brand-container {
            display: grid;
            grid-template-rows: auto;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        }


            .brand-container .search-big-div {
                grid-column: 2 / 4; /* Span across all columns in the second row */
                grid-row: 1; /* Place it in the second row */
                width: 95% !important;
                background-color: var(--rgba-primary-9);
                padding: 2px 0px;
            }

                .brand-container .search-big-div div {
                    background-color: white;
                }

            .brand-container ul {
                grid-column: 4/5;
                grid-row: 1;
                justify-self: end;
                margin: 0.3rem 1rem;
                padding: 0;
            }

            .brand-container div {
                margin: 0.3rem 1rem;
            }

        .login-button {
            display: none;
        }

        .tinylogin-button {
            display: block;
        }





        /* ── Bottom Nav (mob-nav) ── */
        .mob-nav {
            display: flex;
            align-items: stretch;
            position: fixed;
            bottom: calc(10px + env(safe-area-inset-bottom, 0px));
            right: 12px;
            left: 12px;
            height: 58px;
            width: calc(100% - 24px);
            z-index: 200;
            background-color: var(--mob-nav-backcolor, #fff);
            border: 1px solid rgba(0,0,0,0.07);
            border-radius: 18px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.13);
            overflow: visible;
            /* iOS Safari: از will-change برای layer جداگانه استفاده میکنیم */
            will-change: transform;
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
        }

        /* ── آیتم عادی ── */
        .mob-nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            padding: 8px 4px;
            color: var(--mob-nav-text, #666);
            text-decoration: none;
            cursor: pointer;
            transition: color 0.2s;
            -webkit-tap-highlight-color: transparent;
        }

        .mob-nav-item i {
            font-size: 1.25rem;
            line-height: 1;
        }

        .mob-nav-item span {
            font-size: 0.68rem;
            line-height: 1;
        }

        .mob-nav-item:hover,
        .mob-nav-item.active {
            color: var(--mob-nav-hover, var(--color-primary, #ff5e14));
        }

            .mob-nav-item.active i,
            .mob-nav-item.active span {
                color: var(--mob-nav-hover, #ff5e14);
            }

        /* ── FAB وسط ── */
        .mob-nav-fab-wrap {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .mob-nav-fab {
            position: absolute;
            top: -20px;
            width: 54px;
            height: 54px;
            border-radius: 50%;
            background: var(--color-primary, #ff5e14);
            color: #fff !important;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            box-shadow: 0 4px 16px rgba(0,0,0,0.2);
            text-decoration: none;
            transition: transform 0.2s, background 0.2s;
            -webkit-tap-highlight-color: transparent;
            border: 3px solid var(--mob-nav-backcolor, #fff);
        }

        .mob-nav-fab:hover {
            transform: scale(1.06);
            background: var(--color-secondary, #152332);
        }

        /* آیکون‌های داخل FAB */
        .mob-nav-fab i,
        .mob-nav-fab svg,
        .mob-nav-fab [data-cart-items] {
            color: #fff !important;
        }

        .mob-nav-fab [data-cart-items] {
            font-size: 0.7rem;
        }

        /* ── FAB خانه (آیکون) ── */
        .mob-nav-fab--home {
            background: var(--color-primary, #ff5e14);
            font-size: 1.35rem;
            color: #fff !important;
        }

        .mob-nav-fab--home:hover {
            background: var(--color-secondary, #152332);
            transform: scale(1.08);
        }

        .mob-nav-fab--home i {
            color: #fff !important;
        }

        /* ── FAB لوگو (legacy — نگه داشته شده) ── */
        .mob-nav-fab--logo {
            background: #fff;
            padding: 4px;
            overflow: hidden;
        }

        .mob-nav-fab--logo:hover {
            background: #fff;
            transform: scale(1.06);
        }

        .mob-nav-fab--logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        /* ── chat toggle: فاصله از تب‌بار ── */
        .chat-toggle-btn {
            bottom: 84px !important;
            right: 14px !important;
            width: 46px !important;
            height: 46px !important;
            font-size: 20px !important;
        }

        .chat-label-bubble {
            bottom: 138px !important;
            right: 14px !important;
        }

        /* ── فضای پایین صفحه برای تب‌بار floating ── */
        body {
            padding-bottom: 82px;
        }

    @media (max-width: 768px) {
        .el-11-border .title > * {
            line-height: 1.5;
        }

        .flickity-slide {
            padding-inline: 2rem;
        }

        .el-11-border > div {
            margin-inline: 3px !important;
        }

        .specs .ch-103 .option-el {
            font-size: 45px !important;
            margin-bottom: 0.5rem !important;
        }

        .ch-103 .heading-xxs * {
            font-size: 12px !important;
        }

        .ch-103 .text * {
            font-size: 12px !important;
        }

        .el-11-border {
            padding-inline: 0.1rem !important;
            border: none;
        }

            .el-11-border > div {
                margin-inline: 10%;
            }

        .row.justify-content-between > div:nth-child(2) {
            margin-top: 10px; /* Adjust the value to your needs */
        }

        #a_f_mob {
            display: none;
        }

        .sort-dropdown {
            display: none;
        }

        .sort-filter {
            margin-bottom: 0;
        }

        .shop-cat-title {
            display: flex;
            justify-content: space-between
        }

            .shop-cat-title i {
                font-size: 24px;
                display: block;
            }

        .sort-filter {
            display: flex;
            position: sticky;
            top: 5px;
            z-index: 99;
            background-color: white;
            padding: 6px 0;
            justify-content: space-evenly;
        }



            .sort-filter .sort-drop .mob-sort * {
                margin: auto;
            }

            .sort-filter .sort-drop .mob-sort {
                width: 100%;
                height: 100%;
                display: flex;
            }

                .sort-filter .sort-drop .mob-sort button {
                    background-color: transparent;
                    padding: 0;
                    display: inherit;
                    width: 100%;
                }


                    .sort-filter .sort-drop .mob-sort button::after {
                        float: none;
                    }

            .sort-filter .mob-sort {
                flex-grow: 1;
                box-shadow: 0px 0px 3px 1px #cecece;
            }


            .sort-filter .filter-drop button {
                width: 100%;
                display: flex;
                justify-content: space-evenly;
            }

                .sort-filter .filter-drop button * {
                    margin: auto;
                }

            .sort-filter .filter-drop {
                margin: auto 0 auto 1px;
                padding: 10px 0;
                cursor: pointer;
                box-shadow: 0px 0px 3px 1px #cecece;
            }

        .search-big-div {
            display: none;
        }


        .search-small-div {
            display: block;
            width: 100% !important;
            background-color: var(--mob-search-bg,--rgba-primary-9);
            padding: 8px 12px;
            justify-content: center;
            position: sticky;
            top: 0;
            margin: auto;
            z-index: 99;
        }

        .offcanvas-header .search-small-div {
            position: static;
        }



        .search-small-div div {
            background-color: white;
        }

            .search-small-div div svg {
                font-size: 1.2rem;
                vertical-align: middle;
                opacity: 0.7;
            }

        .search-small-div input {
            border: none;
            width: 90%;
            background-color: initial;
            outline: none;
            padding: 10px 19px;
        }

        /* Mobile Search Offcanvas */
        #search-mob {
            color: var(--mob-search-text);
            border-top: 1px solid var(--mob-search-border);
        }

        #search-mob .offcanvas-header {
            border-bottom: 1px solid var(--mob-search-border);
        }

        #search-mob .mob-mains-in {
            color: var(--mob-search-text);
            background-color: transparent;
        }

        #search-mob .mob-mains-in::placeholder {
            color: color-mix(in srgb, var(--mob-search-text) 50%, transparent);
        }

        #search-mob .btn-off-close i {
            color: var(--mob-search-text);
        }

       

        .specs {
            margin-top: 20px;
        }

        #filterNav {
            display: none;
        }

        .sort-filter .filter-drop {
            display: block;
            flex-grow: 1;
        }

        .sort-drop {
            flex-grow: 1;
        }

        .brand-container {
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            grid-template-rows: auto auto; /* Create a second row */
            margin: 0 auto;
        }


            .brand-container .search-big-div {
                grid-column: 1 / 4; /* Span across all columns in the second row */
                grid-row: 2; /* Place it in the second row */
                width: 95% !important;
                background-color: var(--rgba-primary-9);
                padding: 2px 0px;
            }

                .brand-container .search-big-div div {
                    background-color: white;
                }

            .brand-container ul {
                grid-column: 2/4;
                grid-row: 1;
                justify-self: end;
                margin: 0.3rem 1rem;
                padding: 0;
            }

            .brand-container div {
                margin: 0.3rem 1rem;
            }

        .topnav-container {
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive 2-column layout on mobile */
            grid-template-rows: auto auto; /* Two rows */
            width: 100%;
            padding: 0;
        }

            .topnav-container .top-text {
                grid-column: 1 / -1; /* Span across all columns */
                grid-row: 1; /* Place in the first row */
                justify-self: start; /* Align to the start of the row */
                padding: 10px 0;
                justify-self: center;
            }

            .topnav-container .top-links {
                grid-column: 1 / 3; /* Span across all columns */
                grid-row: 2; /* Place in the second row */
                justify-self: start; /* Align to the start of the column */
                display: inline-block;
                margin: 5px 0;
            }

                .topnav-container .top-links li {
                    margin: 0 5px;
                }

            .topnav-container .top-social {
                grid-column: 3; /* Span across all columns */
                grid-row: 2; /* Place in the second row */
                justify-self: end; /* Align to the end of the row */
                margin-left: 2px;
            }

                .topnav-container .top-social li {
                    margin: 0 5px !important;
                }

        .brand-container ul li {
            margin: auto 10px;
        }



        .search-big-div {
            width: 100%;
            padding: 12px 0;
        }
    }

    @media (max-width: 412px) {
        .flickity-slide {
            padding-inline: 0;
        }

        .sort {
            padding: 6px 14px;
        }

        #gallery-main img {
            pointer-events: none; /* جلوگیری از تعامل با تصاویر */
        }

        .swiper-gallery-hor .slider-wraper {
            display: flex;
            gap: 20px;
            width: 100%;
            overflow-x: scroll;
            scroll-snap-type: x mandatory;
        }


            .swiper-gallery-hor .slider-wraper .slide {
                scroll-snap-align: center;
                box-sizing: border-box;
                padding: 20px 10px;
                flex-shrink: 0;
                width: 100px;
                text-align: center;
            }






        .topnav-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Responsive columns */
            grid-template-rows: auto; /* Three rows */
            width: 100%;
            padding: 0;
        }

            .topnav-container .top-text {
                grid-column: 1; /* Span across all columns */
                grid-row: 1; /* Place in the first row */
                justify-self: start; /* Align to the start of the row */
                padding: 10px 0;
                margin-right: 6px;
            }

            .topnav-container .top-links {
                display: none;
            }



            .topnav-container .top-social {
                grid-column: 2; /* Span across all columns */
                grid-row: 1; /* Place in the second row */
                justify-self: start; /* Align to the end of the row */
                margin-left: 2px;
                padding: 0;
            }

                .topnav-container .top-social li {
                    margin: 0 5px !important;
                }
    }

    @media (max-width: 324px) {
        .flickity-slide {
            padding-inline: 0;
        }

        .add-button-container {
            padding: 1.25rem 0.1rem !important;
        }
    }

    @media (min-width: 768px) {

        .el46-title {
            display: flex;
            align-items: center;
            text-align: center;
            position: relative;
        }

            .el46-title::before,
            .el46-title::after {
                content: "";
                flex-grow: 1;
                height: 2px; /* ضخامت خط */
                background: linear-gradient(90deg, rgba(255,255,255,1) 0%, var(--rgba-primary-6) 47%, rgba(255,255,255,1) 100%); /* گرادینت */
                margin: 0 2rem; /* فاصله از دو طرف عنوان */
                border-radius: 2px; /* گوشه‌های نرم */
            }

        .offset-md-1 {
            margin-right: 8.33333%;
            margin-left: initial;
        }
    }


    @media (min-width: 1200px) {
        .offset-xl-3 {
            margin-right: 25%;
            margin-left: initial;
        }
    }
.container topnav-container {
    font-size: clamp(0.4rem,calc(3vw + 0.3rem),1.3rem);
}
    /*--------Mobile End------*/

/* shine effect moved to header-pill-group section above */

/* ========================================
   ELEMENT 32 MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 991px) {
    .el32-mobile-layout {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .el32-mobile-swiper {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
    }

    .el32-featured-card {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
    }

    .el32-mobile-tags {
        top: 10px;
        right: 10px;
    }

    .el32-mobile-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin: 10px 0;
    }

    .el32-dot {
        width: 8px;
        height: 8px;
        background: #ccc;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .el32-dot.active {
        background: var(--color-primary);
        width: 25px;
        border-radius: 4px;
    }

    .el32-mobile-thumbnails {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none;
    }

    .el32-mobile-thumbnails::-webkit-scrollbar {
        display: none;
    }

    .el32-mobile-thumb {
        flex: 0 0 80px;
        height: 80px;
        border-radius: 8px;
        border: 1px solid #ddd;
        padding: 4px;
        background: #fff;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .el32-mobile-thumb.active {
        border-color: var(--color-primary);
        border-width: 2px;
        box-shadow: 0 0 10px var(--rgba-primary-4);
    }

    .el32-mobile-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

    .el32-product-info {
        padding: 12px;
        text-align: right;
    }

    .el32-product-name {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .el32-price-final {
        font-size: 16px;
        font-weight: 800;
        color: var(--color-primary);
    }
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY SLIDER PAGINATION — Desktop Dots (نقاط صفحه‌بندی)
   ═══════════════════════════════════════════════════════════════ */

.category-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 10px;
}

.category-pagination-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.category-pagination-dot {
    width: 10px;
    height: 10px;
    background-color: #d0d0d0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-pagination-dot:hover {
    background-color: #999;
    transform: scale(1.15);
}

.category-pagination-dot.active {
    background-color: var(--color-primary);
    width: 28px;
    border-radius: 5px;
}

/* Hide pagination dots for mobile */
@media (max-width: 991px) {
    .category-pagination-wrapper {
        display: none;
    }
}


/* Storefront mobile dialogs share one bottom-sheet geometry, including AJAX forms. */
@media (max-width: 991.98px) {
    .modal {
        --bs-modal-width: 100%;
        --bs-modal-margin: 0;
        padding: 0 !important;
        overflow: hidden;
        z-index: 1085;
    }
    .modal-backdrop { z-index: 1084; }
    .modal .modal-dialog,
    .modal .modal-dialog.modal-dialog-centered {
        position: absolute !important;
        inset: auto 0 var(--storefront-keyboard-offset, 0px) !important;
        display: flex;
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: min(92dvh, calc(var(--storefront-sheet-height, 100dvh) - 12px)) !important;
        margin: 0 !important;
        pointer-events: auto;
    }
    .modal.fade .modal-dialog { transform: translateY(100%) !important; transition: transform .3s cubic-bezier(.22,.75,.2,1); }
    .modal.show .modal-dialog { transform: translateY(0) !important; }
    .modal .modal-dialog::before { display: none; }
    .modal .modal-dialog > form,
    .modal .modal-content > form {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 0;
        max-height: inherit;
        margin: 0;
        overflow: hidden;
    }
    .modal .modal-content {
        display: flex;
        flex-direction: column;
        min-height: 0;
        max-height: inherit !important;
        overflow: hidden;
        border: 1px solid var(--amin-color-border, #dedede) !important;
        border-bottom: 0 !important;
        border-radius: 24px 24px 0 0 !important;
        background: var(--amin-color-canvas, #fff);
        color: var(--amin-color-text, #222);
        box-shadow: 0 -10px 40px #0002;
    }
    .modal .modal-content::before {
        content: '';
        display: block;
        flex: 0 0 4px;
        align-self: center;
        width: 40px;
        margin: 10px auto 2px;
        border-radius: 4px;
        background: color-mix(in srgb, var(--amin-color-text, #222) 25%, transparent);
    }
    .modal .modal-header {
        flex: 0 0 auto;
        gap: 12px;
        padding: 12px 20px 16px;
        border-bottom: 1px solid var(--amin-color-border, #dedede);
    }
    .modal .modal-header .modal-title { min-width: 0; font-size: 16px !important; font-weight: 700; line-height: 1.8; overflow-wrap: anywhere; }
    .modal .modal-header :is(.btn-close, .close) { position: relative; flex: 0 0 44px; box-sizing: border-box; width: 44px; height: 44px; min-height: 44px; padding: 12px; margin: 0 auto 0 0; border-radius: 50%; }
    .modal .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        padding: 20px;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior-y: contain;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .modal .modal-body:last-child { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
    .modal .modal-footer {
        flex: 0 0 auto;
        gap: 10px;
        padding: 16px 20px max(16px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--amin-color-border, #dedede);
        background: var(--amin-color-canvas, #fff);
    }
    .modal .modal-footer > .btn { flex: 1 1 120px; min-height: 48px; margin: 0; border-radius: 12px; font-size: 14px; }
    .modal :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) { font-size: 16px; max-width: 100%; }
    .modal .otp-code-slots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .modal .otp-code-digit { min-width: 0; width: 100%; }
    .modal .variant-picker-dialog .btn-close::before,
    .modal .variant-picker-dialog .btn-close::after { left: 14px; top: 21px; }
    .offcanvas:not(#search-mob) {
        inset: auto 0 var(--storefront-keyboard-offset, 0px) !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        max-height: min(92dvh, calc(var(--storefront-sheet-height, 100dvh) - 12px)) !important;
        border-radius: 24px 24px 0 0 !important;
        transform: translateY(100%) !important;
        transition: transform .3s cubic-bezier(.22,.75,.2,1);
        overflow: hidden;
    }
    .offcanvas:not(#search-mob):is(.show, .showing):not(.hiding) { transform: translateY(0) !important; }
    :is(#modalShoppingCart, #wholesaleShoppingCart).offcanvas.offcanvas-end {
        bottom: var(--storefront-keyboard-offset, 0px) !important;
        max-height: min(92dvh, calc(var(--storefront-sheet-height, 100dvh) - 12px)) !important;
    }
    .offcanvas:not(#search-mob) .offcanvas-body { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
    .offcanvas:not(#search-mob) .offcanvas-footer { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
    body:has(.modal.show, .modal.showing, .offcanvas.show, .offcanvas.showing, .size-guide-sheet.is-open) :is(.mob-nav, .mobile-ios-search, #chat-widget-container) { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
    body:has(.modal.show) .size-guide-sheet { z-index: 10030; }
    body:has(.modal.show) .size-guide-sheet-backdrop { z-index: 10025; }
    .swal2-container { padding: 12px 0 0 !important; align-items: end !important; z-index: 10040; }
    .swal2-container .swal2-popup {
        width: 100% !important;
        max-width: 100%;
        max-height: min(92dvh, calc(var(--storefront-sheet-height, 100dvh) - 12px));
        margin: 0;
        border-radius: 24px 24px 0 0;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }
    .swal2-container .swal2-actions { flex-wrap: wrap; gap: 10px; padding-inline: 20px; }
    .swal2-container .swal2-actions button { min-height: 48px; border-radius: 12px; }
    .swal2-container .swal2-popup.swal2-show { animation: storefront-sheet-enter .3s cubic-bezier(.22,.75,.2,1); }
}
@keyframes storefront-sheet-enter { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog, .offcanvas:not(#search-mob) { transition: none !important; }
    .swal2-container .swal2-popup.swal2-show { animation: none !important; }
}

@media(max-width:991.98px) {
    .modal-header,.offcanvas-header,.cart-drag-handle,.storefront-select-header { touch-action:none; }
    .modal-content::before { pointer-events:none; }
    body .modal.show .modal-dialog.storefront-sheet-dragging,
    body .offcanvas.show.storefront-sheet-dragging,
    body #modalShoppingCart.offcanvas.storefront-sheet-dragging,
    body #wholesaleShoppingCart.offcanvas.storefront-sheet-dragging,
    .storefront-select-panel.storefront-sheet-dragging { transform:translateY(var(--storefront-drag-y,0px))!important;transition:none!important; }
    body.storefront-select-open { overflow:hidden; }
    .storefront-select-layer { position:fixed;inset:0;z-index:10035;direction:rtl; }
    .storefront-select-backdrop {position:absolute;inset:0;background:#0006;}
    .storefront-select-panel {position:absolute;inset:auto 0 var(--storefront-keyboard-offset,0px);display:flex;flex-direction:column;max-height:min(82dvh,calc(var(--storefront-sheet-height,100dvh) - 12px));border-radius:24px 24px 0 0;background:var(--amin-color-canvas,#fff);color:var(--amin-color-text,#222);box-shadow:0 -10px 40px #0002;overflow:hidden;animation:storefront-sheet-enter .25s ease-out;}
    .storefront-select-header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px;border-bottom:1px solid var(--amin-color-border,#ddd);font-size:16px;font-weight:700;flex-shrink:0;}
    .storefront-select-header::before {content:'';position:absolute;top:8px;left:calc(50% - 20px);width:40px;height:4px;border-radius:4px;background:#8885;}
    .storefront-select-header button {width:44px;height:44px;border:0;border-radius:50%;background:var(--amin-color-surface,#eee);color:inherit;font-size:26px;}
    .storefront-select-content {min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:max(16px,env(safe-area-inset-bottom));}
    .storefront-select-layer .selected-display,.storefront-select-layer .selected-tags-section {display:none!important;}
    .storefront-select-layer .dropdown-content {display:block!important;position:static!important;width:100%!important;max-height:none!important;margin:0!important;border:0!important;box-shadow:none!important;border-radius:0!important;}
    .storefront-select-layer .search-box {--select-search-padding:20px;position:sticky;top:0;z-index:1;background:var(--amin-color-canvas,#fff);padding:12px 20px;}
    .storefront-select-layer .search-box input {min-height:46px;font-size:16px;border-radius:12px;}
    .storefront-select-layer :is(.options-container,.ajax-results-container) {max-height:none!important;overflow:visible!important;}
    .storefront-select-layer :is(.option-item,.ajax-result-item) {min-height:48px;padding:12px 20px;line-height:1.8;}
    .storefront-select-layer button.option-item {display:block;width:100%;border:0;border-bottom:1px solid var(--amin-color-border,#ddd);background:transparent;color:inherit;text-align:start;}
    .storefront-select-layer button.option-item[aria-pressed="true"] {font-weight:700;background:var(--amin-color-surface,#eee);}
    .storefront-select-layer button.option-item:disabled {opacity:.45;}
    .storefront-select-layer [hidden] {display:none!important;}
    .storefront-select-panel {transition:transform .2s ease-out;}
    body:has(.storefront-select-layer) :is(.mob-nav,.mobile-ios-search,#chat-widget-container) {visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
}
@media(max-width:991.98px) and (prefers-reduced-motion:reduce) {.storefront-select-panel{animation:none;}}

/* Mobile select wheel: the center is sharp, adjacent rows recede in depth. */
@media(max-width:991.98px) {
 .storefront-select-layer {--select-wheel-height:clamp(168px,calc(var(--storefront-sheet-height,100dvh) - 220px),392px);}
 .storefront-select-content {overflow:hidden;position:relative;}
 .storefront-select-layer .search-box input {text-align:center;}
 .storefront-select-layer :is(.options-container,.ajax-results-container) {
  height:var(--select-wheel-height);overflow-y:auto!important;overflow-x:hidden!important;
  padding-block:calc((var(--select-wheel-height) - 56px)/2);padding-inline:16px;
  box-sizing:border-box;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none;
  perspective:600px;
  background:transparent;
  mask-image:linear-gradient(to bottom,transparent,black 10%,black 90%,transparent);
 }
 .storefront-select-layer :is(.options-container,.ajax-results-container)::-webkit-scrollbar {display:none;}
 .storefront-select-layer :is(.option-item,.ajax-result-item),
 .storefront-select-layer button.option-item {
  display:flex;align-items:center;justify-content:center;text-align:center!important;
  height:56px;min-height:56px;padding:8px 16px;border:0!important;border-radius:12px;
  scroll-snap-align:center;scroll-snap-stop:normal;font-size:16px;line-height:1.5;
  opacity:var(--wheel-opacity,1);transform:rotateX(var(--wheel-tilt,0deg)) scale(var(--wheel-scale,1));
  filter:blur(var(--wheel-blur,0px));
  transform-origin:center;backface-visibility:hidden;background:transparent;
  box-shadow:none!important;
 }
 .storefront-select-layer :is(.option-item,.ajax-result-item) :is(span,div) {text-align:center;}
 .storefront-select-layer :is(.option-item.selected,button.option-item[aria-pressed="true"]) {font-weight:800;color:var(--amin-link-foreground,inherit);background:transparent;}
 .storefront-select-layer [data-wheel-focus] {
  font-weight:800;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--amin-color-text,#222) 24%,transparent),0 3px 8px #0000000a!important;
  background:color-mix(in srgb,var(--amin-color-text,#222) 4%,var(--amin-color-canvas,#fff));
 }
 .storefront-select-layer :is(.option-item,.ajax-result-item):hover {background:transparent!important;}
}
@media(max-width:991.98px) and (prefers-reduced-motion:reduce){.storefront-select-layer [data-wheel-item]{transform:none;}}
