/* Sub Header */
.sub-header {
  background: white;
  padding: 10px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  overflow-x: auto;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.sub-header::-webkit-scrollbar {
  display: none;
}
.sub-header .container {
  display: flex;
  justify-content: space-between;
  min-width: 600px;
}
.cat-item {
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: #333;
}

/* Hero Banner */
.hero-section {
  margin-bottom: 10px;
}
.banner {
  background: linear-gradient(45deg, #ff9f00, #ff6161);
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  animation: banner-glow 3s infinite alternate;
}

@keyframes banner-glow {
  from {
    box-shadow: 0 0 5px #ff9f00;
  }
  to {
    box-shadow: 0 0 20px #ff6161;
  }
}

/* Products */
.products-section {
  background: white;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.products-section h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
}

/* --- Cart Modal Styles --- */
.cart-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none; /* Hidden by default */
  justify-content: flex-end;
}
.cart-modal-overlay.active {
  display: flex;
}

.cart-modal-content {
  background: white;
  width: 400px;
  max-width: 85%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.cart-header {
  padding: 15px;
  background: #2874f0;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.close-cart {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px;
}
.cart-item {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.cart-item-details {
  flex-grow: 1;
}
.cart-item-title {
  font-size: 0.9rem;
  font-weight: 500;
}
.cart-item-price {
  font-weight: bold;
  margin-top: 5px;
  font-size: 0.9rem;
}
.btn-remove {
  background: none;
  border: none;
  color: #ff6161;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.8rem;
  margin-top: 5px;
}

.cart-footer {
  padding: 15px;
  border-top: 1px solid #f0f0f0;
  background: white;
}
.total-price {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.checkout-btn {
  width: 100%;
  background: #fb641b;
  color: white;
  border: none;
  padding: 12px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .sub-header .container {
    gap: 20px;
  }
  .banner {
    height: 150px;
    padding: 15px;
  }
  .banner h2 {
    font-size: 1.5rem;
  }
}

.offer-text {
  margin-top: 20px;
}
