:root {
  color-scheme: light;
  --ink: #222;
  --muted: #6f7885;
  --line: #e5e9ef;
  --soft: #f5f7fa;
  --navy: #17283f;
  --blue: #3483fa;
  --blue-soft: #e4edfb;
  --green: #00a650;
  --market-yellow: #ffe600;
  --orange: #ff8a45;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: #edf0f4;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(52, 124, 246, 0.4);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.store-header,
.delivery-banner,
main,
.store-footer {
  width: min(100%, 520px);
  margin-inline: auto;
  background: #fff;
}

.store-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 16px;
  background: var(--market-yellow);
  color: var(--ink);
}

.store-brand {
  display: inline-flex;
  align-items: center;
}

.store-brand__logo {
  display: block;
  width: 130px;
  height: auto;
}

.search {
  height: 38px;
  display: flex;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.search input {
  width: 100%;
  min-width: 0;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search input::placeholder {
  color: #9299a3;
}

.search input:focus-visible {
  outline-offset: -3px;
}

.search button {
  width: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: #fff;
  color: var(--navy);
}

.search svg,
.cart-link svg,
.delivery-banner svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.cart-link {
  width: 32px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.delivery-banner {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  background: var(--market-yellow);
  color: #554f1c;
  font-size: 11px;
}

.delivery-banner svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.delivery-banner strong {
  color: var(--green);
  font-weight: 700;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 18px 5px;
  color: var(--muted);
  font-size: 11px;
}

.breadcrumbs a {
  color: var(--blue);
}

.breadcrumbs span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product {
  background: #fff;
}

.product__heading {
  display: flex;
  flex-direction: column;
  padding: 15px 18px 10px;
}

.product__brand {
  order: 1;
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.product h1 {
  order: 3;
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

.rating {
  order: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
}

.rating__stars {
  color: var(--blue);
  font-size: 16px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.rating__count {
  color: var(--muted);
}

.gallery {
  padding: 10px 18px 17px;
}

.gallery__frame {
  position: relative;
  height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.gallery__counter {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 0;
  min-width: 43px;
  padding: 4px 9px;
  border-radius: 14px;
  background: #f3f3f3;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.gallery__favorite {
  position: absolute;
  z-index: 1;
  top: 7px;
  right: 0;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: var(--blue);
  cursor: pointer;
}

.gallery__favorite svg {
  width: 22px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
}

.gallery__favorite[aria-pressed="true"] svg {
  fill: #f04f68;
  stroke: #f04f68;
}

.gallery__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.gallery__arrow--previous {
  left: 7px;
}

.gallery__arrow--next {
  right: 7px;
}

.gallery__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.gallery__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: contain;
  object-position: center;
}

.gallery__image.is-active {
  display: block;
}

.gallery__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 12px;
}

.gallery__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #dedede;
  cursor: pointer;
}

.gallery__dots button.is-active {
  background: var(--blue);
}

.purchase-card {
  padding: 20px 18px 18px;
}

.price-old {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.price-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 2px;
}

.price-line h2 {
  margin: 0;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.discount {
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.installments {
  margin: 5px 0 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

.installments-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.unit-price {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.payment-link,
.shipping-card a {
  display: inline-block;
  margin-top: 9px;
  color: var(--blue);
  font-size: 13px;
}

.shipping-card {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #e1e3e5;
  border-radius: 12px;
}

.shipping-card__tag {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.shipping-card p {
  margin: 14px 0 4px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

.shipping-card p strong {
  color: var(--green);
  font-weight: 600;
}

.shipping-card > span:not(.shipping-card__tag) {
  color: var(--muted);
  font-size: 14px;
}

.shipping-card a {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.stock {
  margin-top: 23px;
}

.stock > strong {
  font-size: 14px;
}

.stock__fulfillment {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.stock__fulfillment strong {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--green);
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
}

.stock__fulfillment svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.quantity-selector {
  position: relative;
  min-height: 55px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 0 14px;
  border-radius: 9px;
  background: #f3f3f3;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.quantity-selector:focus-within {
  outline: 3px solid rgba(52, 124, 246, 0.4);
  outline-offset: 2px;
}

.quantity-selector__value {
  color: var(--ink);
  font-weight: 700;
}

.quantity-selector select {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.quantity-selector__available {
  flex: 1;
  color: #a4a9b0;
  white-space: nowrap;
}

.quantity-selector__arrow {
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
}

.purchase-actions {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.button {
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.button--primary {
  background: var(--blue);
  color: #fff;
}

.button--primary:hover {
  background: #2569dc;
}

.button--secondary {
  border: 1px solid #b8cdf2;
  background: var(--blue-soft);
  color: #245fba;
}

.button--secondary:hover {
  background: #dce9ff;
}

.seller-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.seller-card__mark {
  width: 40px;
  height: 40px;
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  border: 1px solid var(--line);
}

.seller-card p {
  margin: 0;
  font-size: 13px;
}

.seller-card p strong {
  color: var(--blue);
}

.seller-card div > span {
  display: inline-block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.trust-list {
  display: grid;
  gap: 12px;
  padding: 9px 18px 21px;
}

.trust-list p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.trust-list p > span:first-child {
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
}

.trust-list strong {
  color: var(--blue);
  font-weight: 500;
}

.product-section {
  padding: 26px 18px;
  border-top: 1px solid var(--line);
}

.product-section--tinted {
  background: #fff;
}

.product-section h2 {
  margin: 0 0 17px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.product-section h3 {
  margin: 19px 0 11px;
  font-size: 14px;
  font-weight: 600;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 19px;
}

.feature-list li {
  padding-left: 2px;
  color: #3a424d;
  font-size: 15px;
  line-height: 1.5;
}

.feature-list li::marker {
  color: #a7b0ba;
}

.spec-table {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.spec-table div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 15px 14px;
  font-size: 13px;
  line-height: 1.45;
}

.spec-table div:nth-child(odd) {
  background: #f0f2f5;
}

.spec-table dt {
  font-weight: 500;
}

.spec-table dd {
  margin: 0;
  color: #4c5561;
}

.section-copy {
  margin: 0;
  color: #5f6874;
  font-size: 15px;
  line-height: 1.6;
}

.installments--large {
  margin: -4px 0 8px;
  font-size: 15px;
}

.payment-pix-option {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.payment-pix-option img {
  width: 24px;
  height: 24px;
}

.payment-pix-option strong {
  font-weight: 600;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
}

.reviews-summary__score {
  color: var(--blue);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
}

.reviews-summary__details {
  display: grid;
  gap: 2px;
}

.reviews-summary__stars {
  color: var(--blue);
  font-size: 23px;
  letter-spacing: 2px;
  line-height: 1;
}

.reviews-summary__count {
  color: var(--muted);
  font-size: 14px;
}

.reviews-photos__title,
.reviews-list__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
}

.reviews-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 28px;
  padding-bottom: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reviews-photos::-webkit-scrollbar {
  display: none;
}

.reviews-photos img {
  width: calc((100% - 16px) / 3);
  height: 160px;
  flex: 0 0 calc((100% - 16px) / 3);
  object-fit: cover;
  border-radius: 8px;
  background: #f5f6f8;
  scroll-snap-align: start;
}

.reviews-list__title {
  margin-bottom: 0;
}

.review-list {
  display: grid;
}

.review-card {
  display: grid;
  grid-template-areas:
    "stars"
    "text"
    "photos"
    "name"
    "actions";
  row-gap: 8px;
  padding: 18px 0 16px;
  border-top: 1px solid var(--line);
}

.review-card__header {
  display: contents;
}

.review-card__stars {
  grid-area: stars;
  flex: 0 0 auto;
  margin: 0 0 1px;
  color: var(--blue);
  font-size: 17px;
  letter-spacing: 2px;
}

.review-card__name {
  grid-area: name;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.review-card__photos {
  grid-area: photos;
  display: flex;
  gap: 8px;
  margin: 2px 0 0;
}

.review-card__photos img {
  width: min(18vw, 82px);
  height: min(18vw, 82px);
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f6f8;
}

.review-card__text {
  grid-area: text;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

.review-card__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 6px;
  color: #7b8087;
  font-size: 13px;
}

.review-card__useful {
  padding: 0;
  font-weight: 600;
}

.review-card__menu {
  color: #aaaeb4;
  font-size: 23px;
  line-height: 1;
}

.store-footer {
  display: grid;
  gap: 9px;
  padding: 23px 18px 28px;
  border-top: 1px solid var(--line);
}

.store-footer .store-brand {
  width: fit-content;
}

.store-footer__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.store-footer p,
.store-footer small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 360px) {
  .store-header {
    grid-template-columns: auto minmax(0, 1fr) 28px;
    gap: 8px;
    padding-inline: 11px;
  }

  .store-brand__logo {
    width: 108px;
  }

  .search input {
    padding-inline: 8px;
    font-size: 11px;
  }

  .cart-link {
    width: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
