/*
Theme Name: Triagem Livraria
Author: Antigravity
Description: Tema Comercial Premium — Alta Conversão
Version: 4.0
*/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800;900&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
  --dominant-color: #141e28;
  --dominant-color-rgb: 20, 30, 40;
  --accent: #f5a623;
  --accent-rgb: 245, 166, 35;
  --color-dark: #0d1117;
  --color-surface: #161b22;
  --color-light: #f4f1eb;
  --text-main: #e6e1d6;
  --text-muted: #8b949e;
  --text-dark: #1a1a2e;
  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --shadow-glow: 0 0 60px rgba(var(--dominant-color-rgb), 0.4);
  --shadow-card: 0 20px 60px rgba(0,0,0,0.35);
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--color-dark);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.site-wrapper {
  flex: 1;
}

/* ========================================
   CONTAINERS
   ======================================== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}

.header-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.2s;
}

.brand-logo:hover {
  opacity: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-cart {
  position: relative;
  color: var(--text-main);
  display: flex;
  align-items: center;
  text-decoration: none;
  width: 44px;
  height: 44px;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  transition: var(--transition);
}

.header-cart:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  transform: scale(1.05);
  color: #fff;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: 'DM Sans', sans-serif;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--color-surface);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media(min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  height: 30px;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========================================
   BOOK LANDING — MAIN WRAPPER
   ======================================== */
.book-landing {
  display: flex;
  flex-direction: column;
}

/* ========================================
   HERO SECTION
   ======================================== */
.book-hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Dynamic gradient bg from book color */
.hero-gradient-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(var(--dominant-color-rgb), 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 80% 20%, rgba(var(--accent-rgb), 0.08) 0%, transparent 60%),
    var(--color-dark);
}

/* Ambient glow blob */
.hero-glow-blob {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--dominant-color-rgb), 0.3) 0%, transparent 70%);
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  animation: blobPulse 6s ease-in-out infinite alternate;
  filter: blur(40px);
}

@keyframes blobPulse {
  0% { transform: translateY(-50%) scale(1); opacity: 0.6; }
  100% { transform: translateY(-50%) scale(1.15); opacity: 1; }
}

/* Noise texture overlay */
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.03;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

@media(min-width: 900px) {
  .hero-content {
    grid-template-columns: 420px 1fr;
    gap: 80px;
  }
}

/* ========================================
   BOOK COVER — 3D FLOAT EFFECT
   ======================================== */
.book-cover-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  animation: floatIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(40px) rotateY(-20deg); }
  to   { opacity: 1; transform: translateY(0) rotateY(0); }
}

.book-3d-scene {
  perspective: 1200px;
  display: inline-block;
}

.book-cover-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 6px 12px 12px 6px;
  display: block;
  transform: rotateY(-12deg) rotateX(4deg) translateZ(0);
  transform-style: preserve-3d;
  box-shadow:
    -24px 24px 0px rgba(0,0,0,0.5),
    -18px 18px 40px rgba(0,0,0,0.4),
    0 30px 80px rgba(0,0,0,0.5),
    4px 4px 0px rgba(255,255,255,0.04) inset;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

.book-3d-scene:hover .book-cover-img {
  transform: rotateY(-4deg) rotateX(2deg) translateZ(20px) scale(1.02);
  box-shadow:
    -32px 32px 0px rgba(0,0,0,0.4),
    -24px 24px 60px rgba(0,0,0,0.5),
    0 50px 100px rgba(0,0,0,0.6),
    4px 4px 0px rgba(255,255,255,0.06) inset;
}

/* Reflection beneath book */
.book-reflection {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 50px;
  background: radial-gradient(ellipse, rgba(var(--dominant-color-rgb), 0.35) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(15px);
  animation: reflectionPulse 4s ease-in-out infinite alternate;
}

@keyframes reflectionPulse {
  0% { opacity: 0.5; transform: translateX(-50%) scaleX(0.9); }
  100% { opacity: 0.8; transform: translateX(-50%) scaleX(1.1); }
}

/* ========================================
   BOOK INFO — HERO RIGHT COLUMN
   ======================================== */
.book-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.book-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -1px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.lead-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  max-width: 500px;
}

/* ========================================
   PURCHASE CARD — GLASSMORPHISM
   ======================================== */
