.jm-studio {
    --jm-ink: #261b22;
    --jm-muted: #75656e;
    --jm-blush: #fff7f4;
    --jm-rose: #b76e79;
    --jm-gold: #d7a84f;
    --jm-champagne: #f4e3bf;
    --jm-line: rgba(75, 45, 55, 0.14);
    background: #fffaf7;
    color: var(--jm-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jm-palette-rose {
    --jm-rose: #a84d63;
    --jm-gold: #c98f75;
    --jm-champagne: #f7d7d9;
}

.jm-palette-onyx {
    --jm-ink: #171316;
    --jm-muted: #6f6269;
    --jm-rose: #8f6b3d;
    --jm-gold: #d2a84a;
    --jm-champagne: #f0e5cf;
}

.jm-studio *,
.jm-studio *::before,
.jm-studio *::after {
    box-sizing: border-box;
}

.jm-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 28px;
    min-height: 420px;
    overflow: hidden;
    padding: 42px;
    position: relative;
    background:
        radial-gradient(circle at 85% 18%, rgba(215, 168, 79, 0.34), transparent 28%),
        linear-gradient(135deg, #fffaf7 0%, #f7e8e2 48%, #fff3d8 100%);
    border: 1px solid var(--jm-line);
    border-radius: 8px;
}

.jm-density-compact .jm-hero {
    min-height: 300px;
    padding: 28px;
}

.jm-density-showcase .jm-hero {
    min-height: 560px;
}

.jm-kicker,
.jm-panel__header span {
    display: block;
    color: var(--jm-rose);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.jm-hero h2 {
    max-width: 620px;
    margin: 14px 0 16px;
    color: var(--jm-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 54px;
    font-weight: 500;
    line-height: 1.02;
}

.jm-density-compact .jm-hero h2 {
    font-size: 42px;
}

.jm-density-showcase .jm-hero h2 {
    font-size: 64px;
}

.jm-hero p {
    max-width: 560px;
    margin: 0;
    color: var(--jm-muted);
    font-size: 17px;
    line-height: 1.7;
}

.jm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.jm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--jm-ink);
    border-radius: 4px;
    color: var(--jm-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.jm-button--primary {
    background: var(--jm-ink);
    color: #fffaf7;
}

.jm-button--ghost {
    background: rgba(255, 250, 247, 0.72);
}

.jm-buttons-outline .jm-button,
.jm-buttons-outline .jm-diamond-estimator button,
.jm-buttons-outline .jm-lead-form button {
    background: transparent !important;
    color: var(--jm-ink) !important;
    border: 1px solid var(--jm-ink) !important;
}

.jm-buttons-soft .jm-button,
.jm-buttons-soft .jm-diamond-estimator button,
.jm-buttons-soft .jm-lead-form button {
    background: var(--jm-champagne) !important;
    color: var(--jm-ink) !important;
    border: 1px solid rgba(75, 45, 55, 0.12) !important;
}

.jm-hero__showcase {
    position: relative;
    min-height: 310px;
}

.jm-ring {
    position: absolute;
    right: 12%;
    top: 28%;
    width: min(280px, 72%);
    aspect-ratio: 1;
    border: 24px solid rgba(215, 168, 79, 0.92);
    border-radius: 50%;
    box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.62), 0 28px 58px rgba(75, 45, 55, 0.2);
}

.jm-gem {
    position: absolute;
    transform: rotate(45deg);
    border: 1px solid rgba(255, 255, 255, 0.72);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(183, 110, 121, 0.46) 48%, rgba(215, 168, 79, 0.78));
    box-shadow: 0 20px 44px rgba(183, 110, 121, 0.28);
}

.jm-gem--large {
    right: 28%;
    top: 10%;
    width: 96px;
    height: 96px;
}

.jm-gem--small {
    right: 6%;
    bottom: 18%;
    width: 54px;
    height: 54px;
}

.jm-studio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: 18px;
    margin-top: 18px;
}

.jm-collections,
.jm-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--jm-line);
    border-radius: 8px;
}

.jm-chip,
.jm-filter-reset,
.jm-filters select {
    min-height: 40px;
    padding: 0 13px;
    background: #fffaf7;
    border: 1px solid var(--jm-line);
    border-radius: 4px;
    color: var(--jm-ink);
    font-weight: 700;
}

