/* ══════════════════════════════════════════════════════════════════ */
/* HarpyOrder — Client Digital Menu & Food Ordering Experience Styles */
/* ══════════════════════════════════════════════════════════════════ */

/* ── Integrated Hero Header with Cover Background ───────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  padding-top: max(14px, env(safe-area-inset-top, 14px));
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  background-size: cover !important;
  background-position: center !important;
}

.app-header.has-cover {
  border-bottom: none !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.40);
}

.app-header.has-cover .brand-text h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.app-header.has-cover .brand-text p {
  color: rgba(255, 255, 255, 0.88) !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.app-header.has-cover .btn-ghost {
  background: rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

.app-header.has-cover .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

.app-header.has-cover .brand-logo {
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.app-header.has-cover #btn-header-tracker {
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-logo-wrap {
  position: relative;
  flex-shrink: 0;
}
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  display: block;
  transition: transform 0.2s ease;
}
.brand-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: var(--accent-wa, #22c55e);
  border: 2px solid var(--surface, #1e1814);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
  z-index: 2;
}
.brand-text {
  min-width: 0;
}
.brand-text h1 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text p {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .app-header {
    padding: 8px 0;
  }
  .header-wrap {
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .brand-info {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }
  .brand-text {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }
  .brand-text p {
    display: none !important; /* Hide long subtitle on mobile to save vertical space */
  }
  .brand-text h1 {
    font-size: 13.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .header-actions {
    flex-wrap: nowrap !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
  .btn-live-preview span,
  #btn-admin-logout span {
    display: none !important;
  }
  #btn-admin-logout,
  .btn-live-preview {
    padding: 6px 9px !important;
    font-size: 12px !important;
  }
  #store-whatsapp-link .btn-wa-text {
    display: none !important;
  }
  #store-whatsapp-link {
    padding: 6px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
  }
  #store-whatsapp-link svg {
    width: 18px !important;
    height: 18px !important;
    color: var(--accent-wa, #22c55e) !important;
    stroke: var(--accent-wa, #22c55e) !important;
    margin: 0 !important;
    display: block !important;
  }
  #sound-toggle-btn,
  #theme-toggle-btn {
    padding: 6px 8px !important;
  }
}


/* ── Announcement Banner & Highlights ────────────────────── */
.announcement-bar {
  background: var(--primary-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  margin: 14px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}
.announcement-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.announcement-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.delivery-chip-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Last Order Quick Recall Bar ─────────────────────────── */
.last-order-banner {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.last-order-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.last-order-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.last-order-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}
.last-order-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.btn-reorder {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--tr-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-reorder:active {
  transform: scale(0.97);
}

/* ── Discovery Ribbon ────────────────────────────────────── */
.discovery-strip {
  margin: 16px 0 16px;
}
.discovery-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scroll-snap-type: x proximity;
  -webkit-tap-highlight-color: transparent;
}
.discovery-scroll::-webkit-scrollbar {
  display: none;
}
.discovery-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-body);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.discovery-chip:active {
  transform: scale(0.96);
}
.discovery-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}
.discovery-chip .chip-count {
  background: rgba(255, 255, 255, 0.2);
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}


/* ── Search Bar & View Controls ─────────────────────────── */
.search-and-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.search-container {
  flex: 1;
  position: relative;
  margin-bottom: 0;
}
.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 40px 11px 14px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
  transition: var(--tr-fast);
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}
.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 18px;
  height: 18px;
}
.view-controls {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.btn-view-mode {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--tr-fast);
}
.btn-view-mode:hover {
  color: var(--text-main);
  background: var(--surface-raised);
}
.btn-view-mode.active {
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 800;
}


/* ── Next-Gen Ultra-Smooth Category Strip ─────────────────── */
.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 4px 12px 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scroll-snap-type: x proximity;
  -webkit-tap-highlight-color: transparent;
  will-change: scroll-position;
}
.category-strip::-webkit-scrollbar {
  display: none;
}
.cat-pill {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.cat-pill:active {
  transform: scale(0.95);
  background: var(--surface-raised);
}
.cat-pill.active {
  color: var(--text-main);
  background: var(--surface-raised);
  border-color: var(--primary);
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--primary);
}
[data-theme="dark"] .cat-pill.active {
  background: var(--surface-raised);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}


