/* ═══════════════════════════════════════════════════
   КОТЛЕТКА ТОМСК — Design System
   Тема: домашняя готовая еда, уют, Томск
═══════════════════════════════════════════════════ */

:root {
  --c-primary:        #C8441A;
  --c-primary-hover:  #A83515;
  --c-primary-light:  #FDEEE8;
  --c-primary-dark:   #8C2C10;

  --c-bg:             #F8F4EF;
  --c-surface:        #FFFFFF;
  --c-surface-warm:   #FEF7F2;

  --c-text:           #1C1107;
  --c-text-secondary: #6B5744;
  --c-text-muted:     #9E8876;

  --c-border:         #E8DDD2;
  --c-border-light:   #F0E9E2;

  --c-hit:            #E8840A;
  --c-hit-bg:         #FFF3E0;

  --c-success:        #2E7D32;
  --c-success-bg:     #E8F5E9;
  --c-error:          #C62828;
  --c-error-bg:       #FFEBEE;
  --c-warning:        #E65100;
  --c-warning-bg:     #FFF3E0;

  --font-body:    'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;

  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  --shadow-sm:   0 1px 3px rgba(28,17,7,.06);
  --shadow-card: 0 1px 3px rgba(28,17,7,.06), 0 4px 16px rgba(28,17,7,.07);
  --shadow-btn:  0 2px 8px rgba(200,68,26,.28);
  --shadow-lg:   0 8px 32px rgba(28,17,7,.12);

  --transition: .15s ease;
}

/* ── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── TYPOGRAPHY ────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--c-text);
}

/* ── LAYOUT ────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HEADER ────────────────────────────────────── */
.site-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--c-primary);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  display: block;
  line-height: 1.15;
}

.logo-city {
  font-size: 10.5px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: .9px;
  display: block;
}

.header-spacer { flex: 1; }

.header-phone {
  color: var(--c-text-secondary);
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: color var(--transition);
}

.header-phone:hover { color: var(--c-primary); }

.header-cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition);
  flex-shrink: 0;
}

.header-cart-btn:hover { background: var(--c-primary-hover); }

.header-cart-count {
  background: rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
}

/* ── HERO ──────────────────────────────────────── */
.hero {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 36px 20px;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero h1 em { font-style: normal; color: var(--c-primary); }

.hero-sub {
  color: var(--c-text-secondary);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-secondary);
}

.hero-meta-icon {
  width: 30px;
  height: 30px;
  background: var(--c-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #F5E6D8 0%, #EDD5B8 50%, #E5C9A5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  text-align: center;
  padding: 20px;
}

.hero-image-placeholder span { font-size: 68px; display: block; margin-bottom: 8px; }
.hero-image-placeholder p { font-size: 13px; color: var(--c-text-muted); font-style: italic; }

/* ── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--c-primary-hover);
  box-shadow: 0 4px 14px rgba(200,68,26,.35);
}

.btn-secondary {
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}

.btn-secondary:hover { border-color: var(--c-primary); color: var(--c-primary); }

.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
}

.btn-ghost:hover { background: var(--c-primary-light); }

.btn-lg { padding: 14px 32px; font-size: 15px; }

/* ── CATALOG ───────────────────────────────────── */
.catalog-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.catalog-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: var(--c-surface);
  color: var(--c-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-light);
}

.search-input::placeholder { color: var(--c-text-muted); }

.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cat-chip {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-secondary);
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cat-chip:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-light); }
.cat-chip.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.section-heading {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 18px;
}

/* ── PRODUCT CARDS ─────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.product-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border-light);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-image-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #F5E8D8, #EDD5B8);
  position: relative;
  flex-shrink: 0;
}

.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.badge-hit {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--c-hit-bg);
  color: var(--c-hit);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 12px;
  color: var(--c-text-secondary);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-ingredients {
  font-size: 11px;
  color: var(--c-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.card-weight {
  font-size: 11px;
  color: var(--c-text-muted);
  margin-top: auto;
  padding-top: 6px;
  padding-bottom: 10px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.card-price {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
}

.btn-add-to-cart {
  background: var(--c-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-add-to-cart:hover { background: var(--c-primary-hover); }

.qty-controls {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--c-primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 32px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.qty-btn:hover { background: var(--c-primary-light); }

.qty-value {
  min-width: 26px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  padding: 0 2px;
}

/* ── FLOATING CART ─────────────────────────────── */
.float-cart {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 14px 22px;
  box-shadow: 0 8px 32px rgba(200,68,26,.40);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.float-cart:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(200,68,26,.45); }
.float-cart-icon { font-size: 18px; }
.float-cart-info { line-height: 1.25; }
.float-cart-count { font-size: 12px; opacity: .8; }
.float-cart-total { font-size: 15px; font-weight: 700; }

