/* ==========================================================================
   STREET FOOD - MODERN CLEAN PALETTE (WHITE, BLACK, RED)
   ========================================================================== */

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-card: #FFFFFF;
  --text-main: #111111;
  --text-muted: #555555;
  --text-light: #777777;
  --red-accent: #E50914;
  --red-hover: #BF0610;
  --red-light: #FFECEE;
  --black: #0B0B0B;
  --border-light: #EBEBEB;
  --border-dark: #1F1F1F;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s ease-in-out;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Top Announcement Bar ---------------- */
.top-bar {
  background-color: var(--black);
  color: #FFFFFF;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--red-accent);
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-wa-btn {
  background-color: var(--red-accent);
  color: #fff;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.78rem;
  transition: var(--transition);
}
.top-wa-btn:hover {
  background-color: var(--red-hover);
  transform: translateY(-1px);
}

/* ---------------- Brand Hero Header ---------------- */
.brand-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
  padding: 35px 0 25px;
  border-bottom: 1px solid var(--border-light);
}
.hero-container {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.logo-wrapper {
  flex-shrink: 0;
  background: #FFFFFF;
  padding: 8px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-light);
}
.brand-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  display: block;
}
.brand-details {
  flex: 1;
  min-width: 280px;
}
.brand-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -1px;
  line-height: 1.1;
}
.brand-title span {
  color: var(--red-accent);
  font-style: italic;
  font-weight: 800;
}
.brand-tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 8px 0 14px;
}
.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

/* ---------------- Category Navigation ---------------- */
.sticky-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.nav-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-box {
  position: relative;
  width: 100%;
}
.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}
.search-box input {
  width: 100%;
  padding: 10px 15px 10px 42px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
  background: var(--bg-secondary);
}
.search-box input:focus {
  border-color: var(--red-accent);
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.category-tabs::-webkit-scrollbar {
  height: 4px;
}
.category-tabs::-webkit-scrollbar-thumb {
  background: #DDD;
  border-radius: 4px;
}
.tab-btn {
  white-space: nowrap;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.tab-btn:hover {
  color: var(--black);
  border-color: #CCC;
}
.tab-btn.active {
  background: var(--red-accent);
  color: #FFF;
  border-color: var(--red-accent);
  box-shadow: 0 3px 10px rgba(229, 9, 20, 0.25);
}

/* ---------------- Layout & Grid ---------------- */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  padding-top: 30px;
  padding-bottom: 60px;
  align-items: start;
}

.category-section {
  margin-bottom: 40px;
}
.section-header {
  margin-bottom: 20px;
  border-bottom: 2px solid var(--black);
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.section-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}
.section-header .section-subtitle {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

/* ---------------- Menu Item Card ---------------- */
.menu-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #DDD;
}
.card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red-light);
  color: var(--red-accent);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.card-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
  padding-right: 50px;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.45;
}
.variation-selector {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.variant-options {
  display: flex;
  gap: 6px;
}
.variant-btn {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 6px 4px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-family: inherit;
  color: var(--text-muted);
}
.variant-btn.active {
  background: var(--black);
  color: #FFF;
  border-color: var(--black);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}
.price-container {
  display: flex;
  flex-direction: column;
}
.price-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
}
.price-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--red-accent);
}
.add-btn {
  background: var(--black);
  color: #FFF;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  font-family: inherit;
}
.add-btn:hover {
  background: var(--red-accent);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

/* ---------------- Cart Sidebar ---------------- */
.cart-sidebar {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 125px;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 14px;
}
.cart-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--black);
}
.cart-title h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}
.cart-count-badge {
  background: var(--red-accent);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.cart-items {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-empty {
  text-align: center;
  padding: 30px 10px;
  color: var(--text-light);
}
.cart-empty p {
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.cart-empty span {
  font-size: 0.8rem;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.cart-item-info {
  flex: 1;
  padding-right: 8px;
}
.cart-item-title {
  font-weight: 700;
  color: var(--black);
  display: block;
}
.cart-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.cart-item-price {
  font-weight: 800;
  color: var(--red-accent);
  margin-right: 10px;
  white-space: nowrap;
}
.cart-qty-ctrls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  background: #FFF;
  border: 1px solid var(--border-light);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}
.qty-btn:hover {
  background: var(--black);
  color: #FFF;
}
.cart-qty-val {
  font-weight: 700;
  font-size: 0.82rem;
  min-width: 14px;
  text-align: center;
}

.cart-summary {
  margin-top: 16px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.total-line {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-light);
}
.amount-total {
  color: var(--red-accent);
  font-family: 'Montserrat', sans-serif;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.order-form input,
.order-form textarea {
  width: 100%;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.82rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--bg-secondary);
}
.order-form textarea {
  resize: vertical;
  min-height: 50px;
}
.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--black);
  background: #FFF;
}

.checkout-btn {
  width: 100%;
  background: #25D366; /* WhatsApp Green */
  color: #FFF;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.checkout-btn:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* ---------------- Mobile Floating Cart ---------------- */
.mobile-cart-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 999;
  background: var(--black);
  color: #FFF;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  font-family: inherit;
}
.mobile-cart-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.m-cart-total {
  color: #25D366;
}

/* ---------------- Footer ---------------- */
.footer {
  background: var(--black);
  color: #FFFFFF;
  padding: 40px 0 20px;
  border-top: 4px solid var(--red-accent);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid #222;
}
.footer-brand {
  max-width: 400px;
}
.footer-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
}
.footer-brand p {
  color: #AAA;
  font-size: 0.88rem;
}
.footer-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #FFF;
}
.footer-info .phone {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--red-accent);
  margin-bottom: 6px;
}
.footer-info p {
  color: #AAA;
  font-size: 0.85rem;
}
.copyright {
  text-align: center;
  padding-top: 15px;
  font-size: 0.78rem;
  color: #777;
}

/* ---------------- Responsive Media Queries ---------------- */
@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .cart-sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 20px 20px 0 0;
    z-index: 1000;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.25);
    max-height: 85vh;
    display: none;
  }
  .cart-sidebar.open-mobile {
    display: block;
  }
  .mobile-cart-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .brand-title {
    font-size: 2.2rem;
  }
  .brand-logo {
    width: 95px;
    height: 95px;
  }
  .items-grid {
    grid-template-columns: 1fr;
  }
}
