/* =========================================================
   FEASTLY — pages.css
   Page-specific layouts
   ========================================================= */

/* =========================================================
   1. HOME — HERO
   ========================================================= */
.hero {
  position: relative;
  padding: var(--s-8) 0 var(--s-6);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: var(--s-10) 0 var(--s-8); }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: var(--s-9); }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--brand-soft);
  color: var(--brand-700);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.hero__eyebrow svg { width: 13px; height: 13px; }

.hero h1 {
  font-size: clamp(32px, 6vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: var(--s-4);
}
.hero h1 .accent { color: var(--brand); }
.hero__sub {
  font-size: var(--fs-lg);
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: var(--s-6);
}

.hero__search { max-width: 560px; margin-bottom: var(--s-4); }

.hero__stats {
  display: flex;
  gap: var(--s-6);
  margin-top: var(--s-6);
  flex-wrap: wrap;
}
.hero__stat strong {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero__stat span {
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-inline: auto;
  display: none;
}
@media (min-width: 900px) { .hero__visual { display: block; } }

.hero__blob {
  position: absolute;
  inset: 6% 6% 6% 6%;
  background: radial-gradient(circle at 30% 30%,
              var(--brand) 0%, #ff8f5c 45%, #ffb98f 100%);
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  filter: blur(2px);
  opacity: .18;
  animation: blob 12s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; }
  50%      { border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; }
}
.hero__plate {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--sh-3);
  background: var(--bg-3);
}

@keyframes floatCard {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -5px, 0); }
}

.hero__plate img {
  animation: floaty 12s ease-in-out infinite;
}
/* =========================================================
   2. HOME — CATEGORY STRIP
   ========================================================= */
.cat-row {
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: var(--s-2);
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--sh-1);
  transition: all var(--dur-1) var(--ease);
}
.cat-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}
.cat-pill.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.cat-pill__emoji {
  font-size: 18px;
  line-height: 1;
}

/* =========================================================
   3. HOME — RESTAURANT CAROUSEL
   ========================================================= */
.rest-row {
  padding-bottom: var(--s-3);
}
@media (max-width: 640px) {
  .rest-row { padding-inline: var(--s-4); margin-inline: calc(var(--s-4) * -1); }
  .rest-row > *:first-child { margin-left: var(--s-4); }
  .rest-row > *:last-child { margin-right: var(--s-4); }
}

/* =========================================================
   4. HOME — DISH GRID
   ========================================================= */
.dish-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 640px) {
  .dish-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .dish-grid { grid-template-columns: repeat(4, 1fr); }
}

.dish-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
  position: relative;
}
.dish-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
}
.dish-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
  overflow: hidden;
}
.dish-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease);
}
.dish-card:hover .dish-card__media img { transform: scale(1.05); }
.dish-card__fav {
  position: absolute;
  top: var(--s-3); right: var(--s-3);
  width: 32px; height: 32px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: transform var(--dur-1) var(--ease);
}
.dish-card__fav:hover { transform: scale(1.1); }
.dish-card__fav svg { width: 16px; height: 16px; }
.dish-card__fav.is-active svg { fill: var(--brand); color: var(--brand); }

.dish-card__body { padding: var(--s-4); }
.dish-card__title {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.dish-card__rest {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-bottom: var(--s-3);
}
.dish-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}
.dish-card__price {
  font-weight: 800;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
}
.dish-card__price small {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-3);
  text-decoration: line-through;
  margin-left: 4px;
}
.dish-card__add {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-brand);
  transition: transform var(--dur-1) var(--ease),
              background var(--dur-1) var(--ease);
}
.dish-card__add:hover { background: var(--brand-600); transform: scale(1.05); }
.dish-card__add:active { transform: scale(.94); }
.dish-card__add svg { width: 18px; height: 18px; }

/* =========================================================
   5. HOW IT WORKS
   ========================================================= */
.steps {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
}
.step__num {
  position: absolute;
  top: var(--s-4); right: var(--s-5);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand);
  opacity: .12;
  line-height: 1;
}
.step__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
}
.step__icon svg { width: 22px; height: 22px; }
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.step p { font-size: var(--fs-sm); color: var(--text-3); }

