/* Redesigned Shop Styles - Legacy Compatible */

:root {
    --satva-gold: #a8741a;
    --satva-black: #222;
    --satva-border: #f0f0f0;
    --satva-bg-light: #fbfbfb;
    --toolbar-bg: #fffbf5;
    /* Light gold tint */
}

.breadcrumb-area {
    padding: 30px 0;
    background-color: #fcfcfc;
    border-bottom: 1px solid #eee;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--satva-black);
    display: block;
    margin-bottom: 5px;
}

.shop-page {
    padding: 40px 0 80px;
}


/* Toolbar Redesign - Matching Image with Project Colors */

.shop-toolbar {
    background: linear-gradient(90deg, #fff8ec .01%, #fffbf4 99.41%);
    border: 1px solid #ffeac7;
    display: flex;
    padding: 0 25px;
    align-items: center;
    height: 3vw;
    border-radius: 8px;
}

.shop-toolbar-redesign {
    background: var(--toolbar-bg);
}

.shop-toolbar .results-count #pro_count {
    color: #b58b44;
    font-weight: 600;
}

.all-jewellery-text {
    font-size: 16px;
    margin: 0;
    color: var(--satva-black);
    font-weight: 600;
}

.highlight-count {
    color: var(--satva-gold);
    font-weight: 800;
    font-size: 18px;
    margin: 0 4px;
}

.sort-by-wrapper {
    display: inline-flex;
    align-items: center;
}

.sort-label {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.nice-select.short-select {
    border: none !important;
    background: transparent !important;
    font-weight: 600 !important;
    color: var(--satva-black) !important;
    height: 30px !important;
    line-height: 30px !important;
}


/* Sidebar Styling - Matching Image with Project Colors */

.shop-sidebar-container {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    max-height: calc(100vh - 100px);
    box-shadow: 0 10px 30px #00000005;
}

.shop-sidebar-container .filter-title {
    height: 45px;
    background: linear-gradient(90deg, #fff8ec .01%, #fffbf4 99.41%);
    padding: 0 18px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.shop-sidebar-container .filter-title p {
    line-height: normal;
    font-weight: 600;
}

.shop-sidebar-container .search-filter {
    padding: 0 18px;
}


/* Custom Scrollbar for the sidebar */

.shop-sidebar-container::-webkit-scrollbar {
    width: 0;
}

.shop-sidebar-container::-webkit-scrollbar-track {
    background: transparent;
}

.shop-sidebar-container::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 0;
}

.shop-sidebar-container::-webkit-scrollbar-thumb:hover {
    background: var(--satva-gold);
}

.redesign-sidebar .sidebar-title {
    background: linear-gradient(90deg, #fffbf5 0%, #fff 100%);
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    border-left: 4px solid var(--satva-gold);
    margin-bottom: 20px;
}

.redesign-sidebar .sidebar-title h4 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--satva-black);
    margin: 0;
    display: flex;
    align-items: center;
}

.redesign-sidebar .sidebar-title h4::before {
    content: '\f0b0';
    font-family: 'FontAwesome';
    margin-right: 10px;
    color: var(--satva-gold);
}

.filter-section {
    margin-bottom: 35px;
}

.filter-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--satva-gold);
    /* Dark maroon matching the image */
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-family: inherit;
}

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

.filter-list li {
    margin-bottom: 15px !important;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    position: relative;
}

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

.filter-checkbox label {
    font-size: 13px !important;
    color: #444 !important;
    font-weight: 400 !important;
    cursor: pointer;
    margin-bottom: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
}


/* Custom Checkbox Square */

.filter-checkbox label::before {
    content: '' !important;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.2s ease;
}


/* Checkmark Icon */

.filter-checkbox label::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    margin-top: -1px;
}


/* Checked State */

.filter-checkbox input[type="checkbox"]:checked+label::before {
    background-color: var(--satva-gold);
    border-color: var(--satva-gold);
}

