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

:root {
  --gold: #c6a15b;
  --gold-light: #e6d5b8;
  --gold-dark: #a88644;
  --red: #b22222;
  --red-soft: #cd5c5c;
  --black: #2c2c2c;
  --black-soft: #3a3a3a;
  --white: #ffffff;
  --cream: #fcf9f5;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body {
  font-family: "Cairo", sans-serif;
  background: radial-gradient(circle at 10% 10%, #fff6ec 0%, #fcf9f5 42%, #f9f1ed 100%);
  color: #1e1e1e;
  min-height: 100vh;
  padding: 10px;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

.falling-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.fall-item {
  position: absolute;
  top: -30px;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  animation: deliciousFall linear forwards;
  opacity: 0.5;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

@keyframes deliciousFall {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0.4;
  }
  20% {
    opacity: 0.8;
  }
  70% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(110vh) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

.events-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0 12px;
  padding: 0 5px;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px;
}

.events-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.events-title h2 {
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  font-weight: 800;
  color: var(--red);
  position: relative;
}

.events-title h2::after {
  content: "";
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 10px;
}

.title-decoration {
  display: flex;
  gap: 4px;
}

.title-decoration span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.title-decoration span:nth-child(2) {
  animation-delay: 0.3s;
}

.title-decoration span:nth-child(3) {
  animation-delay: 0.6s;
}

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

.events-date-badge {
  background: linear-gradient(135deg, var(--red), #8b1a1a);
  border: 2px solid var(--gold);
  border-radius: 40px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-weight: 600;
  font-size: clamp(0.75rem, 3vw, 0.9rem);
  white-space: nowrap;
}

.events-date-badge i {
  color: var(--gold);
  font-size: clamp(0.9rem, 4vw, 1.1rem);
}

.events-date-badge .date {
  background: white;
  color: var(--red);
  padding: 2px 8px;
  border-radius: 40px;
  font-size: clamp(0.7rem, 2.5vw, 0.8rem);
}

.events-slider {
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  width: 100%;
}

.slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 1s ease;
  width: 100%;
}

.event-card {
  flex: 0 0 100%;
  height: clamp(150px, 30vw, 220px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.event-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 clamp(15px, 4vw, 30px);
}

.event-content {
  color: white;
  max-width: 350px;
}

.event-badge {
  display: inline-block;
  background: var(--red);
  border: 2px solid var(--gold);
  border-radius: 40px;
  padding: 5px 15px;
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.event-badge i {
  margin-left: 5px;
  color: var(--gold);
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
}

.event-title {
  font-size: clamp(1.4rem, 6vw, 2.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
  color: white;
}

.event-title span {
  color: var(--gold);
  display: block;
  font-size: clamp(1.2rem, 5vw, 2rem);
}

.event-desc {
  font-size: clamp(0.8rem, 3vw, 1.1rem);
  font-weight: 700;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: inline-block;
  padding: 5px 15px;
  border-radius: 40px;
  border: 1px solid var(--gold);
}

.event-desc i {
  margin-left: 5px;
  color: var(--gold);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 20px;
  background: rgba(198, 161, 91, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot.active {
  width: clamp(20px, 5vw, 30px);
  background: var(--red);
  box-shadow: 0 0 10px var(--gold);
}

.sticky-bar {
  width: 100%;
  margin: 10px auto 0;
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
  z-index: 1200;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(178, 34, 34, 0.18);
  backdrop-filter: blur(10px);
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 245, 0.98));
  box-shadow: 0 8px 20px rgba(155, 65, 65, 0.1);
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1300;
  overflow: visible;
  background: #fff;
  border: 2px solid var(--gold-light);
  border-radius: 999px;
  padding: 0 12px;
}

.menu-search {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  font-family: "Cairo", sans-serif;
  outline: none;
  width: 100%;
}

.search-box i {
  font-size: clamp(1rem, 4vw, 1.2rem);
  color: var(--gold);
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 243, 0.86));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #e6cfaf;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(32, 23, 7, 0.18);
  display: none;
  max-height: 300px;
  overflow: auto;
  z-index: 1500;
  padding: 6px;
}

.search-suggestions.active {
  display: block;
  animation: dropdownIn 0.16s ease;
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-suggestion-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: start;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.search-suggestion-item + .search-suggestion-item {
  border-top: 1px solid rgba(198, 161, 91, 0.2);
}

.search-suggestion-item:hover {
  background: #fff2df;
  transform: translateX(-1px);
}

.search-suggestion-item:focus-visible {
  outline: 2px solid var(--gold);
  background: #fff2df;
}

.search-suggestion-name {
  color: var(--black);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: start;
}

.search-suggestion-name-wrap {
  min-width: 0;
}

.search-suggestion-meta {
  color: #7a6c5d;
  font-size: 0.75rem;
  background: #fff;
  border: 1px solid #e9d7bf;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.quick-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.quick-chips button {
  border: 2px solid var(--gold);
  background: linear-gradient(160deg, #fff, #fff5f5);
  color: var(--red);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  font-family: "Cairo", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: 0.3s;
  font-size: clamp(0.8rem, 3vw, 0.95rem);
  white-space: nowrap;
}

.quick-chips button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(178, 34, 34, 0.2);
}

.quick-chips button.active-chip {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.floating-logo {
  position: fixed;
  inset-inline-end: 10px;
  bottom: 10px;
  width: clamp(50px, 12vw, 70px);
  height: clamp(50px, 12vw, 70px);
  object-fit: cover;
  border-radius: 50%;
  z-index: 10002;
  border: 3px solid var(--gold);
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: 0.3s;
}

.lang-switch {
  position: relative;
  top: auto;
  inset-inline-start: auto;
  z-index: 5;
  display: flex;
  gap: 4px;
  width: fit-content;
  margin: 14px 0 8px 0;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.top-controls {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.social-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 14px 0 8px;
  min-width: 128px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.social-switch a {
  flex: 1 1 0;
  min-width: 0;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--red);
  transition: 0.2s;
  font-size: 1rem;
}

.social-switch a:hover {
  background: var(--red);
  color: #fff;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--red);
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  transition: 0.2s;
  font-size: 0.8rem;
}

.lang-switch button.active {
  background: var(--red);
  color: #fff;
}

.menu-wrapper {
  max-width: 1300px;
  margin: 10px auto 0;
  background: white;
  border-radius: clamp(25px, 5vw, 50px);
  padding: clamp(15px, 4vw, 30px);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  width: 100%;
}

.menu-header {
  text-align: center;
  margin-bottom: 25px;
}

.brand-logo {
  width: min(200px, 60%);
  height: auto;
  display: block;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: white;
  padding: 10px;
  box-shadow: 0 10px 25px rgba(178, 34, 34, 0.15);
  border: 3px solid var(--gold);
}

.menu-header p {
  color: var(--black-soft);
  font-size: clamp(1.1rem, 4vw, 1.3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.categories-bar {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin: 15px 0 25px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  background: #fff;
  border: 2px solid var(--gold-dark);
  color: var(--red);
  padding: 8px 16px;
  border-radius: 40px;
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  font-family: "Cairo", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.cat-btn i {
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
}

.cat-btn:hover,
.cat-btn.active-cat {
  background: var(--red);
  color: white;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(178, 34, 34, 0.25);
}

.section-title {
  color: #fff;
  background: var(--red);
  font-size: clamp(1rem, 4vw, 1.2rem);
  margin: 0 0 15px;
  padding: 8px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: 0.3s;
}

.special-section {
  margin-bottom: 25px;
  scroll-margin-top: 100px;
}

.section-panel {
  border: 2px solid var(--gold-light);
  border-radius: clamp(20px, 5vw, 35px);
  padding: 15px;
  background: #fff9f9;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

/* Trending and Best Seller use horizontal swipe rows */
#trendingGrid,
#bestSellerGrid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  gap: 12px;
  padding-bottom: 6px;
  scrollbar-width: none;
}

#trendingGrid::-webkit-scrollbar,
#bestSellerGrid::-webkit-scrollbar {
  display: none;
}

#trendingGrid .product-card,
#bestSellerGrid .product-card {
  flex: 0 0 calc((100% - 12px) / 2);
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  #trendingGrid,
  #bestSellerGrid {
    gap: 20px;
  }

  #trendingGrid .product-card,
  #bestSellerGrid .product-card {
    flex: 0 0 calc((100% - 40px) / 3);
  }
}

@media (min-width: 1024px) {
  #trendingGrid .product-card,
  #bestSellerGrid .product-card {
    flex: 0 0 calc((100% - 60px) / 4);
  }
}

@media (min-width: 1280px) {
  #trendingGrid .product-card,
  #bestSellerGrid .product-card {
    flex: 0 0 calc((100% - 80px) / 5);
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.product-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  cursor: pointer;
  border: 2px solid #f0e0e0;
  animation: cardReveal 0.5s ease forwards;
  position: relative;
  width: 100%;
  height: clamp(220px, 34vw, 270px);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(178, 34, 34, 0.15);
  border-color: var(--red);
}

.product-card.sold-out {
  opacity: 0.86;
  border-color: #d8c5c5;
}

.product-card.sold-out .product-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(40, 40, 40, 0.22);
}

.product-img {
  height: 130px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--red);
  color: white;
  padding: 3px 10px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
}

.sold-out-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: #2e2e2e;
  color: #fff;
  padding: 3px 10px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.product-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  gap: 5px;
}

.product-header h3 {
  font-size: 1rem;
  color: var(--black);
  font-weight: 800;
  line-height: 1.3;
}

.product-price {
  background: var(--red);
  color: white;
  padding: 3px 8px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-desc {
  color: #666;
  font-size: 0.75rem;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

.product-features {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: auto;
  max-height: 24px;
  overflow: hidden;
}

.feature-tag {
  background: #f5f5f5;
  color: #555;
  padding: 2px 6px;
  border-radius: 30px;
  font-size: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid #e0e0e0;
}

.feature-tag i {
  font-size: 0.5rem;
}

.card-expand-btn {
  margin-top: 8px;
  border: 1px solid var(--gold);
  background: linear-gradient(160deg, #fff, #fff3e6);
  color: var(--red);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  align-self: flex-start;
}

.card-expand-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.product-card.expanded {
  height: auto;
  min-height: clamp(220px, 34vw, 270px);
}

.product-card.expanded .product-desc {
  display: block;
  -webkit-line-clamp: unset;
  max-height: 140px;
  overflow-y: auto;
}

.product-card.expanded .product-features {
  max-height: 24px;
  overflow: hidden;
}

.search-highlight {
  position: relative;
  border: 2px solid var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.2), 0 5px 15px rgba(178, 34, 34, 0.15) !important;
  z-index: 5;
}

.search-highlight::after {
  content: "🔍";
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 0.8rem;
  background: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  z-index: 10;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.popup-overlay.active {
  display: flex;
}

.popup-card {
  background: white;
  border-radius: 30px;
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--gold);
  animation: popupScale 0.3s ease;
}

@keyframes popupScale {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.popup-content {
  padding: 15px;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.popup-header h2 {
  font-size: 1.4rem;
  color: var(--black);
  font-weight: 800;
}

.popup-price {
  background: var(--red);
  color: white;
  padding: 6px 15px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
}

.popup-desc {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
  border-right: 3px solid var(--red);
  padding-right: 10px;
}

.popup-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.variant-option {
  border: 1px solid #efd8d8;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  flex: 1 1 auto;
  min-width: 80px;
  background: #fff;
}

.variant-option.active {
  border-color: var(--red);
  background: #fff2f2;
  box-shadow: 0 0 0 2px rgba(178, 34, 34, 0.12);
}

.variant-option:hover {
  border-color: var(--red-soft);
}

.variant-option.sold-out {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8f8f8;
}

.variant-option.sold-out .variant-name {
  text-decoration: line-through;
}

.variant-option.sold-out .variant-price {
  color: #7b7b7b;
}

.variant-soldout-label {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #2e2e2e;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.variant-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
}

.variant-price {
  color: var(--red);
  font-size: 0.8rem;
}

.addon-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid #ecdac0;
  border-radius: 10px;
  padding: 7px 10px;
  background: #fffdf9;
}

.addon-option.sold-out {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8f8f8;
}

.addon-option.sold-out .addon-option-name {
  text-decoration: line-through;
}

.addon-option-input {
  width: 16px;
  height: 16px;
}

.addon-option-name {
  flex: 1;
  font-weight: 700;
  font-size: 0.88rem;
}

.addon-option-price {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
}

.popup-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.popup-feature {
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.8rem;
}

.popup-feature i {
  color: var(--red);
  margin-left: 4px;
}

.popup-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 10px;
  padding: 8px 10px;
  border: 1px solid #ecd8bc;
  border-radius: 12px;
  background: #fff8ef;
}

.popup-qty-row span {
  font-weight: 700;
  color: #3d3122;
}

.popup-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.popup-qty-control button {
  width: 28px;
  height: 28px;
  border: 1px solid #e2c89f;
  border-radius: 8px;
  background: #fff;
  color: #3d3122;
  font-weight: 800;
  cursor: pointer;
}

#popupQtyValue {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
}

.close-btn {
  background: var(--red);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-family: "Cairo", sans-serif;
  border: 2px solid var(--gold);
  transition: 0.3s;
}

.popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.add-cart-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #2a1d0a;
  border: none;
  padding: 10px 15px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-family: "Cairo", sans-serif;
  border: 2px solid #f0dfbd;
  transition: 0.3s;
}

.add-cart-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(198, 161, 91, 0.25);
}