.purchase-action {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.purchase-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-original {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-tag .currency {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.price-tag .amount {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: #ffffff;
  line-height: 1;
}

.price-installment {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* BUY BUTTON */
.btn-buy {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 18px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff !important;
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.35), 0 0 0 0 rgba(34, 197, 94, 0);
  letter-spacing: 0.3px;
  text-decoration: none !important;
}

.btn-buy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-buy:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 45px rgba(34, 197, 94, 0.5), 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.btn-buy:hover::before {
  opacity: 1;
}

.btn-buy:active {
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
  display: inline-block;
}

.btn-buy:hover .btn-icon {
  transform: translateX(4px);
}

/* CTA large button variant */
.btn-large {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  padding: 20px 48px;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.35);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 45px rgba(34, 197, 94, 0.5);
  color: #fff;
}

.guarantee-text {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ========================================
   TRUST BADGES / STATS BAR
   ======================================== */
.trust-bar {
  position: relative;
  z-index: 1;
  padding: 28px 0;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.trust-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.1);
}

@media(max-width: 600px) {
  .trust-divider { display: none; }
  .trust-bar-inner { gap: 20px; }
}

/* ========================================
   SECTION: WHAT'S INSIDE (FEATURE SPLIT)
   ======================================== */
/* ========================================
   SECTION: FEATURE STRIPS
   ======================================== */
.features-strips-section {
  padding-top: 100px;
  padding-bottom: 0;
  position: relative;
}

.features-strips-section > .container {
  margin-bottom: 64px;
}

/* Individual strip */
.feature-strip {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.feature-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(var(--dominant-color-rgb), 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.feature-strip.strip--even {
  background: rgba(255,255,255,0.018);
}
.feature-strip.strip--even::before {
  background: linear-gradient(300deg, rgba(var(--dominant-color-rgb), 0.05) 0%, transparent 60%);
}

/* Inner layout: 2 columns */
.strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

@media (max-width: 768px) {
  .strip-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Reverse column order for even strips */
.strip--even .strip-inner {
  direction: rtl;
}
.strip--even .strip-inner > * {
  direction: ltr;
}

/* Visual column */
.strip-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
}

.strip-number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(var(--dominant-color-rgb), 0.25);
  letter-spacing: -4px;
  user-select: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  white-space: nowrap;
}

.strip-icon-wrap {
  position: relative;
  z-index: 1;
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: var(--glass-bg);
  border: 1px solid rgba(var(--dominant-color-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(var(--dominant-color-rgb), 0.1),
    0 16px 48px rgba(0,0,0,0.35),
    0 0 60px rgba(var(--dominant-color-rgb), 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-strip:hover .strip-icon-wrap {
  transform: translateY(-6px) scale(1.04);
  box-shadow:
    0 0 0 1px rgba(var(--dominant-color-rgb), 0.25),
    0 24px 60px rgba(0,0,0,0.45),
    0 0 80px rgba(var(--dominant-color-rgb), 0.15);
}

.strip-icon {
  font-size: 3rem;
  line-height: 1;
}

/* Content column */
.strip-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.strip-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}

.strip-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.58);
  font-weight: 300;
  margin: 0;
  max-width: 46ch;
}

/* Strip CTA button */
.strip-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(var(--dominant-color-rgb), 0.12);
  color: rgba(var(--dominant-color-rgb), 1) !important;
  border: 1px solid rgba(var(--dominant-color-rgb), 0.35);
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  letter-spacing: 0.2px;
  cursor: pointer;
}

.strip-cta:hover {
  background: rgba(var(--dominant-color-rgb), 0.22);
  border-color: rgba(var(--dominant-color-rgb), 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--dominant-color-rgb), 0.25);
  color: #fff !important;
}

.strip-cta svg {
  flex-shrink: 0;
  opacity: 0.9;
}

/* Loading state after AJAX add-to-cart */
.strip-cta.loading {
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 768px) {
  .feature-strip { padding: 56px 0; }
  .strip--even .strip-inner { direction: ltr; }
  .strip-visual { min-height: 140px; }
  .strip-icon-wrap { width: 90px; height: 90px; border-radius: 22px; }
  .strip-icon { font-size: 2.4rem; }
}



.section-eyebrow {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #ffffff;
  margin-bottom: 70px;
  line-height: 1.2;
}

/* Feature Cards Grid */
.feature-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media(min-width: 768px) {
  .feature-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  animation: fadeUp 0.6s ease both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(var(--dominant-color-rgb), 0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--dominant-color-rgb), 0.5);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(var(--dominant-color-rgb), 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card-number {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(var(--dominant-color-rgb), 0.35);
  line-height: 1;
  margin-bottom: 20px;
  position: relative;
}

.feature-card-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
  display: block;
}

.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
}

/* ========================================
   SECTION: BENEFITS (DELIVERY)
   ======================================== */
.delivery-section {
  padding: 100px 0;
  position: relative;
  background: var(--color-surface);
}

.delivery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media(min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.benefit-card {
  padding: 50px 40px;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.benefit-card:last-child {
  border-right: none;
}

.benefit-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0) 0%, rgba(var(--accent-rgb), 0.8) 50%, rgba(var(--accent-rgb), 0) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.benefit-card:hover {
  background: rgba(255,255,255,0.04);
}

.benefit-card:hover::after {
  opacity: 1;
}

.benefit-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: block;
}

.benefit-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 0.93rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(var(--dominant-color-rgb), 0.25) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.cta-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.cta-form {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

/* ========================================
   CROSS SELL SECTION
   ======================================== */
.cross-sell-section {
  padding: 80px 0;
  background: var(--color-surface);
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 60px;
}

.cross-sell-section h3 {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 40px;
  color: #fff;
}

.cross-sell-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media(min-width: 768px) {
  .cross-sell-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cross-sell-item {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  padding: 18px;
  border-radius: var(--radius-md);
  gap: 16px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}

.cross-sell-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cross-sell-item:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(var(--dominant-color-rgb), 0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.cross-sell-thumb img {
  width: 60px;
  height: auto !important;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: block;
}

.cross-sell-info {
  flex: 1;
  min-width: 0;
}

.cross-sell-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cross-sell-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.cross-sell-title a:hover {
  color: var(--accent);
}

.cross-sell-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}

.btn-add-small {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  cursor: pointer;
}

.btn-add-small:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: scale(1.1) rotate(90deg);
}

/* ========================================
   WOOCOMMERCE NOTICES
   ======================================== */

/* Wrapper: toast fixo no canto inferior direito */
.woocommerce-notices-wrapper {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  top: auto !important;
  left: auto !important;
  z-index: 99999;
  width: 340px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

/* Card de notificação */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  pointer-events: all;
  list-style: none;
  margin: 0;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
  background: #1c2128;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.woocommerce-message { border-left: 3px solid #22c55e; }
.woocommerce-error   { border-left: 3px solid #ef4444; }
.woocommerce-info    { border-left: 3px solid #3b82f6; }

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(20px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0)    scale(1); }
}

/* Link "Ver carrinho" / "Restaurar?" */
.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.woocommerce-message a:hover { color: #4ade80; }
.woocommerce-error a:hover   { color: #f87171; }
.woocommerce-info a:hover    { color: #60a5fa; }

/* Botão "Ver carrinho" */
.woocommerce-message a.button,
.woocommerce-error a.button,
.woocommerce-info a.button {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75) !important;
}

.woocommerce-message a.button:hover { background: rgba(34,197,94,0.15);  border-color: rgba(34,197,94,0.4); color: #4ade80 !important; }
.woocommerce-error a.button:hover   { background: rgba(239,68,68,0.15);   border-color: rgba(239,68,68,0.4); color: #f87171 !important; }
.woocommerce-info a.button:hover    { background: rgba(59,130,246,0.15);  border-color: rgba(59,130,246,0.4); color: #60a5fa !important; }

/* ========================================
   CART PAGE
   ======================================== */
.cart-actions-top {
  margin-top: 40px;
}

.btn-return-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.btn-return-book:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(-4px);
}

.page-container {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  padding: 48px;
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.06);
}
.page-container.is-cart-page {
  max-width: 1400px;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border: none;
}
@media (max-width: 768px) {
  .page-container { padding: 20px; }
}

/* ── Layout: itens + sidebar ─────────── */
.triagem-cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}

@media (min-width: 960px) {
  .triagem-cart-layout {
    grid-template-columns: 1fr 360px;
    gap: 32px;
  }
}

/* ── Bloco de itens ──────────────────── */
.triagem-cart-items .woocommerce-cart-form {
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  overflow: hidden;
}

/* Tabela */
.woocommerce-cart table.cart {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-cart table.cart thead th {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  color: var(--text-muted);
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-weight: 600;
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}
.woocommerce-cart table.cart thead th.product-thumbnail { width: 80px; }
.woocommerce-cart table.cart thead th.product-remove    { width: 52px; }

.woocommerce-cart table.cart td {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
  font-size: 1rem;
  color: var(--text-main);
}

.woocommerce-cart table.cart tbody tr:last-child td { border-bottom: none; }

/* produto nome */
.woocommerce-cart table.cart .product-name a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
}
.woocommerce-cart table.cart .product-name a:hover { color: #22c55e; }

/* thumbnail */
.woocommerce-cart table.cart img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* preço / subtotal */
.woocommerce-cart table.cart .product-price bdi,
.woocommerce-cart table.cart .product-subtotal bdi {
  font-weight: 600;
  font-size: 1rem;
}
.woocommerce-cart table.cart .product-subtotal bdi {
  color: #fff;
  font-weight: 700;
}

/* Botão remover — boa visibilidade */
.woocommerce-cart .product-remove a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55) !important;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.2s;
  text-decoration: none;
}
.woocommerce-cart .product-remove a.remove:hover {
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.4);
  color: #ef4444 !important;
  transform: scale(1.08);
}
.woocommerce-cart .product-remove a.remove svg {
  display: block;
  flex-shrink: 0;
}

/* Área de ações (sem cupom, sem atualizar visível) */
.woocommerce-cart table.cart .actions {
  padding: 0;
  border-bottom: none;
}

/* ── Stepper + / - ───────────────────── */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 38px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  flex-shrink: 0;
}
.qty-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-input {
  width: 44px;
  height: 38px;
  text-align: center;
  background: transparent;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  -moz-appearance: textfield;
  outline: none;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Sidebar: total ──────────────────── */
.triagem-cart-sidebar {
  position: sticky;
  top: 100px;
}

.triagem-cart-sidebar .cart-collaterals {
  display: block;
}

.woocommerce-cart .cart_totals {
  background: var(--color-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  padding: 32px;
}

.woocommerce-cart .cart_totals h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 24px;
  color: #fff;
  letter-spacing: -0.3px;
}

.woocommerce-cart .cart_totals table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem;
}
.woocommerce-cart .cart_totals th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
}
.woocommerce-cart .cart_totals td {
  text-align: right;
  color: rgba(255,255,255,0.85);
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  border-bottom: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  padding-top: 16px;
  font-family: 'Outfit', sans-serif;
}

/* Botão finalizar */
.woocommerce-cart .checkout-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff !important;
  text-align: center;
  padding: 17px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.2px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.28);
}
.woocommerce-cart .checkout-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(34, 197, 94, 0.4);
}

