/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  -webkit-tap-highlight-color: transparent
}

:root {
  --bg: #f5f6fa;
  --bg-card: #ffffff;
  --bg-card-alt: #fafbfc;
  --bg-elevated: #ffffff;
  --surface: #f0f2f5;
  --surface-hover: #e8eaf0;
  --text: #1a1a2e;
  --text-secondary: #555577;
  --text-muted: #8888aa;
  --accent: #00b894;
  --accent-dark: #009678;
  --accent-light: #e6f9f5;
  --accent-glow: rgba(0, 184, 148, 0.15);
  --accent-glow-strong: rgba(0, 184, 148, 0.3);
  --border: #e2e5ed;
  --border-accent: rgba(0, 184, 148, 0.35);
  --danger: #ff5252;
  --warning: #ffb300;
  --info: #0288d1;
  --success: #00b894;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.13);
  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px));
  font-size: 15px;
  overflow-x: hidden
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(243, 235, 227, 0.911);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.splash-content {
  text-align: center;
  animation: splashPulse 2s infinite ease-in-out;
}

.splash-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(0, 184, 148, 0.4));
  border-radius: 50%;
}

.splash-loader {
  width: 50px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.splash-loader::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: splashLoaderLine 1.5s infinite;
}

@keyframes splashLoaderLine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes splashPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.04);
    opacity: 0.9;
  }
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}


/* ===== BRAND ===== */
.cafe-brand {
  display: flex;
  align-items: center;
  gap: 10px
}

.brand-logo {
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 184, 148, 0.25));
  border-radius: 50%
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%
}

/* ===== HEADER ===== */
.header {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06)
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center
}

.header-left h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ff8c00, #e63946, #ff4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.tagline {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 400
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 12px
}

.contact-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px;
  transition: var(--transition)
}

.contact-link:hover {
  color: var(--accent)
}

.btn-icon {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition)
}

.btn-icon:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent)
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-top: 1px solid var(--glass-border);
  z-index: 1001;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-around;
  gap: 4px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06)
}

.mobile-nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  gap: 4px;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  position: relative;
  letter-spacing: 0.3px;
  font-family: 'Outfit', sans-serif
}

.mobile-nav-tab i {
  font-size: 20px;
  transition: var(--transition)
}

.mobile-nav-tab.active {
  color: var(--accent);
  background: var(--accent-light)
}

.mobile-nav-tab.active i {
  transform: scale(1.1)
}

.mobile-nav-tab:active {
  transform: scale(0.92);
  opacity: 0.8
}

.mobile-cart-badge {
  position: absolute;
  top: 2px;
  right: 15%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--accent-glow-strong);
  border: 2px solid var(--bg)
}

/* ===== MAIN ===== */
.main-container {
  padding: 20px 0;
  min-height: calc(100vh - 160px)
}

.mobile-tab-content {
  display: none;
  animation: fadeSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1)
}

.mobile-tab-content.active {
  display: block
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(14px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ===== BANNER CAROUSEL ===== */
.banner-carousel-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  background: var(--surface);
  display: none;
}

.banner-carousel-container.show {
  display: block;
}

.banner-carousel {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 180px;
  width: 100%;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: white;
  transform: scale(1.3);
  border-color: transparent;
}

@media(max-width:768px) {
  .banner-carousel {
    height: 150px;
  }
}

@media(max-width:480px) {
  .banner-carousel {
    height: 130px;
  }
}

/* ===== SEARCH ===== */
.menu-header {
  margin-bottom: 20px
}

.search-container {
  margin-bottom: 16px
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: var(--transition);
  box-shadow: var(--shadow)
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 4px 20px rgba(0, 0, 0, 0.06)
}

.search-box i {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 16px
}

#menuSearch {
  width: 100%;
  padding: 16px 16px 16px 46px;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  font-family: 'Outfit', sans-serif
}

#menuSearch:focus {
  outline: none
}

#menuSearch::placeholder {
  color: var(--text-muted)
}

