:root {
  --cream: #FBF6F2;
  --card: #FFFFFF;
  --plum: #6E3A52;
  --plum-dark: #512539;
  --rose: #C98B9E;
  --rose-soft: #F0DCE2;
  --ink: #2B2024;
  --muted: #8A7A80;
  --line: #ECE2DD;
  --wa: #25D366;
  --wa-dark: #1da851;
  --shadow: 0 10px 30px rgba(110, 58, 82, 0.10);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 246, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--plum);
  line-height: 1;
}
.brand-tagline {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.4px;
  margin-top: 2px;
}
.cart-toggle {
  position: relative;
  background: var(--plum);
  color: #fff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.cart-toggle:hover { background: var(--plum-dark); transform: translateY(-1px); }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--rose);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--cream);
}

/* Hero */
.hero {
  background:
    radial-gradient(120% 90% at 90% -10%, var(--rose-soft) 0%, transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 20px 40px;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rose);
  margin-bottom: 10px;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  font-weight: 700;
  color: var(--plum-dark);
  line-height: 1.04;
  margin-bottom: 12px;
}
.hero-sub {
  max-width: 520px;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Filters */
.filters {
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 0 20px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--rose); }
.filter-chip.active {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
}

/* Grid */
.grid {
  max-width: 1080px;
  margin: 22px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(110, 58, 82, 0.16);
}
.card-img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--rose-soft);
}
.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--plum);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.card-media { position: relative; }
.card-body {
  padding: 14px 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rose);
  font-weight: 600;
}
.card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.card-desc {
  font-size: 0.8rem;
  color: var(--muted);
  flex: 1;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.card-price {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--plum-dark);
}
.add-btn {
  background: var(--rose-soft);
  color: var(--plum-dark);
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.add-btn:hover { background: var(--rose); color: #fff; }
.add-btn.added { background: var(--plum); color: #fff; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 36px 20px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer p:first-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--plum);
  margin-bottom: 6px;
}
.footer-note { font-size: 0.8rem; }

/* Cart drawer */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 32, 36, 0.45);
  z-index: 40;
  animation: fade 0.2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(390px, 90vw);
  background: var(--cream);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.12);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--plum);
  font-weight: 700;
}
.cart-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item-img {
  width: 56px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--rose-soft);
  flex: 0 0 auto;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.2;
}
.cart-item-price { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.qty button {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--plum);
}
.qty span { font-size: 0.86rem; min-width: 18px; text-align: center; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  text-decoration: underline;
}
.cart-foot {
  border-top: 1px solid var(--line);
  padding: 18px 20px 24px;
  background: #fff;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--ink);
}
#cartTotal { color: var(--plum-dark); }
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px;
  border-radius: 12px;
  transition: background 0.18s ease;
}
.whatsapp-btn:hover { background: var(--wa-dark); }
.whatsapp-btn.disabled {
  background: #cdbfc4;
  pointer-events: none;
}
.cart-empty-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 12px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--plum-dark);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.86rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 11px 11px 13px; }
  .card-name { font-size: 1.05rem; }
  .add-btn { padding: 7px 10px; font-size: 0.74rem; }
  .hero-inner { padding: 36px 20px 30px; }
}
