:root {
  --bg-cream: #faf7f2;
  --bubble-pink: #f4789b;
  --bubble-pink-hover: #e06588;
  --bubble-pink-soft: #fdeaf0;
  --deep-cherry: #b81b37;
  --cherry-tag: #ff334b;
  --ink: #2b1f23;
  --muted: #736769;
  --line: #ecdcd0;
  --card-bg: #ffffff;
  --whatsapp-green: #00a884;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

/* CABEÇALHO COM AÇÕES E LUPA */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-link {
  text-decoration: none;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--deep-cherry);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-sub {
  color: var(--bubble-pink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-toggle-btn {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--deep-cherry);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-toggle-btn:hover,
.search-toggle-btn.is-active {
  background: var(--bubble-pink-soft);
  border-color: var(--bubble-pink);
}

/* Barra de Pesquisa Expansível */
.header-search-bar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  animation: slideDownSearch 0.2s ease;
}

@keyframes slideDownSearch {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-input-wrap {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: var(--bg-cream);
  border: 1.5px solid var(--line);
  border-radius: 25px;
  padding: 6px 14px;
  gap: 8px;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  font-family: inherit;
}

.clear-search-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  display: none;
}

.clear-search-btn.is-visible {
  display: block;
}

.no-results-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
}

.no-results-msg strong {
  display: block;
  font-size: 1.1rem;
  color: var(--deep-cherry);
  margin-bottom: 6px;
}

.cart-button {
  background: var(--deep-cherry);
  border: none;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(184, 27, 55, 0.25);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.15s;
}

.cart-button:active {
  transform: scale(0.96);
}

.cart-button b {
  background: white;
  border-radius: 50%;
  color: var(--deep-cherry);
  padding: 2px 7px;
  font-size: 0.75rem;
}

/* HERO COMPACTO */
.hero-compact {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 16px 16px;
  text-align: center;
}

.eyebrow {
  color: var(--deep-cherry);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.hero-compact h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-compact h1 em {
  color: var(--deep-cherry);
  font-style: normal;
}

.hero-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.button-primary {
  background: var(--deep-cherry);
  border-radius: 22px;
  color: white;
  display: inline-block;
  font-weight: 700;
  padding: 9px 22px;
  text-decoration: none;
  font-size: 0.88rem;
  box-shadow: 0 4px 12px rgba(184, 27, 55, 0.2);
}

/* SEÇÕES */
.featured-section,
.catalog-section,
.steps-section,
.quote-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 16px;
}

.section-header-clean {
  text-align: center;
  margin-bottom: 20px;
}

.section-header-clean h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* CARROSSEL DE MAIS VENDIDOS */
.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 10px 0;
  touch-action: pan-y;
  cursor: grab;
}

.carousel-container:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-track .modern-product-card {
  flex: 0 0 280px;
}

/* GRADE 3 COLUNAS CLEAN */
.product-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px;
  width: 100%;
}

/* CARDS MODERNOS COM ZOOM E PREÇO ÚNICO */
.modern-product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modern-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.card-img-container {
  width: 100%;
  height: 190px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-img-container img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.35s ease;
  will-change: transform;
}

/* ZOOM SUAVE AO PASSAR O MOUSE */
.modern-product-card:hover .card-img-container img {
  transform: scale(1.08);
}

.card-details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  gap: 8px;
  background: #ffffff;
  border-top: 1px solid #f3f0ea;
}

.card-title-lbl {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2b1f23;
  line-height: 1.25;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ETIQUETA VERMELHA DE PREÇO (MOSTRADO UMA ÚNICA VEZ) */
.card-price-badge {
  background: var(--cherry-tag);
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(255, 51, 75, 0.3);
}

/* ANIMAÇÃO DE SUBIDA (REVEAL) NOS DESTAQUES */
.scroll-reveal-section .modern-product-card {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal-section.is-revealed .modern-product-card {
  opacity: 1;
  transform: translateY(0);
}

/* SEÇÃO SOBRE COM FUNDO TEMÁTICO E LOGO ENQUADRADA */
.about-hero-section {
  background: #fcecef;
  border-top: 1px solid #f7d5dc;
  border-bottom: 1px solid #f7d5dc;
  padding: 48px 16px;
  margin: 30px 0;
}

.about-container {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
  justify-content: space-between;
}

.about-logo-frame {
  flex: 0 0 380px;
  background: #ffffff;
  padding: 16px;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(184, 27, 55, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo-frame img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  display: block;
}

.about-text-content {
  flex: 1;
}

.about-text-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--deep-cherry);
  margin-bottom: 10px;
}

.about-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deep-cherry);
  margin-bottom: 12px;
}

.about-text-content p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.about-hours {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--bubble-pink-hover);
  font-size: 0.82rem;
}

/* BOTÃO FLUTUANTE DO WHATSAPP */
.whatsapp-float-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--whatsapp-green);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 168, 132, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 168, 132, 0.6);
}

/* MODAL DE TELA CHEIA */
.modal-overlay {
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  inset: 0;
  z-index: 200;
  backdrop-filter: blur(3px);
}

