/* ==========================================================================
   Smashie's Bolton — design system
   ========================================================================== */
:root {
  --color-bg: #121212;
  --color-bg-alt: #1b1b1b;
  --color-surface: #ffffff;
  --color-surface-alt: #f7f5f2;
  --color-ink: #1a1512;
  --color-ink-muted: #6b6258;
  --color-primary: #e8491d;
  --color-primary-dark: #c53a13;
  --color-primary-light: #ff7a45;
  --color-accent: #ffc94a;
  --color-success: #2e7d32;
  --color-danger: #d32f2f;
  --color-border: #e8e2da;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.18);
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-surface-alt);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .font-display { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.eyebrow { display: inline-block; color: var(--color-primary); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; margin-bottom: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 6px 18px rgba(232,73,29,.35); }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn-dark { background: var(--color-ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--color-ink); color: var(--color-ink); }
.btn-outline:hover { background: var(--color-ink); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 50%; }

/* Top bar + nav */
.topbar { background: var(--color-ink); color: #cfc8bf; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #fff; }
.topbar .topbar-links { display: flex; gap: 18px; }

.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.brand img { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { border-color: var(--color-primary); color: var(--color-primary); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--color-surface-alt); border-radius: 999px; padding: 10px 18px; font-weight: 700; }
.cart-badge { position: absolute; top: -6px; right: -6px; background: var(--color-primary); color: #fff; font-size: .7rem; min-width: 20px; height: 20px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.user-chip { font-weight: 600; font-size: .9rem; color: var(--color-ink-muted); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; }

/* Hero */
.hero { position: relative; color: #fff; background: linear-gradient(180deg, rgba(10,8,7,.55), rgba(10,8,7,.82)), var(--color-ink) center/cover; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero .container { padding-top: 90px; padding-bottom: 90px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: .3em; }
.hero p.lead { font-size: 1.15rem; max-width: 560px; color: rgba(255,255,255,.88); }
.hero-badges { display: flex; gap: 14px; margin: 24px 0; flex-wrap: wrap; }
.hero-badge { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; backdrop-filter: blur(4px); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Info strip */
.info-strip { background: var(--color-ink); color: #fff; }
.info-strip .container { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding: 20px; }
.info-strip .item { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.info-strip .item strong { color: var(--color-accent); }

/* Category chips / grid */
.category-scroller { display: flex; gap: 12px; overflow-x: auto; padding: 6px 0 20px; scrollbar-width: thin; }
.category-chip { flex: 0 0 auto; background: #fff; border: 1px solid var(--color-border); padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.category-chip.active, .category-chip:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.cat-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card img { height: 160px; width: 100%; object-fit: cover; }
.cat-card .cat-card-body { padding: 16px 18px; }
.cat-card .cat-card-body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.cat-card .cat-card-body span { color: var(--color-ink-muted); font-size: .85rem; }

/* Menu item cards */
.menu-section-title { font-size: 1.6rem; margin: 46px 0 20px; display: flex; align-items: center; gap: 10px; scroll-margin-top: 140px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.item-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow .18s ease, transform .18s ease; }
.item-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.item-card .item-img-wrap { position: relative; height: 190px; }
.item-card img { width: 100%; height: 100%; object-fit: cover; }
.item-badge { position: absolute; top: 10px; left: 10px; background: var(--color-success); color: #fff; font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.item-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.item-body h3 { font-size: 1.05rem; margin: 0; }
.item-desc { color: var(--color-ink-muted); font-size: .86rem; flex: 1; }
.item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.item-price { font-weight: 800; font-size: 1.1rem; color: var(--color-primary-dark); }

.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; }
.qty-control button { background: var(--color-surface-alt); border: none; width: 32px; height: 32px; font-size: 1.1rem; font-weight: 700; }
.qty-control input { width: 36px; border: none; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.add-btn { background: var(--color-primary); color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; font-size: 1.3rem; line-height: 1; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background .15s ease, transform .15s; }
.add-btn:hover { background: var(--color-primary-dark); transform: scale(1.06); }

/* Cards / panels / forms */
.card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 28px; }
.form-grid { display: grid; gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  font-size: .95rem; font-family: inherit; background: #fff; color: var(--color-ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(232,73,29,.12); }
.field-hint { font-size: .78rem; color: var(--color-ink-muted); margin-top: 4px; }
.field-error { font-size: .8rem; color: var(--color-danger); margin-top: 4px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .9rem; font-weight: 500; }
.alert-success { background: #e7f6e8; color: var(--color-success); border: 1px solid #bfe3c2; }
.alert-error { background: #fdeceb; color: var(--color-danger); border: 1px solid #f6c4c0; }
.alert-info { background: #eef4fb; color: #2460a7; border: 1px solid #c6ddf2; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.badge-pending { background: #fff3cd; color: #8a6d00; }
.badge-confirmed, .badge-preparing { background: #dbeafe; color: #1d4ed8; }
.badge-ready, .badge-out_for_delivery { background: #ede9fe; color: #6d28d9; }
.badge-completed { background: #dcfce7; color: #15803d; }
.badge-cancelled { background: #fee2e2; color: #b91c1c; }
.badge-paid { background: #dcfce7; color: #15803d; }
.badge-failed { background: #fee2e2; color: #b91c1c; }

/* Footer */
.site-footer { background: var(--color-ink); color: #cfc8bf; padding: 56px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul li { margin-bottom: 8px; font-size: .9rem; }
.site-footer a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: #9a9188; }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }

/* Cart page / drawer */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { padding: 16px 10px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.cart-line-item { display: flex; align-items: center; gap: 14px; }
.cart-line-item img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .95rem; }
.summary-row.total { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--color-border); margin-top: 8px; padding-top: 14px; }

.order-type-toggle { display: flex; gap: 10px; }
.order-type-toggle label { flex: 1; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: 14px; text-align: center; cursor: pointer; font-weight: 700; }
.order-type-toggle input { display: none; }
.order-type-toggle input:checked + span { color: var(--color-primary); }
.order-type-toggle label:has(input:checked) { border-color: var(--color-primary); background: #fff4ef; }

.pay-methods { display: grid; gap: 12px; }
.pay-method { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: 14px 16px; cursor: pointer; font-weight: 600; }
.pay-method:has(input:checked) { border-color: var(--color-primary); background: #fff4ef; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--color-ink-muted); }
.empty-state img, .empty-state .emoji { font-size: 3rem; margin-bottom: 14px; }

table.simple { width: 100%; border-collapse: collapse; }
table.simple th, table.simple td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); font-size: .9rem; }
table.simple th { color: var(--color-ink-muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 20px; gap: 4px; box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .2s ease; }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .hero { min-height: 460px; }
  .topbar .topbar-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand span.brand-text { display: none; }
}
