:root {
  --rose: #a9765f;
  --rose-dark: #7a5245;
  --cream: #faf6f1;
  --line: #e8ddd3;
  --ink: #3a2c25;
  --muted: #8a7469;
  --red: #c0473d;
  --whatsapp: #25D366;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--ink);
}

.hidden { display: none !important; }

.site-header {
  background: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .logo { height: 76px; }
.header-icons { display: flex; align-items: center; gap: 10px; font-size: 17px; flex-shrink: 0; }
.header-icons button { background: none; border: none; font-size: 18px; cursor: pointer; }
.cart-icon { position: relative; }
.cart-badge {
  position: absolute; top: -8px; right: -10px;
  background: var(--red); color: #fff; font-size: 10px;
  border-radius: 50%; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
}

.search-bar { padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.search-bar input {
  width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px;
}

.hero {
  background: linear-gradient(135deg, #f3e4da, var(--cream));
  padding: 34px 20px; text-align: center;
}
.hero h1 { font-size: 24px; margin: 0 0 6px; color: var(--rose-dark); font-weight: 400; }
.hero p { margin: 0; font-size: 13px; color: var(--muted); }

.chips {
  display: flex; gap: 8px; padding: 14px 20px;
  overflow-x: auto; background: #fff; border-bottom: 1px solid var(--line);
}
.chip {
  font-size: 12px; padding: 7px 14px; border-radius: 20px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  white-space: nowrap; cursor: pointer;
}
.chip.active { background: var(--rose); color: #fff; border-color: var(--rose); }

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  padding: 18px 20px 100px; max-width: 960px; margin: 0 auto;
}
.loading-state, .empty-state { grid-column: 1 / -1; text-align: center; color: var(--muted); }

.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; position: relative; display: flex; flex-direction: column;
}
.product-card .photo-wrap { position: relative; }
.product-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.promo-badge {
  position: absolute; top: 6px; left: 6px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: bold; padding: 3px 7px; border-radius: 5px;
}
.card-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; }
.card-body .name { font-size: 12.5px; margin: 0 0 4px; flex: 1; }
.price-old { font-size: 11px; color: #a99a90; text-decoration: line-through; margin: 0; }
.price-now { font-size: 14px; color: var(--rose-dark); font-weight: bold; margin: 0 0 8px; }
.price-now.promo { color: var(--red); }
.add-btn {
  width: 100%; background: var(--cream); border: 1px solid var(--rose);
  color: var(--rose-dark); font-size: 11.5px; padding: 6px 0; border-radius: 6px; cursor: pointer;
}

.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 460px; margin: 0 auto;
  background: var(--rose-dark); color: #fff; border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 20;
}
.cart-summary { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.coupon-row { display: flex; gap: 6px; margin: 8px 0; }
.coupon-row input {
  flex: 1; padding: 8px 10px; border: 1px solid rgba(255,255,255,.4); border-radius: 7px;
  font-size: 12px; text-transform: uppercase; background: rgba(255,255,255,.1); color: #fff;
}
.coupon-row input::placeholder { color: rgba(255,255,255,.7); }
.coupon-row button {
  background: #fff; color: var(--rose-dark); border: none; padding: 0 14px;
  border-radius: 7px; font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.coupon-msg { font-size: 11px; margin: 0 0 8px; min-height: 14px; }
.coupon-msg.error { color: #ffb4ab; }
.coupon-msg.success { color: #b7f2cd; }
.wa-checkout {
  width: 100%; background: var(--whatsapp); color: #fff; border: none;
  padding: 11px; border-radius: 8px; font-size: 13px; font-weight: bold; cursor: pointer;
}

.wa-fab {
  position: fixed; right: 16px; bottom: 16px; background: var(--whatsapp); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 22px; text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,.2); z-index: 20; transition: bottom .2s;
}
.wa-fab.raised { bottom: 190px; }

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