/* ── STORE CLOSED BANNER ───────────────────────── */
.store-closed-banner {
  background: var(--c-warning-bg);
  border: 1px solid #FFCC80;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--c-warning);
}

/* ── CART PAGE ─────────────────────────────────── */
.cart-page {
  max-width: 840px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 28px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--c-text-secondary);
}

.cart-empty-icon { font-size: 56px; display: block; margin-bottom: 16px; }
.cart-empty p { font-size: 16px; margin-bottom: 24px; }

.cart-items {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  overflow: hidden;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border-light);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, #F5E8D8, #EDD5B8);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 14px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 13px; color: var(--c-text-muted); }
.cart-item-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.cart-item-total {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  min-width: 64px;
  text-align: right;
}

.btn-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-text-muted);
  padding: 4px;
  border-radius: var(--radius-xs);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

.btn-remove:hover { color: var(--c-error); }

.cart-summary {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  padding: 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  color: var(--c-text-secondary);
}

.cart-summary-row.total {
  border-top: 1px solid var(--c-border);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
  font-family: var(--font-heading);
}

.cart-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* ── CHECKOUT ──────────────────────────────────── */
.checkout-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.checkout-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  padding: 28px;
  margin-bottom: 20px;
}

.checkout-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fulfillment-toggle {
  display: flex;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 22px;
}

.fulfillment-option { flex: 1; position: relative; }

.fulfillment-option input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }

.fulfillment-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-secondary);
  background: var(--c-surface);
  transition: all var(--transition);
  border-right: 1px solid var(--c-border);
}

.fulfillment-option:last-child .fulfillment-label { border-right: none; }
.fulfillment-option input:checked + .fulfillment-label { background: var(--c-primary); color: #fff; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group:last-child { margin-bottom: 0; }

.form-label { font-size: 13px; font-weight: 600; color: var(--c-text-secondary); }
.form-label .required { color: var(--c-primary); margin-left: 2px; }

.form-input, .form-textarea {
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--c-text);
  background: var(--c-bg);
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  background: var(--c-surface);
  box-shadow: 0 0 0 3px var(--c-primary-light);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--c-text-muted); }
.form-textarea { resize: vertical; min-height: 80px; }

.delivery-fields {
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--c-bg);
  margin-bottom: 14px;
}

.delivery-fields .form-group { margin-bottom: 12px; }

.pickup-info {
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--c-surface-warm);
  display: none;
  margin-bottom: 14px;
}

.pickup-info p { font-size: 14px; color: var(--c-text-secondary); }
.pickup-info strong { display: block; font-size: 15px; color: var(--c-text); margin-bottom: 4px; }

.consent-block {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--c-bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 20px;
  border: 1px solid var(--c-border-light);
}

.consent-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--c-primary);
  cursor: pointer;
}

.consent-text { font-size: 12px; color: var(--c-text-secondary); line-height: 1.55; }
.consent-text a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }

.payment-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-secondary);
  background: var(--c-surface-warm);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 16px;
}

.checkout-summary {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
}

.checkout-summary-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--c-text-secondary);
  padding: 5px 0;
}

.checkout-summary-item span:last-child { font-weight: 500; color: var(--c-text); }

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 1px solid var(--c-border);
}