/* =========================================================
   6. PROMO BANNER
   ========================================================= */
.promo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: var(--s-7) var(--s-6);
  background: linear-gradient(135deg, #1a1a20 0%, #2a2a33 100%);
  color: #fff;
  display: grid;
  gap: var(--s-4);
  align-items: center;
}
@media (min-width: 900px) {
  .promo { grid-template-columns: 1fr auto; padding: var(--s-8) var(--s-9); }
}
.promo::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 65%);
  opacity: .4;
  pointer-events: none;
}
.promo h2 {
  position: relative;
  font-size: clamp(24px, 3.5vw, 36px);
  letter-spacing: -0.03em;
  margin-bottom: var(--s-2);
}
.promo p {
  position: relative;
  color: rgba(255,255,255,.7);
  font-size: var(--fs-md);
  max-width: 480px;
}
.promo .btn { position: relative; }

/* =========================================================
   7. FOOTER
   ========================================================= */
.footer {
  
  margin-top: var(--s-9);
  padding: var(--s-8) 0 var(--s-6);
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer__grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
  margin-bottom: var(--s-7);
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.5fr 1fr; } }

.footer h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: var(--s-4);
}
.footer ul { display: flex; flex-direction: column; gap: var(--s-3); }
.footer ul a {
  font-size: var(--fs-sm);
  color: var(--text-2);
  transition: color var(--dur-1) var(--ease);
}
.footer ul a:hover { color: var(--brand); }
.footer__brand p {
  font-size: var(--fs-sm);
  color: var(--text-3);
  margin-top: var(--s-3);
  max-width: 320px;
}
.footer__bottom {
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* =========================================================
   8. SEARCH PAGE & DISH CARD EXTRAS
   ========================================================= */
.dish-card__veg {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding: 4px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-1);
}
.dish-card__old {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-3);
  text-decoration: line-through;
  margin-left: 5px;
}

.search-head {
  padding: var(--s-4) 0 var(--s-3);
  position: sticky;
  top: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 50;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--dur-2) var(--ease);
}

.filters,
.filter-bar {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  margin-top: var(--s-3);
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar,
.filter-bar::-webkit-scrollbar { display: none; }

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: var(--s-5) 0 var(--s-4);
  gap: var(--s-3);
}
.results-head h2 { font-size: var(--fs-xl); }
.results-head span { font-size: var(--fs-sm); color: var(--text-3); }

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 768px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Result row (list style) */
.result {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: transform var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
  align-items: center;
}
.result:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.result__media {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-3);
}
@media (max-width: 480px) {
  .result { padding: var(--s-3); gap: var(--s-3); }
  .result__media { width: 82px; height: 82px; }
}
.result__media img { width: 100%; height: 100%; object-fit: cover; }
.result__media .rest-card__badge {
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  font-size: 10px;
}
.result__media .rest-card__fav {
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
}
.result__body { flex: 1; min-width: 0; }
.result__title {
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.result__meta {
  font-size: var(--fs-sm);
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  margin-bottom: var(--s-2);
}
.result__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.result__tags { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* =========================================================
   9. RESTAURANT PAGE
   ========================================================= */
.rest-hero,
.rest-banner {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--bg-3);
}
@media (min-width: 900px) {
  .rest-hero,
  .rest-banner {
    height: 300px;
  }
}
.rest-hero img,
.rest-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rest-hero::after,
.rest-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.4) 0%, transparent 45%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}
.rest-banner__actions {
  position: absolute;
  top: var(--s-4);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.rest-banner__actions .icon-btn,
.rest-hero__back {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.94);
  color: #1c1714;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--sh-2);
}

