/* Google Fonts are loaded via <link> tags in each HTML page */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --amber:       #E8A020;
  --amber-light: #FFB833;
  --amber-dark:  #C27200;
  --espresso:    #2C1810;
  --brown:       #6B3A2A;
  --brown-mid:   #8D6E63;
  --cream:       #FFFDF7;
  --cream-warm:  #FDF8EF;
  --text-dark:   #2C1A10;
  --text-mid:    #6B4226;
  --text-muted:  #9E7B6E;
  --border:      #E8DDD0;
  --shadow:      rgba(44,24,16,0.08);
}

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Lato', 'Segoe UI', sans-serif; background: var(--cream); color: var(--text-dark); margin: 0; line-height: 1.65; display: flex; flex-direction: column; min-height: 100dvh; }
.site-footer { margin-top: auto; }

/* ── Site header ───────────────────────────────────────────── */
.site-header { background: var(--espresso); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.site-header-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 66px; }
.site-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.site-logo-icon { height: 44px; width: auto; }
.site-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.site-logo-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; font-weight: 700; color: var(--amber-light); }
.site-logo-tag { font-family: 'Playfair Display', Georgia, serif; font-size: 0.78rem; font-style: italic; color: rgba(255,255,255,0.5); }
.site-nav { display: flex; align-items: center; }
.site-nav a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 12px; height: 66px; display: flex; align-items: center; border-bottom: 3px solid transparent; transition: color 0.15s; }
.site-nav a:hover { color: white; }
.site-nav a.active { color: var(--amber-light); border-bottom-color: var(--amber-light); }
@media (max-width: 700px) { .site-logo-text { display: none; } .site-nav a { padding: 0 8px; font-size: 0.72rem; letter-spacing: 0.02em; } }
@media (max-width: 440px) { .site-nav a { padding: 0 5px; font-size: 0.65rem; } }

/* ── Hero (home page) ──────────────────────────────────────── */
.hero { background: linear-gradient(160deg, #190A04 0%, var(--espresso) 45%, #4A2415 100%); padding: 4.5rem 1.5rem 4rem; text-align: center; }
.hero-logo { width: 160px; height: auto; margin: 0 auto 1.75rem; display: block; filter: drop-shadow(0 4px 28px rgba(232,160,32,0.5)); }
.hero-title { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.4rem, 5vw, 3rem); font-weight: 900; color: white; margin: 0 0 0.75rem; line-height: 1.2; }
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,0.6); margin: 0 0 2.5rem; font-weight: 300; letter-spacing: 0.03em; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-primary { display: inline-block; background: var(--amber); color: var(--espresso); text-decoration: none; font-weight: 700; padding: 12px 26px; border-radius: 8px; font-size: 0.9rem; letter-spacing: 0.03em; transition: background 0.15s; }
.btn-primary:hover { background: var(--amber-light); }
.btn-outline-light { display: inline-block; background: transparent; color: white; text-decoration: none; font-weight: 700; padding: 12px 26px; border-radius: 8px; font-size: 0.9rem; letter-spacing: 0.03em; border: 2px solid rgba(255,255,255,0.32); transition: border-color 0.15s, background 0.15s; }
.btn-outline-light:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06); }

/* ── Page banner (non-home pages) ─────────────────────────── */
.page-banner { background: linear-gradient(120deg, #190A04 0%, var(--espresso) 60%, #4A2415 100%); padding: 2.75rem 1.5rem 2.25rem; text-align: center; }
.page-banner h1 { font-family: 'Playfair Display', Georgia, serif; color: var(--amber-light); font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 900; margin: 0 0 0.35rem; }
.page-banner p { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin: 0; letter-spacing: 0.05em; font-weight: 300; }

/* ── Container ─────────────────────────────────────────────── */
.container { max-width: 900px; margin: 2.5rem auto; padding: 2rem; background: white; border-radius: 12px; box-shadow: 0 2px 16px var(--shadow); }
.container h2 { font-family: 'Playfair Display', Georgia, serif; color: var(--text-dark); font-size: 1.7rem; margin-top: 0; margin-bottom: 1rem; }
.container h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--brown-mid); font-size: 1.15rem; border-bottom: 2px solid var(--amber); padding-bottom: 8px; margin-top: 2rem; }
.container p, .container dd { color: var(--text-mid); line-height: 1.75; margin-bottom: 1rem; }
.container dt { font-weight: 700; color: var(--text-dark); margin-top: 1rem; }
.container a { color: var(--brown); }
.container a:hover { color: var(--amber-dark); }