/* Ocultar cupom e cross-sells */
.woocommerce-cart .coupon,
.woocommerce-cart .cross-sells { display: none !important; }


/* ========================================
   EMPTY CART
   ======================================== */
.empty-cart-container {
  text-align: center;
  padding: 60px 0;
}

.empty-cart-icon {
  color: var(--text-muted);
  margin-bottom: 20px;
  opacity: 0.4;
}

.empty-cart-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
}

.empty-cart-products {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.empty-cart-subtitle {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 40px;
}

/* ========================================
   PRODUCTS GRID (EMPTY CART)
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media(min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
  }
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.15);
}

.product-card-link {
  text-decoration: none;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 5/8;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.07);
}

.product-info {
  padding: 16px 14px;
  text-align: center;
  flex: 1;
}

.product-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  text-decoration: none;
  line-height: 1.4;
}

.product-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}

.product-action {
  padding: 0 14px 16px;
}

.product-action .add_to_cart_button {
  display: block;
  width: 100%;
  text-align: center;
  background: rgba(255,255,255,0.07);
  color: #fff;
  padding: 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}

.product-action .add_to_cart_button:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* ========================================
   SCROLL REVEAL UTILITY
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media(max-width: 768px) {
  .book-hero {
    padding: 60px 0;
    min-height: auto;
  }

  .book-cover-img {
    max-width: 220px;
  }

  .purchase-action {
    padding: 22px;
  }

  .price-tag .amount {
    font-size: 2.2rem;
  }

  .benefit-card {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 36px 28px;
  }

  .benefit-card:last-child {
    border-bottom: none;
  }
}

/* ========================================
   CHECKOUT PAGE (Light Theme)
   ======================================== */
.woocommerce-checkout .page-container {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 40px;
  margin-bottom: 60px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.woocommerce-checkout h1,
.woocommerce-checkout h2,
.woocommerce-checkout h3,
.woocommerce-checkout h4,
.woocommerce-checkout p,
.woocommerce-checkout span,
.woocommerce-checkout div,
.woocommerce-checkout label,
.woocommerce-checkout legend,
.woocommerce-checkout input,
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce-checkout .wc-block-checkout__title,
.woocommerce-checkout .wc-block-components-checkout-step__title,
.woocommerce-checkout .wc-block-components-checkout-step__description,
.woocommerce-checkout .wc-block-components-order-summary,
.woocommerce-checkout .wc-block-components-order-summary-item__name,
.woocommerce-checkout .wc-block-components-totals-item__value,
.woocommerce-checkout .wc-block-components-checkout-payment-method,
.woocommerce-checkout .wc-block-components-checkout-payment-method * {
  color: #111827 !important;
}

/* Add margin to the country selector */
.woocommerce-checkout .wc-block-components-country-input {
  margin-top: 16px !important;
}

/* Make sure the place order button stays green */
.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  color: #fff !important;
  border-radius: 50px !important;
}

#place_order:hover,
.wc-block-components-checkout-place-order-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34,197,94,0.3);
}

