/* =====================================================
   ARIMAR UTILIDADES — v5 "Vitrine Carrossel"
   Mesmo visual da v4 (toldo listrado, prateleira e
   etiquetas penduradas), com os produtos em carrossel.
===================================================== */

:root {
  /* Cores — papel de embrulho + marca */
  --papel: #FBF0E1;
  --papel-2: #F4E4CC;
  --branco: #FFFFFF;
  --tinta: #2E1B10;
  --tinta-2: #6B5142;
  --tinta-3: #9A8271;
  --laranja: #F85C00;
  --laranja-escuro: #C24700;
  --creme-toldo: #FFF4E3;
  --amarelo: #FFC933;
  --verde: #1F8A50;
  --verde-escuro: #14663A;
  --vermelho: #D93636;
  --linha: rgba(46, 27, 16, 0.10);
  --linha-forte: rgba(46, 27, 16, 0.16);

  /* Tipografia */
  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;
  --f-hand: "Caveat", cursive;

  /* Raios e sombras */
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-card: 0 10px 28px -14px rgba(46, 27, 16, 0.28), 0 2px 6px -2px rgba(46, 27, 16, 0.10);
  --shadow-pop: 0 22px 48px -20px rgba(46, 27, 16, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--papel);
  color: var(--tinta);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--laranja);
  outline-offset: 2px;
  border-radius: 4px;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

/* =====================================================
   HERO
===================================================== */
.hero {
  text-align: center;
  padding: 8px 0 34px;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--tinta-2);
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: 0 2px 8px -4px rgba(46, 27, 16, 0.18);
}

.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--laranja);
}

/* Logo com anel pontilhado girando — mesma estrutura da versão atual */
.hero__logo-wrap {
  position: relative;
  width: 124px;
  height: 124px;
  margin: 22px auto 14px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero__logo-wrap:hover { transform: rotate(-4deg) scale(1.05); }

.hero__logo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px dashed rgba(243, 156, 42, 0.4);
  animation: ringSpin 28s linear infinite;
}

.hero__logo-ring::before,
.hero__logo-ring::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hero__logo-ring::before {
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #F39C2A;
}

.hero__logo-ring::after {
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #F26B24;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.hero__logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--branco), 0 8px 24px rgba(243, 156, 42, 0.3);
}

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(34px, 9vw, 42px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero__title-accent { color: var(--laranja); }

.hero__slogan {
  font-family: var(--f-hand);
  font-size: 26px;
  font-weight: 600;
  color: var(--tinta-2);
  margin-top: 6px;
  transform: rotate(-1.5deg);
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--tinta-2);
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: 0 2px 8px -4px rgba(46, 27, 16, 0.18);
}

.hero__status strong { color: var(--verde); font-weight: 700; }

.hero__status-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--verde);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero__status.is-closed strong { color: var(--vermelho); }
.hero__status.is-closed .hero__status-pulse { background: var(--vermelho); animation: none; }

.hero__status-sep { color: var(--tinta-3); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 138, 80, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(31, 138, 80, 0); }
}

/* =====================================================
   VITRINE — toldo + janela + prateleiras
===================================================== */
.vitrine { margin-bottom: 46px; }

/* Toldo listrado com barrado ondulado */
.toldo {
  position: relative;
  z-index: 2;
  height: 38px;
  border-radius: 14px 14px 0 0;
  background: repeating-linear-gradient(
    90deg,
    var(--laranja) 0 26px,
    var(--creme-toldo) 26px 52px
  );
  box-shadow: 0 10px 18px -12px rgba(46, 27, 16, 0.45);
}

.toldo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.06));
  pointer-events: none;
}

.toldo::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 13px;
  background:
    radial-gradient(circle 13px at 13px 0, var(--laranja) 97%, transparent) 0 0 / 52px 13px repeat-x,
    radial-gradient(circle 13px at 13px 0, var(--creme-toldo) 97%, transparent) 26px 0 / 52px 13px repeat-x;
  filter: drop-shadow(0 4px 3px rgba(46, 27, 16, 0.18));
}

/* Janela da vitrine */
.vitrine__janela {
  background: linear-gradient(180deg, #FFFBF4, #FDF4E6);
  border: 2px solid var(--linha-forte);
  border-top: none;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  padding: 34px 16px 22px;
}

.vitrine__head {
  text-align: center;
  margin-bottom: 26px;
}

.vitrine__eyebrow {
  font-family: var(--f-hand);
  font-size: 23px;
  font-weight: 700;
  color: var(--laranja);
  display: inline-block;
  transform: rotate(-2deg);
}

.vitrine__eyebrow::after {
  content: "✦";
  display: inline-block;
  margin-left: 7px;
  font-size: 0.75em;
  animation: twinkle 2.6s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(40deg); }
}

