/* ================================================
   INSPIRE — Catálogo Mães 2026
   Design: Warm Botanica — earthy terracotta + cream
   Fonts: Cormorant Garamond + DM Sans
   ================================================ */

:root {
  --cream:       #FBF5EC;
  --cream-dark:  #F3E8D8;
  --terracotta:  #C4714A;
  --terra-light: #D9967A;
  --terra-dark:  #9C4E2E;
  --sage:        #7A8C6E;
  --sage-light:  #A8B89A;
  --gold:        #C9A96E;
  --text:        #3D2B1F;
  --text-soft:   #7A5F50;
  --white:       #FFFFFF;
  --shadow:      0 4px 24px rgba(61,43,31,0.10);
  --shadow-lg:   0 12px 40px rgba(61,43,31,0.18);
  --radius:      16px;
  --radius-sm:   8px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ——— RESET & BASE ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ——— TYPOGRAPHY ——— */
.cormorant { font-family: 'Cormorant Garamond', serif; }

/* ——— HEADER ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--terracotta);
  overflow: hidden;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.brand { display: flex; flex-direction: column; line-height: 1; }

.brand-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-collection {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  margin-top: 2px;
}

.btn-whatsapp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.18);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.btn-whatsapp-header:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

/* Petal decorations on header */
.header-petal {
  position: absolute;
  border-radius: 50% 50% 50% 0;
  opacity: 0.12;
  pointer-events: none;
}
.header-petal-1 {
  width: 80px; height: 80px;
  background: var(--white);
  top: -30px; right: 220px;
  transform: rotate(25deg);
}
.header-petal-2 {
  width: 50px; height: 50px;
  background: var(--gold);
  bottom: -15px; right: 160px;
  transform: rotate(-10deg);
  opacity: 0.25;
}

/* ——— HERO ——— */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--cream) 55%, var(--cream-dark) 100%);
  padding: 70px 20px 60px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.8s ease both;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(196,113,74,0.1);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-title em {
  color: var(--terracotta);
  font-style: italic;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 28px;
}

.btn-primary {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(196,113,74,0.35);
}
.btn-primary:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(196,113,74,0.45);
}

/* Floral decorations */
.hero-florals { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.floral {
  position: absolute;
  border-radius: 50% 30% 50% 30%;
  opacity: 0.12;
}
.f1 {
  width: 260px; height: 260px;
  background: radial-gradient(circle at 40% 40%, var(--terracotta), var(--gold));
  top: -60px; right: -60px;
  transform: rotate(15deg);
}
.f2 {
  width: 160px; height: 160px;
  background: var(--sage);
  bottom: -40px; left: -30px;
  transform: rotate(-20deg);
  border-radius: 40% 60% 40% 60%;
}
.f3 {
  width: 80px; height: 80px;
  background: var(--gold);
  top: 50%; left: 10%;
  opacity: 0.15;
  border-radius: 50%;
}

/* ——— WHOLESALE BANNER ——— */
.wholesale-banner {
  background: var(--sage);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 13px;
  justify-content: center;
  text-align: center;
}
.wholesale-banner svg { flex-shrink: 0; opacity: 0.85; }

/* ——— SECTION TITLE ——— */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 400;
  color: var(--text);
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--terracotta);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ——— CATALOG SECTION ——— */
.catalog-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

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

/* ——— PRODUCT CARD ——— */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  animation: fadeUp 0.6s ease both;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Staggered animation */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.10s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.20s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.30s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }

.card-image-wrap {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card-image-wrap:hover img { transform: scale(1.05); }

.card-zoom-hint {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(255,255,255,0.85);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-soft);
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.card-image-wrap:hover .card-zoom-hint { opacity: 1; }

.card-badge-kit {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

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

.card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.card-detail {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.6;
  flex: 1;
}

.card-prices {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.price-retail {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
}

.price-wholesale-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-wholesale-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
}

.price-wholesale {
  font-size: 15px;
  font-weight: 600;
  color: var(--sage);
}

/* Quantity control */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--cream-dark);
  border-radius: 100px;
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  font-weight: 300;
}
.qty-btn:hover { background: var(--cream-dark); }
.qty-value {
  font-size: 14px;
  font-weight: 600;
  min-width: 32px;
  text-align: center;
  color: var(--text);
}

.btn-add {
  width: 100%;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  margin-top: auto;
}
.btn-add:hover {
  background: var(--terra-dark);
  transform: translateY(-1px);
}
.btn-add:active { transform: scale(0.97); }
.btn-add.added {
  background: var(--sage);
}

.card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