.clear-search {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  font-size: 14px;
  border-radius: 50%;
  transition: var(--transition)
}

.clear-search:hover {
  color: var(--accent);
  background: var(--accent-light)
}

/* ===== CATEGORY TABS ===== */
.category-tabs-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 -20px;
  padding: 0 20px
}

.category-tabs-wrapper::-webkit-scrollbar {
  display: none
}

.category-tabs {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
  white-space: nowrap
}

.category-tab {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
  box-shadow: var(--shadow)
}

.category-tab:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--border-accent)
}

.category-tab:active {
  transform: scale(0.95)
}

.category-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 16px var(--accent-glow-strong)
}

/* ===== MENU GRID ===== */
.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px
}

.menu-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow)
}

.menu-item:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 28px rgba(0, 184, 148, 0.12)
}

.menu-item:active {
  transform: scale(0.98)
}

.out-of-stock {
  color: var(--danger);
  padding: 4px 0;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px
}

.few-left {
  color: var(--warning);
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px
}

.item-image {
  height: 180px;
  width: 100%;
  object-fit: cover;
  background: var(--surface);
  transition: transform 0.4s ease
}

.menu-item:hover .item-image {
  transform: scale(1.04)
}

.item-content {
  padding: 16px
}

.item-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 8px
}

.item-title span:first-child {
  font-weight: 600;
  font-size: 15px;
  color: var(--text)
}

.item-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
  white-space: nowrap
}

.item-description {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 14px
}

.quantity-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: var(--transition);
  font-size: 14px
}

.quantity-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent)
}

.quantity-btn:active {
  transform: scale(0.9)
}

.quantity-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none
}

.quantity-display {
  font-weight: 700;
  min-width: 36px;
  text-align: center;
  font-size: 18px;
  color: var(--text)
}

/* ===== EMPTY STATES ===== */
.empty-order,
.no-results,
.no-orders {
  text-align: center;
  padding: 52px 20px;
  color: var(--text-muted)
}

.empty-order i,
.no-results i,
.no-orders i {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--text-muted);
  opacity: 0.4
}

.empty-order h3,
.no-results h3,
.no-orders h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600
}

.empty-order p,
.no-results p,
.no-orders p {
  margin-bottom: 20px;
  font-size: 14px
}

.btn-browse-menu {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 16px var(--accent-glow-strong)
}

.btn-browse-menu:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow-strong)
}

.btn-browse-menu:active {
  transform: scale(0.96)
}

/* ===== ERROR MESSAGE ===== */
.error-message {
  text-align: center;
  padding: 80px 20px
}

.error-message i {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--text-muted);
  opacity: 0.4
}

.error-message .bold {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text)
}

.error-message .subtext {
  color: var(--text-muted);
  font-size: 14px
}

/* ===== CART ===== */
.cart-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow)
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(145deg, #ffffff, var(--bg-card-alt))
}

.cart-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text)
}

.item-count {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700
}

.cart-content {
  padding: 0
}

.order-items-container {
  max-height: 300px;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--surface)
}

.order-items-container::-webkit-scrollbar {
  width: 4px
}

.order-items-container::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 10px
}

.order-items-container::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition)
}

.order-item:hover {
  border-color: var(--border-accent);
  background: white
}

.order-item-info {
  flex: 1
}

.order-item-name {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
  font-size: 14px
}

.order-item-quantity {
  font-size: 13px;
  color: var(--text-muted)
}

.order-item-actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.order-item-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 15px
}

.remove-item-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition)
}

.remove-item-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(255, 82, 82, 0.08)
}

.remove-item-btn:active {
  transform: scale(0.9)
}

/* ===== COUPON ===== */
.coupon-section {
  padding: 20px;
  border-top: 1px solid var(--border)
}

.coupon-header {
  margin-bottom: 14px
}

.coupon-header h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text)
}

.optional {
  font-size: 12px;
  color: var(--text-muted)
}

.coupon-input-container {
  display: flex;
  gap: 8px;
  margin-bottom: 6px
}