/* ── Hero / Featured Product Showcase ────────────────────── */
.hero-product-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  transition: var(--tr-smooth);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
@media (max-width: 860px) {
  .hero-product-card {
    grid-template-columns: 1fr;
  }
}
.hero-product-img-wrap {
  position: relative;
  height: 100%;
  min-height: 260px;
  max-height: 360px;
  background: var(--surface-raised);
  overflow: hidden;
  cursor: pointer;
}
@media (max-width: 860px) {
  .hero-product-img-wrap {
    height: 230px;
    min-height: 230px;
  }
}
.hero-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.hero-product-card:hover .hero-product-img {
  transform: scale(1.04);
}
.hero-badge-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.82) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.hero-product-content {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.meta-chip {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hero-product-title {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}
.hero-product-desc {
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.hero-price {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-main);
}
.hero-price span {
  font-size: 0.95rem;
  color: var(--primary);
  margin-right: 3px;
  font-weight: 800;
}

/* ── Product Catalog Responsive Multi-Column Layout ─────── */
.products-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .products-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (min-width: 1024px) {
  .products-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
@media (min-width: 1600px) {
  .products-flow {
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
  }
}

.food-item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: 0 240px;
}
.food-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.food-item-media {
  position: relative;
  width: 100%;
  height: 165px;
  background: var(--surface-raised);
  background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: harpyMediaShimmer 1.8s infinite ease-in-out;
  overflow: hidden;
  cursor: pointer;
}
@keyframes harpyMediaShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@media (min-width: 640px) {
  .food-item-media {
    height: 195px;
  }
}
@media (min-width: 1024px) {
  .food-item-media {
    height: 225px;
  }
}
.food-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease-in, transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.food-item-img.loaded {
  opacity: 1;
}
.food-item-card:hover .food-item-img {
  transform: scale(1.05);
}

.card-top-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.card-badge {
  background: rgba(15, 23, 42, 0.82) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 800;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.btn-fav-toggle {
  background: rgba(17, 14, 12, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--tr-fast);
}
.btn-fav-toggle:active {
  transform: scale(0.9);
}
.btn-fav-toggle.active {
  color: var(--favorite);
  background: rgba(225, 29, 72, 0.15);
  border-color: rgba(225, 29, 72, 0.35);
}

.btn-fav-inline {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr-fast);
  margin-right: auto;
}
.btn-fav-inline:hover, .btn-fav-inline.active {
  color: var(--favorite);
  transform: scale(1.15);
}

.food-item-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.item-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.item-prep-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.food-item-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
  cursor: pointer;
  transition: color 0.2s ease;
}
.food-item-title:hover {
  color: var(--primary);
}
.food-item-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.food-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.food-item-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
}
.food-item-price span {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 800;
  margin-right: 3px;
}


/* ── Interactive Order Button / Qty Stepper ──────────────── */
.btn-quick-add {
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(194, 65, 12, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  min-height: 38px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--tr-fast);
}
.btn-quick-add:active {
  transform: scale(0.96);
  background: var(--primary);
  color: #fff;
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
  min-height: 38px;
}
.qty-stepper-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: var(--radius-xs);
  background: var(--surface-raised);
  border: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  transition: var(--tr-fast);
}
.qty-stepper-btn:active {
  background: var(--primary);
  color: #fff;
  transform: scale(0.92);
}
.qty-stepper-val {
  font-size: 0.95rem;
  font-weight: 800;
  min-width: 24px;
  text-align: center;
  color: var(--text-main);
}

/* ── Quick Preview Sheet / Modal ─────────────────────────── */
.preview-modal {
  position: fixed;
  z-index: 85;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s ease;
  box-shadow: var(--shadow-lg);
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 641px) {
  .preview-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.94);
    border-radius: var(--radius-md);
    width: calc(100% - 32px);
    max-width: 500px;
    max-height: 88vh;
  }
  .preview-modal.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 640px) {
  .preview-modal {
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    max-height: 86vh;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  }
  .preview-modal.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.preview-img-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  background: var(--surface-raised);
}
.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-body {
  padding: 18px 20px;
}
.preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.preview-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}
.preview-desc {
  font-size: 12.5px;
  color: var(--text-body);
  line-height: 1.7;
  margin: 10px 0 18px;
}

