/* ============================================================
   Stokonline.ru — Marketplace əsas stil
   Marka: tünd qırmızı + isti neytral, geyim/tekstil bazarı üçün
   Tipoqrafiya: Manrope (mətn) + Unbounded (qiymətlər/aksent başlıqlar)
   ============================================================ */

:root {
  /* Marka rəngləri — tünd qırmızıdan törəyən isti palet */
  --primary: #C41E2A;
  --primary-dark: #8C1219;
  --primary-tint: #FBEBEA;      /* qırmızının çox açıq tonu — fon/hover üçün */
  --primary-tint-2: #F6D9D8;

  --ink: #1C1613;                /* isti demək olar qara — mətn üçün */
  --ink-soft: #3A312C;

  /* İsti neytral şkala (soyuq boz əvəzinə) */
  --stone-900: #1C1613;
  --stone-700: #58504A;
  --stone-600: #746A63;
  --stone-400: #A79D95;
  --stone-300: #DCD3CB;
  --stone-200: #EAE3DC;
  --stone-100: #F5F1EC;
  --paper: #FFFFFF;

  /* Geriyə uyğunluq üçün köhnə adlar (kodun hər yerində istifadə olunur) */
  --dark: var(--ink);
  --gray-900: var(--stone-900);
  --gray-600: var(--stone-600);
  --gray-400: var(--stone-400);
  --gray-300: var(--stone-300);
  --gray-100: var(--stone-100);
  --white: var(--paper);

  --success: #1E7A4C;
  --danger: #C4291E;
  --gold: #A8791F;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(28,22,19,.06);
  --shadow: 0 12px 28px rgba(28,22,19,.09);
  --shadow-lg: 0 20px 48px rgba(28,22,19,.16);

  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--stone-900);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Qiymətlər hər yerdə eyni distinktiv qrafik-tipoqrafik xarakter daşıyır */
.menu-card-price, .item-modal-price, .order-total-row-final, .confirmation-code-digits,
.cart-line-body .price, .sticky-cart-total {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
}

/* Header */
.site-header { border-bottom: 1px solid var(--stone-200); position: sticky; top: 0; background: var(--paper); z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); }
.logo span { color: var(--primary); }
.logo-link { display: inline-flex; align-items: center; }
.site-logo-img { height: 40px; width: auto; display: block; }
.site-footer .site-logo-img { height: 44px; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--stone-600); transition: color .15s; }
.main-nav a:hover { color: var(--primary); }
.header-actions { display: flex; gap: 12px; align-items: center; }

.btn { display: inline-block; padding: 11px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; cursor: pointer; border: none; transition: background .15s, transform .1s, box-shadow .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--paper); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--stone-300); color: var(--stone-900); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-text { color: var(--stone-600); font-weight: 600; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Hero */
.hero { background: var(--stone-100); padding: 64px 0; }
.hero-inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.hero-text { flex: 1 1 420px; }
.hero-text h1 { font-family: var(--font-display); font-size: 38px; font-weight: 700; line-height: 1.18; color: var(--ink); margin-bottom: 16px; letter-spacing: -.01em; }
.hero-text p { font-size: 17px; color: var(--stone-600); margin-bottom: 28px; max-width: 480px; }
.hero-search { display: flex; gap: 10px; max-width: 480px; }
.hero-search input { flex: 1; padding: 14px 18px; border-radius: var(--radius-sm); border: 1.5px solid var(--stone-300); font-size: 15px; font-family: inherit; background: var(--paper); }
.hero-search input:focus { outline: none; border-color: var(--primary); }
.hero-img { flex: 1 1 380px; }
.hero-img .placeholder { background: var(--stone-200); border-radius: var(--radius); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--stone-600); font-size: 14px; }

/* Sections */
section { padding: 52px 0; }
.section-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--ink); letter-spacing: -.01em; }
.section-subtitle { color: var(--stone-600); margin-bottom: 30px; }