.jm-panel {
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--jm-line);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(65, 38, 46, 0.08);
}

.jm-cards-editorial .jm-panel,
.jm-cards-editorial .jm-listing-card {
    border-radius: 0;
    box-shadow: none;
}

.jm-cards-minimal .jm-panel,
.jm-cards-minimal .jm-listing-card {
    box-shadow: none;
    background: transparent;
}

.jm-panel--wide {
    grid-row: span 2;
}

.jm-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--jm-line);
}

.jm-panel__header strong {
    color: var(--jm-ink);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jm-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.jm-listing-card {
    overflow: hidden;
    background: #fffaf7;
    border: 1px solid var(--jm-line);
    border-radius: 8px;
}

.jm-listing-card__image {
    background: linear-gradient(135deg, #f8e8df, #fff4d8);
}

.jm-listing-card__image--demo {
    display: block;
    min-height: 180px;
    position: relative;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.86) 0 8%, transparent 9%),
        radial-gradient(circle at 50% 45%, transparent 0 18%, rgba(215, 168, 79, 0.86) 19% 25%, transparent 26%),
        linear-gradient(135deg, #f8e8df, #fff4d8);
}

.jm-listing-card--demo:nth-child(2n) .jm-listing-card__image--demo {
    background:
        radial-gradient(ellipse at 50% 34%, rgba(255, 255, 255, 0.92) 0 7%, transparent 8%),
        radial-gradient(ellipse at 50% 52%, transparent 0 20%, rgba(194, 170, 130, 0.78) 21% 24%, transparent 25%),
        linear-gradient(135deg, #edf3f4, #f8e2d7);
}

.jm-listing-card--demo:nth-child(3n) .jm-listing-card__image--demo {
    background:
        radial-gradient(circle at 52% 42%, rgba(44, 86, 91, 0.82) 0 10%, transparent 11%),
        radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.88) 0 18%, transparent 19%),
        linear-gradient(135deg, #f6ead1, #f7f7f5);
}

.jm-listing-card__image img {
    display: block;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.jm-listing-card__image {
    position: relative;
}

.jm-listing-card__image .jm-hover-image {
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 0.2s ease;
}

.jm-listing-card:hover .jm-hover-image {
    opacity: 1;
}

.jm-lifestyle-strip img,
.jm-gallery-dots img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--jm-line);
}

.jm-lifestyle-strip,
.jm-gallery-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.jm-listing-card__body {
    padding: 16px;
}

.jm-listing-card h3 {
    margin: 0 0 8px;
    color: var(--jm-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 500;
}

.jm-listing-card__meta,
.jm-empty {
    color: var(--jm-muted);
    font-size: 14px;
    line-height: 1.5;
}

.jm-card-tag {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--jm-rose);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jm-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.jm-card-actions a,
.jm-card-actions button {
    min-height: 34px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--jm-line);
    border-radius: 4px;
    color: var(--jm-ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.jm-card-actions button.is-saved {
    background: var(--jm-ink);
    color: #fffaf7;
}

.jm-empty {
    margin: 0;
    padding: 28px;
    background: linear-gradient(135deg, #fffaf7, #fbefe9);
    border: 1px dashed rgba(183, 110, 121, 0.28);
    border-radius: 8px;
}

.jm-diamond-estimator {
    display: grid;
    gap: 14px;
}

.jm-field {
    display: grid;
    gap: 7px;
}

.jm-field label {
    color: var(--jm-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jm-diamond-estimator input,
.jm-diamond-estimator select {
    min-height: 44px;
    width: 100%;
    padding: 0 12px;
    background: #fffaf7;
    border: 1px solid var(--jm-line);
    border-radius: 4px;
    color: var(--jm-ink);
}

.jm-diamond-estimator button {
    min-height: 46px;
    border: 0;
    border-radius: 4px;
    background: var(--jm-ink);
    color: #fffaf7;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jm-estimator-result {
    min-height: 28px;
    color: var(--jm-rose);
    font-size: 18px;
    font-weight: 800;
}

.jm-metals-widget {
    display: grid;
    gap: 10px;
}

.jm-metal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--jm-line);
}

.jm-metal-row:last-child {
    border-bottom: 0;
}

.jm-metal-row strong {
    color: var(--jm-ink);
}

.jm-metal-row span {
    color: var(--jm-rose);
    font-weight: 800;
}

.jm-lead-panel {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 18px;
    padding: 28px;
    background: linear-gradient(135deg, #ffffff, #fff4ed);
    border: 1px solid var(--jm-line);
    border-radius: 8px;
}

.jm-lead-panel h3 {
    margin: 10px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 500;
}

.jm-lead-form {
    display: grid;
    gap: 10px;
}

.jm-lead-form input,
.jm-lead-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    background: #fffaf7;
    border: 1px solid var(--jm-line);
    border-radius: 4px;
    color: var(--jm-ink);
}

.jm-lead-form textarea {
    min-height: 96px;
    resize: vertical;
}

.jm-lead-form output {
    color: var(--jm-rose);
    font-weight: 800;
}

.jm-wishlist {
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--jm-line);
    border-radius: 8px;
}

.jm-saved-list {
    display: grid;
    gap: 10px;
}

.jm-saved-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: #fffaf7;
    border: 1px solid var(--jm-line);
    border-radius: 4px;
}

.jm-saved-item button {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--jm-line);
    background: #fff;
    cursor: pointer;
}

