/* Regras novas e isoladas para a vitrine. O bundle legado permanece imutavel. */
.market-store,
.market-store .market-main {
  max-width: 100%;
  overflow-x: clip;
}

.market-store .product-body {
  overflow: hidden;
}

.market-store .product-card.platform-instagram .product-art-title > span,
.market-store .product-card.platform-twitter .product-art-title > span,
.market-store .product-card.platform-tiktok .product-art-title > span,
.market-store .product-card.platform-telegram .product-art-title > span {
  display: none;
}

.market-store .product-card.has-custom-cover .product-art-title {
  display: none;
}

.market-store .product-detail-art.has-custom-cover > div {
  display: none;
}

.market-store .header-search:focus-within {
  border-color: #3b3d43;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .045);
  outline: none;
}

.market-store .header-search input:focus {
  outline: none;
}

.market-store .product-card.sold-out .product-cover {
  filter: blur(3px) brightness(.5) saturate(.65);
  transform: scale(1.035);
}

/* As capas são 16:9 com margem segura: caixa 16:9 em toda tela, sem zoom nem sombra, mostra a arte inteira igual em todo aparelho. */
.market-store .product-card.has-custom-cover .product-visual {
  aspect-ratio: 16 / 9;
}

.market-store .product-card.has-custom-cover .product-visual::after {
  display: none;
}

.market-store .product-card.has-custom-cover .product-cover {
  object-position: center;
  transform: none;
}

.market-store .product-card.has-custom-cover:hover .product-cover {
  transform: scale(1.035);
}

/* Mesma caixa 16:9 do card: a capa aparece igual no card e na página do produto. */
.market-store .product-detail-art.has-custom-cover {
  aspect-ratio: 16 / 9;
}

.market-store .product-detail-art.has-custom-cover::after {
  display: none;
}

.market-store .product-detail-art.has-custom-cover img {
  background: #08090b;
  object-fit: cover;
}

.market-store .product-card .product-sold-overlay {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(5, 6, 8, .66);
  color: #d9dade;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: .01em;
  text-shadow: 0 2px 10px #000;
}

.market-store .product-body h3 {
  color: #f0f0f2;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 17px;
  min-height: 34px;
  text-wrap: balance;
}

.market-store .price-row .price {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 19px;
}

.market-store .price-row .price small {
  font-weight: 400;
}

.market-store .price-row {
  margin-top: auto;
  padding-top: 12px;
}

.market-store .product-stock-badge.is-cover-edge {
  display: none;
}

/* Mosaico do topo com as capas novas: 16:9 inteiro, sem o texto e o escurecimento do legado, que a capa já traz. */
.market-hero .market-tile.has-custom-cover {
  aspect-ratio: 16 / 9;
  border-color: rgba(255, 255, 255, .09);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}

.market-hero .market-tile.has-custom-cover img {
  object-position: center;
}

.market-hero .market-tile.has-custom-cover::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 30%);
}

.market-hero .market-tile.has-custom-cover .market-tile-copy {
  display: none;
}

.market-hero .market-wall:hover .market-track {
  animation-play-state: paused;
}

.market-store .product-description-blocks {
  color: #b8b9bf;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 19px;
}

.market-store .product-description-blocks > * {
  margin: 0;
}

.market-store .product-description-blocks > * + * {
  margin-top: 18px;
}

.market-store .product-description-blocks > h3 + * {
  margin-top: 6px;
}

.market-store .product-description-blocks h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.market-store .product-description-blocks ul {
  list-style: disc;
  padding-left: 20px;
}

.market-store .product-card-meta {
  align-items: center;
  display: flex;
  margin-top: 11px;
  min-height: 18px;
  min-width: 0;
}

.market-store .product-card-meta .product-delivery-label {
  margin-top: 0;
  min-width: 0;
}