/* ── Story section (index.html) ────────────────────────────── */
.story-wrap { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
.story-card { background: white; border-radius: 12px; padding: 2rem 2.25rem; box-shadow: 0 2px 16px var(--shadow); }
.story-card h2 { font-family: 'Playfair Display', Georgia, serif; color: var(--text-dark); font-size: 1.7rem; margin-top: 0; margin-bottom: 1rem; }
.story-card p { color: var(--text-mid); line-height: 1.8; margin-bottom: 1rem; font-size: 1.02rem; }
.story-card p:last-child { margin-bottom: 0; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--espresso); color: rgba(255,255,255,0.38); text-align: center; font-size: 0.8rem; padding: 1.5rem 1rem; line-height: 1.6; }
footer { text-align: center; font-size: 0.8rem; padding: 20px; color: #777; }

/* ── Gallery grid ──────────────────────────────────────────── */
/* Gallery page wrapper — wider than the standard container, no white card */
.gallery-wrap { width: 100%; max-width: 1300px; margin: 2rem auto; padding: 0.5rem 2rem 3rem; }
.gallery-wrap h2 { font-family: 'Playfair Display', Georgia, serif; color: var(--text-dark); font-size: 1.7rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.gallery-wrap h2:first-child { margin-top: 0.5rem; }
@media (max-width: 640px) { .gallery-wrap { padding: 0.5rem 0.75rem 2rem; } }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; margin-bottom: 40px; }
.gallery-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px var(--shadow); background: #fff; transition: transform 0.15s, box-shadow 0.15s; }
.gallery-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px var(--shadow); }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; display: block; }
.gallery-caption { padding: 12px 14px 14px; background: #fff; }
.gallery-caption-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1rem; color: var(--text-dark); margin-bottom: 4px; }
.gallery-caption-desc { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 6px; line-height: 1.45; }
.gallery-caption-price { font-size: 0.88rem; color: var(--brown); font-weight: 700; }

/* ── Quantity stepper ──────────────────────────────────────── */
.qty-stepper { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.qty-btn { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--brown-mid); background: white; color: var(--brown-mid); font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; transition: background 0.15s, color 0.15s; }
.qty-btn:hover { background: var(--brown-mid); color: white; }
.qty-display { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); min-width: 24px; text-align: center; }

