* { box-sizing: border-box; }
:root {
    --bg: #f7f3ed;
    --card: #ffffff;
    --text: #17120f;
    --muted: #6d625b;
    --line: #e2d8ce;
    --accent: #c81919;
    --accent-dark: #9e1111;
}
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}
a { color: inherit; }
.site-header, .site-footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 20px;
}
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
}
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
}
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--accent); }
.site-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 60px;
}
.hero {
    padding: 78px 0 58px;
    max-width: 820px;
}
.hero.compact { padding: 46px 0 34px; }
.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 13px;
    font-weight: 700;
}
h1 { font-size: clamp(38px, 6vw, 72px); line-height: .98; margin: 8px 0 18px; }
.hero.compact h1 { font-size: clamp(34px, 4vw, 54px); }
.hero p { font-size: 20px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}
.button.primary, .button:hover {
    background: var(--accent);
    color: #fff;
}
.button.primary:hover { background: var(--accent-dark); }
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product-image {
    display: block;
    aspect-ratio: 1 / 1;
    background: #eee5dc;
    overflow: hidden;
}
.product-image img, .main-product-image, .thumb-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-body h2 { font-size: 20px; line-height: 1.2; margin: 0; }
.product-body h2 a { text-decoration: none; }
.product-excerpt { color: var(--muted); margin: 0; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.price-row.large { font-size: 22px; margin: 18px 0; }
.price { color: var(--accent); font-weight: 800; }
.old-price { color: var(--muted); text-decoration: line-through; }
.product-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 42px;
    align-items: start;
    padding: 42px 0;
}
.product-gallery, .product-info {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
}
.main-product-image { border-radius: 18px; aspect-ratio: 1 / 1; background: #eee5dc; }
.thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.thumb-grid img { border-radius: 12px; aspect-ratio: 1 / 1; }
.product-info h1 { font-size: clamp(30px, 4vw, 48px); }
.product-description { color: var(--text); }
.product-description img { max-width: 100%; height: auto; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links a { color: var(--muted); }
@media (max-width: 900px) {
    .catalog-grid, .product-page { grid-template-columns: 1fr; }
    .site-header { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
    .catalog-grid { gap: 16px; }
    .product-gallery, .product-info, .product-body { padding: 16px; }
    .hero { padding-top: 42px; }
}
