:root {
  --black: #090909;
  --text: #171717;
  --muted: #727272;
  --line: #e6e6e6;
  --soft: #f7f7f7;
  --green: #54c98d;
  --green-dark: #319d69;
  --pink: #ff2e70;
  --orange: #ff9e00;
  --blue: #dbeaff;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.topbar {
  height: 34px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  position: relative;
}
.topbar:before,
.topbar:after {
  content: "→";
  position: absolute;
}
.topbar:before {
  left: calc(50% - 330px);
  transform: rotate(180deg);
}
.topbar:after {
  right: calc(50% - 330px);
}
.site-header {
  height: 78px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 210px 1fr 210px;
  align-items: center;
  padding: 0 42px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  font-size: 37px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -3px;
}
.brand b {
  font-weight: 700;
}
.nav {
  display: flex;
  gap: 30px;
  justify-content: center;
  font-size: 13px;
}
.nav a,
.header-icons a {
  text-decoration: none;
  color: #111;
}
.header-icons {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  align-items: center;
  font-size: 21px;
}
.icon-btn {
  border: 0;
  background: transparent;
  padding: 8px;
  position: relative;
}
.count {
  position: absolute;
  right: 0;
  top: 0;
  background: #000;
  color: #fff;
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
}
.mobile-only {
  display: none;
}
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
  gap: 28px;
  max-width: 1560px;
  margin: 0 auto;
  padding: 48px 34px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: #eee8e2;
}
.product-panel {
  position: sticky;
  top: 125px;
  align-self: start;
  max-height: calc(100vh - 145px);
  overflow: auto;
  padding: 0 8px 30px;
}
.story-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  overflow: auto;
  padding-bottom: 5px;
}
.story {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #ad00ff, #ff2b7e, #ffb000);
}
.story img,
.story > video {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  pointer-events: none;
  background: #eee;
}
.promo-pill {
  display: inline-flex;
  background: #080808;
  color: #fff;
  border: 2px solid var(--pink);
  font-size: 10px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 20px;
  letter-spacing: 0.4px;
}
.title {
  font-size: 25px;
  margin: 14px 0 6px;
}
.rating {
  color: var(--orange);
  font-size: 18px;
}
.rating small {
  color: #222;
  font-size: 12px;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 21px 0 8px;
}
.price-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}
.old-price {
  text-decoration: line-through;
  color: #8b8b8b;
  font-size: 12px;
}
.price-big {
  font-size: 24px;
  font-weight: 850;
}
.price-kit {
  font-size: 24px;
  color: var(--green-dark);
  font-weight: 850;
}
.price-kit small {
  font-size: 10px;
  color: var(--green-dark);
}
.installment {
  font-size: 12px;
  margin: 8px 0 18px;
}
.offer-box {
  border: 1.5px dashed var(--pink);
  border-radius: 10px;
  padding: 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}
