:root {
  --cream: #fff4db;
  --paper: #f7ead0;
  --gold: #e6ba5f;
  --gold-soft: rgba(230, 186, 95, 0.46);
  --red: #c73628;
  --wine: #5b1f1d;
  --ink: #fff8eb;
  --teal: #142e35;
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #132930;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #132930;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.sale-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 4vw, 60px) clamp(18px, 3vw, 48px);
  background:
    radial-gradient(circle at 22% 33%, rgba(235, 218, 167, 0.1), transparent 22%),
    radial-gradient(circle at 84% 78%, rgba(125, 33, 28, 0.62), transparent 42%),
    linear-gradient(118deg, #143137 0%, #172a31 42%, #241f29 65%, #541d1b 100%);
  border: 1px solid rgba(245, 214, 142, 0.72);
}

.sale-hero::before,
.sale-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.sale-hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(circle at center, black 0 60%, transparent 88%);
}

.home-single-sale .sale-hero::before {
  display: none;
}

.sale-hero::after {
  left: 3vw;
  right: 3vw;
  bottom: 1.2vh;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.corner-mark {
  position: absolute;
  width: 12px;
  height: 12px;
  rotate: 45deg;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(121, 61, 27, 0.28);
}

.corner-mark-top {
  top: 12px;
  left: 3px;
}

.corner-mark-bottom {
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.sale-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
  gap: clamp(34px, 4.5vw, 64px);
  align-items: center;
}

.product-stack {
  position: relative;
  min-height: clamp(480px, 52vw, 640px);
  transform: translateX(-2%);
}

.product-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 5px solid var(--paper);
  border-radius: 4px;
  background: var(--paper);
  box-shadow:
    0 26px 48px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(124, 54, 24, 0.28);
}

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

.product-card-back {
  z-index: 1;
  width: min(78%, 500px);
  left: 21%;
  top: 5%;
  rotate: 2.8deg;
}

.product-card-side {
  z-index: 2;
  width: min(47%, 292px);
  right: 3%;
  top: 43%;
  rotate: 2.5deg;
  filter: saturate(0.98) brightness(0.96);
}

.product-card-front {
  z-index: 3;
  width: min(82%, 540px);
  left: 0;
  top: 44%;
  rotate: -4deg;
}

.offer-panel {
  width: 100%;
  max-width: 520px;
  padding-top: 0;
}

.offer-kicker {
  margin: 0 0 17px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.offer-panel h1 {
  max-width: 520px;
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.65rem, 4.35vw, 4.35rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.offer-lead {
  max-width: 510px;
  margin: 20px 0 0;
  color: rgba(255, 248, 235, 0.92);
  font-size: clamp(0.98rem, 1.2vw, 1.14rem);
  line-height: 1.52;
}

.offer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.offer-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 0 16px;
  border: 1px solid rgba(230, 186, 95, 0.66);
  border-radius: 999px;
  color: #ffe58c;
  background: rgba(255, 244, 219, 0.07);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.checkout-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.72fr) minmax(230px, 1.28fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: end;
  margin-top: 29px;
}

.price-box span {
  display: block;
  margin-bottom: 5px;
  color: #ffe58c;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.price-box strong {
  display: block;
  color: #fff8eb;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.75rem, 4.2vw, 4.2rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.04em;
}

.price-box small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 248, 235, 0.86);
  font-size: 0.82rem;
}

.main-buy-button {
  position: relative;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  overflow: hidden;
  border: 2px solid rgba(255, 224, 145, 0.9);
  border-radius: 5px;
  color: #37150e;
  background:
    linear-gradient(180deg, #f5d16e 0%, #d99a34 50%, #b87024 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -5px 12px rgba(107, 52, 12, 0.25),
    0 18px 34px rgba(0, 0, 0, 0.24);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.main-buy-button::before,
.main-buy-button::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(99, 35, 19, 0.42);
  transform: translateY(-50%) rotate(45deg);
}

.main-buy-button::before {
  left: 13px;
}

.main-buy-button::after {
  right: 13px;
}

.main-buy-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.06) brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -5px 12px rgba(107, 52, 12, 0.25),
    0 22px 38px rgba(0, 0, 0, 0.31);
}

.main-buy-button:focus-visible {
  outline: 3px solid #fff0af;
  outline-offset: 4px;
}

.delivery-note,
.guarantee-note {
  margin: 17px 0 0;
  color: rgba(255, 248, 235, 0.88);
  font-size: 0.8rem;
  line-height: 1.45;
}

.guarantee-note {
  margin-top: 8px;
  color: rgba(255, 232, 165, 0.9);
  font-weight: 700;
}

.guarantee-note a {
  text-underline-offset: 3px;
}

@media (min-width: 1320px) {
  .sale-shell {
    width: min(1280px, 100%);
  }

  .product-stack {
    transform: translateX(-5%);
  }
}

@media (max-width: 1100px) and (min-width: 741px) {
  .sale-hero {
    padding-inline: 0;
  }

  .sale-shell {
    grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
    gap: clamp(28px, 4vw, 44px);
  }

  .product-stack {
    min-height: clamp(470px, 52vw, 570px);
    transform: none;
  }

  .offer-panel {
    padding-right: clamp(16px, 2.5vw, 28px);
  }

  .offer-panel h1 {
    font-size: clamp(2.55rem, 4.35vw, 3rem);
  }

  .offer-tags {
    gap: 8px;
  }

  .offer-tags li {
    padding-inline: 12px;
    font-size: 0.74rem;
  }

  .checkout-row {
    grid-template-columns: minmax(134px, 0.7fr) minmax(220px, 1.3fr);
    gap: 14px;
  }

  .price-box strong {
    font-size: clamp(2.55rem, 4.2vw, 3rem);
  }
}

