/* Boccas Balls — palette taken from the sport itself: court blue, ball red, ball blue, jack white. */
:root {
  /* Boccas identity v1 (nov. 2026) — colours taken from the figure */
  --court: #1F3F9A;       /* Azul Boccas */
  --court-deep: #183379;
  --blue: #3D6FE0;        /* ball blue on the court drawing */
  --red: #D6372A;         /* Vermelho Boccas */
  --red-dark: #B42B20;
  --yellow: #F6C21A;      /* Amarelo estrela */
  --ink: #111111;         /* Tinta */
  --ink-soft: #4A5266;
  --paper: #F3F5F9;
  --line: #D9DEE8;
  --white: #FFFFFF;
  --ok: #1F7A4D;

  --wrap: 1200px;
  --r-s: 6px;
  --r-m: 12px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
@font-face {
  font-family: 'Archivo'; src: url('/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.55;
  font-variation-settings: 'wdth' 100; color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
::selection { background: var(--yellow); color: var(--ink); }
input, textarea { caret-color: var(--red); }
a { text-underline-offset: 3px; }
.card-price, .price-big, .v-price, .sum-amt, .totals dd, .cl-amt, .cart-sub strong, .ship-table td { font-variant-numeric: tabular-nums; }
a { color: var(--court); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.narrow { max-width: 62ch; }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; font-variation-settings: 'wdth' 118; letter-spacing: -0.03em; line-height: 1; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 760; font-variation-settings: 'wdth' 112; }
h3 { font-size: 1.15rem; font-weight: 700; font-variation-settings: 'wdth' 104; }
.page-title { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: .6em; }
.h-small { font-size: 1rem; font-variation-settings: 'wdth' 100; margin: 1.4em 0 .4em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { height: 46px; width: auto; display: block; }
.logo-footer img { height: 58px; margin-bottom: 14px; }
.main-nav { display: flex; gap: 22px; margin-right: auto; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 560; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 901px) { .main-nav { gap: 16px; } .main-nav a { font-size: .95rem; } .header-row { gap: 18px; } .acct-btn span, .cart-btn span[data-i18n] { display: none; } }
.main-nav a:hover, .main-nav a.on { border-color: var(--red); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn, .cart-btn, .icon-btn { font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; }
.lang-btn { padding: 7px 12px; font-weight: 650; font-size: .875rem; }
.header-actions .lang-sel { font: inherit; font-weight: 650; font-size: .875rem; color: var(--ink); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 26px 7px 12px; min-height: 36px; appearance: none; -webkit-appearance: none; cursor: pointer; width: auto; }
.header-actions .lang-sel:hover { border-color: var(--ink); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; font-weight: 650; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count { background: var(--red); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .8rem; padding: 0 6px; }
.lang-btn:hover, .cart-btn:hover { border-color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-variation-settings: 'wdth' 108;
  text-decoration: none; padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
.btn:active, .chip:active, .cart-btn:active, .acct-btn:active, .lang-btn:active, .qty button:active { transform: scale(0.97); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn.block { width: 100%; }
.link { font-weight: 650; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link-btn { background: none; border: 0; font: inherit; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font-size: .85rem; padding: 0; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  min-height: min(calc(100svh - 68px), 760px); padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
.hero h1 { max-width: 14ch; text-wrap: balance; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 52ch; margin: 22px 0 30px; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-fact { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; font-weight: 600; color: var(--court); font-size: .95rem; }
.star { width: 18px; height: 18px; flex: none; background: var(--yellow);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.hero-photo { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--paper);
  animation: hero-in 600ms var(--ease-out) both; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
@keyframes hero-in { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; }
}
.court-stage { margin-top: clamp(28px, 4vw, 48px); background: var(--court); padding: clamp(18px, 3vw, 36px) clamp(12px, 4vw, 48px); }
.court-stage.small { margin-top: 40px; border-radius: var(--r-m); }
.court { width: 100%; height: auto; max-width: 1200px; margin: 0 auto; display: block; overflow: visible; }
.court .floor { fill: var(--court-deep); }
.court .ln { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 3; }
.court .box-n { fill: rgba(255,255,255,.55); font: 700 34px var(--font); font-variation-settings: 'wdth' 120; text-anchor: middle; }
.court .ball { transform: translate(var(--x), var(--y)); animation: roll 1.1s cubic-bezier(.2,.7,.2,1) var(--d) both; }
.court .ball circle { stroke: rgba(0,0,0,.18); stroke-width: 2; }
.court .red circle { fill: var(--red); }
.court .blue circle { fill: var(--blue); stroke: rgba(255,255,255,.7); }
.court .jack circle { fill: #fff; stroke: none; }
@keyframes roll { from { transform: translate(250px, 300px); opacity: 0; } 15% { opacity: 1; } to { transform: translate(var(--x), var(--y)); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .court .ball { animation: none; } html { scroll-behavior: auto; } }

/* ---------- sections ---------- */
.section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: 8px; }
.section-head { margin-bottom: 28px; }
.section-head.row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 10px 0 0; }

.hardness { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.hard-item { padding: 24px 22px 26px 0; text-decoration: none; color: var(--ink); border-right: 1px solid var(--line); padding-left: 22px; }
.hard-item:first-child { padding-left: 0; }
.hard-item:last-child { border-right: 0; }
.hard-item h3 { margin: 14px 0 6px; }
.hard-item p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.hard-item:hover h3 { color: var(--red); }
.squash { width: 84px; height: 63px; }
.squash ellipse { fill: var(--red); }
.hard-item:nth-child(even) .squash ellipse { fill: var(--court); }
.squash .floorline { stroke: var(--ink); stroke-width: 2; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 22px; }
.card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.card-img { aspect-ratio: 3 / 2; background: var(--paper); border-radius: var(--r-s); overflow: hidden; }
.card { transition: transform 200ms var(--ease-out); }
.card-img img, .card-img .img-empty { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-2px); }
  .card:hover .card-img img { transform: scale(1.03); }
}
.card-body { padding-top: 12px; }
.card-meta { margin: 0 0 4px; font-size: .85rem; color: var(--ink-soft); font-weight: 550; }
.card-title { margin: 0 0 6px; font-size: 1.08rem; }
@media (hover: hover) and (pointer: fine) { .card:hover .card-title { color: var(--red); } }
.card-price { margin: 0; font-weight: 700; }
.from { font-weight: 450; color: var(--ink-soft); }
.vat { font-weight: 450; color: var(--ink-soft); font-size: .85em; }
.img-empty { background: repeating-linear-gradient(135deg, var(--paper) 0 10px, #EDF1F6 10px 20px); }

.band { margin-top: clamp(64px, 9vw, 112px); background: var(--court); color: #fff; padding: clamp(48px, 7vw, 84px) 0; }
.band h2 { color: #fff; max-width: 20ch; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 58px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-variation-settings: 'wdth' 120; background: var(--yellow); color: var(--ink); }
.steps li:nth-child(2)::before { background: var(--red); color: #fff; }
.steps li:nth-child(3)::before { background: #fff; color: var(--court); }
.steps h3 { color: #fff; }
.steps p { margin: 0; color: rgba(255,255,255,.8); }
.about-short { padding-bottom: clamp(56px, 8vw, 96px); }
.about-short p { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- shop ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chips-sub { margin-bottom: 4px; }
.chip { text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-weight: 560; font-size: .95rem; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips-sub .chip { font-size: .875rem; padding: 5px 13px; }
.chips-sub .chip.on { background: var(--red); border-color: var(--red); }
.results { margin: 14px 0 22px; font-size: .9rem; }
.empty { padding: 40px 0 80px; }
.empty p { color: var(--ink-soft); }

/* ---------- product ---------- */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 80px; }
.gallery { position: sticky; top: 88px; }
.gallery-main { aspect-ratio: 3 / 2; background: var(--paper); border-radius: var(--r-m); overflow: hidden; }
.gallery-main { background: #fff; border: 1px solid var(--line); }
.gallery-main img, .gallery-main .img-empty { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 78px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: var(--r-s); overflow: hidden; cursor: pointer; background: var(--paper); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--ink); }
.back { display: inline-block; font-size: .9rem; font-weight: 600; margin-bottom: 16px; text-decoration: none; }
.back::before { content: '‹ '; }
.buy h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: .3em; }
.price-big { font-size: 1.6rem; font-weight: 750; font-variation-settings: 'wdth' 110; margin: 0 0 16px; }
.desc { color: var(--ink-soft); max-width: 60ch; }
.includes { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.buy-form { margin-top: 26px; }
.variants { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.variant { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; cursor: pointer; }
.variant:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.variant input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }
.v-price { margin-left: auto; font-weight: 650; }
.qty-row { display: flex; gap: 12px; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; border: 0; background: var(--white); font: inherit; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--paper); }
.qty input { width: 48px; border: 0; text-align: center; font: inherit; font-weight: 650; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.grow { flex: 1; }
.ship-est { margin-top: 22px; padding: 16px 18px; background: var(--paper); border-radius: var(--r-s); }
.ship-est label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 6px; }
.ship-est select { width: 100%; }
.est-out { margin: 10px 0 0; font-size: .92rem; }
.est-out:empty { display: none; }
.est-out strong { color: var(--ink); }

/* ---------- forms ---------- */
select, input[type=text], input[type=email], input[type=tel] {
  font: inherit; color: var(--ink); background: var(--white); border: 1px solid #B9C3D3; border-radius: var(--r-s); padding: 11px 12px; width: 100%;
}
select:focus, input:focus { border-color: var(--court); outline: 2px solid rgba(27,58,140,.25); outline-offset: 0; }
.checkout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 90px; }
.co-form fieldset { border: 0; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 14px; }
.co-form legend { font-size: 1.25rem; font-weight: 750; font-variation-settings: 'wdth' 110; margin-bottom: 14px; padding: 0; }
.field { flex: 1 1 100%; }
.field.half { flex: 1 1 calc(50% - 7px); min-width: 200px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
.help { margin: 6px 0 0; font-size: .82rem; color: var(--ink-soft); }
.err { margin: 6px 0 0; font-size: .85rem; color: var(--red); font-weight: 600; }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.form-error { background: #FBE9EA; color: var(--red-dark); padding: 12px 14px; border-radius: var(--r-s); font-weight: 600; }
.btn-pay { width: 100%; font-size: 1.1rem; padding: 16px; }
.summary { position: sticky; top: 88px; border: 2px solid var(--ink); border-radius: var(--r-m); padding: 24px; }
.summary h2 { font-size: 1.3rem; }
.sum-lines { list-style: none; margin: 0 0 16px; padding: 0; }
.sum-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.sum-name small { display: block; color: var(--ink-soft); }
.sum-qty { color: var(--ink-soft); }
.sum-amt { font-weight: 650; text-align: right; }
.totals { margin: 0; }
.totals div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.totals dt small { display: block; font-size: .8rem; color: var(--ink-soft); }
.totals dd { margin: 0; font-weight: 650; text-align: right; }
.totals .grand { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; font-size: 1.25rem; font-weight: 800; }
.totals .grand dd { font-weight: 800; }
.note { background: var(--paper); padding: 10px 12px; border-radius: var(--r-s); margin: 12px 0 0; }

/* ---------- drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(17,17,17,.45); z-index: 40; opacity: 0; transition: opacity .2s; }
.drawer-backdrop.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--white); z-index: 50; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .22s ease; box-shadow: -12px 0 40px rgba(17,17,17,.18); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.35rem; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px 22px; display: flex; flex-direction: column; }
.cart-lines { list-style: none; margin: 0; padding: 0; flex: 1; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cl-img { font-size: 0; width: 72px; height: 54px; border-radius: var(--r-s); overflow: hidden; background: var(--paper); }
.cl-img img, .cl-img .img-empty { width: 100%; height: 100%; object-fit: cover; }
.cl-info a { color: var(--ink); font-weight: 650; text-decoration: none; }
.cl-info small { display: block; color: var(--ink-soft); }
.cl-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cl-qty button:not(.link-btn) { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; font: inherit; line-height: 1; }
.cl-amt { font-weight: 650; }
.cart-foot { padding-top: 18px; display: grid; gap: 10px; }
.cart-sub { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; margin-bottom: 6px; }
.cart-sub small { color: var(--ink-soft); font-size: .8rem; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600;
  z-index: 60; transition: transform .25s ease, opacity .25s, visibility .25s; pointer-events: none; opacity: 0; visibility: hidden; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- prose / tables ---------- */
.prose { padding-bottom: 80px; }
.prose h2 { margin-top: 1.6em; }
.table-wrap { overflow-x: auto; margin: 24px 0; }
.ship-table { border-collapse: collapse; min-width: 420px; width: 100%; max-width: 640px; }
.ship-table th, .ship-table td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); }
.ship-table th { font-size: .85rem; color: var(--ink-soft); font-weight: 650; border-bottom: 2px solid var(--ink); }
.thanks { padding-bottom: 120px; }

/* ---------- footer ---------- */
.site-footer { background: var(--court); color: rgba(255,255,255,.82); padding: 56px 0 28px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 1rem; color: #fff; font-variation-settings: 'wdth' 100; margin-bottom: 10px; }
.site-footer p { margin: 0 0 10px; }
.site-footer .muted { color: rgba(255,255,255,.65); max-width: 30ch; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); font-size: .85rem; }
.footer-legal a { margin-left: 14px; color: rgba(255,255,255,.82); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 10px 16px; justify-content: space-between; }
  .main-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 18px; padding-bottom: 6px; white-space: nowrap; scrollbar-width: none; }
  .hardness { grid-template-columns: 1fr 1fr; }
  .hard-item { padding: 22px 16px 22px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .hard-item:nth-child(odd) { padding-right: 16px !important; border-right: 1px solid var(--line); }
  .hard-item:nth-child(even) { padding-left: 16px !important; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .product, .checkout { grid-template-columns: 1fr; }
  .gallery, .summary { position: static; }
  .summary { order: -1; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cart-btn span[data-i18n] { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .card-title { font-size: .98rem; }
  .qty-row { flex-direction: column; }
  .qty { align-self: flex-start; }
  .court .box-n { font-size: 40px; }
}

img.broken { opacity: 0; }

/* about block with the Boccas figure */
.about-short { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.about-short .figure { width: clamp(150px, 18vw, 230px); height: auto; }
.chip.on { background: var(--court); border-color: var(--court); }
.price-big, .card-price { color: var(--ink); }
@media (max-width: 700px) { .about-short { grid-template-columns: 1fr; } .about-short .figure { width: 150px; order: -1; } }

/* account button, account pages, newsletter, promo */
.acct-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 650; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }
.acct-btn:hover { border-color: var(--ink); color: var(--ink); }
.acct-btn svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .acct-btn span { display: none; } }
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); padding-bottom: 80px; align-items: start; }
.auth form { display: grid; gap: 14px; max-width: 440px; }
.auth h2 { margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--court); flex: none; }
.form-ok { background: #E5F4EC; color: #1F7A4D; padding: 12px 14px; border-radius: var(--r-s); font-weight: 600; }
.link-btn.plain { font-size: .95rem; color: var(--court); }
.acct { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 56px); padding-bottom: 80px; align-items: start; }
.order-card { border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; margin-bottom: 12px; }
.order-card .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.order-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: .95rem; }
.ostat { font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper); }
.ostat.shipped, .ostat.delivered { background: #E5F4EC; color: #1F7A4D; }
.banner { background: #FFF4D6; color: #6B4700; padding: 10px 14px; border-radius: var(--r-s); margin-bottom: 18px; font-weight: 600; }
.footer-news { padding-top: 36px; margin-top: 36px; border-top: 1px solid rgba(255,255,255,.2); }
.news-form { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: end; }
.news-form h2 { font-size: 1.25rem; margin: 0 0 4px; color: #fff; }
.news-form p { margin: 0; }
.news-row { display: flex; gap: 10px; }
.news-row input { flex: 1; border: 0; }
.news-out { grid-column: 1 / -1; min-height: 1.2em; color: #fff; font-weight: 600; }
.news-out:empty { display: none; }
.promo-row { display: flex; gap: 8px; margin-top: 14px; }
.promo-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-row .btn { padding: 10px 16px; }
.promo-msg { font-size: .88rem; margin: 6px 0 0; }
.promo-msg.bad { color: var(--red); font-weight: 600; }
@media (max-width: 900px) { .auth, .acct, .news-form { grid-template-columns: 1fr; } }

/* grid children must be allowed to shrink (fixes horizontal scroll on phones) */
.product > *, .checkout > *, .acct > *, .auth > *, .two > * { min-width: 0; }
@media (prefers-reduced-motion: reduce) { .hero-photo { animation: hero-fade 200ms ease both; } @keyframes hero-fade { from { opacity: 0; } } .card, .card-img img { transition: none; } }
@media (max-width: 380px) {
  .logo img { height: 36px; }
  .header-actions { gap: 6px; }
  .header-actions .lang-sel { padding: 6px 22px 6px 9px; background-position: right 7px center; }
  .acct-btn, .cart-btn { padding: 7px 9px; }
}

/* =========================================================
   v2 — mesmo método do site ON Apartments (nov. 2026):
   cabeçalho e topo na cor da marca, cartões arredondados,
   botões em pílula, secções em areia, faixa vermelha antes do rodapé.
   ========================================================= */
:root { --sand: #F4F2EC; --navy: #14234F; --r-s: 12px; --r-m: 20px; --r-l: 24px; --shadow: 0 18px 40px rgba(20,35,79,.16); }

/* header on brand blue */
.site-header { background: var(--court); border-bottom: 0; backdrop-filter: none; }
.main-nav a { color: #fff; opacity: .9; }
.main-nav a:hover, .main-nav a.on { color: #fff; opacity: 1; border-color: var(--yellow); }
.header-actions .lang-sel { background-color: transparent; color: #fff; border-color: rgba(255,255,255,.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); }
.header-actions .lang-sel option { color: var(--ink); }
.header-actions .lang-sel:hover { border-color: #fff; }
.acct-btn { color: #fff; border-color: rgba(255,255,255,.45); }
.acct-btn:hover { color: #fff; border-color: #fff; }
.cart-btn { background: var(--red); border-color: var(--red); color: #fff; }
.cart-btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.cart-btn .cart-count { background: #fff; color: var(--red); }

/* buttons */
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--court); border-color: #fff; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--sand); color: var(--red-dark); }
.btn-white svg, .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn-navy { background: var(--court); color: #fff; }
.btn-navy:hover { background: var(--court-deep); color: #fff; }
.btn-outline { border-color: var(--court); color: var(--court); background: transparent; padding: 10px 20px; }
.btn-outline:hover { background: var(--court); color: #fff; }
.btn-ghost { border-color: var(--court); color: var(--court); }
.btn-ghost:hover { background: var(--court); color: #fff; }

/* hero band */
.hero-band { background: var(--court); color: #fff; padding-bottom: 72px; }
.hero-band .hero { min-height: 0; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(24px, 4vw, 40px); }
.hero-band h1 { color: #fff; }
.hero-band .lead { color: rgba(255,255,255,.88); }
.hero-band .hero-fact { color: #fff; }
.hero-photo { border-radius: var(--r-l); box-shadow: 0 24px 60px rgba(0,0,0,.25); }

/* category bar overlapping the hero */
.cat-bar-wrap { margin-top: -56px; position: relative; z-index: 2; }
.cat-bar { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; text-decoration: none; color: var(--ink); transition: background-color 150ms ease; }
.cat-img { flex: none; width: 76px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--sand); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-txt strong { display: block; font-size: 1.02rem; font-variation-settings: 'wdth' 106; }
.cat-txt small { color: var(--ink-soft); font-size: .85rem; }
@media (hover: hover) and (pointer: fine) { .cat-tile:hover { background: var(--sand); color: var(--ink); } .cat-tile:hover strong { color: var(--red); } }
.cat-tile:active { transform: scale(.97); }

/* perks */
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.perk { background: var(--sand); border-radius: var(--r-m); padding: 26px 24px; }
.perk svg { width: 34px; height: 34px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.perk h3 { margin: 14px 0 6px; font-size: 1.2rem; color: var(--court); }
.perk p { margin: 0; color: var(--ink-soft); }

/* section headings in brand blue */
.section-head h2, .about-split h2, .page-title { color: var(--court); }
.section-head.row { align-items: center; }

/* sand section */
.section.sand { background: var(--sand); margin-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 96px); }
.hardness { border-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hard-item, .hard-item:first-child { background: #fff; border-radius: var(--r-m); padding: 24px !important; border: 0 !important; transition: transform 200ms var(--ease-out); }
.hard-item h3 { color: var(--court); }
@media (hover: hover) and (pointer: fine) { .hard-item:hover { transform: translateY(-2px); } .hard-item:hover h3 { color: var(--red); } }

/* product cards */
.card-img { border-radius: 18px; }
.gallery-main { border-radius: var(--r-l); }
.summary { border: 0; background: var(--sand); border-radius: var(--r-l); }
.variant { border-radius: var(--r-s); }
.ship-est, .note { border-radius: var(--r-s); background: var(--sand); }
select, input[type=text], input[type=email], input[type=tel], input[type=password] { border-radius: var(--r-s); min-height: 48px; border: 1.5px solid #D6DAE6; }
.chip.on { background: var(--court); border-color: var(--court); color: #fff; }
.order-card { border-radius: var(--r-m); }

/* about split */
.about-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-split .court-stage { margin: 0; border-radius: var(--r-l); }
.about-split .lead { margin: 14px 0 24px; }

/* red help band */
.help-band { background: var(--red); color: #fff; padding: clamp(44px, 6vw, 64px) 0; margin-top: clamp(56px, 8vw, 104px); }
.help-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.help-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.help-band p { margin: 0; max-width: 52ch; color: rgba(255,255,255,.92); font-size: 1.08rem; }
.help-band .btn-light:hover { color: var(--red); }

/* footer navy */
.site-footer { background: var(--navy); }
.help-band + * { margin-top: 0; }

/* inner pages get a light top band */
#main > .section.wrap:first-child { padding-top: clamp(40px, 6vw, 72px); }

@media (max-width: 900px) {
  .cat-bar { grid-template-columns: 1fr 1fr; }
  .perks { grid-template-columns: 1fr; }
  .hardness { grid-template-columns: 1fr 1fr; }
  .hard-item:nth-child(odd), .hard-item:nth-child(even) { padding: 20px !important; border: 0 !important; }
  .about-split { grid-template-columns: 1fr; }
  .hero-band .hero-photo { order: 0; }
  .header-row { padding-bottom: 6px; }
}
@media (max-width: 520px) {
  .cat-bar { grid-template-columns: 1fr; padding: 8px; gap: 2px; }
  .cat-img { width: 64px; height: 48px; }
  .hardness { grid-template-columns: 1fr; }
  .help-row .actions { width: 100%; }
  .help-row .btn { flex: 1 1 100%; }
}
.buy h1 { color: var(--court); }
.variant:has(input:checked) { border-color: var(--court); box-shadow: inset 0 0 0 1px var(--court); }
@media (max-width: 520px) {
  .cat-bar { grid-template-columns: 1fr 1fr; gap: 4px; }
  .cat-tile { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cat-img { width: 100%; height: 72px; }
}