/* ── Live Order Tracker Modal ────────────────────────────── */
.tracker-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: calc(100% - 32px);
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 16px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.tracker-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 600px) {
  .tracker-modal {
    top: auto;
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    width: 100%;
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .tracker-modal.open {
    transform: translateY(0);
  }
}
.tracker-card {
  padding: 20px;
}
.pulse-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-wa, #22c55e);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-dot 1.5s infinite;
  display: inline-block;
}
@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.tracker-eta-pill {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.tracker-stepper {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step-node {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}
.step-node.active {
  opacity: 1;
}
.step-node.completed .step-icon-wrap {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.step-node.active:not(.completed) .step-icon-wrap {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow, rgba(234, 88, 12, 0.4));
}
.step-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.step-text-wrap {
  flex: 1;
  padding-top: 4px;
  padding-bottom: 12px;
}
.step-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}
.step-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.step-line {
  width: 2px;
  height: 20px;
  background: var(--border);
  margin-right: 16px;
  margin-top: -8px;
  margin-bottom: 4px;
  transition: background 0.3s ease;
}
.step-line.active {
  background: var(--primary);
}
.tracker-items-summary {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 10px);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.tracker-summary-head {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.tracker-items-list {
  max-height: 100px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tracker-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-main);
  font-weight: 700;
}
.tracker-actions {
  display: flex;
  gap: 10px;
}



/* ── Cart Drawer ─────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 7, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.open,
.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  height: 100%;
  height: 100dvh;
  background: var(--bg);
  border-right: 1px solid var(--border-strong);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 14px 18px;
  padding-top: max(14px, env(safe-area-inset-top, 14px));
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.drawer-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}
.btn-close {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--tr-fast);
}

.drawer-steps-nav {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px 6px;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}
.step-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 2px;
  min-height: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  transition: var(--tr-fast);
}
.step-segment-bar {
  width: 100%;
  height: 3.5px;
  border-radius: 999px;
  background: var(--border-strong, rgba(255, 255, 255, 0.14));
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-segment-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  transition: color 0.2s ease;
  line-height: 1.2;
}
.step-nav-btn.active .step-segment-bar {
  background: linear-gradient(90deg, var(--primary), #ea580c);
  box-shadow: 0 0 8px rgba(234, 88, 12, 0.35);
}
.step-nav-btn.active .step-segment-text {
  color: var(--primary);
  font-weight: 800;
}
.step-nav-btn.completed .step-segment-bar {
  background: var(--primary);
  opacity: 0.85;
}
.step-nav-btn.completed .step-segment-text {
  color: var(--text-main);
  font-weight: 700;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-overflow-scrolling: touch;
}

.cart-ledger-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-ledger-img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--surface-raised);
  flex-shrink: 0;
}
.cart-ledger-details {
  flex: 1;
  min-width: 0;
}
.cart-ledger-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-ledger-price {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 2px;
}

.section-headline {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.step-card-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-badge-indicator {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.form-luxury-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-luxury-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.input-luxury-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}
.required-star {
  color: var(--danger);
  font-weight: 900;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-leading-icon {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.input-leading-icon.top-icon {
  top: 14px;
}

.input-luxury-field {
  width: 100%;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 42px 12px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  min-height: 46px;
  transition: var(--tr-fast);
}
.input-luxury-field::placeholder {
  color: var(--text-faint);
  font-size: 0.86rem;
  font-weight: 400;
}
.input-luxury-field:focus {
  border-color: var(--primary);
  background: var(--surface-hover);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.input-luxury-textarea {
  width: 100%;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 42px 12px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-main);
  outline: none;
  min-height: 86px;
  resize: vertical;
  transition: var(--tr-fast);
}
.input-luxury-textarea::placeholder {
  color: var(--text-faint);
  font-size: 0.86rem;
  font-weight: 400;
}
.input-luxury-textarea:focus {
  border-color: var(--primary);
  background: var(--surface-hover);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}


/* ── Luxury Payment Methods Stack ───────────────────────── */
.payment-methods-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.payment-luxury-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
  position: relative;
}
.payment-luxury-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
}
.payment-luxury-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.08) 0%, var(--surface-raised) 100%);
  box-shadow: 0 4px 18px rgba(194, 65, 12, 0.12);
}

.payment-radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--tr-fast);
}
.payment-luxury-card.selected .payment-radio-indicator {
  border-color: var(--primary);
}
.radio-inner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  transform: scale(0.4);
  transition: var(--tr-fast);
}
.payment-luxury-card.selected .radio-inner-dot {
  opacity: 1;
  transform: scale(1);
}

.payment-card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.payment-luxury-card.selected .payment-card-icon-box {
  background: var(--primary-subtle);
  border-color: rgba(194, 65, 12, 0.3);
}

.payment-card-info {
  flex: 1;
  min-width: 0;
}
.payment-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.payment-card-headline {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}
.payment-discount-pill {
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px var(--primary-glow);
}
.payment-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Wallet Luxury Panel ────────────────────────────────── */
.wallet-luxury-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  animation: slideDownFade 0.3s ease;
}

