/* ================================================================
   loose-diamond.css
   Scoped styles for LooseDiamonds.aspx only.
   All component selectors are prefixed  ld-  to prevent collisions
   with the RCJMaster masterpage stylesheets.
   ================================================================ */

/* ----------------------------------------------------------------
   1. BOX-SIZING  (scoped so it won't bleed into the masterpage)
   ---------------------------------------------------------------- */
.ld-shop-area *,
.ld-shop-area *::before,
.ld-shop-area *::after { box-sizing: border-box; }

/* ----------------------------------------------------------------
   2. PAGE CONTAINER
   ---------------------------------------------------------------- */
.ld-shop-area { padding: 20px 0; }

.ld-container {
    width: 100%;
    max-width: 1320px;
    padding-left: 5px;
    padding-right: 5px;
    margin-right: auto;
    margin-left: auto;
}

/* ----------------------------------------------------------------
   3. GRID  (flex-based, mirrors Bootstrap 4 columns)
   ---------------------------------------------------------------- */
.ld-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -8px;
    margin-left: -8px;
}

[class*="ld-col-"] {
    position: relative;
    width: 100%;
    padding-right: 8px;
    padding-left: 8px;
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0; /* prevent flex children from overflowing */
}

.ld-order-1    { order: 1; }
.ld-order-2    { order: 2; }

@media (min-width: 576px) {
    .ld-col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 768px) {
    .ld-col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
}

@media (min-width: 992px) {
    .ld-col-lg-3   { flex: 0 0 25%; max-width: 25%; }
    .ld-col-lg-9   { flex: 0 0 75%; max-width: 75%; }
    .ld-order-lg-1 { order: 1; }
    .ld-order-lg-2 { order: 2; }
}

/* ----------------------------------------------------------------
   4. SPACING UTILITIES  (scoped names)
   ---------------------------------------------------------------- */
.ld-mb-30  { margin-bottom: 30px; }
.ld-mbn-30 { margin-bottom: -30px; }
.ld-mb-4   { margin-bottom: 1.5rem; }
.ld-mb-12  { margin-bottom: 6px; }
.ld-pb-12  { padding-bottom: 6px; }
.ld-mt-2   { margin-top: 0.5rem; }

/* ----------------------------------------------------------------
   5. FLEX / DISPLAY UTILITIES
   ---------------------------------------------------------------- */
.ld-d-flex                  { display: flex !important; }
.ld-justify-content-center  { justify-content: center !important; }
.ld-justify-content-between { justify-content: space-between !important; }
.ld-justify-content-end     { justify-content: flex-end !important; }
.ld-align-items-center      { align-items: center !important; }
.ld-text-center             { text-align: center !important; }
.ld-font-weight-500         { font-weight: 500; }
.ld-cursor-pointer          { cursor: pointer; }
.ld-w-50                    { width: 50%; }

/* ----------------------------------------------------------------
   6. SECTION TITLE  (animated gradient headline)
   ---------------------------------------------------------------- */
.ld-section-title {
    text-align: center;
    margin-top: -7px;
    margin-bottom: 30px;
}

