/* ==========================================================================
   Sanmarg Prakashan - Shop Page & Sidebar Styling
   File: shop.css
   ========================================================================== */

:root {
    --shop-primary: #b42231;
    --shop-primary-hover: #961926;
    --shop-primary-soft: rgba(180, 34, 49, 0.08);
    --shop-text-dark: #1f1618;
    --shop-text-body: #473e3b;
    --shop-text-muted: #7d716a;
    --shop-border: #eee7e2;
    --shop-radius: 14px;
    --shop-card-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    --shop-card-hover: 0 12px 28px rgba(180, 34, 49, 0.1);
}

.shop-page-wrapper {
    padding: calc(40 * 100vw / 1705) 0;
}


/* --------------------------------------------------------------------------
   1. Modern Breadcrumb Header
   -------------------------------------------------------------------------- */

.shop-breadcrumb-hero {
    background: linear-gradient(180deg, #fffcf9 0%, #f7f0e8 100%);
    border-bottom: 1px solid rgba(180, 34, 49, 0.08);
    padding: calc(30 * 100vw / 1705) 0 calc(26 * 100vw / 1705);
    margin-bottom: calc(35 * 100vw / 1705);
}

.shop-hero-title {
    font-size: var(--fs-32);
    font-weight: 700;
    color: var(--shop-text-dark);
    margin-bottom: calc(6 * 100vw / 1705);
}

.shop-breadcrumb-trail {
    display: inline-flex;
    align-items: center;
    gap: calc(8 * 100vw / 1705);
    font-size: var(--fs-13-5);
    color: var(--shop-text-muted);
}

.shop-breadcrumb-trail a {
    color: var(--shop-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.shop-breadcrumb-trail a:hover {
    color: var(--shop-primary);
}

.shop-breadcrumb-trail .separator {
    font-size: var(--fs-11);
    opacity: 0.6;
}

.shop-breadcrumb-trail .current {
    color: var(--shop-primary);
    font-weight: 600;
}

.shop-row .sidebar-column {
    width: 20%;
}

.shop-row .product-column {
    width: 80%;
}


/* --------------------------------------------------------------------------
   2. Left Sidebar Filter Styling
   -------------------------------------------------------------------------- */

.shop-sidebar-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    top: clamp(70px, calc(90 * 100vw / 1705), 110px);
    background: #ffffff;
    border: 1px solid var(--shop-border);
    border-radius: calc(14 * 100vw / 1705);
    padding: calc(22 * 100vw / 1705) calc(20 * 100vw / 1705);
    box-shadow: var(--shop-card-shadow);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    transition: all 0.3s ease;
    z-index: 10;
}

.shop-sidebar-wrapper::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.shop-sidebar-header {
    padding-bottom: calc(14 * 100vw / 1705);
    margin-bottom: calc(20 * 100vw / 1705);
    border-bottom: 1px solid #eee7e2;
}

.shop-sidebar-title {
    font-size: var(--fs-15);
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--shop-primary);
    margin: 0;
    text-transform: uppercase;
}

.shop-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: calc(20 * 100vw / 1705);
    height: calc(20 * 100vw / 1705);
    padding: 0 calc(6 * 100vw / 1705);
    font-size: var(--fs-11);
    font-weight: 700;
    color: var(--shop-primary);
    background: var(--shop-primary-soft);
    border-radius: calc(4 * 100vw / 1705);
}

.shop-clear-all-btn {
    background: transparent;
    border: none;
    padding: 0;
    font-size: var(--fs-12);
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--shop-primary);
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.shop-clear-all-btn:hover {
    color: var(--shop-primary-hover);
    text-decoration: underline;
}


/* Filter Groups */

.shop-filter-group {
    padding-bottom: calc(10 * 100vw / 1705);
    margin-bottom: calc(16 * 100vw / 1705);
    border-bottom: 1px solid #f0e8e2;
}

.shop-filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.shop-group-heading {
    font-size: var(--fs-13-5);
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #1a1615;
    margin: 0 0 calc(14 * 100vw / 1705) 0;
}


/* Filter Lists */

.shop-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item {
    margin-bottom: calc(4 * 100vw / 1705);
}

.filter-item:last-child {
    margin-bottom: 0;
}


/* Custom Checkbox */

.custom-filter-checkbox {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    font-size: var(--fs-13-5);
    color: #4a403d;
    margin: 0;
    user-select: none;
    transition: color 0.2s ease;
}