/* Ana səhifə promo kartları */
.home-cards-section { padding: 4px 0 8px; }
.home-cards-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.home-cards-row:first-child { margin-bottom: 2px; }
.home-card { flex: 0 0 auto; width: 168px; text-decoration: none; scroll-snap-align: start; }
.home-card-img { position: relative; width: 100%; aspect-ratio: 8/5; border-radius: var(--radius); overflow: hidden; background: var(--stone-100); border: 1px solid var(--stone-200); }
.home-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-card-corner-label { position: absolute; bottom: 7px; right: 7px; background: rgba(28,22,19,.62); color: #fff; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.home-card-subtitle { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--stone-600); padding-left: 2px; }

@media (max-width: 640px) { .home-card { width: 138px; } }

/* Category chips */
.category-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.category-chip { flex: 0 0 auto; padding: 10px 20px; border-radius: var(--radius-sm); background: var(--stone-100); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s; }
.category-chip.active, .category-chip:hover { background: var(--primary); color: var(--paper); }

/* Icon grid (kateqoriya ikonları) — rəngli, brendli bloklar */
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 14px; margin-bottom: 8px; }
.icon-grid-item { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--stone-900); }
.icon-circle { width: 58px; height: 58px; border-radius: 16px; background: var(--primary-tint); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-size: 25px; transition: transform .15s, background .15s; }
.icon-grid-item:hover .icon-circle { background: var(--primary-tint-2); transform: translateY(-3px); }
.icon-grid-item.is-active .icon-circle { background: var(--primary); color: #fff; }
.icon-grid-item.is-active span:last-child { color: var(--primary); }

.empty-state-block { text-align: center; padding: 64px 20px; color: var(--stone-600); }
.empty-state-icon { font-size: 40px; display: block; margin-bottom: 12px; color: var(--stone-400); }
.empty-state-block p { margin-bottom: 18px; font-size: 15px; }

/* Banner carousel */
.banner-carousel { position: relative; border-radius: var(--radius); overflow: hidden; margin: 24px 0; border: 1px solid var(--stone-200); }
.banner-track { display: flex; transition: transform .5s ease; }
.banner-slide { flex: 0 0 100%; position: relative; display: block; aspect-ratio: 3/1; background: var(--stone-100); }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-ad-tag { position: absolute; bottom: 10px; right: 12px; background: rgba(28,22,19,.62); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }
.banner-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.banner-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.6); cursor: pointer; transition: background .15s, width .15s; }
.banner-dot.active { background: #fff; width: 18px; border-radius: 4px; }

/* Ana səhifədə kiçik mağaza kartları (kateqoriya ikonları ölçüsündə) */
.seller-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 16px; }
.seller-mini-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.seller-mini-logo {
  width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--stone-100);
  border: 1px solid var(--stone-200); display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--stone-400); transition: transform .15s, border-color .15s;
}
.seller-mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.seller-mini-card:hover .seller-mini-logo { transform: translateY(-3px); border-color: var(--stone-300); }
.seller-mini-name { font-size: 12.5px; font-weight: 700; color: var(--stone-900); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seller-mini-rating { font-size: 11px; color: var(--gold); font-weight: 600; }

/* Restaurant (mağaza) cards */
.restaurant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.restaurant-card { border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--stone-200); transition: box-shadow .2s, transform .2s, border-color .2s; }
.restaurant-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--stone-300); }
.restaurant-card .cover { aspect-ratio: 16/10; background: var(--stone-100); position: relative; }
.restaurant-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.restaurant-card .badge { position: absolute; top: 10px; left: 10px; background: var(--paper); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.restaurant-card .info { padding: 16px; }
.restaurant-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 4px; }
.restaurant-card .meta { display: flex; justify-content: space-between; color: var(--stone-600); font-size: 13px; margin-top: 8px; }
.rating { color: var(--gold); font-weight: 700; }

/* Restaurant detail hero + header card */
.restaurant-hero { width: 100%; min-height: 120px; max-height: 260px; overflow: hidden; background: linear-gradient(135deg, var(--primary-tint), var(--stone-100)); }
.restaurant-hero img { width: 100%; height: 260px; object-fit: cover; display: block; }

