/* ─────────────────────────────────────────
   home.css
───────────────────────────────────────── */

/* ── HERO SLIDER ── */
.slider-wrap {
  position: relative; overflow: hidden;
  background: var(--rose-pale);
  aspect-ratio: 16/9; max-height: 240px;
}
.slider-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  height: 100%;
}
.slide { flex-shrink: 0; width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-btn {
  position: absolute; bottom: 210px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.82); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink-soft);
  backdrop-filter: blur(3px);
  box-shadow: 0 1px 6px rgba(0,0,0,.14);
  transition: background .18s; z-index: 2; line-height: 1;
}
.slider-btn:hover { background: white; }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.slider-dots {
  position: absolute; bottom: 10px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 2;
}
.sdot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer;
  transition: all .25s;
}
.sdot.active { background: white; width: 18px; border-radius: 3px; }

/* ── SECTION HEADER ── */
.section-wrap { padding: 22px 0 6px; }
.section-head {
  display: flex; align-items: baseline;
  justify-content: space-between;
  padding: 0 16px 14px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500; color: var(--ink);
}
.section-link {
  font-size: 12px; color: var(--rose-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--rose-light); padding-bottom: 1px;
  transition: border-color .18s;
}
.section-link:hover { border-color: var(--rose); }

/* ── CAROUSEL ── */
.carousel {
  display: flex; gap: 12px;
  padding: 0 16px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }

/* ── DESTAQUE CARD ── */
.prod-card {
  flex-shrink: 0; width: 168px;
  border-radius: 14px; overflow: hidden;
  background: var(--white); border: 1px solid var(--border);
  scroll-snap-align: start; cursor: pointer;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
  text-decoration: none;
}
.prod-card:hover { box-shadow: 0 6px 20px rgba(196,118,138,.18); transform: translateY(-2px); }
.prod-card-img {
  width: 100%; aspect-ratio: 3/4; overflow: hidden;
  position: relative; background: var(--rose-pale);
}
.prod-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s;
}
.prod-card:hover .prod-card-img img { transform: scale(1.04); }
.prod-card-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 9px; font-weight: 500;
  padding: 3px 9px; border-radius: 20px;
  letter-spacing: .04em; text-transform: uppercase;
}
.badge-new   { background: var(--rose); color: white; }
.badge-promo { background: #B8622A; color: white; }

.prod-card-body {
  padding: 10px 10px 12px; flex: 1;
  display: flex; flex-direction: column; gap: 6px;
}
.prod-card-name { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); line-height: 1.35; }
.prod-card-prices { display: flex; flex-direction: column; gap: 2px; }
.prod-price-row { display: flex; align-items: center; justify-content: space-between; }
.prod-price-label { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.prod-price-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; color: var(--ink-soft); line-height: 1;
}
.prod-price-val.destaque { color: var(--rose-dark); }
.prod-price-from { font-size: 9px; color: var(--muted); text-decoration: line-through; }
.prod-card-btn {
  margin-top: auto; display: block; width: 100%; padding: 7px;
  background: var(--rose); color: white; border: none;
  border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500; cursor: pointer;
  text-align: center; letter-spacing: .03em;
  transition: background .18s; text-decoration: none;
}
.prod-card-btn:hover { background: var(--rose-dark); }

