:root {
  color-scheme: light;
  --orange: #f36d0b;
  --orange-dark: #b94700;
  --ink: #202524;
  --muted: #626966;
  --line: #dfe2df;
  --page: #f5f6f3;
  --surface: #ffffff;
  --green: #117844;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px max(24px, calc((100% - 1180px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand span { display: grid; gap: 2px; }
.brand strong { font-size: 17px; }
.brand small { color: var(--muted); font-size: 13px; }
.header-link { color: var(--orange-dark); font-weight: 750; text-underline-offset: 4px; }

.breadcrumb {
  width: min(1180px, calc(100% - 48px));
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumb a { color: var(--ink); text-underline-offset: 3px; }

main { width: min(1180px, calc(100% - 48px)); margin: 22px auto 56px; }
.product-layout { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, .94fr); gap: clamp(32px, 6vw, 76px); align-items: start; }
.product-media { position: relative; min-width: 0; }
.product-media > img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.image-note { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 7px 10px; color: #4f5653; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 4px; font-size: 12px; text-align: center; }
.product-content { padding-top: 8px; min-width: 0; }
.eyebrow { margin: 0 0 10px; color: var(--orange-dark); font-size: 13px; font-weight: 800; text-transform: uppercase; }
h1 { margin: 0; max-width: 22ch; font-size: clamp(30px, 4.1vw, 52px); line-height: 1.06; overflow-wrap: anywhere; }
.code { margin: 16px 0 0; color: var(--muted); }
.summary { margin: 22px 0; color: #424845; font-size: 17px; line-height: 1.62; }
.price-block { display: grid; gap: 5px; margin: 0 0 22px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-block strong { font-size: 27px; }
.price-block span { color: var(--muted); line-height: 1.45; }
.details { margin: 0 0 24px; }
.details div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border: 1px solid transparent; border-radius: 5px; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.button-primary { color: #fff; background: var(--orange-dark); }
.button-primary:hover, .button-primary:focus-visible { background: #8f3700; }
.button-primary.added { color: #fff; background: var(--ink); }
.button-whatsapp { color: #fff; background: var(--green); }
.button-whatsapp:hover, .button-whatsapp:focus-visible { background: #095e34; }
.button:focus-visible, a:focus-visible { outline: 3px solid rgba(243, 109, 11, .34); outline-offset: 3px; }
.quote-link { display: inline-block; margin-top: 16px; color: var(--orange-dark); font-weight: 750; text-underline-offset: 4px; }

.related { margin-top: 72px; padding-top: 34px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 28px; }
.section-heading > a { color: var(--orange-dark); font-weight: 750; text-underline-offset: 4px; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.related-grid li { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.related-grid a { height: 100%; display: grid; grid-template-rows: auto 1fr; text-decoration: none; }
.related-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border-bottom: 1px solid var(--line); }
.related-grid span { display: grid; align-content: start; gap: 6px; padding: 13px; }
.related-grid small { color: var(--muted); }
.related-grid strong { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }

footer { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px max(24px, calc((100% - 1180px) / 2)); color: #d8ddda; background: var(--ink); }
footer > span { font-weight: 800; color: #fff; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-underline-offset: 4px; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 20; max-width: min(360px, calc(100% - 36px)); padding: 13px 16px; color: #fff; background: var(--ink); border-radius: 5px; box-shadow: 0 12px 32px rgba(0, 0, 0, .24); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 820px) {
  .product-layout { grid-template-columns: 1fr; gap: 28px; }
  .product-media { max-width: 620px; margin-inline: auto; }
  .product-content { padding-top: 0; }
  h1 { max-width: none; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .site-header { min-height: 68px; padding: 8px 16px; }
  .brand img { width: 48px; height: 48px; }
  .brand small { display: none; }
  .header-link { max-width: 96px; font-size: 13px; text-align: right; }
  .breadcrumb, main { width: calc(100% - 28px); }
  .breadcrumb { margin-top: 14px; }
  main { margin-top: 16px; margin-bottom: 42px; }
  h1 { font-size: 31px; }
  .summary { font-size: 16px; }
  .actions { grid-template-columns: 1fr; }
  .details div { grid-template-columns: 96px 1fr; }
  .related { margin-top: 54px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .section-heading h2 { font-size: 24px; }
  .related-grid { gap: 9px; }
  .related-grid span { padding: 10px; }
  footer { align-items: flex-start; flex-direction: column; padding: 22px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