.filter-checkbox input[type="checkbox"]:checked+label::after {
    opacity: 1;
}

.show-more-btn {
    font-size: 12px;
    color: var(--satva-gold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    text-decoration: none !important;
    font-weight: 500;
}

.show-more-btn i {
    margin-left: 5px;
    font-size: 10px;
}

.row.filter_data {
    padding: 0;
}

@media (max-width: 991px) {
    .shop-sidebar-container {
        position: relative;
        margin-bottom: 40px;
    }
}

.searchFiltersg {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.searchFiltersg li.style1 {
    background: #f8f8f8;
    border: 1px solid #eee;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.searchFiltersg li.style1:hover {
    border-color: #a8741a;
    background: #fff;
}

.searchFiltersg li.style1 i.searchCancel {
    cursor: pointer;
    color: #999;
    font-size: 11px;
}

.searchFiltersg li.style1 i.searchCancel:hover {
    color: #ff4d4d;
}

.searchFiltersg li.style1 b {
    color: #a8741a;
    font-weight: 600;
    margin-right: 4px;
}

.searchFiltersg li.clear-all-item {
    background: transparent;
    border: none;
    padding: 0;
}

.searchFiltersg li.clear-all-item a {
    font-size: 13px;
    text-decoration: none !important;
    border-bottom: 1px dashed #a8741a;
    padding-bottom: 2px;
    color: #a8741a !important;
}

.searchFiltersg li.clear-all-item a:hover {
    color: #8a5d14 !important;
    border-bottom-style: solid;
}


/* Grid Loader */

.filter-data-container {
    position: relative;
    min-height: 200px;
}

.grid-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.grid-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #a8741a;
    border-radius: 50%;
    animation: grid-spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

@keyframes grid-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.filter_data.loading {
    filter: blur(1px);
    pointer-events: none;
    opacity: 0.6;
}


/* Sidebar Loader */

.sidebar-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(1px);
}

.sidebar-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #a8741a;
    border-radius: 50%;
    animation: grid-spin 1s linear infinite;
}

.shop-sidebar-container.loading {
    pointer-events: none;
}


/* Mobile Responsive Bottom Filter Bar */

.mobile-filter-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background: #fff;
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.1);
    z-index: 10000000 !important;
    pointer-events: auto;
    align-items: center;
    border-top: 1px solid #eee;
}

@media (max-width: 991px) {
    .mobile-filter-bar {
        display: flex;
    }
    .mobile-filter-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        font-size: 14px;
        font-weight: 700;
        color: var(--satva-black);
        text-decoration: none !important;
        gap: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .mobile-filter-btn:first-child {
        border-right: 1px solid #eee;
    }
    .mobile-filter-btn i {
        color: var(--satva-gold);
        font-size: 18px;
    }
    /* Off-canvas sidebar drawer */
    .shop-sidebar-container {
        position: fixed !important;
        top: 0 !important;
        left: -320px !important;
        width: 300px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 99999 !important;
        /* Above everything */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-radius: 0 !important;
        margin-bottom: 0 !important;
        overflow-y: auto !important;
        padding-bottom: 80px;
        background-color: #ffffff !important;
        /* Pure white */
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .shop-sidebar-container .redesign-sidebar {
        background: #fff !important;
        display: block !important;
        padding-top: 60px !important;
        /* Space for close button */
    }
    .shop-sidebar-container.open {
        left: 0 !important;
        box-shadow: 10px 0 50px rgba(0, 0, 0, 0.4) !important;
    }
    .sidebar-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.65) !important;
        z-index: 9998 !important;
        /* Just below sidebar */
        display: none;
        backdrop-filter: blur(4px);
    }
    .sidebar-overlay.show {
        display: block !important;
    }
    .mobile-sidebar-close {
        display: flex !important;
        position: absolute;
        right: 15px;
        top: 15px;
        width: 35px;
        height: 35px;
        background: #fff;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 2001;
        cursor: pointer;
        color: var(--satva-gold);
        font-size: 18px;
    }
    .mobile-only {
        display: block !important;
    }
    .desktop-only {
        display: none !important;
    }
}

