/* ==================================================================
   EXCLUSIVE DEALS — full-width, card-free page shell
   Design tokens are scoped to .exclusive-deal-section so nothing here
   leaks into the rest of the site.
   ================================================================== */

.exclusive-deal-section {
    --ed-natural: #007D79;
    --ed-natural-dark: #00605c;
    --ed-natural-tint: #e7f8f6;
    --ed-lab: #A47E43;
    --ed-lab-dark: #8a6938;
    --ed-lab-tint: #fdf4e4;
    --ed-ink: #111827;
    --ed-muted: #6b7280;
    --ed-faint: #9ca3af;
    --ed-border: #e7e9ee;
    --ed-surface: #ffffff;
    /* --ed-bg: #f6f7f9; */
    --ed-radius-lg: 18px !important;
    --ed-radius-md: 12px !important;
    --ed-radius-sm: 8px !important;
    --ed-shadow-xs: 0 1px 2px rgba(17, 24, 39, .05);
    --ed-shadow-sm: 0 6px 16px rgba(17, 24, 39, .06);
    --ed-shadow-md: 0 16px 32px rgba(17, 24, 39, .10);
    --ed-shadow-lg: 0 24px 48px rgba(17, 24, 39, .14);

    padding: clamp(28px, 5vw, 60px) 0;

    min-height: 80vh;
}

.exclusive-deal-section .container-fluid {
    padding-left: clamp(16px, 3vw, 40px);
    padding-right: clamp(16px, 3vw, 40px);
}

/* ---- PAGE HEADER (no boxed card — blends with the page) ---- */
#cart_container {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin-bottom: 28px !important;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--ed-border);
}

#cart_header {
    display: flex;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center !important;
    text-align: center;
    margin-top: 15px
}

#cart_title {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--ed-ink);
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 0;
}

#cart_title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ed-natural), var(--ed-lab));
}

/* ---- ORDER / QUOTATION TABS ---- */
.deal-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
}

.deal-tab {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--ed-border);
    background: var(--ed-surface);
    color: var(--ed-muted);
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 12px 30px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.deal-tab:hover {
    color: var(--ed-ink);
    border-color: #d7dae0;
}

.deal-tab.active {
    background: var(--ed-ink);
    border-color: var(--ed-ink);
    color: #fff;
    transform: translateY(-1px);
}

/* ---- EMPTY STATE ---- */
.no-deals {
    background: var(--ed-surface);
    border-radius: var(--ed-radius-lg);
    padding: 64px 40px;
    text-align: center;
    max-width: 560px;
    margin: 40px auto;
    border: 1px solid var(--ed-border);
    box-shadow: var(--ed-shadow-md);
    transition: transform .3s ease, box-shadow .3s ease;
}

.no-deals:hover {
    transform: translateY(-4px);
    box-shadow: var(--ed-shadow-lg);
}

.no-deals-icon {
    font-size: 56px;
    margin-bottom: 22px;
    color: var(--ed-natural);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--ed-natural-tint);
    animation: ed-pulse 2.2s infinite ease-in-out;
}

@keyframes ed-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.no-deals h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--ed-ink);
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}

.no-deals p {
    font-size: 14.5px;
    color: var(--ed-muted);
    line-height: 1.65;
    margin: 0;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================================================================
   GRID
   ================================================================== */

.deal-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
    margin-right: -10px !important;
    margin-left: -10px !important;
}

.deal-row > div.deal-col {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
    box-sizing: border-box !important;
    padding: 10px !important;
    display: flex;
}

@media (max-width: 1024px) {
    .deal-row > div.deal-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

@media (max-width: 767px) {
    .deal-row > div.deal-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .exclusive-deal-section .container-fluid {
        padding-left: 14px;
        padding-right: 14px;
    }

    .deal-row {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Guarantee the "Exclusive Deals" heading clears any fixed header
       and is legible on narrow viewports. */
    #cart_container {
        position: relative;
        z-index: 1;
        margin-top: 16px !important;
        padding-top: 4px;
    }

    #cart_title {
        position: relative;
        z-index: 1;
        font-size: 24px !important;
        line-height: 1.3;
        color: #111827 !important;
        opacity: 1 !important;
    }
}

/* ---- CARD BASE (product card — the intended, purposeful "card" in a
   listing grid; the page itself carries no outer boxed container) ---- */
.deal-card {
    position: relative;
    width: 100%;
    background: var(--ed-surface);
    border-radius: var(--ed-radius-lg) !important;
    padding: 24px;
    border: 1px solid var(--ed-border);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    box-shadow: var(--ed-shadow-sm);
    overflow: hidden;
}

/* Slim gradient accent bar along the top edge — echoes the card's
   accent color without the old flat border-top block. */
.deal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ed-border);
}

.card-natural::before {
    background: linear-gradient(90deg, var(--ed-natural), #00a89f);
}

.card-lab::before {
    background: linear-gradient(90deg, var(--ed-lab), #c9995a);
}

/* .deal-row and .deal-col are both flex containers, so with height:auto
   here each .deal-card naturally stretches to match the tallest card in
   its row (default align-items:stretch) instead of a hardcoded pixel
   value that has to be re-tuned by hand every time card content changes
   — which is exactly what left a large empty gap in shorter cards after
   the extra-specs block was moved into a modal. */

/* ---- FIXED-HEIGHT CARD LAYOUT ----
   Image and price/button block keep their natural size; the variable
   content in between (specs, descriptions, extra fields) is scoped to
   .deal-body, which absorbs all leftover height and scrolls internally
   so every card ends up the same height no matter how much content a
   given deal has. */
.deal-image-container {
    flex-shrink: 0;
}

.deal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--ed-border) transparent;
}

/* Quotation cards show far less content than "order" cards (no price,
   no extra specs), so stretching .deal-body to fill the fixed card
   height left a large empty gap above the "Get Quotation" button.
   Let quotation cards size to their content instead, on every device. */
.deal-col[data-order-type="quotation"] .deal-card {
    height: auto;
}

.deal-col[data-order-type="quotation"] .deal-body {
    flex: 0 1 auto;
    overflow: visible;
}

.deal-body::-webkit-scrollbar {
    width: 5px;
}

.deal-body::-webkit-scrollbar-thumb {
    background: var(--ed-border);
    border-radius: 4px;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ed-shadow-lg);
}

/* ---- BORDER COLORS BASED ON TYPE — thin teal/lab border all around,
   echoing a premium jewellery-brand card frame ---- */
.card-natural {
    border-color: rgba(0, 125, 121, .35) !important;
}

.card-natural:hover {
    border-color: var(--ed-natural) !important;
}

.card-lab {
    border-color: rgba(164, 126, 67, .35) !important;
}

.card-lab:hover {
    border-color: var(--ed-lab) !important;
}

/* ---- TYPE BADGE ---- */
.deal-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.deal-type-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.type-natural {
    background: var(--ed-natural-tint);
    color: var(--ed-natural);
}

.type-lab {
    background: var(--ed-lab-tint);
    color: var(--ed-lab);
}

.deal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

/* ---- STOCK ---- */
.stock-indicator {
    font-size: 11.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--ed-muted);
    white-space: nowrap;
}

.stock-indicator::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
    flex-shrink: 0;
}

.stock-out::before {
    background: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
}

/* ---- IMAGE ---- */
.deal-image-container {
    position: relative;
    height: 282px;
    border-radius: var(--ed-radius-md) !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #fbfcfd, #f4f6f7);
    border: 1px solid #f1f2f4;
}

/* Responsive image height per breakpoint — .deal-card itself stays
   height:auto (row-stretched) at every size, see the base rule above. */
@media (max-width: 1024px) {
    .deal-image-container {
        height: 240px;
    }
}

@media (max-width: 767px) {

    .deal-image-container {
        height: 220px;
    }
}

.deal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}

.deal-card:hover .deal-image {
    transform: scale(1.04);
}

.deal-image-badge {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ed-surface);
    border: 1px solid var(--ed-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ed-shadow-sm);
}

.deal-image-badge svg {
    width: 16px;
    height: 16px;
}

.card-natural .deal-image-badge {
    border-color: #a9ded9;
}

.card-lab .deal-image-badge {
    border-color: #e6d3b3;
}

.card-natural .deal-type-icon,
.card-natural .deal-image-badge svg,
.card-natural .spec-icon {
    color: var(--ed-natural);
}

.card-lab .deal-type-icon,
.card-lab .deal-image-badge svg,
.card-lab .spec-icon {
    color: var(--ed-lab);
}

.deal-description {
    color: var(--ed-muted);
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category */
.deal-location {
    font-size: 17px;
    font-weight: 700;
    color: var(--ed-ink);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- COLOR / CLARITY / CARAT HIGHLIGHT ---- */
.deal-highlight-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--ed-border);
    border: 1px solid var(--ed-border);
}

.deal-highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 6px;
    background: #fafbfc;
    text-align: center;
}

.card-natural .deal-highlight-item {
    background: var(--ed-natural-tint);
}

.card-lab .deal-highlight-item {
    background: var(--ed-lab-tint);
}

.deal-highlight-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--ed-muted);
}

.deal-highlight-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--ed-ink);
}

/* ---- INLINE DETAIL FIELDS (replaces the old "More Details" modal) ---- */
.deal-extra-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    margin-bottom: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--ed-border);
}

.extra-spec-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 6px 10px;
    background: #fafbfc;
    border: 1px solid #f1f2f4;
    border-radius: 10px;
    font-size: 12.5px;
    min-width: 0;
    width: 100%;
}

.extra-spec-label {
    flex-shrink: 0;
    color: var(--ed-faint);
    font-weight: 600;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.extra-spec-value {
    min-width: 0;
    width: 100%;
    color: var(--ed-ink);
    font-weight: 700;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

.deal-price {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.deal-buttons {
    margin-top: auto !important;
    display: flex;
    flex-direction: column !important;
    gap: 10px;
}

.btn-equal {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn-equal:not(.disabled):not(:disabled):hover {
    transform: translateY(-2px);
}

.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-equal:active {
    transform: translateY(0) scale(.98);
}

/* Specs */
.deal-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    color: var(--ed-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--ed-border);
}

.spec-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #fafbfc;
    border: 1px solid #f1f2f4;
    border-radius: var(--ed-radius-sm) !important;
    min-width: 0;
    transition: border-color .2s ease, background .2s ease;
}

.card-natural .spec-row:hover {
    border-color: rgba(0, 125, 121, .3);
    background: var(--ed-natural-tint);
}

.card-lab .spec-row:hover {
    border-color: rgba(164, 126, 67, .3);
    background: var(--ed-lab-tint);
}

.spec-row--split {
    grid-column: 1 / -1;
    justify-content: space-between;
}

.spec-row:only-child {
    grid-column: 1 / -1;
}

.spec-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    padding: 5px;
    box-sizing: content-box;
    border-radius: 50%;
    background: rgba(17, 24, 39, .04);
}

.card-natural .spec-icon {
    background: var(--ed-natural-tint);
}

.card-lab .spec-icon {
    background: var(--ed-lab-tint);
}

.spec-label-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spec-value {
    color: var(--ed-ink);
    font-weight: 600;
}

.spec-row:not(.spec-row--split) span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.deal-specs strong {
    color: var(--ed-faint);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ---- PRICE ---- */
.deal-price-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--ed-faint);
    margin-top: 14px;
    margin-bottom: 2px;
}

.deal-price-amount {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.deal-price-note {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ed-muted);
    letter-spacing: 0;
}

.price-natural {
    color: var(--ed-natural) !important;
}

.price-lab {
    color: var(--ed-lab) !important;
}