#couponInput {
  flex: 1;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
  background: var(--surface);
  color: var(--text);
  font-family: 'Outfit', sans-serif
}

#couponInput:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow)
}

.apply-coupon-btn {
  background: var(--text);
  color: white;
  border: none;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif
}

.apply-coupon-btn:hover {
  background: var(--accent)
}

.apply-coupon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed
}

.coupon-error {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
  margin-top: 4px
}

.applied-coupon {
  background: var(--accent-light);
  border: 1px solid var(--border-accent);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  animation: slideDown 0.3s ease
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.applied-coupon-info {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.coupon-code {
  font-weight: 700;
  color: var(--accent);
  background: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--border-accent)
}

.coupon-discount {
  font-weight: 700;
  color: var(--accent);
  font-size: 14px
}

.remove-coupon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  font-size: 14px;
  transition: var(--transition);
  border-radius: 50%
}

.remove-coupon-btn:hover {
  color: var(--danger);
  background: rgba(255, 82, 82, 0.08)
}

/* ===== DISCOUNT/SUMMARY ===== */
.discount-breakdown {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--accent-light)
}

.discount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary)
}

.discount-amount {
  color: var(--accent);
  font-weight: 700
}

.order-summary-card {
  padding: 20px;
  border-top: 1px solid var(--border)
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-secondary)
}

.summary-row.grand-total {
  border-top: 2px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text)
}

/* ===== CLEAR ORDER ===== */
.clear-order-container {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  text-align: center
}

.clear-order-btn {
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-family: 'Outfit', sans-serif
}

.clear-order-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(255, 82, 82, 0.05)
}

.clear-order-btn:active {
  transform: scale(0.98)
}

/* ===== MOBILE NUMBER ===== */
.mobile-section {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-card-alt)
}

.mobile-input-container {
  margin-top: 8px
}

.mobile-input {
  width: 100%;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: var(--transition);
  background: white;
  color: var(--text);
  font-family: 'Outfit', sans-serif
}

.mobile-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow)
}

.mobile-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.12)
}

.mobile-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 6px;
  display: none;
  animation: shake 0.3s ease
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0)
  }

  25% {
    transform: translateX(-5px)
  }

  75% {
    transform: translateX(5px)
  }
}

.mobile-error.show {
  display: block
}

/* ===== DELIVERY OPTIONS ===== */
.delivery-options-section {
  padding: 20px;
  border-top: 1px solid var(--border)
}

.section-header {
  margin-bottom: 14px
}

.section-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text)
}

.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.delivery-option {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
  background: white
}

.delivery-option:hover {
  border-color: var(--border-accent);
  box-shadow: 0 4px 16px var(--accent-glow)
}

.delivery-option input[type="radio"] {
  display: none
}

.delivery-option label {
  display: flex;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  gap: 16px
}

.option-icon {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition)
}

.option-icon i {
  font-size: 18px;
  color: var(--accent)
}

.delivery-option input[type="radio"]:checked+label .option-icon {
  background: var(--accent)
}

.delivery-option input[type="radio"]:checked+label .option-icon i {
  color: white
}

.option-details {
  flex: 1
}

.option-title {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px
}

.option-desc {
  display: block;
  font-size: 13px;
  color: var(--text-muted)
}

.delivery-option input[type="radio"]:checked+label {
  background: var(--accent-light)
}

/* ===== ADDRESS ===== */
.delivery-section,
.pickup-section {
  padding: 20px;
  border-top: 1px solid var(--border)
}

.address-input-container {
  margin-bottom: 14px
}

.address-input {
  width: 100%;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  resize: none;
  font-family: 'Outfit', sans-serif;
  line-height: 1.5;
  transition: var(--transition);
  background: white;
  color: var(--text)
}

.address-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow)
}

.address-input.error {
  border-color: var(--danger)
}

.address-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
  display: none
}

.address-error.show {
  display: block
}

.address-tips {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent)
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent-dark)
}

.pickup-details {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary)
}

.detail-item i {
  color: var(--accent);
  margin-top: 2px
}

