.cart-item-tooltip {
    position: fixed;
    z-index: 10000;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 10px;
    border-radius: 4px;
    pointer-events: none;
    font-size: 0.8rem;
    max-width: 350px;
    display: none;
}

.cart-item-tooltip table {
    width: 100%;
    margin: 0;
}

.cart-item-tooltip th,
.cart-item-tooltip td {
    padding: 4px 8px;
    border: 1px solid #dee2e6;
}

.cart-item-tooltip th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.dp-form-group {
    margin-bottom: 1rem;
}

.dp-form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dp-form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.dp-form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.modal {
    z-index: 99999999 !important;
}

.shape-btn.active span {
    color: #fff !important;
}

#cart-sidebar h5 {
    color: #ffffff !important;
}

#lab-container .filter-btn.active {
    background-color: #fff !important;
}

/* .vc_column-inner {
    padding: 0 !important;
}

.vc_custom_1652356517649 {
    margin: 0 !important;
} */

.title {
    display: block;
}

body,
#sticky_bar,
.bg-auto,
#interim-theme,
#content .inner {
    background-color: #ffffff;
}

:root {
    --primary: #1a1a1a;
    --accent: #c5a059;
    --accent-dark: #b08d4b;
    --secondary: #f4f4f5;
    --border: #e4e4e7;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
}

h1,
h2,
h3,
h4,
h5,
.serif {
    font-family: 'Playfair Display', serif;
}

h5 {
    margin-inline: auto;
}


#diamond-wrapper .bg-primary {
    background-color: var(--primary) !important;
}

#diamond-wrapper .text-primary {
    color: var(--primary) !important;
}

#diamond-wrapper .border-primary {
    border-color: var(--primary) !important;
}

#diamond-wrapper .bg-accent {
    background-color: var(--accent) !important;
}

#diamond-wrapper .text-accent {
    color: var(--accent) !important;
}

#diamond-wrapper .border-accent {
    border-color: var(--accent) !important;
}

#diamond-wrapper .hover-accent:hover {
    color: var(--accent) !important;
}

#diamond-wrapper .text-xxs {
    font-size: 0.65rem;
}

#diamond-wrapper .text-xs {
    font-size: 0.75rem;
}

#diamond-wrapper .text-sm {
    font-size: 0.875rem;
}

#diamond-wrapper .tracking-wider {
    letter-spacing: 0.05em;
}

#diamond-wrapper .cursor-pointer {
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

#diamond-wrapper .range-slider {
    position: relative;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#diamond-wrapper .range-selected {
    height: 100%;
    left: 0%;
    right: 0%;
    position: absolute;
    background: var(--primary);
}

#diamond-wrapper .range-input {
    position: relative;
}

#diamond-wrapper .range-input input {
    position: absolute;
    width: 100%;
    height: 5px;
    top: -6px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
}

#diamond-wrapper .range-input input::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary);
    pointer-events: auto;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#diamond-wrapper .custom-control-input:checked~.custom-control-label::before {
    border-color: var(--primary);
    background-color: var(--primary);
}

#diamond-wrapper .custom-control-label::before {
    background-color: #fff;
    border: 1px solid #dee2e6;
    top: 0 !important;
}

#diamond-wrapper .custom-control-input:focus~.custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
    border-color: var(--primary);
}

#diamond-wrapper .custom-control-label::after {
    top: 0 !important;
}

#diamond-wrapper .diamond-card {
    transition: all 0.2s ease-out;
    border: 1px solid #e9ecef;
}

#diamond-wrapper .diamond-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

#diamond-wrapper .shape-btn {
    border: 1px solid #dee2e6;
    background: white;
    transition: all 0.2s;
}

#diamond-wrapper .shape-btn:hover {
    border-color: #adb5bd;
}

#diamond-wrapper .shape-btn.active {
    color: white;
    border-color: var(--primary);
    background-color: var(--primary);
}

#diamond-wrapper #shape-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 100%;
}

#diamond-wrapper #shape-container .shape-btn {
    flex: 0 0 calc(25% - 0.5rem);
    max-width: calc(25% - 0.5rem);
}

#diamond-wrapper .shape-btn img {
    transition: opacity 0.2s, filter 0.2s;
    opacity: 0.7;
    filter: grayscale(1);
    width: 30px;
    height: 30px;
}

#diamond-wrapper .shape-btn.active img {
    opacity: 1;
    filter: grayscale(0) invert(1);
}

#diamond-wrapper .filter-btn {
    background: white;
    border: 1px solid #dee2e6;
    color: #6c757d;
}

