:root {
    --yellow: #f4c400;
    --yellow-2: #ffd323;
    --graphite: #17191c;
    --graphite-2: #23262b;
    --graphite-3: #30343a;
    --page: #f4f5f6;
    --white: #ffffff;
    --text: #1c1d20;
    --muted: #747980;
    --green: #187d43;
    --red: #9d3a3a;
    --border: #e1e3e6;
    --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--page);
}

a { color: inherit; }

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    background: var(--graphite);
    color: var(--white);
    border-bottom: 4px solid var(--yellow);
}

.header-row {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--yellow);
    color: var(--graphite);
    font-weight: 900;
    border-radius: 8px;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: #aeb3ba;
    margin-top: 2px;
}

.nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    font-weight: 700;
}

.badge {
    display: inline-grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    padding: 0 7px;
    margin-left: 4px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--graphite);
    font-size: 12px;
}

.hero {
    padding: 72px 0 66px;
    color: var(--white);
    background:
        linear-gradient(110deg, rgba(23,25,28,.98), rgba(35,38,43,.94));
}

.hero h1 {
    max-width: 760px;
    margin: 6px 0 12px;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-text {
    max-width: 720px;
    color: #c2c6cb;
    font-size: 18px;
    line-height: 1.6;
}

.eyebrow {
    margin: 0;
    color: var(--yellow);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
}

.search {
    max-width: 900px;
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px;
    background: var(--white);
    border-radius: 14px;
}

.search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 15px 16px;
    font-size: 18px;
}

button,
.button {
    border: 0;
    border-radius: 9px;
    background: var(--yellow);
    color: var(--graphite);
    padding: 14px 20px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

button:hover,
.button:hover {
    background: var(--yellow-2);
}

.section {
    padding: 48px 0 70px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h1,
.section-heading h2 {
    margin: 4px 0 0;
    font-size: 32px;
}

.muted { color: var(--muted); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.product-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.product-image {
    height: 220px;
    display: grid;
    place-items: center;
    background: #e9ebed;
    color: #c1c5ca;
    font-size: 54px;
    font-weight: 900;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--white);
}

.product-body { padding: 20px; }

.product-brand {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-card h3 {
    margin: 0;
    font-size: 19px;
}

.product-card h3 a {
    text-decoration: none;
}

.sku {
    color: var(--muted);
    font-size: 14px;
}

.product-footer {
    margin-top: 20px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.product-footer strong,
.product-footer small {
    display: block;
}

.product-footer small {
    color: var(--muted);
    margin-top: 3px;
}

.stock {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
}

.stock.in {
    color: var(--green);
    background: #e8f6ee;
}

.stock.out {
    color: var(--red);
    background: #f8ecec;
}

.empty {
    padding: 34px;
    background: var(--white);
    border: 1px dashed #c9ccd0;
    border-radius: var(--radius);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 40px;
    align-items: start;
}

.detail-image {
    min-height: 430px;
    display: grid;
    place-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: #d1d3d6;
    font-size: 100px;
    font-weight: 900;
}

.detail-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.detail-content h1 {
    margin: 5px 0 8px;
    font-size: 42px;
    line-height: 1.08;
}

.description {
    line-height: 1.7;
    color: #4f5358;
}

.numbers {
    margin-top: 28px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.numbers h3 { margin-top: 0; }

.number-row {
    padding: 9px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
}

.buy-box {
    margin-top: 24px;
    padding: 22px;
    display: grid;
    gap: 18px;
    background: var(--graphite);
    color: var(--white);
    border-radius: var(--radius);
}

.buy-box .price {
    display: block;
    font-size: 30px;
}

.buy-box small {
    color: #b8bdc3;
}

.add-form {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 8px;
}

.add-form input {
    width: 100%;
    border: 0;
    border-radius: 9px;
    padding: 12px;
    font-size: 16px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.cart-list,
.summary {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cart-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-line:last-child { border-bottom: 0; }

.cart-line span,
.cart-line strong {
    display: block;
}

.cart-line span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.cart-price { text-align: right; }

.cart-price a {
    display: inline-block;
    margin-top: 7px;
    color: var(--red);
    font-size: 13px;
}

.summary {
    padding: 22px;
    display: grid;
    gap: 7px;
}

.summary > span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.summary > strong {
    font-size: 25px;
}

.summary .button {
    margin-top: 16px;
    text-align: center;
}

.disabled {
    opacity: .5;
    pointer-events: none;
}

.link-button {
    padding: 0;
    background: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.link-button:hover {
    background: none;
    color: var(--text);
}

.site-footer {
    padding: 30px 0;
    background: var(--graphite);
    color: #aeb3ba;
}

.site-footer strong { color: var(--white); }

@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail,
    .cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 24px, 1180px); }
    .header-row { align-items: flex-start; padding: 14px 0; }
    .nav { gap: 12px; font-size: 14px; }
    .brand small { display: none; }

    .hero { padding: 48px 0; }
    .search { grid-template-columns: 1fr; }
    .search button { width: 100%; }

    .product-grid { grid-template-columns: 1fr; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .product-footer { align-items: flex-start; flex-direction: column; }

    .detail-content h1 { font-size: 34px; }
    .detail-image { min-height: 300px; }
}

.product-category {
    margin: 8px 0;
    color: #747980;
    font-size: 13px;
    font-weight: 700;
}

.product-description {
    margin: 10px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

input[type="checkbox"] {
    width: auto;
    max-width: none;
    margin: 0 8px 0 0;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


