/* ══════════════════ MTA — CHECKOUT PAGES (DIRECT RESPONSE) ══════════════════ */
/* Builds on /styles.css tokens. --accent is set per product on <body>. */

.shop-page {
  --accent: var(--primary);
  background:
    radial-gradient(1200px 600px at 20% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    var(--background);
}

.ship-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  z-index: 1001;
}

.shop-nav {
  top: 44px;
}

/* ── Product + buy box ── */
.pdp {
  max-width: 1160px;
  margin: 0 auto;
  padding: 150px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}

.pdp-media {
  position: sticky;
  top: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.pdp-glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent) 0%, transparent 68%);
  filter: blur(18px);
}

.pdp-img {
  position: relative;
  width: auto;
  max-width: 100%;
  max-height: 560px;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
  animation: pdp-float 6s ease-in-out infinite;
}

@keyframes pdp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.pdp-eyebrow,
.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-bottom: 18px;
}

.pdp-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pdp-title em {
  display: block;
  font-style: italic;
  font-weight: 600;
  font-size: 0.55em;
  color: var(--primary);
  margin-top: 6px;
}

.pdp-headline {
  margin-top: 20px;
  font-size: 1.3rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--foreground);
}

.pdp-sub {
  margin-top: 12px;
  color: var(--muted-foreground);
}

.pdp-bullets {
  list-style: none;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
}

.pdp-bullets li {
  position: relative;
  padding-left: 30px;
  line-height: 1.5;
}

.pdp-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.pdp-bullets strong {
  color: var(--secondary-foreground);
}

.pdp-learn {
  display: inline-block;
  margin-top: 18px;
  color: var(--primary);
  font-size: 0.9rem;
}

/* ── Buy box ── */
.buy-box {
  background: var(--card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 168, 76, 0.05) inset;
}

.buy-row,
.buy-total,
.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.buy-row {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.buy-row strong {
  font-size: 1.25rem;
  color: var(--foreground);
}

.qty-row {
  padding: 18px 0;
  flex-wrap: wrap;
}

.qty-label {
  font-weight: 600;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.qty-btn {
  width: 46px;
  height: 46px;
  background: var(--surface);
  color: var(--foreground);
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.qty-btn:hover:not(:disabled) {
  background: var(--primary);
  color: var(--primary-foreground);
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-btn:focus-visible,
.btn-buy:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.qty-value {
  min-width: 52px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.qty-hint {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.buy-total {
  padding: 16px 0 20px;
  border-top: 1px solid var(--border);
}

.buy-total-label {
  display: block;
  font-weight: 700;
}

.buy-supply {
  display: block;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.buy-total strong {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 800;
}

.btn-buy {
  display: block;
  width: 100%;
  padding: 18px 24px;
  border: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #E2C46A 0%, var(--primary) 55%, #A8873A 100%);
  color: var(--primary-foreground);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.35);
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  animation: buy-pulse 2.8s ease-in-out infinite;
}

.btn-buy:disabled {
  opacity: 0.7;
  cursor: progress;
  animation: none;
}

/* Fora de estoque */
.buy-box.is-out .btn-buy,
.btn-buy.is-out {
  background: #4a463d;
  color: #d8d0bb;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
  animation: none;
  transform: none;
}

.buy-box.is-out .buy-total strong {
  color: var(--muted-foreground);
}

.btn-buy:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(201, 168, 76, 0.5);
}

@keyframes buy-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(201, 168, 76, 0.35); }
  50% { box-shadow: 0 10px 42px rgba(201, 168, 76, 0.6); }
}

.buy-note {
  min-height: 1.2em;
  margin-top: 10px;
  font-size: 0.85rem;
  text-align: center;
  color: var(--secondary-foreground);
}

.buy-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* ── Content sections ── */
.shop-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.shop-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 16px;
}

.pain {
  max-width: 820px;
  border-top: 1px solid var(--border);
}

.pain p {
  font-size: 1.1rem;
  color: var(--muted-foreground);
}

.ing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 28px;
  text-align: left;
}

.ing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.ing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.ing-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.ing-card h3 {
  margin: 8px 0;
  font-size: 1.05rem;
}

.ing-card p {
  font-size: 0.92rem;
  color: var(--muted-foreground);
}

.how-to {
  margin-top: 28px;
  color: var(--secondary-foreground);
}

.faq-list {
  max-width: 760px;
  margin: 24px auto 0;
  text-align: left;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 10px;
  color: var(--muted-foreground);
}

.faq-item a {
  color: var(--primary);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: left;
  border-top: 1px solid var(--border);
}

.final-img {
  width: auto;
  height: 240px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

.final-cta p {
  color: var(--muted-foreground);
  margin-bottom: 20px;
}

.btn-buy-inline {
  display: inline-block;
  width: auto;
}

/* ── Thank-you page ── */
.thanks-nav {
  top: 16px;
}

.thanks {
  max-width: 680px;
  margin: 0 auto;
  padding: 160px 24px 80px;
  text-align: center;
}

.thanks h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.thanks p {
  color: var(--muted-foreground);
  margin-bottom: 16px;
}

.thanks a:not(.btn-buy) {
  color: var(--primary);
}

.thanks .btn-buy {
  margin-top: 16px;
}

/* ── Sticky buy bar (mobile) ── */
.sticky-buy {
  display: none;
}

/* ── Footer ── */
.shop-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 120px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.shop-footer .fda {
  max-width: 760px;
  margin: 0 auto 18px;
}

.shop-footer .footer-legal-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 14px;
}

.shop-footer a {
  color: var(--secondary-foreground);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pdp {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 130px;
  }

  .pdp-media {
    position: relative;
    top: 0;
    min-height: 0;
  }

  .pdp-img {
    max-height: 380px;
  }

  .final-cta {
    flex-direction: column;
    text-align: center;
  }

  .final-img {
    height: 180px;
  }

  .shop-nav .nav-links {
    display: none;
  }

  .sticky-buy {
    position: fixed;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(28, 27, 24, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-hover);
    transform: translateY(110%);
    transition: transform var(--duration-base) var(--ease-out);
    z-index: 1002;
  }

  .sticky-buy.is-visible {
    transform: translateY(0);
  }

  .sticky-buy .sticky-name {
    display: block;
    font-size: 0.75rem;
    color: var(--muted-foreground);
  }

  .sticky-buy strong {
    font-size: 1.2rem;
    color: var(--primary);
  }

  .sticky-buy .btn-buy {
    width: auto;
    padding: 14px 22px;
    font-size: 0.95rem;
    animation: none;
  }
}

@media (max-width: 480px) {
  .ship-bar {
    font-size: 0.72rem;
  }

  .shop-nav {
    width: calc(100% - 32px);
  }

  .pdp,
  .shop-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .buy-box {
    padding: 18px;
  }

  .qty-hint {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-img,
  .btn-buy {
    animation: none;
  }
}