.vitrine__title {
  font-family: var(--f-display);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

.vitrine__sub {
  font-size: 14px;
  color: var(--tinta-2);
  margin-top: 6px;
}

/* Produto sobre prateleira */
.vitrine__shelf { display: flex; flex-direction: column; }

.produto {
  position: relative;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
}

/* A prateleira embaixo de cada produto */
.produto::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: -16px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(180deg, #E7CBA2, #D2AE7C);
  box-shadow: 0 14px 16px -10px rgba(46, 27, 16, 0.38);
}

.produto__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
  background: var(--papel-2);
}

.produto__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.produto:hover .produto__media img { transform: scale(1.035); }

.produto__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--laranja);
  border-radius: 8px;
  padding: 6px 11px;
  transform: rotate(-5deg);
  box-shadow: 0 6px 12px -5px rgba(194, 71, 0, 0.6);
  animation: badgeWiggle 5.5s ease-in-out 2.5s infinite;
}

/* Fica quieto quase o tempo todo, dá uma chacoalhada rápida para chamar o olho */
@keyframes badgeWiggle {
  0%, 86%, 100% { transform: rotate(-5deg) scale(1); }
  89% { transform: rotate(-1deg) scale(1.1); }
  92% { transform: rotate(-8deg) scale(1.06); }
  95% { transform: rotate(-3deg) scale(1.02); }
}

.produto__body { padding: 16px 16px 18px; }

.produto__note {
  font-family: var(--f-hand);
  font-size: 21px;
  font-weight: 600;
  color: var(--laranja-escuro);
  display: inline-block;
  transform: rotate(-1.5deg);
  margin-bottom: 2px;
}

.produto__name {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.produto__desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--tinta-2);
  margin-top: 7px;
}

.produto__details {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  list-style: none;
}

.produto__details li {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tinta-2);
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 5px 11px;
}

.produto__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

/* Etiqueta de preço pendurada — balança no furinho */
.etiqueta {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--amarelo);
  border-radius: 10px;
  padding: 8px 15px 9px 27px;
  transform: rotate(-4deg);
  transform-origin: 14px 50%;
  box-shadow: 0 7px 14px -6px rgba(46, 27, 16, 0.38);
  animation: tagSwing 4.5s ease-in-out infinite;
}

@keyframes tagSwing {
  0%, 100% { transform: rotate(-4.5deg); }
  50% { transform: rotate(-1deg); }
}

@keyframes tagSwingBig {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(1.5deg); }
}

.produto:hover .etiqueta { animation: tagSwingBig 1.5s ease-in-out infinite; }

.etiqueta::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--papel);
  box-shadow: inset 0 1px 2px rgba(46, 27, 16, 0.45);
}

.etiqueta__de {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(46, 27, 16, 0.55);
  text-decoration: line-through;
}

.etiqueta__por {
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--tinta);
}

.etiqueta__por small {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  display: block;
  color: rgba(46, 27, 16, 0.65);
}

.etiqueta__por sup { font-size: 0.62em; }

.produto__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  max-width: 210px;
}

.produto__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--verde);
  border-radius: var(--r-md);
  padding: 12px 10px;
  box-shadow: 0 8px 16px -8px rgba(20, 102, 58, 0.6);
  transition: transform 0.15s ease, background 0.15s ease;
}

.produto__buy:hover { background: var(--verde-escuro); }
.produto__buy:active { transform: scale(0.96, 1.03); }

/* Brilho que varre os CTAs de WhatsApp de tempos em tempos */
.produto__buy,
.procura__btn,
.sheet__buy {
  position: relative;
  overflow: hidden;
}

.produto__buy::after,
.procura__btn::after,
.sheet__buy::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-180%) skewX(-14deg);
  pointer-events: none;
  animation: shine 4.6s ease-in-out 1.8s infinite;
}

@keyframes shine {
  0% { transform: translateX(-180%) skewX(-14deg); }
  22%, 100% { transform: translateX(340%) skewX(-14deg); }
}

