:root {
  --ink: #17233b;
  --ink-soft: #55607a;
  --paper: #fbf9f6;
  --white: #fff;
  --line: #e3ddd3;
  --brand: #d9482b;
  --brand-dark: #b53a21;
  --navy: #1b2a4a;
  --blue: #1f5fbf;
  --ok-bg: #e5f4ea;
  --ok: #1d6b3a;
  --err-bg: #fbe9e6;
  --err: #a52a16;
  --info-bg: #e8eefb;
  --r: 10px;
  --gap: 24px;
  --shadow: 0 1px 2px rgb(23 35 59 / .08), 0 6px 18px rgb(23 35 59 / .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
ul { padding-left: 1.2em; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

.h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.h3 { font-size: 1.15rem; }
.lead { color: var(--ink-soft); font-size: 1.05rem; }
.block { padding-block: 32px; }
.block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }

/* Botões */
.btn, button.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: var(--r); padding: 12px 22px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn--sm { padding: 7px 14px; font-size: .9rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; }

/* Topbar */
.topbar { background: var(--navy); color: #dfe6f6; font-size: .85rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; margin-left: 14px; }
.topbar__right { display: flex; flex-wrap: wrap; }

/* Header */
.head { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.head__in { display: flex; align-items: center; gap: 20px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.3rem; }
.logo__txt { display: flex; flex-direction: column; font-weight: 800; font-size: 1.2rem; line-height: 1; }
.logo__txt small { font-weight: 500; letter-spacing: .18em; text-transform: uppercase; font-size: .62rem; color: var(--ink-soft); margin-top: 3px; }
.search { flex: 1; display: flex; max-width: 520px; }
.search input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-right: 0; border-radius: var(--r) 0 0 var(--r); font: inherit; }
.search button { border: 0; background: var(--navy); color: #fff; padding: 0 18px; border-radius: 0 var(--r) var(--r) 0; font: inherit; cursor: pointer; }
.acct { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.acct a { text-decoration: none; color: var(--ink); font-weight: 600; }
.acct form { margin: 0; }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: .78rem; }
.burger { display: none; }

.mainnav { border-top: 1px solid var(--line); }
.mainnav__in { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mainnav a, .dd__btn { padding: 12px 14px; color: var(--ink); text-decoration: none; font-weight: 600; background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.mainnav a:hover, .dd__btn:hover { color: var(--brand); }
.dd { position: relative; }
.dd__btn::after { content: " ▾"; font-size: .8em; }
.dd__panel { display: none; position: absolute; left: 0; top: 100%; width: min(760px, 92vw); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 0 0 var(--r) var(--r); padding: 16px 20px; max-height: 70vh; overflow: auto; }
.dd.open .dd__panel { display: block; }
.dd__panel ul { list-style: none; margin: 8px 0 0; padding: 0; columns: 3 200px; }
.dd__panel li a { display: block; padding: 5px 0; font-weight: 400; }
.dd__all { font-weight: 700; }

/* Flash */
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r); }
.flash--ok { background: var(--ok-bg); color: var(--ok); }
.flash--error { background: var(--err-bg); color: var(--err); }
.flash--info { background: var(--info-bg); color: var(--navy); }

/* Hero */
.hero { position: relative; }
.hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; color: #fff; }
.slide--brand { background: linear-gradient(120deg, var(--brand), #f08a4b); }
.slide--dark { background: linear-gradient(120deg, #26211d, #5a3d2b); }
.slide--blue { background: linear-gradient(120deg, #123b7a, var(--blue)); }
.slide__in { padding-block: clamp(40px, 8vw, 90px); max-width: 1180px; }
.slide h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); max-width: 14em; }
.slide p { max-width: 34em; font-size: 1.1rem; }
.slide .btn { background: #fff; color: var(--ink); }
.slide .btn:hover { background: var(--paper); color: var(--brand-dark); }
.hero__ctl { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.hero__ctl button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .9); font-size: 1.4rem; cursor: pointer; }

/* Tiles, chips, grid */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tile { display: grid; place-items: center; text-align: center; min-height: 110px; padding: 16px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--brand-dark); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 6px 14px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .92rem; }
.chips a:hover { border-color: var(--brand); color: var(--brand-dark); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.card__link { text-decoration: none; color: inherit; display: block; }
.card__name { font-size: 1rem; margin: 12px 0 4px; }
.card__meta { color: var(--ink-soft); font-size: .86rem; margin: 0; }
.ph { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--ph, #8f8f8f) 14%, #f3eee6); }
.ph span { font-size: 3.2rem; font-weight: 800; color: color-mix(in srgb, var(--ph, #8f8f8f) 80%, #000); opacity: .85; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--lg span { font-size: 7rem; }
.ph--sm { width: 72px; flex: none; }
.ph--sm span { font-size: 1.8rem; }
.tag { position: absolute; top: 8px; left: 8px; background: var(--navy); color: #fff; font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.dots { display: flex; gap: 5px; margin: 8px 0 0; }
.dots i, .chk i, .swatch i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--dot); border: 1px solid rgb(0 0 0 / .25); }

/* Faixas */
.band { background: var(--navy); color: #fff; padding-block: 40px; }
.band .h2 { color: #fff; }
.about { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.rating { text-align: center; margin: 0; }
.rating strong { display: block; font-size: 3.4rem; line-height: 1; }
.clients { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.clients li { padding: 10px 20px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--white); font-weight: 700; color: var(--ink-soft); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.quote { margin: 0; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.quote blockquote { margin: 8px 0; }
.quote figcaption { color: var(--ink-soft); font-size: .88rem; }
.stars { color: #e5a400; margin: 0; letter-spacing: 2px; }

/* Listagem */
.crumbs { font-size: .88rem; color: var(--ink-soft); margin-bottom: 12px; }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-block: 16px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.filters legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chk, .swatch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
select, input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], textarea { font: inherit; padding: 9px 12px; border: 1px solid #c9c2b6; border-radius: 8px; background: #fff; color: var(--ink); }
.count { color: var(--ink-soft); }
.empty { background: var(--white); border: 1px dashed var(--line); border-radius: var(--r); padding: 28px; text-align: center; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.pager a { min-width: 40px; text-align: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); text-decoration: none; }
.pager a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Produto */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 16px 0; }
.specs dt { font-size: .8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.specs dd { margin: 0; font-weight: 600; }
.buy { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-block: 18px; }
.buy fieldset { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.buy legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.qtys { display: flex; gap: 10px; flex-wrap: wrap; }
.qtys input { width: 110px; }
.pers dt { font-weight: 700; margin-top: 10px; }
.pers dd { margin: 2px 0 0; color: var(--ink-soft); }

/* Formulários, carrinho, tabelas */
.stack { display: grid; gap: 14px; max-width: 520px; margin-block: 18px; }
.stack label { display: grid; gap: 6px; font-weight: 600; }
.stack input, .stack textarea { width: 100%; }
.err { color: var(--err); margin: -8px 0 0; font-size: .9rem; }
.lines { list-style: none; padding: 0; margin: 0 0 24px; }
.line { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line p { margin: 2px 0; }
.line form { margin-left: auto; }
.line--plain { display: block; }
.tbl { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.tbl th, .tbl td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.post { padding-block: 14px; border-bottom: 1px solid var(--line); }
.prose p { max-width: 65ch; }

/* Rodapé */
.foot { background: var(--navy); color: #cfd8ee; margin-top: 40px; padding-top: 36px; }
.foot h2 { color: #fff; font-size: 1.05rem; }
.foot a { color: #fff; }
.foot ul { list-style: none; padding: 0; }
.foot li { margin-bottom: 6px; }
.foot address { font-style: normal; line-height: 1.7; }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.foot__end { border-top: 1px solid rgb(255 255 255 / .15); margin-top: 28px; padding-block: 16px; font-size: .86rem; }
.nl { display: flex; gap: 6px; }
.nl input { flex: 1; min-width: 0; }
.nl button { background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 0 16px; font: inherit; font-weight: 600; cursor: pointer; }

/* Mobile */
@media (max-width: 860px) {
  .head__in { flex-wrap: wrap; gap: 12px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .burger { display: inline-block; margin-left: 4px; padding: 8px 14px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; font: inherit; font-weight: 600; }
  .acct { margin-left: auto; order: 2; }
  .burger { order: 3; margin-left: 0; }
  .mainnav { display: none; }
  .mainnav.open { display: block; }
  .mainnav__in { flex-direction: column; align-items: stretch; }
  .dd__panel { position: static; width: auto; box-shadow: none; border: 0; padding: 0 14px 10px; }
  .pdp, .about { grid-template-columns: 1fr; }
  .ph--lg span { font-size: 5rem; }
  .line { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
