/* Ene Ti Dou by Zahrah */
:root {
  --paper: #FFFCFA;
  --ink: #4A2B25;
  --ink-soft: #7E6058;
  --line: #EEE0DC;
  --tint: #F9E3E6;
  --tint-2: #FDF2F3;
  --deep: #C66E7C;
  --white: #FFFFFF;
  --script: 'Great Vibes', 'Brush Script MT', cursive;
  --roman: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(74, 43, 37, .05), 0 12px 32px rgba(74, 43, 37, .08);
}
body[data-theme="pistachio"] { --tint: #E4EEDA; --tint-2: #F3F8EE; --deep: #7A9A68; }
body[data-theme="lavender"]  { --tint: #ECE3F4; --tint-2: #F7F2FA; --deep: #9C82BC; }
body[data-theme="peach"]     { --tint: #FBE2D2; --tint-2: #FEF3EC; --deep: #D98C66; }
body[data-theme="butter"]    { --tint: #F7EDC9; --tint-2: #FCF8E9; --deep: #BD9A3E; }
body[data-theme="sky"]       { --tint: #DDEBF3; --tint-2: #F0F6FA; --deep: #6D9AB8; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--roman);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 999px; z-index: 99; }
.skip:focus { left: 12px; }

.script { font-family: var(--script); font-weight: 400; color: var(--deep); font-size: 1.35em; line-height: .8; margin-right: .08em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-family: var(--roman); font-weight: 600; font-size: 1.02rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { background: #3A211C; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--tint-2); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Announcement */
.announce { background: var(--tint); color: var(--ink); text-align: center; padding: 9px 16px; font-size: 1rem; font-weight: 600; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 252, 250, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-name { font-family: var(--script); font-size: 2.05rem; line-height: 1; color: var(--ink); }
.brand-sig { font-size: 1rem; color: var(--ink-soft); font-style: italic; }
.nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.nav a { text-decoration: none; font-weight: 600; font-size: 1.02rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--deep); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 5vw, 72px);
  max-width: 1160px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 80px);
}
.hero-kicker { font-family: var(--script); font-size: 1.9rem; color: var(--deep); margin: 0 0 6px; line-height: 1; }
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.02; font-weight: 500; letter-spacing: -.01em;
  margin: 0 0 18px; max-width: 13ch;
}
.hero-intro { font-size: 1.22rem; color: var(--ink-soft); max-width: 34ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.arch {
  position: relative; overflow: hidden;
  border-radius: 999px 999px 18px 18px;
  background: var(--tint);
}
.arch-hero { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; max-width: 440px; margin-left: auto; width: 100%; }
.arch-hero::before { content: ''; position: absolute; inset: 14px 14px 14px; border-radius: 999px 999px 10px 10px; border: 1px solid rgba(255,255,255,.85); pointer-events: none; z-index: 1; }
.hero-logo { width: 84%; height: auto; }
.arch-hero.has-photo .hero-logo { display: none; }
.arch-hero img.banner { width: 100%; height: 100%; object-fit: cover; }

/* Section heads */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 28px; padding: 0 16px; }
.section-head h2, .custom-text h2 { font-size: clamp(2.3rem, 4.6vw, 3.3rem); font-weight: 500; margin: 0 0 6px; line-height: 1.05; }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 1.1rem; }

/* Menu */
.menu { padding: clamp(40px, 6vw, 72px) 0 40px; border-top: 1px solid var(--line); }
.chips {
  position: sticky; top: 68px; z-index: 10;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 10px clamp(16px, 4vw, 48px); margin-bottom: 8px;
  background: rgba(255, 252, 250, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  justify-content: safe center;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap;
}
.chip:hover { border-color: var(--deep); }
.chip.on { background: var(--tint); border-color: var(--tint); }

.group { max-width: 1160px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 48px) 10px; }
.group h3 { font-size: 1.7rem; font-weight: 500; margin: 0 0 16px; display: flex; align-items: center; gap: 14px; }
.group h3::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(14px, 2.4vw, 28px); }

.card {
  display: flex; flex-direction: column; text-align: left; gap: 2px;
  padding: 0; border: 0; background: transparent; cursor: pointer;
}
.card .arch { aspect-ratio: 4 / 5; width: 100%; margin-bottom: 12px; transition: transform .25s ease; }
.card:hover .arch { transform: translateY(-3px); }
.card img.photo { width: 100%; height: 100%; object-fit: cover; }
.card .c-name { font-size: 1.28rem; font-weight: 600; line-height: 1.2; }
.card .c-price { font-size: 1.04rem; color: var(--ink-soft); }
.badge {
  position: absolute; top: 14%; left: 50%; transform: translateX(-50%); z-index: 2;
  background: var(--paper); color: var(--ink); border-radius: 999px; padding: 3px 12px;
  font-size: .86rem; font-weight: 700; white-space: nowrap;
}

/* Placeholder art */
.ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ph svg { width: 46%; height: auto; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .72; }
.ph svg .acc { fill: var(--deep); stroke: none; opacity: .9; }
.ph-big svg { width: 52%; }

/* Custom cakes */
.custom { background: var(--tint-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.custom-inner { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 6vw, 80px); align-items: center; padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px); }
.arch-custom { aspect-ratio: 4 / 5; max-width: 340px; background: var(--tint); }
.custom-text p { font-size: 1.2rem; color: var(--ink-soft); max-width: 40ch; margin: 0 0 26px; }

/* How */
.how { padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px); }
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1000px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); }
.steps li { text-align: center; padding: 8px 8px 0; }
.steps .n { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: var(--tint); font-family: var(--script); font-size: 1.9rem; line-height: 1; margin-bottom: 12px; padding-top: 4px; }
.steps h3 { font-size: 1.4rem; font-weight: 600; margin: 0 0 6px; }
.steps p { margin: 0 auto; color: var(--ink-soft); max-width: 28ch; }
.pickup { max-width: 640px; margin: 40px auto 0; text-align: center; border-top: 1px solid var(--line); padding-top: 28px; }
.pickup p { margin: 0 0 6px; }
.pickup strong { font-weight: 700; }