.detail-item strong {
  color: var(--text);
  font-weight: 600
}

/* ===== WHATSAPP BUTTON ===== */
.order-action {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: linear-gradient(145deg, #ffffff, var(--bg-card-alt))
}

.whatsapp-btn {
  display: flex;
  width: 100%;
  background: linear-gradient(135deg, #25D366, #1da851);
  color: white;
  border: none;
  padding: 18px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  letter-spacing: 0.3px;
  font-family: 'Outfit', sans-serif
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4)
}

.whatsapp-btn:active {
  transform: scale(0.97)
}

.whatsapp-btn:disabled {
  background: var(--surface);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none
}

.whatsapp-btn i {
  font-size: 22px
}

.order-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px
}

/* ======================================================= */
/* ===        TRACK SECTION — PREMIUM PROGRESS BAR      === */
/* ======================================================= */

.track-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow)
}

/* Decorative hero header for track tab */
.track-header {
  padding: 28px 20px 24px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: linear-gradient(160deg, #f0fdf9 0%, #ffffff 100%);
  position: relative;
  overflow: hidden
}

.track-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(0, 184, 148, 0.12), transparent 70%);
  border-radius: 50%
}

.track-header::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(0, 184, 148, 0.08), transparent 70%);
  border-radius: 50%
}

.track-header h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
  position: relative
}

.track-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  position: relative
}

.track-content {
  padding: 20px
}

.track-input-section {
  margin-bottom: 28px
}

/* Track input row */
.input-group {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
  background: white;
  box-shadow: var(--shadow)
}

.input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow)
}

.input-icon {
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent)
}

#trackOrderId {
  flex: 1;
  padding: 16px 12px;
  border: none;
  font-size: 15px;
  background: transparent;
  color: var(--text);
  font-family: 'Outfit', sans-serif
}

#trackOrderId:focus {
  outline: none
}

.track-order-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border: none;
  padding: 0 28px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.3px
}

.track-order-btn:hover {
  background: var(--accent-dark)
}

.track-order-btn:active {
  transform: scale(0.96)
}

.tracking-note {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center
}

/* ===== ORDER STATUS CARD (progress bar redesign) ===== */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.order-details {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md)
}

.order-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-bottom: none
}

.order-details-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: white
}

.close-order-details {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition)
}

.close-order-details:hover {
  background: rgba(255, 255, 255, 0.35)
}

.order-info {
  padding: 0
}

/* Order ID + status hero inside order card */
.order-id-badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  text-align: center;
  padding: 16px 20px;
  font-size: 22px;
  color: var(--text);
  background: var(--bg-card-alt);
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border)
}

.order-id-badge span {
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 4px 16px;
  border-radius: 8px;
  font-size: 18px
}

/* ===== PROGRESS BAR TRACK ===== */
.order-progress-section {
  padding: 28px 24px 20px;
  background: white
}

.progress-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px
}

/* connecting line between steps */
.progress-track::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  z-index: 0
}

.progress-track-fill {
  position: absolute;
  top: 22px;
  left: 22px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 4px;
  z-index: 1;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1)
}

@keyframes progressPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-glow-strong)
  }

  50% {
    box-shadow: 0 0 0 8px transparent
  }
}

/* each step node */
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  position: relative;
  flex: 1
}

.progress-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 3px solid var(--border);
  background: white;
  transition: var(--transition);
  position: relative
}

.progress-step.done .progress-step-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 16px var(--accent-glow-strong)
}

.progress-step.active .progress-step-icon {
  background: white;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 5px rgba(0, 184, 148, 0.15);
  animation: progressPulse 2s infinite
}

.progress-step.pending .progress-step-icon {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
  opacity: 0.5
}

.progress-step-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  color: var(--text-muted);
  max-width: 60px
}

.progress-step.done .progress-step-label,
.progress-step.active .progress-step-label {
  color: var(--accent-dark)
}

/* Current status display */
.current-status-display {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  gap: 14px
}