@media (max-width: 900px) {
  .market-store .header-inner {
    position: relative;
  }

  .market-store .header-search {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
    margin-left: auto;
    max-width: 36px;
    min-width: 36px;
    order: initial;
    padding: 0;
    place-content: center;
    position: static;
    transform: none;
    width: 36px;
  }

  .market-store .header-search:not(.is-mobile-open):hover {
    background: rgba(255, 255, 255, .035);
    border-color: transparent;
  }

  .market-store .header-search input,
  .market-store .header-search kbd,
  .market-store .header-search .search-clear {
    display: none;
  }

  .market-store .header-search.is-mobile-open {
    background: #111216;
    border-color: #3b3d43;
    display: flex;
    justify-content: flex-start;
    left: 20px;
    max-width: none;
    min-width: 0;
    padding: 0 12px;
    position: absolute;
    right: 20px;
    width: auto;
    z-index: 20;
  }

  .market-store .header-search.is-mobile-open input {
    display: block;
  }

  .market-store .header-search.is-mobile-open kbd,
  .market-store .header-search.is-mobile-open .search-clear {
    display: grid;
  }

  .market-store .header-actions {
    margin-left: 0;
  }

  .market-hero-inner {
    display: block;
    min-height: 0;
    padding-bottom: 24px;
    padding-top: 30px;
  }

  .market-hero-copy {
    max-width: 560px;
    padding: 0;
  }

  .market-hero h1 {
    font-size: clamp(38px, 6vw, 48px);
    line-height: 1.08;
  }

  .market-hero-copy > p {
    margin-top: 15px;
  }

  .market-hero-actions {
    margin-top: 22px;
  }

  .market-wall {
    display: none;
  }

  .market-mobile-wall {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    overflow: hidden;
    padding-bottom: 12px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6% 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6% 94%, transparent);
  }

  .market-row {
    overflow: hidden;
  }

  .market-row-track {
    animation: market-scroll-left 35s linear -7s infinite;
    display: flex;
    width: max-content;
    will-change: transform;
  }

  .market-row:nth-child(2) .market-row-track {
    animation-delay: -12s;
    animation-direction: reverse;
    animation-duration: 29s;
  }

  .market-row-group {
    display: flex;
    gap: 10px;
    padding-right: 10px;
  }

  .market-row .market-tile {
    aspect-ratio: 1.88;
    border-radius: 8px;
    width: 178px;
  }
}

@media (max-width: 680px) {
  .market-store .product-card .product-sold-overlay {
    font-size: 16px;
  }

  .market-store .product-body h3 {
    font-size: 13px;
    line-height: 17px;
    min-height: 34px;
  }

  .market-store .price-row .price {
    font-size: 16px;
    line-height: 19px;
  }

  .market-store .product-card-meta {
    gap: 5px;
    margin-top: 9px;
  }

  .market-hero-copy {
    margin-inline: auto;
    text-align: center;
  }

  .market-hero h1 {
    font-size: 38px;
  }

  .market-mobile-wall {
    margin-top: 0;
  }

  .market-row .market-tile {
    width: 169px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-row-track {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }
}

/* Ferramentas grátis — mockup v6, inside the store chrome. */
.market-store .tools-page {
  --tools-peach: #f2c9a5;
  --tools-terracotta: #d9976b;
  padding: 48px 0 72px;
}

.market-store .tools-title {
  letter-spacing: -0.02em;
  color: #ededed;
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
}

.market-store .tools-title span {
  background: linear-gradient(90deg, var(--tools-peach), var(--tools-terracotta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.market-store .tools-sub {
  color: #a0a0a0;
  max-width: 40em;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.5;
}

.market-store .tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.market-store .tools-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  background: #171717;
  border: 1px solid #26262b;
  border-radius: 16px;
  padding: 22px;
}

.market-store .tools-tile-line {
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--tools-peach), var(--tools-terracotta));
  opacity: 0.8;
}

.market-store .tools-free {
  position: absolute;
  top: 18px;
  right: 18px;
  letter-spacing: 0.08em;
  color: #0a0a0a;
  background: var(--tools-peach);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 10.5px;
  font-weight: 700;
}

.market-store .tools-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #4a3628;
  border-radius: 12px;
  background: #241c17;
  font-family: "Noto Color Emoji", "Apple Color Emoji", Inter, sans-serif;
  font-size: 20px;
}

.market-store .tools-name {
  margin: 0;
  padding-right: 56px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.market-store .tools-desc {
  flex: 1;
  min-height: 3.9em;
  margin: 0;
  color: #a0a0a0;
  font-size: 13.5px;
  line-height: 1.45;
}

.market-store .tools-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 0;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--tools-peach), var(--tools-terracotta));
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.market-store .tools-btn.is-soon {
  background: #242424;
  color: #8a8a8a;
  cursor: default;
  pointer-events: none;
}

