/* =========================================================
   Dom Diego · Hero · DS v5 · E-commerce carousel · v3
   Desktop: texto esquerda (40%) + foto direita (60%) com moldura circular
   Mobile: foto topo com moldura + texto embaixo + CTAs empilhados
   ========================================================= */

.dd-hero {
  background: var(--dd-ink, #0A0A0A);
  font-family: var(--dd-font-sans, 'Montserrat', sans-serif);
  position: relative;
}

.dd-hero-carousel {
  position: relative;
  overflow: hidden;
  height: 480px;
}

.dd-hero-track {
  position: relative;
  height: 100%;
}

/* === Slide === */
.dd-hero-slide {
  position: absolute;
  inset: 0;
  background: var(--slide-bg, #0A0A0A);
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms ease, visibility 0ms linear 500ms;
  pointer-events: none;
}
.dd-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 500ms ease;
  pointer-events: auto;
  z-index: 1;
}

/* Gradiente radial decorativo atrás da foto (substitui o diamond quebrado) */
.dd-hero-slide::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 640px;
  height: 640px;
  background: radial-gradient(circle at center,
    var(--dd-accent, #7A1F2B) 0%,
    rgba(122, 31, 43, 0.3) 25%,
    transparent 55%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.dd-hero-slide-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

/* === Texto === */
.dd-hero-slide-text {
  color: #fff;
  position: relative;
  z-index: 2;
  max-width: 460px;
  padding: 32px 0;
}

.dd-hero-slide.is-active .dd-hero-slide-text {
  animation: dd-hero-fade-up 620ms cubic-bezier(.2,.7,.2,1) 120ms both;
}

@keyframes dd-hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--dd-gold, #E6C06C);
  color: var(--dd-ink, #0A0A0A);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.dd-hero-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dd-ink, #0A0A0A);
  animation: dd-badge-pulse 1.6s ease-in-out infinite;
}
@keyframes dd-badge-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.dd-hero-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.dd-hero-title {
  font-family: var(--dd-font-display, 'Cormorant', serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 18px;
  color: #fff;
  text-wrap: balance;
}
.dd-hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--dd-gold, #E6C06C);
}

/* Preço em bloco vertical pra dar hierarquia */
.dd-hero-price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.dd-hero-price-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.dd-hero-price-now {
  font-family: var(--dd-font-display, 'Cormorant', serif);
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.dd-hero-price-old {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
}
.dd-hero-price-off {
  background: var(--dd-sale, #B31E32);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 3px;
}
.dd-hero-price-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
  font-weight: 500;
}

.dd-hero-desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 22px;
  max-width: 400px;
}

.dd-hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.dd-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, transform 80ms ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.dd-hero-btn:active { transform: translateY(1px); }

.dd-hero-btn-primary {
  background: #fff;
  color: var(--dd-ink, #0A0A0A);
}
.dd-hero-btn-primary:hover { background: var(--dd-gold, #E6C06C); }
.dd-hero-btn-primary::after {
  content: "→";
  margin-left: 2px;
  transition: transform 150ms ease;
  font-size: 14px;
}
.dd-hero-btn-primary:hover::after { transform: translateX(3px); }

.dd-hero-btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 4px;
  padding: 0 4px;
  height: auto;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 11px;
}
.dd-hero-btn-ghost:hover {
  color: var(--dd-gold, #E6C06C);
  text-decoration-color: var(--dd-gold, #E6C06C);
}

/* === Foto do produto com MOLDURA === */
.dd-hero-slide-media {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Moldura circular/elíptica atrás da foto pra dar contexto */
.dd-hero-media-frame {
  position: relative;
  width: min(460px, 90%);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Círculo gradient sutil atrás do produto */
.dd-hero-media-frame::before {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 40%,
    transparent 70%);
  z-index: 0;
}

/* Anel dourado sutil */
.dd-hero-media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(230, 192, 108, 0.15);
  z-index: 0;
}

.dd-hero-slide-media img {
  position: relative;
  z-index: 1;
  width: 88%;
  height: 88%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5))
          drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.dd-hero-slide.is-active .dd-hero-slide-media img {
  animation: dd-hero-media-in 780ms cubic-bezier(.2,.7,.2,1) 100ms both;
}
@keyframes dd-hero-media-in {
  from { opacity: 0; transform: translateX(20px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* === Arrows === */
.dd-hero-arrow {
  position: absolute;
  top: calc(50% - 28px); /* sobe um pouco pra não bater com dots */
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 150ms ease, border-color 150ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dd-hero-arrow:hover {
  background: #fff;
  color: var(--dd-ink, #0A0A0A);
  border-color: #fff;
}
.dd-hero-arrow-prev { left: 18px; }
.dd-hero-arrow-next { right: 18px; }

/* === Dots (canto inferior direito, fora do caminho do CTA) === */
.dd-hero-dots {
  position: absolute;
  bottom: 20px;
  right: 24px;
  display: flex;
  gap: 6px;
  z-index: 3;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dd-hero-dot {
  background: transparent;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
}
.dd-hero-dot::before {
  content: "";
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 2px;
  transition: background 220ms ease;
}
.dd-hero-dot .dd-hero-dot-fill {
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--dd-gold, #E6C06C);
  border-radius: 2px;
}
.dd-hero-dot.is-active::before { background: rgba(255, 255, 255, 0.2); }
.dd-hero-dot.is-active .dd-hero-dot-fill {
  animation: dd-hero-dot-progress var(--dd-autoplay-ms, 6000ms) linear forwards;
}
@keyframes dd-hero-dot-progress {
  from { width: 0; }
  to   { width: 22px; }
}
.dd-hero-carousel.is-paused .dd-hero-dot-fill { animation-play-state: paused; }

/* === Slide counter (contador 1 / 3) === */
.dd-hero-counter {
  position: absolute;
  bottom: 22px;
  left: 24px;
  z-index: 3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}
.dd-hero-counter strong {
  color: #fff;
  font-weight: 700;
}

/* === Trust strip (separado do hero, fundo ivory) === */
.dd-trust-strip {
  background: var(--dd-bg, #FAF7F2);
  border-bottom: 1px solid var(--dd-line, #E3DDD0);
}
.dd-trust-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.dd-trust-item {
  display: flex;
  gap: 12px;
  align-items: center;
}
.dd-trust-item svg {
  color: var(--dd-ink, #0A0A0A);
  flex-shrink: 0;
}
.dd-trust-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dd-ink, #0A0A0A);
  line-height: 1.2;
}
.dd-trust-item span {
  font-size: 11px;
  color: var(--dd-ink-40, #7A7873);
  display: block;
  margin-top: 2px;
}

/* === MOBILE === */
@media (max-width: 960px) {
  .dd-hero-carousel {
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
  .dd-hero-track {
    position: relative;
    height: auto;
    flex: 1;
  }
  .dd-hero-slide {
    position: relative;
    inset: auto;
    display: none;
  }
  .dd-hero-slide.is-active {
    display: block;
    transition: opacity 300ms ease;
  }

  .dd-hero-slide::after {
    right: -40%;
    top: 20%;
    width: 460px;
    height: 460px;
    opacity: 0.22;
  }

  .dd-hero-slide-inner {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
    align-content: stretch;
  }

  .dd-hero-slide-media {
    order: 1;
    height: 220px;
    width: 100%;
    padding: 14px 16px 0;
  }
  .dd-hero-media-frame {
    width: min(200px, 100%);
    height: 100%;
  }
  .dd-hero-media-frame::before { inset: 2%; }

  .dd-hero-slide-text {
    order: 2;
    max-width: 100%;
    padding: 14px 20px 22px;
    animation-delay: 160ms;
  }
  .dd-hero-title {
    font-size: 22px;
    line-height: 1.12;
    margin-bottom: 10px;
  }
  .dd-hero-badge { font-size: 9px; padding: 3px 8px; margin-bottom: 8px; }
  .dd-hero-kicker { font-size: 10px; margin-bottom: 4px; letter-spacing: 0.16em; }
  .dd-hero-price-now { font-size: 26px; }
  .dd-hero-price-row { margin-bottom: 10px; gap: 2px; }
  .dd-hero-desc { font-size: 12px; margin-bottom: 14px; line-height: 1.45; }

  .dd-hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .dd-hero-btn {
    height: 44px;
  }
  .dd-hero-btn-primary {
    width: auto;
    min-width: 240px;
    max-width: 300px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
  }
  .dd-hero-btn-ghost {
    align-self: center;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .dd-hero-arrow { display: none; }

  /* Dots escondidos no mobile — navegação por swipe + autoplay */
  .dd-hero-dots { display: none; }
  .dd-hero-counter { display: none; }

  .dd-trust-strip-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 8px;
    padding: 12px 16px;
  }
  .dd-trust-item { gap: 8px; }
  .dd-trust-item svg { width: 18px; height: 18px; }
  .dd-trust-item strong { font-size: 11px; }
  .dd-trust-item span { font-size: 10px; }
  .dd-trust-item { gap: 10px; }
  .dd-trust-item svg { width: 18px; height: 18px; }
  .dd-trust-item strong { font-size: 12px; }
  .dd-trust-item span { font-size: 10px; }
}

@media (max-width: 480px) {
  .dd-hero-carousel { min-height: 580px; }
  .dd-hero-slide-media { height: 240px; padding: 18px 16px 0; }
  .dd-hero-media-frame { width: min(220px, 100%); }
  .dd-hero-slide-text { padding: 18px 20px 24px; }
  .dd-hero-title { font-size: 22px; }
  .dd-hero-price-now { font-size: 26px; }
  .dd-trust-strip-inner { grid-template-columns: 1fr 1fr; }
}
