/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  font-family: 'Poppins', sans-serif; /* Modern font */
  line-height: 1.6;
  background: linear-gradient(135deg, #ed9c0f, #feb47b); /* Gradient background */
  color: #0a0909;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Buttons */
button {
  cursor: pointer;
  outline: none;
}

/* Header Section */
header {
  background: #28b11f;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 20px;
}

.logo img {
  max-width: 150px;
  animation: bounce 2s infinite; /* Logo bounce animation */
}

.logo h1.tagline {
  font-size: 1.75rem;
  color: #ffffff;
  margin-top: 10px;
  font-weight: 700;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.banner {
  position: relative;
  margin-top: 10px;
  text-align: center;
}

.banner img {
  width: 90%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Product Grid Layout */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
  gap: 20px;
  padding: 20px;
}

/* Product Styling */
.product {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.product img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.product h3 {
  margin: 10px 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.product p {
  margin: 5px 0;
  font-size: 1rem;
}

.product input {
  width: 60px;
  padding: 5px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
}

.product button {
  background: #ff6f61;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: 600;
}

.product button:hover {
  background: #ff3b2f;
}

/* Cart Section */
.cart {
  background: #fff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cart-items {
  margin-bottom: 20px;
}

.cart-item {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item button {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: 600;
}

.cart-item button:hover {
  background: #c82333;
}

.cart-total {
  text-align: right;
  margin-top: 20px;
}

.cart-total h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Order Form Styles */
#order-form {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#order-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

#order-form button {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: 600;
}

#order-form button:hover {
  background: #218838;
}

/* Reviews Section */
.reviews {
  background: #fff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.review-carousel {
  display: flex;
  overflow: hidden;
  position: relative;
}

.review-slide {
  display: none;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  text-align: center;
  font-size: 1rem;
}

.review-slide.active {
  display: block;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  padding: 20px;
  margin-top: auto;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-info, .social-media {
  flex: 1;
  margin: 10px;
  text-align: center;
}

.social-media a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  margin: 5px 0;
  transition: color 0.3s ease;
}

.social-media a:hover {
  color: #ff6f61;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #444;
  font-size: 0.9rem;
}

/* Admin Dashboard Styles */
.admin-dashboard {
  background: #fff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.admin-dashboard h2 {
  font-size: 1.5rem;
  color: #28b11f;
  margin-bottom: 1rem;
  text-align: center;
}

/* Filter Section (Now at the Top) */
.filter-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.date-label {
  font-size: 1rem;
  color: #333;
  margin-right: 0.5rem;
}

.date-input {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  width: 150px;
}

.filter-button {
  background: #28b11f;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
}

.filter-button:hover {
  background: #23640e;
}

.filter-button:last-of-type {
  margin-left: 0.5rem;
}

/* Orders Table */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.orders-table th,
.orders-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
}

.orders-table th {
  background-color: #f8f9fa;
  font-weight: bold;
  color: #333;
}

.orders-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.orders-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.orders-table tr:hover {
  background-color: #f1f1f1;
}

/* Grand Total Display (Now Below the Table) */
#grand-total {
  font-size: 1.25rem;
  font-weight: bold;
  color: #090909;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 15px;
  }

  .logo h1.tagline {
    font-size: 1.5rem;
  }

  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .filter-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .date-label {
    margin-bottom: 0.5rem;
  }

  .date-input {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .filter-button {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .filter-button:last-of-type {
    margin-bottom: 1rem;
  }

  .orders-table {
    font-size: 0.9rem;
  }

  .orders-table th,
  .orders-table td {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .logo h1.tagline {
    font-size: 1.2rem;
  }

  .product-list {
    grid-template-columns: 1fr;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item button {
    width: 100%;
    margin-top: 10px;
  }

  /* Admin Dashboard Adjustments */
  .date-input {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .filter-button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .orders-table {
    font-size: 0.8rem;
  }

  .orders-table th,
  .orders-table td {
    padding: 6px;
  }
}