.wallet-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.wallet-panel-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.wallet-status-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-wa);
  background: rgba(37, 211, 102, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.wallet-account-card {
  background: var(--surface-raised);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.account-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.account-type-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.account-digits {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

.btn-copy-luxury {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px var(--primary-glow);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-copy-luxury:active {
  transform: scale(0.95);
}
.btn-copy-luxury.copied {
  background: var(--accent-wa);
}

.wallet-amount-summary-banner {
  background: var(--primary-subtle);
  border: 1px solid rgba(194, 65, 12, 0.25);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.target-amount {
  font-size: 1rem;
  font-weight: 900;
  color: var(--primary);
}

/* ── Receipt Luxury Dropzone ────────────────────────────── */
.receipt-luxury-dropzone {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--tr-fast);
}
.receipt-luxury-dropzone:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
}
.receipt-hidden-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.dropzone-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.dropzone-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
}
.dropzone-desc {
  font-size: 0.76rem;
  color: var(--text-faint);
}

.receipt-preview-image {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong);
  display: block;
}
.btn-remove-receipt {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: none;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.upload-status-chip {
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
  display: none;
}
.upload-status-chip.loading { color: var(--amber); }
.upload-status-chip.success { color: var(--accent-wa); }
.upload-status-chip.error { color: var(--danger); }


.drawer-footer {
  padding: 14px 18px;
  padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.ledger-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.ledger-summary-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.ledger-summary-val {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
}
.ledger-summary-val span {
  font-size: 12px;
  color: var(--primary);
}

.btn-send-whatsapp {
  width: 100%;
  background: var(--accent-wa);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  padding: 12px;
  min-height: 46px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--tr-fast);
}
.btn-send-whatsapp:active {
  transform: scale(0.98);
}
.btn-send-whatsapp:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ── Price Strikethrough & Promo Badges ───────────────────── */
.price-crossed {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.7;
  font-weight: 500;
  margin-right: 4px;
  display: inline-block;
}
.spend-tier-progress-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.spend-tier-text {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.spend-tier-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--surface-raised);
  border-radius: 99px;
  overflow: hidden;
}
.spend-tier-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.3s ease;
}
.promo-code-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.promo-code-box-compact {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs, 8px);
  padding: 2px 4px 2px 10px;
  gap: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: 36px;
  box-sizing: border-box;
}
.promo-code-box-compact:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-subtle);
}
.promo-code-input-compact {
  flex: 1;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-main);
  text-transform: uppercase;
  outline: none;
  padding: 0;
  height: 100%;
}
.promo-code-input-compact::placeholder {
  color: var(--text-muted);
  font-size: 11.5px;
}
.btn-apply-promo-compact {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  height: 28px;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.btn-apply-promo-compact:hover {
  opacity: 0.9;
}
.btn-apply-promo-compact:active {
  transform: scale(0.96);
}
.promo-code-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-main);
  text-transform: uppercase;
  outline: none;
}
.promo-code-input:focus {
  border-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   HARPY NEXT-GEN LUXURY STYLES (Stories, Dynamic Island, Modals)
   ═══════════════════════════════════════════════════════════ */

/* ── Sound Toggle & Header Polish ── */
#sound-toggle-btn.muted svg {
  opacity: 0.5;
}


/* ── Stories Strip (Instagram / Highlights Style) ── */
.stories-strip-section {
  margin-bottom: 16px;
  overflow: hidden;
}
.stories-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.stories-track::-webkit-scrollbar {
  display: none;
}
.story-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.story-circle-item:active {
  transform: scale(0.92);
}
.story-ring-wrap {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(45deg, var(--primary), #f59e0b, #ef4444, var(--primary));
  background-size: 300% 300%;
  animation: storyGlow 4s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.story-circle-item.viewed .story-ring-wrap {
  background: var(--border-strong);
  box-shadow: none;
  animation: none;
}
@keyframes storyGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.story-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
}
.story-circle-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  max-width: 72px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 1024px) {
  .story-circle-item {
    width: 88px;
    gap: 8px;
  }
  .story-ring-wrap {
    width: 78px;
    height: 78px;
  }
  .story-circle-label {
    font-size: 0.88rem;
    max-width: 88px;
  }
}



/* ── Search and Controls Toolbar ── */
.search-and-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.search-and-controls .search-container {
  flex: 1;
  margin-bottom: 0;
}
.view-controls {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}
.btn-view-mode {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--tr-fast);
}
.btn-view-mode.active {
  background: var(--surface-raised);
  color: var(--primary);
  border: 1px solid var(--border-strong);
}

/* ── Compact Speed List View Mode ── */
.products-flow.view-mode-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 768px) {
  .products-flow.view-mode-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (min-width: 1400px) {
  .products-flow.view-mode-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

.products-flow.view-mode-list .food-item-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 12px;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 90px;
  contain-intrinsic-size: 0 100px;
}
.products-flow.view-mode-list .food-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.admin-product-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 250px;
}