.rest-info {
  margin-top: -36px;
  position: relative;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--sh-2);
}
@media (min-width: 900px) {
  .rest-info {
    margin-top: -48px;
    padding: var(--s-6);
  }
}
.rest-info__top {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  margin-bottom: var(--s-4);
}
.rest-info__title,
.rest-info h1 {
  font-size: clamp(22px, 4vw, 30px);
  margin-bottom: 4px;
}
.rest-info__cuisines {
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.rest-info__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  .rest-info__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.rest-info__stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  background: var(--bg-2);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
}
.rest-info__stat svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex-shrink: 0;
}
.rest-info__stat strong {
  font-size: var(--fs-sm);
  font-weight: 800;
}
.rest-info__stat span {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* Restaurant Menu Layout */
.menu-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-4);
}
.menu-cats {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--s-3) 0;
  position: sticky;
  top: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 40;
  border-bottom: 1px solid var(--border);
}
.menu-cats::-webkit-scrollbar { display: none; }
.menu-cat {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: all var(--dur-1) var(--ease);
}
.menu-cat:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.menu-cat.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.menu-cat.is-active span {
  color: rgba(255,255,255,.85) !important;
}

@media (min-width: 900px) {
  .menu-layout {
    grid-template-columns: 230px 1fr;
    gap: var(--s-6);
    align-items: start;
    margin-top: var(--s-6);
  }
  .menu-cats {
    flex-direction: column;
    position: sticky;
    top: calc(var(--nav-h) + var(--s-4));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-3);
    gap: 4px;
  }
  .menu-cat {
    justify-content: space-between;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    padding: 10px 12px;
  }
  .menu-cat:hover {
    background: var(--bg-2);
  }
  .menu-cat.is-active {
    background: var(--brand-soft);
    color: var(--brand-700);
  }
  .menu-cat.is-active span {
    color: var(--brand-700) !important;
  }
}

.menu-section {
  margin-bottom: var(--s-6);
  scroll-margin-top: calc(var(--nav-h) + 70px);
}
.menu-section h2,
.menu-section h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

/* =========================================================
   10. CART & CHECKOUT PAGE (ALL-SCREEN OPTIMIZED)
   ========================================================= */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  width: 100%;
  max-width: 100%;
  padding-bottom: 84px;
}
.cart-layout > * {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
@media (min-width: 768px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
    gap: var(--s-5);
    padding-bottom: 0;
  }
}
@media (min-width: 1024px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
    gap: var(--s-6);
  }
}

/* Cart item rows — responsive across 320px mobile to 1440px desktop */
.cart-item {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.cart-item:first-child {
  padding-top: 0;
}
.cart-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.cart-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
  min-width: 0;
}
.cart-item__main {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  flex: 1 1 0%;
  min-width: 0;
}
.cart-item__img,
.cart-item__media {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
}
.cart-item__img img,
.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item__body {
  flex: 1 1 0%;
  min-width: 0;
}
.cart-item__title {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  word-break: break-word;
}
.cart-item__price {
  font-weight: 600;
  font-size: var(--fs-xs);
  color: var(--text-2);
  margin-top: 2px;
}
.cart-item__total {
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--text);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.cart-item__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  width: 100%;
  padding-left: 66px;
  box-sizing: border-box;
}
@media (max-width: 420px) {
  .cart-item__controls {
    padding-left: 0;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
  }
}
.cart-item__delete {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-full);
  border: 1px solid rgba(220, 62, 66, 0.3);
  background: rgba(220, 62, 66, 0.08);
  color: var(--danger);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: var(--fs-xs);
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--dur-1) var(--ease);
}
.cart-item__delete:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.cart-item__delete svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Summary / Bill Breakdown Card */
.summary-card,
.cart-summary {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: var(--s-4);
  box-shadow: var(--sh-2);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .summary-card,
  .cart-summary {
    position: sticky;
    top: calc(var(--nav-h) + var(--s-4));
    padding: var(--s-5);
  }
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  padding: 7px 0;
  color: var(--text-2);
}
.summary-row strong {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.summary-row.total {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--text);
  padding-top: var(--s-3);
  margin-top: var(--s-2);
  border-top: 1.5px dashed var(--border-strong);
  letter-spacing: -0.02em;
}
.summary-row.discount {
  color: var(--success);
  font-weight: 600;
}
.summary-row.discount strong {
  color: var(--success);
}

