:root {
  --rose: #c4517a;
  --rose2: #8b3457;
  --rose3: #f9e8ef;
  --blush: #fdf5f8;
  --dark: #1a0d14;
  --mid: #5c3347;
  --muted: #a07090;
  --border: #eddde6;
  --card: #ffffff;
  --wpp: #25d366;
  --r: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--blush);
  color: var(--dark);
  overflow-x: hidden;
}

/* ── CURSOR CUSTOM ── */
body {
  cursor: none;
}
#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--rose);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.1s,
    width 0.2s,
    height 0.2s,
    opacity 0.2s;
  mix-blend-mode: multiply;
}
#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--rose);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    transform 0.18s ease-out,
    width 0.25s,
    height 0.25s,
    opacity 0.2s;
  opacity: 0.5;
}
a,
button {
  cursor: none;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    #1a0d14 0%,
    #3d1530 40%,
    #7a2652 70%,
    #c4517a 100%
  );
}

/* partículas flutuantes */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  animation: floatUp linear infinite;
  pointer-events: none;
}
@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-20vh) scale(1);
    opacity: 0;
  }
}

/* texto hero animado */
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease both;
}

.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 0.95;
  margin-bottom: 8px;
  animation: fadeUp 0.9s 0.1s ease both;
}

.hero-title em {
  font-style: italic;
  color: #f5c6d8;
}

.hero-sub {
  font-weight: 600;
  color: #f5c6d8;
  font-size: 1.1rem;
  max-width: 400px;
  line-height: 1.7;
  margin: 18px auto 36px;
  white-space: pre-wrap;
  line-height: 1.6;
  white-space: pre-wrap;
  border-right: 1px solid #f5c6d8;
  padding-right: 8px;
  animation: fadeUp 1s 0.2s ease both;
}

.hero-search {
  display: flex;
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  overflow: hidden;
  animation: fadeUp 1s 0.3s ease both;
  transition:
    background 0.3s,
    border 0.3s;
}
.hero-search:focus-within {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}
.hero-search input {
  flex: 1;
  padding: 15px 22px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  font-family: "Outfit", sans-serif;
}
.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.hero-search button {
  padding: 12px 24px;
  background: var(--rose);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  font-family: "Outfit", sans-serif;
  border-radius: 0 50px 50px 0;
  transition: background 0.2s;
}
.hero-search button:hover {
  background: var(--rose2);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeUp 1s 0.6s ease both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1.4);
    opacity: 1;
  }
}

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

/* ── STRIP ANIMADO ── */
.strip-wrap {
  overflow: hidden;
  background: var(--rose);
  padding: 14px 0;
  border-top: 1px solid var(--rose2);
  border-bottom: 1px solid var(--rose2);
}
.strip-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: stripRun 18s linear infinite;
}
@keyframes stripRun {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.strip-item {
  padding: 0 32px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}
.strip-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

/* ── MAIN ── */
.main {
  max-width: 1240px;
  margin: 0 auto;
  /*padding: 60px 24px 140px;*/
  padding: 36px 18px 120px;
}

/* ── SECTION HEADER ── */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 6px;
}
.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
}

/* ── FILTROS ── */
.filtros {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.25s;
  font-family: "Outfit", sans-serif;
  position: relative;
  overflow: hidden;
}
.chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  z-index: 0;
}
.chip span {
  position: relative;
  z-index: 1;
}
.chip:hover::before {
  transform: scaleX(1);
}
.chip:hover {
  color: #fff;
  border-color: var(--rose);
}
.chip.ativo::before {
  transform: scaleX(1);
}
.chip.ativo {
  color: #fff;
  border-color: var(--rose);
}

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* ── CARD ── */
.card {
  background: var(--card);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: cardIn 0.5s ease forwards;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 60px rgba(196, 81, 122, 0.18);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f9e8ef, #eddde6);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  background: #fff;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}
.card:hover .card-img {
  transform: scale(1.08);
}

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, #f9e8ef 0%, #fdf0f5 50%, #eddde6 100%);
}