.ld-section-title .ld-title {
    text-transform: capitalize;
    background: linear-gradient(90deg, #dab84a, #000, #dab84a);
    background-repeat: no-repeat;
    background-size: 90%;
    animation: ld-shine 3s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media only screen and (max-width: 767.98px) {
    .ld-section-title .ld-title { font-size: 26px; }
}

.ld-section-title .ld-sub-title {
    font-size: 15px;
    padding-top: 6px;
    color: #555;
}

@keyframes ld-shine {
    0%   { background-position: -500%; }
    100% { background-position:  100%; }
}

/* ----------------------------------------------------------------
   7. SHAPE TABS  (product-tab-menu / product-icon)
   ---------------------------------------------------------------- */
.ld-product-tab-menu { margin-bottom: 35px; }

.ld-nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

li.ld-product-icon {
    text-align: center;
    flex-basis: min-content;
    margin-right: 32px;
}
li.ld-product-icon:last-child { margin-right: 0; }

@media only screen and (max-width: 479.98px) {
    li.ld-product-icon { margin-right: 15px; }
}

li.ld-product-icon img {
    display: block;
    margin: 0 auto;
    padding-bottom: 10px;
    max-width: 50px;
}

li.ld-product-icon a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #777;
    text-decoration: none;
}

li.ld-product-icon a:hover,
li.ld-product-icon a.ld-active-shape {
    color: #222;
    font-weight: 600;
    border-bottom: none;
}

/* ----------------------------------------------------------------
   8. SIDEBAR WRAPPER
   ---------------------------------------------------------------- */
.ld-sidebar-wrapper { overflow: hidden; }

@media only screen and (min-width: 768px) and (max-width: 991.98px) {
    .ld-sidebar-wrapper { margin-top: 80px; }
}
@media only screen and (max-width: 767.98px) {
    .ld-sidebar-wrapper { margin-top: 62px; }
}

.ld-sidebar-single {
    padding: 4px 0;
    border-bottom: 0px solid #f3f3f3;
    margin-bottom: 0;
}
.ld-sidebar-wrapper .ld-sidebar-single:last-child { border-bottom: none; }

.ld-sidebar-title {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    margin-top: 16px;
    padding-bottom: 6px;
    margin-bottom: 10px;
    text-transform: capitalize;
}
.ld-sidebar-title::before {
    content: " ";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #efefef;
}

.ld-filter-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
}

/* ----------------------------------------------------------------
   9. ORIGIN TOGGLE  (Lab Grown / Natural pill switch)
   ---------------------------------------------------------------- */
.ld-origin-container {
    border-radius: 26px;
    background: #f7f7f7;
    padding: 4px;
}

#originToggle [data-origin] {
    padding: 6px 6px;
    text-align: center;
    background: transparent;
    color: #555;
    border-radius: 18px;
    transition: all .15s ease;
    cursor: pointer;
    font-size: 12px;
}

#originToggle [data-origin] span { color: inherit !important; }

#originToggle [data-origin].ld-origin-active {
    background: #094981;
    color: #fff !important;
    border-radius: 18px;
}
#originToggle [data-origin].ld-origin-active span { color: #fff !important; }

/* ----------------------------------------------------------------
   10. DUAL RANGE SLIDER
   ---------------------------------------------------------------- */
.ld-range-slider {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0 6px;
    box-sizing: border-box;
    height: 22px;
}

.ld-range-slider .ld-range-track {
    position: absolute;
    left: 6px;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(to right,
        rgba(9,73,129,.28) 0%,
        rgba(9,73,129,.28) var(--l, 0%),
        rgba(9,73,129,.85) var(--l, 0%),
        rgba(9,73,129,.85) var(--r, 100%),
        rgba(9,73,129,.28) var(--r, 100%),
        rgba(9,73,129,.28) 100%
    );
}

.ld-range-slider input[type="range"] {
    position: absolute;
    inset: 0;
    margin: 0;
    width: 100%;
    pointer-events: none;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.ld-range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(9,73,129,.95);
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
    cursor: pointer;
}

.ld-range-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(9,73,129,.95);
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
    cursor: pointer;
}

.ld-range-slider input[type="range"]::-webkit-slider-runnable-track,
.ld-range-slider input[type="range"]::-moz-range-track {
    height: 8px;
    background: transparent;
}

/* ----------------------------------------------------------------
   11. SLIDER TEXT INPUTS
   ---------------------------------------------------------------- */
.ld-price-range-field {
    width: 48%;
    max-width: 48%;
    min-width: 0;
    text-align: center;
    height: 26px;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-size: 12px;
    padding: 2px 4px;
    box-sizing: border-box;
}

.ld-slider-textboxes { margin-top: 14px; }

.ld-filter-helper {
    font-size: 11px;
    color: #777;
    display: block;
    margin-top: 2px;
    white-space: nowrap;
}

/* ----------------------------------------------------------------
   12. SLIDER LABELS  (color / clarity grade labels)
   ---------------------------------------------------------------- */
