﻿.gridContainer {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}


.diamond-collection {
    background: #fff;
    padding: 60px 0;
}


.lSAction > .lSPrev {
    background-position: 0 0;
    left: 10px !important;
}

.lightSlider.lsGrab > * img {
    width: 80% !important;
}

.noprice {
    display: inline-block;
    padding: 5px 10px;
    border: 0px;
    font-size: 1.5em;
    width: auto;
    float: left;
    border-radius: 5px;
    border: 2px solid #d33a59;
    color: #d33a59;
    margin: 5px 0;
}

.lSAction > .lSPrev {
    background-position: 0 0;
    left: 10px !important;
}

.lSAction > .lSNext {
    background-position: -32px 0 !important;
    right: 10px !important;
}

.lSAction > a {
    width: 32px;
    display: block;
    top: 50%;
    height: 32px;
    background-image: url('https://customstudiousa.com/css/controls.png');
    cursor: pointer;
    position: absolute;
    z-index: 1;
    margin-top: -16px;
    opacity: 0.5;
    -webkit-transition: opacity 0.35s linear 0s;
    transition: opacity 0.35s linear 0s;
}

.proddesc {
    font-size: 15px;
    text-align: left;
}

.tab-products > .tab-pane {
    padding: 20px 0;
}

.tab-products .panel-body {
    padding: 0;
}

.tab-products .panel-default {
    border: 0;
    padding: 0;
}

.tabprods > li > a {
    margin-right: 2px;
    line-height: 1.42857143;
    border: 1px solid transparent;
    border-radius: 0;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
}

/** List view **/

.list-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth scroll on mobile */
}

.list-header,
.list-row {
    display: grid;
    grid-template-columns: 40px /* checkbox */
    55px /* info */
    55px /* avai */
    90px /* item */
    80px /* img */
    45px /* shp */
    55px /* size */
    45px /* col */
    60px /* clarity */
    60px /* lab */
    1fr /* ✅ measurement (flex column) */
    55px /* dep */
    55px /* tbl */
    55px /* cut */
    55px /* pol */
    55px /* sym */
    55px /* flour */
    65px /* type */
    70px /* p/c */
    80px /* total */
    55px; /* media */

    min-width: 1200px; /* total width of all columns */
}

.list-header {
    background: #f5f5f5;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 2px solid #ccc;
}

.list-row {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}

.lr-cell {
    padding: 0 6px;
    white-space: nowrap;
    display: flex;
    justify-content: center; /* important for numbers */
    align-items: center;
}

.pl-0 {
    padding-left: 0 !important;
}

.lr-cell.img img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.lr-cell.lbgrwnprice {
    font-weight: bold;
}

.list-row:hover {
    background: #E6EFF9;
}

/* ===== FILTER SECTIONS ===== */
.filter-section {
    margin-bottom: 22px;
}

    .filter-section h6 {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 10px;
        color: #111;
    }

.btn-gel {
    height: 40px;
}
/* ===== BUTTON GROUPS ===== */
.shapes,
.colors,
.clarities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.chk-item {
    border: 1px solid #ddd;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    background: #fff;
}

    .chk-item img {
        width: 32px;
        display: block;
        margin: 0 auto 5px;
    }

    .chk-item input {
        display: none;
    }

    .chk-item:has(input:checked) {
        background: #E6EFF9;
        border-color: #3A5778;
    }

        .chk-item:has(input:checked) span {
            color: #3A5778;
            font-weight: 500;
        }
/* ===== FILTER BUTTONS ===== */
.filters-panel button.filter-toggle {
    padding: 6px 14px;
    font-size: 13px;
    border: 1px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .filters-panel button.filter-toggle:hover {
        border-color: #3A5778;
    }

    /* ACTIVE STATE */
    .filters-panel button.filter-toggle.active {
        background: #3A5778;
        color: #fff;
        border-color: #3A5778;
    }

    .filters-panel button.filter-toggle i {
        font-size: 11px;
    }

/* ===== INPUT FIELDS ===== */
.filters-panel input[type="text"] {
    width: 48%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #ccc;
    font-size: 13px;
}

.filter-section input + input {
    margin-left: 4%;
}

/* ===== CERT & LAB BUTTONS ===== */
.filter-section .cert,
.filter-section .labtype {
    margin-right: 8px;
    margin-bottom: 8px;
}

/* ===== RADIO BUTTONS ===== */
.filter-section label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    cursor: pointer;
}