.offer-box strong {
  font-size: 13px;
}
.offer-kicker {
  color: var(--pink);
  font-size: 10px;
  font-weight: 900;
}
.offer-side {
  border-left: 1px dashed #cfcfcf;
  padding-left: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.offer-side b {
  font-size: 18px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
.label {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
}
.size-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.size-btn {
  height: 48px;
  border: 1px solid #d8d8d8;
  background: #fff;
}
.size-btn.active {
  border: 3px solid #111;
  background: #f4f4f4;
}
.helper-links {
  display: flex;
  gap: 28px;
  margin: 20px 0;
  font-size: 13px;
}
.primary-btn {
  width: 100%;
  border: 0;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  letter-spacing: 1.4px;
  padding: 18px 20px;
}
.primary-btn:hover {
  background: var(--green-dark);
}
.secure-line {
  font-size: 11px;
  margin: 18px 0;
  display: flex;
  gap: 9px;
  align-items: center;
}
.benefits-title {
  font-size: 13px;
  font-weight: 800;
}
.benefits {
  background: #f8f8f8;
  padding: 17px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  font-size: 12px;
}
.fit-scale {
  margin-top: 20px;
}
.fit-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid #555;
}
.fit-bar span {
  text-align: center;
  font-size: 10px;
  padding: 7px;
}
.fit-bar .active {
  background: #444;
  color: #fff;
}
.full-sections {
  max-width: 1350px;
  margin: 0 auto;
  padding: 30px 40px 70px;
}
.look-card {
  background: #f6f6f6;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.look-images {
  display: flex;
  gap: 6px;
}
.look-images img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 5px;
}
.shipping-calc {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 24px 0 60px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 12px;
  font-weight: 700;
}
.field input,
.field select {
  height: 48px;
  border: 1px solid #ddd;
  padding: 0 14px;
  outline: none;
}
.shipping-calc .field {
  flex: 1;
}
.secondary-btn {
  height: 48px;
  padding: 0 34px;
  background: #242424;
  color: #fff;
  border: 0;
  font-weight: 800;
  letter-spacing: 1px;
}
.accordion {
  border-top: 1px solid var(--line);
}
.acc-item {
  border-bottom: 1px solid var(--line);
}
.acc-head {
  width: 100%;
  border: 0;
  background: #fff;
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  font-weight: 800;
  text-align: left;
}
.acc-body {
  display: none;
  line-height: 1.7;
  color: #3f3f3f;
  padding: 0 0 25px;
}
.acc-item.open .acc-body {
  display: block;
}
.compare {
  margin: 50px 0;
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.compare th,
.compare td {
  border-bottom: 1px solid #ddd;
  padding: 16px;
  text-align: left;
}
.compare th:nth-child(2),
.compare td:nth-child(2) {
  background: var(--blue);
  text-align: center;
}
.compare th:nth-child(3),
.compare td:nth-child(3) {
  text-align: center;
}
.yes {
  color: #2fa956;
  font-size: 22px;
}
.no {
  color: #ff1f45;
  font-size: 22px;
}
.reviews {
  max-width: 850px;
  margin: 60px auto;
}
.review-summary {
  display: flex;
  gap: 50px;
  align-items: center;
  padding-bottom: 25px;
  border-bottom: 1px solid #ddd;
}
.review {
  padding: 26px 0;
  border-bottom: 1px solid #ddd;
}
.review-head {
  display: flex;
  justify-content: space-between;
}
.verified {
  background: #000;
  color: #fff;
  padding: 3px 6px;
  font-size: 10px;
}
.review img {
  width: 90px;
  height: 110px;
  object-fit: cover;
  margin-top: 12px;
}
.footer-features {
  border-top: 1px solid #eee;
  padding: 28px 4%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.footer {
  background: #f6f6f6;
  padding: 42px 4%;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1.3fr;
  gap: 40px;
}
.footer h4 {
  font-size: 13px;
}
.footer a,
.footer p {
  display: block;
  color: #303030;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.8;
}
.footer-bottom {
  border-top: 1px solid #ddd;
  margin-top: 40px;
  padding-top: 30px;
  text-align: center;
}
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(520px, 93vw);
  background: #fff;
  transform: translateX(100%);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}
.cart-overlay.open .cart-drawer {
  transform: translateX(0);
}
.cart-head {
  height: 74px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 18px;
  font-weight: 800;
}
.cart-body {
  flex: 1;
  overflow: auto;
  padding: 24px;
}
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
}
.cart-item img {
  width: 90px;
  height: 110px;
  object-fit: cover;
}
.qty {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  width: max-content;
}
.qty button {
  border: 0;
  background: #fff;
  width: 34px;
  height: 34px;
}
.qty span {
  width: 34px;
  text-align: center;
}
.cart-footer {
  border-top: 1px solid #ddd;
  padding: 20px 24px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  margin-bottom: 14px;
}
.checkout-page {
  background: #f7f7f7;
  min-height: 100vh;
}
.checkout-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
}
.checkout-card {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  padding: 28px;
}
.checkout-card h2 {
  margin-top: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.span-2 {
  grid-column: 1/-1;
}
.shipping-options {
  display: grid;
  gap: 12px;
}
.ship-option {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  position: relative;
}
.ship-option.selected {
  border: 2px solid #111;
}
.badge {
  position: absolute;
  right: 12px;
  top: -10px;
  background: #111;
  color: #fff;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 9px;
  font-weight: 800;
}
.summary-item {
  display: flex;
  gap: 14px;
}
.summary-item img {
  width: 75px;
  height: 90px;
  object-fit: cover;
}
.summary-lines {
  margin-top: 24px;
  border-top: 1px solid #ddd;
  padding-top: 16px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
}
.summary-line.total {
  font-size: 22px;
  font-weight: 900;
}
.payment-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 42px 20px;
}
.payment-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
#qrcode {
  display: flex;
  justify-content: center;
  margin: 22px auto;
}
#qrcode img,
#qrcode canvas {
  max-width: 250px !important;
  height: auto !important;
}
.pix-code {
  width: 100%;
  height: 88px;
  border: 1px solid #ddd;
  padding: 12px;
  resize: none;
}
.status-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #fff8dc;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
}
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid #ddd;
  border-top-color: #222;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.success-icon {
  font-size: 64px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 25px);
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 200;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 900px) {
  .topbar:before {
    left: 18px;
  }
  .topbar:after {
    right: 18px;
  }
  .site-header {
    height: 74px;
    grid-template-columns: 1fr auto 1fr;
    padding: 0 14px;
  }
  .nav {
    display: none;
  }
  .mobile-only {
    display: block;
  }
  .brand {
    font-size: 38px;
    text-align: center;
  }
  .header-icons {
    gap: 2px;
  }
  .desktop-hide {
    display: none;
  }
  .product-layout {
    display: block;
    padding: 0;
  }
  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
  }
  .gallery-grid img {
    min-width: 100%;
    height: calc(100vh - 108px);
    aspect-ratio: auto;
    scroll-snap-align: start;
    object-fit: cover;
  }
  .product-panel {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0 14px 30px;
  }
  .story-row {
    order: -1;
    margin: 8px 0 4px;
    padding: 0 0 4px;
  }
  .story {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }
  .title {
    font-size: 23px;
  }
  .price-row {
    gap: 16px;
  }
  .price-big,
  .price-kit {
    font-size: 22px;
  }
  .size-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .benefits {
    grid-template-columns: 1fr;
  }
  .full-sections {
    padding: 20px 16px 50px;
  }
  .look-card {
    align-items: flex-start;
    gap: 10px;
  }
  .look-images img {
    width: 46px;
    height: 58px;
  }
  .shipping-calc {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 35px;
  }
  .shipping-calc .secondary-btn {
    width: 100%;
  }
  .compare {
    overflow: auto;
  }
  .compare table {
    min-width: 620px;
  }
  .review-summary {
    gap: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-features {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .checkout-wrap {
    grid-template-columns: 1fr;
    padding: 18px 12px;
  }
  .checkout-card {
    padding: 20px;
  }
  .checkout-summary {
    order: -1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .sticky-mobile {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 10px 0;
    z-index: 10;
  }
  .payment-wrap {
    padding: 18px 12px;
  }
  .footer {
    padding: 32px 20px;
  }
}
@media (max-width: 520px) {
  .header-icons .hide-small {
    display: none;
  }
  .footer-features,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .size-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .offer-box {
    grid-template-columns: 1fr;
  }
  .offer-side {
    border-left: 0;
    border-top: 1px dashed #ccc;
    padding: 12px 0 0;
  }
  .gallery-grid img {
    height: calc(100vh - 110px);
  }
  .checkout-card {
    border-radius: 8px;
  }
  .cart-item {
    grid-template-columns: 72px 1fr;
  }
  .cart-item img {
    width: 72px;
    height: 92px;
  }
  .cart-item > .price-col {
    grid-column: 2;
  }
  .brand {
    font-size: 32px;
  }
}

/* Galeria mobile com prévia da próxima imagem */
.product-media { min-width: 0; }
.mobile-stories { display: none; }
.story { border: 0; cursor: pointer; appearance: none; }
.gallery-viewport { position: relative; overflow: hidden; }
.gallery-progress { display: none; }

/* Visualizador de vídeos em formato story */
.story-modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.story-modal.open { display: grid; place-items: center; }
.story-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.86); }
.story-player-shell { position: relative; z-index: 1; width: min(92vw, 520px); height: min(88vh, 900px); background: #050505; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.story-player-shell video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.story-close { position: absolute; top: 16px; right: 16px; z-index: 4; border: 0; background: rgba(0,0,0,.48); color: white; width: 38px; height: 38px; border-radius: 50%; font-size: 28px; cursor: pointer; }
.story-nav { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 34px; line-height: 1; cursor: pointer; }
.story-prev { left: 14px; }
.story-next { right: 14px; }
.story-timeline { position: absolute; z-index: 4; top: 10px; left: 12px; right: 58px; display: flex; gap: 5px; }
.story-timeline span { height: 3px; flex: 1; background: rgba(255,255,255,.35); border-radius: 4px; overflow: hidden; }
.story-timeline span::after { content: ""; display: block; width: 0; height: 100%; background: white; }
.story-timeline span.done::after { width: 100%; }
.story-timeline span.active::after { width: 100%; }

@media (max-width: 900px) {
  .desktop-stories { display: none; }
  .mobile-stories { display: flex; margin: 0; padding: 10px 14px 9px; background: #fff; gap: 10px; }
  .gallery-viewport { width: 100%; background: #eee8e2; }
  .gallery-grid { gap: 5px; padding: 0 0 0 0; scrollbar-width: none; overscroll-behavior-x: contain; }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-grid img {
    min-width: calc(100% - 74px);
    width: calc(100% - 74px);
    flex: 0 0 calc(100% - 74px);
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    scroll-snap-align: start;
  }
  .gallery-grid img:last-child { margin-right: 74px; }
  .gallery-progress { display: block; width: 96px; height: 4px; background: rgba(0,0,0,.18); position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); z-index: 3; overflow: hidden; }
  .gallery-progress span { display: block; width: 20%; height: 100%; background: rgba(0,0,0,.62); transform: translateX(0); transition: transform .18s ease; }
  .story-player-shell { width: min(94vw, 540px); height: 90vh; border-radius: 10px; }
}

@media (max-width: 520px) {
  .gallery-grid img { min-width: calc(100% - 62px); width: calc(100% - 62px); flex-basis: calc(100% - 62px); }
  .gallery-grid img:last-child { margin-right: 62px; }
  .story-nav { width: 40px; height: 40px; }
}


/* Miniaturas de stories: os vídeos rodam em loop, sem som, dentro dos círculos. */
.story > video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  pointer-events: none;
  background: #ececec;
}
.story:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}
