:root {
  --primary: #e67e22;
  --primary-dark: #d35400;
  --secondary: #2c3e50;
  --accent: #f39c12;
  --success: #27ae60;
  --danger: #e74c3c;
  --warning: #f1c40f;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --text: #333;
  --white: #ffffff;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar */
.top-bar {
  background: var(--secondary);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.9rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-content span {
  margin-right: 20px;
}

.top-bar-content i {
  margin-right: 5px;
  color: var(--accent);
}

/* Navbar */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo i {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a i {
  margin-right: 5px;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 10px 0;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 5px 20px;
}

.dropdown-menu li:hover {
  background: var(--light);
}

.cart-icon {
  position: relative;
  font-size: 1.2rem;
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -12px;
  background: var(--danger);
  color: var(--white);
  border-radius: 50%;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 4rem 0;
  border-radius: 10px;
  margin: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/banners/food-pattern.png") repeat;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--dark);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-success:hover {
  background: #219a52;
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background: #c0392b;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.product-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--danger);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-badge.vegetarian {
  background: var(--success);
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.product-price .original {
  text-decoration: line-through;
  color: #999;
  font-size: 1rem;
  margin-left: 0.5rem;
}

.product-weight {
  color: #666;
  font-size: 0.9rem;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

/* Category Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.category-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.category-card p {
  color: #666;
  font-size: 0.9rem;
}

/* Cart Table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cart-table th {
  background: var(--secondary);
  color: var(--white);
  padding: 1rem;
  text-align: left;
}

.cart-table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.cart-table tr:hover {
  background: #f8f9fa;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-total {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.cart-total-row.grand-total {
  font-weight: 700;
  font-size: 1.2rem;
  border-bottom: none;
  padding-top: 1rem;
}

/* Checkout */
.checkout-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.order-summary {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.payment-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

/* Admin */
.admin-panel {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.admin-header {
  background: var(--secondary);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 10px 10px 0 0;
  margin: -2rem -2rem 2rem -2rem;
}

.admin-nav {
  display: flex;
  gap: 1rem;
  background: var(--light);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.admin-nav a {
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  border-radius: 5px;
  transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--primary);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

.stat-card h3 {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

/* Footer */
.footer {
  background: var(--secondary);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-section a i {
  margin-right: 5px;
  font-size: 0.8rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.payment-icons {
  font-size: 2rem;
  color: #bdc3c7;
}

.payment-icons i {
  margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .checkout-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0.5rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .cart-table {
    display: block;
    overflow-x: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .payment-icons {
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .top-bar-content {
    flex-direction: column;
    text-align: center;
  }

  .top-bar-content span {
    margin-right: 0;
    margin-bottom: 5px;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* ============================================
   ADMIN RESPONSIVE STYLES
   ============================================ */

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
}

/* Responsive Admin Nav */
.admin-nav {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    background: white;
    padding: 0.8rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

/* Responsive Forms */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    .form-grid .full-width {
        grid-column: span 1 !important;
    }
}

/* Responsive Stats */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive Actions */
@media (max-width: 768px) {
    .actions {
        flex-direction: column;
        gap: 0.2rem;
    }
    .actions a {
        width: 100%;
        justify-content: center;
        padding: 0.3rem !important;
        font-size: 0.75rem !important;
    }
}

/* Responsive Cards */
.card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .card {
        padding: 1rem;
    }
}

/* Responsive Modals */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto !important;
        padding: 1rem !important;
        width: 95% !important;
    }
    .modal-header h2 {
        font-size: 1.2rem !important;
    }
}

/* Responsive Status Badges */
@media (max-width: 480px) {
    .status-badge {
        font-size: 0.65rem !important;
        padding: 2px 8px !important;
    }
}
