:root {
  --ink: #3B1F1A;
  --ink-soft: #6B463D;
  --ink-mute: #7A5248;
  --ground: #FFF8F3;
  --ground-2: #FFF1EC;
  --card: #FFFFFF;
  --line: #F1DCD3;
  --field: #E5CBC1;
  --accent: #B3204A;
  --accent-dark: #8A1236;
  --pink: #FBDDE3;
  --pink-ink: #6B2A36;
  --ok: #1F6B3A;
  --err: #B42318;
  --display: 'Secular One', system-ui, sans-serif;
  --body: 'Rubik', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--ground); line-height: 1.5; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.15; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.brand-name { font-family: var(--display); font-size: 21px; line-height: 1.1; }
.brand-sub { font-size: 13px; color: var(--ink-mute); }
.nav { display: flex; gap: 24px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-dark { background: var(--ink); color: var(--ground); }
.btn-dark:hover { background: #24120f; color: var(--ground); }
.btn-accent { background: var(--accent); color: #fff; font-weight: 700; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--ground); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 18px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pill { align-self: flex-start; padding: 6px 16px; border-radius: 999px; background: var(--pink); color: var(--accent-dark); font-weight: 700; font-size: 15px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); }
.hero p { margin: 0; font-size: 20px; color: var(--ink-soft); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-photos { flex: 1 1 400px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hero-photos img { width: 100%; height: 340px; object-fit: cover; border-radius: 28px; }
.hero-photos img:first-child { margin-top: 40px; }
.hero-photos.single { grid-template-columns: 1fr; }
.hero-photos.single img { margin-top: 0; height: 400px; }

.band { background: var(--ink); color: var(--ground); }
.band .wrap { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 12px 40px; padding-top: 20px; padding-bottom: 20px; font-weight: 500; }

/* Menu */
.section { padding-top: 72px; padding-bottom: 32px; }
.section h2 { font-size: 44px; margin-bottom: 8px; }
.section-lead { margin: 0 0 32px; font-size: 18px; color: var(--ink-soft); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 520px)); gap: 28px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.product img { width: 100%; height: 280px; object-fit: cover; }
/* A single product: one wide card, photo beside the text */
.products.one { grid-template-columns: 1fr; }
.products.one .product { flex-direction: row; }
.products.one .product img { width: 50%; height: auto; min-height: 320px; flex: none; }
.products.one .product-body { flex: 1; justify-content: center; padding: 36px 40px; }
@media (max-width: 760px) {
  .products.one .product { flex-direction: column; }
  .products.one .product img { width: 100%; min-height: 0; height: 260px; }
  .products.one .product-body { padding: 24px 28px 28px; }
}
.product-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.product-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product-head h3 { font-size: 30px; }
.price { font-family: var(--display); font-size: 34px; color: var(--accent); white-space: nowrap; }
.product-desc { margin: 0; color: var(--ink-soft); font-size: 17px; }
.product-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.unit-note { font-size: 15px; color: var(--ink-mute); }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--ground-2); border-radius: 999px; padding: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: none; background: #fff; font-size: 22px; cursor: pointer; }
.stepper button:hover { background: var(--pink); }
.stepper output { min-width: 40px; text-align: center; font-size: 20px; font-weight: 700; }

/* Order */
.order-grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-bottom: 80px; }
.panel { flex: 999 1 560px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 36px; }
.panel h2 { font-size: 34px; margin-bottom: 24px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { min-height: 48px; padding: 0 16px; border: 1.5px solid var(--field); border-radius: 14px; font-size: 17px; background: #FFFDFB; font-weight: 400; }
.field textarea { padding: 12px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--pink); border-color: var(--accent); }
.field .err { color: var(--err); font-size: 14px; font-weight: 500; min-height: 0; }
.field.invalid input, .field.invalid select { border-color: var(--err); }
fieldset.field { border: none; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.choice { display: flex; flex-wrap: wrap; gap: 12px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice > label > span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--field); background: #fff; font-weight: 500; cursor: pointer; }
.choice input:checked + span { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.summary { flex: 1 1 340px; min-width: 0; background: var(--pink); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
.summary h2 { font-size: 28px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; padding-bottom: 12px; border-bottom: 1px dashed #E6A8B6; }
.summary-line b { white-space: nowrap; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; }
.summary-total span:first-child { font-size: 20px; font-weight: 700; }
.summary-total .amount { font-family: var(--display); font-size: 40px; color: var(--accent-dark); }
.summary .muted { margin: 0; font-size: 14px; color: var(--pink-ink); }
.form-error { color: var(--err); font-weight: 500; margin: 0; }

.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 32px 0; }
.done-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; }
.done p { margin: 0; font-size: 18px; color: var(--ink-soft); max-width: 440px; }

/* Payment box on the confirmation screen */
.pay-box { width: 100%; max-width: 460px; background: var(--ground-2); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 4px; }
.pay-box h3 { font-size: 24px; }
.pay-box .pay-amount { margin: 0; font-family: var(--display); font-size: 40px; color: var(--accent-dark); }
.pay-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pay-box .pay-hint { margin: 0; font-size: 16px; color: var(--ink-soft); }
.pay-phone { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--field); border-radius: 999px; padding: 4px 4px 4px 16px; font-weight: 700; font-size: 18px; }
.pay-phone button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: none; background: var(--ink); color: var(--ground); cursor: pointer; font-weight: 500; }

/* About + footer */
.about { background: var(--ground-2); }
.about .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding-top: 64px; padding-bottom: 64px; }
.about h3 { font-size: 24px; margin-bottom: 8px; }
.about p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.site-footer { background: var(--ink); color: var(--ground); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 36px; padding-bottom: 36px; }
.site-footer a { color: var(--ground); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }

@media (max-width: 640px) {
  .nav { display: none; }
  .form { grid-template-columns: 1fr; }
  .panel, .summary { padding: 24px; }
  .hero-photos img { height: 220px; }
  .summary { position: static; }
  .site-header { position: static; }
  .section h2 { font-size: 36px; }
}

/* ===================== Admin ===================== */
.admin-body { background: #FBF6F3; }
.admin-top { background: var(--ink); color: var(--ground); }
.admin-top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.admin-top h1 { font-size: 22px; }
.admin-top .btn-outline { border-color: var(--ground); color: var(--ground); min-height: 40px; }
.admin-top .btn-outline:hover { background: var(--ground); color: var(--ink); }
.login { max-width: 400px; margin: 80px auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.login h2 { font-size: 28px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; padding-top: 24px; padding-bottom: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--field); background: #fff; cursor: pointer; font-weight: 500; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.tabs .count { opacity: .7; margin-inline-start: 4px; }
.toolbar .field input { min-height: 40px; }
.bake { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin-bottom: 16px; }
.bake strong { font-family: var(--display); font-weight: 400; font-size: 20px; }
.bake .stat { font-size: 17px; }
.bake .stat b { font-size: 22px; color: var(--accent-dark); }
.orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; gap: 16px; padding-bottom: 48px; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.order-card.is-new { border-color: var(--accent); box-shadow: 0 0 0 2px var(--pink); }
.oc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.oc-id { font-family: var(--display); font-size: 20px; }
.badge { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #EEE; }
.badge.new { background: var(--pink); color: var(--accent-dark); }
.badge.confirmed { background: #DCEBFB; color: #1B4A7A; }
.badge.ready { background: #FDECC8; color: #7A4B00; }
.badge.done { background: #D9F0E0; color: var(--ok); }
.badge.cancelled { background: #EEE; color: #555; }
.badge.paid { background: #D9F0E0; color: var(--ok); }
.badge.unpaid { background: #FFF1D6; color: #7A4B00; }
.oc-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.oc-actions .pay { border-color: var(--ok); color: var(--ok); }
.oc-when { font-weight: 700; }
.oc-items { margin: 0; padding: 0; list-style: none; }
.oc-meta { font-size: 15px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 2px; }
.oc-meta a { color: var(--ink); }
.oc-notes { background: var(--ground-2); border-radius: 10px; padding: 8px 12px; font-size: 15px; white-space: pre-wrap; }
.oc-total { font-family: var(--display); font-size: 22px; }
.oc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.oc-actions button, .oc-actions a { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--field); background: #fff; cursor: pointer; font-weight: 500; font-size: 15px; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; }
.oc-actions .primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.oc-actions .primary:hover { background: var(--accent-dark); }
.oc-actions .danger { color: var(--err); }
.empty { padding: 48px 0; text-align: center; color: var(--ink-mute); font-size: 18px; grid-column: 1 / -1; }