.current-status-emoji {
  font-size: 28px;
  line-height: 1
}

.current-status-text {
  flex: 1
}

.current-status-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px
}

.current-status-text span {
  font-size: 13px;
  color: var(--text-muted)
}

/* ===== ORDER ITEMS SECTION inside track ===== */
.track-order-items {
  margin: 0;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-card-alt)
}

.track-order-items h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px
}

.track-order-items h4 i {
  color: var(--accent)
}

.track-item-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  color: var(--text-secondary)
}

.track-item-row:last-child {
  border-bottom: none
}

.track-item-name {
  font-weight: 500;
  color: var(--text)
}

.track-item-qty {
  color: var(--text-muted)
}

.track-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px 16px;
  background: white;
  border-top: 2px solid var(--border)
}

.track-total-row span:first-child {
  font-size: 15px;
  font-weight: 700;
  color: var(--text)
}

.track-total-row .track-total-amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent)
}

/* Refresh + close buttons inside track */
.track-actions {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border)
}

.track-refresh-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.track-refresh-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow-strong)
}

.track-refresh-btn:active {
  transform: scale(0.97)
}

.track-close-btn {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition)
}

.track-close-btn:hover {
  border-color: var(--border-accent);
  color: var(--accent)
}

/* ===== "HOW IT WORKS" section ===== */
.info-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  margin-top: 20px;
  box-shadow: var(--shadow)
}

.info-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px
}

.info-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition)
}

.info-step:hover {
  border-color: var(--border-accent);
  background: var(--accent-light)
}

.step-number {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 14px
}

.step-content h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text)
}

.step-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px
}

/* ===== ORDERS TAB ===== */
.orders-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow)
}

.orders-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: linear-gradient(145deg, #ffffff, var(--bg-card-alt))
}

.orders-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text)
}

.orders-subtitle {
  color: var(--text-muted);
  font-size: 14px
}

.orders-content {
  padding: 20px
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px
}

.section-title h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text)
}

.btn-clear-history {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-family: 'Outfit', sans-serif
}

.btn-clear-history:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(255, 82, 82, 0.05)
}

.recent-orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px
}

.recent-orders-list::-webkit-scrollbar {
  width: 4px
}

.recent-orders-list::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 10px
}

.recent-orders-list::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow)
}

.history-item:hover {
  border-color: var(--border-accent);
  box-shadow: 0 4px 16px var(--accent-glow)
}

.history-item:active {
  transform: scale(0.98)
}

.history-info {
  flex: 1
}

.history-id {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 14px
}

.history-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px
}

.history-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-block
}

.history-status.pending {
  background: rgba(255, 179, 0, 0.15);
  color: #d4930a
}

.history-status.preparing {
  background: rgba(2, 136, 209, 0.13);
  color: #0277bd
}

.history-status.out-for-delivery {
  background: rgba(123, 31, 162, 0.12);
  color: #7b1fa2
}

.history-status.delivered {
  background: rgba(0, 184, 148, 0.13);
  color: var(--accent-dark)
}

.history-total {
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
  margin: 0 12px
}

.history-item i {
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition)
}

.history-item:hover i {
  color: var(--accent);
  transform: translateX(3px)
}

/* ===== STATUS INFO ===== */
.status-info {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  margin-top: 20px;
  box-shadow: var(--shadow)
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px
}

.status-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border)
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0
}

.status-item.pending .status-dot {
  background: #ffb300;
  box-shadow: 0 0 0 4px rgba(255, 179, 0, 0.2)
}

.status-item.preparing .status-dot {
  background: #0288d1;
  box-shadow: 0 0 0 4px rgba(2, 136, 209, 0.2)
}

.status-item.out-for-delivery .status-dot {
  background: #7b1fa2;
  box-shadow: 0 0 0 4px rgba(123, 31, 162, 0.2)
}

.status-item.delivered .status-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow)
}

.status-text {
  flex: 1
}

.status-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px
}

.status-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(145deg, #f0f3f5, #ffffff);
  padding: 36px 0 20px;
  border-top: 1px solid var(--border)
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 28px
}

