﻿.diamond-page {
    --diamond-bg: #fbfaf7;
    --diamond-black: #0c0b0a;
    --diamond-gold: #c5a880;
    --diamond-green: #5f7865;
    --diamond-border: rgba(197, 168, 128, .25);
    --diamond-muted: #716b62;
    --diamond-line: rgba(12, 11, 10, .09);
    --diamond-shadow: 0 18px 42px rgba(12, 11, 10, .06);
    background: var(--diamond-bg);
    color: var(--diamond-black);
    font-family: Inter, Outfit, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

.diamond-page * {
    box-sizing: border-box;
}

.diamond-page a {
    color: inherit;
}

.diamond-page .diamond-hero {
    background: linear-gradient(135deg, #0c0b0a 0%, #211d18 62%, #5f7865 140%);
    color: #fff;
    padding: clamp(56px, 8vw, 92px) 24px;
}

.diamond-page .diamond-hero__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.diamond-page .diamond-kicker {
    color: var(--diamond-gold);
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.diamond-page .diamond-hero h1,
.diamond-page .diamond-filter__top h2,
.diamond-page .diamond-filter-card h2,
.diamond-page .diamond-empty h1,
.diamond-page .diamond-empty h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: 0;
}

.diamond-page .diamond-hero h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
    margin: 0 0 16px;
}

.diamond-page .diamond-hero p {
    color: rgba(255, 255, 255, .74);
    font-size: 17px;
    margin: 0;
    max-width: 560px;
}

.diamond-page .diamond-section {
    margin: 0 auto;
    padding-top: 72px;
}

.diamond-page .diamond-section--message {
    display: grid;
    min-height: 60vh;
    place-items: center;
}

.diamond-page .diamond-filter {
    margin-bottom: 28px;
}

.diamond-page .diamond-shell--sidebar {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
}

.diamond-page--sidebar .diamond-filter {
    background: #fff;
    border: 1px solid var(--diamond-border);
    border-radius: 16px;
    box-shadow: var(--diamond-shadow);
    margin-bottom: 0;
    padding: 18px;
    position: sticky;
    top: 24px;
}

.diamond-page--sidebar .diamond-results {
    min-width: 0;
}

.diamond-page .diamond-filter__top {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.diamond-page .diamond-filter__top h2 {
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.08;
    margin: 0;
}

.diamond-page .diamond-sort {
    min-width: 210px;
}

.diamond-page .diamond-sort label {
    color: var(--diamond-muted);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.diamond-page .diamond-sort select,
.diamond-page .diamond-number-row input {
    background: #fff;
    border: 1px solid var(--diamond-border);
    border-radius: 999px;
    color: var(--diamond-black);
    font: inherit;
    height: 42px;
    outline: none;
    padding: 0 14px;
    width: 100%;
}

.diamond-page .diamond-sort select:focus,
.diamond-page .diamond-number-row input:focus {
    border-color: var(--diamond-green);
    box-shadow: 0 0 0 3px rgba(95, 120, 101, .14);
}

.diamond-page .diamond-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.diamond-page .diamond-active-filters span {
    background: rgba(95, 120, 101, .1);
    border: 1px solid rgba(95, 120, 101, .22);
    border-radius: 999px;
    color: #405845;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 11px;
}

.diamond-page .diamond-filter-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.diamond-page--sidebar .diamond-filter__top {
    align-items: stretch;
    flex-direction: column;
}

.diamond-page--sidebar .diamond-filter__top h2 {
    font-size: 30px;
}

.diamond-page--sidebar .diamond-sort {
    min-width: 0;
}

.diamond-page--sidebar .diamond-filter-grid {
    grid-template-columns: 1fr;
}

.diamond-page .diamond-filter-card {
    background: #fff;
    border: 1px solid var(--diamond-border);
    border-radius: 16px;
    box-shadow: var(--diamond-shadow);
    min-height: 214px;
    padding: 18px;
    position: relative;
}

.diamond-page .diamond-filter-card--shape {
    grid-column: 1 / -1;
}

.diamond-page--sidebar .diamond-filter-card {
    box-shadow: none;
    min-height: 0;
}

.diamond-page--sidebar .diamond-filter-actions {
    justify-content: stretch;
}

.diamond-page--sidebar .diamond-filter-actions>* {
    flex: 1;
}

.diamond-page .diamond-filter-card__head {
    align-items: baseline;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.diamond-page .diamond-filter-card h2 {
    font-size: 24px;
    line-height: 1.1;
    margin: 0;
}

.diamond-page .diamond-filter-card__value {
    color: var(--diamond-green);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.diamond-page .diamond-shape-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(11, minmax(0, 1fr));
}

.diamond-page--sidebar .diamond-shape-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.diamond-page .diamond-shape {
    align-items: center;
    background: #fbfaf7;
    border: 1px solid var(--diamond-border);
    border-radius: 12px;
    color: var(--diamond-black);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    gap: 7px;
    min-height: 78px;
    padding: 10px 6px;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.diamond-page .diamond-shape:hover,
.diamond-page .diamond-shape.is-selected {
    background: rgba(197, 168, 128, .13);
    border-color: var(--diamond-green);
    box-shadow: 0 8px 18px rgba(95, 120, 101, .12);
    transform: translateY(-1px);
}

.diamond-page .diamond-shape__image {
    align-items: center;
    display: flex;
    height: 34px;
    justify-content: center;
    width: 100%;
}

.diamond-page .diamond-shape__image img {
    display: block;
    height: 32px;
    max-width: 42px;
    object-fit: contain;
    width: 100%;
}

.diamond-page .diamond-step-icons,
.diamond-page .diamond-range-ends {
    align-items: center;
    color: var(--diamond-gold);
    display: flex;
    font-size: 14px;
    justify-content: space-between;
}

.diamond-page .diamond-step-icons {
    left: 18px;
    pointer-events: none;
    position: absolute;
    right: 18px;
    z-index: 1;
}

.diamond-page .diamond-step-icons img {
    display: block;
    height: 24px;
    object-fit: contain;
    width: 24px;
}

.diamond-page .diamond-step-icons img:last-child {
    height: 32px;
    width: 32px;
}

.diamond-page [data-format="carat"] .diamond-step-icons {
    top: 118px;
}

.diamond-page [data-step-filter] .diamond-range,
.diamond-page [data-format="carat"] .diamond-range {
    margin-left: 36px;
    margin-right: 36px;
}

.diamond-page .diamond-range {
    height: 34px;
    margin: 10px 0 8px;
    position: relative;
}

.diamond-page .diamond-range__track,
.diamond-page .diamond-range__active {
    border-radius: 999px;
    height: 5px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.diamond-page .diamond-range__track {
    background: rgba(12, 11, 10, .1);
}

.diamond-page .diamond-range__active {
    background: linear-gradient(90deg, var(--diamond-green), var(--diamond-gold));
    right: auto;
}

.diamond-page .diamond-range input[type="range"] {
    appearance: none;
    background: transparent;
    height: 34px;
    left: 0;
    margin: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
}

.diamond-page .diamond-range input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    background: #fff;
    border: 3px solid var(--diamond-green);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(12, 11, 10, .18);
    cursor: pointer;
    height: 19px;
    pointer-events: auto;
    width: 19px;
}

.diamond-page .diamond-range input[type="range"]::-moz-range-thumb {
    background: #fff;
    border: 3px solid var(--diamond-green);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(12, 11, 10, .18);
    cursor: pointer;
    height: 14px;
    pointer-events: auto;
    width: 14px;
}

.diamond-page .diamond-range-labels {
    display: flex;
    gap: 6px;
    justify-content: space-between;
    margin-top: 4px;
}

.diamond-page .diamond-range-labels button {
    background: none;
    border: 0;
    color: var(--diamond-muted);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    min-width: 0;
    padding: 4px 0;
}

.diamond-page .diamond-range-labels button.is-active {
    color: var(--diamond-black);
}

.diamond-page .diamond-number-row {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
}

.diamond-page .diamond-number-row--price {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.diamond-page .diamond-number-row button {
    background: #fff;
    border: 1px solid var(--diamond-border);
    border-radius: 50%;
    color: var(--diamond-green);
    cursor: pointer;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    height: 34px;
    line-height: 1;
}

.diamond-page .diamond-range-ends {
    color: var(--diamond-muted);
    font-size: 12px;
    font-weight: 700;
}

.diamond-page .diamond-filter-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 18px;
}

.diamond-page .diamond-filter-actions button,
.diamond-page .diamond-clear,
.diamond-page .diamond-cta {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    letter-spacing: .08em;
    min-height: 42px;
    padding: 0 20px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.diamond-page .diamond-filter-actions button,
.diamond-page .diamond-cta {
    background: var(--diamond-black);
    border: 1px solid var(--diamond-black);
    color: #fff;
    cursor: pointer;
}

.diamond-page .diamond-filter-actions button:hover,
.diamond-page .diamond-cta:hover {
    background: var(--diamond-green);
    border-color: var(--diamond-green);
    color: #fff;
    transform: translateY(-1px);
}

.diamond-page .diamond-clear {
    background: #fff;
    border: 1px solid var(--diamond-border);
    color: var(--diamond-black);
}

.diamond-page .diamond-clear:hover {
    border-color: var(--diamond-gold);
    color: var(--diamond-green);
}

.diamond-page .diamond-results-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 30px 0 12px;
}

.diamond-page .diamond-results-head p {
    color: var(--diamond-muted);
    font-weight: 700;
    margin: 0;
}

.diamond-page .diamond-table-wrap {
    background: #fff;
    border: 1px solid var(--diamond-border);
    border-radius: 16px;
    box-shadow: var(--diamond-shadow);
    overflow-x: auto;
}

.diamond-page .diamond-table {
    border-collapse: collapse;
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}

.diamond-page .diamond-table th {
    background: #11100e;
    color: #e7d6bf;
    font-size: 11px;
    letter-spacing: .14em;
    padding: 16px;
    text-align: left;
    text-transform: uppercase;
}

.diamond-page .diamond-table td {
    border-bottom: 1px solid var(--diamond-line);
    color: #2d2924;
    font-size: 14px;
    padding: 16px;
    vertical-align: middle;
    word-break: normal;
}

.diamond-page .diamond-table th:nth-child(1),
.diamond-page .diamond-table td:nth-child(1) {
    width: 42%;
}

.diamond-page .diamond-table th:nth-child(2),
.diamond-page .diamond-table td:nth-child(2),
.diamond-page .diamond-table th:nth-child(3),
.diamond-page .diamond-table td:nth-child(3),
.diamond-page .diamond-table th:nth-child(4),
.diamond-page .diamond-table td:nth-child(4),
.diamond-page .diamond-table th:nth-child(5),
.diamond-page .diamond-table td:nth-child(5) {
    width: 10%;
}

.diamond-page .diamond-table th:nth-child(6),
.diamond-page .diamond-table td:nth-child(6) {
    width: 18%;
}

.diamond-page .diamond-table tbody tr:last-child td {
    border-bottom: 0;
}

.diamond-page .diamond-table tbody tr:hover {
    background: rgba(197, 168, 128, .08);
}

.diamond-page .diamond-product {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
    text-decoration: none;
}

.diamond-page .diamond-product img {
    background: #fbfaf7;
    border: 1px solid var(--diamond-border);
    border-radius: 10px;
    height: 58px;
    object-fit: cover;
    width: 58px;
}

.diamond-page .diamond-product span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    min-width: 0;
}

.diamond-page .diamond-price {
    color: var(--diamond-green);
    font-weight: 800;
    white-space: nowrap;
}

.diamond-page .diamond-empty {
    background: #fff;
    border: 1px solid var(--diamond-border);
    border-radius: 16px;
    margin: 0;
    padding: 58px 24px;
    text-align: center;
}

.diamond-page .diamond-empty__mark {
    color: var(--diamond-gold);
    display: block;
    font-size: 36px;
    margin-bottom: 10px;
}

.diamond-page .diamond-empty h1,
.diamond-page .diamond-empty h2 {
    font-size: 32px;
    margin: 0 0 10px;
}

.diamond-page .diamond-empty p {
    color: var(--diamond-muted);
    margin: 0 auto 20px;
    max-width: 420px;
}

.diamond-page .diamond-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
}

.diamond-page .diamond-pagination .page-numbers {
    align-items: center;
    background: #fff;
    border: 1px solid var(--diamond-border);
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    min-height: 38px;
    min-width: 38px;
    padding: 0 13px;
    text-decoration: none;
}

.diamond-page .diamond-pagination .page-numbers.current {
    background: var(--diamond-green);
    border-color: var(--diamond-green);
    color: #fff;
}

@media (max-width: 1100px) {
    .diamond-page .diamond-shell--sidebar {
        grid-template-columns: 1fr;
    }

    .diamond-page--sidebar .diamond-filter {
        position: static;
    }

    .diamond-page .diamond-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .diamond-page .diamond-shape-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .diamond-page .diamond-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .diamond-page .diamond-filter__top,
    .diamond-page .diamond-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .diamond-page .diamond-sort {
        min-width: 0;
        width: 100%;
    }

    .diamond-page .diamond-filter-grid {
        grid-template-columns: 1fr;
    }

    .diamond-page .diamond-filter-card {
        min-height: 0;
    }

    .diamond-page .diamond-shape-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .diamond-page .diamond-range-labels {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .diamond-page .diamond-range-labels button {
        min-width: 38px;
    }

    .diamond-page .diamond-table {
        min-width: 760px;
    }
}
