:root {
  --bg: #fff9fb;
  --bg-alt: #fff1f6;
  --surface: #ffffff;
  --primary: #c2185b;
  --primary-dark: #951246;
  --primary-soft: #f8d7e6;
  --accent: #f4a6c1;
  --text: #3a2430;
  --muted: #6f5560;
  --border: #efd6e1;
  --shadow: 0 10px 30px rgba(149, 18, 70, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 251, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 42px; height: 42px;
  display: inline-grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #e85a95);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { color: var(--muted); font-size: 0.78rem; }

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a:focus-visible {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.cart-button:hover { border-color: var(--accent); background: #fff; }
.cart-count {
  min-width: 1.5rem; height: 1.5rem;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  padding: 0 0.35rem;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }

/* Header logo */
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px; object-fit: cover;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.footer-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.site-nav a.active { background: var(--primary-soft); color: var(--primary-dark); }

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(circle at 10% 20%, #ffe3ef 0, transparent 35%),
    radial-gradient(circle at 90% 10%, #ffeef5 0, transparent 30%),
    linear-gradient(180deg, #fff7fa 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--primary);
  margin: 0 0 0.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #4a1630;
}
.hero-copy p { color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-visual { display: grid; gap: 1rem; justify-items: center; }
.hero-image {
  width: min(100%, 420px);
  height: 320px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.cake-card {
  width: min(100%, 360px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.cake-top {
  height: 180px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 8%, transparent 9%),
    radial-gradient(circle at 70% 40%, #fff 0 6%, transparent 7%),
    linear-gradient(180deg, #fce4ec 0%, #f4a6c1 40%, #8b3a3a 41%, #b84c5a 100%);
  position: relative;
  overflow: hidden;
}
.cake-top::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
}
.cake-body { padding-top: 0.9rem; }
.cake-body span { display: block; font-weight: 700; font-size: 1.2rem; }
.cake-body small { color: var(--muted); }
.hero-highlights {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.hero-highlights li {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Content images */
.section-image {
  width: 100%; max-width: 520px; height: 300px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border);
  margin: 1.5rem auto 0;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; margin-top: 1.5rem; }
.split img { width: 100%; height: 280px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .05s ease, background .2s ease, color .2s ease;
  font: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--primary-dark); border-color: var(--accent); }
.btn-secondary:hover { background: var(--primary-soft); }
.btn-small { padding: 0.5rem 0.9rem; font-size: 0.92rem; }

/* Sections */
.section { padding: 4rem 0; }
.section.alt { background: var(--bg-alt); }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.5rem; color: #4a1630; }
.section-heading p { margin: 0; color: var(--muted); }

.cards-grid { display: grid; gap: 1.25rem; }
.cards-grid.two { grid-template-columns: repeat(2, 1fr); }
.cards-grid.three { grid-template-columns: repeat(3, 1fr); }
.cards-grid.products { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.info-card, .product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 4px 14px rgba(149, 18, 70, 0.06);
}
.info-card h3, .product-card h3 { margin-top: 0; color: #4a1630; }
.info-card p:last-child { margin-bottom: 0; }

/* Tables */
.values-block { margin-top: 2rem; }
.values-block h3 { margin-bottom: 0.75rem; color: #4a1630; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #fff3f8; color: #4a1630; font-weight: 700; }
tr:last-child td { border-bottom: none; }

/* Products */
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-image {
  height: 150px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem; color: #5a2140;
  letter-spacing: 0.04em;
}
.product-photo {
  width: 100%; height: 190px; object-fit: cover; display: block;
  border-bottom: 1px solid var(--border);
}
.product-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.product-body p { margin: 0; color: var(--muted); }
.product-body .btn { margin-top: auto; align-self: flex-start; }
.price { font-size: 1.15rem; font-weight: 800; color: var(--primary-dark) !important; }
.tone-red { background: linear-gradient(135deg, #ffd9e5, #f7a8c2); }
.tone-choco { background: linear-gradient(135deg, #ead7cf, #c9a38f); }
.tone-berry { background: linear-gradient(135deg, #ffe5ec, #ffc2d6); }
.tone-carrot { background: linear-gradient(135deg, #ffe8cc, #f2c38b); }
.tone-lemon { background: linear-gradient(135deg, #fff6cc, #f3e59c); }
.tone-mix { background: linear-gradient(135deg, #ffe0ef, #f9d3a8); }
.tone-custom { background: linear-gradient(135deg, #f3d9ff, #f7b9d4); }
.product-card.custom { border-style: dashed; }

/* Options & lists */
.option-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.option-list li { padding: 0.6rem 0.75rem; background: #fff7fa; border-radius: var(--radius-sm); }
.option-list li span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 0.15rem; }
.option-list.simple li { font-weight: 600; color: var(--text); }

/* Quote form */
.quote-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.25rem; align-items: start; }
.quote-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
label { display: grid; gap: 0.35rem; font-weight: 600; color: #4a1630; font-size: 0.95rem; }
input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #ddb9c9;
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(194, 24, 91, 0.15);
  border-color: var(--primary);
}
.full { grid-column: 1 / -1; margin-top: 0.9rem; }
.checkbox { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 500; color: var(--text); }
.checkbox input { width: auto; margin-top: 0.25rem; accent-color: var(--primary); }
.form-note { margin: 0.75rem 0 0; color: var(--muted); min-height: 1.4em; }
.form-note.success { color: #1f7a4d; font-weight: 600; }
.quote-info { display: grid; gap: 1rem; }
.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.notice { background: #fff4e8; border-color: #f0d4b4; }

/* Footer */
.site-footer { background: #3a1526; color: #fdeef4; padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.7fr 1.1fr; gap: 1.5rem; }
.footer-brand-mark .brand-text, .footer-brand-mark .brand-text strong { color: #fff; }
.footer-brand-mark .brand-text small { color: #f3bfd4; }
.site-footer h3 { margin-top: 0; color: #fff; }
.site-footer a { color: #ffd3e5; }
.site-footer a:hover { color: #fff; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding: 1rem 0 1.5rem; color: #f3bfd4; font-size: 0.95rem; }

/* Cart panel */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(40, 10, 24, 0.45);
  z-index: 60;
}
.cart-panel {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--surface);
  z-index: 70;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.cart-panel.open { transform: translateX(0); }
.cart-header, .cart-footer { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.cart-footer { border-bottom: none; border-top: 1px solid var(--border); margin-top: auto; background: #fff9fb; }
.cart-header { display: flex; align-items: center; justify-content: space-between; }
.cart-header h2 { margin: 0; font-size: 1.25rem; }
.close-cart { background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--muted); line-height: 1; }
.cart-content { padding: 1rem 1.25rem; overflow: auto; flex: 1; }
.empty-cart { color: var(--muted); }
.cart-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.cart-item { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: 12px; }
.cart-item p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.9rem; }
.cart-item-actions { display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-end; }
.qty-btn, .remove-btn {
  border: 1px solid var(--border); background: #fff; border-radius: 8px; cursor: pointer; font: inherit;
}
.qty-btn { width: 32px; height: 32px; font-weight: 700; }
.remove-btn { padding: 0.2rem 0.45rem; font-size: 0.8rem; color: #a01818; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin: 0 0 0.5rem; font-size: 1.05rem; }
.cart-disclaimer { font-size: 0.88rem; color: var(--muted); margin: 0 0 0.75rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%) translateY(20px);
  background: #3a1526; color: #fff; padding: 0.7rem 1rem; border-radius: 999px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 80;
  max-width: calc(100% - 2rem); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .quote-layout, .footer-grid { grid-template-columns: 1fr; }
  .cards-grid.three { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
    flex-direction: column; align-items: stretch;
  }
  .site-nav.open { display: flex; }
  .site-nav a { border-radius: 10px; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .cart-button { margin-left: auto; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cards-grid.two, .cards-grid.three, .form-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }
  .section { padding: 3rem 0; }
  .header-inner { gap: 0.5rem; }
  .brand-text small { display: none; }
  .hero-image { height: 240px; }
}