.restaurant-header-card {
  display: flex; align-items: flex-end; gap: 18px;
  margin-top: -44px; margin-bottom: 26px; position: relative; z-index: 2;
  padding: 0 4px;
}
.restaurant-logo {
  width: 88px; height: 88px; border-radius: var(--radius); object-fit: cover;
  border: 4px solid var(--paper); box-shadow: var(--shadow); background: var(--paper); flex-shrink: 0;
}
.restaurant-logo-placeholder { display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--stone-400); }
.restaurant-header-info { padding-bottom: 4px; }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 4px; background: var(--stone-100); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--stone-900); }
.pill-rating { background: #FAF1DE; color: var(--gold); }
.pill-open { background: #E9F5EE; color: var(--success); }
.pill-closed { background: #FBECEA; color: var(--danger); }

/* Menyu sürətli naviqasiya */
.menu-nav { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 16px; position: sticky; top: 72px; background: var(--paper); z-index: 5; }
.menu-nav a { flex: 0 0 auto; padding: 8px 16px; border-radius: var(--radius-sm); background: var(--stone-100); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background .15s, color .15s; }
.menu-nav a:hover { background: var(--primary); color: var(--paper); }

.menu-section-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 28px 0 14px; scroll-margin-top: 130px; }

/* Store topbar */
.restaurant-topbar { display: flex; align-items: center; padding: 12px 20px 0; }
.icon-round-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 1px solid var(--stone-200); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); color: var(--stone-900); flex-shrink: 0; }

.restaurant-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 4px; line-height: 1.2; letter-spacing: -.01em; }

/* Reytinq/məlumat sətri */
.rating-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--stone-900); }
.rating-row-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.rating-row-star { color: var(--gold); }
.rating-row .muted { color: var(--stone-600); font-weight: 500; }
.rating-row-sep { width: 1px; height: 14px; background: var(--stone-300); }

/* Çatdırılma banner-i */
.delivery-banner {
  display: flex; align-items: center; gap: 14px; background: #E9F5EE; border: 1px solid #C9E8D5;
  border-radius: var(--radius); padding: 14px 18px; margin: 20px 0; text-decoration: none; color: inherit;
}
.delivery-banner-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.delivery-banner-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.delivery-banner-text strong { color: #145C37; font-size: 15px; }
.delivery-banner-text span:last-child { font-size: 12.5px; color: var(--stone-600); }
.delivery-banner > .bi-chevron-right { color: var(--success); }

/* Menyu tab-ları (alt xətli) */
.menu-tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1.5px solid var(--stone-200); margin-bottom: 20px; position: sticky; top: 72px; background: var(--paper); z-index: 5; }
.menu-tabs a { flex: 0 0 auto; padding: 10px 2px 12px; font-weight: 700; font-size: 14.5px; color: var(--stone-600); white-space: nowrap; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; transition: color .15s, border-color .15s; }
.menu-tabs a.is-active { color: var(--stone-900); border-bottom-color: var(--primary); }

/* Məhsul kart-grid görünüşü — hairline sərhəd, hover-da lift */
.menu-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.menu-card { display: flex; flex-direction: column; cursor: pointer; }
.menu-card-img {
  position: relative; width: 100%; padding-top: 100%; border-radius: var(--radius); background: var(--stone-100);
  overflow: hidden; border: 1px solid var(--stone-200); transition: border-color .2s, box-shadow .2s;
}
.menu-card-img-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--stone-300); }
.menu-card:hover .menu-card-img { border-color: var(--stone-300); box-shadow: var(--shadow); }
.menu-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.menu-card:hover .menu-card-img img { transform: scale(1.04); }

.menu-card-badge-stack { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.menu-card-discount-badge {
  background: var(--primary); color: #fff;
  font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(196,30,42,.35);
}
.menu-card-sale-badge {
  background: var(--ink); color: #fff; font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; padding: 2px 7px; border-radius: 999px;
}
.menu-card-stock-badge {
  position: absolute; top: 8px; left: 8px; background: rgba(28,22,19,.75); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; z-index: 2;
}
.menu-card-wishlist-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.92); color: var(--stone-700); font-size: 15px;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .15s, color .15s;
}
.menu-card-wishlist-btn:hover { transform: scale(1.1); }
.menu-card-wishlist-btn.is-active { color: var(--primary); }
.menu-card-wishlist-btn.is-active i::before { content: "\f415"; } /* bi-heart-fill */