.footer-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  position: relative;
  display: inline-block
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px
}

.footer-section p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border)
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px
}

/* ===== PRODUCT MODAL ===== */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.product-modal-content {
  background: var(--bg-card);
  width: 100%;
  max-width: 500px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: modalScaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleIn {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.close-modal:hover {
  transform: rotate(90deg);
  background: white;
}

.modal-product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-modal-body {
  /* padding: 24px; */
  position: relative;
}

.modal-product-info {
  padding: 24px;
}

.modal-product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.modal-product-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.modal-product-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.modal-product-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.quantity-selector.large .quantity-btn {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.quantity-selector.large .quantity-display {
  font-size: 20px;
  min-width: 44px;
}

.btn-add-modal {
  flex: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border: none;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--accent-glow-strong);
}

.btn-add-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow-strong);
}

.btn-add-modal:active {
  transform: scale(0.98);
}

@media (max-width: 500px) {
  .product-modal {
    padding: 0;
    align-items: flex-end;
  }

  .product-modal-content {
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    animation: modalSlideUpFull 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes modalSlideUpFull {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }

  .modal-product-image {
    height: 300px;
  }
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(8px)
}

.loading-content {
  background: white;
  padding: 36px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.3s ease;
  border: 1px solid var(--border)
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--surface);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.loading-content p {
  color: var(--text);
  font-weight: 600;
  font-size: 15px
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10001;
  box-shadow: var(--shadow-lg);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 360px;
  width: auto;
  font-weight: 500;
  backdrop-filter: blur(8px)
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

.toast i {
  font-size: 16px
}

.toast.success {
  background: var(--accent)
}

.toast.error {
  background: var(--danger)
}

.toast.info {
  background: #555
}

/* ===== RESPONSIVE: TABLET ===== */
@media(max-width:768px) {
  body {
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px))
  }

  .container {
    padding: 0 16px
  }

  .menu-items {
    grid-template-columns: 1fr 1fr;
    gap: 12px
  }

  .item-image {
    height: 140px
  }

  .item-content {
    padding: 12px
  }

  .item-title span:first-child {
    font-size: 13px
  }

  .item-price {
    font-size: 14px
  }

  .item-description {
    font-size: 12px;
    margin-bottom: 10px;
    -webkit-line-clamp: 1;
    line-clamp: 1
  }

  .quantity-btn {
    width: 36px;
    height: 36px
  }

  .mobile-nav {
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px))
  }

  .mobile-nav-tab {
    padding: 8px 2px;
    font-size: 9px
  }

  .mobile-nav-tab i {
    font-size: 18px
  }

  .header-left h1 {
    font-size: 24px
  }

  .tagline {
    font-size: 11px
  }

  .brand-logo {
    height: 44px
  }

  .cart-header,
  .track-header,
  .orders-header {
    padding: 16px
  }

  .track-content,
  .orders-content {
    padding: 16px
  }

  .coupon-section,
  .delivery-options-section,
  .delivery-section,
  .pickup-section,
  .order-action,
  .mobile-section {
    padding: 16px
  }

  .whatsapp-btn {
    padding: 16px;
    font-size: 15px
  }

  .input-group {
    flex-direction: column;
    border: none;
    gap: 10px;
    background: transparent;
    box-shadow: none
  }

  .input-icon {
    display: none
  }

  #trackOrderId {
    padding: 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: white
  }

  .track-order-btn {
    padding: 16px;
    border-radius: var(--radius-sm);
    justify-content: center
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .footer {
    padding: 28px 0 16px
  }

  .toast {
    bottom: calc(85px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 32px);
    max-width: 320px
  }

  .progress-step-label {
    font-size: 10px;
    max-width: 54px
  }

  .progress-step-icon {
    width: 40px;
    height: 40px;
    font-size: 16px
  }

  .order-progress-section {
    padding: 20px 16px 16px
  }

  .track-actions {
    padding: 12px 16px
  }

  .track-order-items {
    padding: 14px 16px
  }

  .track-total-row {
    padding: 10px 16px 14px
  }

  .order-id-badge {
    font-size: 18px
  }

  .order-id-badge span {
    font-size: 15px
  }
}