/* ── Cart bar ──────────────────────────────────────────────── */
.cart-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--espresso); color: white; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; z-index: 50; box-shadow: 0 -2px 12px rgba(0,0,0,0.2); }
.cart-bar-summary { display: flex; gap: 16px; font-size: 0.95rem; }
.cart-bar-summary span:first-child { font-weight: 700; }
.cart-bar-summary span:last-child { color: var(--amber-light); font-weight: 600; }
.cart-bar-btn { background: var(--amber); color: var(--espresso); padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.cart-bar-btn:hover { background: var(--amber-light); }

/* ── Order form extras ─────────────────────────────────────── */
.order-how-it-works { background: #FFF8E1; border-left: 4px solid var(--amber); border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.order-how-it-works h2 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--text-dark); }
.order-how-it-works ol { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.order-how-it-works li { margin-bottom: 4px; font-size: 0.92rem; color: var(--text-dark); line-height: 1.5; }
.order-note { margin: 0; font-size: 0.82rem; color: var(--brown-mid); font-style: italic; }
.order-no-cart { text-align: center; padding: 2rem 1rem; color: var(--brown-mid); }
.order-menu-link { display: inline-block; margin-top: 8px; color: var(--brown-mid); font-weight: 700; text-decoration: none; }
.order-menu-link:hover { text-decoration: underline; }
.order-edit-link { display: inline-block; font-size: 0.82rem; color: var(--brown-mid); text-decoration: none; margin-top: 8px; }
.order-edit-link:hover { text-decoration: underline; }
.cart-summary-row { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; border-bottom: 1px solid #f0ebe5; font-size: 0.92rem; }
.cart-summary-name { flex: 1; color: var(--text-dark); }
.cart-summary-qty { color: var(--brown-mid); min-width: 28px; text-align: right; }
.cart-summary-price { font-weight: 600; color: var(--text-dark); min-width: 52px; text-align: right; }
.cart-summary-total { display: flex; justify-content: space-between; padding-top: 8px; font-weight: 700; color: var(--text-dark); font-size: 0.95rem; }

/* ── Order Form ────────────────────────────────────────────── */
.order-form { display: grid; gap: 1.5rem; max-width: 500px; margin: 0 auto; }
.order-form-fields { display: grid; gap: 1.5rem; }
@media (min-width: 680px) {
  .order-form { grid-template-columns: 1fr 1fr; max-width: 100%; gap: 0 2.5rem; align-items: start; margin: 0; }
}
.form-group { display: grid; gap: 0.5rem; }
.form-group label { font-weight: 700; color: var(--text-dark); font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 1rem; color: var(--text-dark); outline: none; transition: border-color 0.2s; background: white; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--amber); }
.form-group textarea { resize: vertical; min-height: 80px; }
.pickup-pref-note { font-size: 0.87rem; color: var(--text-muted); margin: 2px 0 10px; line-height: 1.55; font-style: italic; }
.pickup-pref-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.pickup-pref-fields input[type="date"] { flex: 2; min-width: 160px; }
.pickup-pref-fields select { flex: 1; min-width: 140px; }
.items-section { border: 1px solid var(--border); padding: 1rem; border-radius: 8px; background: var(--cream-warm); }
.item-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-bottom: 0.5rem; }
.item-row:last-child { margin-bottom: 0; }
.quantity-input { width: 60px; padding: 5px; border: 1px solid #ccc; border-radius: 4px; text-align: center; }
.submit-btn { padding: 14px; background: var(--amber); color: var(--espresso); border: none; border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background 0.15s; }
.submit-btn:hover { background: var(--amber-light); }
.success-message { display: none; background: #e8f5e9; border: 1px solid #4caf50; color: #2e7d32; padding: 1rem; border-radius: 4px; }
.error-message { display: none; background: #ffebee; border: 1px solid #d32f2f; color: #c62828; padding: 1rem; border-radius: 4px; }

/* ── Payment result pages ───────────────────────────────────── */
.payment-result { text-align: center; padding: 3rem 1rem; }
.payment-result-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.payment-result--success .payment-result-icon { color: #166534; }
.payment-result--cancel .payment-result-icon { color: #c62828; }
.payment-result h2 { margin: 0 0 0.5rem; color: var(--text-dark); }
.payment-result p { color: var(--brown-mid); margin: 0; }

/* ── Mobile nav (hamburger) ────────────────────────────────── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px 4px; color: rgba(255,255,255,0.8); flex-direction: column; justify-content: center; gap: 5px; flex-shrink: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--espresso); flex-direction: column; padding: 0.5rem 0 1rem; box-shadow: 0 4px 16px rgba(0,0,0,0.4); z-index: 99; }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { height: auto; padding: 14px 1.5rem; font-size: 0.88rem; letter-spacing: 0.04em; border-bottom: none; border-left: 3px solid transparent; }
  .site-nav a.active { border-bottom: none; border-left-color: var(--amber-light); }
  .container { margin: 1.5rem 0.75rem; padding: 1.5rem 1.25rem; }
  .story-wrap { padding: 1.5rem 0.75rem 2rem; }
  .story-card { padding: 1.5rem 1.25rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .hero-logo { width: 120px; margin-bottom: 1.25rem; }
  .page-banner { padding: 2.25rem 1.25rem 2rem; }
}

/* ── Admin Panel ───────────────────────────────────────────── */
[hidden] { display: none !important; }
body.admin-page { background: #f4f4f0; min-height: 100vh; display: flex; flex-direction: column; }
.admin-footer { text-align: center; font-size: 0.75rem; padding: 16px; color: #aaa; margin-top: auto; }

/* Login */
.admin-login-screen { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.admin-login-card { background: white; border-radius: 16px; padding: 2.5rem 2rem; width: 100%; max-width: 360px; box-shadow: 0 4px 24px rgba(0,0,0,0.1); text-align: center; }
.admin-login-logo { font-size: 1.3rem; font-weight: 800; color: #3E2723; margin-bottom: 4px; }
.admin-login-sub { color: #8D6E63; font-size: 0.9rem; margin: 0 0 1.5rem; }
.admin-login-input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1.5px solid #ddd; border-radius: 8px; font-size: 1rem; margin-bottom: 12px; outline: none; transition: border-color 0.2s; }
.admin-login-input:focus { border-color: #FFB300; }
.admin-login-btn { width: 100%; padding: 12px; background: #FFB300; color: #3E2723; border: none; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.15s; }
.admin-login-btn:hover { background: #e6a000; }
.admin-login-btn:disabled { opacity: 0.6; cursor: default; }
.admin-login-error { color: #c62828; font-size: 0.85rem; margin: 8px 0 0; }

/* Top bar */
.admin-topbar { background: #3E2723; color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; height: 52px; position: sticky; top: 0; z-index: 100; }
.admin-topbar-title { font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; }
.admin-topbar-link { color: #FFB300; font-size: 0.85rem; text-decoration: none; font-weight: 600; }
.admin-topbar-link:hover { text-decoration: underline; }
.admin-topbar-signout { background: none; border: 1px solid rgba(255,255,255,0.3); color: white; border-radius: 6px; padding: 5px 12px; font-size: 0.82rem; cursor: pointer; }
.admin-topbar-signout:hover { background: rgba(255,255,255,0.1); }

/* Content area */
.admin-content { max-width: 760px; margin: 0 auto; padding: 1.25rem 1rem 2rem; width: 100%; box-sizing: border-box; }
.admin-content--wide { max-width: 100%; padding-left: 1.5rem; padding-right: 1.5rem; }

/* Tabs */
.admin-tabs { display: flex; border-bottom: 2px solid #e0d8d0; margin-bottom: 1.5rem; }
.admin-tab { padding: 10px 20px; border: none; background: none; cursor: pointer; font-weight: 600; color: #8D6E63; border-bottom: 3px solid transparent; margin-bottom: -2px; font-size: 0.95rem; transition: color 0.15s; }
.admin-tab.active { border-bottom-color: #FFB300; color: #3E2723; }
.admin-subtab-bar { display: flex; gap: 6px; margin-bottom: 1.25rem; }
.admin-subtab { background: transparent; border: 1.5px solid #d0c8c0; border-radius: 20px; padding: 5px 18px; font-size: 0.82rem; font-weight: 700; cursor: pointer; color: #8D6E63; letter-spacing: 0.02em; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.admin-subtab.active { background: #3E2723; color: white; border-color: #3E2723; }

/* Toolbar */
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.admin-section-title { margin: 0; font-size: 1.15rem; color: #3E2723; }

/* Buttons */
.admin-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 18px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none; transition: background 0.15s, opacity 0.15s; line-height: 1.4; }
.admin-btn:disabled { opacity: 0.5; cursor: default; }
.admin-btn-primary { background: #FFB300; color: #3E2723; }
.admin-btn-primary:hover:not(:disabled) { background: #e6a000; }
.admin-btn-outline { background: white; color: #3E2723; border: 1.5px solid #d0c8c0; }
.admin-btn-outline:hover:not(:disabled) { background: #f9f5f0; }
.admin-btn-ghost { background: transparent; color: #8D6E63; border: none; }
.admin-btn-ghost:hover:not(:disabled) { background: #f0ebe5; }
.admin-btn-danger { background: #c62828; color: white; }
.admin-btn-danger:hover:not(:disabled) { background: #8e0000; }
.admin-btn-success { background: #2e7d32; color: white; }
.admin-btn-success:hover:not(:disabled) { background: #1b5e20; }
.admin-btn-warning { background: #FDD835; color: #3E2723; }
.admin-btn-warning:hover:not(:disabled) { background: #F9A825; }
/* History month accordion */
.admin-history-month { margin-bottom: 6px; }
.admin-history-month-hdr { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #f9f5f0; border: 1.5px solid #e8ddd0; border-radius: 8px; cursor: pointer; text-align: left; font-family: inherit; }
.admin-history-month-hdr:hover { background: #f0ebe5; }
.admin-history-month-name { font-weight: 700; color: #3E2723; font-size: 0.95rem; flex: 1; }
.admin-history-month-count { font-size: 0.82rem; color: #8D6E63; }
.admin-history-chevron { color: #8D6E63; font-size: 1.3rem; line-height: 1; transition: transform 0.2s; display: inline-block; }
.admin-history-chevron--open { transform: rotate(90deg); }
.admin-history-month-body { padding-top: 6px; }
/* Order secondary actions row */
.admin-order-secondary { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.admin-btn-sm { padding: 5px 12px; font-size: 0.8rem; border-radius: 6px; }

/* Status pills */
.admin-pill { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: capitalize; letter-spacing: 0.03em; }
.admin-pill--warn { background: #FFF8E1; color: #B45309; border: 1px solid #F59E0B; }
.admin-pill--ok { background: #E8F5E9; color: #166534; border: 1px solid #86EFAC; }
.admin-pill--info { background: #EFF6FF; color: #1D4ED8; border: 1px solid #93C5FD; }
.admin-pill--muted { background: #F3F4F6; color: #6B7280; border: 1px solid #D1D5DB; }
.admin-pill--hidden { background: #F3F4F6; color: #6B7280; border: 1px solid #D1D5DB; font-size: 0.72rem; }
.admin-pill--danger { background: #FEF2F2; color: #991B1B; border: 1px solid #FCA5A5; }

/* Product list */
.admin-loading, .admin-empty { color: #999; font-size: 0.95rem; padding: 1rem 0; }
.admin-group { margin-bottom: 2rem; }
.admin-group-header { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #8D6E63; margin-bottom: 8px; }
.admin-product-card { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; background: white; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.admin-product-card--hidden { opacity: 0.5; }
.admin-product-thumb img { width: 72px; height: 56px; object-fit: cover; border-radius: 6px; display: block; }
.admin-product-no-img { width: 72px; height: 56px; background: #f0ebe5; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: #bbb; text-align: center; }
.admin-product-name { font-weight: 600; font-size: 0.95rem; color: #3E2723; }
.admin-product-meta { font-size: 0.82rem; color: #8D6E63; margin-top: 2px; }
.admin-product-desc { font-size: 0.78rem; color: #aaa; font-style: italic; margin-top: 2px; }
.admin-product-btns { display: flex; flex-direction: column; gap: 5px; }

/* Category manager */
.admin-cat-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0ebe5; }
.admin-cat-row:last-child { border-bottom: none; }
.admin-cat-order { font-size: 0.78rem; color: #bbb; min-width: 26px; text-align: center; flex-shrink: 0; }
.admin-cat-name { flex: 1; font-weight: 500; color: #3E2723; font-size: 0.95rem; }
.admin-cat-btns { display: flex; gap: 6px; flex-shrink: 0; }
.admin-cat-add { display: flex; gap: 8px; align-items: center; padding-top: 14px; margin-top: 14px; border-top: 1px solid #f0ebe5; }
.admin-cat-add-order { width: 72px; flex-shrink: 0; }

/* Order cards */
.admin-order-card { background: white; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.admin-order-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.admin-order-name { font-size: 1rem; color: #3E2723; }
.admin-order-date { color: #bbb; font-size: 0.8rem; margin-left: auto; }
.admin-order-contact { font-size: 0.85rem; color: #555; margin-bottom: 6px; }
.admin-order-contact a { color: #8D6E63; text-decoration: none; }
.admin-order-items { font-size: 0.88rem; color: #444; margin-bottom: 4px; }
.admin-order-pickup { font-size: 0.88rem; color: #444; margin-bottom: 4px; }
.admin-order-notes { font-size: 0.85rem; color: #888; font-style: italic; margin-bottom: 4px; }
.admin-order-status-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0ebe5; }
.admin-status-select { padding: 6px 10px; border-radius: 6px; border: 1.5px solid #ddd; font-size: 0.88rem; background: white; }

/* Modal backdrop */
.admin-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 200; }

/* Sheet (modal) */
.admin-sheet { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-radius: 20px 20px 0 0; z-index: 201; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 -4px 30px rgba(0,0,0,0.15); }
.admin-sheet-header { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem 0.75rem; border-bottom: 1px solid #f0ebe5; flex-shrink: 0; }
.admin-sheet-title { margin: 0; font-size: 1.1rem; color: #3E2723; }
.admin-sheet-close { background: #f0ebe5; border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 1rem; cursor: pointer; color: #8D6E63; display: flex; align-items: center; justify-content: center; }
.admin-sheet-body { overflow-y: auto; padding: 1.1rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.admin-sheet-footer { padding: 0.9rem 1.25rem; border-top: 1px solid #f0ebe5; display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0; background: white; border-radius: 0 0 0 0; }

/* Form fields */
.admin-field-group { display: flex; flex-direction: column; gap: 5px; }
.admin-field-label { font-size: 0.82rem; font-weight: 700; color: #8D6E63; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-field-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: #bbb; }
.admin-field-input { padding: 10px 12px; border: 1.5px solid #ddd; border-radius: 8px; font-size: 0.95rem; font-family: inherit; color: #3E2723; outline: none; transition: border-color 0.2s; background: white; }
.admin-field-input:focus { border-color: #FFB300; }
.admin-field-textarea { resize: vertical; min-height: 64px; }
.admin-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-field-group--short { min-width: 0; }

/* Image upload */
.admin-img-preview-wrap { width: 100%; background: #f9f5f0; border-radius: 10px; overflow: hidden; min-height: 90px; display: flex; align-items: center; justify-content: center; }
.admin-img-preview { width: 100%; max-height: 200px; object-fit: contain; display: block; }
.admin-img-placeholder { color: #ccc; font-size: 0.85rem; padding: 2rem; }
.admin-img-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-img-btn { flex: 1; min-width: 120px; cursor: pointer; }
.admin-upload-status { font-size: 0.82rem; color: #8D6E63; margin: 0; }

/* On wider screens, center the sheet like a dialog */
@media (min-width: 600px) {
    .admin-sheet { left: 50%; right: auto; transform: translateX(-50%); width: 560px; border-radius: 16px; bottom: auto; top: 50%; transform: translate(-50%, -50%); max-height: 88vh; }
}

/* ── Order card editable items ──────────────────────────────── */
.admin-order-items-edit { margin: 8px 0 4px; }
.admin-order-item-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid #f5f0ec; }
.admin-order-item-row:last-child { border-bottom: none; }
.admin-order-item-row .qty-stepper { margin: 0; padding: 0; border: none; flex-shrink: 0; }
.admin-order-item-name { flex: 1; font-size: 0.9rem; color: #3E2723; }
.admin-order-item-line { font-size: 0.85rem; color: #8D6E63; font-weight: 600; min-width: 52px; text-align: right; }
.admin-order-total-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 4px; font-size: 0.95rem; color: #3E2723; border-top: 1.5px solid #e0d8d0; margin-top: 4px; }
.admin-order-edit-fields { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.admin-order-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
/* ── New order modal ────────────────────────────────────────── */
.no-cat-label { font-size: 0.72rem; font-weight: 700; color: #8D6E63; text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 0 4px; }
.no-cat-label:first-child { padding-top: 4px; }

/* ── CSV export bar ─────────────────────────────────────────── */
/* ── Bake Schedule tab ──────────────────────────────────────── */
.sched-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.sched-title { font-size: 1.6rem; font-weight: 800; color: #3E2723; margin: 0 0 2px; }
.sched-subtitle { font-size: 0.9rem; color: #8D6E63; margin: 0; }
.sched-topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.sched-sel-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#sched-sel-count { font-size: 0.95rem; font-weight: 700; color: #3E2723; white-space: nowrap; }

/* Grid: single column on narrow, 2-col on wide */
.sched-list { display: grid; grid-template-columns: 1fr; gap: 14px; padding-bottom: 40px; flex: 1; min-width: 0; }
@media (min-width: 900px) { .sched-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1400px) { .sched-list { grid-template-columns: 1fr 1fr 1fr; } }
/* When the side panel is open, drop to 1-col grid so cards don't feel cramped */
.sched-layout--panel-open .sched-list { grid-template-columns: 1fr; }
@media (min-width: 1300px) { .sched-layout--panel-open .sched-list { grid-template-columns: 1fr 1fr; } }

/* Day cards */
.sched-day { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(62,39,35,0.08); border: 1.5px solid #ece4dc; }
.sched-day--today { box-shadow: 0 4px 20px rgba(62,39,35,0.18); border-color: #FFB300; }
.sched-day--selected { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.25); }

/* Day header — filled band */
.sched-day-header { display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; background: #f7f2ed; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.sched-day--today .sched-day-header { background: #3E2723; }
.sched-day--selected .sched-day-header { background: #dbeafe; }
.sched-day-header:active { filter: brightness(0.96); }

/* Checkbox — hidden until selection mode */
.sched-day-check { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid #c9bfb8; background: white; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: transparent; flex-shrink: 0; transition: all 0.18s; visibility: hidden; }
.sched-list--selecting .sched-day-check { visibility: visible; }
.sched-day-check--on { background: #3B82F6 !important; border-color: #3B82F6 !important; color: white !important; }

.sched-day-info { flex: 1; min-width: 0; }
.sched-day-name { font-size: 1.2rem; font-weight: 800; color: #3E2723; line-height: 1.2; }
.sched-day--today .sched-day-name { color: #FFB300; }
.sched-day--selected .sched-day-name { color: #1D4ED8; }
.sched-day-meta { font-size: 0.95rem; color: #8D6E63; margin-top: 4px; font-weight: 500; }
.sched-day--today .sched-day-meta { color: rgba(255,255,255,0.7); }

.sched-day-chevron { font-size: 1.6rem; color: #8D6E63; line-height: 1; transition: transform 0.2s; flex-shrink: 0; font-weight: 300; }
.sched-day--today .sched-day-chevron { color: rgba(255,255,255,0.6); }
.sched-day-chevron--open { transform: rotate(90deg); }

/* Order rows */
.sched-day-body { background: white; }
.sched-order { display: flex; gap: 18px; padding: 18px 22px; border-bottom: 1px solid #f5f0eb; }
.sched-order:last-child { border-bottom: none; }
.sched-order-time { font-size: 1.25rem; font-weight: 800; color: #C45A00; min-width: 88px; padding-top: 1px; flex-shrink: 0; letter-spacing: -0.01em; }
.sched-order-body { flex: 1; min-width: 0; }
.sched-order-name { font-size: 1.05rem; font-weight: 700; color: #3E2723; margin-bottom: 8px; }
.sched-order-items { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sched-order-items li { font-size: 1.05rem; color: #4E342E; line-height: 1.4; }
.sched-order-items li::before { content: "·  "; color: #FFB300; font-weight: 700; }
.sched-order-note { font-size: 0.92rem; color: #8D6E63; margin-top: 8px; font-style: italic; padding: 6px 10px; background: #fdf9f4; border-radius: 6px; border-left: 3px solid #FFB300; }

/* Totals bottom sheet */
.sched-totals-sheet { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-radius: 20px 20px 0 0; padding: 28px 28px 40px; z-index: 200; max-height: 70vh; overflow-y: auto; box-shadow: 0 -8px 40px rgba(0,0,0,0.18); }
.sched-totals-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sched-totals-title { font-size: 1.2rem; font-weight: 800; color: #3E2723; margin: 0; }
.sched-totals-list { list-style: none; padding: 0; margin: 0; }
.sched-totals-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #f0ebe5; font-size: 1.15rem; color: #3E2723; }
.sched-totals-list li:last-child { border-bottom: none; }
.sched-totals-list li strong { font-size: 1.5rem; font-weight: 800; color: #FFB300; min-width: 52px; text-align: right; flex-shrink: 0; }
.sched-totals-footer { font-size: 0.9rem; color: #8D6E63; margin-top: 20px; text-align: center; }
.sched-totals-section-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #8D6E63; margin: 20px 0 8px; }
.sched-totals-section-title:first-child { margin-top: 0; }
.sched-unmapped-note { font-size: 0.85rem; color: #8D6E63; margin-top: 14px; background: #fdf9f0; border-radius: 8px; padding: 10px 14px; border-left: 3px solid #FFB300; }
.sched-unmapped-note strong { color: #4E342E; }

/* Side panel — slides in from right on desktop, rises as bottom sheet on mobile */
.sched-layout { display: flex; align-items: flex-start; gap: 0; }
.sched-ingr-panel { flex-shrink: 0; width: 0; overflow: hidden; transition: width 0.25s ease; background: white; border-radius: 0 16px 16px 16px; }
.sched-layout--panel-open .sched-ingr-panel { width: 300px; border-left: 2px solid #f0ebe5; }
.sched-ingr-panel-inner { width: 300px; display: flex; flex-direction: column; position: sticky; top: 16px; }
.sched-ingr-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 18px 16px 14px; background: #f7f2ed; border-radius: 0 16px 0 0; flex-shrink: 0; }
.sched-ingr-panel-title { font-size: 0.95rem; font-weight: 800; color: #3E2723; margin: 0; line-height: 1.3; flex: 1; }
.sched-ingr-panel-body { padding: 14px 18px 24px; overflow-y: auto; max-height: calc(100vh - 260px); }
.sched-panel-section-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #8D6E63; margin: 16px 0 8px; }
.sched-panel-section-title:first-child { margin-top: 0; }
.sched-panel-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.sched-panel-list li { font-size: 0.92rem; color: #3E2723; display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f5f0eb; }
.sched-panel-list li:last-child { border-bottom: none; }
.sched-panel-list li strong { font-weight: 800; color: #C45A00; flex-shrink: 0; min-width: 28px; text-align: right; }
@media (max-width: 720px) {
  .sched-layout { display: block; }
  .sched-ingr-panel { position: fixed; bottom: 0; left: 0; right: 0; width: 100% !important; overflow: hidden; border-left: none !important; border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform 0.25s ease; z-index: 150; box-shadow: 0 -4px 28px rgba(0,0,0,0.18); max-height: 60vh; }
  .sched-layout--panel-open .sched-ingr-panel { transform: translateY(0); overflow-y: auto; }
  .sched-ingr-panel-inner { width: 100%; position: static; }
  .sched-ingr-panel-body { max-height: none; }
  .sched-ingr-panel-header { border-radius: 16px 16px 0 0; }
}

/* Ingredients master list modal */
.ingr-add-row { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; }
.ingr-add-name { flex: 1; }
.ingr-add-unit { width: 110px; flex-shrink: 0; }
.ingr-list-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0ebe5; }
.ingr-list-row:last-child { border-bottom: none; }
.ingr-list-name { flex: 1; font-size: 0.95rem; font-weight: 600; color: #3E2723; }
.ingr-list-unit { font-size: 0.9rem; color: #8D6E63; min-width: 70px; }
.ingr-list-btns { display: flex; gap: 6px; flex-shrink: 0; }

/* Per-product ingredient editor */
.prod-ingr-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.prod-ingr-select { flex: 1; min-width: 0; }
.prod-ingr-amount { width: 80px; flex-shrink: 0; }
.prod-ingr-preview { font-size: 0.8rem; color: #8D6E63; white-space: nowrap; min-width: 100px; }

.admin-export-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 10px 14px; background: #fdf9f5; border: 1px solid #e8ddd5; border-radius: 10px; }
.admin-export-label { font-size: 0.82rem; font-weight: 700; color: #8D6E63; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.admin-export-fields { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-export-date { width: 140px; padding: 7px 10px !important; font-size: 0.9rem; }
.admin-export-sep { font-size: 0.85rem; color: #8D6E63; }

/* ── Payment link section (inside order cards) ──────────────── */
.admin-payment-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0ebe5; }
.admin-payment-header { margin-bottom: 8px; }
.admin-payment-label { font-size: 0.82rem; font-weight: 700; color: #8D6E63; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-payment-sent-label { font-size: 0.82rem; font-weight: 700; color: #166534; }
.admin-payment-fields { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.admin-payment-amount-wrap { display: flex; align-items: center; border: 1.5px solid #ddd; border-radius: 8px; background: white; overflow: hidden; flex-shrink: 0; }
.admin-payment-dollar { padding: 0 8px 0 10px; color: #8D6E63; font-weight: 600; font-size: 0.95rem; line-height: 1; }
.admin-payment-amount-input { border: none !important; border-radius: 0 !important; width: 80px; padding: 10px 10px 10px 0 !important; outline: none; }
.admin-payment-note { flex: 1; min-width: 180px; resize: none; min-height: 58px; font-size: 0.88rem; }
.admin-payment-btn { width: 100%; }