@media (max-width: 740px) {
  .sale-hero {
    align-items: start;
    min-height: 100svh;
    padding: 28px 18px 38px;
  }

  .sale-shell {
    grid-template-columns: 1fr;
    gap: 22px;
    width: min(650px, 100%);
  }

  .product-stack {
    order: 1;
    min-height: clamp(400px, 94vw, 610px);
    transform: none;
  }

  .offer-panel {
    order: 2;
    max-width: none;
    padding: 0;
  }

  .offer-panel h1 {
    max-width: 620px;
    font-size: clamp(2.8rem, 10vw, 4.5rem);
  }

  .offer-lead {
    max-width: 620px;
    margin-top: 18px;
  }

  .checkout-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .main-buy-button {
    width: 100%;
  }

  .product-card-back {
    width: 75%;
    left: 17%;
    top: 3%;
  }

  .product-card-side {
    width: 42%;
    right: 5%;
    top: 43%;
  }

  .product-card-front {
    width: 80%;
    top: 46%;
    left: 0;
  }
}

@media (max-width: 620px) {
  .sale-hero {
    padding: 20px 14px 30px;
    background:
      radial-gradient(circle at 28% 18%, rgba(235, 218, 167, 0.09), transparent 22%),
      radial-gradient(circle at 72% 86%, rgba(125, 33, 28, 0.7), transparent 48%),
      linear-gradient(150deg, #143137 0%, #172a31 44%, #541d1b 100%);
  }

  .sale-shell {
    gap: 14px;
  }

  .product-stack {
    min-height: clamp(390px, 98vw, 620px);
  }

  .product-card {
    border-width: 3px;
    box-shadow:
      0 18px 30px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(124, 54, 24, 0.24);
  }

  .product-card-back {
    width: 76%;
    left: 13%;
    top: 2%;
  }

  .product-card-side {
    width: 38%;
    right: 5%;
    top: 43%;
  }

  .product-card-front {
    width: 77%;
    top: 48%;
    left: -1%;
  }

  .offer-kicker {
    margin-bottom: 12px;
    font-size: 0.72rem;
  }

  .offer-panel h1 {
    font-size: clamp(2.45rem, 12vw, 3.42rem);
    line-height: 0.96;
    letter-spacing: -0.038em;
  }

  .offer-lead {
    margin-top: 14px;
    font-size: 0.98rem;
  }

  .offer-tags {
    gap: 8px;
    margin-top: 20px;
  }

  .offer-tags li {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .price-box strong {
    font-size: 3.35rem;
  }

  .main-buy-button {
    min-height: 66px;
    font-size: 0.95rem;
  }

  .delivery-note,
  .guarantee-note {
    font-size: 0.82rem;
  }
}

@media (max-width: 390px) {
  .sale-hero {
    padding-inline: 12px;
  }

  .product-stack {
    min-height: 390px;
  }

  .offer-panel h1 {
    font-size: 2.34rem;
  }

  .offer-tags li {
    font-size: 0.7rem;
  }
}

/* Ajustes exclusivos da página principal de seção única. */
.home-single-sale .sale-shell {
  grid-template-areas: "product offer";
  grid-template-rows: auto;
  align-items: start;
}

.home-single-sale .product-stack {
  grid-area: product;
  align-self: center;
  min-height: clamp(480px, 44vw, 560px);
}

.home-single-sale .product-card-side {
  top: 38%;
}

.home-single-sale .product-card-front {
  top: 34%;
}

.home-single-sale .offer-panel {
  grid-area: offer;
  align-self: center;
  margin-top: 0;
}

.home-single-sale .offer-lead {
  margin-top: 0;
}

.home-single-sale .price-box strong {
  white-space: nowrap;
}

@media (max-width: 740px) {
  .home-single-sale .sale-hero {
    padding-top: 28px;
  }

  .home-single-sale .sale-shell {
    grid-template-areas:
      "product"
      "offer";
    grid-template-rows: auto auto;
    row-gap: 16px;
  }

  .home-single-sale .product-stack {
    width: 100%;
    min-height: clamp(360px, 92vw, 520px);
    justify-self: center;
  }

  .home-single-sale .product-card-back {
    width: 78%;
    left: 18%;
    top: 0;
  }

  .home-single-sale .product-card-side {
    width: 42%;
    right: 3%;
    top: 40%;
  }

  .home-single-sale .product-card-front {
    width: 82%;
    left: 0;
    top: 34%;
  }

  .home-single-sale .offer-panel {
    width: min(100%, 560px);
    justify-self: center;
    text-align: center;
  }

  .home-single-sale .offer-lead {
    margin-inline: auto;
  }

  .home-single-sale .offer-tags {
    justify-content: center;
  }

  .home-single-sale .checkout-row {
    justify-items: center;
  }

  .home-single-sale .price-box {
    text-align: center;
  }

  .home-single-sale .main-buy-button {
    width: min(100%, 380px);
    justify-self: center;
  }

  .home-single-sale .delivery-note,
  .home-single-sale .guarantee-note {
    text-align: center;
  }
}
