* { box-sizing: border-box; }
body { margin: 0; color: #171717; background: #fff; font: 1rem/1.6 Arial, sans-serif; }
header, footer { padding: 1.25rem max(5vw, calc((100vw - 74rem) / 2)); background: #141414; color: #fff; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
header { justify-content: space-between; }
nav { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; }
header a, footer a { color: inherit; text-decoration: none; }
a { color: #254b80; text-underline-offset: .2em; }
a:hover, a[aria-current="page"] { text-decoration: underline; }
.brand { font-size: 1.45rem; font-weight: 700; }
main { padding: 3rem 5vw 5rem; }
.content { max-width: 74rem; margin: auto; }
h1 { font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1.08; }
h2 { line-height: 1.2; margin-top: 2rem; }
img { display: block; max-width: 100%; height: auto; margin-block: 1rem; }
form { max-width: 40rem; margin-top: 2rem; }
label { display: block; margin-top: 1rem; font-weight: 600; }
input, select, textarea { display: block; width: 100%; border: 1px solid #777; padding: .65rem; font: inherit; }
textarea { min-height: 7rem; }
button { margin-top: 1rem; border: 0; background: #141414; color: white; padding: .75rem 1.5rem; font: inherit; cursor: pointer; }
.error { color: #a61919; }

.catalogue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.product-card { border: 1px solid #ddd; border-radius: .5rem; background: #fff; overflow: hidden; }
.product-card a { display: block; color: inherit; text-decoration: none; }
.product-card a:hover h2 { text-decoration: underline; }
.product-card img, .product-placeholder { width: 100%; aspect-ratio: 1; margin: 0; padding: 1rem; background: #f6f6f6; object-fit: contain; }
.product-placeholder { display: grid; place-items: center; }
.product-card h2 { font-size: 1rem; margin: 0; padding: 1rem; }
.product-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 2rem; align-items: start; }
.product-detail h1 { font-size: clamp(2rem, 4vw, 3rem); }
body > main.content { padding-inline: 1rem; }
.shop-layout { display: grid; grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr); gap: 2rem; }
.shop-categories { display: block; border: 1px solid #ddd; align-self: start; padding: 1rem; border-radius: .5rem; }
.shop-categories h2 { margin: 0 0 .75rem; font-size: 1.1rem; }
.shop-categories ul { list-style: none; margin: .4rem 0; padding-left: .75rem; }
.shop-categories > ul { padding-left: 0; }
.shop-categories li { padding-block: .25rem; }
.shop-categories summary { cursor: pointer; font-weight: 600; }
.shop-categories [aria-current="page"] { font-weight: 700; }
.product-count { margin-top: 0; }
.shop-pagination { margin-top: 1.5rem; justify-content: center; }
@media (max-width: 48rem) { .shop-layout { grid-template-columns: 1fr; gap: 1rem; } }