.produto__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tinta-2);
  background: transparent;
  border: 1.5px solid var(--linha-forte);
  border-radius: var(--r-md);
  padding: 9px 10px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.produto__more:hover { border-color: var(--laranja); color: var(--laranja-escuro); }

/* Card "não achou?" */
.procura {
  text-align: center;
  border: 2px dashed var(--linha-forte);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.55);
  padding: 20px 18px 22px;
  margin-top: 6px;
}

.procura__note {
  font-family: var(--f-hand);
  font-size: 24px;
  font-weight: 700;
  color: var(--tinta);
  transform: rotate(-1.5deg);
}

.procura__text {
  font-size: 14px;
  color: var(--tinta-2);
  line-height: 1.5;
  margin: 6px auto 14px;
  max-width: 40ch;
}

.procura__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--laranja);
  border-radius: var(--r-md);
  padding: 12px 20px;
  box-shadow: 0 8px 18px -8px rgba(194, 71, 0, 0.65);
  transition: transform 0.15s ease, background 0.15s ease;
}

.procura__btn:hover { background: var(--laranja-escuro); }
.procura__btn:active { transform: scale(0.97); }

/* =====================================================
   SECTIONS COMUNS
===================================================== */
.section-head {
  text-align: center;
  margin-bottom: 18px;
}

.section-head__title {
  font-family: var(--f-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head__sub {
  font-size: 13.5px;
  color: var(--tinta-2);
  margin-top: 5px;
}

/* =====================================================
   LOJAS
===================================================== */
.stores { margin-bottom: 42px; }

.stores__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--r-lg);
  padding: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.store:hover { transform: translateY(-2px); border-color: var(--linha-forte); }
.store:active { transform: scale(0.99); }

.store__photo { transition: transform 0.4s ease; }
.store:hover .store__photo { transform: scale(1.07); }

.store__cta svg { transition: transform 0.2s ease; }
.store:hover .store__cta svg { transform: translateX(3px); }

.store__media {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--papel-2);
}

.store__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store__num {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(46, 27, 16, 0.72);
  border-radius: 7px;
  padding: 3px 7px;
  backdrop-filter: blur(3px);
}

.store__body { min-width: 0; }

.store__address {
  font-family: var(--f-display);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.15;
}

.store__ref {
  font-size: 12.5px;
  color: var(--tinta-2);
  line-height: 1.4;
  margin-top: 3px;
}

.store__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--verde);
  margin-top: 7px;
}

/* =====================================================
   MAPA
===================================================== */
.map { margin-bottom: 42px; }

.map__card {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.map__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.map__tab {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--tinta-2);
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 9px 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.map__tab.is-active {
  color: #fff;
  background: var(--laranja);
  border-color: var(--laranja);
  box-shadow: 0 6px 12px -6px rgba(194, 71, 0, 0.55);
}

.map__info { margin-bottom: 12px; text-align: center; }

.map__address {
  font-family: var(--f-display);
  font-size: 15.5px;
  font-weight: 700;
}

.map__ref {
  font-size: 12.5px;
  color: var(--tinta-2);
  margin-top: 3px;
}

.map__frame {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--linha);
}

.map__frame iframe {
  display: block;
  width: 100%;
  height: 210px;
  border: 0;
}

.map__actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.map__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--r-md);
  padding: 11px 10px;
  transition: transform 0.15s ease;
}

.map__btn:active { transform: scale(0.97); }

.map__btn--route {
  color: var(--tinta);
  border: 1.5px solid var(--linha-forte);
}

.map__btn--wpp {
  color: #fff;
  background: var(--verde);
  box-shadow: 0 8px 16px -8px rgba(20, 102, 58, 0.6);
}

/* =====================================================
   HORÁRIO
===================================================== */
.hours { margin-bottom: 42px; }

.hours__card {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--r-lg);
  padding: 6px 16px;
  box-shadow: var(--shadow-card);
}

.hours__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 2px;
  border-bottom: 1px dashed var(--linha);
}

.hours__row:last-child { border-bottom: none; }

.hours__day {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tinta-2);
}

.hours__row.is-today .hours__day { color: var(--tinta); font-weight: 700; }

.hours__today-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--laranja);
  border-radius: 6px;
  padding: 3px 7px;
  animation: todayPulse 2.4s ease-in-out infinite;
}

@keyframes todayPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.hours__time {
  font-family: var(--f-display);
  font-size: 14.5px;
  font-weight: 700;
}

.hours__time.is-closed { color: var(--vermelho); }

