﻿/* ═══════════════════════════════════════════════════════════════
   GLASS MORPHISM — Shopping Cart Offcanvas (#modalShoppingCart)
   iOS-style: semi-transparent, blurred, squircle cards + icons
   ═══════════════════════════════════════════════════════════════ */

/* ── Panel itself ── */
#modalShoppingCart.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;
}

#modalShoppingCart.offcanvas ~ .offcanvas-backdrop,
.offcanvas-backdrop {
    z-index: 10499 !important;
}

/* ── Header & Footer glass strips (legacy — kept for other offcanvas) ── */
#modalShoppingCart .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);
}

#modalShoppingCart .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 ── */
#modalShoppingCart .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;
}

#modalShoppingCart .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 ── */
#modalShoppingCart .list-group {
    background: transparent !important;
    padding: 4px 0;
}

/* ── Circular glass delete button ── */
#modalShoppingCart .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 */
#modalShoppingCart .bask-button .bask-btn-label {
    display: none;
}

#modalShoppingCart .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 ── */
#modalShoppingCart .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;
}

#modalShoppingCart .btn-close:hover {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9) !important;
    transform: scale(1.1);
}

/* ── Body scroll area ── */
#modalShoppingCart .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) {
    #modalShoppingCart.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;
    }

    #modalShoppingCart.offcanvas.showing,
    #modalShoppingCart.offcanvas.show:not(.hiding) {
        transform: translateY(0) !important;
    }

    #modalShoppingCart.offcanvas.hiding {
        transform: translateY(calc(100% + 24px)) !important;
    }

    #modalShoppingCart .list-group-item.draw-line {
        margin: 6px 8px !important;
        border-radius: 16px !important;
    }

    #modalShoppingCart .cart-drag-handle {
        display: flex;
    }

    #modalShoppingCart .bask-button {
        width: 32px;
        height: 32px;
        font-size: 0.75rem !important;
    }
}

#modalShoppingCart .cart-drag-handle {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 9px 0 3px;
    cursor: grab;
    flex-shrink: 0;
    touch-action: none;
}

#modalShoppingCart .cart-drag-handle span {
    display: block;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #222;
    opacity: 0.2;
}

@media (max-width: 991.98px) {
    #modalShoppingCart .cart-drag-handle {
        display: flex;
    }
}

/* ── Cart Glass Header ── */
#modalShoppingCart .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;
}

#modalShoppingCart .cart-header-title {
    font-size: 1rem;
    font-weight: 700;
}

/* Close button — دایره با ایکون × واقعی */
#modalShoppingCart .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;
}

#modalShoppingCart .cart-close-btn:hover {
    background: rgba(0, 0, 0, 0.18) !important;
    transform: scale(1.1);
    color: #111;
}

/* ── Empty cart state ── */
#modalShoppingCart .cart-empty-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
}

#modalShoppingCart .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;
}

#modalShoppingCart .cart-empty-icon {
    font-size: 2.35rem;
    line-height: 1;
    color: #52616b;
}

#modalShoppingCart .cart-empty-text {
    margin: 0;
    color: #4c5962;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    #modalShoppingCart .cart-empty-state {
        margin: 8px 12px 12px;
        min-height: 138px;
    }
}

/* ── Scrollable list area ── */
#modalShoppingCart .cart-items-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
}

#modalShoppingCart .cart-items-scroll::-webkit-scrollbar {
    width: 4px;
}
#modalShoppingCart .cart-items-scroll::-webkit-scrollbar-track {
    background: transparent;
}
#modalShoppingCart .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 ── */
#modalShoppingCart .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);
}

/* صف تکمیل خرید + مجموع کنار هم */
#modalShoppingCart .cart-checkout-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* دکمه تکمیل خرید — flex:1 سمت چپ */
#modalShoppingCart .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;
}

#modalShoppingCart .cart-checkout-btn:hover {
    background: #f0f0f0;
    transform: scale(1.02);
}

/* pill مجموع — سمت راست */
#modalShoppingCart .cart-total-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    min-width: 90px;
}

#modalShoppingCart .cart-total-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
}

#modalShoppingCart .cart-total-amount {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    direction: rtl;
}

/* ── Make offcanvas a column flex so scroll + sticky footer work ── */
#modalShoppingCart.offcanvas {
    display: flex !important;
    flex-direction: column !important;
}

/* ── Mobile: adjust checkout panel padding for safe area ── */
@media (max-width: 991.98px) {
    #modalShoppingCart .cart-checkout-panel {
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }
    #modalShoppingCart .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;
}

/* ─── 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;
    }
}