.jm-compare-tray {
    margin-top: 18px;
    padding: 16px;
    background: var(--jm-ink);
    color: #fffaf7;
    border-radius: 8px;
}

.jm-compare-tray__head,
.jm-compare-row {
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 0.6fr 0.6fr;
    gap: 12px;
    align-items: center;
}

.jm-single {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 42px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 20px;
    color: var(--jm-ink);
}

.jm-single__main-image {
    overflow: hidden;
    background: #fffaf7;
    border: 1px solid var(--jm-line);
    border-radius: 8px;
}

.jm-single__main-image img,
.jm-single__main-image .jm-listing-card__image--demo {
    display: block;
    width: 100%;
    min-height: 440px;
    object-fit: cover;
}

.jm-single__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.jm-single__thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 1px solid var(--jm-line);
    border-radius: 4px;
    cursor: pointer;
}

.jm-single__details h1 {
    margin: 12px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    font-weight: 500;
}

.jm-single__price {
    color: var(--jm-rose);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 18px;
}

.jm-single__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0;
}

.jm-single__meta div {
    padding: 12px;
    background: #fffaf7;
    border: 1px solid var(--jm-line);
}

.jm-single__meta dt {
    color: var(--jm-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.jm-single__meta dd {
    margin: 4px 0 0;
}

.jm-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0;
}

.jm-trust-grid div {
    padding: 14px;
    background: #fffaf7;
    border: 1px solid var(--jm-line);
    border-radius: 4px;
}

.jm-trust-grid strong,
.jm-trust-grid span {
    display: block;
}

.jm-trust-grid strong {
    margin-bottom: 5px;
}

.jm-compare-page {
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--jm-line);
    border-radius: 8px;
}

.jm-compare-table {
    display: grid;
    gap: 0;
    overflow-x: auto;
}

.jm-compare-table__row {
    display: grid;
    grid-template-columns: 170px repeat(3, minmax(180px, 1fr));
    min-width: 720px;
}

.jm-compare-table__row > * {
    padding: 12px;
    border-bottom: 1px solid var(--jm-line);
}

.jm-compare-table__row--head {
    background: #fffaf7;
    font-weight: 800;
}

@media (max-width: 860px) {
    .jm-single {
        grid-template-columns: 1fr;
    }
}

.jm-compare-tray__head {
    margin-bottom: 10px;
}

.jm-compare-tray__head button {
    justify-self: end;
    grid-column: 4;
    background: transparent;
    color: #fffaf7;
    border: 1px solid rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.jm-compare-row {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 980px) {
    .jm-hero,
    .jm-studio-grid,
    .jm-lead-panel {
        grid-template-columns: 1fr;
    }

    .jm-hero h2 {
        font-size: 42px;
    }

    .jm-hero__showcase {
        min-height: 220px;
    }
}

@media (max-width: 560px) {
    .jm-hero,
    .jm-panel {
        padding: 22px;
    }

    .jm-hero h2 {
        font-size: 34px;
    }

    .jm-panel__header {
        display: block;
    }
}
