/* ── Customer-specific styles ── */

/* Hero Section */
.hero {
  background: var(--bg-alt);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .4rem 1.2rem;
  border-radius: 1000px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--primary); }
.hero-subtitle {
  color: var(--text-body);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.home-brand-lockup {
  margin-bottom: 1.5rem;
}
.home-brand-tmcc {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  line-height: 1;
}
.home-brand-full {
  margin-top: .5rem;
  font-size: clamp(.85rem, 2.5vw, 1.05rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.brand-messages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.brand-message-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.brand-message-card p {
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin: 0;
}

.tmcc-footer {
  background: #1E1E1E;
  color: rgba(255,255,255,.8);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}
.tmcc-footer a { color: #fff; }
.tmcc-footer-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.5rem;
}
.tmcc-footer-logo {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.tmcc-footer-tmcc { color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: .08em; }
.tmcc-footer-name { color: rgba(255,255,255,.65); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.tmcc-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tmcc-footer-label {
  color: rgba(255,255,255,.45);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem;
}
.tmcc-footer-grid p, .tmcc-footer-grid a {
  display: block;
  font-size: .9rem;
  margin-bottom: .3rem;
  color: rgba(255,255,255,.85);
}

/* Category Pills */
.category-pills {
  display: flex;
  gap: .75rem;
  flex-wrap: nowrap;
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .5rem;
  scrollbar-width: thin;
}
.category-pill {
  padding: .5rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-body);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.category-pill:hover, .category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Food Cards */
.food-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.food-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.food-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg);
}
.food-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.food-card:hover .food-card-img img { transform: scale(1.05); }
.food-card-badge {
  position: absolute;
  top: .75rem; left: .75rem;
}
.food-card-unavailable {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem;
  border-radius: 0;
}

.food-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.food-card-category {
  font-size: .7rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .3rem;
}
.food-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .4rem;
}
.food-card-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.food-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.food-card-price { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.food-card-price span { font-size: .85rem; font-weight: 400; color: var(--text-muted); }

/* Qty Control */
.qty-control {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg);
  border-radius: 999px;
  padding: .25rem .5rem;
  border: 1px solid var(--border);
  min-width: 0;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--primary-dark); }
.qty-val {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-dark);
}

/* Cart Items */
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg);
}
.cart-item-name { font-weight: 700; color: var(--text-dark); margin-bottom: .2rem; }
.cart-item-price { color: var(--text-muted); font-size: .85rem; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.cart-item-subtotal { font-weight: 800; color: var(--primary); }
.cart-remove-btn {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: .8rem; transition: color var(--transition);
}
.cart-remove-btn:hover { color: var(--error); }

/* Order Summary Box */
.order-summary {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  font-size: .95rem;
}
.order-summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: .5rem;
  padding-top: 1rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
}
.order-summary-row.total .amount { color: var(--primary); }

/* Order Timeline */
.order-timeline { padding: 1.5rem 0; }
.timeline-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  position: relative;
}
.timeline-step::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 44px;
  width: 2px;
  height: calc(100% - 12px);
  background: var(--border);
}
.timeline-step:last-child::before { display: none; }
.timeline-dot {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.timeline-step.completed .timeline-dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.timeline-step.active .timeline-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(200,16,46,.25); }
  50% { box-shadow: 0 0 0 8px rgba(200,16,46,0); }
}
.timeline-content { flex: 1; padding-top: .4rem; }
.timeline-label { font-weight: 700; color: var(--text-dark); }
.timeline-time  { font-size: .8rem; color: var(--text-muted); }

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  animation: scaleIn .3s ease;
}
.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo-icon {
  width: 72px; height: 72px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
  overflow: hidden;
}
.auth-title { font-size: 1.75rem; margin-bottom: .25rem; font-family: var(--font-display); }
.auth-subtitle { color: var(--text-muted); font-size: .9rem; }