#diamond-wrapper .filter-btn:hover {
    border-color: #adb5bd;
}

#diamond-wrapper .filter-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

#btn-natural.active,
#btn-lab.active {
    background-color: #343a40;
    color: #ffffff;
    border-color: #343a40;
}

#btn-natural.inactive,
#btn-lab.inactive {
    background-color: #ffffff;
    color: #6c757d;
    border-color: #6c757d;
}

#diamond-wrapper .adv-input {
    width: 100%;
    border: 1px solid #dee2e6;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 2px;
    text-align: center;
}

#diamond-wrapper .adv-input:focus {
    outline: none;
    border-color: var(--accent);
}

#search-input {
    width: 250px;
    padding-left: 40px !important;
}

#wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

aside#sidebar {
    width: 375px;
    background: white;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
    z-index: 100;
}

aside#sidebar.collapsed {
    margin-left: -375px;
}

#wrapper main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f8f9fa;
    position: relative;
}

.grid-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.side-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 375px;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    transform: translateX(110%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.side-panel.show {
    transform: translateX(0);
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal-content {
    border-radius: 0.5rem;
    border: none;
}

#compare-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid var(--accent);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 900;
}

#compare-bar.show {
    transform: translateY(0);
}

#toast {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: #343a40;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999999999;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

#toast.show {
    transform: translateX(-50%) translateY(0);
}

#loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 50;
    justify-content: center;
    align-items: center;
}

#sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

#sidebar-overlay.show {
    display: block;
}

.carat-section button {
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    background-color: #fff !important;
}

.carat-section button:hover {
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    background-color: #fff !important;
}

.carat-section button.active {
    color: #fff !important;
    border-color: #dee2e6 !important;
    background-color: #343a40 !important;
}

#compare-bar {
    display: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

.text-white {
    color: #ffffff !important;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center !important;
    position: relative;
    padding: 1rem;
}

.modal-title {
    width: 100%;
    text-align: center;
    margin: 0;
    line-height: 1.5;
    color: #ffffff !important;
}

.modal-header .close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    margin: 0;
    color: #ffffff !important;
    opacity: 0.8;
    text-shadow: none;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
}

.modal-header .close:hover {
    opacity: 1;
}

.side-panel .border-bottom {
    position: relative;
    justify-content: center !important;
}

.side-panel .border-bottom h5 {
    width: 100%;
    text-align: center;
    margin: 0;
}

.side-panel .border-bottom button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    background: transparent;
    border: 0;
}

@media (max-width: 992px) {
    aside#sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 320px;
        margin-left: -320px;
        z-index: 1000;
    }

    aside#sidebar.mobile-show {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    main header.d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }

    main header .d-flex.align-items-center {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 0.5rem;
    }

    #main-scroll {
        padding: 1rem !important;
    }

    .d-none.d-md-block.position-relative {
        display: block !important;
        width: 100%;
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }

    #search-input {
        width: 100% !important;
    }

    aside#sidebar {
        width: 100%;
        margin-left: -100%;
    }

    #detail-modal .row.no-gutters,
    #checkout-modal .row,
    #enquiry-checkout-modal .row {
        flex-direction: column;
    }

    #detail-modal .col-md-6,
    #checkout-modal .col-md-6,
    #enquiry-checkout-modal .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        border-right: none !important;
    }

    #checkout-modal .col-md-6.border-right,
    #enquiry-checkout-modal .col-md-6.border-right {
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    #detail-modal .bg-light {
        padding: 2rem !important;
    }

    #detail-modal .p-5 {
        padding: 1.5rem !important;
        max-height: none !important;
    }

    .diamond-card .card-body h5 {
        font-size: 1rem;
    }

    .diamond-card .card-body .h2 {
        font-size: 1.25rem;
    }

    .side-panel {
        width: 100%;
        max-width: none;
    }

    #compare-bar {
        flex-direction: column;
        gap: 10px;
        padding: 10px !important;
    }

    #compare-bar .d-flex {
        width: 100%;
        justify-content: center;
    }

    #compare-bar button {
        width: 100%;
        margin-bottom: 5px;
    }
}

.type-buttons .btn:hover {
    background-color: #23272b !important;
    color: #fff !important;
}

@media(max-width: 576px) {
    .topbar-device-mobile {
        z-index: 1 !important;
    }

    header {
        z-index: 0 !important;
    }
}

.text-xxs {
    font-size: 0.65rem;
    line-height: 0.95rem !important;
}