/* ==========================================================================
   3soot.ir Modern Redesign - Stitch Velocity Marketplace Design System
   RTL Optimized | Persian Typography | Modern Glassmorphism & High-Velocity UI
   ========================================================================== */

/* ==========================================================================
   Persian Webfonts Integration - Lahzeh Pro 2, Kalameh & KalamehFaNum (Self-Hosted)
   Sanction-Proof | Zero External CDN Dependency | Instant Load
   ========================================================================== */

/* Lahzeh Pro 2 - High Velocity Display & Headline Typography */
@font-face {
  font-family: 'Lahzeh';
  src: url('assets/fonts/Lahzeh-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lahzeh';
  src: url('assets/fonts/Lahzeh-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lahzeh';
  src: url('assets/fonts/Lahzeh-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lahzeh';
  src: url('assets/fonts/Lahzeh-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lahzeh';
  src: url('assets/fonts/Lahzeh-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lahzeh';
  src: url('assets/fonts/Lahzeh-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Kalameh - Modern UI, Body & Navigation Typography */
@font-face {
  font-family: 'Kalameh';
  src: url('assets/fonts/KalamehWeb-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kalameh';
  src: url('assets/fonts/KalamehWeb-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kalameh';
  src: url('assets/fonts/KalamehWeb-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kalameh';
  src: url('assets/fonts/KalamehWeb-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kalameh';
  src: url('assets/fonts/KalamehWeb-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kalameh';
  src: url('assets/fonts/KalamehWeb-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* KalamehFaNum - Native Persian Numerals for Prices, Countdowns & Phone Numbers */
@font-face {
  font-family: 'KalamehFaNum';
  src: url('assets/fonts/KalamehWebFaNum-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'KalamehFaNum';
  src: url('assets/fonts/KalamehWebFaNum-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'KalamehFaNum';
  src: url('assets/fonts/KalamehWebFaNum-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'KalamehFaNum';
  src: url('assets/fonts/KalamehWebFaNum-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'KalamehFaNum';
  src: url('assets/fonts/KalamehWebFaNum-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'KalamehFaNum';
  src: url('assets/fonts/KalamehWebFaNum-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Stitch MCP Tokens: Velocity Marketplace & Instant Precision */
  --font-persian: 'Kalameh', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-headline: 'Lahzeh', 'Kalameh', sans-serif;
  --font-numeric: 'KalamehFaNum', 'Kalameh', 'Plus Jakarta Sans', sans-serif;

  /* Brand Colors */
  --primary: #006c49;
  --primary-emerald: #10b981;
  --primary-emerald-hover: #059669;
  --primary-light: #e6f7f0;
  --primary-container: #ecfdf5;

  --secondary-coral: #f94144;
  --secondary-coral-hover: #e02f32;
  --secondary-coral-light: #fef2f2;

  --warning-amber: #fdbf0b;
  --warning-amber-hover: #d99f06;
  --warning-amber-light: #fffbeb;

  --info-sky: #0ea5e9;
  --info-sky-light: #f0f9ff;

  /* Surfaces & Backgrounds */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-dim: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-focus: #10b981;

  /* Typography Colors - High Contrast */
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-on-primary: #ffffff;

  /* Shadows & Depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px 0 rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 30px -4px rgba(15, 23, 42, 0.08);
  --shadow-coral: 0 8px 20px -4px rgba(249, 65, 68, 0.3);
  --shadow-emerald: 0 8px 20px -4px rgba(16, 185, 129, 0.3);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-surface: #131b2e;
  --bg-surface-elevated: #1e293b;
  --bg-surface-dim: #0f172a;
  --border-subtle: #1e293b;
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --shadow-md: 0 4px 20px 0 rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px -4px rgba(0, 0, 0, 0.5);
}


/* ==========================================================================
   Base Buttons & Universal Utilities
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: var(--shadow-emerald);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -3px rgba(16, 185, 129, 0.45);
}

.btn-outline {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-main) !important;
}
.btn-outline:hover {
  background: var(--primary-container);
  border-color: var(--primary-emerald);
  color: var(--primary) !important;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}
.btn-md {
  padding: 8px 18px;
  font-size: 13.5px;
}
.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 800;
}

/* Header Action Controls */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: var(--primary-container);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cart-btn:hover {
  background: var(--primary-emerald);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-emerald);
}

.cart-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--secondary-coral);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
}

/* Theme Switcher Toggle - Circular Icon Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-dim);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--primary-container);
  color: var(--primary);
  border-color: var(--primary-emerald);
  transform: rotate(15deg) scale(1.05);
}

:root .theme-toggle-btn .sun-icon {
  display: none;
}
:root .theme-toggle-btn .moon-icon {
  display: block;
  color: #6366f1;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: block;
  color: #fbbf24;
}
[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

/* Main Navigation Bar */
.nav-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 4px 0;
  position: relative;
  z-index: 90;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.support-hotline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.support-text {
  color: var(--text-muted);
  font-weight: 500;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  font-family: var(--font-persian);
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: clip;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

/* Headings & Brand Display - Lahzeh Pro 2 */
h1, h2, h3, h4, h5, h6,
.hero-title,
.brand-name,
.shelf-title,
.section-title,
.section-title-group h2,
.footer-column h4,
.footer-about h3,
.modal-header h3,
.cart-drawer-header h3,
.feature-card h3,
.faq-question,
.banner-badge,
.cta-content h2,
.flash-sale-title-block h3,
.zone-city-header h3 {
  font-family: var(--font-headline);
  letter-spacing: -0.01em;
}

/* Native Persian Numerals - KalamehFaNum */
.numeric,
.price-box,
.current-price,
.old-price,
.product-discount-badge,
.timer-box,
.timer-boxes,
.countdown-segment,
.countdown-digits,
.phone-num,
.rating-num,
.shelf-timer,
.shelf-badge,
.stat-number,
.cart-count,
.badge-count,
.item-qty {
  font-family: var(--font-numeric);
}

.container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #004d34 0%, #006c49 50%, #10b981 100%);
  color: #ffffff;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-notice {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-notice .badge {
  background: #ffffff;
  color: var(--primary);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 11px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-actions a {
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.top-bar-actions a:hover {
  opacity: 1;
}

/* ==========================================================================
   Header & Sticky Navigation (Glassmorphic)
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .main-header {
  background: rgba(19, 27, 46, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  color: inherit;
}

.brand-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.25));
  transition: transform var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.06);
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-emerald);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

[data-theme="dark"] .brand-name {
  color: #34d399;
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Location Selector */
.location-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-dim);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.location-btn:hover {
  background: var(--primary-container);
  border-color: var(--primary-emerald);
  color: var(--primary);
}

.location-btn svg {
  color: var(--secondary-coral);
}

/* Search Bar */
.search-wrapper {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.search-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-surface-dim);
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  padding: 4px 16px;
  transition: all var(--transition-fast);
}

.search-input-group:focus-within {
  background: var(--bg-surface);
  border-color: var(--primary-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.search-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  display: none;
  z-index: 120;
}

.search-dropdown.active {
  display: block;
}

.search-dropdown-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.search-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-pill {
  padding: 4px 12px;
  background: var(--bg-surface-dim);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-pill:hover {
  background: var(--primary-container);
  color: var(--primary);
}

/* User Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-surface-dim);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.btn-auth:hover {
  border-color: var(--text-muted);
}

.btn-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--primary-container);
  color: var(--primary);
  transition: all var(--transition-fast);
}

.btn-cart:hover {
  background: var(--primary-emerald);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-emerald);
}

.cart-count {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--secondary-coral);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-dim);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--warning-amber);
}

/* Nav Sub-Bar */
.sub-nav {
  border-top: 1px solid var(--border-subtle);
  padding: 8px 0;
  background: var(--bg-surface);
}

[data-theme="dark"] .sub-nav {
  background: var(--bg-surface);
}

.sub-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--primary-emerald);
}

.nav-item.active a::after {
  content: '';
  position: absolute;
  bottom: -9px;
  right: 0;
  left: 0;
  height: 2.5px;
  background: var(--primary-emerald);
  border-radius: var(--radius-pill);
}

.nav-item.coral a {
  color: var(--secondary-coral);
}

.nav-secondary-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-secondary-actions a:hover {
  color: var(--primary-emerald);
}

/* ==========================================================================
   Hero Section - Modern Velocity Marketplace Showcase
   Guaranteed High Contrast in Both Light & Dark Themes
   ========================================================================== */
.hero-section {
  padding: 28px 0 36px;
  background: linear-gradient(180deg, var(--bg-surface-dim) 0%, var(--bg-main) 100%);
  position: relative;
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(180deg, #111827 0%, #0b0f19 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 36px;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-main);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #047857;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

[data-theme="dark"] .hero-badge {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.hero-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-title span.highlight {
  color: var(--primary-emerald);
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 24px;
}

.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}

.hero-feature .feature-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.hero-feature strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.hero-feature small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-banner-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
}

.hero-banner-visual img.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-banner-visual:hover img.hero-img {
  transform: scale(1.02);
}

.hero-floating-card {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .hero-floating-card {
  background: rgba(19, 27, 46, 0.94);
  border-color: rgba(255, 255, 255, 0.1);
}

.floating-icon {
  font-size: 24px;
}

.hero-floating-card strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.hero-floating-card small {
  display: block;
  font-size: 11px;
  color: var(--primary-emerald);
  font-weight: 700;
}

/* ==========================================================================
   Service Tabs & Squircles
   ========================================================================== */
.service-tabs-section {
  padding: 10px 0 24px;
}

.service-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-surface);
  padding: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  max-width: fit-content;
  margin: 0 auto;
}

.service-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.service-tab-btn.active {
  background: var(--primary-emerald);
  color: #ffffff;
  box-shadow: var(--shadow-emerald);
}

.service-tab-btn.active.food {
  background: var(--secondary-coral);
  box-shadow: var(--shadow-coral);
}

.service-tab-btn:not(.active):hover {
  background: var(--bg-surface-dim);
  color: var(--text-main);
}

/* Categories Squircles */
.categories-section {
  padding: 24px 0 36px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.section-title-group h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.section-title-group p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.section-more-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-emerald);
  transition: gap var(--transition-fast);
}

.section-more-link:hover {
  gap: 10px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 16px 10px;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-emerald);
  box-shadow: var(--shadow-md);
}

.category-icon-squircle {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
  transition: transform var(--transition-fast);
}

.category-card:hover .category-icon-squircle {
  transform: scale(1.1);
}

.category-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.category-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Tint variations for categories */
.tint-green { background: #dcfce7; color: #16a34a; }
.tint-red { background: #fee2e2; color: #dc2626; }
.tint-amber { background: #fef3c7; color: #d97706; }
.tint-blue { background: #e0f2fe; color: #0284c7; }
.tint-purple { background: #f3e8ff; color: #9333ea; }
.tint-orange { background: #ffedd5; color: #ea580c; }
.tint-pink { background: #fce7f3; color: #db2777; }
.tint-teal { background: #ccfbf1; color: #0d9488; }

/* ==========================================================================
   Flash Sale (تخفیف‌های ۳سوتی)
   ========================================================================== */
.flash-sale-section {
  padding: 32px 0 40px;
}

.flash-sale-container {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 60%, #9f1239 100%);
  border-radius: var(--radius-xl);
  padding: 28px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.flash-sale-title-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flash-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.flash-sale-title-block h3 {
  font-size: 22px;
  font-weight: 900;
}

.flash-sale-title-block p {
  font-size: 13px;
  opacity: 0.85;
}

/* Countdown Timer - Stitch Instant Precision */
.countdown-timer,
.countdown-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer-label,
.countdown-label {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.95;
  margin-left: 6px;
  color: inherit;
}

.timer-boxes,
.countdown-digits {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-numeric);
}

.timer-box,
.countdown-segment {
  background: #ffffff;
  color: var(--secondary-coral);
  font-family: var(--font-numeric);
  font-size: 18px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  min-width: 42px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: inline-block;
  line-height: 1.2;
}

[data-theme="dark"] .timer-box,
[data-theme="dark"] .countdown-segment {
  background: #1e293b;
  color: #ff6b6b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.countdown-colon {
  font-weight: 800;
  font-size: 18px;
  color: inherit;
  opacity: 0.8;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  color: var(--text-main);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-discount-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--secondary-coral);
  color: #ffffff;
  font-family: var(--font-numeric);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.product-thumb-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.product-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-thumb-container img {
  transform: scale(1.08);
}

.product-brand {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-meta {
  margin-top: auto;
}

.product-stock-bar {
  width: 100%;
  height: 5px;
  background: var(--bg-surface-dim);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 12px;
}

.stock-fill {
  height: 100%;
  background: var(--secondary-coral);
  border-radius: var(--radius-pill);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.old-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-family: var(--font-numeric);
}

.current-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-numeric);
}

.currency {
  font-size: 11px;
  font-weight: 600;
  margin-right: 4px;
  color: var(--text-muted);
}

.btn-add-cart {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--primary-container);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--primary-emerald);
  color: #ffffff;
  box-shadow: var(--shadow-emerald);
}

/* ==========================================================================
   Restaurants Section
   ========================================================================== */
.restaurants-section {
  padding: 32px 0 40px;
}

.restaurants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.restaurant-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.restaurant-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-coral);
}

.restaurant-cover {
  height: 160px;
  position: relative;
  overflow: hidden;
}

.restaurant-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.restaurant-card:hover .restaurant-cover img {
  transform: scale(1.06);
}

.restaurant-delivery-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.restaurant-badge-free {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-emerald);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.restaurant-body {
  padding: 16px;
}

.restaurant-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.restaurant-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.restaurant-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--warning-amber-light);
  color: var(--warning-amber-hover);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-numeric);
}

.restaurant-cuisine {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.restaurant-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
}

.delivery-cost {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Partner Onboarding & Cooperation Banners (Stitch Velocity Marketplace)
   ========================================================================== */
.cooperation-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.cooperation-card {
  padding: 30px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cooperation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.restaurant-card-coop {
  background: linear-gradient(145deg, #ffffff 0%, #fff5f5 100%);
  border: 1.5px solid rgba(249, 65, 68, 0.25);
}

[data-theme="dark"] .restaurant-card-coop {
  background: linear-gradient(145deg, #131b2e 0%, rgba(249, 65, 68, 0.12) 100%);
  border-color: rgba(249, 65, 68, 0.35);
}

.shop-card-coop {
  background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .shop-card-coop {
  background: linear-gradient(145deg, #131b2e 0%, rgba(16, 185, 129, 0.12) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

.coop-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 14px;
}

.restaurant-card-coop .coop-badge {
  background: var(--secondary-coral-light);
  color: var(--secondary-coral);
}

[data-theme="dark"] .restaurant-card-coop .coop-badge {
  background: rgba(249, 65, 68, 0.2);
  color: #ff6b6b;
}

.shop-card-coop .coop-badge {
  background: var(--primary-light);
  color: var(--primary);
}

[data-theme="dark"] .shop-card-coop .coop-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.coop-title {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
  line-height: 1.3;
}

.coop-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.coop-action-wrap {
  margin-top: auto;
}

.coop-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  justify-content: center;
}

.coop-btn .btn-arrow {
  transition: transform var(--transition-fast);
  margin-right: 6px;
}

.coop-btn:hover .btn-arrow {
  transform: translateX(-4px);
}

@media (max-width: 768px) {
  .cooperation-banner-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }
  .cooperation-card {
    padding: 20px;
  }
  .coop-title {
    font-size: 17px;
  }
}

/* ==========================================================================
   Trust & Value Propositions
   ========================================================================== */
.trust-section {
  padding: 32px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  background: var(--primary-container);
  color: var(--primary-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.trust-item:nth-child(2) .trust-icon-box {
  background: var(--secondary-coral-light);
  color: var(--secondary-coral);
}

.trust-item:nth-child(3) .trust-icon-box {
  background: var(--warning-amber-light);
  color: var(--warning-amber-hover);
}

.trust-item:nth-child(4) .trust-icon-box {
  background: var(--info-sky-light);
  color: var(--info-sky);
}

.trust-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.trust-text p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   App Download Banner
   ========================================================================== */
.app-download-section {
  padding: 48px 0;
}

.app-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  z-index: 0;
}

.app-content {
  position: relative;
  z-index: 1;
}

.app-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.app-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.35;
}

.app-desc {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 24px;
  line-height: 1.7;
}

.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-badge-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.app-badge-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.app-mockup-area {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.app-phone-card {
  width: 260px;
  background: #1e293b;
  border: 4px solid #334155;
  border-radius: 36px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.phone-screen {
  background: #0f172a;
  border-radius: 24px;
  padding: 16px;
  color: #ffffff;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 16px;
}

.phone-app-brand {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-emerald);
}

.phone-card-inner {
  background: #1e293b;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

/* ==========================================================================
   Footer - Modern Structured Layout with Dark/Light Support
   ========================================================================== */
.main-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 28px;
  color: var(--text-secondary);
  position: relative;
}

[data-theme="dark"] .main-footer {
  background: #080c14;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.6fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-about h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-about h3 img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-about p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-surface-dim);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.contact-line strong {
  color: var(--text-main);
  font-weight: 700;
}

.contact-icon {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-links-col h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2.5px;
  background: var(--primary-emerald);
  border-radius: var(--radius-pill);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
}

.footer-links-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links-list a:hover {
  color: var(--primary-emerald);
  transform: translateX(-4px);
}

.footer-badges-col h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-badges-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2.5px;
  background: var(--primary-emerald);
  border-radius: var(--radius-pill);
}

.badges-wrapper {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.badge-item {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  min-height: 120px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  text-align: center;
  cursor: pointer;
}

[data-theme="dark"] .badge-item {
  background: #111827;
  border-color: #1f293d;
}

.badge-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-emerald);
}

.badge-item img {
  max-width: 68px;
  max-height: 68px;
  object-fit: contain;
}

.badge-caption {
  font-size: 9.5px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.3;
  font-weight: 600;
}

[data-theme="dark"] .badge-caption {
  color: #94a3b8;
}

.footer-social-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-dim);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-btn:hover {
  transform: translateY(-3px);
}

.social-btn.instagram:hover {
  background: #e1306c;
  color: #ffffff;
  border-color: #e1306c;
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
}

.social-btn.twitter:hover {
  background: #1da1f2;
  color: #ffffff;
  border-color: #1da1f2;
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.social-btn.aparat:hover {
  background: #ed145b;
  color: #ffffff;
  border-color: #ed145b;
  box-shadow: 0 4px 12px rgba(237, 20, 91, 0.4);
}

.social-btn.whatsapp {
  width: auto;
  padding: 0 14px;
  gap: 6px;
}

.social-btn.whatsapp:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.wa-num {
  font-size: 12px;
  font-family: var(--font-numeric);
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-muted);
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-weight: 700;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-dim);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  color: var(--primary-emerald);
  border-color: var(--primary-emerald);
  transform: translateY(-2px);
}

/* ==========================================================================
   Cart Drawer (Slide-Over)
   ========================================================================== */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cart-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 400px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  z-index: 210;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.cart-drawer-backdrop.active .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-drawer-header h3 {
  font-size: 16px;
  font-weight: 800;
}

.btn-close-drawer {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-dim);
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-emerald);
  font-family: var(--font-numeric);
  margin-top: 4px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-dim);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-numeric);
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-dim);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  background: var(--primary-emerald);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow-emerald);
  transition: all var(--transition-fast);
}

.btn-checkout:hover {
  background: var(--primary-emerald-hover);
}

/* ==========================================================================
   Location Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.city-pill-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.city-pill {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.city-pill.active {
  border-color: var(--primary-emerald);
  background: var(--primary-container);
  color: var(--primary);
}

.neighborhood-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.neighborhood-item {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.neighborhood-item:hover {
  background: var(--primary-container);
  color: var(--primary);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  z-index: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-notification.success {
  border-right: 4px solid var(--primary-emerald);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .restaurants-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
  .app-card {
    grid-template-columns: 1fr;
  }
  .app-mockup-area {
    display: none;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .search-wrapper {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 8px;
  }
  .nav-links {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .restaurants-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .hero-main-card {
    min-height: 320px;
  }
  .hero-content {
    padding: 24px;
  }
  .hero-title {
    font-size: 24px;
  }
  .flash-sale-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Showcase Interactive Components & Extended Stitch System
   Cart Drawer, Modals, Shelf Tabs, Live Search & Checkout Handoff
   ========================================================================== */

/* Cart Drawer & Slide-Over */
.cart-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cart-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  max-width: 92vw;
  height: 100%;
  background: var(--bg-surface);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-right: 1px solid var(--border-subtle);
}

.cart-drawer-backdrop.active .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
}

.cart-drawer-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-drawer {
  background: var(--bg-surface-dim);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.btn-close-drawer:hover {
  background: var(--border-subtle);
  color: var(--text-main);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast);
}

.cart-item-row:hover {
  border-color: var(--primary-emerald);
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 4px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-emerald);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-dim);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary-emerald) 0%, var(--primary) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-emerald);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -4px rgba(16, 185, 129, 0.4);
}

/* Modals (Location & Checkout) */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: 520px;
  max-width: 100%;
  max-height: 85vh;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

.city-pill-selector {
  display: flex;
  gap: 8px;
  padding: 16px 24px 8px;
  overflow-x: auto;
}

.city-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-dim);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.city-pill.active {
  background: var(--primary-emerald);
  color: #ffffff;
  border-color: var(--primary-emerald);
  box-shadow: var(--shadow-emerald);
}

.neighborhood-list {
  padding: 8px 24px 20px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.neighborhood-item {
  padding: 12px 14px;
  background: var(--bg-surface-dim);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all var(--transition-fast);
}

.neighborhood-item:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--primary-emerald);
  transform: translateY(-2px);
}

.neighborhood-item span:first-child {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

/* Checkout Handoff Modal Body */
.checkout-modal-body {
  padding: 24px;
  overflow-y: auto;
}

.checkout-summary-box {
  background: var(--bg-surface-dim);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
}

.checkout-summary-row.highlight {
  font-size: 16px;
  color: var(--primary-emerald);
  border-top: 1px dashed var(--border-subtle);
  padding-top: 10px;
  margin-top: 4px;
}

.checkout-prompt-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.checkout-actions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-checkout-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-normal);
}

.btn-checkout-channel:hover {
  border-color: var(--primary-emerald);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-checkout-channel.primary {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(0, 108, 73, 0.04) 100%);
  border-color: var(--primary-emerald);
}

.channel-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.channel-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.channel-text strong {
  font-size: 14px;
  color: var(--text-main);
}

.channel-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.channel-arrow {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 700;
}

/* Category Shelf Navigation & Panes */
.supermarket-shelves-section {
  padding: 40px 0;
}

.shelf-tabs-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.shelf-tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.shelf-tab-btn:hover {
  border-color: var(--primary-emerald);
  color: var(--text-main);
}

.shelf-tab-btn.active {
  background: var(--primary-emerald);
  color: #ffffff;
  border-color: var(--primary-emerald);
  box-shadow: var(--shadow-emerald);
}

.category-shelf-pane {
  display: none;
}

.category-shelf-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.shelf-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.shelf-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.shelf-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-emerald);
  background: var(--primary-container);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

/* Live Search Results in Header */
.search-results-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-surface-dim);
}

