 /* Basic reset and styles */
 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* Header with Cart Icon */
header {
  background-color: #2c3e50;
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.logo p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.5rem;
  transition: transform 0.3s;
}

.cart-icon:hover {
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

/* Cart Modal */
.cart-modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background-color: white;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  z-index: 1001;
  padding: 2rem;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
  transform: translateX(100%);
}

.cart-modal.active {
  display: block;
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
}

.cart-header h2 {
  font-size: 1.8rem;
  color: #2c3e50;
}

.close-cart {
  font-size: 1.5rem;
  cursor: pointer;
  color: #7f8c8d;
  transition: color 0.3s;
}

.close-cart:hover {
  color: #e74c3c;
}

.cart-items {
  margin-bottom: 2rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.cart-item-details h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.cart-item-details p {
  color: #e74c3c;
  font-weight: bold;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  background-color: #ecf0f1;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.quantity-btn:hover {
  background-color: #bdc3c7;
}

.item-quantity {
  min-width: 30px;
  text-align: center;
  font-weight: bold;
}

.remove-item {
  color: #e74c3c;
  cursor: pointer;
  margin-left: 1rem;
}

.cart-total {
  font-size: 1.3rem;
  font-weight: bold;
  text-align: right;
  margin-bottom: 2rem;
  padding-top: 1rem;
  border-top: 2px solid #eee;
}

.cart-total span {
  color: #e74c3c;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-btn, .clear-cart-btn {
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.checkout-btn {
  background-color: #27ae60;
  color: white;
}

.checkout-btn:hover {
  background-color: #219653;
}

.clear-cart-btn {
  background-color: #e74c3c;
  color: white;
}

.clear-cart-btn:hover {
  background-color: #c0392b;
}

.empty-cart {
  text-align: center;
  color: #7f8c8d;
  padding: 2rem;
  font-style: italic;
}

/* Overlay for cart modal */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
}

.overlay.active {
  display: block;
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2.5rem;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  margin: 1rem;
  backdrop-filter: blur(5px);
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
  display: inline-block;
  background-color: #e74c3c;
  color: white;
  padding: 0.8rem 1.8rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* CATEGORIES SECTION */
.categories {
  padding: 2rem;
  text-align: center;
  background-color: white;
  margin-top: 2rem;
}

.categories h2 {
  margin-bottom: 1.5rem;
  color: #2c3e50;
  font-size: 2rem;
}

.category-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-btn {
  padding: 0.8rem 1.8rem;
  background-color: #ecf0f1;
  border: 2px solid #bdc3c7;
  border-radius: 50px;
  font-weight: bold;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.category-btn:hover {
  background-color: #3498db;
  color: white;
  border-color: #3498db;
  transform: translateY(-3px);
}

.category-btn.active {
  background-color: #2c3e50;
  color: white;
  border-color: #2c3e50;
}

/* PRODUCTS SECTION */
#products {
  padding: 2rem;
  background-color: #f9f9f9;
}

#products h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #2c3e50;
  position: relative;
}

#products h2::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background-color: #e74c3c;
  margin: 0.5rem auto;
  border-radius: 2px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.product:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product h3 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-size: 1.5rem;
}

.product p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #e74c3c;
}

.product-description {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.add-to-cart {
  flex-grow: 1;
  background-color: #3498db;
}

.add-to-cart:hover {
  background-color: #2980b9;
}

.product-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(44, 62, 80, 0.9);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

/* CONTACT SECTION */
.contact {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #2c3e50;
  color: white;
}

.contact h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.contact p {
  margin: 1rem 0;
  font-size: 1.1rem;
}

.contact a {
  color: #3498db;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* FOOTER */
footer {
  background-color: #1a252f;
  color: white;
  text-align: center;
  padding: 1.5rem;
}

/* Notification */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #27ae60;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: none;
  z-index: 1002;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .cart-modal {
    width: 100%;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero {
    height: 60vh;
    min-height: 400px;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .category-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .category-btn {
    width: 80%;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 1.5rem;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .category-btn {
    width: 90%;
  }
}