@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@600;700;800&display=swap");

:root {
  --primary-color: #ff3838;
  --primary-light: #ffebec;
  --primary-glow: rgba(255, 56, 56, 0.2);
  --secondary-color: #f8fafc;
  --text-color: #1e293b;
  --text-muted: #64748b;
  --bg-color: #f1f5f9;
  --card-bg: #ffffff;
  --header-height: 60px;
  --bottom-nav-height: 70px;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
}

[hidden] {
  display: none !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  padding-top: calc(var(--header-height) + var(--safe-top));
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 30px);
  -webkit-text-size-adjust: 100%;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 10px 12px;
  background: #111827;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  z-index: 5000;
  transform: translateY(-150%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  color: currentColor;
}

.icon-btn {
  appearance: none;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-color);
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
  width: 40px;
  height: 40px;
}

.icon-btn:active {
  transform: scale(0.95);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--header-height) + var(--safe-top));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--safe-top) 20px 0 20px;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.shop-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-color);
  letter-spacing: -0.5px;
}

.header-icons {
  display: flex;
  gap: 12px;
  color: var(--text-color);
}

/* Hero Banner - Clean Light Style */
.hero-banner {
  position: relative;
  padding: 20px 20px 40px 20px;
  background: white;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  overflow: visible;
  /* Allow logo overlap if needed */
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Decorative background elements instead of dark gradient */
.hero-banner::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: var(--primary-light);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.6;
}