/* ===== RESPONSIVE: SMALL PHONES ===== */
@media(max-width:480px) {
  .menu-items {
    grid-template-columns: 1fr 1fr;
    gap: 10px
  }

  .item-image {
    height: 120px
  }

  .item-content {
    padding: 10px
  }

  .item-title {
    flex-direction: column;
    gap: 2px
  }

  .item-title span:first-child {
    font-size: 13px
  }

  .item-price {
    font-size: 13px
  }

  .item-description {
    display: none
  }

  .quantity-selector {
    gap: 10px
  }

  .quantity-btn {
    width: 34px;
    height: 34px
  }

  .quantity-display {
    font-size: 16px;
    min-width: 28px
  }

  .mobile-nav-tab span {
    font-size: 9px
  }

  .mobile-nav-tab i {
    font-size: 17px
  }

  .mobile-cart-badge {
    top: -2px;
    right: 18%;
    min-width: 18px;
    height: 18px;
    font-size: 9px
  }

  .coupon-input-container {
    flex-direction: column
  }

  .apply-coupon-btn {
    width: 100%
  }

  .delivery-option label {
    padding: 14px;
    gap: 12px
  }

  .option-icon {
    width: 40px;
    height: 40px
  }

  .option-icon i {
    font-size: 16px
  }

  .whatsapp-btn {
    font-size: 14px;
    padding: 16px
  }

  .history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px
  }

  .history-total {
    align-self: flex-start;
    margin: 0
  }

  .history-item i {
    display: none
  }

  .header-left h1 {
    font-size: 22px
  }

  .brand-logo {
    height: 40px
  }

  .progress-step-icon {
    width: 36px;
    height: 36px;
    font-size: 14px
  }

  .progress-step-label {
    font-size: 9px;
    max-width: 48px
  }

  .current-status-emoji {
    font-size: 24px
  }

  .track-actions {
    flex-direction: column
  }
}

/* ===== RESPONSIVE: VERY SMALL ===== */
@media(max-width:360px) {
  .container {
    padding: 0 12px
  }

  .menu-items {
    gap: 8px
  }

  .item-image {
    height: 100px
  }

  .item-content {
    padding: 8px
  }

  .item-title span:first-child {
    font-size: 12px
  }

  .item-price {
    font-size: 12px
  }

  .quantity-btn {
    width: 30px;
    height: 30px;
    font-size: 12px
  }

  .quantity-display {
    font-size: 14px;
    min-width: 24px
  }

  .header-left h1 {
    font-size: 20px
  }

  .brand-logo {
    height: 36px
  }
}

/* ===== TOUCH DEVICES ===== */
@media(hover:none) and (pointer:coarse) {

  .quantity-btn:hover,
  .remove-item-btn:hover,
  .apply-coupon-btn:hover,
  .clear-order-btn:hover,
  .whatsapp-btn:hover,
  .track-order-btn:hover,
  .btn-browse-menu:hover,
  .track-refresh-btn:hover,
  .btn-clear-history:hover,
  .history-item:hover,
  .info-step:hover,
  .delivery-option:hover,
  .menu-item:hover {
    transform: none;
    box-shadow: none
  }

  .menu-item:hover .item-image {
    transform: none
  }

  .menu-item:active {
    transform: scale(0.98)
  }

  .quantity-btn:active {
    transform: scale(0.88)
  }

  .btn-browse-menu:active,
  .whatsapp-btn:active,
  .track-order-btn:active,
  .track-refresh-btn:active {
    transform: scale(0.96)
  }
}

/* ===== PRINT ===== */
@media print {

  .mobile-nav,
  .header,
  .footer,
  .order-action,
  .track-refresh-btn,
  .btn-clear-history {
    display: none !important
  }

  body {
    padding: 20px;
    background: white;
    color: #000
  }
}