:root {
    color-scheme: light dark;
    --bg: #f4f3ef;
    --surface: #fbfaf7;
    --surface-strong: #e9e7e0;
    --text: #20262f;
    --muted: #68707b;
    --line: #d8d5cc;
    --accent: #1858a8;
    --accent-strong: #0f4486;
    --focus: #d78b16;
    --shadow: 0 16px 40px rgba(32, 38, 47, .08);
    --radius: 14px;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Aptos, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

img { max-width: 100%; }

.site-header {
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.site-header__inner,
.site-main,
.site-footer {
    width: min(1440px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header__inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 750;
    letter-spacing: -.02em;
    text-decoration: none;
}

.brand__mark {
    width: 13px;
    height: 25px;
    border-radius: 4px;
    background: var(--accent);
    transform: skew(-10deg);
}

.site-header__label { color: var(--muted); font-size: .85rem; }
.site-main { min-height: calc(100vh - 160px); padding-block: 56px 88px; }

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .84rem;
    padding-block: 22px 40px;
}

.site-footer p { margin: 0; }

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1, h2, p { overflow-wrap: anywhere; }
h1, h2 { margin-top: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.75rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 2.25rem); }

.catalog-heading { margin-bottom: 38px; }

.catalog-heading__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.batch-range { margin: 0 0 5px; color: var(--muted); font-size: .9rem; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    overflow: hidden;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-card:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.product-card__media {
    display: grid;
    aspect-ratio: 1 / 1;
    place-items: center;
    border-bottom: 1px solid var(--line);
    background: var(--surface-strong);
    overflow: hidden;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-card__placeholder,
.product-main-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--muted);
    font-size: .78rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.product-card__title {
    display: block;
    overflow: hidden;
    padding: 15px 16px 17px;
    font-size: .92rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-notice,
.empty-state,
.error-panel {
    margin-top: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 22px 24px;
}

.batch-notice { color: var(--muted); }
.batch-notice strong { color: var(--text); }
.empty-state { max-width: 620px; padding: 44px; }
.empty-state p { margin-bottom: 0; color: var(--muted); }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: .86rem;
}

.breadcrumb a { color: var(--accent); text-underline-offset: 3px; }

.product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 48px;
    align-items: start;
}

.product-main-media {
    display: grid;
    min-height: 520px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.product-main-image { max-height: 680px; object-fit: contain; }
.product-summary { padding: 30px 0; }
.product-summary h1 { max-width: 16ch; }

.product-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-top: 30px;
    border-block: 1px solid var(--line);
    padding-block: 18px;
}

.product-price span { color: var(--muted); font-size: .84rem; }
.product-price strong { font-size: 1.6rem; letter-spacing: -.02em; }
.product-specs { margin-top: 34px; }
.product-specs h2 { margin-bottom: 16px; font-size: 1rem; letter-spacing: 0; }
.product-specs ul { margin: 0; padding: 0; list-style: none; }

.product-specs li {
    border-top: 1px solid var(--line);
    padding: 12px 0;
    color: var(--muted);
}

.content-section { margin-top: 96px; }
.section-heading { max-width: 660px; margin-bottom: 28px; }
.product-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.product-gallery__item,
.detail-image {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.product-gallery__item { display: grid; min-height: 320px; place-items: center; }
.product-gallery__item img { max-height: 560px; object-fit: contain; }
.product-description { max-width: 1040px; margin-inline: auto; }
.detail-image + .detail-image { margin-top: 22px; }

.responsive-image {
    display: block;
    width: 100%;
    height: auto;
}

.error-panel { max-width: 680px; margin: 7vh auto 0; padding: clamp(32px, 7vw, 72px); }
.error-panel p:not(.eyebrow) { color: var(--muted); }

.button-link {
    display: inline-block;
    margin-top: 18px;
    border-radius: 8px;
    background: var(--accent);
    color: #f7f9fc;
    padding: 11px 17px;
    font-weight: 700;
    text-decoration: none;
}

.button-link:hover { background: var(--accent-strong); }

@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .product-main-media { min-height: 440px; }
}

@media (max-width: 820px) {
    .site-header__inner, .site-main, .site-footer { width: min(100% - 32px, 1440px); }
    .site-main { padding-block: 40px 64px; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-hero { grid-template-columns: 1fr; gap: 26px; }
    .product-main-media { min-height: 360px; }
    .product-summary { padding-top: 12px; }
    .content-section { margin-top: 68px; }
}

@media (max-width: 520px) {
    .site-header__label { display: none; }
    .catalog-heading__row { display: block; }
    .batch-range { margin-top: 12px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-card__title { padding: 12px; font-size: .84rem; }
    .product-gallery { grid-template-columns: 1fr; }
    .product-gallery__item { min-height: 240px; }
    .product-main-media { min-height: 300px; }
    .breadcrumb { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #181b20;
        --surface: #22262d;
        --surface-strong: #2a2f37;
        --text: #eceef1;
        --muted: #a8afb9;
        --line: #3a4049;
        --accent: #78aef0;
        --accent-strong: #92bdf2;
        --focus: #f0ad43;
        --shadow: 0 16px 40px rgba(0, 0, 0, .25);
    }

    .product-card__image { mix-blend-mode: normal; }
}