.hero-banner::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  background: #fff7ed;
  /* Warm orange tint */
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-emoji {
  font-size: 64px;
  margin-bottom: 12px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.hero-logo {
  width: 100px;
  height: 100px;
  max-width: 25vw;
  max-height: 25vw;
  margin-bottom: 16px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  box-shadow: var(--shadow-md);
  border: 4px solid white;
}

@media (max-width: 480px) {
  .hero-logo {
    width: 80px;
    height: 80px;
    border-width: 3px;
    margin-bottom: 12px;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  margin: 8px 0;
  color: var(--text-color);
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero-slogan {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.status-dot.open {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-dot.closed {
  background: #ef4444;
}

/* Animations */
.anim-up {
  animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.anim-delay-1 {
  animation-delay: 0.1s;
}

.anim-delay-2 {
  animation-delay: 0.2s;
}

.anim-delay-3 {
  animation-delay: 0.3s;
}

.anim-delay-4 {
  animation-delay: 0.4s;
}

.anim-delay-5 {
  animation-delay: 0.5s;
}

/* Category Tabs - Modern Pills */
.category-tabs {
  background: transparent;
  padding: 0 20px 16px 20px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: calc(var(--header-height) + var(--safe-top));
  z-index: 900;
}

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

.tab-btn {
  appearance: none;
  border: none;
  background: white;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 100px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-display);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 8px 16px -4px var(--primary-glow);
  transform: translateY(-1px);
}

/* Sections */
.section-title {
  padding: 24px 20px 16px 20px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-color);
  font-family: var(--font-display);
  background: transparent;
}

/* Carousel */
.carousel {
  display: flex;
  gap: 16px;
  padding: 0 20px 20px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.popular-card {
  background: white;
  min-width: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: left;
  padding-bottom: 12px;
  transition: transform 0.2s;
}

.popular-card:active {
  transform: scale(0.98);
}

.popular-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: #f1f5f9;
}

.popular-name {
  font-size: 15px;
  font-weight: 700;
  margin: 10px 12px 4px 12px;
  color: var(--text-color);
  font-family: var(--font-display);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-price {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 700;
  margin: 0 12px;
}

.badge-popular {
  margin-left: 0;
  float: right;
  font-size: 12px;
}

/* Product List */
.product-list {
  padding: 0 20px;
  display: grid;
  gap: 16px;
}

.product-item {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: none;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text-color);
  line-height: 1.3;
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-weight: 800;
  font-size: 16px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  opacity: 0.7;
}

.product-img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f1f5f9;
}

.badge-off {
  background: #10b981;
  /* Green for discount */
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(var(--bottom-nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  gap: 4px;
  transition: all 0.2s ease;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-icon {
  width: 22px;
  height: 22px;
  color: currentColor;
  transition: transform 0.2s ease;
}

.nav-item:active .nav-icon {
  transform: scale(1.1);
}

#cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 6px;
  margin-left: -5px;
  font-size: 10px;
  font-weight: 800;
}

/* Views (Tabs) */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* Orders View */
.orders-view {
  padding: 15px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.orders-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-color);
}

.orders-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-small {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--card-bg);
  color: var(--text-color);
  padding: 9px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.btn-small:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

.btn-small.danger {
  border-color: rgba(239, 68, 68, 0.25);
  color: #b91c1c;
}

.orders-empty {
  flex: 1;
  display: grid;
  place-items: center;
}

.orders-empty-card {
  width: min(520px, 100%);
  background: var(--card-bg);
  border-radius: 16px;
  padding: 22px 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}

.orders-empty-card h3 {
  margin-top: 14px;
  color: var(--text-color);
  margin-bottom: 8px;
}

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

.order-card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.order-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-card-title {
  font-weight: 800;
  color: var(--text-color);
}

.order-card-meta {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.status-pill.status-pending {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.status-pill.status-pending_manual {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.status-pill.status-approved {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.status-pill.status-preparing {
  background: rgba(168, 85, 247, 0.12);
  color: #6b21a8;
}

.status-pill.status-out_for_delivery {
  background: rgba(14, 165, 233, 0.12);
  color: #075985;
}

.status-pill.status-delivered {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

.status-pill.status-error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.order-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.timeline-step {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 10px 10px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.timeline-step.active {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.18);
}

.timeline-step.done {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.18);
}

.order-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-outline {
  appearance: none;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: transparent;
  color: #1d4ed8;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  font-size: 13px;
}

.btn-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-outline.secondary {
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-color);
}

.order-details {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 13px;
  color: var(--text-color);
}

.order-items {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.order-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.order-item-row strong {
  font-weight: 800;
}

.order-item-row small {
  display: block;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .orders-header {
    flex-direction: column;
    align-items: stretch;
  }

  .orders-actions {
    justify-content: stretch;
  }

  .orders-actions .btn-small {
    width: 100%;
  }

  .order-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Cart View */
.cart-view {
  padding: 15px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
}

.cart-empty {
  text-align: center;
  margin-top: 50px;
  color: var(--text-muted);
}

.cart-empty i {
  font-size: 48px;
  margin-bottom: 15px;
}

.cart-empty h3 {
  color: var(--text-color);
  margin-bottom: 10px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-family: var(--font-display);
  width: 100%;
  margin-top: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: all 0.2s ease;
}

.btn-primary:active {
  transform: scale(0.98);
  filter: brightness(0.9);
}

.cart-items {
  flex: 1;
}

.cart-item {
  background: var(--card-bg);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-details h4 {
  font-size: 15px;
  margin-bottom: 5px;
}

.cart-item-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.35;
}

.cart-item-details p {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 600;
}

.cart-summary {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 15px;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid var(--secondary-color);
  background: white;
  cursor: pointer;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s;
  max-height: calc(100vh - 20px);
  max-height: calc(100dvh - 20px - var(--safe-top));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(20px + var(--safe-bottom));
}

.modal.open .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.add-to-cart-btn {
  background: var(--primary-color);
  color: white;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
}

.add-to-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-desc {
  color: #666;
  margin-bottom: 15px;
}

.modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-label {
  font-weight: 800;
}

.form-group {
  margin-bottom: 15px;
}

.form-center {
  text-align: center;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
}

.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.form-input[aria-invalid="true"] {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-input:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

.form-textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 10px;
  margin-top: 5px;
  border-radius: 10px;
  min-height: 90px;
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.form-row-2 > .form-group {
  flex: 1;
}

.form-hint {
  font-size: 12px;
  margin-top: 6px;
  color: #666;
}

.form-error {
  font-size: 12px;
  margin-top: 6px;
  color: #ef4444;
}

.status-info,
.status-success,
.status-warn,
.status-error {
  font-weight: 700;
}

.status-info {
  color: #2563eb;
}

.status-success {
  color: #16a34a;
}

.status-warn {
  color: #d97706;
}

.status-error {
  color: #dc2626;
}

.btn-secondary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.btn-link {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--primary-color);
  font-weight: 800;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
}

.btn-link:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

.saved-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.saved-controls .form-hint {
  margin-top: 0;
}

.btn-secondary:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

.btn-geo {
  background: #10b981;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.btn-geo .icon {
  width: 18px;
  height: 18px;
}

.center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.center-card {
  max-width: 520px;
  width: 100%;
  padding: 18px;
}

.center-title {
  margin: 0 0 8px 0;
  font-size: 20px;
}

.center-text {
  margin: 0 0 16px 0;
  color: var(--text-muted);
  line-height: 1.4;
}

.center-cta {
  display: inline-block;
  width: auto;
  margin-top: 0;
  text-decoration: none;
  padding: 10px 14px;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

.modal-total {
  font-weight: 800;
  font-size: 18px;
}

.search-results {
  max-height: 300px;
  overflow-y: auto;
}

.empty-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  color: var(--text-muted);
}

.store-info {
  text-align: center;
  padding: 10px;
}

.store-info-logo {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 15px;
}

.store-info-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 15px;
}

.store-info-name {
  margin-bottom: 10px;
}

.store-info-slogan {
  color: #666;
  margin-bottom: 15px;
}

.store-info-card {
  text-align: left;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
}

.store-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.store-info-icon {
  color: var(--primary-color);
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.store-hours-details {
  margin-top: 12px;
}

.store-hours-details summary {
  cursor: pointer;
  color: var(--primary-color);
  font-weight: 800;
  font-size: 13px;
  list-style: none;
}

.store-hours-details summary::-webkit-details-marker {
  display: none;
}

.store-hours-schedule {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
}

.store-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #0f172a;
}

.store-hours-row.closed {
  opacity: 0.6;
}

.store-hours-row.today {
  font-weight: 800;
  color: var(--secondary-color);
}

/* Floating Cart Bar (iFood Style) */
.floating-cart-bar {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
  left: 0;
  width: 100%;
  background: #ea1d2c;
  /* iFood Red or inherit Primary */
  color: white;
  padding: 15px;
  display: none;
  /* Hidden by default */
  justify-content: space-between;
  align-items: center;
  z-index: 2000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  animation: slideUp 0.3s ease-out;
  border: none;
  font: inherit;
  text-align: left;
}

.floating-cart-bar.visible {
  display: flex;
}

@media (min-width: 768px) {
  .modal {
    align-items: center;
  }

  .modal-content {
    border-radius: 20px;
    max-width: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.cart-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

#floating-count {
  background: white;
  color: #ea1d2c;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.cart-text {
  font-weight: 600;
  font-size: 16px;
}

#floating-total {
  font-weight: 700;
  font-size: 16px;
}

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

  to {
    transform: translateY(0);
  }
}

/* Premium Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

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

  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

/* Product Item Hover */
.product-item {
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.product-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Neighborhood Badge */
.neighborhood-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* Delivery section */
.delivery-section {
  padding: 15px;
  margin-top: 20px;
}

.delivery-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.delivery-map {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden;
}

.delivery-ring {
  position: absolute;
  border: 3px dashed #4caf50;
  border-radius: 50%;
}

.delivery-ring-lg {
  width: 150px;
  height: 150px;
  opacity: 0.5;
}

.delivery-ring-sm {
  width: 100px;
  height: 100px;
  border-color: #8bc34a;
  opacity: 0.7;
}

.delivery-pin {
  background: #ff5722;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.5);
}

.delivery-radius {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 12px;
  color: #666;
}

.delivery-title {
  margin-bottom: 10px;
  color: #333;
}

.delivery-neighborhoods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.delivery-fee {
  margin-top: 15px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

/* Pizza Customization */
.pizza-customization {
  margin-bottom: 15px;
}

.pizza-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}

.pizza-heading {
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.pizza-second-flavor {
  margin-top: 10px;
}

.pizza-label-accent {
  color: var(--primary-color);
}

.pizza-hint {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.pizza-grid-top {
  margin-top: 10px;
}

.pizza-block {
  margin-top: 10px;
}

.pizza-warning {
  margin-top: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
}

.pizza-summary {
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

.pizza-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 420px) {
  .pizza-grid {
    grid-template-columns: 1fr;
  }
}

.pizza-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-color);
}

.pizza-required {
  color: #ef4444;
  font-weight: 800;
}

.pizza-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: white;
}

.pizza-options-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 420px) {
  .pizza-options-list {
    grid-template-columns: 1fr;
  }
}

.pizza-options-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-color);
  background: white;
  border: 1px solid #e5e7eb;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}

.pizza-options-list input {
  accent-color: var(--primary-color);
}

/* A11y helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard focus states for clickable cards */
.popular-card {
  cursor: pointer;
}

.popular-card:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.6);
  outline-offset: 3px;
}

.product-item:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.6);
  outline-offset: -2px;
}

.search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--secondary-color);
  cursor: pointer;
}

.search-row:hover {
  background: #f8fafc;
}

.search-row:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.6);
  outline-offset: -2px;
}

.search-row-main strong {
  display: block;
}

.search-row-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.search-row-price {
  font-weight: 800;
  white-space: nowrap;
}

.search-hint {
  padding: 10px 12px;
  color: var(--text-muted);
}

/* Toasts */
.toast-region {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 10px);
  display: grid;
  gap: 10px;
  z-index: 4000;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  border-radius: 14px;
  padding: 12px 12px 12px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.toast--success {
  background: rgba(22, 163, 74, 0.95);
}

.toast--error {
  background: rgba(220, 38, 38, 0.95);
}

.toast--warn {
  background: rgba(245, 158, 11, 0.95);
  color: #111827;
}

.toast__message {
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.3;
}

.toast__close {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

.toast__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}