.products-flow.view-mode-list .food-item-media {
  width: 82px;
  height: 82px;
  min-width: 82px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
  align-self: center;
  position: relative;
}
@media (min-width: 640px) {
  .products-flow.view-mode-list .food-item-media {
    width: 95px;
    height: 95px;
    min-width: 95px;
  }
}

/* Show favorite heart button on thumbnail in list mode */
.products-flow.view-mode-list .item-meta-tags,
.products-flow.view-mode-list .btn-fav-inline {
  display: none !important;
}

.products-flow.view-mode-list .btn-fav-toggle {
  display: flex !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  background: rgba(18, 14, 12, 0.88) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  padding: 0 !important;
}

.products-flow.view-mode-list .btn-fav-toggle svg {
  width: 13px !important;
  height: 13px !important;
}

.products-flow.view-mode-list .btn-fav-toggle.active {
  color: var(--favorite) !important;
  background: rgba(225, 29, 72, 0.25) !important;
  border-color: rgba(225, 29, 72, 0.6) !important;
}

/* Make badge and actions neat in list thumbnail */
.products-flow.view-mode-list .food-item-media .card-top-actions {
  top: 4px;
  right: 4px;
  left: 4px;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
}
.products-flow.view-mode-list .food-item-media .card-badge {
  font-size: 0.62rem;
  padding: 2px 5px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.products-flow.view-mode-list .food-item-body {
  padding: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.products-flow.view-mode-list .food-item-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.products-flow.view-mode-list .food-item-desc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 4px;
}

.products-flow.view-mode-list .food-item-footer {
  margin-top: 0;
  padding-top: 2px;
  border-top: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.products-flow.view-mode-list .food-item-price {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--primary);
}
.products-flow.view-mode-list .btn-quick-add {
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 999px;
  min-height: 28px;
}

/* ── Dynamic Island Floating Cart ── */
.dynamic-island-cart {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(160px) scale(0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 480px;
  background: rgba(18, 14, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 238, 227, 0.16);
  border-radius: 999px;
  padding: 8px 16px;
  z-index: 999;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .dynamic-island-cart {
    max-width: 540px;
    padding: 10px 22px;
    bottom: 30px;
  }
}
[data-theme="light"] .dynamic-island-cart {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(60, 45, 30, 0.14);
  box-shadow: 0 16px 40px rgba(60, 40, 20, 0.2);
}
.dynamic-island-cart.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.dynamic-island-cart.hidden-during-drawer,
body.cart-drawer-open .dynamic-island-cart {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(160px) scale(0.85) !important;
  visibility: hidden !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.dynamic-island-cart:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.01);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 20px var(--primary-subtle);
}
.dynamic-island-cart:active {
  transform: translateX(-50%) translateY(0) scale(0.98);
}
.island-glow-aura {
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, var(--primary-glow) 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
.island-content-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.island-left-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}
.island-avatar-stack {
  display: flex;
  align-items: center;
}
.island-avatar-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  margin-left: -10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
@media (min-width: 1024px) {
  .island-avatar-thumb {
    width: 38px;
    height: 38px;
  }
}
.island-avatar-thumb:first-child {
  margin-left: 0;
}
.island-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}
@media (min-width: 1024px) {
  .island-title {
    font-size: 1.02rem;
  }
}
.island-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.island-right-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}
.island-price-chip {
  background: var(--primary);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 4px 14px var(--primary-glow);
}
@media (min-width: 1024px) {
  .island-price-chip {
    padding: 8px 18px;
    font-size: 1.05rem;
  }
}
.island-chevron {
  color: var(--text-muted);
  display: flex;
  align-items: center;
}
.island-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.island-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #f59e0b);
  border-radius: 99px;
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── Fly To Cart Particle ── */
.flying-dish-particle {
  position: fixed;
  z-index: 10000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 8px 24px var(--primary-glow);
  border: 2px solid var(--primary);
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.65s ease;
}

/* ── Smart Pairing / Upsell in Cart (Compact Horizontal Rail) ── */
.smart-pairing-box {
  background: var(--surface-raised);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin: 10px 0 4px;
}
.pairing-headline {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}
.pairing-scroll-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pairing-scroll-track::-webkit-scrollbar {
  display: none;
}
.pairing-chip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--tr-fast);
  height: 38px;
}
.pairing-chip-card:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
}
.pairing-thumb {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}
.pairing-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  max-width: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pairing-price {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.pairing-btn-add {
  background: var(--primary-subtle);
  color: var(--primary);
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Fullscreen Story Viewer Modal ── */
.story-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.story-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.story-viewer-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 100%;
  max-width: 420px;
  height: 90vh;
  max-height: 760px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}
.story-viewer-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.story-viewer-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.story-progress-bar-wrap {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 10;
}
.story-bar-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 99px;
  overflow: hidden;
}
.story-bar-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 99px;
}
.story-bar-fill.finished {
  width: 100%;
}
.story-viewer-header {
  position: absolute;
  top: 22px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}