/* Address & Payment Selection Cards */
.addr-card,
.pay-method {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3);
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--dur-1) var(--ease);
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.addr-card:hover,
.pay-method:hover {
  border-color: var(--border-strong);
}
.addr-card.is-selected,
.pay-method.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 4px 12px rgba(232, 93, 38, 0.08);
}
.addr-card__icon,
.pay-method__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--brand);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur-1) var(--ease);
}
.addr-card.is-selected .addr-card__icon,
.pay-method.is-active .pay-method__icon {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.addr-card__icon svg,
.pay-method__icon svg {
  width: 17px;
  height: 17px;
}
.addr-card__body,
.pay-method__body {
  flex: 1 1 0%;
  min-width: 0;
}
.addr-card__body strong,
.pay-method__body strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
}
.addr-card__body p,
.pay-method__body span {
  font-size: var(--fs-xs);
  color: var(--text-2);
  margin-top: 2px;
  line-height: 1.4;
  word-break: break-word;
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
  width: 100%;
}
.pay-grid .addr-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s-3) var(--s-2);
  gap: 6px;
}
@media (min-width: 560px) {
  .pay-grid .addr-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: var(--s-3);
    gap: var(--s-3);
  }
}

/* Persistent Mobile Checkout Bar on Cart Page */
.cart-mobile-checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1.5px solid var(--border-strong);
  padding: 10px var(--s-4);
  box-shadow: 0 -8px 24px rgba(28, 23, 20, 0.14);
  z-index: calc(var(--z-nav) + 5);
}
.cart-mobile-checkout[hidden] {
  display: none !important;
}
.cart-mobile-checkout__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cart-mobile-checkout__btn {
  height: 44px;
  padding: 0 20px;
  font-size: var(--fs-sm);
  font-weight: 800;
  border-radius: var(--r-full);
  flex-shrink: 0;
  box-shadow: var(--sh-brand);
}
@media (min-width: 768px) {
  .cart-mobile-checkout {
    display: none !important;
  }
}

/* =========================================================
   12. PROFILE PAGE
   ========================================================= */
.profile-head {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}
.profile-head__info { flex: 1; min-width: 200px; }
.profile-head__info h1 { font-size: var(--fs-2xl); margin-bottom: 2px; }
.profile-head__info p { font-size: var(--fs-sm); color: var(--text-3); }

.menu-list,
.profile-menu {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.menu-list__item,
.profile-menu__item {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--dur-1) var(--ease);
}
.menu-list__item:last-child,
.profile-menu__item:last-child { border-bottom: 0; }
.menu-list__item:hover,
.profile-menu__item:hover { background: var(--bg-2); }
.menu-list__icon,
.profile-menu__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-list__icon svg,
.profile-menu__icon svg { width: 20px; height: 20px; }
.menu-list__body,
.profile-menu__body { flex: 1; min-width: 0; }
.menu-list__body strong,
.profile-menu__body strong {
  display: block;
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 2px;
}
.menu-list__body span,
.profile-menu__body span {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* Toggle Switch */
.switch {
  width: 44px;
  height: 26px;
  border-radius: var(--r-full);
  background: var(--border-strong);
  position: relative;
  flex-shrink: 0;
  transition: background var(--dur-2) var(--ease);
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease);
}
.switch.is-on {
  background: var(--brand);
}
.switch.is-on::after {
  transform: translateX(18px);
}

/* =========================================================
   13. ORDERS PAGE
   ========================================================= */
.signin-prompt {
  text-align: center;
  padding: var(--s-8) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  max-width: 440px;
  margin: var(--s-6) auto;
}
.signin-prompt h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--s-2);
}
.signin-prompt p {
  font-size: var(--fs-sm);
  color: var(--text-3);
  margin-bottom: var(--s-5);
}

.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  margin-bottom: var(--s-4);
  transition: transform var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}
@media (min-width: 640px) {
  .order-card { padding: var(--s-5); }
}
.order-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.order-card__head {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.order-card__media {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-3);
}
.order-card__media img { width: 100%; height: 100%; object-fit: cover; }
.order-card__head-body { flex: 1; min-width: 140px; }
.order-card__head-body strong { display: block; font-size: var(--fs-md); margin-bottom: 2px; }
.order-card__head-body span { font-size: var(--fs-xs); color: var(--text-3); }
.order-card__items {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-bottom: var(--s-4);
  line-height: 1.6;
}
.order-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.order-card__total { font-weight: 800; font-size: var(--fs-lg); letter-spacing: -0.02em; }