/* ---- ADD TO CART (legacy/utility class kept for compatibility) ---- */
.btn-add-cart {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    border-radius: var(--ed-radius-sm) !important;
    border: none;
    font-size: 15px;
    font-weight: 700;
    transition: .2s ease;
}

/* Natural Button */
.btn-natural {
    background: linear-gradient(135deg, var(--ed-natural), #00a89f);
    color: #fff;
    border: 1px solid var(--ed-natural);
    box-shadow: 0 4px 12px rgba(0, 125, 121, .26);
}

.btn-natural:hover {
    background: linear-gradient(135deg, var(--ed-natural-dark), var(--ed-natural));
    border-color: var(--ed-natural-dark);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 125, 121, .32);
}

/* Lab Button */
.btn-lab {
    background: linear-gradient(135deg, var(--ed-lab), #c9995a);
    color: #fff;
    border: 1px solid var(--ed-lab);
    box-shadow: 0 4px 12px rgba(164, 126, 67, .26);
}

.btn-lab:hover {
    background: linear-gradient(135deg, var(--ed-lab-dark), var(--ed-lab));
    border-color: var(--ed-lab-dark);
    color: #fff;
    box-shadow: 0 10px 22px rgba(164, 126, 67, .32);
}

.btn-equal:focus,
.btn-equal.focus,
.btn-equal:active,
.btn-equal.active,
.btn-equal:active:focus,
.btn-equal:active:hover {
    outline: none !important;
}

.btn-natural:focus,
.btn-natural.focus,
.btn-natural:active,
.btn-natural.active {
    background: var(--ed-natural-dark);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 125, 121, .28) !important;
}

.btn-lab:focus,
.btn-lab.focus,
.btn-lab:active,
.btn-lab.active {
    background: var(--ed-lab-dark);
    color: #fff;
    box-shadow: 0 8px 18px rgba(164, 126, 67, .28) !important;
}

.btn-equal.btn-default {
    background: var(--ed-surface);
    border: 1px solid #d7dae0;
    color: #374151;
    box-shadow: none;
}

.btn-equal.btn-default:hover {
    background: #f9fafb;
    border-color: #b8bcc4;
    color: var(--ed-ink);
}

.card-natural .btn-equal.btn-default {
    border-color: var(--ed-natural);
    color: var(--ed-natural);
}

.card-natural .btn-equal.btn-default:hover {
    background: var(--ed-natural-tint);
    border-color: var(--ed-natural);
    color: var(--ed-natural);
}

.card-lab .btn-equal.btn-default {
    border-color: var(--ed-lab);
    color: var(--ed-lab);
}

.card-lab .btn-equal.btn-default:hover {
    background: var(--ed-lab-tint);
    border-color: var(--ed-lab);
    color: var(--ed-lab);
}

.btn-equal.disabled,
.btn-equal:disabled {
    background: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    box-shadow: none !important;
}

/* ==================================================================
   QUOTATION / PRODUCT DETAIL MODALS
   ================================================================== */

/* The site header (.page-header.navbar-fixed-top) sits at z-index: 9995,
   well above Bootstrap's default modal (1050) / backdrop (1040) — on
   mobile/responsive views the topbar stayed visible and clickable above
   these modals instead of being covered by them. Push modal + backdrop
   above the header, same fix already applied for the tutorials modals. */
.modal-backdrop {
    z-index: 99990 !important;
}

.modal[id^="quotationdiamond"],
.modal[id^="quotationjewellery"],
.modal[id^="productdetailModel"] {
    z-index: 99999 !important;
    text-align: center !important;
    padding: 0 !important;
}

.modal[id^="quotationdiamond"]::before,
.modal[id^="quotationjewellery"]::before,
.modal[id^="productdetailModel"]::before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
    pointer-events: none !important;
}

.modal[id^="quotationdiamond"] .modal-dialog,
.modal[id^="quotationjewellery"] .modal-dialog,
.modal[id^="productdetailModel"] .modal-dialog {
    display: inline-block !important;
    text-align: left !important;
    vertical-align: middle !important;
    max-width: 560px !important;
    width: 92% !important;
    margin: 30px auto !important;
    float: none !important;
    position: relative !important;
    pointer-events: auto !important;
}