.story-viewer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.story-header-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #fff;
}
.story-header-title {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.story-header-time {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10.5px;
}
.btn-close-story {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}
.story-media-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 35%, transparent 60%, rgba(0,0,0,0.85) 100%);
}
.story-touch-prev, .story-touch-next {
  position: absolute;
  top: 60px;
  bottom: 140px;
  width: 40%;
  z-index: 8;
  cursor: pointer;
}
.story-touch-prev { left: 0; }
.story-touch-next { right: 0; }

.story-footer-card {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  background: rgba(18, 14, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  z-index: 10;
  text-align: center;
}
.story-footer-headline {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  margin: 6px 0 4px 0;
}
.story-footer-desc {
  color: #d4c9ba;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.btn-story-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  padding: 11px;
}



/* ═══════════════════════════════════════════════════════════
   ADVANCED ITEM CUSTOMIZER MODAL
   ═══════════════════════════════════════════════════════════ */
.customizer-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.customizer-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.customizer-modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 24px 24px 0 0;
  z-index: 1210;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}
@media (min-width: 768px) {
  .customizer-modal {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    border-radius: var(--radius-lg);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  }
  .customizer-modal.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
}
.customizer-modal.open {
  transform: translateX(-50%) translateY(0);
}
@media (min-width: 768px) {
  .customizer-modal.open {
    transform: translate(-50%, -50%) scale(1);
  }
}

.customizer-header {
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  z-index: 2;
  gap: 12px;
}
.customizer-head-info {
  flex: 1;
  min-width: 0;
  padding-left: 6px;
}
.customizer-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.customizer-head-info h3 {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 0;
  line-height: 1.35;
  word-break: break-word;
}
.customizer-header-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 2px 9px;
  border-radius: 99px;
  border: 1px solid var(--primary-glow);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.customizer-head-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  word-break: break-word;
  margin: 0;
}
.btn-close-customizer {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--tr-fast);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}
.btn-close-customizer:hover {
  color: var(--text-main);
  background: var(--surface-hover);
}

.customizer-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.customizer-media-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-raised);
}
.customizer-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.customizer-base-price-chip {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(17, 14, 12, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.95rem;
  font-weight: 800;
  border: 1px solid var(--border-strong);
}

.customizer-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}
.badge-required {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.badge-optional {
  background: var(--surface-raised);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.customizer-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.customizer-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--tr-fast);
}
.customizer-option-card:hover {
  border-color: var(--border-strong);
}
.customizer-option-card.selected {
  background: var(--primary-subtle);
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}
.option-left-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.custom-radio-circle, .custom-check-box {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr-fast);
}
.custom-check-box {
  border-radius: 5px;
}
.customizer-option-card.selected .custom-radio-circle {
  border-color: var(--primary);
  background: var(--primary);
}
.customizer-option-card.selected .custom-radio-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}
.customizer-option-card.selected .custom-check-box {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.option-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}
.option-price-extra {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
}

.customizer-notes-input {
  width: 100%;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: var(--tr-fast);
}
.customizer-notes-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-subtle);
}

.customizer-footer {
  padding: 10px 14px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  background: var(--surface);
  border-top: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
}
.customizer-qty-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-raised);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm, 10px);
  padding: 2px;
  height: 44px;
  box-sizing: border-box;
  flex-shrink: 0;
  gap: 1px;
}
.qty-btn {
  width: 32px;
  height: 38px;
  min-width: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.qty-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}
.qty-btn:active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(0.95);
}
.qty-val {
  min-width: 22px;
  text-align: center;
  font-weight: 900;
  font-size: 0.96rem;
  color: var(--text-main);
  user-select: none;
}
.btn-add-customized {
  flex: 1;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.92rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm, 10px);
  background: linear-gradient(135deg, var(--primary), #c2410c);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px var(--primary-glow);
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-add-customized:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}
.btn-add-customized:active {
  transform: scale(0.98);
}
.btn-add-customized svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* ═══════════════════════════════════════════════════════════
   HARPY PRO: LUXURY RESTAURANT HERO SECTION (Design Item 1)
   Cover photo + Logo + Name + Tagline + Rating + Delivery + Status
   ═══════════════════════════════════════════════════════════ */