.search-result-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 2px;
}

.search-result-info {
  flex: 1;
}

.search-result-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.search-result-cat {
  font-size: 11px;
  color: var(--text-muted);
}

.search-result-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-emerald);
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 14px;
}

/* Restaurant Card Actions */
.btn-order-food {
  color: var(--secondary-coral);
  font-weight: 800;
  text-decoration: none;
  font-size: 13px;
  transition: gap var(--transition-fast);
}

.btn-order-food:hover {
  text-decoration: underline;
}

.restaurant-logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Coverage Zones Section */
.zones-section {
  padding: 40px 0;
  background: var(--bg-surface-dim);
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.zone-city-box {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.zone-city-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.zone-city-header h3 {
  font-size: 16px;
  font-weight: 800;
}

.delivery-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-emerald);
  background: var(--primary-container);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.zone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zone-tag {
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-surface-dim);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.zone-tag:hover {
  background: var(--primary-emerald);
  color: #ffffff;
  border-color: var(--primary-emerald);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
  .zones-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Phase 79 Enhancements: Strict Phone LTR, All Markets Grid, Official Badges
   ========================================================================== */

/* Strict Phone LTR Display */
.phone-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  direction: rtl !important;
  color: inherit !important;
  text-decoration: none !important;
}

.phone-lbl {
  font-size: 12.5px;
  color: var(--text-muted);
}

.phone-num {
  direction: ltr !important;
  display: inline-block !important;
  unicode-bidi: isolate !important;
  font-family: inherit !important;
  font-weight: 700 !important;
}

/* Informative Showcase Notice Banner */
.showcase-info-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.info-banner-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.info-banner-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-main);
}