.mobile-sidebar-close {
    display: none;
}

.mobile-only {
    display: none;
}


/* Sort By inside Sidebar for Mobile */

.mobile-sort-section {
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.mobile-sort-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-sort-list li {
    margin-bottom: 10px;
}

.mobile-sort-list a {
    display: block;
    padding: 10px 15px;
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 13px;
    color: #444;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.mobile-sort-list a.active {
    background: var(--satva-gold);
    color: #fff;
    border-color: var(--satva-gold);
}


/* Mobile Redesign Drawer Styles */

.mobile-filter-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100dvh;
    background-color: #fff !important;
    z-index: 10000001 !important;
    display: flex;
    flex-direction: column;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-filter-drawer.open {
    left: 0;
}

.mobile-filter-header {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.mobile-filter-header .back-btn {
    font-size: 18px;
    color: var(--satva-gold);
    margin-right: 20px;
    cursor: pointer;
}

.mobile-filter-header .header-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--satva-gold);
}

.mobile-filter-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.filter-categories-column {
    width: 35%;
    background: #fff8ec;
    /* Light beige from image */
    overflow-y: auto;
}

.filter-categories-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-cat-item {
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 500;
    color: #000;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-cat-item.active {
    background: #fff;
    color: var(--satva-gold);
    font-weight: 700;
    border-left: 4px solid var(--satva-gold);
}

.filter-values-column {
    width: 65%;
    background: #fff;
    overflow-y: auto;
    padding: 15px;
}

.mobile-filter-group {
    display: none;
}

.mobile-filter-group.active {
    display: block;
}

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

.m-filter-list li {
    margin-bottom: 20px;
}

.mobile-filter-footer {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    background: #fff;
    border-top: 1px solid #eee;
    gap: 15px;
}

.m-clear-all-btn {
    flex: 1;
    height: 48px;
    border: 1px solid #eee;
    background: #fff;
    color: #444;
    font-weight: 600;
    border-radius: 25px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.m-apply-btn {
    flex: 1;
    height: 48px;
    border: none;
    background: linear-gradient(90deg, #a8741a 0%, #d4af37 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 25px;
    font-size: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(168, 116, 26, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}


/* Sort Drawer Bottom Sheet */

.mobile-sort-drawer {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 10000001 !important;
    border-radius: 30px 30px 0 0;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}

.mobile-sort-drawer.open {
    bottom: 0;
}

.sort-header {
    padding: 15px 0;
    text-align: center;
    background: #fff8ec;
    border-radius: 30px 30px 0 0;
}

.sort-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--satva-gold);
}

.mobile-sort-options-list {
    list-style: none;
    padding: 10px 0 20px;
    margin: 0;
}

.mobile-sort-options-list li {
    padding: 10px 25px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
}

.mobile-sort-options-list li.active {
    color: var(--satva-gold);
    font-weight: 700;
    background: #fffbf5;
}

@media (max-width: 991px) {
    .redesign-sidebar {
        display: none !important;
        /* Hide desktop sidebar on mobile */
    }
}

@media only screen and (max-width:767px) {
    .shop-toolbar {
        display: none;
    }
    .filter-checkbox label {
        font-size: 12px !important;
    }
    .filter-checkbox label::before {
        width: 16px;
        height: 16px;
    }
    .filter-checkbox label::after {
        width: 4px;
        height: 8px;
    }
    .m-filter-list li {
        margin-bottom: 18px;
    }
    .row.filter_data {
        padding: 0 5px;
    }
    .row.filter_data .col-xl-3.col-lg-3.col-md-6.col-12.mb-60 {
        max-width: 50%;
        padding: 0 5px;
    }
    ul.pagination {
        margin-top: 15px;
    }
    .shop-page {
        padding: 20px 0 40px;
    }
}