.woocommerce-checkout .wc-block-components-button__text {
  color: #ffffff !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__quantity span {
  color: #ffffff !important;
}

/* ========================================
   MOBILE CART RESPONSIVENESS
   ======================================== */
@media (max-width: 768px) {
  .triagem-cart-layout {
    flex-direction: column;
  }
  
  .woocommerce-cart table.cart thead {
    display: none !important;
  }
  
  .woocommerce-cart table.cart, 
  .woocommerce-cart table.cart tbody, 
  .woocommerce-cart table.cart tr, 
  .woocommerce-cart table.cart td {
    display: block !important;
    width: 100% !important;
  }

  .woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    margin-bottom: 24px !important;
    padding: 24px !important;
    position: relative;
    display: flex !important;
    flex-direction: column;
    gap: 16px;
  }
  
  /* Thumbnail */
  .woocommerce-cart table.cart td.product-thumbnail {
    text-align: center;
    border: none !important;
    padding: 0 !important;
  }
  .woocommerce-cart table.cart td.product-thumbnail::before {
    display: none !important;
  }
  .woocommerce-cart table.cart td.product-thumbnail img {
    width: 48px !important;
    height: auto !important;
    aspect-ratio: 5 / 8;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin: 0 auto !important;
    display: block;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  }
  
  /* Remove button */
  .woocommerce-cart table.cart td.product-remove {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: auto !important;
    border: none !important;
    padding: 0 !important;
  }
  .woocommerce-cart table.cart td.product-remove::before {
    display: none !important;
  }
  .woocommerce-cart table.cart td.product-remove a.remove {
    background: #ef4444;
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(239,68,68,0.4);
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    font-size: 1.2rem;
  }

  /* Product Name */
  .woocommerce-cart table.cart td.product-name {
    text-align: center !important;
    border: none !important;
    padding: 0 !important;
    font-size: 1.2rem !important;
  }
  .woocommerce-cart table.cart td.product-name::before {
    display: none !important;
  }

  /* Container for Price, Qty, Subtotal */
  .woocommerce-cart table.cart td.product-price,
  .woocommerce-cart table.cart td.product-quantity,
  .woocommerce-cart table.cart td.product-subtotal {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    text-align: right !important;
  }

  .woocommerce-cart table.cart td.product-subtotal {
    border-bottom: none !important;
  }

  /* Labels */
  .woocommerce-cart table.cart td::before {
    content: attr(data-title);
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-align: left;
  }
  
  /* Qty Wrapper */
  .woocommerce-cart table.cart td.product-quantity .qty-stepper {
    margin: 0 !important;
  }

  /* Totals */
  .triagem-cart-totals {
    width: 100% !important;
    margin-top: 24px !important;
  }

  /* Actions */
  .woocommerce-cart table.cart .actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0 !important;
  }
}