/* ── PROMO CARD ── */
.promo-card {
  flex-shrink: 0; width: 240px;
  border-radius: 14px; overflow: hidden;
  background: var(--white); border: 1px solid var(--border);
  scroll-snap-align: start; cursor: pointer;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
  text-decoration: none;
}
.promo-card:hover { box-shadow: 0 6px 20px rgba(196,118,138,.18); transform: translateY(-2px); }
.promo-card-img {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
  position: relative; background: var(--rose-pale);
}
.promo-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s;
}
.promo-card:hover .promo-card-img img { transform: scale(1.04); }
.promo-card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.promo-card-name { font-size: 13px; font-weight: 500; color: var(--ink-soft); line-height: 1.35; }
.promo-prices { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.promo-price-cell {
  text-align: center; border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 4px;
}
.promo-price-cell.hl { border-color: var(--rose); background: var(--rose-pale); }
.promo-price-cell .lbl { font-size: 8px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 3px; }
.promo-price-cell.hl .lbl { color: var(--rose-dark); }
.promo-price-cell .val { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; color: var(--ink-soft); line-height: 1; }
.promo-price-cell.hl .val { color: var(--rose-dark); }
.promo-price-cell .from { font-size: 8px; color: var(--muted); text-decoration: line-through; }
.promo-card-btn {
  display: block; width: 100%; padding: 8px;
  background: var(--rose); color: white; border: none;
  border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500; cursor: pointer;
  text-align: center; transition: background .18s; text-decoration: none;
}
.promo-card-btn:hover { background: var(--rose-dark); }

/* ── MISC ── */
.section-divider { height: 1px; background: var(--border); margin: 4px 16px; }
.mid-banner {
  margin: 6px 16px 0; border-radius: 14px; overflow: hidden;
  background: var(--rose-light); position: relative;
  aspect-ratio: 3/1; min-height: 80px;
  display: flex; align-items: center; justify-content: center;
}
.mid-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mid-banner-text { position: absolute; text-align: center; }
.mid-banner-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 500; color: var(--rose-dark); line-height: 1.2;
}
.mid-banner-text p { font-size: 11px; color: var(--rose-mid); margin-top: 3px; }

@media (min-width: 768px) {
  .slider-wrap { max-height: 280px; }
}

/* ── SLIDER — texto sobreposto ── */
.slide {
  position: relative;
  display: block;
  text-decoration: none;
  flex-shrink: 0;
  width: 100%;
}

.slide img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

/* Gradiente do rodapé para o texto */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 14, 10, 0.88) 0%,
    rgba(28, 14, 10, 0.55) 38%,
    rgba(28, 14, 10, 0.0)  65%
  );
  pointer-events: none;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 24px 20px 28px;
}

.slide-ref {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.slide-nome {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  color: white;
  line-height: 1.25;
  margin-bottom: 14px;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}

.slide-preco-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 12px;
}

.slide-preco-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: .04em;
  flex-basis: 100%;
  margin-bottom: 2px;
}

.slide-preco {
  font-size: 28px;
  font-weight: 700;
  color: white;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: -.01em;
}

.slide-preco-unit {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

/* ── CAROUSEL DE DESTAQUES ── */
.carousel {
  display: flex;
  gap: 12px;
  padding: 4px 12px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .prod-card {
  flex-shrink: 0;
  width: 200px;
  scroll-snap-align: start;
}

/* ── PREÇOS NOS CARDS DE DESTAQUES ── */
.carousel .price-lbl {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  display: block;
}
.carousel .price-val {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.carousel .price-val.hi { color: var(--rose-dark); }
.carousel .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-bottom: 1px solid var(--border);
}
.carousel .price-row:last-child { border-bottom: none; }
.carousel .prod-prices {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
/* Garante que não há elementos ocultos interferindo */
.carousel .price-desc  { display: inline !important; }
.carousel .price-desc2 { display: none !important; }
.carousel .price-sep   { display: none !important; }
.carousel .price-qty   { display: none !important; }
.carousel .price-qty2  { display: none !important; }
.carousel .price-sep2  { display: none !important; }

/* ── SETAS DO CAROUSEL (desktop) ── */
.carousel-wrap {
  position: relative;
}
.carousel-arrow {
  display: none;
  position: absolute;
  top: 100px;
  transform: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ink-soft);
  z-index: 2;
  transition: all .18s;
  line-height: 1;
}
.carousel-arrow:hover { background: var(--rose-pale); border-color: var(--rose); color: var(--rose-dark); }
.carousel-arrow-left  { left: -4px; }
.carousel-arrow-right { right: -4px; }

@media (min-width: 768px) {
  .carousel-arrow { display: flex; }
  .carousel-wrap .carousel { padding-left: 32px; padding-right: 32px; }
}
