:root {
    color-scheme: light;
    font-family: Arial, "Noto Sans KR", sans-serif;
    color: #20242a;
    background: #f6f7f9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header,
.site-footer,
.hero-block,
.content-block {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

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

.site-header nav {
    display: flex;
    gap: 20px;
}

.site-brand {
    font-weight: 700;
}

.hero-block {
    margin-top: 48px;
    padding: 64px;
    border-radius: 24px;
    background: #20242a;
    color: #fff;
}

.hero-block h1 {
    margin: 8px 0 16px;
    font-size: clamp(32px, 6vw, 64px);
}

.eyebrow {
    margin: 0;
    font-weight: 700;
}

.content-block {
    padding-block: 64px;
}

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

.product-card h3 {
    margin: 16px 0 8px;
}

.product-card p {
    color: #68707b;
}

.product-image,
.product-detail-image {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    min-height: 220px;
    border-radius: 16px;
    background: #e9ecf0;
    color: #68707b;
}

.product-image img,
.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-label {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #20242a;
    color: #fff;
    font-size: 12px;
}

.product-image .product-label {
    position: absolute;
    top: 12px;
    left: 12px;
}

.product-price,
.product-detail-price {
    font-size: 20px;
    font-weight: 700;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    gap: 48px;
    width: min(1120px, calc(100% - 32px));
    margin: 48px auto 80px;
}

.product-detail-image {
    min-height: 480px;
}

.product-detail-summary h1 {
    margin: 16px 0;
}

.product-description {
    grid-column: 1 / -1;
    padding-top: 48px;
    border-top: 1px solid #dfe2e7;
    white-space: pre-line;
}

.product-description img {
    max-width: 100%;
    height: auto;
}

.site-footer {
    padding-block: 32px;
    border-top: 1px solid #dfe2e7;
}

@media (max-width: 640px) {
    .site-header {
        min-height: 60px;
    }

    .hero-block {
        margin-top: 24px;
        padding: 32px 24px;
        border-radius: 16px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .product-image {
        min-height: 160px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 24px;
    }

    .product-detail-image {
        min-height: 320px;
    }
}