.market-store .tools-hint {
  display: block;
  min-height: 18px;
  margin-top: 2px;
  letter-spacing: 0.01em;
  color: var(--tools-peach);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.market-store .tools-hint-slot {
  min-height: 18px;
  margin-top: 2px;
}

@media (max-width: 1099px) {
  .market-store .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .market-store .tools-desc {
    min-height: 2.9em;
  }
}

@media (max-width: 639px) {
  .market-store .tools-page {
    padding: 28px 0 48px;
  }

  .market-store .tools-title {
    font-size: 26px;
  }

  .market-store .tools-sub {
    margin-bottom: 22px;
    font-size: 14.5px;
  }

  .market-store .tools-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .market-store .tools-tile {
    gap: 11px;
    border-radius: 18px;
    padding: 20px 20px 18px;
  }

  .market-store .tools-ico {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .market-store .tools-name {
    padding-right: 64px;
    font-size: 17px;
  }

  .market-store .tools-desc {
    min-height: 0;
    font-size: 14.5px;
    line-height: 1.5;
  }

  .market-store .tools-free {
    top: 16px;
    right: 16px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .market-store .tools-btn {
    min-height: 48px;
    border-radius: 12px;
    font-size: 15px;
  }

  .market-store .tools-hint {
    min-height: 20px;
    margin-top: 4px;
    font-size: 12.5px;
  }

  .market-store .tools-hint-slot {
    min-height: 0;
    margin: 0;
  }
}

/* Checkout v50 (portado). Não depende do bundle /_next/static/css. */
.market-store {
  --market-background: #08090b;
  --market-surface: #111215;
  --market-raised: #1b1d21;
  --market-border: #292b30;
  --market-text: #f5f5f6;
  --market-muted: #a0a1a8;
  --market-brand: #ff853b;
  --market-button: #f5f5f6;
  --market-on-button: #111214;
  --market-success: #96d4af;
}

.cart-page,
.store-inner-page {
  padding-top: 28px;
  padding-bottom: 72px;
}

.checkout-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.checkout-page-heading h1 {
  letter-spacing: -0.045em;
  margin: 8px 0;
  font-size: 30px;
  font-weight: 650;
  line-height: 1.3;
}

.checkout-page-heading p {
  color: var(--market-muted);
  font-size: 12px;
}

.checkout-page-heading > a {
  color: var(--market-muted);
  text-underline-offset: 4px;
  font-size: 12px;
  text-decoration: underline;
}

.market-checkout.checkout-page-content {
  background: transparent;
  border: 0;
  max-height: none;
  border-radius: 0 !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.9fr;
  align-items: start;
  gap: 17px;
}

.checkout-panel {
  background: var(--market-surface);
  border: 1px solid var(--market-border);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

.checkout-panel-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 15px;
  border-bottom: 1px solid var(--market-border);
}

.checkout-panel-heading h2,
.checkout-panel-heading h3 {
  color: var(--market-text);
  letter-spacing: -0.02em;
  margin: 0;
  font-size: 14px;
  font-weight: 550;
}

.checkout-panel-step {
  color: #b8bac4;
  background: #1d1e23;
  border: 1px solid #36373f;
  border-radius: 6px;
  flex-shrink: 0;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 10px;
  display: grid;
}

.checkout-item-count {
  color: var(--market-muted);
  white-space: nowrap;
  margin-left: auto;
  font-size: 10px;
}

.checkout-panel-body {
  padding: 20px;
}

.checkout-panel .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 17px;
  color: #d5d6dc;
  font-size: 0.875rem;
}

.checkout-panel .field:first-child {
  margin-top: 0;
}

.checkout-panel .field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  color: var(--market-text);
  background: #0e0f13;
  border: 1px solid #3a3c46;
  border-radius: 6px;
  font-size: 0.9375rem;
}

.checkout-email-control {
  position: relative;
  display: block;
}

.checkout-email-control svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--market-muted);
  pointer-events: none;
}

.checkout-panel .field .checkout-email-control input {
  padding-left: 44px;
}

.checkout-panel .field input[readonly] {
  color: #a7b2c5;
  cursor: default;
}

.cart-quantity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--market-border);
}

.cart-quantity-label {
  color: #d5d6dc;
  font-size: 14px;
  font-weight: 500;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: #0d0e12;
  border: 1px solid #3c3e47;
  border-radius: 6px;
}

.quantity-control button {
  width: 32px;
  height: 34px;
  color: #b9bbc5;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.quantity-control input {
  width: 48px;
  height: 36px;
  padding: 0;
  color: #fff;
  text-align: center;
  background: #252730;
  border: 0;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
}

.cart-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-left: auto;
  padding: 7px;
  color: var(--market-muted);
  background: transparent;
  border: 0;
  font-size: 12px;
  cursor: pointer;
}

.cart-remove:hover:not(:disabled) {
  color: var(--market-text);
  background: var(--market-raised);
  border-radius: 4px;
}

.checkout-empty {
  width: 100%;
}

.checkout-empty .empty-state {
  text-align: center;
  background: var(--market-surface);
  border: 1px dashed var(--market-border);
  border-radius: 16px;
  padding: 58px 24px;
}

.checkout-empty .empty-state svg {
  display: block;
  width: 35px;
  height: 35px;
  margin: 0 auto 15px;
  color: var(--market-muted);
}

.checkout-empty .empty-state h3 {
  margin: 0 0 8px;
  color: var(--market-text);
  font-size: 19px;
  font-weight: 600;
}