.ld-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-top: 4px;
}

/* ----------------------------------------------------------------
   13. CUSTOM CHECKBOX  (hidden from UI but needed for JS state)
   ---------------------------------------------------------------- */
.ld-custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5rem;
}

.ld-custom-control-input {
    position: absolute;
    left: 0;
    z-index: -1;
    width: 1rem;
    height: 1.25rem;
    opacity: 0;
}

.ld-custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
    cursor: pointer;
    font-size: 14px;
}

.ld-custom-control-label::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    background-color: #fff;
    border: 1px solid #adb5bd;
    border-radius: 0.25rem;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.ld-custom-control-label::after {
    content: "";
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    background: no-repeat 50% / 50% 50%;
}

.ld-custom-control-input:checked ~ .ld-custom-control-label::before {
    background-color: #094981;
    border-color: #094981;
}

.ld-custom-control-input:checked ~ .ld-custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}

/* hide checkboxes from UI; kept in DOM so JS can read their state */
#chkWithImageOnly,
label[for*="chkWithImageOnly"],
#chkQuickShipping,
label[for*="chkQuickShipping"] { display: none !important; }

/* ----------------------------------------------------------------
   14. RESET LINK
   ---------------------------------------------------------------- */
.ld-reset-link {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
}

/* ----------------------------------------------------------------
   15. BUTTONS
   ---------------------------------------------------------------- */
.ld-btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out,
                background-color .15s ease-in-out,
                border-color .15s ease-in-out;
}

.ld-btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.ld-filter-btn {
    min-width: 90px;
    border-radius: 4px;
    font-size: 13px;
    padding: 6px 16px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #333;
    cursor: pointer;
}
.ld-filter-btn:hover {
    background: #094981;
    border-color: #094981;
    color: #fff;
}

.ld-load-more-btn {
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: #094981;
    border: 1px solid #094981;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
}
.ld-load-more-btn:hover,
.ld-load-more-btn:focus {
    background: #073d6b;
    border-color: #073d6b;
    color: #fff;
}

/* "Add to Cart" inherits load-more style with smaller size */
a.add-cart.ld-load-more-btn {
    font-size: 12px;
    padding: 5px 15px;
    margin-top: 10px;
    display: inline-block;
    text-decoration: none;
}

/* ----------------------------------------------------------------
   16. PRODUCT GRID
   ---------------------------------------------------------------- */
.ld-shop-product-wrap.ld-grid-view [class*="ld-col-"] {
    margin-bottom: 12px;
}

.ld-row.ld-mbn-30 {
    margin-bottom: -12px;
}

/* Card wrapper — everything lives inside this box */
.ld-product-item {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: box-shadow .25s ease, transform .25s ease;
}

.ld-product-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

/* Image area — no separate background needed, card provides it */
.ld-product-thumb {
    position: relative;
    text-align: center;
    height: 220px;
    padding: 0;
    overflow: hidden;
    display: block;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

/* center the anchor so the image sits in the middle of the box */
.ld-product-thumb > a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.ld-product-thumb img.ld-pri-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    transition: transform .35s ease-out;
    transform: scale(1);
}

.ld-product-item:hover .ld-product-thumb img.ld-pri-img {
    transform: scale(1.06);
}

/* round-cut: contain so the circular shape isn't cropped */
.ld-product-item-round .ld-product-thumb img.ld-pri-img {
    object-fit: contain;
    width: 90%;
    height: 90%;
}

/* Caption area sits flush below the image inside the same card */
.ld-product-caption {
    padding: 12px 14px 16px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ld-product-name {
    margin: 0;
    line-height: 1.3;
}

.ld-product-name a {
    color: #111 !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    line-height: 1.4;
}
.ld-product-name a:hover { color: #094981 !important; }

.ld-price-regular {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #094981;
}

/* ----------------------------------------------------------------
   17. RESULT COUNT  (kept hidden; visible via JS label only)
   ---------------------------------------------------------------- */
.ld-result-count { display: none !important; }