/* Category Shelf Pills & Panels */
.category-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 16px;
  scrollbar-width: thin;
}

.category-pill-btn {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.category-pill-btn.active, .category-pill-btn:hover {
  background: var(--primary-emerald);
  color: #ffffff;
  border-color: var(--primary-emerald);
  box-shadow: var(--shadow-emerald);
}

.shelf-panel {
  display: none;
}

.shelf-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.shelf-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.shelf-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.more-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 2px dashed rgba(16, 185, 129, 0.4);
}

.more-card-content {
  padding: 24px 16px;
}

.more-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.more-card h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}

.more-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* All Markets Grid */
.all-markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.market-badge-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.market-badge-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-emerald);
}

.market-badge-btn.pwa {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-color: var(--primary-emerald);
}

.market-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.market-text {
  display: flex;
  flex-direction: column;
}

.market-text small {
  font-size: 11px;
  color: var(--text-muted);
}

.market-text strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

/* Footer Contact Details & Badges */
.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.contact-icon {
  flex-shrink: 0;
}

.footer-badges-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.badges-wrapper {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.badge-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 108px;
  min-height: 124px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  text-align: center;
}

.badge-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-emerald);
}

.badge-item img {
  max-width: 76px;
  max-height: 76px;
  object-fit: contain;
}