.restaurant-hero-section {
  position: relative;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
  background: var(--bg);
}
.hero-top-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.75) 0%, rgba(12, 10, 9, 0) 100%);
  padding: 10px 0 16px;
}
.hero-nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.hero-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(18, 14, 12, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  position: relative;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.06);
  color: #ffffff;
}
.hero-nav-btn:active {
  transform: scale(0.92);
}
.hero-nav-btn.btn-wa {
  color: #4ade80;
}
.hero-nav-btn.btn-fav-filter {
  color: #ffffff;
}
.hero-nav-btn.btn-fav-filter svg {
  stroke: #ffffff !important;
  fill: none;
  transition: stroke 0.2s ease, fill 0.2s ease;
}
.hero-nav-btn.btn-fav-filter.active svg {
  stroke: #fb7185 !important;
  fill: #fb7185 !important;
}
.hero-nav-btn.btn-more-menu.active {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
.hero-fav-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 10px;
  border: 1.5px solid #fff;
}

/* 3-Dots Floating Glass Dropdown Menu */
.hero-more-menu-wrapper {
  position: relative;
  display: inline-flex;
}
.hero-more-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  min-width: 215px;
  direction: rtl;
  text-align: right;
  background: rgba(24, 20, 18, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 100;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top left;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.hero-more-dropdown.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: right;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}
.dropdown-menu-item:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.dropdown-menu-item:active {
  transform: scale(0.97);
}
.dropdown-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: inherit;
}
.dropdown-item-text {
  flex: 1;
  white-space: nowrap;
  font-size: 12.5px;
}

/* Cover Image & Full-Width Header Overlay */
.hero-cover-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}
.hero-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(12, 10, 9, 0.20) 0%, 
    rgba(12, 10, 9, 0.50) 50%, 
    rgba(12, 10, 9, 0.95) 100%
  );
}

/* Brand Details Overlay */
.hero-brand-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  padding-bottom: 34px;
}
.hero-brand-card {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.hero-logo-wrap {
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  max-height: 68px !important;
  border-radius: 50% !important;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  background: var(--surface);
  overflow: hidden !important;
  position: relative;
  flex-shrink: 0 !important;
  margin-bottom: 2px;
}
.hero-logo, #store-logo {
  width: 100% !important;
  height: 100% !important;
  max-width: 68px !important;
  max-height: 68px !important;
  object-fit: cover !important;
  display: block !important;
}
.hero-text-col {
  flex: 1;
  min-width: 0;
  color: #ffffff;
}
.hero-store-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 2px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-store-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 6px 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-meta-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.hero-meta-chip {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1.2;
}
.hero-meta-chip.chip-rating {
  background: rgba(18, 14, 12, 0.65);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.rating-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 600;
}
.hero-meta-chip.chip-delivery {
  background: rgba(18, 14, 12, 0.65);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-meta-chip.chip-status.open {
  background: rgba(22, 101, 52, 0.65);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
}
.hero-meta-chip.chip-status.closed {
  background: rgba(153, 27, 27, 0.65);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
}
.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  display: inline-block;
}
.hero-meta-chip.chip-status.closed .status-pulse-dot {
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
}

@media (min-width: 768px) {
  .restaurant-hero-section {
    min-height: 310px;
    border-radius: 0;
  }
  .hero-cover-container {
    height: 310px;
    border-radius: 0;
  }
  .hero-brand-container {
    padding-bottom: 42px;
  }
  .hero-logo-wrap {
    width: 84px;
    height: 84px;
  }
  .hero-store-title {
    font-size: 1.7rem;
  }
  .main-content-sheet {
    margin-top: -28px;
    border-top-left-radius: 34px;
    border-top-right-radius: 34px;
    padding-top: 16px;
  }
}

/* ═══════════════════════════════════════════════════════════
   HARPY PRO: OVERLAPPING MAIN CONTENT SHEET (Design Item 1)
   Curved top corners overlap the hero cover photo seamlessly
   ═══════════════════════════════════════════════════════════ */