/* Profile */
.profile-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  margin: 0 auto 1rem;
}

/* Checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}
.checkout-city-state-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.location-btn-group { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Delivery section responsive flex containers */
#delivery-section .card-body > div[style*="display:flex"] {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
#delivery-section .card-body > div[style*="display:flex"] > .btn {
  flex: 1;
  min-width: 140px;
}
.map-preview {
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1rem;
  border: 2px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ── Responsive: Customer Pages ── */

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
  /* Hero */
  .hero { padding: 3.5rem 1.25rem; }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
  .hero-actions { gap: .75rem; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .brand-messages { grid-template-columns: repeat(2, 1fr); }
  .tmcc-footer-grid { grid-template-columns: 1fr; }

  /* Food cards */
  .food-card-img { height: 160px; }

  /* Cart items — stack on tiny screens */
  .cart-item { grid-template-columns: 56px 1fr; grid-template-rows: auto auto; gap: .75rem; }
  .cart-item-actions { grid-column: 2; }
  .cart-item-img { width: 56px; height: 56px; }

  /* Auth card */
  .auth-page { padding: 1rem; align-items: flex-start; padding-top: 2rem; }
  .auth-card { padding: 2rem 1.5rem; border-radius: var(--radius-lg); }

  /* Checkout section */
  .checkout-layout { gap: 1.25rem; }
  .order-summary { margin-top: 1rem; }
  .location-btn-group { flex-direction: column; }
  .location-btn-group .btn { width: 100%; }

  /* Delivery section */
  #delivery-section .card-body > div[style*="display:flex"] > .btn {
    flex: 0 1 calc(50% - .5rem);
    min-width: unset;
  }
}

@media (max-width: 600px) {
  .brand-messages { grid-template-columns: 1fr; gap: .75rem; }
  .brand-message-card { padding: 1rem .75rem; }
  .brand-message-card p { font-size: .85rem; }
}

@media (max-width: 480px) {
  /* Hero */
  .hero { padding: 2.5rem 1rem; }
  .hero::after { display: none; }
  .hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .hero-subtitle { font-size: .95rem; margin-bottom: 1.5rem; }

  /* Cart */
  .cart-item { grid-template-columns: 48px 1fr; }
  .cart-item-img { width: 48px; height: 48px; }

  /* Auth */
  .auth-card { padding: 1.5rem 1.25rem; }
  .auth-title { font-size: 1.4rem; }
  .auth-logo-icon { width: 56px; height: 56px; font-size: 1.8rem; }

  /* Order summary */
  .order-summary { padding: 1rem; }
  .order-summary-row { font-size: .9rem; }
  .order-summary-row.total { font-size: 1.05rem; }

  /* Food card */
  .food-card-img { height: 140px; }
  .food-card-body { padding: 1rem; }
  .food-card-name { font-size: 1rem; }
  .food-card-desc { font-size: .8rem; }
  .food-card-price { font-size: 1.1rem; }

  /* Checkout mobile */
  .checkout-layout { gap: 0; }
  .checkout-city-state-grid { grid-template-columns: 1fr; }
  .card { margin-bottom: 1rem; }

  /* Delivery section heading — match PICKUP h3 sizing */
  #delivery-section .card-body h3 {
    margin-bottom: 1rem !important;
  }

  /* Delivery section on small mobile */
  #delivery-section .card-body > div[style*="display:flex"] {
    gap: .75rem;
  }

  #delivery-section .card-body > div[style*="display:flex"] > .btn {
    flex: 0 1 calc(50% - .375rem);
    font-size: .9rem;
    padding: 10px 12px;
  }

  #delivery-section .form-group {
    margin-bottom: 1rem;
  }

  /* Delivery section mobile spacing — match PICKUP layout */
  #delivery-section .card-body > div[style*="margin-bottom:1.5rem"] {
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
  }

  #delivery-section .card-body > div[style*="margin-top:1.5rem"] {
    margin-top: 1rem !important;
  }
}