.product-fullscreen-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: white;
  border-radius: 16px;
  width: 92%;
  max-width: 480px;
  max-height: 90vh;
  z-index: 210;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
}

.product-fullscreen-modal.is-open {
  display: flex;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  color: var(--deep-cherry);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  z-index: 20;
}

.modal-scroll-area {
  overflow-y: auto;
  padding: 16px;
}

.modal-gallery {
  position: relative;
  background: #ffffff;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  touch-action: pan-y;
}

.modal-gallery img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  color: var(--deep-cherry);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-arrow.prev { left: 8px; }
.gallery-arrow.next { right: 8px; }

.gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.g-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
}

.g-dot.active {
  background: var(--deep-cherry);
  transform: scale(1.3);
}

.modal-product-title {
  color: var(--deep-cherry);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.modal-product-desc {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.modal-form-group {
  margin-bottom: 10px;
}

.modal-form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.modal-form-group input,
.modal-form-group select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-cream);
  font-size: 0.88rem;
}

.modal-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 8px;
}

.modal-action-bar .price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--deep-cherry);
}

.qty-picker {
  display: flex;
  align-items: center;
  background: var(--bubble-pink-soft);
  border: 1.5px solid var(--bubble-pink);
  border-radius: 20px;
  overflow: hidden;
}

.qty-picker button {
  background: none;
  border: none;
  color: var(--deep-cherry);
  font-size: 16px;
  font-weight: bold;
  width: 30px;
  height: 32px;
  cursor: pointer;
}

.qty-picker input {
  width: 32px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  color: var(--deep-cherry);
}

.btn-add-cart-large {
  background: var(--deep-cherry);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

/* ETAPAS, SOBRE, CONTATO */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.step-card {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.step-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--deep-cherry);
}

.quote-box {
  background: linear-gradient(135deg, #fff7eb 0%, #fdeff3 100%);
  border: 2px dashed var(--bubble-pink);
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
}

.quote-btn {
  background: var(--deep-cherry);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: 20px;
  padding: 9px 20px;
  display: inline-block;
  margin-top: 10px;
}

.site-footer {
  background: #2b1f23;
  color: #eeddd8;
  padding: 26px 16px;
  text-align: center;
  font-size: 0.82rem;
}

/* CARRINHO */
.cart-backdrop {
  background: rgba(0,0,0,0.5);
  inset: 0;
  position: fixed;
  z-index: 290;
}

.cart-drawer {
  background: white;
  bottom: 0;
  box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  max-width: 420px;
  position: fixed;
  right: -100%;
  top: 0;
  transition: right 0.3s ease;
  width: 100%;
  z-index: 300;
}

.cart-drawer.is-open { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.close-button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.cart-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.cart-item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  align-items: center;
}

.cart-item img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item-info { flex-grow: 1; }
.cart-item-info strong { font-size: 0.82rem; display: block; }
.cart-item-info small { font-size: 0.72rem; color: var(--muted); }

.cart-checkout-fields {
  background: #fffdf7;
  border-top: 1px solid var(--line);
  padding: 10px 16px;
}

.cart-checkout-fields .field-group { margin-bottom: 6px; }
.cart-checkout-fields label { display: block; font-size: 0.72rem; font-weight: 700; margin-bottom: 2px; }
.cart-checkout-fields input,
.cart-checkout-fields select {
  width: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.82rem;
}

.cart-footer {
  padding: 12px 16px;
  background: #fff9ea;
  border-top: 1px solid var(--line);
}

.subtotal-row, .fee-row, .total-final-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 3px;
}

.total-final-row {
  font-size: 1rem;
  font-weight: bold;
  border-top: 1px solid var(--line);
  padding-top: 5px;
  margin-top: 3px;
}

.minimum-order {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.minimum-order.is-pending { color: #a65b4f; }
.minimum-order.is-met { color: #2c8060; }

.whatsapp-button {
  background: var(--whatsapp-green);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  font-weight: bold;
  cursor: pointer;
}

.whatsapp-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.toast {
  background: rgba(43, 31, 35, 0.95);
  border-radius: 8px;
  bottom: 20px;
  color: white;
  font-size: 0.82rem;
  left: 50%;
  opacity: 0;
  padding: 8px 16px;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%) translateY(10px);
  transition: all 0.2s ease;
  z-index: 350;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* RESPONSIVIDADE MOBILE */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .about-logo-frame {
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 600px) {
  .site-header { padding: 8px 12px; }
  .cart-text-lbl { display: none; }
  .hero-compact { padding: 16px 12px 12px; }
  .hero-compact h1 { font-size: 1.65rem; }
  .carousel-track .modern-product-card { flex: 0 0 72vw; }
  
  .product-grid-three {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .card-img-container { height: 110px !important; }
  .card-details-row { padding: 6px 8px !important; }
  .card-title-lbl { font-size: 0.72rem !important; }
  .card-price-badge { font-size: 0.7rem !important; padding: 3px 6px !important; }
  
  .whatsapp-float-btn {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float-btn svg {
    width: 28px;
    height: 28px;
  }
}