/* ========================================
   CHECKOUT STEPPER WIZARD
   ======================================== */
.triagem-stepper-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 500px;
  margin: 32px auto 40px auto;
  padding: 16px 24px;
}

.triagem-stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.triagem-stepper-step.active {
  opacity: 1;
}

.triagem-stepper-step.completed {
  opacity: 0.8;
}

.triagem-stepper-step.completed:hover {
  opacity: 1;
}

.triagem-stepper-step .step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #374151;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.triagem-stepper-step.active .step-circle {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.15);
  transform: scale(1.1);
}

.triagem-stepper-step.completed .step-circle {
  background: #22c55e;
  color: #fff;
}

.triagem-stepper-step .step-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.triagem-stepper-line {
  flex: 1;
  height: 2px;
  background: #374151;
  margin: 0 16px;
  position: relative;
  top: -12px;
}

.triagem-stepper-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #22c55e;
  transition: width 0.5s ease;
}

.triagem-stepper-line.active::after {
  width: 100%;
}

@media (max-width: 768px) {
  .triagem-stepper-container {
    padding: 16px;
    margin-top: 24px;
    margin-bottom: 24px;
  }
  .triagem-stepper-step .step-label {
    font-size: 11px;
  }
  .triagem-stepper-step .step-circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .triagem-stepper-line {
    top: -10px;
    margin: 0 8px;
  }
}

