:root {
    color-scheme: dark;
    --bg: #020202;
    --surface: #101010;
    --surface-2: #181818;
    --text: #f7f4ef;
    --muted: #bfb8ae;
    --line: rgba(255, 255, 255, 0.14);
    --red: #df161b;
    --red-dark: #8c0d10;
    --gold: #cf9a37;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.diecast-page {
    width: 100%;
    margin: 0;
}

.reference-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.reference-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-links {
    position: absolute;
    inset: 0;
}

.hotspot {
    position: absolute;
    display: block;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
    text-indent: 120%;
}

.hotspot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
    background: rgba(223, 22, 27, 0.18);
}

.hotspot:hover {
    background: rgba(255, 255, 255, 0.04);
}

.hotspot-menu {
    left: 0.8%;
    top: 1.2%;
    width: 3.4%;
    height: 6.6%;
    border-radius: 999px;
}

.hotspot-logo {
    left: 5%;
    top: 1.2%;
    width: 18%;
    height: 7.8%;
}

.hotspot-home {
    left: 26.2%;
    top: 2%;
    width: 6.5%;
    height: 7%;
}

.hotspot-diecast {
    left: 33.3%;
    top: 2%;
    width: 7.4%;
    height: 7%;
}

.hotspot-customs {
    left: 41.7%;
    top: 2%;
    width: 8%;
    height: 7%;
}

.hotspot-designs {
    left: 51.7%;
    top: 2%;
    width: 7.4%;
    height: 7%;
}

.hotspot-about {
    left: 60.1%;
    top: 2%;
    width: 6.4%;
    height: 7%;
}

.hotspot-contact {
    left: 66.8%;
    top: 2%;
    width: 8%;
    height: 7%;
}

.hotspot-follow {
    left: 77.4%;
    top: 1.3%;
    width: 15.8%;
    height: 7.2%;
    border-radius: 8px;
}

.hotspot-hotwheels {
    left: 1.6%;
    top: 61.2%;
    width: 16.4%;
    height: 21%;
}

.hotspot-m2 {
    left: 19%;
    top: 61.2%;
    width: 16.4%;
    height: 21%;
}

.hotspot-kaido {
    left: 36.2%;
    top: 61.2%;
    width: 16.4%;
    height: 21%;
}

.hotspot-custom-builds {
    left: 52.7%;
    top: 61.2%;
    width: 14.2%;
    height: 21%;
}

.hotspot-display {
    left: 67.8%;
    top: 61.2%;
    width: 13.8%;
    height: 21%;
}

.hotspot-card-hot-arrow,
.hotspot-card-m2-arrow,
.hotspot-card-kaido-arrow,
.hotspot-card-custom-arrow,
.hotspot-card-display-arrow {
    top: 77%;
    width: 3%;
    height: 5.6%;
    border-radius: 999px;
}

.hotspot-card-hot-arrow {
    left: 10.6%;
}

.hotspot-card-m2-arrow {
    left: 22.8%;
}

.hotspot-card-kaido-arrow {
    left: 35.1%;
}

.hotspot-card-custom-arrow {
    left: 47.4%;
}

.hotspot-card-display-arrow {
    left: 55.5%;
}

.hotspot-contact-panel {
    left: 83%;
    top: 60.2%;
    width: 15.6%;
    height: 32.5%;
    border-radius: 8px;
}

.hotspot-contact-email {
    left: 88%;
    top: 71.5%;
    width: 10.2%;
    height: 4.8%;
}

.inventory-section,
.contact-section {
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: clamp(22px, 4vw, 42px) clamp(14px, 4vw, 52px) 0;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.eyebrow {
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.section-heading h2,
.contact-section h2 {
    margin-bottom: 8px;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    line-height: 1.05;
}

.section-heading p,
.inventory-card p,
.contact-section p {
    color: var(--muted);
    line-height: 1.55;
}

#feedStatus {
    margin-bottom: 0;
}

.inventory-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.button,
.filter-row button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(223, 22, 27, 0.65);
    border-radius: 6px;
    padding: 9px 12px;
    background: rgba(10, 10, 10, 0.86);
    color: #fff;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 850;
    text-decoration: none;
    text-transform: uppercase;
}

.button-primary,
.filter-row button.active {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.featured-grid,
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inventory-card,
.empty-state,
.contact-section {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.inventory-card {
    position: relative;
    min-height: 100%;
    overflow: hidden;
}

.photo-frame {
    display: grid;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
        var(--surface-2);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-frame > div {
    color: rgba(255, 255, 255, 0.82);
    font-size: 2.3rem;
    font-weight: 950;
}

.card-body {
    padding: 15px;
}

.card-meta,
.status-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-meta span,
.status-badge {
    width: fit-content;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 8px;
    color: #d8d6d2;
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.card-title {
    margin: 12px 0 8px;
    font-size: 1.16rem;
    line-height: 1.16;
}

.price-line {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 900;
}

.status-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.72);
}

.status-coming-soon {
    border-color: rgba(207, 154, 55, 0.75);
    color: var(--gold);
}

.status-sold {
    border-color: rgba(223, 22, 27, 0.82);
    color: #fecaca;
}

.status-personal-collection {
    border-color: rgba(169, 173, 180, 0.72);
    color: #e7e8ea;
}

.inventory-card.is-sold::after {
    position: absolute;
    inset: 0;
    display: grid;
    content: "SOLD";
    place-items: center;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 2.2rem;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.card-actions {
    margin-top: 14px;
}

.empty-state {
    grid-column: 1 / -1;
    min-height: 190px;
    padding: 24px;
    color: var(--muted);
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 22px;
    align-items: center;
    margin-top: clamp(22px, 4vw, 42px);
    padding-bottom: clamp(22px, 4vw, 42px);
}

.contact-card {
    display: grid;
    gap: 10px;
}

.contact-card a,
.contact-card span {
    overflow-wrap: anywhere;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px 13px;
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 1080px) {
    .featured-grid,
    .inventory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inventory-heading,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .filter-row {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .inventory-section,
    .contact-section {
        padding-inline: 12px;
    }

    .filter-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .filter-row button {
        width: 100%;
    }

    .featured-grid,
    .inventory-grid {
        grid-template-columns: 1fr;
    }

    .photo-frame {
        aspect-ratio: 16 / 11;
    }
}
