/* KP COMERCIO — parede de armações */
:root {
  --lens: #F4F7F8;
  --acetate: #1A1A1A;
  --gold: #C6A15B;
  --navy: #1E3A4C;
  --paper: #F7F3EA;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body.skin-optic {
  margin: 0;
  background: var(--paper);
  color: var(--acetate);
  font-family: "Outfit", sans-serif;
  font-size: 1.02rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, .brand-name, .optic-price {
  font-family: "Fraunces", serif;
  font-weight: 700;
  line-height: 1.12;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0 0 0.5rem; }
h3 { font-size: 1.15rem; margin: 0.35rem 0; }
p { margin: 0.4rem 0; }
.brand-name {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.skip-link {
  position: absolute;
  left: 0.6rem;
  top: -4rem;
  background: var(--paper);
  color: var(--acetate);
  padding: 0.45rem 0.7rem;
  z-index: 90;
}
.skip-link:focus { top: 0.5rem; }
[data-site-header], main, [data-site-footer] { min-width: 0; }
.optic-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  min-width: 0;
}
.optic-kicker {
  margin: 0 0 0.35rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Header: acetate bar, lens plaque on the left, nav on the right */
.optic-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  background: var(--acetate);
  color: var(--lens);
  padding: 0.55rem 0.9rem;
  border-bottom: 7px solid var(--gold);
}
.optic-plaque {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
  color: var(--acetate);
  background: var(--lens);
  border: 3px solid var(--gold);
  border-radius: 46% / 42%;
  padding: 0.55rem 1.05rem;
  position: relative;
  z-index: 1;
}
.optic-plaque .brand-name { color: var(--acetate); }
.site-nav { margin-left: auto; min-width: 0; position: relative; z-index: 2; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--lens);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  display: inline-block;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}
.menu-toggle {
  display: none;
  font-family: "Outfit", sans-serif;
  background: transparent;
  color: var(--lens);
  border: 1px solid var(--gold);
  padding: 0.4rem 0.7rem;
}
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--lens);
  text-decoration: none;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}
.cart-link strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--acetate);
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
}
.cart-link[aria-current="page"] span { text-decoration: underline; text-underline-offset: 0.2rem; }

/* Hero: close crop of the frame bar */
.optic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
  min-width: 0;
}
.optic-hero-rail {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 0;
  overflow: hidden;
  padding: 1.4rem 0 1.2rem 0.8rem;
  background:
    linear-gradient(var(--acetate), var(--acetate)) left 22% / 100% 14px no-repeat,
    var(--navy);
}
.optic-hero .optic-slot { flex: 0 0 250px; color: var(--paper); }
.optic-hero .optic-slot h3 a, .optic-hero .optic-price, .optic-hero .optic-cat { color: var(--paper); }
.optic-hero-copy {
  padding: 1.2rem 1.1rem 1.6rem;
  min-width: 0;
}
.optic-hero .optic-kicker { color: var(--paper); }
.optic-hero .btn { background: var(--gold); color: var(--acetate); border-color: var(--gold); }

.optic-band {
  padding: 1.6rem 0 2rem;
}
.optic-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.optic-case {
  background: var(--navy);
  color: var(--paper);
  padding: 1rem 1.1rem;
  min-width: 0;
}
.optic-case a { color: var(--paper); }

/* Catalog wall: 4 nose-pad slots on desktop */
.optic-pagehead { padding: 1.1rem 0 0.2rem; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0 0.8rem;
}
.filters button {
  font-family: "Outfit", sans-serif;
  font-size: 0.92rem;
  background: var(--paper);
  color: var(--acetate);
  border: 1px solid var(--acetate);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.filters button.is-active, .filters button[aria-pressed="true"] {
  background: var(--acetate);
  color: var(--lens);
}
.optic-wall {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.8rem 0.8rem;
  min-width: 0;
  background: var(--lens);
  border-top: 16px solid var(--acetate);
  border-bottom: 10px solid var(--navy);
  padding: 1.4rem 0.8rem 1.8rem;
  box-shadow: inset 0 7px 0 var(--gold);
}
.optic-slot {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.optic-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 250px);
  min-width: 0;
  text-decoration: none;
}
.optic-temple {
  flex: 0 0 16px;
  height: 6px;
  background: var(--gold);
  border-radius: 3px;
}
.optic-front {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
  background: var(--acetate);
  border: 4px solid var(--acetate);
  border-radius: 16px;
  padding: 6px;
}
.optic-lens {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 46% 46% 50% 50%;
  border: 2px solid var(--gold);
  background: var(--navy);
}
.optic-lens img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  max-width: none;
}
.optic-bridge {
  flex: 0 0 8px;
  height: 4px;
  background: var(--gold);
}
.optic-pad {
  width: 22px;
  height: 9px;
  margin-top: 1px;
  background: var(--gold);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}
.optic-slot h3 a { color: var(--acetate); text-decoration: none; }
.optic-slot h3 a:hover { text-decoration: underline; }
.optic-cat { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin: 0; }
.optic-price { margin: 0.15rem 0 0.45rem; color: var(--navy); font-size: 1.2rem; }
.optic-hero .optic-pad { background: var(--gold); }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  background: var(--acetate);
  color: var(--lens);
  border: 2px solid var(--gold);
  padding: 0.65rem 0.95rem;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--navy); color: var(--paper); }