/* =====================================================
   INSTAGRAM
===================================================== */
.storefront { margin-bottom: 42px; }

.social {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}

.social:hover { transform: translateY(-2px); }

.social__icon { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.social:hover .social__icon { transform: rotate(-8deg) scale(1.08); }

.social__arrow { transition: transform 0.2s ease; }
.social:hover .social__arrow { transform: translate(2px, -2px); }

.social__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #F58529, #DD2A7B 60%, #8134AF);
  border-radius: 14px;
}

.social__text { flex: 1; min-width: 0; }

.social__handle {
  font-family: var(--f-display);
  font-size: 15.5px;
  font-weight: 700;
}

.social__desc {
  font-size: 12.5px;
  color: var(--tinta-2);
  margin-top: 2px;
}

.social__arrow { color: var(--tinta-3); flex-shrink: 0; }

/* =====================================================
   FOOTER
===================================================== */
/* Footer — mesmo visual da versão atual */
.foot {
  text-align: center;
  padding-top: 6px;
  padding-bottom: 20px;
}

.foot__logo {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.75;
}

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

.foot__copy {
  font-size: 11.5px;
  font-weight: 500;
  color: #5a4036;
  line-height: 1.45;
  margin-top: 12px;
}

.foot__line {
  width: 36px;
  height: 2px;
  background: var(--laranja);
  border-radius: 2px;
  margin: 14px auto;
}

.foot__sign {
  font-family: var(--f-display);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #8a7066;
}

/* =====================================================
   FICHA DO PRODUTO (bottom sheet)
===================================================== */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet[hidden] { display: none; }

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 15, 5, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sheet.is-open .sheet__backdrop { opacity: 1; }

.sheet__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: var(--branco);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-pop);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.sheet.is-open .sheet__panel { transform: translateY(0); }

/* Conteúdo da ficha entra em cascata depois que o painel sobe */
.sheet.is-open .sheet__body > * {
  animation: fadeUp 0.45s ease backwards;
}

.sheet.is-open .sheet__body > *:nth-child(1) { animation-delay: 0.16s; }
.sheet.is-open .sheet__body > *:nth-child(2) { animation-delay: 0.2s; }
.sheet.is-open .sheet__body > *:nth-child(3) { animation-delay: 0.26s; }
.sheet.is-open .sheet__body > *:nth-child(4) { animation-delay: 0.32s; }
.sheet.is-open .sheet__body > *:nth-child(5) { animation-delay: 0.38s; }

.sheet.is-open .sheet__details li {
  animation: fadeUp 0.4s ease backwards;
}

.sheet.is-open .sheet__details li:nth-child(1) { animation-delay: 0.4s; }
.sheet.is-open .sheet__details li:nth-child(2) { animation-delay: 0.47s; }
.sheet.is-open .sheet__details li:nth-child(3) { animation-delay: 0.54s; }
.sheet.is-open .sheet__details li:nth-child(4) { animation-delay: 0.61s; }
.sheet.is-open .sheet__details li:nth-child(5) { animation-delay: 0.68s; }

.sheet__grip {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--linha-forte);
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--tinta);
  background: var(--branco);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
}

.sheet__scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.sheet__media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 8px 16px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--papel-2);
}

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

.sheet__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--laranja);
  border-radius: 8px;
  padding: 6px 11px;
  transform: rotate(-5deg);
  box-shadow: 0 6px 12px -5px rgba(194, 71, 0, 0.6);
}

.sheet__body { padding: 16px 20px 4px; }

.sheet__note {
  font-family: var(--f-hand);
  font-size: 22px;
  font-weight: 600;
  color: var(--laranja-escuro);
  display: inline-block;
  transform: rotate(-1.5deg);
}

.sheet__name {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: 2px;
  padding-right: 30px;
}

.sheet__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--tinta-2);
  margin-top: 9px;
}

.sheet__details {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet__details li {
  position: relative;
  font-size: 14px;
  color: var(--tinta-2);
  padding-left: 24px;
}

.sheet__details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--verde);
}

.sheet__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0 14px;
}

.etiqueta--sheet { transform: rotate(-2deg); }

.sheet__buy {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--verde);
  border-radius: 14px;
  padding: 15px 12px;
  box-shadow: 0 10px 20px -8px rgba(20, 102, 58, 0.6);
  transition: transform 0.15s ease, background 0.15s ease;
}

.sheet__buy:hover { background: var(--verde-escuro); }
.sheet__buy:active { transform: scale(0.97); }