/* ========================================
   CUSTOM THANK YOU PAGE (ORDER RECEIVED)
   ======================================== */
.custom-thankyou-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: #111827 !important;
}

.thankyou-success-hero {
  padding: 20px 0 40px 0;
  margin-bottom: 24px;
}

.success-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #22c55e;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #22c55e;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.success-checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #22c55e;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}
@keyframes scale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes fill {
  100% { box-shadow: inset 0px 0px 0px 40px rgba(34,197,94,0.1); }
}

.success-title {
  font-size: 2.2rem !important;
  font-weight: 800;
  color: #111827 !important;
  margin-bottom: 16px;
  font-family: 'Outfit', sans-serif;
}

.success-subtitle {
  font-size: 1.1rem;
  color: #4b5563 !important;
  line-height: 1.6;
  margin-bottom: 24px;
}

.highlight-email {
  color: #22c55e !important;
  font-size: 1.3rem;
  display: inline-block;
  margin-top: 8px;
  word-break: break-all;
}

.success-email-notice {
  display: inline-flex;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 12px 20px;
  border-radius: 50px;
  color: #4b5563;
  font-size: 0.95rem;
  gap: 12px;
  text-align: left;
}

.success-email-notice svg {
  color: #9ca3af;
  flex-shrink: 0;
}

.thankyou-order-details-box {
  background: #f9fafb;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  text-align: left;
  margin-bottom: 40px;
}

.thankyou-order-details-box h2 {
  font-size: 1.4rem;
  color: #111827 !important;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.woocommerce-thankyou-order-details {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.woocommerce-thankyou-order-details li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: none !important;
  float: none !important;
  margin: 0 !important;
}

.woocommerce-thankyou-order-details li span {
  font-size: 0.85rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.woocommerce-thankyou-order-details li strong {
  font-size: 1.1rem;
  color: #111827 !important;
}

.thankyou-woocommerce-details section {
  margin-bottom: 32px;
}

.thankyou-woocommerce-details h2 {
  font-size: 1.2rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 16px;
}

.thankyou-woocommerce-details table,
.thankyou-woocommerce-details th,
.thankyou-woocommerce-details td {
  color: #111827 !important;
  border-color: #e5e7eb !important;
}

.thankyou-woocommerce-details address {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  font-style: normal;
  color: #4b5563;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .thankyou-success-hero {
    padding: 10px 0 30px 0;
  }
  .success-title {
    font-size: 1.75rem !important;
  }
  .success-email-notice {
    flex-direction: column;
    text-align: center;
    border-radius: 16px;
  }
  .woocommerce-thankyou-order-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .thankyou-order-details-box {
    padding: 20px;
  }
}