/* overlay ao hover */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 13, 20, 0.7) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.card:hover .card-overlay {
  opacity: 1;
}
.card-overlay-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-esgotado {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26, 13, 20, 0.75);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

.badge-novo {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--rose);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-marca {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card-nome {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.card-preco {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--rose);
  margin-top: 8px;
}

.card-footer {
  padding: 0 18px 18px;
}

.btn-add {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--blush);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--mid);
  font-family: "Outfit", sans-serif;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.btn-add::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rose);
  transform: translateY(100%);
  transition: transform 0.25s ease;
  z-index: 0;
}
.btn-add span {
  position: relative;
  z-index: 1;
  transition: color 0.25s;
}
.btn-add:hover::after {
  transform: translateY(0);
}
.btn-add:hover span {
  color: #fff;
}
.btn-add:hover {
  border-color: var(--rose);
}
.btn-add.adicionado {
  background: #d1fae5;
  border-color: #10b981;
}
.btn-add.adicionado span {
  color: #065f46;
}
.btn-add:disabled {
  opacity: 0.4;
}

/* ── EMPTY ── */
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 100px 20px;
  color: var(--muted);
}
.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* ── FAB ── */
.fab {
  z-index: 500;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--rose2));
  border: none;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 8px 28px rgba(196, 81, 122, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s;
  position: relative;
}

.fab-wrap {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
}

.fab:hover {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 12px 36px rgba(196, 81, 122, 0.55);
}
.fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--rose);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--rose);
  opacity: 0;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ── DRAWER ── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 13, 20, 0.5);
  z-index: 600;
  backdrop-filter: blur(4px);
}
.overlay.aberto {
  display: block;
}

.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  max-width: 420px;
  width: 100%;
  height: 100%;
  background: var(--card);
  z-index: 601;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -12px 0 60px rgba(26, 13, 20, 0.2);
}
.drawer.aberto {
  right: 0;
}

.drawer-head {
  padding: 28px 22px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-head-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
}
.btn-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--blush);
  font-size: 0.95rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: "Outfit", sans-serif;
}
.btn-close:hover {
  background: #fee2e2;
  color: #c0392b;
  border-color: #fca5a5;
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}
.drawer-empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.95rem;
}

.ditem {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.3s ease both;
}
.ditem:last-child {
  border-bottom: none;
}
.ditem-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--blush);
  flex-shrink: 0;
}
.ditem-ph {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f9e8ef, #eddde6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.ditem-info {
  flex: 1;
  min-width: 0;
}
.ditem-nome {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ditem-preco {
  font-size: 0.85rem;
  color: var(--rose);
  font-weight: 700;
  margin-top: 3px;
}
.ditem-qtd {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ditem-qtd button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--blush);
  font-size: 1rem;
  color: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: "Outfit", sans-serif;
}
.ditem-qtd button:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}
.ditem-qtd span {
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.drawer-foot {
  padding: 20px 22px;
  border-top: 1px solid var(--border);
  background: var(--blush);
}
.drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.drawer-total-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.drawer-total-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rose);
}
.obs {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.88rem;
  font-family: "Outfit", sans-serif;
  color: var(--dark);
  resize: none;
  height: 60px;
  outline: none;
  margin-bottom: 14px;
  background: #fff;
  transition: border-color 0.2s;
}
.obs:focus {
  border-color: var(--rose);
}

.btn-wpp {
  width: 100%;
  padding: 15px;
  background: var(--wpp);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn-wpp:hover:not(:disabled) {
  background: #1ebe5d;
  transform: translateY(-2px);
}
.btn-wpp:disabled {
  background: #ccc;
}

/* ── FOOTER ── */
.site-footer {
  text-align: center;
  padding: 28px;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .drawer {
    max-width: 100%;
  }
  #cursor,
  #cursor-ring {
    display: none;
  }
  body {
    cursor: auto;
  }
  a,
  button {
    cursor: pointer;
  }
}

/* ─────────────────────────────
   PERFORMANCE MOBILE / UX
───────────────────────────── */