.badge-caption {
  font-size: 10px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.3;
}

.footer-social-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.social-label {
  font-size: 12px;
  color: var(--text-muted);
}

.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-btn:hover {
  background: var(--primary-emerald);
  color: #ffffff;
  border-color: var(--primary-emerald);
}

.social-btn.whatsapp {
  width: auto;
  border-radius: var(--radius-pill);
  padding: 0 12px;
  gap: 6px;
  background: rgba(37, 211, 102, 0.1);
  color: #128c7e;
  border-color: rgba(37, 211, 102, 0.3);
}

.social-btn.whatsapp:hover {
  background: #25d366;
  color: #ffffff;
}

.wa-num {
  font-size: 12px;
  font-weight: 700;
  direction: ltr;
}


/* ==========================================================================
   Mobile Bottom Navigation & Touch UX
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(19, 27, 46, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  flex: 1;
  padding: 6px 0;
  transition: all var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--primary-emerald);
}

.mobile-cart-wrap {
  position: relative;
  display: inline-flex;
}

.mobile-cart-wrap .cart-badge {
  top: -6px;
  left: -8px;
  font-size: 10px;
  min-width: 18px;
  height: 18px;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .restaurants-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-banner-visual {
    order: 2;
  }
  .restaurants-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
  .app-card {
    grid-template-columns: 1fr;
  }
  .app-mockup-area {
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px; /* space for sticky bottom nav */
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .top-bar {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
  }

  .brand-logo img {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .location-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .header-actions .header-download-btn {
    display: none; /* handled by bottom nav */
  }

  .search-wrapper {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 4px;
  }

  .nav-bar {
    padding: 2px 0;
  }

  .nav-inner {
    justify-content: flex-start;
  }

  .nav-extra {
    display: none;
  }

  .nav-links {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-item a {
    font-size: 13px;
    padding: 6px 2px;
  }

  /* Hero Section on Mobile */
  .hero-section {
    padding: 16px 0 24px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .hero-desc {
    font-size: 13.5px;
    margin-bottom: 16px;
    line-height: 1.7;
  }

  .hero-features-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 18px;
  }

  .hero-feature {
    padding: 8px 12px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* Products Grid: 2 Columns on Mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .product-card {
    padding: 10px 8px !important;
    border-radius: 12px !important;
  }

  .product-discount-badge {
    top: 8px;
    right: 8px;
    font-size: 10.5px;
    padding: 2px 6px;
  }

  .product-thumb-container {
    height: 120px !important;
    aspect-ratio: auto !important;
    margin-bottom: 8px !important;
    padding: 4px;
  }

  .product-thumb-container img {
    max-height: 110px !important;
    object-fit: contain !important;
  }

  .product-title {
    font-size: 12px !important;
    line-height: 1.4 !important;
    height: 34px !important;
    margin-bottom: 8px !important;
  }

  .product-brand {
    font-size: 10px !important;
    margin-bottom: 2px !important;
  }

  .product-stock-bar {
    margin-bottom: 8px !important;
  }

  .product-price-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .price-box {
    text-align: right;
  }

  .current-price {
    font-size: 13.5px !important;
  }

  .old-price {
    font-size: 11px !important;
  }

  .btn-add-cart {
    width: 100% !important;
    height: 32px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  .btn-add-cart::after {
    content: ' افزودن';
    font-size: 12px;
  }

  /* Flash Sale Header on Mobile */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .countdown-timer {
    align-self: flex-start;
  }

  /* Shelf Headers & Tabs */
  .shelf-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  .shelf-title {
    font-size: 16px;
  }

  .shelf-desc {
    display: none;
  }

  .category-pill-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Restaurants on Mobile: 1 Column */
  .restaurants-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .restaurant-thumb-wrap {
    height: 160px;
  }

  /* Footer on Mobile */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .badges-wrapper {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-title {
    font-size: 21px;
  }

  .all-markets-grid {
    grid-template-columns: 1fr;
  }

  .cart-drawer {
    width: 100%;
    max-width: 100vw;
  }
}