.checkout-total-label { font-size: 15px; font-weight: 600; }
.checkout-total-price { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--c-text); }
.checkout-submit { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ── ORDER TRACKING ────────────────────────────── */
.tracking-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.tracking-header { text-align: center; margin-bottom: 32px; }

.tracking-number { font-family: var(--font-heading); font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.tracking-number span { color: var(--c-primary); }

.tracking-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
}

.status-new       { background: #E3F2FD; color: #1565C0; }
.status-confirmed { background: #E8F5E9; color: #2E7D32; }
.status-preparing { background: #FFF8E1; color: #F57F17; }
.status-ready     { background: #E8F5E9; color: #2E7D32; }
.status-on_way    { background: #F3E5F5; color: #6A1B9A; }
.status-delivered { background: #E8F5E9; color: #1B5E20; }
.status-completed { background: #E8F5E9; color: #1B5E20; }
.status-cancelled { background: #FFEBEE; color: #B71C1C; }

.tracking-timeline {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.timeline-steps { display: flex; flex-direction: column; }

.timeline-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 20px;
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: var(--c-border);
  color: var(--c-text-muted);
  position: relative;
  z-index: 1;
}

.timeline-step.done .timeline-dot { background: var(--c-primary); color: #fff; }
.timeline-step.active .timeline-dot { background: var(--c-primary); color: #fff; box-shadow: 0 0 0 4px var(--c-primary-light); }

.timeline-line {
  position: absolute;
  left: 14px;
  top: 28px;
  bottom: -20px;
  width: 1px;
  background: var(--c-border);
}

.timeline-step.done .timeline-line { background: var(--c-primary); opacity: .4; }
.timeline-step:last-child .timeline-line { display: none; }

.timeline-content { padding-top: 4px; }
.timeline-label { font-size: 14px; font-weight: 600; color: var(--c-text-muted); }
.timeline-step.done .timeline-label,
.timeline-step.active .timeline-label { color: var(--c-text); }
.timeline-time { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }

.tracking-meta {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.tracking-meta dl { display: flex; flex-direction: column; gap: 0; }

.tracking-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border-light);
}

.tracking-meta-row:last-child { border-bottom: none; }
.tracking-meta-row dt { color: var(--c-text-muted); }
.tracking-meta-row dd { font-weight: 500; text-align: right; }

/* ── LEGAL PAGES ───────────────────────────────── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.legal-page h1 { font-size: 28px; margin-bottom: 8px; }
.legal-updated { font-size: 13px; color: var(--c-text-muted); margin-bottom: 32px; }

.legal-body h2 { font-size: 17px; margin-top: 28px; margin-bottom: 10px; color: var(--c-text); }
.legal-body p { margin-bottom: 12px; color: var(--c-text-secondary); font-size: 14px; line-height: 1.65; }
.legal-body ul, .legal-body ol { padding-left: 20px; margin-bottom: 12px; }
.legal-body li { color: var(--c-text-secondary); font-size: 14px; line-height: 1.65; margin-bottom: 4px; }
.legal-body strong { color: var(--c-text); }

/* ── STAFF INTERFACE ───────────────────────────── */
.staff-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.staff-page .page-title { font-size: 22px; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }

.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.stat-label { font-size: 12px; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.stat-value { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--c-text); }
.stat-card.highlight .stat-value { color: var(--c-primary); }

.staff-filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }

.staff-filter-select {
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
}

.staff-filter-select:focus { outline: none; border-color: var(--c-primary); }

.staff-search {
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--c-surface);
  color: var(--c-text);
}

.staff-search:focus { outline: none; border-color: var(--c-primary); }

.orders-table-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.orders-table { width: 100%; border-collapse: collapse; }

.orders-table th {
  background: var(--c-bg);
  padding: 11px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}

.orders-table td {
  padding: 13px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--c-border-light);
  vertical-align: middle;
}

.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: var(--c-bg); }

.order-link { color: var(--c-primary); text-decoration: none; font-weight: 600; }
.order-link:hover { text-decoration: underline; }

.fulfillment-badge { display: inline-block; padding: 3px 8px; border-radius: var(--radius-xs); font-size: 11px; font-weight: 700; }
.fulfillment-delivery { background: #E3F2FD; color: #1565C0; }
.fulfillment-pickup   { background: #F3E5F5; color: #6A1B9A; }

.status-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.staff-new-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-primary-light);
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  animation: pulse-alert 1.5s ease-in-out infinite;
}

.staff-new-alert a { color: var(--c-primary); font-weight: 700; }

@keyframes pulse-alert {
  0%, 100% { opacity: 1; }
  50%       { opacity: .7; }
}

.status-select {
  padding: 5px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  background: var(--c-surface);
  cursor: pointer;
  color: var(--c-text);
}

/* ── ALERTS ────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-success { background: var(--c-success-bg); color: var(--c-success); border: 1px solid #A5D6A7; }
.alert-error   { background: var(--c-error-bg); color: var(--c-error); border: 1px solid #FFCDD2; }
.alert-warning { background: var(--c-warning-bg); color: var(--c-warning); border: 1px solid #FFCC80; }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--c-text);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  pointer-events: auto;
  white-space: nowrap;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--c-error); }
.toast.success { background: var(--c-success); }

/* ── FOOTER ────────────────────────────────────── */
.site-footer { background: #1C1107; color: rgba(255,255,255,.65); }

.footer-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo-name { color: #fff; font-size: 17px; }
.footer-brand .logo-city { color: rgba(255,255,255,.35); }

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin-top: 14px;
  margin-bottom: 18px;
}

.footer-phone { color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; display: block; margin-bottom: 4px; transition: color var(--transition); }
.footer-phone:hover { color: var(--c-primary-light); }
.footer-hours { font-size: 12px; color: rgba(255,255,255,.4); }

.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 14px; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: rgba(255,255,255,.55); text-decoration: none; font-size: 13px; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1000px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 15px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .header-phone { display: none; }
  .products-grid { gap: 10px; }
  .card-body { padding: 11px 11px 13px; }
  .card-name { font-size: 14px; }
  .card-price { font-size: 16px; }
  .hero { padding: 24px 16px; }
}

@media (max-width: 860px) {
  .orders-table th:nth-child(5),
  .orders-table td:nth-child(5) { display: none; }
}

@media (max-width: 680px) {
  .orders-table th:nth-child(3),
  .orders-table td:nth-child(3) { display: none; }
}