.menu-card-add-form { position: absolute; right: 8px; bottom: 8px; margin: 0; z-index: 2; }
.menu-card-add-btn {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--primary); color: #fff;
  font-size: 17px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(196,30,42,.35); cursor: pointer;
  transition: transform .15s;
}
.menu-card-add-form .menu-card-add-btn { position: static; right: auto; bottom: auto; }
.menu-card-add-btn:hover { transform: scale(1.08); }
.menu-card-add-btn:disabled { background: var(--stone-300); color: var(--stone-500); box-shadow: none; cursor: not-allowed; }
.menu-card-body { padding: 10px 2px 0; }
.menu-card-price { display: block; font-size: 16px; margin-bottom: 3px; color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.menu-card-body h3 { font-size: 14px; font-weight: 600; margin-bottom: 2px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-card-body p { font-size: 12px; color: var(--stone-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-card-restaurant { display: flex; align-items: center; gap: 4px; color: var(--stone-600); font-size: 12px; }
.old-price { text-decoration: line-through; color: var(--stone-400); font-size: 12.5px; margin-right: 4px; font-family: var(--font); font-weight: 500; }

/* Sticky səbət zolağı — brend qırmızısı (əvvəlki narıncı sızma düzəldildi) */
.sticky-cart-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  background: linear-gradient(115deg, var(--ink), var(--primary-dark) 65%, var(--primary)); color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-width: 480px; margin: 0 auto;
}
.sticky-cart-count { background: rgba(255,255,255,.22); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.sticky-cart-label { flex: 1; font-weight: 700; font-size: 14.5px; }
.sticky-cart-total { font-size: 14.5px; color: #fff; }

@media (max-width: 640px) {
  .menu-card-body p { display: none; }
  .sticky-cart-bar { bottom: 84px; }
}

/* Məhsul detalı - bottom-sheet modal */
.item-modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(28,22,19,.5); z-index: 300;
  align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s var(--ease-out, ease);
}
.item-modal-backdrop.is-open { display: flex; opacity: 1; }
.item-modal {
  background: var(--paper); width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
  border-radius: 22px 22px 0 0; position: relative; transform: translateY(24px); transition: transform .3s var(--ease-out, ease);
  display: flex; flex-direction: column;
}
.item-modal-backdrop.is-open .item-modal { transform: translateY(0); }
.item-modal-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.94); border: none; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; font-size: 15px; z-index: 2; cursor: pointer;
}
.item-modal-img { position: relative; width: 100%; padding-top: 75%; background: var(--stone-100); overflow: hidden; }
#itemModalImgContent { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 58px; color: var(--stone-300); }
.item-modal-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-modal-content { padding: 20px; flex: 1; }
.item-modal-content h2 { font-family: var(--font-display); font-size: 18px; margin-bottom: 8px; }
.item-modal-desc { color: var(--stone-600); font-size: 14px; line-height: 1.6; margin-bottom: 24px; }

.item-modal-related h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.item-modal-related-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.item-modal-related-card { flex: 0 0 120px; cursor: pointer; }
.item-modal-related-img { width: 120px; height: 120px; border-radius: var(--radius-sm); background: var(--stone-100); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--stone-300); margin-bottom: 6px; }
.item-modal-related-img img { width: 100%; height: 100%; object-fit: cover; }
.item-modal-related-card strong { display: block; font-size: 13.5px; }
.item-modal-related-card span { display: block; font-size: 12px; color: var(--stone-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.item-modal-footer {
  position: sticky; bottom: 0; background: var(--paper); border-top: 1px solid var(--stone-200);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center;
}
.item-modal-stepper { display: flex; align-items: center; gap: 12px; background: var(--stone-100); border-radius: var(--radius-sm); padding: 6px 14px; flex-shrink: 0; }
.item-modal-stepper button { width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--paper); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; }
.item-modal-stepper span { min-width: 18px; text-align: center; font-weight: 700; }
.item-modal-add-btn { width: 100%; padding: 13px; font-size: 15px; border-radius: var(--radius-sm); }

@media (min-width: 641px) {
  .item-modal-backdrop { align-items: center; }
  .item-modal { border-radius: var(--radius); max-height: 82vh; }
}

/* Sifariş uğur ekranı */
.order-success-hero {
  text-align: center; padding: 36px 20px 28px; max-width: 480px; margin: 0 auto;
  animation: fadeInUp .5s var(--ease-out, ease) both;
}
.order-success-icon {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--success); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 36px;
  box-shadow: 0 10px 28px rgba(30,122,76,.3); animation: scaleIn .5s var(--ease-out, ease) both;
}
.order-success-hero h1 { font-family: var(--font-display); font-size: 21px; margin-bottom: 8px; }
.order-success-hero p { color: var(--stone-600); font-size: 14.5px; }

/* Sifariş başlıq kartı */
.order-track-header { border: 1px solid var(--stone-200); }
.order-track-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }

/* Status progress zolağı */
.order-progress-track { display: flex; overflow-x: auto; gap: 4px; margin-top: 22px; padding-bottom: 4px; }
.order-progress-step { flex: 1; min-width: 78px; text-align: center; position: relative; }
.order-progress-step:not(:last-child)::after {
  content: ''; position: absolute; top: 16px; left: 58%; width: 84%; height: 2px; background: var(--stone-200); z-index: 0;
}
.order-progress-step.is-done:not(:last-child)::after { background: var(--primary); }
.order-progress-dot {
  width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 6px; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
  background: var(--stone-200); color: var(--stone-600); transition: background .3s, color .3s, transform .3s;
}
.order-progress-step.is-done .order-progress-dot { background: var(--primary); color: #fff; }
.order-progress-step.is-current .order-progress-dot { transform: scale(1.15); box-shadow: 0 0 0 5px var(--primary-tint); }
.order-progress-label { font-size: 10.5px; color: var(--stone-600); font-weight: 600; }
.order-progress-step.is-done .order-progress-label { color: var(--stone-900); }

/* Kuryer kartı */
.courier-info-card { display: flex; align-items: center; gap: 14px; }
.courier-info-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--stone-100); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}

/* Sifariş cəm sətirləri */
.order-total-row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--stone-600); padding: 6px 0; }
.order-total-row-final { border-top: 1px solid var(--stone-200); margin-top: 6px; padding-top: 10px; font-size: 18px; color: var(--stone-900); }

/* Çatdırılma təsdiq kodu kartı */
.confirmation-code-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: #FAF1DE; border: 1.5px dashed var(--gold);
}
.confirmation-code-digits { font-size: 24px; letter-spacing: 4px; color: var(--gold); white-space: nowrap; }

/* Səbət səhifəsi */
.cart-items-list { padding-top: 20px; display: flex; flex-direction: column; gap: 18px; }
.cart-line { display: flex; align-items: center; gap: 14px; }
.cart-line-thumb { width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--stone-100); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--stone-300); overflow: hidden; border: 1px solid var(--stone-200); }
.cart-line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-body { flex: 1; min-width: 0; }
.cart-line-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.cart-line-body p { font-size: 13px; color: var(--stone-600); }

.cart-open-menu-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: var(--stone-100); color: var(--stone-900); font-weight: 700; font-size: 14.5px;
  padding: 14px; border-radius: var(--radius-sm); margin-top: 22px; text-decoration: none; transition: background .15s;
}
.cart-open-menu-btn:hover { background: var(--stone-200); }

.cart-suggest-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.cart-suggest-card { flex: 0 0 140px; }