.filter-section input[type="radio"] {
    accent-color: #3A5778;
    margin-right: 6px;
}

#selectedFilters {
    margin-bottom: 10px;
}

.filter-chip {
    display: inline-block;
    background: #f1f1f1;
    border-radius: 20px;
    padding: 5px 10px;
    margin: 3px;
    font-size: 12px;
}

    .filter-chip .remove-filter {
        margin-left: 8px;
        cursor: pointer;
        font-weight: bold;
    }

.search-trigger {
    padding: 6px 14px;
    font-size: 13px;
    border: 1px solid #f5f5f5;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sortBy {
    padding: 6px 6px;
    font-size: 13px;
    border: 1px solid #f5f5f5;
    height: 40px;
}

.gridContainer .no-data {
    grid-column: 1 / -1; /* span all 5 columns */
    text-align: center;
    font-size: 18px;
    color: #333;
    padding: 30px 0;
}

.no-data {
    text-align: center;
    font-size: 18px;
    color: #333;
    padding: 30px 0;
    width: 100%;
}


.view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    justify-content: end;
}

    .view-toggle a {
        padding: 6px;
        border: 1px solid #ccc;
        color: #333;
        text-decoration: none;
        cursor: pointer;
        height: 40px;
    }

        .view-toggle a.active {
            background: #3A5778;
            color: #fff;
            border-color: #3A5778;
        }

/* Optional helpers */
.grid-view-wrap {
    width: 100%;
}


/* Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    position: relative;
    border: 1px solid #eee;
    padding: 15px;
    background: #fff;
}

.product-item .card {
    border-radius: 0px;
}

.product-item .card-body p {
    margin-bottom: 0px;
    font-size: 14px;
}

.gridsku {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.product-img {
    background: #eaf2ff;
    padding: 30px;
    text-align: center;
}

    .product-img img {
        max-width: 100%;
        transition: transform .4s ease;
    }

.product-card:hover img {
    transform: rotateY(15deg) scale(1.05);
}

.product-info h4 {
    font-size: 15px;
    margin: 12px 0 5px;
}

.product-info .price {
    font-weight: 600;
    display: block;
}

.product-info p {
    font-size: 12px;
    color: #777;
}

.wishlist {
    position: absolute;
    right: 15px;
    bottom: 15px;
    cursor: pointer;
    font-size: 18px;
}

.diamond-card {
    border-radius: 10px;
}

.diamond-img {
    background: #eef5ff;
}

    .diamond-img img {
        height: 220px;
        object-fit: contain;
    }

.wishlist {
    cursor: pointer;
    color: #888;
}

    .wishlist:hover {
        color: #000;
    }

.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    gap: 6px;
}

    .pagination .page-link {
        border-radius: 60px;
        color: #3A5778;
    }

        .pagination .page-link:hover {
            color: #3A5778;
        }

.active > .page-link, .page-link.active {
    background: #3A5778;
    color: #fff;
    border-color: #3A5778;
}

.page-item:first-child .page-link, .page-item:last-child .page-link {
    border-radius: 60px !important;
}

.pagination li.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.filter-menu-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

/* Toggle Button */
.filter-toggle {
    height: 40px;
    padding: 0 16px;
    border: 1px solid #dcdcdc;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    line-height: 1;
}

/* Dropdown */
.filter-menu {
    position: relative;
}

.filter-dropdown {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 12px;
    z-index: 10;
}

.shape-filter-dropdown {
    min-width: 380px;
}

.filter-dropdown button.filter-toggle {
    display: block;
    width: 100%;
    padding: 6px 10px;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
}

    .filter-dropdown button.filter-toggle:hover {
        background: #f5f5f5;
    }

/* Inputs */
.filter-dropdown.inputs input {
    width: 100%;
    height: 36px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    padding: 0 8px;
}

/* Radio */
.filter-dropdown label {
    display: flex;
    font-size: 13px;
    margin-bottom: 6px;
}