/* Footer */
.foot { text-align: center; padding: 48px 16px 120px; border-top: 1px solid var(--line); }
.foot-logo { width: 150px; height: auto; margin: 0 auto 18px; }
.socials { display: flex; gap: 12px; justify-content: center; margin-bottom: 14px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; background: var(--white); }
.socials a:hover { border-color: var(--deep); }
.socials svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.foot-small { color: var(--ink-soft); margin: 0; font-style: italic; }

/* Order bar */
.bagbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.bagbar-btn {
  pointer-events: auto; width: 100%; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 14px;
  min-height: 58px; padding: 0 10px 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px rgba(74,43,37,.28);
  font-weight: 600; font-size: 1.05rem;
}
.bagbar-total { margin-left: auto; }
.bagbar-cta { background: var(--paper); color: var(--ink); border-radius: 999px; padding: 9px 18px; font-weight: 700; }
.bagbar.bump .bagbar-btn { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.03); } }

/* Sheets (dialogs) */
dialog.sheet {
  border: 0; padding: 0; margin: auto; width: min(560px, 100%); max-height: min(92dvh, 900px);
  border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); overflow: hidden;
}
dialog.sheet::backdrop { background: rgba(58, 33, 28, .42); }
dialog.sheet[open] { animation: rise .28s ease; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.sheet-inner { display: flex; flex-direction: column; max-height: inherit; position: relative; }
.sheet-inner > .p-body, .sheet-inner > .p-photo { flex: none; }
#productForm { overflow-y: auto; }
#bagSheet .sheet-inner { overflow-y: auto; }
.close {
  position: sticky; top: 12px; align-self: flex-end; margin: 12px 12px -54px 0; flex: none;
  z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255,252,250,.94); cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 6px rgba(74,43,37,.12);
}
.close svg, .qbtn svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 1.8; fill: none; stroke-linecap: round; }
.p-photo { aspect-ratio: 16 / 10; border-radius: 0 0 50% 50% / 0 0 14% 14%; }
.p-photo img { width: 100%; height: 100%; object-fit: cover; }
.p-photo .ph svg { width: 26%; }
.p-body { padding: 22px 24px 8px; }
.p-body h3 { font-size: 2rem; font-weight: 600; line-height: 1.1; margin: 0 0 6px; padding-right: 40px; }
.p-desc { color: var(--ink-soft); margin: 0 0 6px; font-size: 1.1rem; }
.p-base { font-weight: 700; margin: 0 0 14px; }
fieldset.opt { border: 0; padding: 0; margin: 0 0 16px; }
fieldset.opt legend { font-weight: 700; font-size: 1.12rem; margin-bottom: 8px; padding: 0; }
fieldset.opt legend small { font-weight: 500; color: var(--ink-soft); font-size: .92rem; margin-left: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: 1.02rem; cursor: pointer;
}
.choice span em { font-style: normal; font-weight: 500; color: var(--ink-soft); font-size: .92rem; }
.choice input:checked + span { background: var(--tint); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.field > span { font-weight: 700; font-size: 1.04rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--white);
  font-size: 1.08rem; font-weight: 500;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--deep); outline-offset: 0; border-color: transparent; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; font-weight: 700; font-size: 1.12rem; }