.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-detail, .cart-layout, .checkout-layout, .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  padding: 1.2rem 0 2rem;
  min-width: 0;
}
.optic-stage {
  background: var(--lens);
  border-top: 14px solid var(--acetate);
  box-shadow: inset 0 6px 0 var(--gold);
  padding: 1.4rem 0.8rem;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.optic-stage .optic-pair { width: min(100%, 420px); }
.optic-stage .optic-lens { aspect-ratio: 4 / 5; border-radius: 42% 42% 46% 46%; }
.field, select.field, textarea.field {
  width: 100%;
  min-width: 0;
  font: inherit;
  color: var(--acetate);
  background: #fff;
  border: 1px solid var(--acetate);
  padding: 0.7rem 0.75rem;
  border-radius: 0;
}
textarea.field { min-height: 8rem; resize: vertical; }
label { display: block; font-weight: 600; margin: 0.7rem 0 0.25rem; }
.field-hint { font-size: 0.9rem; color: var(--navy); margin: 0.25rem 0 0.4rem; }
.ticket-form, .optic-news form { min-width: 0; }
.checkbox-line {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.55rem 0;
  font-weight: 400;
  font-size: 0.92rem;
}
.checkbox-line input { margin-top: 0.25rem; flex: 0 0 auto; }
.pay-option {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  border: 1px solid var(--acetate);
  background: #fff;
  padding: 0.75rem;
  margin: 0.4rem 0;
}
.pay-option:has(input:checked) { box-shadow: inset 4px 0 0 var(--gold); }
.form-feedback {
  background: var(--navy);
  color: var(--paper);
  padding: 0.8rem 0.9rem;
  margin-top: 0.8rem;
}
.optic-side, .optic-summary {
  background: var(--lens);
  border: 1px solid var(--navy);
  padding: 1rem;
  min-width: 0;
}
.summary-row, .optic-line {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0.35rem 0;
  min-width: 0;
}
.summary-row span, .optic-line span { min-width: 0; }
.optic-cart-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--navy);
  min-width: 0;
}
.qty { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.4rem; }
.qty button, .remove-btn {
  font-family: "Outfit", sans-serif;
  background: var(--paper);
  color: var(--acetate);
  border: 1px solid var(--acetate);
  min-width: 2rem;
  min-height: 2rem;
  cursor: pointer;
}
.remove-btn { margin-top: 0.45rem; }

.legal-page { background: var(--paper); color: var(--acetate); }
.legal-page .legal-article, .legal-page .legal-nav {
  font-family: "Outfit", sans-serif;
  color: var(--acetate);
}
.legal-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem 0 2.4rem;
  align-items: start;
}
.legal-nav { position: static; min-width: 0; }
.legal-nav a { display: block; margin: 0.35rem 0; text-decoration: underline; }
.legal-nav a[aria-current="page"] { font-weight: 700; }
.legal-article { min-width: 0; max-width: 68ch; }
.legal-article h1 { font-family: "Outfit", sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.legal-article h2 { font-family: "Outfit", sans-serif; font-size: 1.2rem; margin-top: 1.3rem; }
.optic-facts { list-style: none; padding: 0; margin: 0.6rem 0; }
.optic-facts li { margin: 0.3rem 0; }
.optic-extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
}
.optic-extra figure { margin: 0; min-width: 0; background: var(--lens); }
.optic-extra img { width: 100%; height: 220px; object-fit: cover; object-position: center 20%; }
.optic-extra figcaption { font-size: 0.85rem; padding: 0.35rem 0.5rem 0.6rem; }

.optic-footer {
  background: var(--navy);
  color: var(--paper);
  padding: 1.4rem 0 1rem;
  min-width: 0;
}
.optic-footer a { color: var(--paper); text-decoration: underline; text-underline-offset: 0.15rem; }
.optic-news {
  background: var(--paper);
  color: var(--acetate);
  border: 3px solid var(--gold);
  padding: 1rem;
  margin-bottom: 1.2rem;
  min-width: 0;
}
.optic-news a { color: var(--navy); }
.optic-footgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.optic-footgrid h3 {
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
.optic-footgrid a, .optic-footgrid p { display: block; margin: 0.25rem 0; }
.footer-copy {
  margin: 1rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(247, 243, 234, 0.35);
  font-size: 0.92rem;
}
.toast {
  position: fixed;
  z-index: 70;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin-inline: auto;
  width: fit-content;
  max-width: calc(100vw - 2rem);
  background: var(--acetate);
  color: var(--paper);
  border: 2px solid var(--gold);
  padding: 0.75rem 0.9rem;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (min-width: 720px) {
  .optic-hero { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr); min-height: 520px; }
  .optic-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 1.4rem 1.5rem 0.4rem; }
  .optic-note, .optic-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .optic-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail, .cart-layout, .checkout-layout, .contact-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
  .legal-wrap { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 1.6rem; }
  .optic-footgrid { grid-template-columns: 1.3fr 1fr 1fr; }
}
@media (min-width: 1080px) {
  .optic-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 0.7rem; padding-inline: 1rem; }
  .optic-extra { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .menu-toggle { display: inline-flex; }
  .optic-bar { flex-wrap: wrap; }
  .optic-plaque { order: 1; max-width: calc(100% - 9.5rem); }
  .menu-toggle { order: 2; margin-left: auto; }
  .cart-link { order: 3; }
  .site-nav {
    display: none;
    order: 4;
    flex: 1 0 100%;
    margin-left: 0;
    background: var(--acetate);
    padding-bottom: 0.6rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { display: block; padding: 0.55rem 0.2rem; }
}
