.gem-collection-section {
    --gem-shell-height: min(610px, calc(100vh - 170px));
    --gem-gap: 16px;

    position: relative;
    padding: 50px 0 50px;
    background: linear-gradient(to bottom, #f8f4ef 0%, #ffffff 48%, #f6f1eb 100%);
    overflow: hidden;
}

.gem-collection-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0) 26%),
        radial-gradient(circle at 85% 78%, rgba(0, 0, 0, 0.025) 0%, rgba(0, 0, 0, 0) 24%);
}

.gem-collection-head {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto 18px;
    text-align: center;
}

.gem-collection-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: #7a6e61;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.gem-collection-title {
    margin: 0;
    color: #211d19;
    font-size: 52px;
    line-height: 1.04;
    font-weight: 400;
    text-transform: uppercase;
    font-family: "Times New Roman", Georgia, serif;
}

.gem-collection-subtitle {
    margin: 10px auto 0;
    max-width: 650px;
    color: #716960;
    font-size: 15px;
    line-height: 1.68;
}

.gem-collection-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.96fr);
    gap: var(--gem-gap);
    align-items: stretch;
}

/* feature */
.gem-collection-feature {
    min-width: 0;
}

.gem-collection-feature-link {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: var(--gem-shell-height);
    min-height: var(--gem-shell-height);
    text-decoration: none;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(180deg, #fcfaf7 0%, #efe7de 100%);
    border: 1px solid rgba(33, 29, 25, 0.08);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.07);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.gem-collection-feature-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.11);
    border-color: rgba(33, 29, 25, 0.14);
}

.gem-collection-feature-image {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 34%, rgba(255,255,255,0.96) 0%, rgba(244,237,228,0.95) 50%, rgba(233,223,211,0.96) 100%);
    overflow: hidden;
}

.gem-collection-feature-image img {
    max-width: 62%;
    max-height: 68%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 24px 20px rgba(0, 0, 0, 0.12));
    transition: transform 0.65s ease;
}

.gem-collection-feature-link:hover .gem-collection-feature-image img {
    transform: scale(1.05) rotate(-2deg);
}

.gem-collection-feature-content {
    padding: 18px 22px 18px;
}

.gem-collection-tag {
    display: inline-block;
    margin-bottom: 8px;
    color: #8b7d6e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.gem-collection-feature-content h3 {
    margin: 0 0 8px;
    color: #1f1b18;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 400;
    font-family: "Times New Roman", Georgia, serif;
}

.gem-collection-feature-content p {
    margin: 0;
    color: #675f57;
    font-size: 15px;
    line-height: 1.65;
}

.gem-collection-feature-bottom {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(33, 29, 25, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.gem-collection-price {
    color: #171411;
    font-size: 24px;
    font-weight: 700;
}

.gem-collection-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #1b1815;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: transform 0.3s ease, background 0.3s ease;
}

.gem-collection-feature-link:hover .gem-collection-cta {
    transform: translateY(-1px);
    background: #000000;
}

/* side cards */
.gem-collection-side {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: var(--gem-gap);
    height: var(--gem-shell-height);
}

.gem-collection-card {
    min-width: 0;
}

.gem-collection-card-link {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    height: 100%;
    text-decoration: none;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(33, 29, 25, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.gem-collection-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.09);
    border-color: rgba(33, 29, 25, 0.14);
}

.gem-collection-card-image {
    height: 128px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gem-collection-card.sapphire .gem-collection-card-image {
    background: linear-gradient(180deg, #f5f6fb 0%, #dfe5f5 100%);
}

.gem-collection-card.ruby .gem-collection-card-image {
    background: linear-gradient(180deg, #fbf4f4 0%, #f3dede 100%);
}

.gem-collection-card.pearl .gem-collection-card-image {
    background: linear-gradient(180deg, #faf8f4 0%, #ece6dc 100%);
}

.gem-collection-card-image img {
    max-width: 66%;
    max-height: 66%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.08));
    transition: transform 0.45s ease;
}

.gem-collection-card-link:hover .gem-collection-card-image img {
    transform: scale(1.05);
}

.gem-collection-card-content {
    min-width: 0;
}

.gem-collection-card-label {
    display: inline-block;
    margin-bottom: 6px;
    color: #8d806f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.gem-collection-card-content h3 {
    margin: 0 0 6px;
    color: #201c18;
    font-size: 22px;
    line-height: 1.12;
    font-weight: 400;
    font-family: "Times New Roman", Georgia, serif;
}

.gem-collection-card-content p {
    margin: 0 0 10px;
    color: #6f665e;
    font-size: 14px;
    line-height: 1.5;
}

.gem-collection-card-price {
    color: #171411;
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 1399px) {
    .gem-collection-section {
        --gem-shell-height: 575px;
    }

    .gem-collection-feature-image img {
        max-width: 66%;
        max-height: 70%;
    }

    .gem-collection-card-link {
        grid-template-columns: 118px minmax(0, 1fr);
        padding: 12px;
    }

    .gem-collection-card-image {
        height: 118px;
    }

    .gem-collection-card-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 1199px) {
    .gem-collection-title {
        font-size: 44px;
    }

    .gem-collection-layout {
        grid-template-columns: 1fr;
    }

    .gem-collection-feature-link,
    .gem-collection-side {
        height: auto;
        min-height: 0;
    }

    .gem-collection-feature-link {
        grid-template-rows: 380px auto;
    }

    .gem-collection-side {
        grid-template-rows: none;
    }

    .gem-collection-card-link {
        min-height: 150px;
    }
}

@media (max-width: 767px) {
    .gem-collection-section {
        padding: 58px 0 62px;
    }

    .gem-collection-head {
        margin-bottom: 28px;
    }

    .gem-collection-eyebrow {
        font-size: 11px;
        letter-spacing: 1.3px;
    }

    .gem-collection-title {
        font-size: 30px;
    }

    .gem-collection-subtitle {
        font-size: 14px;
        line-height: 1.65;
    }

    .gem-collection-feature-link {
        height: auto;
        min-height: 0;
        grid-template-rows: 280px auto;
        border-radius: 24px;
    }

    .gem-collection-feature-content {
        padding: 22px 18px 20px;
    }

    .gem-collection-feature-content h3 {
        font-size: 28px;
    }

    .gem-collection-feature-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .gem-collection-cta {
        min-width: 100%;
    }

    .gem-collection-side {
        height: auto;
        gap: 14px;
    }

    .gem-collection-card-link {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        border-radius: 22px;
    }

    .gem-collection-card-image {
        height: 180px;
        border-radius: 18px;
    }

    .gem-collection-card-content h3 {
        font-size: 22px;
    }
}