:root {
  --brown: #5b3a1e;
  --brown-dark: #3e2612;
  --cream: #fff8ef;
  --beige: #f5e6d0;
  --accent: #d9822b;
  --accent-dark: #b86a1d;
  --text: #3a2a1d;
  --muted: #7a6656;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(91, 58, 30, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: "Poppins", system-ui, sans-serif; background: var(--cream); color: var(--text); line-height: 1.6; }
h1, h2, h3, .logo { font-family: "Playfair Display", Georgia, serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
[hidden] { display: none !important; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 6%; background: rgba(255, 248, 239, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige);
}
.logo { font-size: 1.4rem; font-weight: 700; color: var(--brown); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.cart-btn { position: relative; font-size: 1.3rem; padding: 6px 10px; border-radius: 999px; background: var(--beige); }
.cart-count {
  position: absolute; top: -6px; right: -6px; background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 600; min-width: 20px; height: 20px; border-radius: 10px;
  display: grid; place-items: center; padding: 0 5px;
}
.menu-btn { display: none; font-size: 1.5rem; }

/* Buttons */
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 600; transition: 0.2s; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.btn-outline { border: 2px solid var(--brown); color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: #fff; }
.btn-light { background: #fff; color: var(--brown); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; }
.btn.sm { padding: 8px 18px; font-size: 0.9rem; }
.btn.full { width: 100%; }
.icon-btn { font-size: 1.2rem; padding: 4px 8px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 70px 6% 60px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.5px; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; color: var(--brown-dark); margin-bottom: 18px; }
.hero h1 em { color: var(--accent); }
.hero p { color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin: 28px 0; flex-wrap: wrap; }
.hero-badges { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.9rem; color: var(--brown); }
.hero-art { display: grid; place-items: center; }
.plate {
  position: relative; width: min(380px, 80vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--beige) 70%); box-shadow: var(--shadow), inset 0 0 0 14px #fff;
}
.plate span { position: absolute; font-size: 4.2rem; animation: float 4s ease-in-out infinite; }
.plate span:nth-child(1) { top: 18%; left: 20%; font-size: 5.5rem; }
.plate span:nth-child(2) { top: 15%; right: 18%; animation-delay: 0.6s; }
.plate span:nth-child(3) { bottom: 18%; left: 22%; animation-delay: 1.2s; }
.plate span:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 1.8s; }
.plate span:nth-child(5) { top: 44%; left: 44%; font-size: 2.6rem; animation-delay: 2.4s; }
@keyframes float { 50% { transform: translateY(-10px) rotate(6deg); } }

/* Sections */
.section { padding: 70px 6%; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 2.2rem; color: var(--brown-dark); }
.section-head p { color: var(--muted); }

/* Toolbar */
.toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 8px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--beige); font-weight: 500; }
.chip.active, .chip:hover { background: var(--brown); color: #fff; border-color: var(--brown); }
.toolbar-right { display: flex; gap: 10px; flex-wrap: wrap; }
input, select, textarea {
  font: inherit; padding: 10px 14px; border-radius: 12px; border: 1px solid #e3d3bd; background: #fff; color: var(--text); width: 100%;
}
.toolbar-right input { width: 240px; }
.toolbar-right select { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.2s; }
.card:hover { transform: translateY(-4px); }
.card-img { position: relative; height: 170px; display: grid; place-items: center; font-size: 4.5rem; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--brown); color: #fff; font-style: normal; font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge.new { background: #2e8b57; }
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.15rem; color: var(--brown-dark); }
.desc { font-size: 0.88rem; color: var(--muted); margin: 6px 0 10px; flex: 1; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tags span { font-size: 0.72rem; background: var(--beige); padding: 2px 10px; border-radius: 999px; text-transform: capitalize; }
.card-foot { display: flex; justify-content: space-between; align-items: center; }
.card-foot strong { font-size: 1.15rem; color: var(--brown); }
.card-foot small { color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid #e3d3bd; border-radius: 999px; overflow: hidden; }
.qty button { width: 32px; height: 32px; font-size: 1.1rem; background: var(--beige); }
.qty button:hover { background: var(--accent); color: #fff; }
.qty span { min-width: 30px; text-align: center; font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* Banner */
.banner {
  margin: 0 6%; border-radius: 24px; background: linear-gradient(120deg, var(--brown), var(--accent));
  color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 50px;
}
.banner h2 { font-size: 2rem; margin-bottom: 10px; }
.banner p { max-width: 560px; margin-bottom: 20px; opacity: 0.95; }
.banner-emoji { font-size: 4rem; letter-spacing: 10px; }

/* About */
.about-grid { max-width: 1000px; margin: 0 auto; text-align: center; }
.about-grid > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 36px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.feature { background: #fff; padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature span { font-size: 2.4rem; }
.feature h3 { margin: 8px 0 4px; color: var(--brown-dark); }
.feature p { color: var(--muted); font-size: 0.9rem; }

/* Testimonials */
.testimonials { background: var(--beige); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
blockquote { background: #fff; padding: 24px; border-radius: var(--radius); font-style: italic; box-shadow: var(--shadow); }
cite { display: block; margin-top: 12px; font-style: normal; font-weight: 600; color: var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; max-width: 1000px; margin: 0 auto; }
.contact-info p { margin-bottom: 14px; font-size: 1.05rem; }
.contact-info a { color: var(--accent); }
.contact-form, #checkoutForm { display: flex; flex-direction: column; gap: 12px; }

/* Footer */
.footer { background: var(--brown-dark); color: var(--beige); text-align: center; padding: 30px; }
.footer .small { font-size: 0.8rem; opacity: 0.7; margin-top: 4px; }

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 60; }
.cart {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--cream); z-index: 70;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s ease; box-shadow: -10px 0 30px rgba(0,0,0,.15);
}
.cart.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--beige); }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 20px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px dashed #e3d3bd; }
.thumb { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-size: 1.8rem; }
.info h4 { font-size: 0.95rem; }
.info small { color: var(--muted); display: block; margin-bottom: 6px; }
.info .qty button { width: 26px; height: 26px; font-size: 0.95rem; }
.right { text-align: right; display: flex; flex-direction: column; gap: 6px; }
.link { color: #b23b3b; font-size: 0.8rem; text-decoration: underline; }
.cart-foot { padding: 20px; border-top: 1px solid var(--beige); background: #fff; }
.row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.row.total { font-size: 1.15rem; font-weight: 700; margin: 10px 0 14px; color: var(--brown-dark); }
.hint { font-size: 0.82rem; color: #2e8b57; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal-card { position: relative; background: var(--cream); border-radius: 20px; padding: 30px; width: min(480px, 100%); max-height: 92vh; overflow-y: auto; }
.modal-card h3 { font-size: 1.6rem; margin-bottom: 16px; color: var(--brown-dark); }
.modal-card .close { position: absolute; top: 14px; right: 14px; }
.order-total { font-size: 1.05rem; }
.pay-options { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-options .btn { flex: 1; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 100px); background: var(--brown-dark); color: #fff;
  padding: 12px 22px; border-radius: 999px; z-index: 90; transition: transform 0.3s; pointer-events: none; white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero p { margin: 0 auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .banner { flex-direction: column; text-align: center; padding: 36px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream);
    max-height: 0; overflow: hidden; transition: max-height 0.3s; border-bottom: 1px solid var(--beige);
  }
  .nav-links.open { max-height: 300px; }
  .nav-links a { padding: 14px 6%; }
  .toolbar-right, .toolbar-right input { width: 100%; }
}

/* ---------- Owner-editable content extras ---------- */
.announcement { background: var(--brown-dark, #5a3a22); color: #fff; text-align: center; padding: 8px 16px; font-size: 0.9rem; font-weight: 500; }
.card-img.has-photo { padding: 0; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb { overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge.soldout { background: #888; }
.card.soldout .card-img { filter: grayscale(0.6); opacity: 0.75; }
[hidden] { display: none !important; }