.qty { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--white); }
.qbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tint-2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty output { min-width: 34px; text-align: center; font-weight: 700; font-size: 1.15rem; }
.sheet-foot {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
}
.p-total { display: flex; flex-direction: column; line-height: 1.15; }
.p-total .small { font-size: .92rem; color: var(--ink-soft); }
.p-total strong { font-size: 1.4rem; }

/* Bag */
#bagSheet .p-body { padding-top: 26px; padding-bottom: 24px; }
.items { list-style: none; padding: 0; margin: 10px 0 8px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item .i-name { font-weight: 700; font-size: 1.15rem; }
.item .i-meta { grid-column: 1 / -1; color: var(--ink-soft); font-size: 1rem; line-height: 1.4; }
.item .i-price { font-weight: 700; text-align: right; }
.item .i-ctrl { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.item .qty { padding: 2px; }
.item .qbtn { width: 34px; height: 34px; }
.item .remove { border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink-soft); font-size: 1rem; padding: 6px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.3rem; margin: 6px 0 4px; }
.total-row strong { font-size: 1.5rem; }
.fine { color: var(--ink-soft); font-size: .98rem; margin: 6px 0 16px; }
.order-form { margin-top: 18px; }
.btn.wa { width: 100%; min-height: 54px; font-size: 1.1rem; }
.wa-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.wa-ico .fill { fill: currentColor; stroke: none; }
.sent, .soon { background: var(--tint-2); border-radius: var(--radius); padding: 16px 18px; margin-top: 14px; }
.sent p, .soon p { margin: 0 0 12px; }
.empty { color: var(--ink-soft); padding: 18px 0; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 20px); opacity: 0; z-index: 40;
  background: var(--ink); color: var(--paper); padding: 10px 20px; border-radius: 999px; font-weight: 600;
  transition: opacity .25s ease, transform .25s ease; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Phones */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .top { padding: 10px 16px; }
  .brand-name { font-size: 1.85rem; }
  .brand-sig { display: none; }
  .nav { gap: 14px; }
  .nav a { font-size: .98rem; }
  .nav a[href="#how"] { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 28px; }
  .hero-art { order: -1; }
  .arch-hero { margin: 0 auto; max-width: 300px; }
  .hero h1 { margin-left: auto; margin-right: auto; }
  .hero-intro { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .chips { top: 62px; justify-content: flex-start; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card .c-name { font-size: 1.14rem; }
  .card .c-price { font-size: .98rem; }
  .group h3 { font-size: 1.5rem; }
  .custom-inner { grid-template-columns: 1fr; text-align: center; }
  .arch-custom { margin: 0 auto; max-width: 240px; }
  .custom-text p { margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 94dvh; }
  .p-body { padding: 18px 18px 6px; }
  .sheet-foot { padding-left: 18px; padding-right: 18px; }
  .p-body h3 { font-size: 1.75rem; }
  .bagbar-count { display: none; }
}
@media (max-width: 380px) {
  .nav a[href="#custom"] { display: none; }
  .two { grid-template-columns: 1fr; }
}