/* Menyu sətirləri (siyahı görünüşü) */
.menu-list { display: flex; flex-direction: column; gap: 12px; }
.menu-item-row {
  display: flex; align-items: center; gap: 14px; background: var(--paper);
  border: 1px solid var(--stone-200); border-radius: var(--radius); padding: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.menu-item-row:hover { border-color: var(--stone-300); box-shadow: var(--shadow-sm); }
.menu-item-thumb { width: 68px; height: 68px; border-radius: var(--radius-sm); background: var(--stone-100); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.menu-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-item-body { flex: 1; min-width: 0; }
.menu-item-body h3 { font-size: 15.5px; margin-bottom: 2px; }
.menu-item-body p { font-size: 12.5px; color: var(--stone-600); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item-price { font-size: 15px; color: var(--stone-900); }
.menu-item-action { flex-shrink: 0; }
.btn-sm-round { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }

@media (max-width: 640px) {
  .restaurant-hero img { height: 170px; }
  .restaurant-header-card { flex-direction: column; align-items: flex-start; margin-top: -34px; }
  .restaurant-logo { width: 70px; height: 70px; }
  .menu-item-body p { display: none; }
}

/* Forms */
.auth-wrapper { max-width: 420px; margin: 56px auto; padding: 0 20px; }
.auth-card { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--stone-200); box-shadow: var(--shadow); padding: 36px 32px; }
.auth-card h1 { font-family: var(--font-display); font-size: 21px; margin-bottom: 6px; }
.auth-card .sub { color: var(--stone-600); font-size: 14px; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--stone-300); border-radius: var(--radius-sm); font-size: 15px; font-family: inherit; background: var(--paper); color: var(--stone-900);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.phone-input-group { display: flex; gap: 8px; }
.phone-input-group select { flex: 0 0 40%; }
.phone-input-group input { flex: 1; }
.form-hint { font-size: 12.5px; color: var(--stone-600); margin-top: 4px; }
.form-error { background: var(--primary-tint); color: var(--danger); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.form-success { background: #E9F5EE; color: var(--success); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.auth-links { text-align: center; margin-top: 20px; font-size: 14px; color: var(--stone-600); }
.auth-links a { color: var(--primary); font-weight: 600; }

.role-select { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.role-option { border: 1.5px solid var(--stone-300); border-radius: var(--radius-sm); padding: 16px; text-align: center; cursor: pointer; font-weight: 600; transition: border-color .15s, background .15s, color .15s; }
.role-option.active { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); }

.otp-input { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.otp-input input { width: 48px; height: 56px; text-align: center; font-size: 22px; font-weight: 700; }

/* Static pages */
.static-page { max-width: 800px; margin: 48px auto; padding: 0 20px; }
.breadcrumb { font-size: 13px; color: var(--stone-600); margin-bottom: 16px; }
.breadcrumb a { color: var(--stone-600); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span:first-of-type { margin: 0 6px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--stone-600); text-decoration: none; margin-bottom: 16px; font-weight: 600; transition: color .15s; }
.back-link:hover { color: var(--primary); }
.static-page h1 { font-family: var(--font-display); font-size: 26px; margin-bottom: 20px; }
.static-page p { margin-bottom: 14px; color: var(--stone-900); }
.static-page .static-content h2 { font-size: 19px; margin: 28px 0 12px; }
.static-page .static-content ul, .static-page .static-content ol { margin: 0 0 14px 20px; }
.static-page .static-content li { margin-bottom: 6px; }

.error-page { text-align: center; padding: 40px 20px; }
.error-emoji { font-size: 52px; display: block; margin-bottom: 8px; }
.error-page h1 { font-family: var(--font-display); font-size: 52px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.error-page p { color: var(--stone-600); margin-bottom: 24px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--ink); color: #D9CFC7; padding: 56px 0 0; margin-top: 40px; }
.footer-logo-badge { display: inline-block; background: var(--paper); padding: 10px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.footer-logo-badge .site-logo-img { height: 38px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-col h4 { color: var(--paper); margin-bottom: 14px; font-size: 15px; font-weight: 700; }
.footer-col a { display: flex; align-items: center; gap: 8px; color: #B3A79D; margin-bottom: 10px; font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { border-top: 1px solid #3A312C; padding: 20px; text-align: center; font-size: 13px; color: #8A7D73; }

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hero-text h1 { font-size: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .icon-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .icon-circle { width: 50px; height: 50px; font-size: 22px; border-radius: 13px; }
  .banner-slide { aspect-ratio: 16/9; }
}