body.sheet-open { overflow: hidden; }

/* Em telas maiores, a ficha vira um diálogo central */
@media (min-width: 640px) {
  .sheet { align-items: center; padding: 24px; }

  .sheet__panel {
    border-radius: var(--r-xl);
    max-height: 86vh;
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .sheet.is-open .sheet__panel { transform: translateY(0); opacity: 1; }

  .sheet__grip { display: none; }
}

/* =====================================================
   ENTRADAS / REVEAL
===================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Toldo desce e assenta com um quique */
@keyframes toldoDown {
  0% { opacity: 0; transform: translateY(-32px); }
  62% { opacity: 1; transform: translateY(4px); }
  82% { transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero__chip,
.hero__logo-wrap,
.hero__title,
.hero__slogan,
.hero__status {
  animation: fadeUp 0.55s ease backwards;
}

.hero__logo-wrap { animation-delay: 0.06s; }
.hero__title { animation-delay: 0.12s; }
.hero__slogan { animation-delay: 0.18s; }
.hero__status { animation-delay: 0.24s; }

.toldo { animation: toldoDown 0.7s ease-out 0.28s backwards; }

/* Reveal com mola: o elemento "assenta" na prateleira */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
}

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

/* Chips de detalhes entram em cascata junto com o card */
.reveal .produto__details li { opacity: 0; }

.reveal.is-in .produto__details li {
  animation: fadeUp 0.4s ease forwards;
}

.reveal.is-in .produto__details li:nth-child(1) { animation-delay: 0.22s; }
.reveal.is-in .produto__details li:nth-child(2) { animation-delay: 0.3s; }
.reveal.is-in .produto__details li:nth-child(3) { animation-delay: 0.38s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal { opacity: 1; transform: none; }
  .reveal .produto__details li { opacity: 1; }
  .produto__buy::after,
  .procura__btn::after,
  .sheet__buy::after { display: none; }
}

/* =====================================================
   V5 — CARROSSEL DA VITRINE
   Os cards de produto da v4 dentro de um carrossel com
   a mesma lógica do index (setas, dots, swipe, autoplay).
===================================================== */
.vitrine__carousel {
  touch-action: pan-y;
}

/* O overflow fica no track interno: assim as setas, que são filhas
   do viewport, podem estourar o limite do card sem serem cortadas. */
.vitrine__viewport {
  position: relative;
}

.vitrine__track {
  overflow: hidden;
  /* Sangria lateral: o track alarga 10px para cada lado e o slide devolve
     esse espaço como padding. Assim o card fica na largura cheia da janela
     (igual à listagem sem carrossel) e a prateleira, que passa 8px do card,
     não é cortada pelo overflow. */
  margin: 0 -10px;
  /* respiro para a prateleira e a sombra do card aparecerem */
  padding-bottom: 26px;
}

.vitrine__slides {
  display: flex;
  align-items: stretch;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.vitrine__slide {
  flex: 0 0 100%;
  display: flex;
  /* espaço lateral para a prateleira (que passa 8px do card) */
  padding: 0 10px;
}

/* O card ocupa o slide inteiro e alinha o rodapé embaixo,
   para todos os slides terem a mesma altura. */
.vitrine__slide .produto {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.vitrine__slide .produto__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vitrine__slide .produto__foot {
  margin-top: auto;
  padding-top: 18px;
}

/* Setas de navegação — sobrepostas, cavalgando a borda do card
   (não ocupam espaço do card; metade dentro, metade fora) */
.vitrine__nav {
  position: absolute;
  /* centraliza no card, descontando o respiro da prateleira (26px) */
  top: calc(50% - 13px);
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--tinta);
  border: 1px solid var(--linha);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px -6px rgba(46, 27, 16, 0.45);
  transition: background 0.15s ease, color 0.15s ease;
}

.vitrine__nav:hover { background: var(--laranja); color: #fff; }
/* A borda do card coincide com a do viewport; -19px (metade dos 38px
   da seta) deixa o centro dela exatamente sobre a borda do card. */
.vitrine__nav--prev { left: -19px; }
.vitrine__nav--next { right: -19px; }

/* Dots — abaixo da prateleira */
.vitrine__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 4px;
  margin-bottom: 22px;
}

.vitrine__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--linha-forte);
  transition: all 0.2s ease;
}

.vitrine__dot.is-active {
  width: 24px;
  background: var(--laranja);
}