.checkout-empty .empty-state p {
  margin: 0 0 20px;
  color: var(--market-muted);
  font-size: 14px;
}

.checkout-empty .empty-state a {
  color: var(--market-text);
  text-underline-offset: 4px;
  font-size: 14px;
  text-decoration: underline;
}

.cart-product-icon,
.cart-product-image {
  flex-shrink: 0;
  width: 75px;
  height: 62px;
  overflow: hidden;
  background: #16181e;
  border: 1px solid #34363f;
  border-radius: 8px;
}

.cart-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line-info {
  min-width: 0;
}

.cart-line-info h3 {
  color: var(--market-text);
  letter-spacing: -0.02em;
  margin: 0;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.4;
}

.cart-line-info > p,
.cart-features {
  color: #adb0bb;
}

.cart-features {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 8px 0 18px;
  font-size: 0.875rem;
  list-style: none;
}

.cart-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.55;
}

.cart-features svg {
  color: #bdc0ca;
  flex-shrink: 0;
  margin-top: 3px;
}

.checkout-delivery,
.payment-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: #96d4af;
  background: #132019;
  border: 1px solid #294738;
  border-radius: 6px;
}

.checkout-delivery strong,
.payment-method strong {
  color: #e5f8ee;
  font-size: 0.8125rem;
  font-weight: 600;
  display: block;
}

.checkout-delivery p,
.payment-method small {
  color: #b3d0bf;
  margin-top: 4px;
  font-size: 0.75rem;
  line-height: 1.65;
  display: block;
}

.checkout-breakdown {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 0 18px;
  color: #adb0bb;
  border-bottom: 1px solid var(--market-border);
  font-size: 0.875rem;
}

.checkout-breakdown > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.checkout-breakdown dd {
  color: #dde7f7;
  margin: 0;
  white-space: nowrap;
}

.checkout-discount {
  color: var(--market-success);
}

.checkout-coupon {
  border-bottom: 1px solid var(--market-border);
  padding: 16px 0 18px;
}

.coupon-toggle {
  width: 100%;
  min-height: 24px;
  padding: 0;
  color: var(--market-text);
  text-align: left;
  background: transparent;
  border: 0;
  font-size: 12px;
  cursor: pointer;
}

.coupon-toggle:hover {
  color: var(--market-brand);
}

#coupon-fields {
  margin-top: 15px;
}

#coupon-fields > label {
  display: block;
  margin-bottom: 7px;
  color: var(--market-muted);
  font-size: 11px;
}

.coupon-input-row {
  display: flex;
  align-items: stretch;
  gap: 7px;
}

.coupon-input-row input {
  width: 100%;
  min-width: 0;
  padding: 10px;
  color: var(--market-text);
  text-transform: uppercase;
  background: #0e0f13;
  border: 1px solid #3a3c46;
  border-radius: 6px;
  font-size: 12px;
}

.coupon-input-row input::placeholder {
  text-transform: none;
}

.coupon-input-row button {
  min-width: 79px;
  height: 40px;
  padding: 0 10px;
  color: var(--market-text);
  background: var(--market-raised);
  border: 1px solid #4b4d55;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}

.coupon-error,
.field-error {
  color: #ffb7a5;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.65;
}

.checkout-grand-total {
  padding: 20px 0 14px;
}

.checkout-grand-total > span {
  color: #d5d6dc;
  font-size: 0.8125rem;
  display: block;
}

.checkout-grand-total > strong {
  color: var(--market-text);
  letter-spacing: -0.055em;
  margin-top: 4px;
  font-size: 32px;
  font-weight: 750;
  line-height: 1.3;
  display: block;
}

.payment-method {
  margin: 4px 0 16px;
}

.checkout-pay {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px !important;
  color: var(--market-on-button);
  background: var(--market-button);
  border: 0;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.checkout-pay:hover {
  background: #dddde3;
}

.checkout-secure {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--market-muted);
  font-size: 0.75rem;
}

@media (max-width: 1100px) {
  .market-checkout.checkout-page-content .checkout-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .market-checkout.checkout-page-content .checkout-total {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .checkout-page-heading {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
  }

  .checkout-page-heading h1 {
    font-size: 25px;
  }

  .checkout-page-heading > a {
    text-align: right;
    max-width: 65px;
    margin-top: 25px;
    font-size: 10px;
    line-height: 1.7;
  }

  .market-checkout.checkout-page-content .checkout-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .market-checkout.checkout-page-content .checkout-total {
    grid-column: auto;
  }

  .market-checkout.checkout-page-content .checkout-panel-body {
    padding: 18px;
  }

  .coupon-input-row input {
    font-size: 16px;
  }

  .coupon-input-row button {
    min-width: 89px;
    font-size: 12px;
  }
}