.shape-filter-dropdown label {
    display: block;
}

.filter-dropdown input[type="checkbox"] {
    margin-right: 10px;
}

.filter-dropdown input[type="radio"] {
    accent-color: #3A5778;
    margin-right: 10px;
}

.list-img {
    max-width: 350px;
}


.dia-info {
    width: 100%;
}

    .dia-info h4 {
        margin-bottom: 15px;
    }

.dia-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 6px 0;
}

.dia-col-label {
    width: 20%;
    font-weight: 600;
    color: #555;
}

.dia-col-value {
    width: 30%;
    font-weight: 700;
}





/**  Search pop up**/

.search-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .search-popup.show {
        display: flex;
    }

.search-trigger i {
    cursor: pointer;
    font-size: 18px;
}

.search-box h4 {
    font-family: var(--nav-font);
}

.search-body {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 10px;
    margin: 10px 0;
}

.search-box {
    background: #fff;
    padding: 20px;
    width: 60%;
    border-radius: 8px;
    position: relative;
}

    .search-box input {
        width: 100%;
        padding: 6px;
    }

.close-search {
    position: absolute;
    top: 10px;
    right: 14px;
    cursor: pointer;
    font-size: 20px;
}

.search-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

    .search-actions a {
        width: 100%;
    }

.totaldiv {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}

.sidenavd {
    display: none;
    height: 100%;
    width: 400px;
    position: fixed;
    z-index: 999999999;
    top: 0;
    left: 0;
    background-color: #fafafa;
    overflow-x: hidden;
    /* transition: 0.5s; */
    padding-top: 35px;
    border-right: 5px solid #216498;
    padding-left: 10px;
    padding-right: 10px;
    overflow-x: scroll;
    font-size: 14px;
}

    .sidenavd h4 {
        margin-bottom: 0px;
    }

    .sidenavd p {
        margin: 0;
    }

    .sidenavd .closebtn {
        position: absolute;
        top: -10px;
        right: 10px;
        font-size: 40px;
        margin-left: 50px;
        cursor: pointer !important;
    }
/*  Prod Details page*/

.prod-bgblock {
    background: #f0f0f0;
    padding: 20px 20px 10px;
}

.cat-header {
    font-size: 17px;
    margin: 0 0 20px;
    font-weight: 600;
}

.prodsku {
    margin: 15px 0 5px;
    border-top: 1px solid #dbdbdb;
    padding: 10px 0 0;
    font-size: 16px;
    /* border-bottom: 1px solid #dbdbdb; */
}

.mopionheader {
    font-size: 13px;
    color: #838383;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.proddet-group {
    margin: 0;
}

    .proddet-group .panel-default {
        border: 0;
    }

        .proddet-group .panel-default > .panel-heading {
            color: #333;
            background-color: transparent;
            border: 0;
            border-bottom: 2px solid #f0f0f0;
            padding: 0;
        }

            .proddet-group .panel-default > .panel-heading .panel-title {
                margin-top: 0;
                margin-bottom: 0;
                cursor: pointer;
                user-select: none;
                padding: 8px 0;
                text-transform: uppercase;
                font-weight: 600;
                font-size: 0.875em;
                text-decoration: none;
                font-weight: 700;
            }

                .proddet-group .panel-default > .panel-heading .panel-title a {
                    color: #4f4f4f;
                }

    .proddet-group .panel-heading + .panel-collapse > .list-group, .proddet-group .panel-heading + .panel-collapse > .panel-body {
        border-top: 0;
        padding: 10px 0;
    }

    .proddet-group .panel-title > a::after {
        content: "\f078";
        font-family: 'FontAwesome';
        position: absolute;
        right: 25px;
    }

.shareoptions {
    padding-top: 20px;
}

.noborder {
    border: 0px;
    background: transparent;
}

.min-img {
    min-height: 270px;
}

.item_price {
    font-family: var(--nav-font);
}

.mobile-only {
    display: none;
}

.filter-error {
    background: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Mobile filter header */
.mobile-filter-header {
    /*  position: sticky;*/
    top: 0;
    z-index: 10;
    background: #fff;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
}

/* Cross button */
.filter-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.page-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.92);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-size: 14px;
}

    .page-loader.show {
        display: flex;
    }

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #ddd;
    border-top-color: #222;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Desktop hide */
