:root {
  --red: #d71920;
  --red-dark: #af1017;
  --text: #171717;
  --muted: #666;
  --line: #f0d1d3;
  --cream: #fcf1f2;
  --soft: #fff8f8;
  --amber: #f59e0b;
  --green: #0f9f66;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, sans-serif; background: #f7f7f7; color: var(--text); }
body { min-height: 100vh; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.hidden { display: none !important; }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}
.hero {
  background: linear-gradient(180deg, #be0f16, var(--red));
  color: white;
}
.hero.compact { padding: 18px 0; }
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand-lockup { display: flex; gap: 18px; align-items: center; }
.brand-logo { object-fit: contain; display: block; }
.hero-logo { width: 110px; height: 110px; background: rgba(255,255,255,.07); border-radius: 20px; padding: 10px; }
.page-logo, .topbar-logo { width: 72px; height: 72px; background: rgba(255,255,255,.07); border-radius: 16px; padding: 8px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; opacity: .9; }
.hero h1 { margin: 8px 0 8px; font-size: clamp(34px, 6vw, 60px); line-height: 1; }
.hero p { margin: 0; font-size: 20px; max-width: 780px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.badge.light {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}
.main-layout { max-width: 1280px; margin: 0 auto; padding: 18px 18px 32px; }
.toolbar {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.search-wrap { flex: 1; }
.search-wrap input {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 18px;
}
.primary-btn, .ghost-btn {
  border: 0;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}
.primary-btn { background: var(--red); color: white; }
.primary-btn:hover { background: var(--red-dark); }
.ghost-btn { background: #f5f5f5; color: var(--text); }
.ghost-btn.danger { background: #fff0f0; color: var(--red); }
.full { width: 100%; }
.category-sticky-shell {
  position: sticky;
  top: 0;
  z-index: 25;
  padding-top: 10px;
  background: linear-gradient(to bottom, #f7f7f7 0%, #f7f7f7 78%, rgba(247,247,247,0) 100%);
}
.category-strip-wrap { margin-top: 12px; padding: 14px; }
.category-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-strip::-webkit-scrollbar { display: none; }
.category-btn {
  flex: 0 0 auto;
  border: 0;
  background: var(--cream);
  color: var(--red);
  padding: 16px 22px;
  border-radius: 18px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}
.category-btn.active { background: var(--red); color: white; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 130px;
}
.product-card { overflow: hidden; }
.product-image {
  height: 190px;
  background-size: cover;
  background-position: center;
  background-color: #f7e4e6;
}
.product-body { padding: 16px; }
.product-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.product-title { font-size: 18px; font-weight: 800; }
.price { color: var(--red); font-weight: 800; font-size: 18px; }
.desc { color: var(--muted); min-height: 44px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--red);
  font-weight: 700;
  font-size: 12px;
}
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  justify-content: flex-end;
  z-index: 60;
}
.drawer-panel {
  width: min(540px, 100vw);
  height: 100%;
  overflow: auto;
  background: white;
  padding: 18px;
}
.drawer-header, .modal-header, .panel-head, .kitchen-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cart-items { margin: 18px 0; display: grid; gap: 12px; }
.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 18px;
  align-items: start;
}
.cart-row-rich .cart-option { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cart-row-rich .muted-line { opacity: .9; }
.cart-meta, .cart-qty { font-weight: 700; }
.checkout-form { padding: 18px; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: 1fr auto; }
input, textarea, select {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  width: 100%;
  background: white;
}
textarea { min-height: 110px; resize: vertical; }
.total-line { display: flex; justify-content: space-between; margin: 14px 0; font-size: 19px; font-weight: 800; }
.tiny-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.order-type-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.switch-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--red);
  padding: 14px 12px;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
}
.switch-btn.active { background: var(--red); color: white; border-color: var(--red); }
.basket-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: min(760px, calc(100vw - 22px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 36px rgba(0,0,0,.12);
  padding: 18px 20px;
  z-index: 55;
  cursor: pointer;
}
.basket-bar-copy { display: flex; flex-direction: column; gap: 4px; }
.basket-bar-copy span { color: var(--muted); }
.basket-bar-copy strong { font-size: 22px; }
.basket-bar-action {
  background: var(--red);
  color: white;
  border-radius: 20px;
  padding: 16px 24px;
  font-weight: 800;
  white-space: nowrap;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-card {
  width: min(680px, 100%);
  padding: 20px;
}
.modal-price { color: var(--red); font-weight: 800; margin: 8px 0 0; }
.modal-sections { display: grid; gap: 16px; margin: 18px 0; }
.option-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: var(--soft);
}
.option-box h3 { margin-top: 0; margin-bottom: 12px; font-size: 16px; letter-spacing: .04em; }
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
.check-row input { width: auto; accent-color: var(--red); }
.inline-box {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--soft);
}
.modal-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.checks-column { display: grid; gap: 2px; }
.admin-layout {
  max-width: 1200px;
  margin: 22px auto;
  padding: 0 16px 32px;
  display: grid;
  gap: 18px;
}
.panel { padding: 18px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.admin-item {
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  margin-top: 12px;
}
.admin-thumb {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-color: #f5e4e6;
}
.kitchen-body { background: #faf7f7; }
.kitchen-topbar {
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.kitchen-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.board-column { padding: 14px; min-height: calc(100vh - 120px); }
.board-title {
  padding: 12px 14px;
  border-radius: 16px;
  color: white;
  font-weight: 800;
  margin-bottom: 14px;
}
.board-title.red { background: var(--red); }
.board-title.amber { background: var(--amber); }
.board-title.green { background: var(--green); }
.board-list { display: grid; gap: 12px; }
.order-card { padding: 14px; }
.order-card h3 { margin: 0 0 8px 0; font-size: 18px; }
.order-card p { margin: 4px 0; font-size: 14px; }
.order-lines { margin: 10px 0; padding-left: 18px; }
.order-lines li { margin-bottom: 8px; }
.order-subline { font-size: 12px; color: var(--muted); margin-top: 4px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.soft { background: #fffdfd; }
.stack-mobile { align-items: center; }
@media (max-width: 980px) {
  .hero-inner, .panel-head, .kitchen-topbar, .modal-footer, .stack-mobile { flex-direction: column; align-items: stretch; }
  .brand-lockup { align-items: flex-start; }
  .hero-logo { width: 88px; height: 88px; }
  .page-logo, .topbar-logo { width: 64px; height: 64px; }
  .hero p { font-size: 16px; }
  .kitchen-grid { grid-template-columns: 1fr; }
  .admin-item { grid-template-columns: 1fr; }
  .desktop-cart-summary { display: none; }
  .basket-bar {
    width: calc(100vw - 18px);
    bottom: 10px;
    padding: 14px 16px;
    border-radius: 24px;
  }
  .basket-bar-action { padding: 14px 18px; border-radius: 18px; }
  .basket-bar-copy strong { font-size: 18px; }
  .product-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 1fr; }
}
.profile-btn { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.22); padding:12px 16px; border-radius:18px; font-weight:800; }
.profile-avatar { width:22px; height:22px; border-radius:999px; background:#fff; position:relative; display:inline-block; }
.profile-avatar::before { content:''; position:absolute; left:5px; top:3px; width:12px; height:12px; border:2px solid var(--red); border-radius:50%; background:transparent; }
.profile-avatar::after { content:''; position:absolute; left:3px; bottom:1px; width:16px; height:9px; border:2px solid var(--red); border-top:none; border-radius:0 0 12px 12px; }
.white-icon::before, .white-icon::after { border-color: var(--red); }
.field-stack { display:grid; gap:6px; }
.field-label { font-size:13px; font-weight:700; color:var(--muted); }
.status-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:14px; }
.status-card { border:1px solid var(--line); border-radius:20px; padding:16px; background:#fff; display:grid; gap:8px; }
.status-card strong { font-size:22px; }
.profile-order-row, .review-invite-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-top:1px solid #eee; }
.profile-order-row:first-child, .review-invite-row:first-child { border-top:0; }
.status-pill { padding:8px 12px; border-radius:999px; font-size:12px; font-weight:800; text-transform:uppercase; }
.status-pill.new { background:#fff3f3; color:var(--red); }
.status-pill.accepted { background:#fff7e6; color:#a16207; }
.status-pill.completed, .status-pill.delivered { background:#eefbf4; color:#0f9f66; }
.order-again-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:16px; }
.order-again-card { border:1px solid var(--line); border-radius:20px; overflow:hidden; background:#fff; }
.order-again-thumb { height:130px; background-size:cover; background-position:center; background-color:#f6e4e6; }
.order-again-body { padding:12px; display:grid; gap:10px; }
.review-item { border-top:1px solid #eee; padding:14px 0; }
.review-item:first-child { border-top:0; }
.review-top { display:flex; justify-content:space-between; gap:12px; font-weight:800; }
.product-rating-inline { color:var(--muted); font-size:13px; margin-top:4px; }
.price-block { text-align:right; }
.old-price { text-decoration:line-through; color:#888; font-size:14px; }
.subtle-row { color:var(--red); font-size:16px; }
.basket-bar-copy strong { color: var(--red); }
.confirm-actions { display:flex; gap:12px; justify-content:flex-end; }
.kitchen-sidebar { position:fixed; inset:0 auto 0 0; width:280px; background:#fff; border-right:1px solid #eee; padding:20px; transform:translateX(-100%); transition:.2s ease; z-index:80; }
.kitchen-sidebar.open { transform:translateX(0); }
.sidebar-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:70; }
.sidebar-link { display:block; width:100%; text-align:left; margin-top:10px; border:1px solid var(--line); background:#fff; color:var(--text); padding:14px 16px; border-radius:16px; font-weight:800; }
.sidebar-link.active { background:var(--red); color:#fff; border-color:var(--red); }
.admin-review-list { display:grid; gap:12px; }
@media (max-width:980px) {
  .hero-logo { width:116px; height:116px; }
  .status-grid { grid-template-columns:1fr; }
  .profile-btn { align-self:flex-start; }
}

.profile-avatar { background: transparent; }
.profile-avatar.white-icon::before { border-color: #fff; background: transparent; }
.profile-avatar.white-icon::after { border-color: #fff; }
.profile-avatar-user { width: 24px; height: 24px; }
.product-rating-inline, .store-rating-hero, .store-rating-box, .review-top span { color: #f6c948; font-weight: 800; }
.store-rating-hero .tiny-light, .store-rating-box small { color: #f6c948; opacity: .95; }
.tag-option-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px; }
.tag-check { display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:16px; padding:12px 14px; background:var(--soft); }
.tag-check input { width:auto; accent-color: var(--red); }
.full-span { grid-column: 1 / -1; }
.admin-menu-toggle { margin-right: 8px; }
.admin-section-stack { display:grid; gap:18px; }
.admin-sidebar .sidebar-link { margin-top: 12px; }
@media (max-width: 980px) { .admin-menu-toggle { align-self:flex-start; } }

.status-pill.ready { background:#eaf2ff; color:#1d4ed8; }


/* polished visual updates */
.hero { position: relative; overflow: hidden; }
.hero::after { content:''; position:absolute; inset:auto -120px -120px auto; width:320px; height:320px; background:radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 65%); animation: floatGlow 5s ease-in-out infinite; }
@keyframes floatGlow { 0%,100% { transform: translateY(0) scale(1);} 50% { transform: translateY(-14px) scale(1.06);} }
.sticky-category-wrap { backdrop-filter: blur(8px); }
.category-btn[data-category="MOST POPULAR"], .category-btn:first-child { box-shadow: 0 0 0 rgba(215,25,32,.2); animation: popularPulse 2s ease-in-out infinite; }
@keyframes popularPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(215,25,32,.18), 0 0 0 rgba(255,214,102,.0);} 50% { box-shadow: 0 0 0 8px rgba(215,25,32,.08), 0 0 20px rgba(255,214,102,.45);} }
.product-card { transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(0,0,0,.08); }
.profile-btn { background: rgba(255,255,255,.16); }
.outline-user-icon { width:26px; height:26px; display:inline-flex; align-items:center; justify-content:center; color:#fff; background:transparent; border-radius:0; }
.outline-user-icon svg { width:24px; height:24px; display:block; }
.profile-avatar::before, .profile-avatar::after { content:none !important; }
.product-rating-inline, .store-rating-hero, .store-rating-box, .review-top span, .store-rating-hero strong, .store-rating-box strong { color: #ffd84d; }
.sidebar-link { text-decoration: none; }
.kitchen-actions-wide { align-items: center; }
.clock-box { display:grid; gap:4px; text-align:right; min-width: 180px; }
.clock-box strong { font-size: 24px; }
.clock-box span { color: var(--muted); font-size: 12px; }
.password-rules { display:grid; gap:6px; margin-top:-4px; }
.password-rule { font-size:12px; font-weight:700; }
.password-rule.invalid { color: var(--red); }
.password-rule.valid { color: var(--green); }
.courier-login-screen { min-height:100vh; display:grid; place-items:center; padding:18px; }
.courier-login-card { width:min(520px, 100%); padding:24px; text-align:center; }
.courier-login-logo { width:96px; height:96px; margin:0 auto 14px; background:rgba(215,25,32,.06); border-radius:18px; padding:10px; }
.admin-section-stack.hidden { display:none !important; }
@media (max-width: 980px) {
  .hero-logo { width:132px; height:132px; }
  .clock-box { text-align:left; }
}