body {
  -webkit-font-smoothing: antialiased;
}

/* evita lag no iPhone */
.drawer-items {
  -webkit-overflow-scrolling: touch;
}

/* melhora renderização */
.card,
.hero-search,
.drawer,
.fab {
  will-change: transform;
  transform: translateZ(0);
}

/* blur mais leve */
.hero-search {
  backdrop-filter: blur(8px);
}

/* MOBILE */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    /*padding: 72px 18px 42px;*/
    padding: 56px 18px 30px;
  }

  .hero-title {
    font-size: clamp(3rem, 14vw, 4.5rem);
    line-height: 0.95;
  }

  .hero-sub {
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 320px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;

    /* mais leve no celular */
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.12);
  }

  .hero-search button {
    width: 100%;
    border-radius: 0;
    padding: 15px;
  }

  .hero-scroll {
    display: none;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .drawer {
    max-width: 100%;
    width: 100%;
    height: 88%;
    top: auto;
    bottom: -100%;
    right: 0;
    border-radius: 24px 24px 0 0;
    transition: bottom 0.35s ease;
  }

  .drawer.aberto {
    bottom: 0;
    right: 0;
  }

  .fab-wrap {
    /*bottom: 12px;*/
    bottom: max(12px, env(safe-area-inset-bottom));
    right: 12px;
  }

  .fab {
    width: 54px;
    height: 54px;
    font-size: 1.2rem;
  }

  @media (max-width: 768px) {
    .card-body {
      padding: 14px;
    }

    .card-nome {
      font-size: 0.92rem;
      line-height: 1.25;
    }

    .card-preco-wrap {
      margin-top: 8px;
      gap: 2px;
    }

    .card-preco-antigo {
      font-size: 0.78rem;
      line-height: 1.2;
    }

    .card-preco-promo {
      font-size: 1.25rem;
      line-height: 1.15;
    }

    .card-preco-normal {
      font-size: 1.22rem;
    }

    .btn-add {
      font-size: 0.78rem;
      padding: 10px 8px;
      line-height: 1.2;
    }
  }
}

/* telas MUITO pequenas */
@media (max-width: 380px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* desativa hover pesado em touch */
@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: none;
  }

  .card:hover .card-img {
    transform: none;
  }

  .card:hover .card-overlay {
    opacity: 0;
  }

  .btn-add:hover::after {
    transform: translateY(100%);
  }

  .fab:hover {
    transform: none;
    box-shadow: 0 8px 28px rgba(196, 81, 122, 0.45);
  }

  .chip:hover::before {
    transform: scaleX(0);
  }

  .chip:hover {
    color: var(--muted);
    border-color: var(--border);
  }
}

.card-preco-wrap {
  margin-top: 8px;
}

.card-preco-antigo {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
}

.card-preco-promo {
  font-size: 1.45rem;
  font-weight: 800;
  color: #e11d48;
}

.card-preco-normal {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--rose);
}

/* ─────────────────────────────
   AJUSTE FILTROS MOBILE
───────────────────────────── */
@media (max-width: 768px) {
  .section-head {
    align-items: flex-start;
    gap: 20px;
  }

  .filtros {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .filtros::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 0.78rem;
  }
}

/* ─────────────────────────────
         MODAL DE PRODUTO
      ───────────────────────────── */
.produto-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(26, 13, 20, 0.58);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.produto-modal-overlay.aberto {
  display: flex;
}

.produto-modal {
  width: 100%;
  max-width: 980px;
  max-height: 92vh;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  position: relative;
  box-shadow: 0 30px 90px rgba(26, 13, 20, 0.32);
  animation: produtoModalIn 0.25s ease;
}

@keyframes produtoModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.produto-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(237, 221, 230, 0.9);
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose2);
  font-size: 1rem;
  font-weight: 900;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s,
    background 0.2s;
}

.produto-modal-close:hover {
  transform: scale(1.06);
  background: #fee2e2;
}