.main-content-sheet {
  position: relative;
  z-index: 20;
  width: 100%;
  margin-top: -24px;
  background: var(--bg);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding-top: 12px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .main-content-sheet {
  background: var(--bg);
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ═══════════════════════════════════════════════════════════
   HARPY PRO: COMPACT PROMO DEAL CARD (Design Item 2)
   ═══════════════════════════════════════════════════════════ */
.promo-deal-card {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.08) 0%, rgba(249, 115, 22, 0.04) 100%);
  border: 1.5px solid rgba(234, 88, 12, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin: 2px 0 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.06);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .promo-deal-card {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.16) 0%, rgba(28, 22, 19, 0.9) 100%);
  border-color: rgba(234, 88, 12, 0.35);
}
.promo-deal-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.promo-deal-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.promo-deal-text-col {
  min-width: 0;
}
.promo-deal-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
  line-height: 1.3;
}
.promo-deal-subtitle {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promo-deal-thumb-box {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  border: 1.5px solid rgba(234, 88, 12, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.promo-deal-thumb, #promo-deal-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: cover !important;
  display: block !important;
}

/* ═══════════════════════════════════════════════════════════
   HARPY PRO: UNIFIED CATEGORY NAVIGATION (Design Item 4)
   ═══════════════════════════════════════════════════════════ */
.category-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 2px 2px 10px 2px;
  margin-bottom: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-strip::-webkit-scrollbar {
  display: none;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--surface-raised);
  border: 1.5px solid var(--border);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  user-select: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.cat-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.cat-pill.active {
  background: var(--text-main);
  color: var(--bg);
  border-color: var(--text-main);
  font-weight: 800;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  transform: scale(1.02);
}
[data-theme="dark"] .cat-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 3px 12px var(--primary-glow);
}
.cat-pill-icon {
  font-size: 15px;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════
   HARPY PRO: COMPACT SEARCH & VIEW BAR (Design Item 5)
   ═══════════════════════════════════════════════════════════ */
.search-and-view-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.search-box-compact {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.search-box-compact .search-icon {
  position: absolute;
  right: 12px;
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input-field {
  width: 100%;
  height: 40px;
  background: var(--surface-raised);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 38px 0 12px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.search-input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
  background: var(--surface);
}
.search-input-field::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}
.view-controls-compact {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--surface-raised);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 3px;
  height: 40px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.btn-view-toggle {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}
.btn-view-toggle:hover {
  color: var(--text-main);
}
.btn-view-toggle.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════
   HARPY PRO: CLEAN PRODUCT CARD (Design Item 6)
   Matches the proposed mockup with text on right and media on left in RTL
   ═══════════════════════════════════════════════════════════ */
.products-flow.view-mode-list .food-item-card {
  display: flex;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px !important;
  gap: 12px !important;
  background: var(--surface) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-bottom: 10px !important;
  cursor: pointer;
}
.food-item-card.is-hidden,
.food-item-card[style*="display: none"],
.products-flow.view-mode-list .food-item-card.is-hidden,
.products-flow.view-mode-list .food-item-card[style*="display: none"],
.products-flow.view-mode-grid .food-item-card.is-hidden,
.products-flow.view-mode-grid .food-item-card[style*="display: none"] {
  display: none !important;
}
.products-flow.view-mode-list .food-item-card:hover {
  transform: translateY(-2px) !important;
  border-color: var(--primary-subtle) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
}
/* In RTL, order: 1 goes to the right, order: 2 goes to the left */
.products-flow.view-mode-list .food-item-body {
  order: 1 !important;
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  text-align: right !important;
}
.products-flow.view-mode-list .food-item-media {
  order: 2 !important;
  width: 90px !important;
  height: 90px !important;
  min-width: 90px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  position: relative !important;
  flex-shrink: 0 !important;
  align-self: center !important;
}
.products-flow.view-mode-list .food-item-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.products-flow.view-mode-list .food-item-title {
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  margin: 0 0 3px 0 !important;
  line-height: 1.3 !important;
}
.products-flow.view-mode-list .food-item-desc {
  font-size: 0.76rem !important;
  color: var(--text-muted) !important;
  line-height: 1.35 !important;
  margin: 0 0 8px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.products-flow.view-mode-list .food-item-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: auto !important;
}
.products-flow.view-mode-list .food-item-price {
  font-size: 1.02rem !important;
  font-weight: 900 !important;
  color: var(--primary) !important;
}
.products-flow.view-mode-list .btn-quick-add {
  background: var(--primary-subtle) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(234, 88, 12, 0.28) !important;
  padding: 5px 14px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.products-flow.view-mode-list .btn-quick-add:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════════
   HARPY: ORDERING PAUSED & SUBSCRIPTION LOCK ENGINE (Client)
   ═══════════════════════════════════════════════════════════ */
body.harpy-account-locked {
  overflow: hidden !important;
  height: 100vh !important;
  touch-action: none !important;
}
.harpy-lock-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(10, 10, 15, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  z-index: 9999998 !important;
  display: none;
}
.harpy-lock-backdrop.active {
  display: block !important;
}
.harpy-lock-modal {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 440px !important;
  background: var(--surface) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(239, 68, 68, 0.2) !important;
  z-index: 9999999 !important;
  padding: 36px 24px !important;
  text-align: center !important;
  display: none;
  animation: harpyLockBounce 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  box-sizing: border-box !important;
}
.harpy-lock-modal.active {
  display: block !important;
}
@keyframes harpyLockBounce {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
