/* 1. Design tokens and base styles */
:root {
  color-scheme: light;
  --navy-950: #080f1c;
  --navy-900: #0b1626;
  --navy-800: #132239;
  --navy-700: #1c304b;
  --ink: #15243a;
  --muted: #536378;
  --silver: #a9b8ca;
  --line: #d8e0ea;
  --surface: #f1f4f8;
  --white: #fff;
  --accent: #ff7165;
  --accent-hover: #ff938a;
  --red: #e6544b;
  --green: #147351;
  --heading: "Space Grotesk", "Segoe UI", sans-serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --radius: 16px;
  --shadow: 0 15px 40px rgb(12 26 48 / 8%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 500 1rem/1.65 var(--body); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
figure, dl, dd { margin: 0; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .45em; font-family: var(--heading); line-height: 1.07; letter-spacing: -.04em; }
h1 { font-size: clamp(2.6rem, 7.2vw, 4.65rem); }
h2 { font-size: clamp(1.85rem, 5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3.6vw, 1.55rem); }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #df6b37; outline-offset: 4px; }
.container { width: min(100% - 2rem, 75rem); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section.compact { padding-block: clamp(2rem, 5vw, 4rem); }
.section-tinted { background: var(--surface); }
.icon { width: 1.25rem; height: 1.25rem; flex: none; vertical-align: middle; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; z-index: 30; top: .75rem; left: .75rem; padding: .75rem 1rem; background: var(--white); color: var(--ink); clip-path: inset(50%); }
.skip-link:focus { clip-path: none; }
.eyebrow {
  margin: 0 0 .65rem; color: #465e79; font-size: .73rem; font-weight: 800;
  letter-spacing: .14em; line-height: 1.45; text-transform: uppercase;
}
.small-copy { color: var(--muted); font-size: .86rem; line-height: 1.55; }
.button-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; border-radius: 8px; padding: .65rem .95rem;
  font-size: .94rem; font-weight: 800; line-height: 1.25; text-decoration: none;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.button-primary { background: var(--accent); color: var(--navy-950); }
.button-dark { background: var(--navy-800); color: var(--white); }
.button-whatsapp { background: #126346; color: var(--white); }
.button-outline-light { border-color: #66778e; color: var(--white); }
.button-outline { border-color: #aab9ca; color: var(--ink); }
@media (hover: hover) {
  .button:hover { transform: translateY(-2px); }
  .button-primary:hover { background: var(--accent-hover); }
  .button-dark:hover { background: #29445f; }
  .button-whatsapp:hover { background: #0d4c36; }
  .button-outline-light:hover { background: #23364e; border-color: var(--silver); }
  .button-outline:hover { background: var(--surface); }
}

/* 2. Shared header, navigation and footer */
.site-header, .site-footer { background: var(--navy-950); color: var(--white); }
.site-header { position: relative; z-index: 3; }
.utility { border-bottom: 1px solid #263449; color: #bbc8d8; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.utility-label { font-size: .72rem; font-weight: 800; letter-spacing: .045em; }
.status-dot { display: inline-block; width: .44rem; height: .44rem; margin-right: .37rem; border-radius: 50%; background: #65d9aa; vertical-align: .08em; }
.market-label { display: inline-flex; align-items: center; }
.market-label select { min-height: 44px; border: 0; padding: .35rem .15rem .35rem .5rem; background: transparent; color: var(--white); font-size: .79rem; font-weight: 800; }
.market-label option { color: var(--ink); background: var(--white); }
.nav-bar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .55rem; min-height: 69px; }
.brand {
  display: inline-flex; align-items: center; min-height: 44px; gap: .6rem; color: var(--white);
  text-decoration: none; font: 700 clamp(1.25rem, 5.6vw, 1.52rem)/1 var(--heading); letter-spacing: -.06em;
}
.brand-mark { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid #ff837a; border-radius: 8px; color: #ff837a; background: #30202d; }
.brand-mark .icon { width: 1.1rem; height: 1.1rem; }
.brand-light { color: #c9d5e6; }
.nav-actions { display: flex; align-items: center; gap: .45rem; }
.cart-link, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  border: 1px solid #38485e; border-radius: 8px; background: transparent; color: var(--white);
}
.cart-link { gap: .35rem; padding-inline: .45rem; text-decoration: none; }
.cart-word { display: none; }
.cart-count {
  display: grid; min-width: 1.35rem; height: 1.35rem; place-items: center; padding: 0 .25rem;
  border-radius: 1rem; background: #2e4159; color: #f2f6fc; font-size: .72rem; font-weight: 800;
}
.menu-toggle[aria-expanded="true"], .cart-link[aria-current="page"] { background: #263a54; }
.main-nav { display: flex; flex: 1 0 100%; flex-wrap: wrap; gap: .15rem .45rem; order: 2; padding-bottom: .75rem; }
.main-nav a {
  display: flex; min-height: 44px; align-items: center; padding: .4rem .75rem; border-radius: 7px;
  color: #bfccdc; font-size: .91rem; font-weight: 800; text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); background: #26354a; }
.js .main-nav:not(.is-open) { display: none; }
.site-footer { padding-top: clamp(2.25rem, 6vw, 4rem); }
.footer-grid { display: grid; gap: 1.7rem; }
.footer-grid p { max-width: 34ch; margin: .7rem 0 0; color: #b5c4d8; font-size: .91rem; }
.footer-links { display: grid; justify-items: start; align-content: start; }
.footer-links h2 { margin: 0 0 .25rem; font-size: 1.12rem; }
.footer-links a { display: flex; align-items: center; min-height: 44px; color: #b5c4d8; font-size: .89rem; overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: space-between; margin-top: 2rem; padding: 1.1rem 0 5rem; border-top: 1px solid #334157; color: #b5c4d8; font-size: .78rem; }
.whatsapp-fab {
  position: fixed; z-index: 4; right: max(.85rem, env(safe-area-inset-right)); bottom: max(.85rem, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 52px; gap: .4rem;
  border: 1px solid #6eb798; border-radius: 2rem; background: #126346; color: white; box-shadow: 0 6px 18px #0b271b42;
  font-size: .88rem; font-weight: 800; text-decoration: none; transition: background-color .18s;
}
.whatsapp-fab .icon { width: 1.45rem; height: 1.45rem; }
.whatsapp-fab span { display: none; }
.whatsapp-fab:hover { background: #0d4c36; }

/* 3. Home, catalogue and informational sections */
.hero, .page-banner {
  background: radial-gradient(ellipse at 90% 0, #223b5d, transparent 70%), var(--navy-900);
  color: var(--white);
}
.hero-grid { display: grid; align-items: center; gap: 1.85rem; padding-block: clamp(2.6rem, 7vw, 6.6rem); }
.hero h1 { margin-bottom: .31em; font-size: clamp(2.65rem, 9.5vw, 5rem); letter-spacing: -.068em; }
.hero h1 span { color: #b3c3d7; }
.hero .eyebrow, .page-banner .eyebrow, .trade-banner .eyebrow { color: #f9a39c; }
.hero-description, .page-banner p:not(.eyebrow) { max-width: 48ch; color: #c2d0e2; font-size: clamp(.98rem, 2vw, 1.14rem); }
.hero-copy .button-row { margin-top: 1.4rem; }
.hero-visual {
  position: relative; overflow: hidden; display: grid; align-content: space-between; min-width: 0;
  border: 1px solid #3c516d; border-radius: var(--radius);
  background: radial-gradient(ellipse at 54% 44%, #223652, #101c2e 70%);
}
.hero-visual::before {
  position: absolute; inset: 0; content: ""; pointer-events: none; opacity: .28;
  background-image: linear-gradient(90deg, #637d9d55 1px, transparent 1px), linear-gradient(#637d9d55 1px, transparent 1px);
  background-size: 27px 27px;
}
.hero-visual img { z-index: 1; width: 100%; aspect-ratio: 8 / 5; object-fit: contain; }
.hero-visual-label, .hero-visual figcaption {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .4rem;
  padding: .65rem .75rem; color: #b4c6dc; font: 700 clamp(.54rem, 1.3vw, .69rem)/1.3 var(--heading); letter-spacing: .075em;
}
.hero-visual-label { border-bottom: 1px solid #3c516d; }
.hero-visual figcaption { border-top: 1px solid #3c516d; }
.metric-band { border-bottom: 1px solid var(--line); background: var(--surface); }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-grid div { padding: .75rem .35rem .8rem .8rem; border-left: 1px solid var(--line); }
.metric-grid div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
.metric-grid div:nth-child(even) { border-right: 1px solid var(--line); }
.metric-grid dt { font: 700 clamp(1.25rem, 3vw, 1.65rem)/1.2 var(--heading); }
.metric-grid dd { color: var(--muted); font-size: .82rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .3rem 2rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 35ch; margin: 0; color: var(--muted); }
.format-grid, .benefit-grid { display: grid; gap: 1rem; }
.format-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.format-card img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; background: var(--navy-800); }
.format-content { padding: 1.05rem; }
.format-content h3 { margin: 0 0 .32rem; font-size: clamp(1.45rem, 4vw, 1.9rem); }
.format-content p:not(.eyebrow) { margin: 0; color: var(--muted); }
.format-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem; margin-top: .9rem; }
.starting-price { font-size: .9rem; }
.benefit { min-width: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.benefit p { margin: 0; color: var(--muted); }
.benefit-icon { display: inline-grid; width: 2.5rem; height: 2.5rem; place-items: center; margin-bottom: .7rem; border: 1px solid #cdd9e7; border-radius: 9px; background: #edf3fa; color: #24486a; }
.trade-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(1.25rem, 5vw, 2.6rem); border-radius: var(--radius); background: linear-gradient(120deg, var(--navy-900), #223b5d); color: var(--white); }
.trade-banner h2 { margin: 0 0 .2rem; }
.trade-banner p:not(.eyebrow) { margin: 0; color: #c2d0e2; }
.page-banner { padding-block: clamp(2.4rem, 6vw, 4.3rem); }
.page-banner h1 { margin-bottom: .2em; }
.page-banner p:not(.eyebrow) { margin-bottom: 0; }
.about-grid, .contact-layout { display: grid; gap: 1.4rem; align-items: start; }
.about-copy p:not(.eyebrow), .contact-panel > p:not(.eyebrow) { color: var(--muted); }
.about-visual, .product-visual { overflow: hidden; border: 1px solid #384e6a; border-radius: var(--radius); background: var(--navy-800); color: #c0cde0; }
.about-visual img, .product-visual img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.about-visual figcaption, .product-visual figcaption { padding: .65rem .8rem; border-top: 1px solid #384e6a; font-size: .69rem; font-weight: 800; letter-spacing: .09em; }

/* 4. Product configuration, size chart and FAQs */
.product-main { padding-bottom: clamp(3rem, 7vw, 6rem); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-block: .45rem; color: var(--muted); font-size: .83rem; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.product-layout { display: grid; gap: 1.25rem; align-items: start; }
.product-info h1 { font-size: clamp(2.25rem, 6.4vw, 3.85rem); margin-bottom: .3em; }
.product-intro { margin-bottom: .8rem; color: var(--muted); }
.product-price { margin: .55rem 0 .75rem; font: 700 1.9rem/1.15 var(--heading); }
.product-jump { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.product-jump a { min-height: 44px; display: inline-flex; align-items: center; color: #334d69; font-size: .88rem; font-weight: 800; }
.configurator { display: grid; gap: .85rem; }
.option-group { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.option-group legend { padding: 0; margin-bottom: .37rem; font-size: .87rem; font-weight: 800; }
.option-group legend span { color: var(--muted); }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.option-grid.sizes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.choice { position: relative; min-width: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; padding: .35rem .25rem;
  border: 1px solid #b3c0d0; border-radius: 7px; color: #30465f; font-size: .87rem; font-weight: 800; text-align: center;
  transition: background-color .18s, border-color .18s;
}
.choice:hover span { border-color: var(--navy-700); }
.choice input:checked + span { border-color: #274c71; background: #e9f1fa; box-shadow: inset 0 0 0 1px #274c71; color: var(--navy-900); }
.choice input:focus-visible + span { outline: 3px solid #df6b37; outline-offset: 3px; }
.choice-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--silver); }
.choice-dot.red { background: var(--red); }
.choice-dot.green { background: var(--green); }
.order-controls { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: end; gap: .6rem; }
.order-controls label, .form-stack label { display: grid; gap: .3rem; color: var(--ink); font-size: .88rem; font-weight: 800; }
.order-controls .button { min-height: 46px; }
.add-status { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .8rem; min-height: 44px; padding: .3rem .65rem; border-radius: 7px; background: #e9f6ee; color: #185737; font-size: .86rem; font-weight: 800; }
.add-status a { min-height: 44px; display: inline-flex; align-items: center; }
.spec-grid { display: grid; gap: 1rem; margin-top: clamp(2rem, 6vw, 4rem); }
.spec-panel { min-width: 0; padding: clamp(1rem, 3vw, 1.65rem); border: 1px solid var(--line); border-radius: var(--radius); }
.spec-panel h2 { font-size: clamp(1.55rem, 4vw, 2.15rem); }
.spec-panel p { margin-bottom: 0; }
.table { width: 100%; border-collapse: collapse; table-layout: fixed; color: var(--ink); font-size: .86rem; }
.table th, .table td { padding: .57rem .35rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.table thead th { background: var(--surface); }
.table tbody th { width: 41%; }
.size-table { margin-bottom: .65rem; }
.size-table th:first-child { width: 19%; }
.size-table th:last-child { width: 28%; }
.product-faq { max-width: 52rem; margin: clamp(2rem, 6vw, 4rem) auto 0; }
.product-faq details { border-bottom: 1px solid var(--line); }
.product-faq summary { min-height: 48px; padding: .75rem .15rem; font-weight: 800; }
.product-faq details p { margin: 0 0 1rem; padding-left: .15rem; color: var(--muted); }

/* 5. Cart and forms */
.cart-layout { display: grid; gap: 1.25rem; align-items: start; }
.empty-cart { padding: clamp(1rem, 4vw, 2rem); border: 1px dashed #a8b7c9; border-radius: var(--radius); background: var(--surface); }
.empty-cart p { color: var(--muted); }
.cart-items { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.cart-item { display: grid; grid-template-columns: 4.8rem minmax(0, 1fr); gap: .6rem .75rem; align-items: start; padding: .85rem; border: 1px solid var(--line); border-radius: 11px; }
.cart-item img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 6px; background: var(--navy-900); }
.cart-item h3 { margin: 0 0 .12rem; font-size: 1.16rem; }
.cart-item h3 a { text-decoration: none; }
.cart-item h3 a:hover { text-decoration: underline; }
.cart-item p { margin: 0; }
.cart-item .small-copy { font-size: .81rem; }
.cart-item strong { display: block; margin-top: .22rem; }
.cart-item-controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .35rem .6rem; }
.cart-item-controls label { display: grid; gap: .2rem; font-size: .79rem; font-weight: 800; }
.cart-item-controls button { min-height: 44px; }
.cart-item-controls .button { min-height: 44px; padding-inline: .65rem; font-size: .8rem; }
.remove-button { border: 0; background: transparent; color: #8b2823; font-size: .82rem; font-weight: 800; text-decoration: underline; text-underline-offset: .15em; }
.checkout-panel, .contact-panel { min-width: 0; padding: clamp(1rem, 4vw, 1.5rem); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.checkout-panel h2, .contact-panel h2, .contact-options h2 { font-size: clamp(1.55rem, 4vw, 2.05rem); }
.subtotal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .15rem .5rem; margin: .7rem 0 .5rem; padding-block: .6rem; border-block: 1px solid var(--line); font-size: .94rem; }
.subtotal strong { font: 700 1.35rem/1.1 var(--heading); }
.form-stack { display: grid; gap: .75rem; }
.form-stack .small-copy, .form-status { margin: 0; }
.form-status { font-size: .85rem; color: #185737; }
.form-stack input, .form-stack select, .form-stack textarea, .order-controls input, .cart-item-controls input {
  width: 100%; min-height: 44px; padding: .52rem .56rem; border: 1px solid #a5b5c8; border-radius: 7px;
  background: var(--white); color: var(--ink); font-size: 1rem; font-weight: 600;
}
.cart-item-controls input { width: 4.4rem; }
.form-stack textarea { resize: vertical; }
.form-stack textarea::placeholder { color: #56677c; }
.contact-options { display: grid; gap: .6rem; }
.contact-option {
  display: flex; align-items: center; gap: .75rem; min-height: 62px; padding: .6rem .75rem;
  border: 1px solid var(--line); border-radius: 9px; text-decoration: none;
}
.contact-option:hover { background: var(--surface); }
.contact-option .benefit-icon { flex: none; margin: 0; }
.contact-option strong, .contact-option span span { display: block; overflow-wrap: anywhere; }
.contact-option span span { color: var(--muted); font-size: .89rem; }

/* 6. Wider layouts and motion preference */
@media (min-width: 36rem) {
  .container { width: min(100% - 3rem, 75rem); }
  .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric-grid div:nth-child(n) { padding: 1rem 1.1rem; border: 0; border-left: 1px solid var(--line); }
  .metric-grid div:last-child { border-right: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .whatsapp-fab { padding: 0 .95rem; }
  .whatsapp-fab span { display: inline; }
}
@media (min-width: 49rem) {
  .nav-bar { flex-wrap: nowrap; }
  .main-nav, .js .main-nav:not(.is-open) { display: flex; order: 0; flex: initial; padding: 0; }
  .menu-toggle { display: none !important; }
  .cart-link { padding-inline: .65rem; }
  .cart-word { display: inline; font-size: .84rem; font-weight: 800; }
  .hero-grid { grid-template-columns: 1fr 1.03fr; gap: clamp(1.25rem, 3.25vw, 3rem); }
  .hero h1 { font-size: clamp(2.9rem, 5.7vw, 5rem); }
  .hero-visual-label, .hero-visual figcaption { padding: .85rem 1.05rem; }
  .benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.35fr .9fr 1fr; }
  .about-grid, .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(1.25rem, 4vw, 3rem); }
  .product-visual { position: sticky; top: 1rem; }
  .cart-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .contact-layout { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 2rem; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-item { grid-template-columns: 5.6rem minmax(0, 1fr); }
}
@media (min-width: 68rem) {
  .cart-item { grid-template-columns: 5.6rem minmax(0, 1fr) auto; }
  .cart-item-controls { grid-column: auto; align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