/* ——— CART PANEL ——— */
.cart-panel {
  position: fixed;
  top: 0; right: -420px;
  width: min(420px, 100vw);
  height: 100dvh;
  background: var(--white);
  box-shadow: -8px 0 40px rgba(61,43,31,0.15);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.cart-panel.open { right: 0; }

.cart-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--cream-dark);
  background: var(--cream);
}
.cart-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}
.cart-close {
  background: none; border: none;
  font-size: 18px; cursor: pointer;
  color: var(--text-soft);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}
.cart-close:hover { background: var(--cream-dark); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty {
  text-align: center;
  color: var(--text-soft);
  font-size: 14px;
  margin-top: 40px;
  font-style: italic;
}

/* Cart item */
.cart-item {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeUp 0.3s ease;
  position: relative;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}

.cart-item-remove {
  background: none; border: none;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 14px;
  padding: 2px;
  transition: color var(--transition);
  flex-shrink: 0;
}
.cart-item-remove:hover { color: var(--terra-dark); }

.cart-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cart-item-qty-ctrl {
  display: flex; align-items: center; gap: 6px;
}
.cart-item-qty-btn {
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: var(--terracotta);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  font-weight: 400;
}
.cart-item-qty-btn:hover { background: var(--cream-dark); }
.cart-item-qty-val {
  font-weight: 700;
  font-size: 15px;
  min-width: 24px;
  text-align: center;
}

.cart-item-price {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-align: right;
}

.badge-wholesale {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(122,140,110,0.15);
  color: var(--sage);
  border: 1px solid rgba(122,140,110,0.3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
}

/* ——— CART FOOTER ——— */
.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--cream-dark);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}
.cart-total-row strong { font-size: 22px; color: var(--terracotta); font-family: 'Cormorant Garamond', serif; font-weight: 700; }

.btn-whatsapp-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}
.btn-whatsapp-cart:hover {
  background: #1dbb58;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
}

.cart-note {
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.5;
}

/* ——— OVERLAY ——— */
.overlay {
  position: fixed; inset: 0;
  background: rgba(61,43,31,0.45);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.overlay.visible { opacity: 1; pointer-events: all; }

/* ——— FAB CART BUTTON ——— */
.fab-cart {
  position: fixed;
  bottom: 28px; right: 24px;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(196,113,74,0.5);
  z-index: 150;
  transition: var(--transition);
  position: fixed;
}
.fab-cart:hover { background: var(--terra-dark); transform: scale(1.08); }
.fab-cart:active { transform: scale(0.95); }

.fab-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--sage);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
  transition: transform 0.2s ease;
}
.fab-badge.bump { transform: scale(1.4); }

/* ——— IMAGE MODAL ——— */
.img-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}
.img-modal.open { opacity: 1; pointer-events: all; }

.img-modal img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
  animation: scaleIn 0.3s ease;
}

.img-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 22px;
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  backdrop-filter: blur(6px);
}
.img-modal-close:hover { background: rgba(255,255,255,0.25); }

/* ——— TOAST ——— */
.toast {
  position: fixed;
  bottom: 100px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  white-space: nowrap;
  z-index: 400;
  box-shadow: var(--shadow-lg);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ——— FOOTER ——— */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 28px 20px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer p:first-child { color: rgba(255,255,255,0.85); font-weight: 500; }
.footer-sub { font-style: italic; }

/* ——— ANIMATIONS ——— */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { transform: scale(0.9); }
  to   { transform: scale(1); }
}

/* ——— SCROLLBAR ——— */
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-track { background: transparent; }
.cart-items::-webkit-scrollbar-thumb { background: var(--cream-dark); border-radius: 4px; }



/* ——— RESPONSIVE MOBILE (substitui as regras anteriores) ——— */
@media (max-width: 640px) {
  .hero { padding: 50px 20px 40px; min-height: auto; }
  .hero-title { font-size: 44px; }
  .section-title { font-size: 30px; }
  .catalog-section { padding: 36px 14px 80px; }

  /* 1 coluna no mobile — card na horizontal para melhor uso do espaço */
  .products-grid { grid-template-columns: 1fr !important; gap: 16px; }

  .product-card {
    flex-direction: row;
    min-height: 160px;
  }

  .card-image-wrap {
    width: 140px;
    min-width: 140px;
    aspect-ratio: auto;
    border-radius: var(--radius) 0 0 var(--radius);
  }

  .card-body {
    padding: 14px;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }

  .card-name { font-size: 16px; }
  .price-retail { font-size: 17px; }
  .card-detail { font-size: 12px; }

  /* Controles empilhados verticalmente */
  .card-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .qty-control { justify-content: center; }
  .btn-add { width: 100%; justify-content: center; }

  .btn-whatsapp-header span { display: none; }
}