:root {
  color-scheme: light;
  --ink: #2b241d;
  --muted: #6f655a;
  --line: #e5dcd1;
  --background: #f8f5f0;
  --dark: #31231a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 16px/1.65 Tahoma, "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #815938; outline-offset: 3px; }
.site-header { background: #fffefa; border-bottom: 1px solid var(--line); }
.header-inner, main { width: min(100% - 40px, 1120px); margin-inline: auto; }
.header-inner, nav { display: flex; align-items: center; gap: 14px; }
.header-inner { justify-content: space-between; min-height: 72px; }
.brand { font: bold 25px/1.1 Georgia, serif; letter-spacing: 2px; }
.brand small { display: block; margin-top: 6px; font: 10px Tahoma, sans-serif; letter-spacing: .4px; color: var(--muted); }
nav a { display: grid; place-items: center; min-height: 44px; font-size: 14px; }
.cart-link { padding-inline: 14px; border: 1px solid var(--line); border-radius: 24px; }
main { padding-block: 22px 48px; }
.back { display: inline-grid; align-items: center; min-height: 44px; margin-bottom: 9px; color: #69513c; }
.back:hover, nav a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(20px, 4vw, 48px); }
.product-photo, .related-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.product-photo { display: grid; place-items: center; padding: clamp(8px, 2vw, 20px); }
.product-photo img { display: block; width: 100%; height: auto; max-height: 540px; object-fit: contain; }
.product-info { min-width: 0; }
.category, .count, .muted, .shipping { color: var(--muted); }
.category { margin: 0 0 5px; font-size: .9rem; }
h1 { margin: 0; font-size: clamp(27px, 4vw, 43px); line-height: 1.3; }
.price { margin: 12px 0 1px; font-size: 1.85rem; font-weight: 700; }
.price span { font-size: 1rem; }
.count { margin: 0 0 12px; }
.measurements { margin: 0; border-inline-start: 2px solid #b99876; background: #f0e8dd; padding: 8px 12px; border-radius: 6px; }
.measurements div { display: flex; gap: 8px; align-items: baseline; }
.measurements dd { margin: 0; font-weight: 700; }
.measurements bdi { direction: ltr; white-space: nowrap; }
.description { margin: 14px 0; }
.buy { display: inline-grid; min-height: 48px; place-items: center; padding: 10px 25px; border-radius: 12px; background: var(--dark); color: white; font-weight: bold; }
.buy:hover { background: #4b3728; }
.shipping { margin: 9px 0 0; font-size: .875rem; }
.related { margin-top: 34px; }
.related h2 { font-size: 1.3rem; margin-bottom: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related-card { display: grid; gap: 4px; padding: 9px; }
.related-card:hover span { text-decoration: underline; }
.related-card img { display: block; width: 100%; height: clamp(95px, 17vw, 180px); object-fit: contain; background: #f6f2eb; border-radius: 8px; }
.related-card strong { font-size: .9rem; }
@media (max-width: 680px) {
  .header-inner, main { width: min(100% - 28px, 1120px); }
  .product { grid-template-columns: 1fr; gap: 15px; }
  .product-photo img { max-height: 340px; }
  .buy { width: 100%; }
  .related-grid { gap: 7px; }
  .related-card { font-size: .8rem; padding: 6px; }
  .related-card strong { font-size: .75rem; }
}
