@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --choco: #23141a;
  --choco-dark: #170b11;
  --berry: #d93d59;
  --berry-hover: #b82842;
  --berry-soft: #fdebed;
  --cream: #fff9f5;
  --cream-card: #ffffff;
  --muted: #6e5a62;
  --line: #eedcd6;
  --green: #2e7d32;
  --green-bg: #e8f5e9;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 12px rgba(35, 20, 26, 0.05);
  --shadow-md: 0 10px 25px rgba(35, 20, 26, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--choco);
  font: 400 15px/1.6 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Demo Top Announcement */
.demo-banner {
  background: var(--choco);
  color: #fff;
  padding: 8px 16px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.demo-banner a {
  color: #ffd699;
  text-decoration: underline;
  font-weight: 700;
}

/* Topbar */
.topbar {
  height: 68px;
  padding: 0 max(20px, calc((100% - 1080px)/2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--choco-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--berry);
}

.brand small {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 2px;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--berry-soft);
  color: var(--berry);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

.header-action b {
  background: var(--berry);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

/* Hero */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--choco-dark);
  margin: 0 0 14px;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 24px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--berry);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(217, 61, 89, 0.3);
}

.hero-btn:hover {
  background: var(--berry-hover);
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-height: 320px;
}

.hero-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.floating-note {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--choco);
}

/* Sections */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--choco-dark);
  margin: 4px 0 0;
}

.open-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

/* Products Grid */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product:hover .product-img {
  transform: scale(1.04);
}

.product-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(35, 20, 26, 0.85);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--choco-dark);
}

.product p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
  flex-grow: 1;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--berry);
}

.add-button {
  background: var(--choco);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.add-button:hover {
  background: var(--berry);
}

/* Order Section */
.order-panel {
  background: #fdf2ed;
  border-block: 1px solid var(--line);
  padding-block: 45px;
}

.order-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.cart-box, .why-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

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

.cart-item strong {
  display: block;
  font-size: 0.9rem;
}

.cart-item small {
  color: var(--muted);
  font-size: 0.75rem;
}

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

.qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  font-weight: 800;
}

.empty {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 24px 0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--choco);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 1.1rem;
}

.total-row strong {
  color: var(--berry);
  font-size: 1.3rem;
}

.whatsapp-button {
  width: 100%;
  background: #25d366;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 16px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.order-preview {
  border: 1.5px dashed #25d366;
  background: #f0fdf4;
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.order-preview pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #14532d;
  margin: 8px 0 12px;
}

.microcopy {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

.why-box ol {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 16px;
}

.why-box li {
  display: flex;
  gap: 12px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--berry-soft);
  color: var(--berry);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.why-box li b {
  display: block;
  font-size: 0.9rem;
}

.why-box li span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Calculator Section */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.calc-form {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--line);
  display: grid;
  gap: 16px;
}

.calc-form label {
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  gap: 6px;
}

.calc-form input {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
}

.dark-button {
  background: var(--choco);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

.result-card {
  background: var(--choco);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.result-card strong {
  font-size: 2.5rem;
  color: #ffd699;
  line-height: 1.1;
  margin: 8px 0;
}

/* Footer */
footer {
  background: var(--choco-dark);
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 25px;
  }
  .products {
    grid-template-columns: 1fr;
  }
  .order-grid, .calc-grid {
    grid-template-columns: 1fr;
  }
}