/* Very small screens — additional responsive rules */
@media (max-width: 390px) {
  .container { padding: 0 1rem; }
  .card-body { padding: 1.25rem 1rem; }

  /* Checkout button groups */
  .card-body > div[style*="display:flex"] {
    flex-wrap: wrap !important;
    gap: .75rem !important;
  }

  .card-body > div[style*="display:flex"] > .btn {
    font-size: .85rem;
    padding: 10px 16px;
    flex-basis: calc(50% - .375rem) !important;
  }

  /* Form elements */
  .form-label { font-size: .85rem; margin-bottom: .35rem; }
  .form-control { padding: .7rem .95rem; font-size: .9rem; }

  /* Card spacing */
  .card { margin-bottom: .75rem; }

  /* Delivery section heading — match PICKUP h3 sizing */
  #delivery-section .card-body h3 {
    margin-bottom: 1rem !important;
  }

  /* Delivery section on very small screens */
  #delivery-section .card-body > div[style*="display:flex"] {
    flex-wrap: wrap;
    gap: .75rem;
  }

  #delivery-section .card-body > div[style*="display:flex"] > .btn {
    flex-basis: calc(50% - .375rem);
    font-size: .85rem;
    padding: 10px 12px;
  }

  /* Delivery section margin overrides for mobile spacing — match PICKUP */
  #delivery-section .card-body > div[style*="margin-bottom:1.5rem"] {
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
  }

  #delivery-section .card-body > div[style*="margin-top:1.5rem"] {
    margin-top: 1rem !important;
  }
}

@media (max-width: 360px) {
  .container { padding: 0 .75rem; }
  .card-body { padding: 1rem .75rem; }
  .form-control { padding: .65rem .85rem; font-size: .88rem; }
  .form-label { font-size: .8rem; }
  .btn { padding: 9px 14px; font-size: .85rem; }
  .btn-lg { padding: .75rem 1.5rem; font-size: .9rem; }

  /* Delivery section heading — match PICKUP h3 sizing */
  #delivery-section .card-body h3 {
    margin-bottom: 1rem !important;
  }

  /* Delivery section on ultra-small screens */
  #delivery-section .card-body > div[style*="display:flex"] > .btn {
    flex-basis: calc(50% - .35rem);
    font-size: .8rem;
    padding: 8px 10px;
  }

  /* Delivery section margin overrides for 360px — match PICKUP */
  #delivery-section .card-body > div[style*="margin-bottom:1.5rem"] {
    margin-bottom: .9rem !important;
    padding-bottom: .9rem !important;
  }

  #delivery-section .card-body > div[style*="margin-top:1.5rem"] {
    margin-top: .9rem !important;
  }
}

/* Ultra-small screens — 320px and below */
@media (max-width: 320px) {
  .container { padding: 0 .7rem; }
  .card-body { padding: .9rem .65rem; }

  /* Delivery section heading — match PICKUP h3 sizing */
  #delivery-section .card-body h3 {
    margin-bottom: 1rem !important;
  }

  /* Delivery section buttons */
  #delivery-section .card-body > div[style*="display:flex"] {
    gap: .6rem;
  }

  #delivery-section .card-body > div[style*="display:flex"] > .btn {
    flex-basis: calc(50% - .3rem);
    font-size: .75rem;
    padding: 7px 8px;
  }

  /* Delivery section margin overrides for 320px — match PICKUP */
  #delivery-section .card-body > div[style*="margin-bottom:1.5rem"] {
    margin-bottom: .8rem !important;
    padding-bottom: .8rem !important;
  }

  #delivery-section .card-body > div[style*="margin-top:1.5rem"] {
    margin-top: .8rem !important;
  }
}

/* Notification banner (WS) */
.status-banner {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: .7rem 1rem;
  font-weight: 600;
  font-size: .9rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  animation: slideInRight .3s ease;
}
