.product {
  padding-bottom: 8px;
}

.product-main,
.product-aside {
  display: contents;
}

.product-hero {
  position: relative;
  margin-top: 16px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--art-a, #2a1840), var(--art-b, #0b1630));
  box-shadow: var(--shadow-card);
}

.product-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 7vw, 34px);
  text-transform: uppercase;
  text-align: center;
  color: rgb(255 255 255 / 0.9);
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.6);
}

.product-hero__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--fg);
  background: rgb(3 6 14 / 0.72);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

.product-hero__tag svg {
  width: 13px;
  height: 13px;
  color: var(--primary);
}

.product-title {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 800;
}

.product-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.product-discount {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.product-old {
  font-size: 14px;
  color: var(--muted-dim);
  text-decoration: line-through;
}

.product-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.product-pix {
  font-size: 13px;
  color: var(--muted);
}

.product-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: none;
  max-width: 50%;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding-inline: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

.delivery-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding-inline: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: hsl(180 100% 67% / 0.1);
  border: 1px solid hsl(180 100% 67% / 0.35);
  border-radius: 999px;
  white-space: nowrap;
}

.delivery-pill svg {
  width: 14px;
  height: 14px;
}

.variant-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.variant {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.variant:hover {
  border-color: var(--border-strong);
}

.variant.is-selected {
  background: hsl(184 50% 24% / 0.35);
  border-color: hsl(183 70% 52%);
}

.variant__radio {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
}

.variant.is-selected .variant__radio {
  border-color: var(--primary);
}

.variant.is-selected .variant__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary);
}

.variant__body {
  min-width: 0;
}

.variant__name {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
}

.variant__stock {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--green);
}

.variant__price {
  font-weight: 800;
  font-size: 15px;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.product-desc {
  margin-top: 26px;
}

.product-desc__title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
}

.product-desc__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

.product-desc__rule {
  height: 1px;
  border: 0;
  background: var(--border);
  margin-block: 16px;
}

.product-desc__sub {
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
}

.product-desc__media {
  max-width: 220px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid hsl(180 100% 67% / 0.4);
  background: linear-gradient(135deg, var(--art-a, #14233f), var(--art-b, #0a1526));
}

.product-desc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-desc__text {
  margin-top: 14px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

.trust-row {
  display: flex;
  gap: 8px;
}

.trust {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
}

.trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.trust__icon svg {
  width: 22px;
  height: 22px;
}

.trust strong {
  font-size: 13px;
  font-weight: 700;
}

.trust span {
  font-size: 11px;
  color: var(--muted);
}

.trust--delivery .trust__icon {
  color: var(--primary);
  background: hsl(180 100% 67% / 0.12);
}

.trust--security .trust__icon {
  color: var(--green);
  background: hsl(150 55% 56% / 0.12);
}

.trust--payment .trust__icon {
  color: var(--blue);
  background: hsl(214 90% 64% / 0.12);
}

.similares {
  margin-top: 30px;
}

.similares__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.similares__head h2 {
  font-size: 19px;
  font-weight: 800;
}

.similares__nav {
  display: flex;
  gap: 8px;
}

.similares__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.similares__track::-webkit-scrollbar {
  display: none;
}

.similares__track .product-card {
  flex: 0 0 calc((100% - 12px) / 2);
  scroll-snap-align: start;
}