.add-cart-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(0.4);
}

.popup-qty-control button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.close-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(178, 34, 34, 0.25);
}

.cart-fab {
  position: fixed;
  inset-inline-end: 12px;
  bottom: 90px;
  z-index: 10002;
  border: 2px solid var(--gold);
  background: var(--red);
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cart-fab i {
  font-size: 1.2rem;
}

.cart-count {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 30px;
  background: #fff;
  color: var(--red);
  border: 2px solid var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10003;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.cart-overlay.active {
  display: flex;
}

.cart-panel {
  width: min(420px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  border: 3px solid var(--gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  padding: 14px;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cart-header h3 {
  color: var(--black);
  font-size: 1.2rem;
}

.cart-close {
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0e6d5;
  color: var(--red);
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 8px;
}

.cart-item {
  border: 1px solid #e9d7bf;
  border-radius: 12px;
  padding: 9px 10px;
  background: #fff8ee;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 6px;
  align-items: center;
}

.cart-item-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: #f1e0cc;
  background-size: cover;
  background-position: center;
  border: 1px solid #e6cfaf;
}

.cart-item-main {
  min-width: 0;
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  font-size: 0.75rem;
  color: #666;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--red);
}

.cart-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.cart-qty-btn {
  border: 1px solid #e5c8a6;
  background: #fff;
  color: var(--black);
  width: 24px;
  height: 24px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
}

.cart-qty {
  min-width: 18px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
}

.cart-remove {
  border: none;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.cart-footer {
  margin-top: 12px;
  border-top: 1px solid #eddcc6;
  padding-top: 10px;
}

.cart-total-row {
  display: none;
  justify-content: space-between;
  align-items: center;
  color: var(--black);
  margin-bottom: 8px;
}

.clear-cart-btn {
  width: 100%;
  border: 2px solid #f0d5d5;
  border-radius: 40px;
  padding: 9px 12px;
  background: #fff;
  color: var(--red);
  font-weight: 700;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
}

.cart-empty {
  color: #777;
  text-align: center;
  padding: 15px 8px;
}

.menu-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 2px solid var(--gold-light);
  color: #888;
  font-size: 0.8rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
}

.items-sentinel {
  grid-column: 1 / -1;
  height: 1px;
}

.skeleton-card {
  border-radius: 18px;
  border: 2px solid #f0e0e0;
  background: #fff;
  overflow: hidden;
  animation: pulse 1.2s ease-in-out infinite;
}

.skeleton-img {
  height: 130px;
  background: linear-gradient(90deg, #f1e6e6, #fbf6f6, #f1e6e6);
}

.skeleton-lines {
  padding: 10px;
}

.skeleton-line {
  height: 10px;
  border-radius: 8px;
  background: #efe4e4;
  margin-bottom: 8px;
}

.skeleton-line.sm {
  width: 60%;
}

@keyframes pulse {
  0% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.7;
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  body {
    padding: 5px;
  }

  .sticky-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .top-controls {
    gap: 8px;
  }

  .quick-chips {
    justify-content: center;
  }

  .quick-chips button {
    flex: 1 1 auto;
    justify-content: center;
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .event-title {
    font-size: 1.3rem;
  }

  .event-title span {
    font-size: 1.1rem;
  }

  .events-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-img {
    height: 110px;
  }

  .product-header h3 {
    font-size: 0.9rem;
  }

  .product-price {
    font-size: 0.75rem;
    padding: 2px 6px;
  }

  .popup-actions {
    grid-template-columns: 1fr;
  }

  .cart-fab {
    width: 52px;
    height: 52px;
    bottom: 84px;
  }
}

@media (max-width: 360px) {
  .products-grid {
    gap: 8px;
  }

  .product-img {
    height: 90px;
  }

  .product-content {
    padding: 8px;
  }

  .product-header h3 {
    font-size: 0.8rem;
  }

  .product-price {
    font-size: 0.7rem;
  }

  .product-desc {
    font-size: 0.65rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .cat-btn:hover,
  .product-card:hover,
  .quick-chips button:hover {
    transform: none;
  }

  .cat-btn:active,
  .product-card:active {
    transform: scale(0.98);
  }
}
