/* Demo Shop's look: warm, calm, honey-coloured. Built on the starter kit's
   class names, so lib/ui.js draws straight into it. The names ui.js uses:
   picker-choice, picker-name, picker-values, picker-value (is-picked, is-out),
   picker-extra, picker-out, price-was, order-lines, order-line, order-sums,
   order-sum, order-sum-total, order-free-hint, order-delivery-pending. */
:root {
  --cream: #fbf6ee; --paper: #ffffff; --ink: #2b2118; --body: #4a3f36; --muted: #7d7067;
  --line: #e9e0d3; --soft: #f4ecdf; --honey: #c47a0e; --honey-dark: #9a5d05; --honey-pale: #fdf1dc;
  --green: #2f6b3a; --danger: #b23b3b; --danger-soft: #fbe9e7; --radius: 12px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Bengali', sans-serif;
  --serif: Georgia, 'Noto Serif Bengali', 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.55; background: var(--cream); }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; }
h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.12; }
h2 { font-size: 26px; }
h3 { font-size: 19px; }
p { margin: 0 0 12px; color: var(--body); }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 700; color: var(--honey-dark); margin-bottom: 10px; }
.lead { font-size: 18px; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* The banner that says what this site is */
.demo-banner { background: var(--ink); color: #f3e9d9; text-align: center; font-size: 13px; padding: 7px 16px; }

/* Header and footer */
.site-header { background: var(--cream); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; }
.site-name { font-family: var(--serif); font-weight: 700; font-size: 24px; text-decoration: none; color: var(--ink); }
.site-nav { display: flex; gap: 20px; align-items: center; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--body); }
.site-nav a:hover { color: var(--honey-dark); }
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--honey); color: #fff; font-size: 12px; font-weight: 700; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 56px; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Buttons and notices */
.button { display: inline-block; padding: 13px 22px; border: 1px solid var(--honey-dark); border-radius: 999px; background: var(--honey); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s; }
.button:hover { background: var(--honey-dark); }
.button:disabled { opacity: .5; cursor: default; }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-secondary:hover { background: var(--soft); }
.button-wide { width: 100%; text-align: center; }
.notice { padding: 12px 16px; border-radius: var(--radius); background: var(--soft); margin-bottom: 16px; }
.notice-error { background: var(--danger-soft); color: var(--danger); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--soft); color: var(--muted); }
.badge-out { background: var(--danger-soft); color: var(--danger); }
.badge-save { background: #e5f1e6; color: var(--green); }

/* Home: hero and shelves */
.hero { padding: 40px 0 8px; }
.hero-inner { display: grid; gap: 28px; align-items: center; }
.hero-photo { border-radius: 20px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
@media (min-width: 820px) { .hero { padding: 56px 0 16px; } .hero-inner { grid-template-columns: 5fr 6fr; gap: 48px; } }
.shelf { padding: 40px 0 0; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.shelf-head p { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(43, 33, 24, 0.08); }
.card-photo { aspect-ratio: 1; background: var(--soft); object-fit: cover; width: 100%; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.card-body strong { font-size: 16px; }
.card-price { color: var(--ink); font-weight: 600; }
.card-body .badge { align-self: flex-start; margin-top: 4px; }
.promises { margin-top: 56px; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; }
.promises-grid { display: grid; gap: 20px; }
.promises-grid strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 18px; }
.promises-grid p { margin: 0; font-size: 15px; }
@media (min-width: 720px) { .promises-grid { grid-template-columns: repeat(3, 1fr); } }

/* One item, and the landing page */
main { padding-bottom: 24px; }
.page { padding-top: 32px; }
.item { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
@media (min-width: 760px) { .item { grid-template-columns: 1fr 1fr; gap: 44px; } }
.photos img { border-radius: 16px; background: var(--soft); width: 100%; aspect-ratio: 1; object-fit: cover; }
.photos-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.photos-thumbs img { width: 68px; height: 68px; object-fit: cover; cursor: pointer; border-radius: 10px; border: 2px solid transparent; }
.photos-thumbs img:hover { border-color: var(--honey); }
.price { font-size: 26px; font-weight: 700; margin: 6px 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.price small { font-size: 14px; font-weight: 500; color: var(--green); }
.price .price-was { font-size: 17px; font-weight: 400; color: var(--muted); }
.picker-choice { border: 0; padding: 0; margin: 0 0 18px; }
.picker-name { font-weight: 600; padding: 0; margin-bottom: 8px; }
.picker-values { display: flex; flex-wrap: wrap; gap: 8px; }
.picker-value { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; }
.picker-value input { position: absolute; opacity: 0; width: 0; height: 0; }
.picker-value.is-picked { border-color: var(--honey-dark); background: var(--honey); color: #fff; }
.picker-value.is-out { color: var(--muted); text-decoration: line-through; cursor: not-allowed; background: transparent; }
.picker-extra { font-size: 12px; opacity: .85; }
.picker-out { font-size: 11px; text-decoration: none; }
.quantity { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 16px; }
.quantity input { width: 72px; padding: 9px; font: inherit; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.details { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.details p { white-space: pre-line; }

/* The order bump */
.bump { border: 1.5px dashed var(--honey); background: var(--honey-pale); border-radius: var(--radius); padding: 16px; margin: 20px 0; }
.bump label.bump-switch { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.bump input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--honey); }
.bump .picker-choice { margin: 14px 0 0; }
.bump .badge { background: var(--honey); color: #fff; }

/* The order form and the summary */
.order-form { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.order-form h2 { font-size: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea { padding: 11px 13px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--honey); outline-offset: 1px; border-color: var(--honey); }
.field textarea { min-height: 76px; resize: vertical; }
.order-lines { margin-bottom: 12px; }
.order-line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.order-line-what { display: flex; flex-direction: column; }
.order-line-label, .order-line-offer { font-size: 12px; color: var(--muted); }
.order-line-offer { color: var(--green); }
.order-sums { font-size: 14px; }
.order-sum { display: flex; justify-content: space-between; padding: 6px 0; }
.order-sum-total { font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.order-delivery-pending, .order-free-hint { color: var(--muted); font-size: 13px; }
.order-free-hint { margin: 4px 0 0; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* The cart */
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--soft); }
.cart-line .quantity { margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
aside h2 { font-size: 22px; }

/* Landing page: on a phone the photo, then the offer and the form, then the
   story; on a wide screen the story sits under the photo, the form on the right. */
#order, #shop { scroll-margin-top: 84px; }
.lp-item { align-items: start; }
@media (min-width: 760px) {
  .lp-item { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; }
  .lp-item .photos { grid-column: 1; grid-row: 1; }
  .lp-item .lp-order { grid-column: 2; grid-row: 1 / span 2; }
  .lp-item .lp-more { grid-column: 1; grid-row: 2; }
}
.lp-section { padding: 36px 0 0; }
.lp-section h2 { font-size: 28px; }
.box-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.box-list li { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.box-list li::before { content: '✓'; color: var(--green); font-weight: 700; }
.box-list small { color: var(--muted); }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; }
.lp-cta { text-align: center; padding: 40px 0 8px; }

/* Small screens */
@media (max-width: 600px) {
  .site-nav { gap: 14px; font-size: 14px; }
  .site-name { font-size: 20px; }
  h2 { font-size: 23px; }
  .order-form { padding: 16px; }
}