@media (min-width: 992px) {
    .mobile-filter-header {
        display: none !important;
    }
}

/* ===== MOBILE ===== */
/* Large laptops */
@media (max-width: 1399.98px) {
    .gridContainer {
        grid-template-columns: repeat(4, 1fr);
    }

    .min-img {
        min-height: 256px;
    }
}

@media (max-width: 1199.98px) {
    .min-img {
        min-height: 212px;
    }
}
/* Tablets / small laptops */
@media (max-width: 1024px) {
    .gridContainer {
        grid-template-columns: repeat(3, 1fr);
    }

    .min-img {
        min-height: 288px;
    }
}

@media (max-width: 992px) {
    .search-box {
        padding: 10px;
        width: 90%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .min-img {
        min-height: 210px;
    }
}

@media (max-width: 990.98px) {
    .min-img {
        min-height: 266px;
    }
}

@media (max-width: 980.98px) {
    .min-img {
        min-height: 246px;
    }
}

@media (max-width: 768px) {
    .dia-row {
        flex-wrap: wrap;
    }

    .min-img {
        min-height: 308px;
    }

    .dia-col-label,
    .dia-col-value {
        width: 50%;
        margin-bottom: 5px;
    }

    .gridContainer {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .mobile-only {
        display: block;
    }

    .filter-menu-bar {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .filter-menu {
        width: 100%;
    }

    .filter-toggle {
        width: 100%;
        font-size: 14px;
        padding: 10px 8px;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }


    .offcanvas-filters {
        position: fixed;
        top: 0;
        left: -95%;
        width: 95%;
        height: 100vh;
        background: #fff;
        z-index: 2000;
        overflow-y: auto;
        transition: right 0.3s ease;
        padding: 15px;
    }

        .offcanvas-filters.active {
            left: 0;
        }

    body.filter-open {
        overflow: hidden;
    }

    .filters-panel button.filter-toggle {
        background: #f5f5f5;
    }
    /* Hide dropdown arrows */
    .filter-toggle i {
        display: none;
    }

    /* Stack filters vertically */
    .filter-menu-bar {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 50px;
    }

    /* Dropdowns always visible inside panel */
    .filter-dropdown {
        position: static;
        display: block !important;
        border: none;
        border-radius: 6px;
        padding: 0px 10px;
        margin-top: 6px;
    }

    .imob-grid, .filter-top-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .filter-actions {
        position: sticky;
        bottom: 50px;
        background: #fff;
        padding: 10px 0;
        border-top: 1px solid #eee;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        gap: 15px;
    }

    .search-trigger {
        gap: 10px;
        font-weight: 600;
    }

    .checkbox-grid, .color-grid, .mob-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .smob-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .dmob-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-dropdown.inputs {
        display: flex;
        gap: 10px;
    }

        .filter-dropdown.inputs input {
            width: 100%;
            padding: 10px;
            font-size: 14px;
        }
}

@media (max-width: 767.68px) {
    .totaldiv {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        font-size: 15px;
        margin-top: 10px;
    }
}

@media (max-width: 650.98px) {
    .min-img {
        min-height: 266px;
    }
}

@media (max-width: 576px) {
    .min-img {
        min-height: 230px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .search-body {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gridContainer {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

        .gridContainer .product-item .card-body {
            padding: 5px;
        }

        .gridContainer .product-item hr {
            margin: 5px 0;
        }
}

@media screen and (max-height: 450px) {
    .sidenavd {
        padding-top: 15px;
    }

        .sidenavd a {
            font-size: 18px;
        }

    .checkbox-grid, .mob-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .min-img {
        min-height: 175px;
    }

    .sidenavd {
        width: 300px;
    }
}

@media(max-width:400px) {
    .min-img {
        min-height: 152px;
    }

    .shape-filter-dropdown {
        min-width: 270px;
    }

        .shape-filter-dropdown .checkbox-grid {
            grid-template-columns: repeat(2, 1fr);
        }

    .checkbox-grid, .mob-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .color-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:320px) {
    .min-img {
        min-height: 120px;
    }

    .sidenavd {
        width: 300px;
    }
}
