:root {
  color-scheme: light;
  --ink: #142038;
  --muted: #64748b;
  --red: #dc2626;
  --line: #e2e8f0;
  --page: #f8fafc;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem max(1rem, calc((100vw - 1080px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand img { display: block; width: 58px; height: 58px; object-fit: contain; }
.header-link { color: var(--red); font-weight: 700; text-decoration: none; }
.product-page { width: min(100% - 2rem, 1080px); margin: 2rem auto; }
.breadcrumbs { display: flex; gap: .55rem; align-items: center; color: var(--muted); font-size: .875rem; margin-bottom: 1rem; }
.breadcrumbs a { color: var(--red); text-decoration: none; }
.product-card {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 12px 35px rgb(15 23 42 / 6%);
}
.product-image-wrap { position: relative; display: grid; place-items: center; min-height: 260px; background: #f1f5f9; border-radius: 1rem; overflow: hidden; }
.product-image { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.product-panel-discount-badge { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; border: 1px solid #f3d27b; border-radius: 999px; padding: .35rem .7rem; background: linear-gradient(115deg,#fff7d6,#f4c44e 48%,#fff0b3); color: #76520a; box-shadow: 0 4px 14px rgba(161,112,11,.2), inset 0 1px 0 rgba(255,255,255,.9); font-size: .82rem; font-weight: 900; }
.eyebrow { color: #047857; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: .3rem 0 1rem; font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.15; }
.description { color: #475569; line-height: 1.75; white-space: pre-line; }
.price-row { display: flex; align-items: baseline; gap: .75rem; padding: 1rem 0; margin-top: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-label { color: var(--muted); font-size: .875rem; }
.price-row strong { color: var(--red); font-size: 1.5rem; }
.price-row .product-was-price { color: #16805a; font-size: 1.05rem; font-weight: 800; text-decoration-color: #dc2626; text-decoration-thickness: 2px; }
.price-row .product-current-price { color: #145bd7; font-size: 1.65rem; font-weight: 950; }
.availability, .fine-print { color: var(--muted); font-size: .85rem; line-height: 1.6; }
.primary-button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; justify-content: center; width: 100%; min-height: 50px; margin-top: .75rem; padding: .9rem 1.2rem; border: 1px solid rgb(255 255 255 / 18%); border-radius: .75rem; background: linear-gradient(110deg,#e11d48,#c81e3a 58%,#f0445f); color: #fff; font-weight: 800; text-align: center; text-decoration: none; box-shadow: 0 8px 20px rgb(190 24 60 / 18%); transition: transform .16s ease, box-shadow .2s ease, filter .2s ease; }
.primary-button::after { position: absolute; z-index: 1; inset: 0; border-radius: inherit; background: radial-gradient(circle at center,transparent 0 14%,rgb(255 255 255 / 85%) 15% 17%,transparent 18% 40%,rgb(125 211 252 / 62%) 41% 43%,transparent 44%); content: ""; opacity: 0; pointer-events: none; transform: scale(.16); transition: transform .32s cubic-bezier(.16,.7,.22,1), opacity .16s ease-out; }
.primary-button:hover, .primary-button:focus-visible { background: #15803d; }
.primary-button:active { transform: scale(.985); box-shadow: 0 4px 12px rgb(190 24 60 / 18%); filter: brightness(1.04); }
.primary-button:active::after { opacity: 1; transform: scale(2.7); }
a:focus-visible { outline: 3px solid rgb(37 99 235 / 55%); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .primary-button, .primary-button::after { transition-duration: .01ms !important; }
}
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem .25rem; color: var(--muted); font-size: .8rem; }
.site-footer a { color: var(--red); text-decoration: none; }
.availability.is-in-stock { color: #087451; font-weight: 850; letter-spacing: .04em; }
.availability.is-stock-out { color: #be123c; font-weight: 850; letter-spacing: .04em; }
@media (max-width: 700px) {
  .product-page { margin: 1rem auto; }
  .product-card { grid-template-columns: 1fr; gap: 1.25rem; }
  .product-image-wrap { min-height: 210px; }
  .product-image { max-height: 300px; }
}
