:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #617069;
  --line: rgba(23, 32, 27, 0.14);
  --blue: #315d8f;
  --green: #2f7d57;
  --amber: #a96112;
  --bg: #eef2ef;
  --panel: #fff;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body, button { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { overflow-x: hidden; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, a { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
}

.brand { display: grid; }
.brand strong { font-size: 20px; line-height: 1; }
.brand span { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 800; }
.site-header nav { display: flex; flex: 1 1 auto; justify-content: flex-end; gap: 4px; min-width: 0; }
.site-header nav a { padding: 8px 11px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 850; }
.site-header nav a.active, .site-header nav a:hover { color: #fff; background: var(--blue); }

.product-shell { width: min(1180px, 100%); margin: 0 auto; padding: 24px; }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--blue); font-weight: 850; }
.product-overview { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr); gap: 26px; align-items: start; }
.product-gallery, .product-summary, .detail-grid article, .not-found { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.product-gallery { overflow: hidden; }
.product-image { display: grid; aspect-ratio: 1 / 1; overflow: hidden; place-items: center; background: #f6f8f7; }
.product-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-thumbnails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.product-thumbnail { aspect-ratio: 1 / 1; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: #f6f8f7; cursor: pointer; }
.product-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-thumbnail.active { border-color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.gallery-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 10px; color: var(--muted); background: #fff; font-size: 11px; }
.gallery-caption strong { color: var(--ink); font-size: 11px; }
.product-gallery > p { padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.45; }
.product-gallery > p a { display: inline; margin-left: 4px; color: var(--blue); font-weight: 850; }
.product-concept { position: relative; width: 72%; height: 58%; border: 8px solid var(--blue); border-radius: 8px 34px 8px 34px; }
.product-concept::before { content: ""; position: absolute; width: 32px; height: 32px; top: 50%; left: 50%; border: 7px solid var(--amber); border-radius: 50%; background: #f6f8f7; transform: translate(-50%, -50%); }
.product-concept::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -30px; height: 9px; border-radius: 5px; background: var(--green); }
.product-concept-ro { border-width: 7px 7px 32px; border-radius: 7px; }
.product-concept-safety { width: 42%; height: 58%; border-color: var(--green); border-radius: 50% 50% 14px 14px; }
.product-concept-tools { height: 38%; border-radius: 7px; }
.product-concept-tools::after { bottom: 18px; background: repeating-linear-gradient(90deg, var(--green) 0 5px, transparent 5px 11px); }
.product-summary { display: grid; gap: 18px; padding: 22px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
h1, h2, p { margin: 0; letter-spacing: 0; }
h1 { font-size: 30px; line-height: 1.12; }
h2 { margin-top: 5px; font-size: 18px; }
.status-label { flex: 0 0 auto; padding: 5px 7px; border: 1px solid rgba(169, 97, 18, 0.24); border-radius: 5px; color: var(--amber); background: rgba(169, 97, 18, 0.07); font-size: 10px; font-weight: 900; }
.description { color: var(--muted); font-size: 14px; line-height: 1.55; }
.price-block { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-block strong, .price-block span { display: block; }
.price-block strong { font-size: 25px; }
.price-block span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.primary-action, .secondary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--blue); border-radius: 7px; font-weight: 900; cursor: pointer; }
.primary-action { color: #fff; background: var(--blue); }
.secondary-action { color: var(--blue); background: #fff; }
.product-message { min-height: 18px; color: var(--green); font-size: 12px; font-weight: 800; }
.cart-context { color: var(--muted); font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.detail-grid article { padding: 18px; }
.detail-grid ul { display: grid; gap: 10px; padding: 0; margin: 16px 0 0; list-style: none; }
.detail-grid li { position: relative; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.detail-grid li::before { content: "+"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.not-found { display: grid; gap: 14px; max-width: 620px; padding: 30px; margin: 60px auto; }
.not-found .primary-action { justify-self: start; }

@media (max-width: 760px) {
  .site-header { padding: 10px 14px; }
  .site-header nav { justify-content: flex-start; overflow-x: auto; }
  .site-header nav a { padding: 7px 8px; white-space: nowrap; font-size: 12px; }
  .product-shell { padding: 16px 14px; }
  .product-overview, .detail-grid { grid-template-columns: 1fr; }
  .title-row { flex-direction: column; }
  h1 { font-size: 25px; }
}
