:root {
  --bg-color: #0f172a;
  --surface-color: #1e293b;
  --surface-hover: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;

  --brand-primary: #ff416c;
  --brand-secondary: #ff4b2b;
  --brand-gradient: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-secondary)
  );

  --success: #10b981;
  --danger: #ef4444;

  --font-main: "Outfit", sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(255, 65, 108, 0.4);

  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--brand-gradient);
  border-radius: var(--radius-pill);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--brand-gradient);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-hover);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-icon:hover {
  background: var(--brand-primary);
  color: white;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.dot {
  color: var(--brand-primary);
}

.nav-menu {
  flex: 1;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0 1rem;
  margin: 0 1.5rem;
  text-align: center;
  white-space: nowrap;
  cursor: grab;
}
.nav-menu:active {
  cursor: grabbing;
}
.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-list {
  display: inline-flex;
  gap: 1.2rem;
  vertical-align: middle;
}

.category-nav-wrapper {
  padding: 0.5rem 0 1rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.category-nav-wrapper:active {
  cursor: grabbing;
}
.category-nav-wrapper::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding: 0.5rem 0.3rem 0.8rem;
}
.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

/* Base logic for mobile-only vs desktop-only elements */
.mobile-nav-menu {
  display: none; /* Hidden on Desktop */
}

@media (min-width: 769px) {
  .desktop-nav-menu {
    transition: all 0.3s ease;
  }
  .desktop-nav-menu:hover {
    white-space: normal;
    overflow: visible;
  }
  .desktop-nav-menu:hover .nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1.2rem;
  }
}


.cart-btn {
  position: relative;
  cursor: pointer;
  font-size: 1.2rem;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-color);
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}
.cart-btn:hover {
  background: var(--surface-hover);
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--brand-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--bg-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 150px 0 100px;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-image: url("https://images.unsplash.com/photo-1579871494447-9811cf80d66c?q=80&w=2070&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed; - REMOVED for mobile compatibility */
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(15, 23, 42, 0.6) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}
.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* Menu Grid */
.menu-section {
  padding: 5rem 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Product Card */
.product-card {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 65, 108, 0.3);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  background: #000;
}
.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.product-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex: 1;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-primary);
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--surface-color);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  border-left: 1px solid var(--glass-border);
}
.cart-sidebar.open {
  right: 0;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.close-cart,
.close-modal {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.close-cart:hover,
.close-modal:hover {
  color: var(--danger);
}
/* Mobile Sidebar */
/* Mobile Sidebar (Fixed & Robust) */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background-color: #0f172a; /* Solid dark blue fallback */
  background-image: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  z-index: 9999;
  transform: translateX(-105%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}

.mobile-sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-content {
  padding: 2rem 1.5rem;
  flex: 1;
  overflow-y: auto;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.sidebar-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.sidebar-link i {
  width: 24px;
  color: var(--brand-primary);
  text-align: center;
}

.sidebar-info {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-info p, .sidebar-info a {
  color: #94a3b8;
  font-size: 0.95rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-social {
  margin-top: 1rem;
  background: var(--brand-gradient);
  color: white !important;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  justify-content: center;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.close-sidebar {
  background: rgba(255,255,255,0.05);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  padding: 0.5rem;
  margin-right: 0.5rem;
  display: block !important; /* Force display since desktop nav is hidden */
}

/* Sidebar Categories Styling */
.sidebar-categories-wrap {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-section-title {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.sidebar-categories {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-category-link {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 400;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: all 0.2s;
}

.sidebar-category-link:hover {
  color: var(--brand-primary);
  padding-left: 5px;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-content {
  background: var(--surface-color);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 450px;
  position: relative;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s;
}
.modal.open .modal-content { transform: translateY(0); }
.close-modal { position: absolute; top: 1rem; right: 1.5rem; }
.modal-content h2 { margin-bottom: 1.5rem; color: var(--text-primary); }

.input-group { margin-bottom: 1.2rem; }
.input-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.input-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--bg-color);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.input-group input:focus { outline: none; border-color: var(--brand-primary); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.empty-cart-msg {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 2rem;
  font-style: italic;
}

.cart-item {
  display: flex;
  gap: 1rem;
  background: var(--bg-color);
  padding: 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  animation: slideIn 0.3s ease forwards;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
}
.cart-item-price {
  color: var(--brand-primary);
  font-weight: 800;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: var(--surface-hover);
  color: white;
  cursor: pointer;
  font-size: 0.8rem;
}
.qty-display {
  font-size: 0.9rem;
  font-weight: 600;
  width: 20px;
  text-align: center;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-color);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.checkout-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}
.checkout-btn:disabled {
  background: var(--surface-hover);
  color: var(--text-secondary);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Features */
.features {
  background: var(--surface-color);
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}
.feature-icon {
  font-size: 2.5rem;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}
.feature-card h3 {
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: var(--bg-color);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 250px;
}
.footer-links h4,
.footer-social h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.footer-links p {
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}
.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.social-icons a:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-nav-menu {
    display: none;
  }
  .mobile-nav-menu {
    display: block;
  }
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero {
    padding-top: 80px;
    padding-bottom: 2rem;
    min-height: 400px;
    background-attachment: scroll; /* Disable fixed background on mobile for major stability */
  }

  .menu-header {
    top: 60px;
    padding: 0.8rem 15px;
    margin: 0 -15px 1.5rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    padding: 0 5px;
  }

  .product-info {
    padding: 0.8rem;
  }
  .product-title {
    font-size: 0.95rem;
    height: 2.4rem; /* Fixed height for 2 lines */
    overflow: hidden;
  }
  .product-desc {
    display: none; /* Hide desc on mobile grid to save space */
  }
  .product-price {
    font-size: 1.1rem;
  }
  .btn-icon {
    width: 32px;
    height: 32px;
  }
  
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.4rem;
  }
}