.qd-modal-content {
    border: none;
    border-radius: var(--ed-radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(17, 24, 39, .28);
}

.qd-modal-content::before {
    content: '';
    display: block;
    height: 4px;
    background: #9ca3af;
}

.qd-modal-content.card-natural::before {
    background: linear-gradient(90deg, var(--ed-natural, #007D79), #00a89f);
}

.qd-modal-content.card-lab::before {
    background: linear-gradient(90deg, var(--ed-lab, #A47E43), #c9995a);
}

.qd-modal-header {
    background: #ffffff;
    border-bottom: 1px solid #eef0f2;
    padding: 20px 26px;
    align-items: center;
}

.qd-modal-header .modal-title {
    color: #111827 !important;
    font-weight: 700 !important;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qd-title-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.qd-modal-content.card-natural .qd-title-icon {
    color: #007D79;
}

.qd-modal-content.card-lab .qd-title-icon {
    color: #A47E43;
}

.qd-modal-header .close {
    color: #9ca3af !important;
    opacity: 1 !important;
    font-size: 20px;
    text-shadow: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s ease;
    margin: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.qd-modal-header .close::before,
.qd-modal-header .close::after {
    display: none !important;
    content: none !important;
}

.qd-modal-header .close:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.qd-modal-body {
    background: #f9fafb;
    padding: 26px;
}

.qd-body-inner {
    background: #ffffff;
    border-radius: var(--ed-radius-md, 12px) !important;
    padding: 22px;
    border: 1px solid #eef0f2;
}

.qd-modal-body .form-group {
    margin-bottom: 18px;
}

.qd-modal-body .form-group label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #6b7280;
    margin-bottom: 7px;
}

.qd-modal-body .form-control {
    border: 1px solid #d7dae0;
    border-radius: var(--ed-radius-sm, 8px) !important;
    padding: 10px 14px;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.qd-modal-body .form-control:focus {
    outline: none;
    border-color: #007D79;
    box-shadow: 0 0 0 3px rgba(0, 125, 121, .15);
}

.qd-modal-content.card-lab .qd-modal-body .form-control:focus {
    border-color: #A47E43;
    box-shadow: 0 0 0 3px rgba(164, 126, 67, .15);
}

.qd-modal-body .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #007D79;
    border: 1px solid #007D79;
    border-radius: var(--ed-radius-sm, 8px) !important;
    padding: 12px 26px;
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .6px;
    box-shadow: 0 2px 8px rgba(0, 125, 121, .18);
    transition: .2s ease;
}

.qd-modal-body .btn-primary:hover {
    background: #005f5b;
    border-color: #005f5b;
    box-shadow: 0 8px 18px rgba(0, 125, 121, .25);
}

.qd-modal-content.card-lab .qd-modal-body .btn-primary {
    background: #A47E43;
    border-color: #A47E43;
    box-shadow: 0 2px 8px rgba(164, 126, 67, .18);
}

.qd-modal-content.card-lab .qd-modal-body .btn-primary:hover {
    background: #8a6938;
    border-color: #8a6938;
    box-shadow: 0 8px 18px rgba(164, 126, 67, .25);
}

.qd-modal-body table.table th {
    background: #f9fafb !important;
    color: #374151 !important;
    font-weight: 600;
    font-size: 12.5px;
    vertical-align: middle;
    border: 1px solid #e5e7eb !important;
}

.qd-modal-body table.table td {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 12.5px;
    vertical-align: middle;
    border: 1px solid #e5e7eb !important;
}

.qd-modal-footer {
    background: #ffffff;
    border-top: 1px solid #eef0f2;
    padding: 16px 26px;
}

.qd-close-btn,
.qd-close-btn:hover,
.qd-close-btn:focus,
.qd-close-btn:active {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #d7dae0 !important;
    color: #374151 !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    text-transform: uppercase !important;
    letter-spacing: .6px !important;
    border-radius: var(--ed-radius-sm, 8px) !important;
    padding: 10px 22px !important;
    transition: .15s ease !important;
    box-shadow: none !important;
    outline: none !important;
    position: relative !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.qd-close-btn::before,
.qd-close-btn::after,
.qd-close-btn *::before,
.qd-close-btn *::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
}

.qd-close-btn .btn-icon,
.btn-equal .btn-icon,
svg.btn-icon {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* ---- DETAILS MODAL/POPOVER (kept for compatibility) ---- */
.details-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    margin-bottom: 12px;
    transition: color 0.2s ease;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.details-toggle-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.details-toggle-btn:hover {
    color: #1f2937;
}

.deal-details-hidden {
    display: none;
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 3px solid #e5e7eb;
}

.deal-details-hidden.show {
    display: block;
}

.deal-details-hidden div {
    font-size: 13px;
    color: #4b5563;
    margin: 6px 0;
    line-height: 1.4;
}

/* ==================================================================
   RESPONSIVE BUTTON STACKING (kept from original)
   ================================================================== */
@media (max-width: 480px) {
    .deal-buttons {
        margin-top: auto;
        display: flex;
        gap: 10px;
        flex-direction: column;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .deal-buttons {
        margin-top: auto;
        display: flex;
        gap: 10px;
        flex-direction: column;
    }
}

@media (max-width: 1368px) {
    /* 1. Collapsed menu dropdowns layout inline/static */
    .page-header .navbar-nav .open .dropdown-menu {
        position: static !important;
        float: none !important;
        width: auto !important;
        margin-top: 0 !important;
        background-color: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: block !important; /* Force display since Bootstrap toggles .open class */
    }
    .page-header .navbar-nav .dropdown-menu {
        display: none !important;
    }
    .page-header .navbar-nav .open .dropdown-menu {
        display: block !important;
    }
    .page-header .navbar-nav .open .dropdown-menu > li > a {
        padding: 10px 15px 10px 30px !important;
        color: #ffffffff !important;
        background-color: transparent !important;
    }
    .page-header .navbar-nav .open .dropdown-menu > li > a:hover,
    .page-header .navbar-nav .open .dropdown-menu > li > a:focus {
        color: #fff !important;
        background-color: rgba(255, 255, 255, 0.05) !important;
    }
    .page-header .navbar-nav .open .dropdown-submenu .dropdown-menu {
        position: static !important;
        float: none !important;
        width: auto !important;
        margin-top: 0 !important;
        background-color: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: none !important;
    }
    .page-header .navbar-nav .open .dropdown-submenu.open > .dropdown-menu {
        display: block !important;
    }
    .page-header .navbar-nav .open .dropdown-submenu .dropdown-menu > li > a {
        padding: 5px 15px 5px 40px !important;
        color: #ffffffff !important;
    }
}


/* ==================================================================
   PAGE BANNER — teal, framed (sits directly under the site header)
   ================================================================== */
.exclusive-deal-section {
    padding-top: 0 !important;
}

.ed-banner {
    background: #077874;
    padding: 12px;
    margin: 0;
}

.ed-banner-frame {
    border: 1px solid rgba(255, 255, 255, .22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 52px clamp(20px, 8.3vw, 156px) 50px;
}

.ed-banner-text { min-width: 0; }

.ed-banner-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .92);
}
.ed-banner-dash {
    display: inline-block;
    width: 50px;
    height: 1px;
    background: rgba(255, 255, 255, .85);
    flex-shrink: 0;
}

.ed-banner-title {
    margin: 0;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 4.6vw, 84px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: .5px;
    color: #ffffff;
}

.ed-banner-lead {
    margin: 12px 0 0;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: clamp(18px, 1.7vw, 30px);
    line-height: 1.3;
    color: rgba(255, 255, 255, .95);
}

.ed-banner-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #1a1a1a !important;
    padding: 19px 46px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.ed-banner-btn svg { width: 16px; height: 16px; transition: transform .15s ease; }
.ed-banner-btn:hover { background: #f1efe9; color: #077874 !important; }
.ed-banner-btn:hover svg { transform: translateX(3px); }
.ed-banner-btn:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }

@media (max-width: 991px) {
    .ed-banner-frame {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 36px 28px;
    }
}

@media (max-width: 575px) {
    .ed-banner { padding: 8px; }
    .ed-banner-frame { padding: 28px 18px; }
    .ed-banner-eyebrow { font-size: 11px; letter-spacing: 1.8px; }
    .ed-banner-dash { width: 28px; }
    .ed-banner-btn { width: 100%; justify-content: center; padding: 15px 20px; font-size: 13px; }
}

/* ==================================================================
   CATEGORY FILTER BAR (under the banner)
   ================================================================== */

.ed-filterbar {
    background: #faf9f6;
    border-bottom: 1px solid #e5e2dc;
    margin-bottom: 8px;
}

.ed-filterbar .ed-filterbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: clamp(16px, 5.5vw, 84px);
    padding-right: clamp(16px, 5.5vw, 84px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    flex-wrap: wrap;
    min-height: 52px;
}

.ed-chips {
    display: flex;
    align-items: stretch;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
    align-self: stretch;
}
.ed-chips::-webkit-scrollbar { display: none; }

.ed-chip {
    position: relative;
    background: none;
    border: 0;
    padding: 16px 0 14px;
    font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #6b6b6b;
    white-space: nowrap;
    cursor: pointer;
    transition: color .15s ease;
}
.ed-chip sup {
    font-size: 10px;
    margin-left: 2px;
    top: -0.6em;
    color: inherit;
}
.ed-chip:hover { color: #1a1a1a; }
.ed-chip.active { color: #007D79; }
.ed-chip.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #007D79;
}
.ed-chip:focus-visible,
.ed-view-btn:focus-visible { outline: 2px solid #007D79; outline-offset: 2px; }

.ed-tools {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.ed-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    border-bottom: 1px solid #d6d2ca;
    padding: 4px 0;
    min-width: 190px;
    font-weight: 400;
}
.ed-search svg { width: 14px; height: 14px; color: #8a8a8a; flex-shrink: 0; }
.ed-search input {
    border: 0;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #1a1a1a;
    width: 100%;
    padding: 0;
    box-shadow: none;
}
.ed-search input::placeholder { color: #8a8a8a; }
.ed-search:focus-within { border-bottom-color: #007D79; }

.ed-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #8a8a8a;
}
.ed-sort select {
    border: 0;
    background: transparent;
    font-size: 14px;
    color: #1a1a1a;
    padding: 2px 4px;
    cursor: pointer;
    outline: none;
}

.ed-view { display: flex; gap: 12px; }
.ed-view-btn {
    background: none;
    border: 0;
    padding: 0 0 2px;
    font-size: 14px;
    color: #8a8a8a;
    cursor: pointer;
    border-bottom: 1px solid transparent;
}
.ed-view-btn.active { color: #007D79; border-bottom-color: #007D79; }

.ed-showing {
    margin: 22px 0 10px;
    padding-left: 10px;
    font-size: 13px;
    color: #8a8a8a;
}

/* ---- Save (heart) on each card ---- */
.deal-image-container { position: relative; }
.ed-save {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e5e2dc;
    background: rgba(255, 255, 255, .92);
    color: #8a8a8a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .15s ease, transform .15s ease;
}
.ed-save svg { width: 16px; height: 16px; }
.ed-save:hover { color: #007D79; transform: scale(1.05); }
.ed-save.is-saved { color: #007D79; }
.ed-save.is-saved svg { fill: currentColor; }

@media (max-width: 991px) {
    .ed-filterbar .ed-filterbar-inner { flex-direction: column; align-items: stretch; gap: 0; }
    .ed-tools { padding: 10px 0 14px; gap: 18px; justify-content: space-between; }
    .ed-search { flex: 1 1 200px; }
}

@media (max-width: 767px) {
    .ed-chips { gap: 18px; }
}

/* ==================================================================
   CARD BUTTONS — solid "Add to Cart / Add to Quote" + outlined
   "More Details", stacked full width (card borders untouched)
   ================================================================== */
.deal-card .deal-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100%;
}

.deal-card .deal-buttons .btn,
.deal-card .deal-buttons .btn-equal {
    width: 100% !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 11px 12px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    line-height: 1.3 !important;
    justify-content: center;
}

.deal-card .deal-buttons .btn .btn-icon { display: none !important; }

/* Primary: Add to Cart / Add to Quote */
.deal-card .deal-buttons .btn-natural,
.deal-card .deal-buttons .btn-lab,
.deal-card .deal-buttons .btn-equal:not(.btn-default) {
    background: #007D79 !important;
    border: 1px solid #007D79 !important;
    color: #ffffff !important;
}
.deal-card .deal-buttons .btn-natural:not(:disabled):hover,
.deal-card .deal-buttons .btn-lab:not(:disabled):hover,
.deal-card .deal-buttons .btn-equal:not(.btn-default):not(:disabled):hover {
    background: #00605c !important;
    border-color: #00605c !important;
}

/* Secondary: More Details */
.deal-card .deal-buttons .btn-default,
.card-natural .deal-buttons .btn-equal.btn-default,
.card-lab .deal-buttons .btn-equal.btn-default {
    background: transparent !important;
    border: 1px solid #007D79 !important;
    color: #007D79 !important;
}
.deal-card .deal-buttons .btn-default:hover,
.card-natural .deal-buttons .btn-equal.btn-default:hover,
.card-lab .deal-buttons .btn-equal.btn-default:hover {
    background: #eef6f5 !important;
    color: #00605c !important;
}

/* Out of stock */
.deal-card .deal-buttons .btn:disabled,
.deal-card .deal-buttons .btn.disabled {
    background: #d9d9d9 !important;
    border-color: #d9d9d9 !important;
    color: #6b6b6b !important;
    cursor: not-allowed;
}


/* ==================================================================
   LIST VIEW — one clean row per piece (grid cards are hidden)
   ================================================================== */
.ed-list-row { display: none; }

.deal-row.ed-list > div.deal-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    float: none;
    display: block !important;
    padding: 0 10px !important;
}
.deal-row.ed-list .ed-list-row { width: 100%; box-sizing: border-box; }
.deal-row.ed-list .deal-card { display: none !important; }

.deal-row.ed-list .ed-list-row {
    display: grid;
    grid-template-columns: 72px 120px minmax(140px, 1.1fr) minmax(170px, 1.5fr) 120px 170px auto;
    grid-template-areas: "thumb meta title specs avail price actions";
    align-items: center;
    column-gap: 24px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e2dc;
}

.ed-lr-thumb { grid-area: thumb; width: 72px; height: 72px; background: #f1efe9; overflow: hidden; }
.ed-lr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ed-lr-meta { grid-area: meta; display: flex; flex-direction: column; gap: 6px; }
.ed-lr-lot,
.ed-lr-stone {
    font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.ed-lr-lot { color: #8a8a8a; }
.ed-lr-stone { color: #007D79; }

.ed-lr-title {
    grid-area: title;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.25;
    color: #1a1a1a;
}

.ed-lr-specs { grid-area: specs; font-size: 13px; color: #3d3d3d; }

.ed-lr-avail {
    grid-area: avail;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 15px;
    color: #7a5c3a;
}

.ed-lr-price { grid-area: price; display: flex; flex-direction: column; gap: 2px; }
.ed-lr-price-amount { font-size: 16px; font-weight: 600; color: #007D79; }
.ed-lr-price-amount.ed-lr-price-muted { color: #3d3d3d; font-weight: 500; }
.ed-lr-price-note { font-size: 11px; color: #8a8a8a; }

.ed-lr-actions { grid-area: actions; display: flex; gap: 6px; justify-content: flex-end; }
.ed-lr-btn {
    min-width: 142px;
    padding: 10px 14px;
    border-radius: 0;
    font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}
.ed-lr-btn-primary { background: #007D79; border: 1px solid #007D79; color: #fff; }
.ed-lr-btn-primary:hover { background: #00605c; border-color: #00605c; }
.ed-lr-btn-primary:disabled { background: #d9d9d9; border-color: #d9d9d9; color: #6b6b6b; cursor: not-allowed; }
.ed-lr-btn-outline { background: transparent; border: 1px solid #007D79; color: #007D79; }
.ed-lr-btn-outline:hover { background: #eef6f5; }
.ed-lr-btn:focus-visible { outline: 2px solid #007D79; outline-offset: 2px; }

@media (max-width: 1299px) {
    .deal-row.ed-list .ed-list-row {
        grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr) auto;
        grid-template-areas:
            "thumb meta   avail  price"
            "thumb title  title  actions"
            "thumb specs  specs  actions";
        row-gap: 6px;
    }
}

@media (max-width: 767px) {
    .deal-row.ed-list .ed-list-row {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas:
            "thumb meta"
            "thumb title"
            "specs specs"
            "avail price"
            "actions actions";
        column-gap: 14px;
        row-gap: 8px;
    }
    .ed-lr-thumb { width: 64px; height: 64px; }
    .ed-lr-title { font-size: 18px; }
    .ed-lr-price { align-items: flex-end; text-align: right; }
    .ed-lr-actions { justify-content: stretch; }
    .ed-lr-btn { flex: 1 1 0; min-width: 0; }
}

/* ==================================================================
   GRID VIEW — 5 cards per row on large screens, responsive below
   (card borders / accent colours unchanged)
   ================================================================== */
.deal-row > div.deal-col {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    width: 20% !important;
    padding: 8px !important;
}

/* Tighter card spacing so five fit comfortably */
.deal-row:not(.ed-list) .deal-card { padding: 16px; }
.deal-row:not(.ed-list) .deal-image-container {
    height: auto !important;
    aspect-ratio: 1 / 1;
    padding: 12px;
    margin-bottom: 16px;
}
.deal-row:not(.ed-list) .deal-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.deal-row:not(.ed-list) .deal-header-row { margin-bottom: 12px; }
.deal-row:not(.ed-list) .deal-buttons .btn { font-size: 12px !important; letter-spacing: 1.2px !important; }

/* Buttons always sit at the bottom so every card in a row lines up */
.deal-row:not(.ed-list) .deal-card > .deal-price,
.deal-row:not(.ed-list) .deal-card > .deal-buttons { margin-top: auto; }

@media (max-width: 1399px) {
    .deal-row > div.deal-col {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
    }
}

@media (max-width: 1199px) {
    .deal-row > div.deal-col {
        flex: 0 0 33.3333% !important;
        max-width: 33.3333% !important;
        width: 33.3333% !important;
    }
}

@media (max-width: 991px) {
    .deal-row > div.deal-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

@media (max-width: 575px) {
    .deal-row > div.deal-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .deal-row:not(.ed-list) .deal-image-container { aspect-ratio: 4 / 3; }
}

/* List view keeps full-width rows at every size */
.deal-row.ed-list > div.deal-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 10px !important;
}

/* ==================================================================
   MORE DETAILS POPUP — image left, details right
   ================================================================== */
.ed-detail-modal .modal-dialog {
    width: 780px;
    max-width: calc(100% - 32px);
    margin: 60px auto;
}

.ed-detail-modal .ed-dm-content {
    border: 0;
    border-radius: 0 !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    background: #faf9f6;
    overflow: hidden;
}

.ed-dm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 428px;
}

.ed-dm-media {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ed-dm-media img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: contain;
    display: block;
}

.ed-dm-info {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 36px 30px 32px;
    font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.ed-dm-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: 0;
    padding: 2px 4px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6b6b6b;
    cursor: pointer;
}
.ed-dm-close:hover { color: #007D79; }

.ed-dm-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 10px;
}
.ed-dm-stone { color: #007D79; }

.ed-dm-title {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
    color: #1a1a1a;
}

.ed-dm-desc {
    margin: -6px 0 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.ed-dm-specs {
    margin: 0 0 22px;
    border-top: 1px solid #e5e2dc;
}
.ed-dm-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid #e5e2dc;
    font-size: 13px;
}
.ed-dm-row dt { font-weight: 400; color: #6b6b6b; }
.ed-dm-row dd { margin: 0; color: #1a1a1a; text-align: right; }

.ed-dm-price { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.ed-dm-price-amount { font-size: 20px; font-weight: 600; color: #007D79; }
.ed-dm-price-amount.ed-dm-price-muted { color: #3d3d3d; font-weight: 500; font-size: 17px; }
.ed-dm-price-note { font-size: 11px; color: #8a8a8a; }

.ed-dm-btn {
    margin-top: auto;
    width: 100%;
    padding: 13px 16px;
    background: #007D79;
    border: 1px solid #007D79;
    border-radius: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease;
}
.ed-dm-btn:hover { background: #00605c; border-color: #00605c; }
.ed-dm-btn:disabled { background: #d9d9d9; border-color: #d9d9d9; color: #6b6b6b; cursor: not-allowed; }
.ed-dm-btn:focus-visible,
.ed-dm-close:focus-visible { outline: 2px solid #007D79; outline-offset: 2px; }

@media (max-width: 767px) {
    .ed-detail-modal .modal-dialog { margin: 16px auto; }
    .ed-dm-grid { grid-template-columns: 1fr; min-height: 0; }
    .ed-dm-media { max-height: 300px; }
    .ed-dm-media img { max-height: 300px; }
    .ed-dm-info { padding: 32px 20px 22px; }
    .ed-dm-title { font-size: 26px; }
}

/* ==================================================================
   BANNER IMAGE (desktop/tablet) — text version shown on phones only
   ================================================================== */
.ed-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.ed-banner-image {
    position: relative;
    display: block;
    line-height: 0;
    background: #1c332e;
}
.ed-banner-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Invisible click area placed over the "Browse Fine Jewellery" button in the image */
.ed-banner-hotspot {
    position: absolute;
    left: 73.5%;
    top: 40.5%;
    width: 16.9%;
    height: 20.6%;
    display: block;
    outline-offset: 2px;
}
.ed-banner-hotspot:hover { background: rgba(255, 255, 255, .08); }
.ed-banner-hotspot:focus-visible { outline: 2px solid #ffffff; }

@media (min-width: 768px) {
    .ed-banner { padding: 0 !important; background: #1c332e; }
    .ed-banner-frame { display: none !important; }
}

@media (max-width: 767px) {
    .ed-banner-image { display: none; }
    /* Match the image's dark emerald tone on phones */
    .ed-banner { background: #1c332e; }
}

/* ==================================================================
   MORE DETAILS POPUP — fixed size for every product (780 × 428),
   solid background, image fills its half, long detail lists scroll
   ================================================================== */
.ed-detail-modal .modal-dialog {
    width: 780px !important;
    max-width: calc(100% - 32px) !important;
}

.ed-detail-modal .modal-content.ed-dm-content {
    background: #faf9f6 !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    color: #1a1a1a !important;
    padding: 0 !important;
}

.ed-detail-modal .ed-dm-grid {
    grid-template-columns: 390px minmax(0, 1fr) !important;
    height: 428px;
    min-height: 0 !important;
}

.ed-detail-modal .ed-dm-media {
    background: #ffffff !important;
    height: 428px;
    padding: 0 !important;
}
.ed-detail-modal .ed-dm-media img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
}

.ed-detail-modal .ed-dm-info {
    background: #faf9f6 !important;
    height: 428px;
    overflow: hidden;
    padding: 30px 30px 28px !important;
}

/* Details list scrolls inside the panel if a product has many fields */
.ed-detail-modal .ed-dm-specs {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-bottom: 18px !important;
    scrollbar-width: thin;
    scrollbar-color: #d6d2ca transparent;
    border-top: 1px solid #e5e2dc !important;
}
.ed-detail-modal .ed-dm-row {
    padding: 9px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #e5e2dc !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}
.ed-detail-modal .ed-dm-row dt { color: #6b6b6b !important; font-weight: 400 !important; margin: 0 !important; }
.ed-detail-modal .ed-dm-row dd { color: #1a1a1a !important; margin: 0 !important; }

.ed-detail-modal .ed-dm-title {
    font-size: 28px !important;
    color: #1a1a1a !important;
    margin-bottom: 16px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}
.ed-detail-modal .ed-dm-meta { color: #8a8a8a !important; flex-shrink: 0; }
.ed-detail-modal .ed-dm-stone { color: #007D79 !important; }
.ed-detail-modal .ed-dm-close { color: #6b6b6b !important; }
.ed-detail-modal .ed-dm-desc {
    color: #555 !important;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ed-detail-modal .ed-dm-price { flex-shrink: 0; margin-bottom: 16px !important; }
.ed-detail-modal .ed-dm-price-amount { color: #007D79 !important; }
.ed-detail-modal .ed-dm-price-amount.ed-dm-price-muted { color: #3d3d3d !important; }
.ed-detail-modal .ed-dm-price-note { color: #8a8a8a !important; }
.ed-detail-modal .ed-dm-btn { flex-shrink: 0; margin-top: auto !important; }

@media (max-width: 767px) {
    .ed-detail-modal .ed-dm-grid {
        grid-template-columns: 1fr !important;
        height: auto;
    }
    .ed-detail-modal .ed-dm-media { height: 260px; max-height: none !important; }
    .ed-detail-modal .ed-dm-info { height: auto; max-height: calc(100vh - 320px); overflow-y: auto; }
}

/* ==================================================================
   MORE DETAILS POPUP — force full width (site-wide .modal-dialog
   rules were squeezing it) and give the details column room
   ================================================================== */
@media (min-width: 820px) {
    body .modal.ed-detail-modal .modal-dialog,
    body .modal.ed-detail-modal .modal-dialog.modal-dialog {
        width: 820px !important;
        max-width: 820px !important;
        min-width: 820px !important;
        margin: 60px auto !important;
    }
    body .modal.ed-detail-modal .ed-dm-grid {
        grid-template-columns: 400px 420px !important;
        width: 820px;
    }
}

@media (min-width: 576px) and (max-width: 819px) {
    body .modal.ed-detail-modal .modal-dialog {
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
        margin: 30px auto !important;
    }
    body .modal.ed-detail-modal .ed-dm-grid {
        grid-template-columns: 45% 55% !important;
    }
}

body .modal.ed-detail-modal .modal-content { width: 100% !important; }
body .modal.ed-detail-modal .ed-dm-info { min-width: 0; }

/* Lot / stone on one line, title on max two lines */
body .modal.ed-detail-modal .ed-dm-meta { white-space: nowrap; }
body .modal.ed-detail-modal .ed-dm-title { word-break: normal; overflow-wrap: normal; }

/* Detail rows: label left, value right on one line where possible */
body .modal.ed-detail-modal .ed-dm-row { align-items: baseline; }
body .modal.ed-detail-modal .ed-dm-row dt { flex: 0 0 auto; white-space: nowrap; }
body .modal.ed-detail-modal .ed-dm-row dd { flex: 1 1 auto; min-width: 0; }

/* Action button: single line */
body .modal.ed-detail-modal .ed-dm-btn { white-space: nowrap; line-height: 1.3 !important; padding: 13px 16px !important; }

/* ==================================================================
   MORE DETAILS POPUP — no scrollbar: show every detail row in full,
   popup grows only when a product has more rows (min height kept)
   ================================================================== */
body .modal.ed-detail-modal .ed-dm-specs {
    overflow: visible !important;
    max-height: none !important;
    flex: 0 0 auto !important;
}
body .modal.ed-detail-modal .ed-dm-info {
    height: auto !important;
    min-height: 428px;
    max-height: none !important;
    overflow: visible !important;
}
body .modal.ed-detail-modal .ed-dm-grid {
    height: auto !important;
    min-height: 428px;
    align-items: stretch;
}
body .modal.ed-detail-modal .ed-dm-media {
    height: auto !important;
    min-height: 428px;
    position: relative;
}
body .modal.ed-detail-modal .ed-dm-media img {
    position: absolute;
    inset: 0;
}

@media (max-width: 767px) {
    body .modal.ed-detail-modal .ed-dm-info { min-height: 0; }
    body .modal.ed-detail-modal .ed-dm-grid { min-height: 0; }
    body .modal.ed-detail-modal .ed-dm-media { min-height: 260px; }
}

/* ==================================================================
   MORE DETAILS POPUP — show the whole image (no cropping); spare
   space is filled with a soft blurred copy of the same picture
   ================================================================== */
body .modal.ed-detail-modal .ed-dm-media {
    overflow: hidden;
    background: #f1efe9 !important;
}
body .modal.ed-detail-modal .ed-dm-media::before {
    content: '';
    position: absolute;
    inset: -30px;
    background-image: var(--ed-dm-bg);
    background-size: cover;
    background-position: center;
    filter: blur(24px) saturate(1.1);
    opacity: .55;
    z-index: 0;
}
body .modal.ed-detail-modal .ed-dm-media img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
}

/* ==================================================================
   MORE DETAILS POPUP — image at its natural shape: full width of its
   column, no cropping, no filler bands above/below
   ================================================================== */
body .modal.ed-detail-modal .ed-dm-grid {
    align-items: start !important;
    min-height: 0 !important;
}
body .modal.ed-detail-modal .ed-dm-media {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: transparent !important;
    align-self: start;
}
body .modal.ed-detail-modal .ed-dm-media::before { display: none !important; content: none !important; }
body .modal.ed-detail-modal .ed-dm-media img {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}
body .modal.ed-detail-modal .ed-dm-info {
    min-height: 0 !important;
    align-self: stretch;
}

@media (max-width: 767px) {
    body .modal.ed-detail-modal .ed-dm-media { min-height: 0 !important; }
}

/* ==================================================================
   MORE DETAILS POPUP — popup height = image height.
   The image sets the row height; the details column is stretched to
   exactly that height (height:0 + min-height:100% so it never makes
   the popup taller) and its content is compacted to fit.
   ================================================================== */
@media (min-width: 576px) {
    body .modal.ed-detail-modal .ed-dm-grid {
        align-items: stretch !important;
    }
    body .modal.ed-detail-modal .ed-dm-info {
        height: 0 !important;
        min-height: 100% !important;
        overflow-y: auto !important;
        scrollbar-width: none;            /* no visible scrollbar */
        padding: 22px 26px 22px !important;
        box-sizing: border-box;
    }
    body .modal.ed-detail-modal .ed-dm-info::-webkit-scrollbar { display: none; }

    body .modal.ed-detail-modal .ed-dm-close { top: 8px; right: 12px; }
    body .modal.ed-detail-modal .ed-dm-meta { margin-bottom: 6px !important; }
    body .modal.ed-detail-modal .ed-dm-title {
        font-size: 26px !important;
        margin-bottom: 12px !important;
        -webkit-line-clamp: 1;
    }
    body .modal.ed-detail-modal .ed-dm-desc { margin: -4px 0 10px !important; -webkit-line-clamp: 1; }
    body .modal.ed-detail-modal .ed-dm-specs { margin-bottom: 12px !important; }
    body .modal.ed-detail-modal .ed-dm-row { padding: 7px 0 !important; }
    body .modal.ed-detail-modal .ed-dm-price { margin-bottom: 12px !important; }
    body .modal.ed-detail-modal .ed-dm-btn { padding: 12px 16px !important; }
}

/* ==================================================================
   MORE DETAILS POPUP — all details always visible, no scrolling.
   Popup height = the taller of image / details; image stays whole
   and is centred in its column when the details are taller.
   ================================================================== */
@media (min-width: 576px) {
    body .modal.ed-detail-modal .ed-dm-info {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }
    body .modal.ed-detail-modal .ed-dm-media {
        align-self: stretch !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: #ffffff !important;
    }
    body .modal.ed-detail-modal .ed-dm-title { -webkit-line-clamp: 2; }
    body .modal.ed-detail-modal .ed-dm-desc { -webkit-line-clamp: 3; }
}

/* ==================================================================
   LOGGED-IN LAYOUT — the page sits inside padded columns, so stretch
   the banner + filter bar edge to edge like the guest page
   ================================================================== */
body { overflow-x: hidden; }

.exclusive-deal-section.ed-logged-in .ed-banner,
.exclusive-deal-section.ed-logged-in .ed-filterbar {
    box-sizing: border-box;
}
.exclusive-deal-section.ed-logged-in {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ==================================================================
   FILTER BAR — responsive layout (overrides earlier rules)
   ≥1200px : tabs left, search + Grid/List right, one row
   <1200px : tabs on their own row (swipe sideways), tools row below
   <576px  : search full width, Grid/List beside it
   ================================================================== */
.exclusive-deal-section .ed-filterbar .ed-filterbar-inner,
.exclusive-deal-section .ed-filterbar .container-fluid.ed-filterbar-inner {
    width: 100% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 0 clamp(16px, 4vw, 64px) !important;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 32px;
    min-height: 54px;
    box-sizing: border-box;
    float: none !important;
}
.exclusive-deal-section .ed-filterbar .ed-filterbar-inner::before,
.exclusive-deal-section .ed-filterbar .ed-filterbar-inner::after { display: none !important; }

/* Tabs: take available space, swipe sideways if they don't fit */
.exclusive-deal-section .ed-chips {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-self: stretch;
    /* soft fade at the right edge hints there are more tabs */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    padding-right: 28px;
}
.exclusive-deal-section .ed-chips::-webkit-scrollbar { display: none; }
.exclusive-deal-section .ed-chip { flex: 0 0 auto; }

/* Tools: fixed on the right */
.exclusive-deal-section .ed-tools {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
    padding: 0 !important;
}
.exclusive-deal-section .ed-search { min-width: 200px; flex: 0 1 220px; }
.exclusive-deal-section .ed-view { flex: 0 0 auto; }

/* Tablet & small laptop: two rows */
@media (max-width: 1199px) {
    .exclusive-deal-section .ed-filterbar .ed-filterbar-inner,
    .exclusive-deal-section .ed-filterbar .container-fluid.ed-filterbar-inner {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 clamp(16px, 3vw, 32px) !important;
    }
    .exclusive-deal-section .ed-chips {
        width: 100%;
        border-bottom: 1px solid #ece9e3;
    }
    .exclusive-deal-section .ed-chip { padding: 14px 0 12px; }
    .exclusive-deal-section .ed-tools {
        width: 100%;
        justify-content: space-between;
        padding: 10px 0 !important;
    }
    .exclusive-deal-section .ed-search { flex: 0 1 320px; }
}

/* Phones */
@media (max-width: 575px) {
    .exclusive-deal-section .ed-chips { gap: 18px; }
    .exclusive-deal-section .ed-chip { font-size: 13px; }
    .exclusive-deal-section .ed-tools { gap: 14px; }
    .exclusive-deal-section .ed-search { flex: 1 1 auto; min-width: 0; }
    .exclusive-deal-section .ed-search input { font-size: 16px; } /* stops iOS zoom on focus */
    .exclusive-deal-section .ed-view { gap: 10px; }
    .exclusive-deal-section .ed-showing { padding-left: 0; }
}

/* active-tab underline stays visible inside the scrollable tab row */
.exclusive-deal-section .ed-chip.active::after { bottom: 0 !important; }

/* Filter/search hide — wins over grid and list layout rules */
.deal-row > div.deal-col.ed-hidden,
.deal-row.ed-list > div.deal-col.ed-hidden {
    display: none !important;
}

/* ==================================================================
   EMPTY STATE — "No deals found"
   ================================================================== */
.ed-empty-col { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; padding: 8px !important; }

.exclusive-deal-section .ed-empty {
    background: #ffffff;
    border: 1px solid #e5e2dc;
    margin: 24px 8px 40px;
    padding: 72px 24px 88px;
    text-align: center;
}
.exclusive-deal-section .ed-empty-icon {
    color: #007D79;
    margin-bottom: 26px;
}
.exclusive-deal-section .ed-empty-icon svg { width: 40px; height: 40px; }
.exclusive-deal-section .ed-empty-title {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: #1a1a1a;
}
.exclusive-deal-section .ed-empty-text {
    margin: 0 auto 26px;
    max-width: 460px;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 18px;
    line-height: 1.5;
    color: #3d3d3d;
}
.exclusive-deal-section .ed-empty-btn {
    display: inline-block;
    padding: 13px 22px;
    background: #007D79;
    border: 1px solid #007D79;
    border-radius: 0;
    color: #ffffff !important;
    font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s ease;
}
.exclusive-deal-section .ed-empty-btn:hover { background: #00605c; border-color: #00605c; }
.exclusive-deal-section .ed-empty-btn:focus-visible { outline: 2px solid #007D79; outline-offset: 3px; }

@media (max-width: 575px) {
    .exclusive-deal-section .ed-empty { padding: 48px 18px 56px; margin: 16px 0 28px; }
    .exclusive-deal-section .ed-empty-title { font-size: 26px; }
    .exclusive-deal-section .ed-empty-text { font-size: 16px; }
}

/* Empty-state diamond icon — always visible, fixed size */
.exclusive-deal-section .ed-empty-icon {
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: 40px;
    color: #007D79 !important;
}
.exclusive-deal-section .ed-empty-icon svg {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    stroke: #007D79 !important;
    fill: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* "Showing …" line — filter name in bold */
.exclusive-deal-section .ed-showing strong { font-weight: 600; color: #1a1a1a; }

/* Product the visitor picked before signing in — brief highlight */
.deal-row:not(.ed-list) .deal-card { transition: box-shadow .6s ease, transform .25s ease, border-color .25s ease; }
.deal-row:not(.ed-list) .deal-col.ed-focus .deal-card {
    box-shadow: 0 0 0 2px #007D79, 0 16px 32px rgba(0, 125, 121, .18) !important;
}
/* List view: soft tinted band behind the whole row + full-height teal bar
   (drawn with pseudo-elements so nothing in the row covers it or shifts) */
.deal-row.ed-list .ed-list-row {
    position: relative;
    isolation: isolate;
}
.deal-row.ed-list .ed-list-row::before,
.deal-row.ed-list .ed-list-row::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: -1px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .6s ease;
}
.deal-row.ed-list .ed-list-row::after {           /* tinted band */
    left: -10px;
    right: -10px;
    background: #eef6f5;
    z-index: -1;
}
.deal-row.ed-list .ed-list-row::before {          /* teal bar */
    left: -10px;
    width: 3px;
    background: #007D79;
    z-index: 1;
}
.deal-row.ed-list .deal-col.ed-focus .ed-list-row::before,
.deal-row.ed-list .deal-col.ed-focus .ed-list-row::after {
    opacity: 1;
}

/* ==================================================================
   MORE DETAILS POPUP — round ✕ close icon (no overlap with lot line)
   ================================================================== */
body .modal.ed-detail-modal .ed-dm-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e5e2dc !important;
    background: #ffffff !important;
    color: #3d3d3d !important;
    font-size: 0 !important;
    letter-spacing: 0 !important;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
body .modal.ed-detail-modal .ed-dm-close svg { width: 16px; height: 16px; display: block; }
body .modal.ed-detail-modal .ed-dm-close:hover {
    background: #007D79 !important;
    border-color: #007D79 !important;
    color: #ffffff !important;
    transform: rotate(90deg);
}
body .modal.ed-detail-modal .ed-dm-close:focus-visible { outline: 2px solid #007D79; outline-offset: 2px; }

/* keep "LOT … / LAB GROWN" clear of the close icon */
body .modal.ed-detail-modal .ed-dm-meta { padding-right: 44px; margin-top: 4px; }

/* image failed to load -> neutral diamond placeholder */
body .modal.ed-detail-modal .ed-dm-media.ed-dm-noimg {
    min-height: 360px !important;
    background: #f1efe9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%23c9b99a' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 4h11L21 9l-9 11L3 9z'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M9.5 4 8 9l4 11 4-11-1.5-5'/%3E%3C/svg%3E") center / 64px no-repeat !important;
}
@media (max-width: 767px) {
    body .modal.ed-detail-modal .ed-dm-media.ed-dm-noimg { min-height: 220px !important; }
}

/* ==================================================================
   MORE DETAILS POPUP — sized by script (.ed-fit): picture column is
   exactly as tall as the details, at the picture's natural shape
   ================================================================== */
@media (min-width: 768px) {
    /* measuring pass: fixed details width, natural height */
    body .modal.ed-detail-modal.ed-measure .ed-dm-info {
        width: var(--ed-info-w, 420px) !important;
        height: auto !important;
        min-height: 0 !important;
    }

    body .modal.ed-detail-modal.ed-fit .modal-dialog,
    body .modal.ed-detail-modal.ed-fit .modal-dialog.modal-dialog {
        width: var(--ed-dialog-w) !important;
        max-width: calc(100vw - 32px) !important;
        min-width: 0 !important;
    }
    body .modal.ed-detail-modal.ed-fit .ed-dm-grid {
        grid-template-columns: var(--ed-media-w) var(--ed-info-w) !important;
        width: auto !important;
        height: var(--ed-media-h) !important;
        min-height: 0 !important;
        align-items: stretch !important;
    }
    body .modal.ed-detail-modal.ed-fit .ed-dm-media {
        width: var(--ed-media-w) !important;
        height: var(--ed-media-h) !important;
        min-height: 0 !important;
        max-height: none !important;
        background: #ffffff !important;
        display: block !important;
        overflow: hidden;
    }
    body .modal.ed-detail-modal.ed-fit .ed-dm-media img {
        position: static !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;   /* column already matches the picture's shape */
    }
    body .modal.ed-detail-modal.ed-fit .ed-dm-info {
        height: var(--ed-media-h) !important;
        min-height: 0 !important;
        overflow: visible !important;
    }
    body .modal.ed-detail-modal.ed-fit .ed-dm-media.ed-dm-noimg { min-height: 0 !important; }
}

/* ==================================================================
   STONE TYPE BADGE — Natural (teal) / Lab grown (gold)
   ================================================================== */
.ed-stone-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 4px 10px 4px 9px;
    border-radius: 999px;
    font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 10.5px !important;
    font-weight: 600;
    letter-spacing: 1.4px;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}
.ed-stone-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.ed-stone-badge.ed-stone-natural {
    color: #007D79 !important;
    background: #e7f8f6;
    border-color: #bfe6e2;
}
.ed-stone-badge.ed-stone-lab {
    color: #8a6938 !important;
    background: #fdf4e4;
    border-color: #efd9b0;
}
.ed-stone-badge.ed-stone-other {
    color: #555 !important;
    background: #f1efe9;
    border-color: #e5e2dc;
}

/* popup: lot on the left, badge on the right, vertically centred */
body .modal.ed-detail-modal .ed-dm-meta { align-items: center; }

/* ==================================================================
   GRID / LIST — square icon buttons
   ================================================================== */
.exclusive-deal-section .ed-view {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
}
.exclusive-deal-section .ed-view-btn {
    width: 38px;
    height: 38px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #dcdfe6 !important;
    border-bottom: 1px solid #dcdfe6 !important;
    background: #ffffff !important;
    color: #6b6b6b !important;
    font-size: 0 !important;
    cursor: pointer;
    transition: background .30s ease, border-color .30s ease, color .30s ease;
}
.exclusive-deal-section .ed-view-btn svg { width: 18px; height: 18px; display: block; }
.exclusive-deal-section .ed-view-btn:hover {
    border-color: #007D79 !important;
    color: #007D79 !important;
}
.exclusive-deal-section .ed-view-btn.active {
    background: #e7f8f6 !important;
    border-color: #007D79 !important;
    color: #007D79 !important;
}
.exclusive-deal-section .ed-view-btn:focus-visible { outline: 2px solid #007D79; outline-offset: 2px; }

/* Grid / List — text buttons (boxed) */
.exclusive-deal-section .ed-view-btn {
    width: auto !important;
    min-width: 58px;
    height: 36px;
    padding: 0 14px !important;
    font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px !important;
    font-weight: 500;
    letter-spacing: .3px;
    line-height: 1;
}

/* ==================================================================
   GUEST ENQUIRY — dark band directly above the footer
   ================================================================== */
.ed-enquiry {
    background: #082125;
    color: #e8efee;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 64px 0 56px;
    margin-top: 40px;
}
.ed-enquiry-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
}
.ed-enquiry-eyebrow {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 12px;
    font-size: 12px; letter-spacing: 2.2px; text-transform: uppercase;
    color: #7fd3cc;
}
.ed-enquiry-eyebrow span { width: 36px; height: 1px; background: #7fd3cc; display: inline-block; }
.ed-enquiry-title {
    margin: 0 0 14px;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 400;
    line-height: 1.15;
    color: #ffffff;
}
.ed-enquiry-lead {
    margin: 0;
    max-width: 420px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 19px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .78);
}

.ed-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.ed-enq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}
.ed-enq-full { grid-column: 1 / -1; }
.ed-enq-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 400; }
.ed-enq-field > span {
    font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}
.ed-enq-field em { color: #7fd3cc; font-style: normal; }
.ed-enq-field small { text-transform: none; letter-spacing: 0; color: rgba(255, 255, 255, .45); }
.ed-enq-field input,
.ed-enq-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 0;
    color: #ffffff;
    padding: 11px 12px;
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    box-shadow: none;
    transition: border-color .15s ease, background .15s ease;
}
.ed-enq-field textarea { resize: vertical; min-height: 88px; }
.ed-enq-field input::placeholder,
.ed-enq-field textarea::placeholder { color: rgba(255, 255, 255, .35); }
.ed-enq-field input:focus,
.ed-enq-field textarea:focus { border-color: #7fd3cc; background: rgba(255, 255, 255, .07); }
.ed-enq-field .is-invalid,
.ed-enq-field input.is-invalid { border-color: #f08a8a; }

.ed-enq-actions {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    margin-top: 20px;
}
.ed-enq-submit {
    background: #ffffff;
    color: #082125;
    border: 1px solid #ffffff;
    border-radius: 0;
    padding: 13px 30px;
    font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.ed-enq-submit:hover { background: #7fd3cc; border-color: #7fd3cc; }
.ed-enq-submit:disabled { opacity: .6; cursor: wait; }
.ed-enq-submit:focus-visible { outline: 2px solid #7fd3cc; outline-offset: 3px; }
.ed-enq-status { margin: 0; font-size: 14px; }
.ed-enq-status.is-success { color: #7fd3cc; }
.ed-enq-status.is-error { color: #f5a3a3; }

@media (max-width: 991px) {
    .ed-enquiry-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 575px) {
    .ed-enquiry { padding: 44px 0 40px; }
    .ed-enq-grid { grid-template-columns: 1fr; }
    .ed-enq-field input, .ed-enq-field textarea { font-size: 16px; }
    .ed-enq-submit { width: 100%; }
}

/* Enquiry form: Name / Email / Phone on one row, Message below */
.ed-enq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .ed-enq-grid { grid-template-columns: 1fr 1fr; } .ed-enq-grid > .ed-enq-field:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 575px) { .ed-enq-grid { grid-template-columns: 1fr; } }

/* ==================================================================
   GRID CARDS — match the List view
   price: same teal as the list; category name: same serif as the list
   ================================================================== */
.exclusive-deal-section .deal-card .deal-price-amount,
.exclusive-deal-section .deal-card .deal-price-amount.price-lab,
.exclusive-deal-section .deal-card .deal-price-amount.price-natural {
    color: #007D79 !important;
    font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 600 !important;
    background: none !important;
    -webkit-text-fill-color: #007D79 !important;
}
.exclusive-deal-section .deal-card .deal-price-note {
    color: #8a8a8a !important;
    -webkit-text-fill-color: #8a8a8a !important;
    font-weight: 400 !important;
}

.exclusive-deal-section .deal-card .deal-location {
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 400 !important;
    font-size: 20px !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    color: #1a1a1a !important;
}

/* More Details popup: open instantly (no slide/fade) */
body .modal.ed-detail-modal .modal-dialog { transition: none !important; transform: none !important; }

/* missing picture -> diamond placeholder (also when the popup is auto-sized) */
body .modal.ed-detail-modal .ed-dm-media.ed-dm-noimg,
body .modal.ed-detail-modal.ed-fit .ed-dm-media.ed-dm-noimg {
    background: #f1efe9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%23c9b99a' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 4h11L21 9l-9 11L3 9z'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M9.5 4 8 9l4 11 4-11-1.5-5'/%3E%3C/svg%3E") center / 64px no-repeat !important;
}

/* ==================================================================
   GUEST ENQUIRY — heading/text removed; form spans the same width as
   the banner (eyebrow on top, fields full width)
   ================================================================== */
.ed-enquiry { margin-top: 32px; padding: 44px 0 48px; }
.ed-enquiry .ed-enquiry-inner {
    max-width: none;
    width: 100%;
    padding: 0 clamp(16px, 4vw, 64px);
    display: block;
    box-sizing: border-box;
}
.ed-enquiry .ed-enquiry-intro { margin-bottom: 18px; }
.ed-enquiry .ed-enquiry-eyebrow { margin: 0; }
.ed-enquiry .ed-enq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) 2fr; gap: 16px 20px; }
.ed-enquiry .ed-enq-full { grid-column: auto; }
.ed-enquiry .ed-enq-field textarea { min-height: 46px; height: 46px; resize: vertical; }
.ed-enquiry .ed-enq-actions { margin-top: 18px; }

@media (max-width: 1199px) {
    .ed-enquiry .ed-enq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ed-enquiry .ed-enq-full { grid-column: 1 / -1; }
    .ed-enquiry .ed-enq-field textarea { height: auto; min-height: 80px; }
}
@media (max-width: 767px) {
    .ed-enquiry .ed-enq-grid { grid-template-columns: 1fr 1fr; }
    .ed-enquiry .ed-enq-grid > .ed-enq-field:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
    .ed-enquiry .ed-enq-grid { grid-template-columns: 1fr; }
}

/* Enquiry: SEND ENQUIRY on the same row, right after Message (large screens) */
@media (min-width: 1200px) {
    .ed-enquiry .ed-enquiry-form {
        display: flex;
        align-items: flex-end;
        gap: 20px;
    }
    .ed-enquiry .ed-enq-grid { flex: 1 1 auto; min-width: 0; }
    .ed-enquiry .ed-enq-actions {
        position: relative;
        flex: 0 0 auto;
        margin-top: 0;
    }
    .ed-enquiry .ed-enq-submit { height: 46px; padding: 0 30px; white-space: nowrap; }
    /* thank-you / error message sits just under the button so the row stays aligned */
    .ed-enquiry .ed-enq-status {
        position: absolute;
        right: 0;
        top: calc(100% + 10px);
        white-space: nowrap;
    }
    .ed-enquiry { padding-bottom: 56px; }
}

/* ==================================================================
   GUEST ENQUIRY — refreshed design (icons, placeholders, soft cards)
   ================================================================== */
.ed-enquiry {
    position: relative;
    background:
        radial-gradient(1200px 300px at 85% 0%, rgba(0, 125, 121, .22), transparent 60%),
        linear-gradient(180deg, #0b2a2f 0%, #082125 100%) !important;
    border-top: 1px solid rgba(127, 211, 204, .18);
    padding: 40px 0 48px !important;
}
.ed-enquiry .ed-enquiry-intro {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px 24px; flex-wrap: wrap;
    margin-bottom: 20px;
}
.ed-enquiry .ed-enquiry-note {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 18px;
    color: rgba(255, 255, 255, .72);
}

.ed-enquiry .ed-enq-field {
    position: relative;
    display: block;
    margin: 0;
}
.ed-enquiry .ed-enq-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    color: rgba(127, 211, 204, .75);
    pointer-events: none;
    transition: color .15s ease;
}
.ed-enquiry .ed-enq-icon svg { width: 18px; height: 18px; display: block; }
.ed-enquiry .ed-enq-field.ed-enq-full .ed-enq-icon { top: 23px; }

.ed-enquiry .ed-enq-field input,
.ed-enquiry .ed-enq-field textarea {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 44px !important;
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 15px;
    line-height: 50px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.ed-enquiry .ed-enq-field textarea {
    min-height: 50px;
    padding-top: 14px !important;
    padding-bottom: 12px !important;
    line-height: 1.45;
    resize: none;
    overflow: hidden;
}
.ed-enquiry .ed-enq-field input::placeholder,
.ed-enquiry .ed-enq-field textarea::placeholder { color: rgba(255, 255, 255, .45); }
.ed-enquiry .ed-enq-field input:hover,
.ed-enquiry .ed-enq-field textarea:hover { border-color: rgba(127, 211, 204, .45) !important; }
.ed-enquiry .ed-enq-field input:focus,
.ed-enquiry .ed-enq-field textarea:focus {
    outline: none;
    border-color: #7fd3cc !important;
    background: rgba(255, 255, 255, .09) !important;
    box-shadow: 0 0 0 3px rgba(127, 211, 204, .18);
}
.ed-enquiry .ed-enq-field:focus-within .ed-enq-icon { color: #7fd3cc; }
.ed-enquiry .ed-enq-field .is-invalid { border-color: #f08a8a !important; box-shadow: 0 0 0 3px rgba(240, 138, 138, .15); }

.ed-enquiry .ed-enq-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 50px !important;
    padding: 0 26px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #0a9a94 0%, #007D79 100%) !important;
    color: #ffffff !important;
    font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(0, 125, 121, .35);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.ed-enquiry .ed-enq-submit svg { width: 16px; height: 16px; transition: transform .15s ease; }
.ed-enquiry .ed-enq-submit:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0, 125, 121, .45); }
.ed-enquiry .ed-enq-submit:hover svg { transform: translateX(3px); }
.ed-enquiry .ed-enq-submit:focus-visible { outline: 2px solid #7fd3cc; outline-offset: 3px; }

.ed-enquiry .ed-enq-status { font-size: 14px; }

/* auto-grow the message box while typing (up to 4 lines) on small screens */
@media (max-width: 1199px) {
    .ed-enquiry .ed-enq-field textarea { height: 96px; resize: vertical; overflow: auto; }
    .ed-enquiry .ed-enq-actions { margin-top: 16px; }
}
@media (max-width: 575px) {
    .ed-enquiry { padding: 32px 0 36px !important; }
    .ed-enquiry .ed-enq-submit { width: 100%; }
    .ed-enquiry .ed-enquiry-note { font-size: 16px; }
}

/* Enquiry one-row alignment: fields, icons and button on the same line */
.ed-enquiry .ed-enq-field input,
.ed-enquiry .ed-enq-field textarea {
    display: block !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    vertical-align: top;
}
.ed-enquiry .ed-enq-field { height: 50px; line-height: 0; }
.ed-enquiry .ed-enq-field > .ed-enq-icon,
.ed-enquiry .ed-enq-field.ed-enq-full > .ed-enq-icon {
    top: 25px !important;
    transform: translateY(-50%) !important;
    line-height: 0;
}
.ed-enquiry .ed-enq-grid { align-items: center !important; }
@media (min-width: 1200px) {
    .ed-enquiry .ed-enquiry-form { align-items: center !important; }
    .ed-enquiry .ed-enq-actions { display: flex; align-items: center; height: 50px; margin: 0 !important; }
    .ed-enquiry .ed-enq-submit { margin: 0 !important; transform: none; }
    .ed-enquiry .ed-enq-submit:hover { transform: translateY(-1px); }
    .ed-enquiry .ed-enq-field textarea { height: 50px !important; white-space: nowrap; overflow: hidden; line-height: 22px !important; }
}
@media (max-width: 1199px) {
    .ed-enquiry .ed-enq-field.ed-enq-full { height: auto; }
    .ed-enquiry .ed-enq-field.ed-enq-full > .ed-enq-icon { top: 25px !important; }
}

/* Enquiry top row: eyebrow left, benefit badges right */
.ed-enquiry .ed-enquiry-intro {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px 24px;
    flex-wrap: wrap;
    margin-bottom: 22px !important;
}
.ed-enq-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ed-enq-perks li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 11px;
    border-radius: 999px;
    background: rgba(127, 211, 204, .08);
    border: 1px solid rgba(127, 211, 204, .28);
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    letter-spacing: .2px;
    line-height: 1.2;
    white-space: nowrap;
}
.ed-enq-perks li svg { width: 15px; height: 15px; color: #7fd3cc; flex-shrink: 0; }

@media (max-width: 767px) {
    .ed-enquiry .ed-enquiry-intro { flex-direction: column; align-items: flex-start !important; }
    .ed-enq-perks { gap: 8px; }
    .ed-enq-perks li { font-size: 12px; padding: 6px 12px 6px 9px; }
}

/* Enquiry: "Talk to our team" on the left, form on the right — one row */
.ed-enq-perks { display: none !important; }
@media (min-width: 1200px) {
    .ed-enquiry .ed-enquiry-inner {
        display: flex !important;
        align-items: center;
        gap: 32px;
    }
    .ed-enquiry .ed-enquiry-intro {
        flex: 0 0 auto;
        margin: 0 !important;
    }
    .ed-enquiry .ed-enquiry-eyebrow { white-space: nowrap; margin: 0; }
    .ed-enquiry .ed-enquiry-form { flex: 1 1 auto; min-width: 0; }
    .ed-enquiry .ed-enq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) 1.6fr !important; gap: 14px !important; }
    .ed-enquiry { padding: 36px 0 !important; }
}

/* ==================================================================
   ENQUIRY — form on the LEFT, title + short text on the RIGHT
   ================================================================== */
.ed-enquiry .ed-enquiry-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 32px 56px;
    align-items: center;
}
.ed-enquiry .ed-enquiry-form  { order: 1; min-width: 0; display: block !important; }
.ed-enquiry .ed-enquiry-intro {
    order: 2;
    display: block !important;
    margin: 0 !important;
    padding-left: 40px;
    border-left: 1px solid rgba(127, 211, 204, .22);
}
.ed-enquiry .ed-enquiry-eyebrow { margin: 0 0 12px !important; white-space: nowrap; }
.ed-enq-heading {
    margin: 0 0 12px;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 2.4vw, 36px);
    font-weight: 400;
    line-height: 1.15;
    color: #ffffff;
}
.ed-enq-text {
    margin: 0;
    max-width: 440px;
    /* font-family: "Cormorant Garamond", Georgia, serif; */
    font-style: italic;
    font-size: 19px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .75);
}

/* form: 2 columns — Name | Email, Phone | Message, then the button */
.ed-enquiry .ed-enq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}
.ed-enquiry .ed-enq-full { grid-column: auto !important; }
.ed-enquiry .ed-enq-field textarea { height: 50px !important; white-space: nowrap; overflow: hidden; line-height: 22px !important; resize: none !important; }
.ed-enquiry .ed-enq-actions {
    display: flex !important;
    align-items: center;
    gap: 16px;
    height: auto !important;
    margin-top: 16px !important;
    position: static !important;
}
.ed-enquiry .ed-enq-status { position: static !important; white-space: normal !important; }
.ed-enquiry { padding: 48px 0 !important; }

@media (max-width: 991px) {
    .ed-enquiry .ed-enquiry-inner { grid-template-columns: 1fr; gap: 24px; }
    .ed-enquiry .ed-enquiry-intro { order: 0; padding-left: 0; border-left: 0; }
}
@media (max-width: 575px) {
    .ed-enquiry .ed-enq-grid { grid-template-columns: 1fr !important; }
    .ed-enquiry .ed-enq-actions { flex-direction: column; align-items: stretch; }
}

/* ==================================================================
   ENQUIRY — text on the LEFT, form card on the RIGHT, no divider line
   ================================================================== */
.ed-enquiry .ed-enquiry-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) !important;
    gap: 32px 64px !important;
    align-items: center !important;
}
.ed-enquiry .ed-enquiry-intro {
    order: 1 !important;
    padding-left: 0 !important;
    border-left: 0 !important;
}
.ed-enquiry .ed-enquiry-form {
    order: 2 !important;
    position: relative;
    padding: 26px 26px 24px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .025) 100%);
    border: 1px solid rgba(127, 211, 204, .20);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
}
/* small teal accent along the top of the card */
.ed-enquiry .ed-enquiry-form::before {
    content: '';
    position: absolute;
    top: -1px; left: 26px;
    width: 64px; height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, #7fd3cc, #0a9a94);
}
.ed-enquiry .ed-enquiry-eyebrow { margin: 0 0 14px !important; }
.ed-enquiry .ed-enq-text {
    max-width: 460px;
    font-size: 22px !important;
    line-height: 1.45;
    color: rgba(255, 255, 255, .85) !important;
}
.ed-enquiry .ed-enq-actions { justify-content: flex-end; }
.ed-enquiry .ed-enq-status { order: -1; margin-right: auto !important; }

@media (max-width: 991px) {
    .ed-enquiry .ed-enquiry-inner { grid-template-columns: 1fr !important; gap: 20px !important; }
    .ed-enquiry .ed-enquiry-form { padding: 20px 18px 18px; }
    .ed-enquiry .ed-enq-text { font-size: 19px !important; }
}
@media (max-width: 575px) {
    .ed-enquiry .ed-enq-actions { justify-content: stretch; }
}

/* ==================================================================
   PRICE COLOUR = STONE BADGE COLOUR
   Lab grown -> gold (#A47E43)   Natural -> teal (#007D79)
   ================================================================== */
/* grid cards */
.exclusive-deal-section .deal-card .deal-price-amount.price-lab {
    color: #A47E43 !important; -webkit-text-fill-color: #A47E43 !important;
}
.exclusive-deal-section .deal-card .deal-price-amount.price-natural {
    color: #007D79 !important; -webkit-text-fill-color: #007D79 !important;
}
/* list rows */
.deal-col[data-stone="lab"] .ed-lr-price-amount:not(.ed-lr-price-muted) { color: #A47E43 !important; }
.deal-col[data-stone="natural"] .ed-lr-price-amount:not(.ed-lr-price-muted) { color: #007D79 !important; }
/* More Details popup */
body .modal.ed-detail-modal .ed-dm-price-amount.ed-price-lab:not(.ed-dm-price-muted) { color: #A47E43 !important; }
body .modal.ed-detail-modal .ed-dm-price-amount.ed-price-natural:not(.ed-dm-price-muted) { color: #007D79 !important; }

/* Enquiry: left text aligned to the TOP of the form card */
.ed-enquiry .ed-enquiry-inner { align-items: start !important; }
.ed-enquiry .ed-enquiry-intro {
    align-self: start !important;
    padding-top: 8px !important;
}

/* ==================================================================
   ENQUIRY — phone field with country code dropdown
   ================================================================== */
.ed-enquiry .ed-enq-phone {
    display: flex !important;
    align-items: stretch;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ed-enquiry .ed-enq-phone:hover { border-color: rgba(127, 211, 204, .45); }
.ed-enquiry .ed-enq-phone:focus-within {
    border-color: #7fd3cc;
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 0 0 3px rgba(127, 211, 204, .18);
}
.ed-enquiry .ed-enq-code {
    flex: 0 0 auto;
    width: 112px;
    height: 100%;
    padding: 0 30px 0 14px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .14);
    border-radius: 0;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237fd3cc' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 12px no-repeat;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    outline: none;
}
.ed-enquiry .ed-enq-code option { color: #1a1a1a; background: #ffffff; }
.ed-enquiry .ed-enq-phone input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100% !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.ed-enquiry .ed-enq-phone input:focus { box-shadow: none !important; background: transparent !important; }

/* Filter tabs are commented out: keep search + Grid/List on the right */
.exclusive-deal-section .ed-filterbar .ed-tools { margin-left: auto; }
@media (max-width: 1199px) {
    .exclusive-deal-section .ed-filterbar .ed-tools { margin-left: 0; }
}

/* ==================================================================
   SITE FONTS — same as the rest of the website
   body text: Roboto   |   headings / titles: Caudex
   (applies to guest + logged-in pages, popups and the enquiry strip;
    icon fonts are left untouched)
   ================================================================== */
.exclusive-deal-section,
.exclusive-deal-section *:not(i):not([class^="fa"]):not([class*=" fa-"]),
.ed-detail-modal,
.ed-detail-modal *:not(i):not([class^="fa"]):not([class*=" fa-"]),
.ed-enquiry,
.ed-enquiry *:not(i):not([class^="fa"]):not([class*=" fa-"]),
#loginModalPopup .modal-content *:not(i):not([class^="fa"]):not([class*=" fa-"]) {
    font-family: 'Roboto', sans-serif !important;
}

/* headings & product titles -> Caudex */
.exclusive-deal-section .ed-banner-title,
.exclusive-deal-section .deal-card .deal-location,
.exclusive-deal-section .ed-lr-title,
.exclusive-deal-section .ed-empty-title,
body .modal.ed-detail-modal .ed-dm-title,
.ed-enquiry .ed-enq-heading {
    font-family: 'Caudex', serif !important;
}

/* italic supporting lines -> Caudex italic */
.exclusive-deal-section .ed-banner-lead,
.exclusive-deal-section .ed-lr-avail,
.exclusive-deal-section .ed-empty-text,
.ed-enquiry .ed-enq-text,
.ed-enquiry .ed-enquiry-note,
.ed-enquiry .ed-enquiry-lead {
    font-family: 'Caudex', serif !important;
    font-style: italic;
}

/* save (heart) button removed */
.ed-save { display: none !important; }

/* ==================================================================
   TOOLBAR (right side): boxed search + joined Grid/List toggle
   ================================================================== */
.exclusive-deal-section .ed-filterbar .ed-filterbar-inner { min-height: 64px !important; }
.exclusive-deal-section .ed-filterbar .ed-tools {
    margin-left: auto;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* search box */
.exclusive-deal-section .ed-search {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 300px;
    min-width: 0 !important;
    flex: 0 1 300px !important;
    height: 40px;
    padding: 0 14px !important;
    margin: 0;
    background: #ffffff;
    border: 1px solid #dcdfe6 !important;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.exclusive-deal-section .ed-search:hover { border-color: #b9c2c8 !important; }
.exclusive-deal-section .ed-search:focus-within {
    border-color: #007D79 !important;
    box-shadow: 0 0 0 3px rgba(0, 125, 121, .12);
}
.exclusive-deal-section .ed-search svg { width: 16px !important; height: 16px !important; color: #007D79 !important; flex-shrink: 0; }
.exclusive-deal-section .ed-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0 !important;
    background: transparent !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}
.exclusive-deal-section .ed-search input::placeholder { color: #9aa3ab; }
/* hide the browser's own clear "x" so it doesn't clash */
.exclusive-deal-section .ed-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Grid / List — one joined toggle */
.exclusive-deal-section .ed-view {
    display: inline-flex !important;
    gap: 0 !important;
    padding: 3px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
}
.exclusive-deal-section .ed-view .ed-view-btn {
    height: 32px !important;
    min-width: 64px;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #6b7280 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: background .15s ease, color .15s ease;
}
.exclusive-deal-section .ed-view .ed-view-btn:hover { color: #007D79 !important; }
.exclusive-deal-section .ed-view .ed-view-btn.active {
    background: #007D79 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 125, 121, .25);
}

@media (max-width: 1199px) {
    .exclusive-deal-section .ed-filterbar .ed-tools { width: 100%; justify-content: flex-end !important; padding: 12px 0 !important; }
}
@media (max-width: 575px) {
    .exclusive-deal-section .ed-filterbar .ed-tools { justify-content: space-between !important; gap: 10px !important; }
    .exclusive-deal-section .ed-search { flex: 1 1 auto !important; width: auto; }
    .exclusive-deal-section .ed-view .ed-view-btn { min-width: 52px; padding: 0 12px !important; }
}

/* Logged-in theme forces square corners — keep our rounded shapes */
.exclusive-deal-section .ed-search,
.exclusive-deal-section .ed-view,
.exclusive-deal-section .ed-view .ed-view-btn,
.ed-stone-badge,
.ed-enq-perks li { border-radius: 999px !important; }
.exclusive-deal-section .ed-view { overflow: hidden; }
.exclusive-deal-section .ed-search input { border-radius: 0 !important; }
body .modal.ed-detail-modal .ed-dm-close { border-radius: 50% !important; }
.ed-enquiry .ed-enquiry-form { border-radius: 16px !important; }
.ed-enquiry .ed-enq-field input,
.ed-enquiry .ed-enq-field textarea,
.ed-enquiry .ed-enq-phone,
.ed-enquiry .ed-enq-submit { border-radius: 10px !important; }
.ed-enquiry .ed-enq-phone input,
.ed-enquiry .ed-enq-code { border-radius: 0 !important; }

/* card stone badge: name only, no icon */
.exclusive-deal-section .deal-type .deal-type-icon { display: none !important; }

/* ==================================================================
   CARD STONE BADGE — pill with dot (matches the popup badge)
   ================================================================== */
.exclusive-deal-section .deal-card .deal-type {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 5px 12px 5px 10px !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 1.4px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .05);
}
.exclusive-deal-section .deal-card .deal-type::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.exclusive-deal-section .deal-card .deal-type.type-lab {
    color: #8a6938 !important;
    background: #fdf4e4 !important;
    border-color: #efd9b0 !important;
}
.exclusive-deal-section .deal-card .deal-type.type-natural {
    color: #007D79 !important;
    background: #e7f8f6 !important;
    border-color: #bfe6e2 !important;
}
.exclusive-deal-section .deal-card .deal-type:not(.type-lab):not(.type-natural) {
    color: #555 !important;
    background: #f1efe9 !important;
    border-color: #e5e2dc !important;
}

/* ==================================================================
   BUTTON COLOUR = STONE COLOUR
   Lab grown -> gold (#A47E43)   Natural -> teal (#007D79)
   ================================================================== */
/* grid cards */
.exclusive-deal-section .deal-card.card-lab .deal-buttons .btn-lab,
.exclusive-deal-section .deal-card.card-lab .deal-buttons .btn-equal:not(.btn-default):not(:disabled) {
    background: #A47E43 !important;
    border-color: #A47E43 !important;
    color: #ffffff !important;
}
.exclusive-deal-section .deal-card.card-lab .deal-buttons .btn-lab:hover,
.exclusive-deal-section .deal-card.card-lab .deal-buttons .btn-equal:not(.btn-default):not(:disabled):hover {
    background: #8a6938 !important;
    border-color: #8a6938 !important;
}
.exclusive-deal-section .deal-card.card-lab .deal-buttons .btn-default {
    border-color: #A47E43 !important;
    color: #8a6938 !important;
}
.exclusive-deal-section .deal-card.card-lab .deal-buttons .btn-default:hover {
    background: #fdf4e4 !important;
    color: #8a6938 !important;
}

/* list rows */
.deal-col[data-stone="lab"] .ed-lr-btn-primary:not(:disabled) { background: #A47E43 !important; border-color: #A47E43 !important; }
.deal-col[data-stone="lab"] .ed-lr-btn-primary:not(:disabled):hover { background: #8a6938 !important; border-color: #8a6938 !important; }
.deal-col[data-stone="lab"] .ed-lr-btn-outline { border-color: #A47E43 !important; color: #8a6938 !important; }
.deal-col[data-stone="lab"] .ed-lr-btn-outline:hover { background: #fdf4e4 !important; }

/* More Details popup (lab-grown badge inside) */
body .modal.ed-detail-modal .ed-dm-info:has(.ed-stone-lab) .ed-dm-btn:not(:disabled) {
    background: #A47E43 !important;
    border-color: #A47E43 !important;
}
body .modal.ed-detail-modal .ed-dm-info:has(.ed-stone-lab) .ed-dm-btn:not(:disabled):hover {
    background: #8a6938 !important;
    border-color: #8a6938 !important;
}

/* ==================================================================
   PAGE LOADER — after successful login, until the page reloads
   ================================================================== */
#edPageLoader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 33, 37, .82);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
    animation: edFadeIn .2s ease;
}
#edPageLoader .ed-loader-box {
    text-align: center;
    padding: 34px 44px 30px;
    border-radius: 18px !important;
    background: linear-gradient(160deg, #0f3237 0%, #0a262a 100%);
    border: 1px solid rgba(127, 211, 204, .25);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
    color: #fff;
    font-family: 'Roboto', sans-serif;
}
#edPageLoader .ed-loader-ring {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    border-radius: 50% !important;
    border: 4px solid rgba(127, 211, 204, .2);
    border-top-color: #7fd3cc;
    animation: edSpin .8s linear infinite;
}
#edPageLoader .ed-loader-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; letter-spacing: .3px; color: #ffffff; }
#edPageLoader .ed-loader-sub { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .7); }
.swal-overlay { z-index: 99990; }
@keyframes edSpin { to { transform: rotate(360deg); } }
@keyframes edFadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    #edPageLoader .ed-loader-ring { animation-duration: 2s; }
}

/* ==================================================================
   PAGE LOADER — use the website's standard spinner (img/loader.gif)
   on a light overlay, like the rest of the site
   ================================================================== */
#edPageLoader {
    background: rgba(255, 255, 255, .88) !important;
    -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
}
#edPageLoader .ed-loader-box {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #1a1a1a !important;
}
#edPageLoader .ed-loader-ring,
#edPageLoader .ed-loader-sub { display: none !important; }
#edPageLoader .ed-loader-gif { display: block; width: 64px; height: 64px; margin: 0 auto 12px; }
#edPageLoader .ed-loader-title {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #3d3d3d !important;
    letter-spacing: .2px;
}

/* ==================================================================
   ADD TO QUOTE form — product summary (same details as More Details)
   ================================================================== */
.ed-quote-modal .modal-dialog { width: 720px !important; max-width: calc(100vw - 32px) !important; }
.ed-quote-modal .ed-qm-summary {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid #e5e2dc;
    font-family: 'Roboto', sans-serif;
}
.ed-quote-modal .ed-qm-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px !important;
    overflow: hidden;
}
.ed-quote-modal .ed-qm-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ed-quote-modal .ed-qm-media.ed-dm-noimg {
    background: #f1efe9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23c9b99a' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 4h11L21 9l-9 11L3 9z'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M9.5 4 8 9l4 11 4-11-1.5-5'/%3E%3C/svg%3E") center / 48px no-repeat;
}
.ed-quote-modal .ed-qm-meta {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 6px;
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #8a8a8a;
}
.ed-quote-modal .ed-qm-title {
    margin: 0 0 10px;
    font-family: 'Caudex', serif !important;
    font-size: 22px; font-weight: 400; line-height: 1.2; color: #1a1a1a;
}
.ed-quote-modal .ed-qm-specs { margin: 0; border-top: 1px solid #eee; }
.ed-quote-modal .ed-qm-row {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 6px 0; border-bottom: 1px solid #eee; font-size: 13px;
}
.ed-quote-modal .ed-qm-row dt { font-weight: 400; color: #6b6b6b; margin: 0; }
.ed-quote-modal .ed-qm-row dd { margin: 0; color: #1a1a1a; text-align: right; }
@media (max-width: 575px) {
    .ed-quote-modal .ed-qm-summary { grid-template-columns: 1fr; }
    .ed-quote-modal .ed-qm-media { max-width: 220px; }
}


/* ---- Only a few pieces (one row or less, e.g. a single product): centre them ---- */
.deal-row.ed-center:not(.ed-list) {
    justify-content: center !important;
}

/* ---- Out of stock badge (stock 0 order items), top-right of the card ---- */
.deal-header-row .ed-oos-badge {
    margin-left: auto;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #c62828 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: .3px !important;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}
.deal-header-row .ed-oos-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e53935 !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, .18) !important;
    flex-shrink: 0;
}

/* ---- Card specs order: name (full width) on row 1, Lot + Stock side by side on row 2 ---- */
.deal-specs > .spec-row--name  { order: 1; grid-column: 1 / -1 !important; }
.deal-specs > .spec-row--split { order: 2; grid-column: auto !important; }
.deal-specs > .spec-row--stock { order: 3; }
.deal-specs > .spec-row--split .spec-value { overflow: visible; text-overflow: clip; white-space: nowrap; }
.deal-specs > .spec-row--split { gap: 6px; padding-left: 10px; padding-right: 10px; }
.deal-specs > .spec-row--split .spec-label-group { flex-shrink: 0; gap: 6px; }

/* ---- Stock shown like LOT: small label left, bold value right (no circle) ---- */
.deal-specs > .spec-row--stock { justify-content: space-between; gap: 6px !important; padding-left: 10px; padding-right: 10px; }
.deal-specs > .spec-row--stock .spec-label-group { flex-shrink: 0; gap: 6px; }
.deal-specs > .spec-row--stock .spec-value,
.ed-list-row .ed-stock-val { color: var(--ed-ink); font-weight: 700; }


/* ---- Responsive Lot / Stock boxes: side by side when the card is wide enough,
        each on its own full row when it is not (laptops / 5-per-row) — lot number never cut ---- */
.deal-row:not(.ed-list) .deal-specs {
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)) !important;
}
.deal-specs > .spec-row--split,
.deal-specs > .spec-row--stock { min-width: 0; }
.deal-specs > .spec-row--split .spec-value,
.deal-specs > .spec-row--stock .spec-value { margin-left: auto; text-align: right; }

/* ---- 1 or 2 cards in total: centre them (pure CSS, works even without the page script) ---- */
.deal-row:not(.ed-list):has(> .deal-col:last-child:nth-child(-n+2)) {
    justify-content: center !important;
}