.produto-modal-img-wrap {
  min-height: 520px;
  background: linear-gradient(135deg, #f9e8ef, #eddde6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.produto-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  background: #fff;
}

.produto-modal-placeholder {
  font-size: 5rem;
}

.produto-modal-info {
  padding: 42px 34px 34px;
  display: flex;
  flex-direction: column;
  min-width: 0;

  /* Correção do conteúdo cortado no desktop */
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.produto-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.produto-modal-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.produto-modal-badge.promo {
  background: #e11d48;
  color: #fff;
}

.produto-modal-badge.esgotado {
  background: #1a0d14;
  color: rgba(255, 255, 255, 0.9);
}

.produto-modal-badge.pronta {
  background: #16a34a;
  color: #fff;
}

.produto-modal-badge.encomenda {
  background: #d97706;
  color: #fff;
}

.produto-modal-badge.indisponivel {
  background: #6b7280;
  color: #fff;
}

.produto-modal-marca {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.produto-modal-nome {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 14px;
}

.produto-modal-preco {
  margin-bottom: 16px;
}

.produto-modal-preco .preco-antigo {
  display: block;
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.produto-modal-preco .preco-promo {
  display: block;
  color: #e11d48;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.08;
}

.produto-modal-preco .preco-normal {
  display: block;
  color: var(--rose);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.08;
}

.produto-modal-desc {
  color: #5b4a55;
  font-size: 0.95rem;
  line-height: 1.9;
  margin: 22px 0;
  white-space: pre-line;
}

.produto-modal-desc strong {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  color: #222;
  font-size: 1rem;
  font-weight: 700;
}

.produto-modal-estoque {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 22px;
}

.produto-modal-add {
  margin-top: auto;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--rose), var(--rose2));
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  font-family: "Outfit", sans-serif;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    opacity 0.2s;
}

.produto-modal-add:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(196, 81, 122, 0.28);
}

.produto-modal-add.adicionado {
  background: #10b981;
  color: #fff;
}

.produto-modal-add:disabled {
  opacity: 0.45;
}

.card {
  cursor: none;
}

@media (max-width: 768px) {
  .produto-modal {
    max-width: 430px;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .produto-modal-img-wrap {
    min-height: 260px;
  }

  .produto-modal-info {
    padding: 26px 22px 24px;
  }

  .produto-modal-nome {
    font-size: 1.32rem;
  }

  .produto-modal-preco .preco-promo,
  .produto-modal-preco .preco-normal {
    font-size: 1.55rem;
  }
}
.produto-modal {
  animation: zoomModal 0.25s ease;
}

@keyframes zoomModal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.badge-entrega {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  color: #fff;
}

.badge-entrega.pronta {
  background: #16a34a;
}

.badge-entrega.encomenda {
  background: #d97706;
}

.badge-entrega.indisponivel {
  background: #6b7280;
}

/* ===== BADGES SUPERIORES DO CARD ===== */

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 20;
  flex-wrap: nowrap;
  max-width: calc(100% - 24px);
  pointer-events: none;
}

.card-badges .badge-promo,
.card-badges .badge-entrega {
  position: static;
  left: auto;
  top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: max-content;
  white-space: nowrap;
  color: #fff;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: 0 4px 10px rgba(26, 13, 20, 0.08);
}

.card-badges .badge-promo {
  background: #e11d48;
}

.card-badges .badge-entrega.pronta {
  background: #16a34a;
}

.card-badges .badge-entrega.encomenda {
  background: #d97706;
}

.card-badges .badge-entrega.indisponivel {
  background: #6b7280;
}

@media (max-width: 768px) {
  .card-badges {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 4px;
    max-width: calc(100% - 20px);
  }

  .card-badges .badge-promo,
  .card-badges .badge-entrega {
    padding: 4px 7px;
    font-size: 0.56rem;
  }
}

.chip.ativo,
.chip.ativo span {
  color: #fff !important;
}

.chip.ativo {
  background: var(--rose);
  border-color: var(--rose);
  box-shadow: 0 4px 14px rgba(196, 81, 122, 0.25);
}

/* ─────────────────────────────
         MELHORIAS E-COMMERCE: FILTROS, DESCONTO, CARRINHO E MODAL
      ───────────────────────────── */
.badge-desconto {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.produto-modal-preco .preco-desconto {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: 0.78rem;
  font-weight: 900;
}

.produto-modal-resumo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 6px;
}

.produto-modal-resumo-card {
  background: var(--blush);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}

.produto-modal-resumo-label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.produto-modal-resumo-value {
  display: block;
  color: var(--dark);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.produto-modal-desc {
  background: #fffafa;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.cart-summary-bar {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(120%);
  width: min(92vw, 420px);
  background: linear-gradient(135deg, var(--rose), var(--rose2));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 14px 11px 18px;
  box-shadow: 0 12px 34px rgba(196, 81, 122, 0.38);
  z-index: 550;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.cart-summary-bar.visivel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cart-summary-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.cart-summary-title {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.88;
}

.cart-summary-total {
  font-size: 1rem;
  font-weight: 900;
}

.cart-summary-action {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .section-head {
    position: sticky;
    top: 0;
    z-index: 120;
    background: rgba(253, 245, 248, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    margin: 0 -18px 22px;
    padding: 12px 18px 10px;
  }

  .section-head > div:first-child {
    display: none;
  }

  .filtros {
    padding-bottom: 0;
  }

  .chip.ativo {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(196, 81, 122, 0.28);
  }

  .produto-modal-overlay {
    padding: 10px;
    align-items: flex-end;
  }

  .produto-modal {
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
  }

  .produto-modal-resumo {
    grid-template-columns: 1fr;
  }

  .fab-wrap {
    display: none;
  }
}

/* ─────────────────────────────
         FAVORITOS + BARRA INFERIOR V3
      ───────────────────────────── */
.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 25;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.92);
  color: #be123c;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 16px rgba(26, 13, 20, 0.12);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.favorite-btn:hover {
  transform: scale(1.08);
}

.favorite-btn.ativo {
  background: #e11d48;
  color: #fff;
  animation: favPop 0.26s ease;
}

@keyframes favPop {
  0% {
    transform: scale(0.85);
  }
  60% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

.produto-modal-favorito {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  border: 1px solid var(--border);
  background: var(--blush);
  color: var(--rose2);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  margin: 0 0 14px;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
}

.produto-modal-favorito.ativo {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.bottom-nav-mobile {
  display: none;
}

@media (max-width: 768px) {
  .favorite-btn {
    width: 30px;
    height: 30px;
    top: 8px;
    right: 8px;
    font-size: 0.92rem;
  }

  .card-badges {
    right: 46px;
    max-width: calc(100% - 58px);
  }

  .bottom-nav-mobile {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(94vw, 430px);
    z-index: 560;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(237, 221, 230, 0.95);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 36px rgba(26, 13, 20, 0.18);
  }

  .bottom-nav-mobile button {
    border: none;
    background: transparent;
    border-radius: 16px;
    padding: 8px 6px;
    color: var(--muted);
    font-family: "Outfit", sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .bottom-nav-mobile button.ativo {
    background: var(--blush);
    color: var(--rose2);
  }

  .bottom-nav-mobile .nav-ico {
    font-size: 1.12rem;
    line-height: 1;
  }

  .cart-summary-bar.visivel {
    bottom: max(82px, env(safe-area-inset-bottom));
  }

  .main {
    padding-bottom: 170px;
  }
}

/* Modal um pouco menor no desktop */
@media (min-width: 769px) {
  .produto-modal {
    max-width: 900px;
    max-height: 86vh;
  }

  .produto-modal-img-wrap {
    min-height: 440px;
  }

  .produto-modal-info {
    max-height: 86vh;
    padding: 32px 28px 28px;
  }

  .produto-modal-nome {
    font-size: 1.5rem;
  }

  .produto-modal-preco .preco-promo,
  .produto-modal-preco .preco-normal {
    font-size: 1.9rem;
  }

  .produto-modal-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 16px 0;
  }
}