/* Order status tracker */
.tracker {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin: var(--s-4) 0;
  position: relative;
}
.tracker__step {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  position: relative;
}
.tracker__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--border-strong);
  margin: 0 auto 6px;
  position: relative;
  z-index: 2;
}
.tracker__step.is-done .tracker__dot { background: var(--success); }
.tracker__step.is-current .tracker__dot {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(232,93,38,.2);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(232,93,38,.2); }
  50%      { box-shadow: 0 0 0 8px rgba(232,93,38,.06); }
}
.tracker__step.is-done span,
.tracker__step.is-current span { color: var(--text); font-weight: 600; }
.tracker::before {
  content: '';
  position: absolute;
  left: 10%; right: 10%;
  top: 6px;
  height: 1.5px;
  background: var(--border-strong);
  z-index: 0;
}

/* =========================================================
   14. AUTH PAGE
   ========================================================= */
.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  padding: var(--s-4);
}
@media (min-width: 900px) {
  .auth-page { grid-template-columns: 1fr 1fr; padding: 0; }
}
.auth-visual {
  display: none;
  background: linear-gradient(135deg, var(--brand) 0%, #ff8f5c 100%);
  position: relative;
  overflow: hidden;
  padding: var(--s-9);
  color: #fff;
  flex-direction: column;
  justify-content: space-between;
}
@media (min-width: 900px) { .auth-visual { display: flex; } }
.auth-visual::before {
  content: '';
  position: absolute;
  inset: -10% -30% auto auto;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.3) 0%, transparent 65%);
  border-radius: 50%;
}
.auth-visual h2 {
  position: relative;
  font-size: 42px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--s-4);
}
.auth-visual p { position: relative; opacity: .9; font-size: var(--fs-lg); max-width: 380px; }
.auth-visual__quote {
  position: relative;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  font-size: var(--fs-sm);
}
.auth-visual__quote strong { display: block; margin-top: var(--s-3); font-size: var(--fs-md); }

.auth-form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-4);
  max-width: 440px;
  width: 100%;
  margin-inline: auto;
}
@media (min-width: 900px) { .auth-form-wrap { padding: var(--s-9); } }

.auth-tabs {
  display: flex;
  background: var(--bg-2);
  border-radius: var(--r-full);
  padding: 4px;
  margin-bottom: var(--s-6);
}
.auth-tabs button {
  flex: 1;
  height: 40px;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  transition: all var(--dur-2) var(--ease);
}
.auth-tabs button.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-1);
}

.auth-form__sub { color: var(--text-3); font-size: var(--fs-sm); margin-bottom: var(--s-3); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-5) 0;
  color: var(--text-3);
  font-size: var(--fs-xs);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.socials { display: flex; gap: var(--s-3); }
.social-btn {
  flex: 1;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--dur-1) var(--ease);
}
.social-btn:hover { border-color: var(--text-3); background: var(--bg-2); }
.social-btn svg { width: 18px; height: 18px; }

/* =========================================================
   15. PAGE HEADER & MOBILE OPTIMIZATIONS
   ========================================================= */
.page-head {
  padding: var(--s-5) 0 var(--s-4);
}
.page-head h1 {
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.03em;
  margin-bottom: var(--s-1);
}
.page-head p { color: var(--text-3); font-size: var(--fs-sm); }

/* Mobile customer website optimizations */
@media (max-width: 640px) {
  .hero {
    padding: var(--s-4) 0 var(--s-2);
  }
  .hero__eyebrow,
  .hero h1,
  .hero__sub {
    display: none !important;
  }
  .hero__search {
    height: 48px;
    padding: 0 var(--s-3);
    margin-bottom: 0;
  }
  .hero__stats {
    gap: var(--s-4);
    margin-top: var(--s-4);
  }
  .hero__stat strong {
    font-size: var(--fs-xl);
  }
  .card-pad {
    padding: var(--s-4);
  }
  .section-title h2 {
    font-size: var(--fs-xl);
  }
  .dish {
    gap: var(--s-3);
  }
  .dish__media {
    width: 100px;
    height: 100px;
  }
}