.custom-filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.custom-filter-checkbox input.stock_filter[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.checkbox-indicator {
    width: calc(18 * 100vw / 1705);
    height: calc(18 * 100vw / 1705);
    border-radius: calc(4 * 100vw / 1705);
    background: #ece8e4;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: calc(12 * 100vw / 1705);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.custom-filter-checkbox:hover .checkbox-indicator {
    background: #e2dbd5;
}

.custom-filter-checkbox:hover .checkbox-label-text {
    color: #1a1615;
}

.custom-filter-checkbox input:checked~.checkbox-indicator {
    background: #b42231;
    border-color: #b42231;
}

.custom-filter-checkbox input:checked~.checkbox-indicator::after {
    content: '';
    width: calc(4.5 * 100vw / 1705);
    height: calc(9 * 100vw / 1705);
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    top: calc(2.5 * 100vw / 1705);
}

.checkbox-label-text {
    font-size: var(--fs-13-5);
    color: #4a403d;
    font-weight: 400;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.custom-filter-checkbox input:checked~.checkbox-label-text {
    color: #1a1615;
    font-weight: 600;
}

.checkbox-count {
    font-size: var(--fs-12-5);
    color: #8c7263;
    font-weight: 400;
    margin-left: calc(6 * 100vw / 1705);
    flex-shrink: 0;
}


/* Show More / Show Less Toggle Button */

.shop-show-more-toggle {
    background: transparent;
    border: none;
    padding: calc(6 * 100vw / 1705) 0 0;
    margin-top: calc(6 * 100vw / 1705);
    display: inline-flex;
    align-items: center;
    gap: calc(6 * 100vw / 1705);
    font-size: var(--fs-13);
    font-weight: 600;
    color: var(--shop-primary);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.shop-show-more-toggle:hover {
    color: var(--shop-primary-hover);
    text-decoration: underline;
}

.shop-show-more-toggle .toggle-icon {
    display: inline-flex;
    font-size: var(--fs-14);
    transition: transform 0.25s ease;
}

.shop-show-more-toggle[data-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}


/* Active Filter Chips */

.shop-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: calc(6 * 100vw / 1705);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: calc(5 * 100vw / 1705);
    background: var(--shop-primary-soft);
    color: var(--shop-primary);
    font-size: var(--fs-12);
    font-weight: 600;
    padding: calc(3 * 100vw / 1705) calc(9 * 100vw / 1705);
    border-radius: 999px;
    border: 1px solid rgba(180, 34, 49, 0.15);
}

.filter-chip .chip-remove {
    cursor: pointer;
    font-size: var(--fs-13);
    opacity: 0.75;
    transition: opacity 0.2s;
}

.filter-chip .chip-remove:hover {
    opacity: 1;
}


/* --------------------------------------------------------------------------
   3. Right Top Controls Bar (Type Filter Tabs & Sorting)
   -------------------------------------------------------------------------- */

.shop-top-controls {
    padding: calc(14 * 100vw / 1705) 0;
    margin-bottom: calc(24 * 100vw / 1705);
}

.shop-type-tabs {
    display: flex;
    align-items: center;
    gap: calc(8 * 100vw / 1705);
    flex-wrap: wrap;
}

.shop-type-btn {
    border: 1px solid #e7ded9;
    background: #faf7f4;
    color: var(--shop-text-dark);
    padding: calc(7 * 100vw / 1705) calc(18 * 100vw / 1705);
    border-radius: 999px;
    font-size: var(--fs-13-5);
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.shop-type-btn:hover {
    background: #f3eae3;
    border-color: #d6c6bc;
}

.shop-type-btn.active {
    background: var(--shop-primary);
    color: #ffffff;
    border-color: var(--shop-primary);
    box-shadow: 0 calc(4 * 100vw / 1705) calc(12 * 100vw / 1705) rgba(180, 34, 49, 0.24);
}


/* Nice-Select Styling Overrides */

.shop-sort-wrap {
    min-width: calc(220 * 100vw / 1705);
}

.shop-sort-wrap .nice-select {
    width: 100%;
    height: calc(40 * 100vw / 1705);
    line-height: calc(38 * 100vw / 1705);
    border-radius: calc(8 * 100vw / 1705);
    border-color: var(--shop-border);
    background: #faf7f4;
    font-size: var(--fs-13-5);
    font-weight: 500;
    color: var(--shop-text-dark);
    padding-left: calc(14 * 100vw / 1705);
}

.shop-sort-wrap .nice-select:hover {
    border-color: var(--shop-primary);
}

.shop-sort-wrap .nice-select.open {
    border-color: var(--shop-primary);
}

.shop-sort-wrap .nice-select .list {
    border-radius: calc(8 * 100vw / 1705);
    box-shadow: 0 calc(8 * 100vw / 1705) calc(24 * 100vw / 1705) rgba(0, 0, 0, 0.12);
    border: 1px solid var(--shop-border);
}

.shop-sort-wrap .nice-select .option.selected.focus {
    background: var(--shop-primary-soft);
    color: var(--shop-primary);
    font-weight: 600;
}


/* Mobile Filter Trigger Button */

.shop-mobile-filter-trigger {
    display: none;
    align-items: center;
    gap: calc(8 * 100vw / 1705);
    padding: calc(8 * 100vw / 1705) calc(16 * 100vw / 1705);
    background: var(--shop-primary);
    color: #ffffff;
    border: none;
    border-radius: calc(8 * 100vw / 1705);
    font-size: var(--fs-13-5);
    font-weight: 600;
    cursor: pointer;
}


/* --------------------------------------------------------------------------
   4. Products Grid Layout
   -------------------------------------------------------------------------- */

.shop-product-wrap {
    margin-left: calc(-8 * 100vw / 1705);
    margin-right: calc(-8 * 100vw / 1705);
}

.shop-product-wrap>[class*="col-"] {
    padding-left: calc(8 * 100vw / 1705);
    padding-right: calc(8 * 100vw / 1705);
    margin-bottom: calc(30 * 100vw / 1705);
}


/* --------------------------------------------------------------------------
   5. Skeleton Loading Placeholders
   -------------------------------------------------------------------------- */

@keyframes shopSkeletonShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shop-skeleton-item {
    margin-bottom: calc(30 * 100vw / 1705);
}

.product-skeleton-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: calc(16 * 100vw / 1705);
    overflow: hidden;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 calc(4 * 100vw / 1705) calc(16 * 100vw / 1705) -2px rgba(0, 0, 0, 0.06);
}

.skeleton-shimmer {
    background: linear-gradient( 90deg, #f1ede8 0%, #faf6f2 40%, #f1ede8 80%);
    background-size: 200% 100%;
    animation: shopSkeletonShimmer 1.5s infinite linear;
}

.product-skeleton-card .skeleton-image-box {
    width: 100%;
    height: calc(220 * 100vw / 1705);
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.product-skeleton-card .skeleton-content-box {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: calc(14 * 100vw / 1705) calc(16 * 100vw / 1705) calc(16 * 100vw / 1705);
    background: #ffffff;
}

.product-skeleton-card .skeleton-tag {
    width: calc(68 * 100vw / 1705);
    height: calc(20 * 100vw / 1705);
    border-radius: calc(6 * 100vw / 1705);
    margin-bottom: calc(8 * 100vw / 1705);
}

.product-skeleton-card .skeleton-title {
    width: 90%;
    height: calc(20 * 100vw / 1705);
    border-radius: calc(4 * 100vw / 1705);
    margin-bottom: calc(10 * 100vw / 1705);
}

.product-skeleton-card .skeleton-price-section {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: calc(10 * 100vw / 1705);
    padding-top: calc(8 * 100vw / 1705);
    border-top: 1px dashed rgba(226, 232, 240, 0.9);
}

.product-skeleton-card .skeleton-price-row {
    width: 50%;
    height: calc(24 * 100vw / 1705);
    border-radius: calc(4 * 100vw / 1705);
}

.product-skeleton-card .skeleton-btn {
    width: 100%;
    height: calc(42 * 100vw / 1705);
    border-radius: calc(10 * 100vw / 1705);
}


/* --------------------------------------------------------------------------
   6. Infinite Scroll Sentinel
   -------------------------------------------------------------------------- */

.shop-infinite-loader:not(.d-none) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px auto 24px;
    color: var(--shop-primary);
    font-size: var(--fs-13-5);
    font-weight: 600;
}

.shop-infinite-loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(180, 34, 49, 0.2);
    border-top-color: var(--shop-primary);
    border-radius: 50%;
    animation: shopInfiniteSpin 0.7s linear infinite;
}

@keyframes shopInfiniteSpin {
    to {
        transform: rotate(360deg);
    }
}

.shop-infinite-end {
    padding: calc(26 * 100vw / 1705) 0;
    text-align: center;
    color: var(--shop-text-muted);
    font-size: var(--fs-13-5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(8 * 100vw / 1705);
}

.shop-infinite-end::before,
.shop-infinite-end::after {
    content: '';
    height: 1px;
    background: var(--shop-border);
    flex: 0 0 calc(80 * 100vw / 1705);
}


/* ==========================================================================
   Desktop Responsive Breakpoints
   ========================================================================== */

@media only screen and (min-width: 2000px) and (max-width: 2200px) {
    .shop-row .sidebar-column {
        width: 18%;
    }
    .shop-row .product-column {
        width: 82%;
    }
}

@media only screen and (min-width: 1800px) and (max-width: 2000px) {
    .shop-row .sidebar-column {
        width: 19%;
    }
    .shop-row .product-column {
        width: 81%;
    }
}

@media only screen and (min-width: 1400px) and (max-width: 1600px) {
    .shop-row .sidebar-column {
        width: 21%;
    }
    .shop-row .product-column {
        width: 79%;
    }
}

@media only screen and (min-width: 1300px) and (max-width: 1399px) {
    .shop-row .sidebar-column {
        width: 22%;
    }
    .shop-row .product-column {
        width: 78%;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1299px) {
    .shop-row .sidebar-column {
        width: 23%;
    }
    .shop-row .product-column {
        width: 77%;
    }
}

@media only screen and (min-width: 1100px) and (max-width: 1199px) {
    .shop-row .sidebar-column {
        width: 24%;
    }
    .shop-row .product-column {
        width: 76%;
    }
}

@media only screen and (min-width: 1025px) and (max-width: 1099px) {
    .shop-row .sidebar-column {
        width: 25%;
    }
    .shop-row .product-column {
        width: 75%;
    }
}

@media only screen and (min-width: 993px) and (max-width: 1025px) {
    .shop-row .sidebar-column {
        width: 26%;
    }
    .shop-row .product-column {
        width: 74%;
    }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
    .shop-row .sidebar-column {
        width: 28%;
    }
    .shop-row .product-column {
        width: 72%;
    }
}


/* ==========================================================================
   DESKTOP DEFAULT RULES FOR SPLIT FILTER & MODAL COMPONENTS
   ========================================================================== */

.shop-filter-split-tabs {
    display: none !important;
}

.shop-filter-split-panels {
    display: block !important;
}

.shop-filter-split-panels .split-panel {
    display: block !important;
}

.shop-mobile-filter-header {
    display: none !important;
}

.shop-mobile-filter-footer {
    display: none !important;
}

.shop-floating-bar {
    display: none !important;
}

.shop-sort-sheet,
.shop-sort-sheet-backdrop,
.shop-type-filter-sheet,
.shop-type-sheet-backdrop {
    display: none !important;
}

@media (min-width: 992px) {
    .filter-item-extra.d-none-desktop {
        display: none !important;
    }
}


/* ==========================================================================
   Mobile Responsive Rules (Split Filter Drawer, Sort Bottom Sheet, Floating Bar)
   ========================================================================== */

@media (max-width: 991px) {
    /* Product type pills are available from the dedicated Browse sheet on mobile. */
    .shop-type-tabs {
        display: none !important;
    }

    /* Prevent body background scrolling when drawer/modal is open */
    body.shop-drawer-open {
        overflow: hidden !important;
        touch-action: none;
    }
    /* 1. Mobile Filter Trigger Button (Top Controls) */
    .shop-mobile-filter-trigger {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 14px;
        background: var(--shop-primary);
        color: #ffffff;
        border: none;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 650;
        cursor: pointer;
    }
    /* 2. Full-Screen Split Filter Drawer (Matching User Image 2) */
    .shop-sidebar-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        background: #ffffff;
        z-index: 10010;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none;
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex !important;
        flex-direction: column;
        overflow: hidden;
    }
    .shop-sidebar-wrapper.mobile-open {
        transform: translateX(0);
    }
    .shop-sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 10009;
    }
    /* Mobile Filter Top Bar */
    .shop-mobile-filter-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: max(12px, env(safe-area-inset-top)) 16px 12px;
        border-bottom: 1px solid #f1f5f9;
        background: #ffffff;
        flex-shrink: 0;
        z-index: 2;
    }
    .mobile-filter-back-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #334155;
        font-size: 18px;
        display: grid;
        place-items: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .mobile-filter-back-btn:active {
        background: #f1f5f9;
        transform: scale(0.95);
    }
    .mobile-filter-title {
        font-size: 15px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #0f172a;
    }
    .mobile-filter-reset-link {
        border: none;
        background: transparent;
        color: var(--shop-primary);
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        padding: 4px 8px;
    }
    .shop-sidebar-inner {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow: hidden;
    }
    /* 3. Split 2-Column Body (Left Tabs & Right Panels) */
    .shop-filter-split-container {
        display: flex !important;
        flex: 1;
        overflow: hidden;
        height: 100%;
    }
    /* Left Column: Filter Group Tabs */
    .shop-filter-split-tabs {
        display: flex !important;
        flex-direction: column;
        width: 38%;
        min-width: 125px;
        max-width: 155px;
        background: #faf7f2;
        border-right: 1px solid #f0e9df;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-shrink: 0;
        margin: 0;
        padding: 0;
    }
    .split-tab-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 12px;
        border: none;
        border-bottom: 1px solid rgba(240, 233, 223, 0.7);
        background: transparent;
        color: #475569;
        font-size: 12.5px;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
        transition: all 0.18s ease;
        line-height: 1.3;
    }
    .split-tab-btn:hover,
    .split-tab-btn:active {
        background: rgba(255, 255, 255, 0.6);
        color: var(--shop-primary);
    }
    .split-tab-btn.active {
        background: #ffffff;
        color: var(--shop-primary);
        font-weight: 750;
        border-left: 3.5px solid var(--shop-primary);
    }
    .tab-active-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--shop-primary);
        display: inline-block;
        flex-shrink: 0;
        margin-left: 6px;
    }
    .tab-active-dot:not(:empty) {
        width: auto;
        height: 16px;
        padding: 0 5px;
        border-radius: 999px;
        font-size: 9.5px;
        font-weight: 800;
        color: #ffffff;
        line-height: 16px;
        text-align: center;
    }
    /* Right Column: Active Group's Options */
    .shop-filter-split-panels {
        flex: 1;
        background: #ffffff;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 14px 24px;
    }
    .shop-filter-split-panels .split-panel {
        display: none !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border: none !important;
    }
    .shop-filter-split-panels .split-panel.active {
        display: block !important;
    }
    /* Hide redundant headings on mobile split panels */
    .shop-filter-split-panels .shop-group-heading {
        display: none;
    }
    .shop-filter-split-panels .shop-filter-list {
        padding: 0;
        margin: 0;
        list-style: none;
    }
    .shop-filter-split-panels .filter-item {
        padding: 8px 2px;
        border-bottom: 1px solid #f8fafc;
        margin: 0;
    }
    .shop-filter-split-panels .filter-item-extra.d-none-desktop {
        display: block !important;
    }
    .shop-filter-split-panels .custom-filter-checkbox {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        font-weight: 550;
        color: #1e293b;
        cursor: pointer;
        margin: 0;
    }
    .shop-filter-split-panels .checkbox-label-text {
        flex: 1;
        line-height: 1.35;
    }
    .shop-filter-split-panels .checkbox-count {
        font-size: 11.5px;
        font-weight: 600;
        color: #94a3b8;
    }
    /* 4. Sticky Bottom Action Bar (Clear All & Apply Filters) */
    .shop-mobile-filter-footer {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 12px 16px max(14px, env(safe-area-inset-bottom));
        border-top: 1px solid #f1f5f9;
        background: #ffffff;
        flex-shrink: 0;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
        z-index: 2;
    }
    .mobile-filter-clear-btn {
        flex: 1;
        padding: 11px 12px;
        border-radius: 999px;
        background: #fff8f0;
        border: 1px solid #fed7aa;
        color: #9a3412;
        font-size: 12.5px;
        font-weight: 750;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .mobile-filter-clear-btn:active {
        background: #ffedd5;
        transform: scale(0.98);
    }
    .mobile-filter-apply-btn {
        flex: 1.4;
        padding: 11px 16px;
        border-radius: 999px;
        background: linear-gradient(135deg, var(--shop-primary) 0%, var(--shop-primary-hover) 100%);
        color: #ffffff;
        border: none;
        font-size: 12.5px;
        font-weight: 750;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        box-shadow: 0 4px 14px rgba(180, 34, 49, 0.25);
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .mobile-filter-apply-btn:active {
        transform: scale(0.98);
    }
    /* 5. Mobile Sort Bottom Sheet (Matching User Image 1) */
    .shop-sort-sheet-backdrop {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 10015;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.28s ease, visibility 0.28s ease;
    }
    .shop-sort-sheet-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }
    .shop-type-sheet-backdrop {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 10015;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.28s ease, visibility 0.28s ease;
    }
    .shop-type-sheet-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }
    .shop-sort-sheet {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 50%;
        width: 100%;
        max-width: 520px;
        max-height: min(82vh, 620px);
        background: #ffffff;
        border: 1px solid rgba(180, 34, 49, 0.12);
        border-bottom: 0;
        border-radius: 26px 26px 0 0;
        z-index: 10016;
        transform: translate(-50%, 100%);
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
        overflow: hidden;
        box-shadow: 0 -18px 48px rgba(83, 21, 30, 0.24);
    }
    .shop-sort-sheet::before {
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        left: 0;
        height: 3px;
        background: linear-gradient(90deg, #951a28 0%, #c62d3d 58%, #e7b75d 100%);
        content: "";
    }
    .shop-sort-sheet.is-open {
        transform: translate(-50%, 0);
    }
    .shop-type-filter-sheet {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 50%;
        width: 100%;
        max-width: 520px;
        max-height: min(82vh, 620px);
        background: #ffffff;
        border: 1px solid rgba(180, 34, 49, 0.12);
        border-bottom: 0;
        border-radius: 26px 26px 0 0;
        z-index: 10016;
        transform: translate(-50%, 100%);
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
        overflow: hidden;
        box-shadow: 0 -18px 48px rgba(83, 21, 30, 0.24);
    }
    .shop-type-filter-sheet::before {
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        left: 0;
        height: 3px;
        background: linear-gradient(90deg, #951a28 0%, #c62d3d 58%, #e7b75d 100%);
        content: "";
    }
    .shop-type-filter-sheet.is-open {
        transform: translate(-50%, 0);
    }
    .shop-type-filter-sheet .sort-sheet-item,
    .shop-type-option {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 48px;
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid #f1eeeb;
        color: #4c4848;
        font-size: 14px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .shop-type-option:last-child {
        border-bottom: 0;
    }
    .shop-type-option.active {
        color: #8e1a28;
        font-weight: 700;
    }
    .shop-type-option:hover,
    .shop-type-option:active {
        background: #fffaf7;
        color: #8e1a28;
    }
    .shop-type-option.is-active .sort-sheet-text::before {
        border-color: #e9cba5;
        background: #f4e2ce;
    }
    .shop-type-option.is-active .sort-sheet-text::after {
        position: absolute;
        left: 4px;
        color: #a51e2d;
        content: "✓";
        font-size: 11px;
        font-weight: 800;
        line-height: 1;
    }
    .shop-sort-sheet-header {
        background: #ffffff;
        border-bottom: 1px solid #eee7e2;
        padding: 20px 22px 17px;
        text-align: left;
        flex-shrink: 0;
    }
    .sort-sheet-handle {
        display: none;
    }
    .sort-sheet-title {
        font-size: 14px;
        font-weight: 750;
        color: #34292a;
        margin: 0;
        letter-spacing: 0.035em;
        text-transform: uppercase;
    }
    .shop-sort-sheet-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 9px 22px max(20px, env(safe-area-inset-bottom, 0px));
        background: #ffffff;
    }
    .sort-sheet-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .sort-sheet-item {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 40px;
        margin: 0;
        padding: 7px 0;
        border: 0;
        border-radius: 0;
        border-bottom: 1px solid #f1eeeb;
        background: #ffffff;
        box-shadow: none;
        font-size: 14px;
        font-weight: 450;
        color: #4c4848;
        cursor: pointer;
        transition: color 0.16s ease, background-color 0.16s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .sort-sheet-item:last-child {
        border-bottom: 0;
    }
    .sort-sheet-item:hover,
    .sort-sheet-item:active {
        background: #fffaf7;
        color: #8e1a28;
    }
    .sort-sheet-item.is-active {
        background: #ffffff;
        color: #34292a;
        font-weight: 700;
    }
    .sort-sheet-text {
        position: relative;
        display: inline-flex;
        min-height: 24px;
        align-items: center;
        gap: 14px;
    }
    .sort-sheet-text::before {
        display: inline-block;
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        border: 1px solid #d5d1cf;
        border-radius: 5px;
        background: #ffffff;
        content: "";
    }
    .sort-sheet-item.is-active .sort-sheet-text::before {
        border-color: #e9cba5;
        background: #f4e2ce;
    }
    .sort-sheet-item.is-active .sort-sheet-text::after {
        position: absolute;
        left: 4px;
        color: #a51e2d;
        content: "✓";
        font-size: 11px;
        font-weight: 800;
        line-height: 1;
    }
    .sort-sheet-check {
        display: none;
    }
    /* 6. Fixed Floating Action Bar at Bottom */
    .shop-floating-bar {
        display: inline-flex !important;
        align-items: center;
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        z-index: 9980;
        width: 100%;
        max-width: 540px;
        justify-content: space-between;
        background: linear-gradient(135deg, #b42231 0%, #951a28 100%);
        color: #ffffff;
        border-radius: 18px 18px 0 0;
        padding: 5px 10px max(5px, env(safe-area-inset-bottom, 0px));
        border: 1px solid rgba(255, 255, 255, 0.28);
        box-shadow: 0 9px 25px rgba(124, 20, 34, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }
    .floating-bar-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        flex: 1 1 0;
        min-height: 38px;
        padding: 7px 12px;
        border: none;
        background: transparent;
        color: #ffffff;
        font-size: 13px;
        font-weight: 650;
        cursor: pointer;
        border-radius: 999px;
        transition: background-color 0.18s ease, transform 0.18s ease;
        white-space: nowrap;
    }
    .floating-bar-btn:hover,
    .floating-bar-btn:focus-visible {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        outline: none;
    }
    .floating-bar-btn:active {
        transform: scale(0.95);
    }
    .floating-bar-btn iconify-icon {
        font-size: 17px;
        color: #ffd17b;
    }
    .floating-bar-divider {
        width: 1px;
        height: 20px;
        flex: 0 0 1px;
        background: rgba(255, 224, 180, 0.38);
        margin: 0 3px;
    }
    .floating-filter-badge {
        background: #ffd17b;
        color: #751523;
        font-size: 10px;
        font-weight: 800;
        padding: 1px 6px;
        border-radius: 999px;
        line-height: 1.3;
    }
}

.shop-filter-empty-state {
    display: grid;
    justify-items: center;
    gap: 7px;
    margin: 18px 0 4px;
    padding: 20px 14px;
    border: 1px dashed rgba(184, 31, 52, 0.2);
    border-radius: 12px;
    background: #fffaf8;
    text-align: center;
}

.shop-filter-empty-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: rgba(184, 31, 52, 0.08);
    color: #b81f34;
    font-size: 20px;
}

.shop-filter-empty-title,
.shop-filter-empty-description {
    margin: 0;
}

.shop-filter-empty-title {
    color: #28232a;
    font-size: 13px;
    font-weight: 700;
}

.shop-filter-empty-description {
    max-width: 220px;
    color: #81777a;
    font-size: 12px;
    line-height: 1.55;
}

.shop-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 430px;
    margin: 10px auto 42px;
    padding: 24px 18px;
    text-align: center;
}

.shop-empty-state__art,
.shop-empty-state__content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.shop-empty-state__art {
    display: grid;
    place-items: center;
}

.shop-empty-state__art img {
    display: block;
    width: min(62vw, 440px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(112, 57, 25, 0.08));
}

.shop-empty-state__content {
    max-width: 520px;
}

.shop-empty-state__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: var(--shop-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.shop-empty-state__eyebrow::before {
    width: 22px;
    height: 1px;
    background: #c69b55;
    content: '';
}

.shop-empty-state__title,
.shop-empty-state__description {
    margin: 0;
}

.shop-empty-state__title {
    color: var(--shop-text-dark);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.shop-empty-state__description {
    max-width: 440px;
    margin: 10px auto 0;
    color: var(--shop-text-muted);
    font-size: 14px;
    line-height: 1.75;
}

.shop-empty-state__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 11px 17px;
    border: 1px solid rgba(180, 34, 49, 0.18);
    border-radius: 999px;
    background: var(--shop-primary);
    box-shadow: 0 8px 18px rgba(180, 34, 49, 0.17);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.shop-empty-state__link:hover {
    transform: translateY(-2px);
    background: var(--shop-primary-hover);
    box-shadow: 0 11px 22px rgba(180, 34, 49, 0.22);
    color: #fff;
}

.shop-empty-state__link iconify-icon {
    font-size: 17px;
}

@media (max-width: 767px) {
    .shop-page-wrapper {
        padding: 10px 0 40px;
    }
    .shop-breadcrumb-hero {
        padding: 14px 0 12px;
        margin-bottom: 12px;
    }
    .shop-hero-title {
        font-size: 20px;
        margin-bottom: 4px;
    }
    .shop-breadcrumb-trail {
        font-size: 11.5px;
    }
    .shop-top-controls {
        padding: 4px 0 10px;
        margin-bottom: 12px;
    }
    .shop-type-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 2px 2px 6px;
        gap: 6px;
        width: 100%;
        scrollbar-width: none;
    }
    .shop-type-tabs::-webkit-scrollbar {
        display: none;
    }
    .shop-type-btn {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 11.5px;
        padding: 5px 12px;
        border-radius: 999px;
        font-weight: 600;
        letter-spacing: 0.1px;
    }
    /* 2 Products in a row on mobile */
    .shop-product-wrap {
        margin-left: -4px;
        margin-right: -4px;
    }
    .shop-product-wrap>[class*="col-"] {
        padding-left: 4px;
        padding-right: 4px;
        margin-bottom: 10px;
    }
    .shop-product-wrap .single-product {
        border-radius: 12px !important;
        border: 1px solid #eee7e2 !important;
        background: #ffffff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        overflow: hidden !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }
    .shop-product-wrap .single-product__image {
        height: clamp(140px, 42vw, 175px) !important;
        padding: 10px 8px !important;
        background: #faf6f2 !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }
    .shop-product-wrap .single-product__image .image-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }
    .shop-product-wrap .single-product__image img {
        max-height: 100% !important;
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1)) !important;
    }
    .shop-product-wrap .single-product__floating-badges {
        top: 6px !important;
        left: 6px !important;
        gap: 3px !important;
    }
    .shop-product-wrap .single-product__floating-badges span {
        font-size: 8.5px !important;
        padding: 2px 5px !important;
        border-radius: 4px !important;
        line-height: 1.2 !important;
    }
    .shop-product-wrap .single-product__floating-icons {
        top: 6px !important;
        right: 6px !important;
    }
    .shop-product-wrap .single-product__floating-icons span a {
        width: 26px !important;
        height: 26px !important;
        line-height: 26px !important;
        background: rgba(255, 255, 255, 0.92) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    }
    .shop-product-wrap .single-product__floating-icons span a iconify-icon,
    .shop-product-wrap .single-product__floating-icons span a i {
        font-size: 13px !important;
    }
    .shop-product-wrap .single-product__content.product_content_custom_show {
        padding: 8px 8px 10px !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        justify-content: space-between !important;
    }
    .shop-product-wrap .single-product__content .languagename {
        font-size: 9.5px !important;
        color: #8c7e75 !important;
        font-weight: 600 !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
    }
    .shop-product-wrap .single-product__content .title,
    .shop-product-wrap .single-product__content .title a {
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        color: #1e1718 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        min-height: 31px !important;
        max-height: 31px !important;
        margin-bottom: 6px !important;
    }
    .shop-product-wrap .single-product__content .price {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        margin-top: auto !important;
    }
    .shop-product-wrap .single-product__content .price .main-price {
        font-size: 13.5px !important;
        font-weight: 700 !important;
        color: var(--shop-primary) !important;
        line-height: 1.2 !important;
    }
    .shop-product-wrap .single-product__content .price .main-price i.dis {
        font-size: 10.5px !important;
        color: #999 !important;
        text-decoration: line-through !important;
        margin-left: 3px !important;
        font-weight: 400 !important;
    }
    .shop-product-wrap .single-product__content .price button.addtocart {
        width: 100% !important;
        height: 28px !important;
        padding: 4px 6px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        background: var(--shop-primary) !important;
        color: #ffffff !important;
        border: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .shop-product-wrap .single-product__content .price button.addtocart iconify-icon {
        font-size: 12px !important;
        flex-shrink: 0 !important;
    }
    .shop-skeleton-item .skeleton-image-box {
        height: clamp(140px, 42vw, 175px) !important;
        border-radius: 12px 12px 0 0 !important;
    }
    .shop-empty-state {
        gap: 4px;
        min-height: 360px;
        margin: 6px auto 32px;
        padding: 12px 10px 22px;
    }
    .shop-empty-state__art img {
        width: min(82vw, 310px);
    }
    .shop-empty-state__description {
        margin-right: auto;
        margin-left: auto;
        font-size: 13px;
    }
    .shop-row .sidebar-column {
        display: contents !important;
    }
    .shop-row .product-column {
        width: 100%;
    }
}
