@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --primary: #FF6B00;
  --primary-hover: #E05E00;
  --bg-dark: #0A0A0A;
  --bg-card: #141414;
  --text-main: #F4F4F5;
  --text-muted: #A1A1AA;
  --glass-bg: rgba(20, 20, 20, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  padding-bottom: 120px;
  overflow-x: hidden;
}

/* --- Header & Navigation --- */
header {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

header img {
  height: 55px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

header img:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
}

nav a:hover {
  color: var(--primary);
  background: rgba(255, 107, 0, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle span {
  width: 30px;
  height: 3px;
  background: var(--text-main);
  border-radius: 2px;
  transition: 0.3s;
}

/* --- Area Bar --- */
#area-bar {
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* Custom Select CSS */
.custom-select {
  position: relative;
  margin-left: 15px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.select-selected {
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  min-width: 180px;
}

.select-selected:after {
  content: ' ▼';
  font-size: 0.8em;
}

.custom-select.highlight-pulse .select-selected {
  animation: pulse-border 1s infinite;
  background: #fff;
  color: #ff0000;
}

.select-items {
  position: absolute;
  background-color: #fff;
  color: #000;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1005;
  border-radius: 10px;
  margin-top: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  max-height: 250px;
  overflow-y: auto;
}

.select-items div {
  padding: 10px 15px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}

.select-items div:hover {
  background-color: rgba(255, 107, 0, 0.1);
  color: var(--primary);
}

.select-hide {
  display: none;
}

@keyframes pulse-border {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1550547660-d9450f859349?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(to right, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideUp 0.8s ease-out;
}

.hero p {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 600px;
  animation: slideUp 1s ease-out;
}

.hero a {
  background: var(--primary);
  color: white;
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
  animation: slideUp 1.2s ease-out;
}

.hero a:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 107, 0, 0.4);
}

/* --- Services Bar --- */
.services {
  background: var(--bg-card);
  text-align: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* --- Categories --- */
#category-nav {
  padding: 30px 20px;
  display: flex;
  justify-content: center;
}

.category-list {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.cat-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.cat-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* --- Menu Grid --- */
.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 40px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.item {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 107, 0, 0.2);
  border-color: rgba(255, 107, 0, 0.3);
}

.item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.item:hover img {
  transform: scale(1.05);
}

.item h2, .item h3 {
  margin: 15px 20px 5px;
  color: var(--text-main);
  font-weight: 600;
}

.item h3 {
  color: var(--primary);
  font-size: 1.3rem;
}

.item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0 20px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.item select {
  margin: 10px auto;
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  width: 80%;
  outline: none;
}

.item .extra-cheese {
  margin: 10px 0;
  accent-color: var(--primary);
}

.add-cart {
  background: var(--primary);
  border: none;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 15px auto 0;
  width: 80%;
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
}

.add-cart:hover {
  background: var(--primary-hover);
  box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
}

.out-of-stock {
  color: #ff4757;
  font-weight: 600;
  margin-top: 15px;
  display: none;
}

/* --- Sections (Offers, About, UberEats) --- */
#offers {
  background: linear-gradient(to bottom, var(--bg-dark), var(--bg-card));
  padding: 60px 0;
}

#offers h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 40px;
}

.about {
  padding: 80px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about p {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.social-icons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%) brightness(200%);
}

.social-icons img:hover {
  transform: translateY(-5px);
  filter: grayscale(0%) brightness(100%);
}

.ubereats-section {
  background: var(--bg-card);
  padding: 60px 20px;
  text-align: center;
}

.ubereats-section h2 {
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.delivery-box {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.delivery-card {
  background: var(--bg-dark);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease;
}

.delivery-card:hover {
  transform: translateY(-5px);
}

.delivery-qr {
  width: 150px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.delivery-btn {
  display: block;
  background: #06C167;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.delivery-btn:hover {
  opacity: 0.9;
}

.delivery-btn.pickme {
  background: #E5004F;
}

/* --- Floating Cart --- */
#floating-cart {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 350px;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#cart-header {
  background: var(--primary);
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#cart-header h4 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}

#cart-count {
  background: #fff;
  color: #ff0000;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s, color 0.3s;
}

#cart-count.bump {
  transform: scale(1.4);
  background: #ff0000;
  color: #fff;
}

#cartoggle {
  display: none;
}

#cart-body {
  max-height: 300px;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item span {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-main);
  padding-right: 15px;
  line-height: 1.4;
}

.cart-item button {
  background: #e84118;
  color: white;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.cart-item button:hover {
  background: #c23616;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(232, 65, 24, 0.5);
}

#cart-summary {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--glass-border);
}

#cart-summary div {
  margin-bottom: 5px;
  color: var(--text-muted);
}

#cart-total {
  font-size: 1.2rem;
  color: var(--primary) !important;
  margin-top: 10px;
}

#cart-whatsapp {
  background: #25D366;
  color: white;
  width: 100%;
  padding: 15px;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  transition: background 0.3s ease;
}

#cart-whatsapp:hover {
  background: #1EBE5D;
}

/* --- Toast --- */
#toast {
  visibility: hidden;
  min-width: 250px;
  background: #4caf50;
  color: #fff;
  text-align: center;
  border-radius: 30px;
  padding: 16px;
  position: fixed;
  z-index: 1001;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

#toast.error {
  background: #ff4757;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

#toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadein {
  from { bottom: 0; opacity: 0; }
  to { bottom: 30px; opacity: 1; }
}

@keyframes fadeout {
  from { bottom: 30px; opacity: 1; }
  to { bottom: 0; opacity: 0; }
}

/* --- Footer --- */
footer {
  background: #050505;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--glass-border);
}

footer p {
  margin: 5px 0;
  color: var(--text-muted);
}

/* --- Item Highlight/Dim Logic --- */
.menu.has-focus .item {
  opacity: 0.3;
  filter: grayscale(60%);
  transform: scale(0.95);
}

.menu.has-focus .item.focused {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 107, 0, 0.6);
  border-color: var(--primary);
  z-index: 10;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: var(--bg-card);
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    padding: 20px;
    border-left: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0 0 0 15px;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.5);
  }
  nav.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .hero h1 {
    font-size: 3rem;
  }
  header {
    padding: 15px 20px;
  }
  #floating-cart {
    width: calc(100% - 40px);
    right: 20px;
    bottom: 20px;
  }
}
