/* Lojão do Condomínio — catálogo estático */

:root {
  --brand: #f98513;
  --brand-dark: #e0740a;
  --navy: #223382;
  --navy-2: #1b2968;
  --ink: #16181f;
  --ink-2: #45464d;
  --ink-3: #75767e;
  --line: #e6e6ea;
  --bg: #ffffff;
  --bg-2: #f7f7f9;
  --bg-3: #efeff3;
  --ok: #1a8a4b;
  --sale: #d8342b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 16, 20, .05), 0 8px 24px -12px rgba(16, 16, 20, .18);
  --maxw: 1220px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 20px;
}

/* ---------- Cabeçalho ---------- */

.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  padding-block: 8px;
}
.topbar a { color: #ffd9b0; font-weight: 600; }
.topbar a:hover { color: #fff; }
.topbar span { color: #c6cbe8; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 12px;
}
.logo { flex: 0 0 auto; }
.logo img { height: 44px; width: auto; }

.search {
  flex: 1 1 320px;
  position: relative;
  max-width: 520px;
}
.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 999px;
  padding: 10px 16px 10px 40px;
  font: inherit;
  color: var(--ink);
  outline: none;
}
.search input:focus {
  border-color: var(--navy);
  background: #fff;
}
.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--ink-3);
  fill: none;
  stroke-width: 2;
}

.header-cta {
  margin-left: auto;
  flex: 0 0 auto;
}

.nav {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.nav .wrap {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0;
}
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a {
  white-space: nowrap;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--brand);
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-wa { background: #25d366; color: #062e13; }
.btn-wa:hover { background: #1eb959; }
.btn svg { width: 16px; height: 16px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, #1b2968 0%, #2b3d99 55%, #1b2968 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(249, 133, 19, .3), transparent 65%);
  pointer-events: none;
}
.hero .wrap {
  padding-block: 64px;
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero .eyebrow {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 18px 0 12px;
}
.hero p {
  font-size: 17px;
  color: #ccd3f0;
  max-width: 620px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.stats b {
  display: block;
  font-size: 26px;
  letter-spacing: -.02em;
  color: #ffb267;
}
.stats span { font-size: 13px; color: #aab3da; }

/* ---------- Seções ---------- */

section.block { padding-block: 56px; }
section.block.alt { background: var(--bg-2); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head :is(h1, h2) {
  font-size: clamp(20px, 3vw, 27px);
  letter-spacing: -.02em;
  margin: 0;
}
.section-head p {
  margin: 6px 0 0;
  color: var(--ink-3);
  font-size: 14px;
}
.section-head a {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
}

/* ---------- Grade de categorias ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cat-card .thumb {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 10px;
  background: var(--bg-3);
  object-fit: cover;
}
.cat-card .thumb.ph {
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--ink-3);
}
.cat-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.cat-card span { font-size: 12px; color: var(--ink-3); }

/* ---------- Grade de produtos ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover {
  border-color: #cfcfd6;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card .media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  max-width: 100%;
}
.card .media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.card .badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
}
.badge.sale { background: var(--sale); }
.badge.out { background: var(--bg-3); color: var(--ink-3); }

.card .body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card .cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-3);
  font-weight: 650;
}
.card h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .price { margin-top: auto; padding-top: 4px; }

.price .amount {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.price .from {
  font-size: 11px;
  color: var(--ink-3);
  display: block;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.price del {
  font-size: 13px;
  color: var(--ink-3);
  margin-right: 6px;
  font-weight: 500;
}
.price .quote {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-2);
}
.price .sku {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ---------- Barra de filtros ---------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.toolbar label {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
}
.toolbar select,
.toolbar input[type="search"] {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  max-width: 100%;
}
.toolbar select { max-width: 260px; }
.toolbar #f-cat { max-width: 300px; }
.toolbar select:focus,
.toolbar input:focus { border-color: var(--navy); }
.toolbar .count {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-3);
}
.toolbar .field { display: flex; align-items: center; gap: 8px; }

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-3);
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.pager button {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.pager button[aria-current="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.pager button:disabled { opacity: .4; cursor: default; }

/* ---------- Breadcrumb ---------- */

.crumbs {
  font-size: 13px;
  color: var(--ink-3);
  padding-block: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs .sep { opacity: .5; }

/* ---------- Página do produto ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; gap: 28px; }
}

.gallery .main {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gallery .main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}
.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.thumbs button {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  cursor: pointer;
}
.thumbs button[aria-current="true"] { border-color: var(--navy); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pinfo h1 {
  font-size: clamp(21px, 3.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
.pmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.pmeta .instock { color: var(--ok); font-weight: 650; }
.pmeta .outstock { color: var(--sale); font-weight: 650; }

.price-box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 22px;
}
.price-box .amount { font-size: 30px; }
.price-box .from { margin-bottom: 2px; }
.price-box .note {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 8px;
}
.price-box .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pshort { color: var(--ink-2); margin-bottom: 22px; }
.pshort ul { padding-left: 20px; margin: 0; }
.pshort li { margin-bottom: 5px; }

.attrs { border-top: 1px solid var(--line); padding-top: 18px; }
.attrs h3, .desc h2, .variations h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.chiplist { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip {
  font-size: 12.5px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ink-2);
}

.panel { border-top: 1px solid var(--line); padding-block: 36px; }

.desc :is(table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  max-width: 640px;
}
.desc :is(td, th) {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.desc tr:nth-child(odd) td { background: var(--bg-2); }
.desc img { border-radius: 8px; margin: 12px 0; }
.desc p:first-child { margin-top: 0; }

.tablewrap { overflow-x: auto; }
table.vars {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 420px;
}
table.vars th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
}
table.vars td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}
table.vars td.p { font-weight: 700; white-space: nowrap; }
table.vars tr:hover td { background: var(--bg-2); }

/* ---------- Rodapé ---------- */

.site-footer {
  background: var(--navy);
  color: #c6cbe8;
  margin-top: 20px;
  font-size: 14px;
}
.site-footer .wrap { padding-block: 48px 28px; }
.fcols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
}
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 14px;
}
.site-footer .flogo {
  display: inline-block;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.site-footer .flogo img { height: 40px; width: auto; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a:hover { color: var(--brand); }
.legal {
  border-top: 1px solid rgba(255, 255, 255, .16);
  margin-top: 32px;
  padding-top: 18px;
  font-size: 13px;
  color: #97a0cd;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* ---------- Botão flutuante WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Responsivo ---------- */

@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; gap: 12px; }
  .logo img { height: 36px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hero .wrap { padding-block: 44px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
  .toolbar .count { margin-left: 0; flex-basis: 100%; }
  section.block { padding-block: 40px; }
}
