/* Storefront layout */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.top {
  position: sticky; top: 0; z-index: 20; background: rgba(253, 237, 238, 0.92);
  backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; }
.brand img { width: 54px; height: 54px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.cart-btn { position: relative; }
.cart-btn .count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--pink); color: #fff; font-size: 0.78rem; font-weight: 900; display: grid; place-items: center; border: 2px solid #fff;
}

.hero { text-align: center; padding: 26px 0 8px; }
.hero h1 { font-family: var(--script); font-size: clamp(2.4rem, 8vw, 3.6rem); color: var(--ink); }
.hero h1 .dash { color: var(--pink); font-family: var(--body); font-weight: 900; }
.hero .logo-big { width: 150px; height: 150px; margin: 0 auto 8px; border-radius: 50%; box-shadow: var(--shadow); }

.offer-strip { display: grid; gap: 10px; margin: 16px 0 6px; }
.offer {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: #fff; border: 2px dashed var(--pink); color: var(--pink-deep); font-weight: 800;
}
.offer .gift { font-size: 1.4rem; }

.tabs {
  position: sticky; top: 72px; z-index: 15; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none;
  background: linear-gradient(var(--blush) 75%, rgba(253, 237, 238, 0));
}
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; background: #fff; color: var(--pink-deep); padding: 10px 16px; border-radius: 999px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow-sm); min-height: 44px; }
.tab[aria-current='true'] { background: var(--pink-ribbon); color: #fff; }

.cat { padding: 18px 0 8px; scroll-margin-top: 140px; }
.cat-head { text-align: center; margin-bottom: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.product { overflow: hidden; display: flex; flex-direction: column; }
.product .photo { position: relative; aspect-ratio: 4 / 3; background: var(--cream); }
.product .photo img { width: 100%; height: 100%; object-fit: cover; }
.product .photo .tag { position: absolute; left: 10px; top: 10px; }
.product .body { padding: 14px 16px 16px; display: grid; gap: 8px; flex: 1; }
.product .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product h3 { font-size: 1.1rem; font-weight: 900; color: var(--ink); }
.product p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.product .actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.product.soldout .photo img { filter: grayscale(0.8); opacity: 0.6; }
.allergens { font-size: 0.75rem; color: var(--muted); }

.info-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 26px 0; }
.info { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.info svg { flex: none; color: var(--pink); }
.info b { display: block; }

.footer { text-align: center; padding: 26px 0 120px; color: var(--muted); font-size: 0.85rem; }
.footer a { font-weight: 800; }

/* Sticky cart bar */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(253, 237, 238, 0), var(--blush) 30%); }
.cart-bar .btn { width: 100%; max-width: 620px; margin: 0 auto; display: flex; justify-content: space-between; font-size: 1.05rem; min-height: 56px; padding: 10px 22px; }

/* Panels (cart / checkout / order) */
.page { max-width: 640px; margin: 0 auto; padding: 18px 16px 140px; }
.page h2 { font-family: var(--script); font-size: 2.1rem; font-weight: 400; margin: 6px 0 14px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; color: var(--pink-deep); min-height: 44px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.line img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.line .name { font-weight: 800; }
.totals { display: grid; gap: 6px; margin-top: 12px; }
.totals .r { display: flex; justify-content: space-between; }
.totals .r.disc { color: var(--ok); font-weight: 800; }
.totals .r.grand { font-size: 1.25rem; font-weight: 900; border-top: 2px solid var(--line); padding-top: 8px; margin-top: 4px; }
.promo { display: flex; gap: 8px; margin-top: 14px; }
.promo .input { text-transform: uppercase; }
.section-title { font-weight: 900; color: var(--choc); margin: 18px 0 10px; font-size: 1.05rem; }
.pay-box { white-space: pre-line; background: var(--cream); border: 2px dashed var(--pink-soft); border-radius: 14px; padding: 12px 14px; font-size: 0.92rem; }
.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.dates .choice { flex: none; display: grid; text-align: center; line-height: 1.1; padding: 8px 12px; border-radius: 14px; }
.dates .choice small { font-weight: 600; font-size: 0.72rem; }

.timeline { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding-bottom: 14px; position: relative; color: var(--muted); }
.timeline li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); background: #fff; margin: 2px 0 0 4px; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 12px; top: 22px; bottom: 0; width: 3px; background: var(--line); }
.timeline li.done { color: var(--ink); font-weight: 800; }
.timeline li.done::before { background: var(--pink); border-color: var(--pink); }
.timeline li.done:not(:last-child)::after { background: var(--pink); }
.success-hero { text-align: center; padding: 12px 0; }
.success-hero .big { font-size: 3rem; }
.empty { text-align: center; padding: 40px 0; }
.empty img { width: 120px; margin: 0 auto 10px; opacity: 0.9; }

@media (min-width: 760px) {
  .wordmark { font-size: 2.2rem; }
}
