:root {
  --primary-color: #000000; /* Blue for medical theme */
  --offer-color: #28a745; /* Green for offers */
  --secondary-color: #264653;
  --accent-color: #e9c46a;
  --light-color: #f8f9fa;
}

.hero-section {
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 10px;
  max-width: 500px;
  margin-left: 50px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.btn-shop-now {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-shop-now:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-product {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-product:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-offer {
  background-color: var(--offer-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-offer:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.offer-zone {
  text-align: center;
  padding: 60px 0;
  background-color: var(--light-color);
}

.offer-zone-title {
  background: linear-gradient(45deg, #28a745, #4cd964);
  padding: 20px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.offer-zone-title h2 {
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.product-card {
  border: 1px solid #eee;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background: white;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
}

.product-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.product-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.product-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
}

.dream-space {
  padding: 80px 0;
  background-color: #fff;
}

.dream-space h2 {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary-color);
  font-size: 2.2rem;
}

.dream-space p {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
  font-size: 1.1rem;
}

.dream-space img {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.dream-space img:hover {
  transform: scale(1.05);
}

.featured-products {
  padding: 80px 0;
  background-color: var(--light-color);
  text-align: center;
}

.featured-products h2 {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary-color);
  font-size: 2.2rem;
}

.featured-products .subtitle {
  color: #666;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.featured-product-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.featured-product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.featured-product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.3s ease;
}

.featured-product-card:hover img {
  transform: scale(1.05);
}

.featured-product-info {
  padding: 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-product-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--secondary-color);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2em;
  max-height: 3.6em;
  min-height: 3.6em;
}

.featured-product-price {
  font-weight: 700;
  color: var(--primary-color);
}

.discount-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--offer-color);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  z-index: 2;
  transition: transform 0.3s ease;
}

.discount-badge:hover {
  transform: scale(1.1);
}

.star-rating {
  color: #ffc107;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 20px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  padding: 20px;
  text-align: center;
}

.brand-item {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.brand-item img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.brand-item:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.brand-item:hover img {
  transform: scale(1.05);
}

.view-all a {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-all a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive Design for Home Content */
@media (max-width: 992px) {
  .hero-section {
    height: 400px;
  }
  .hero-content {
    margin-left: 20px;
    margin-right: 20px;
    padding: 20px;
    max-width: 90%;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .product-card img, .featured-product-card img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 350px;
  }
  .hero-content {
    padding: 15px;
    margin: 10px;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .product-card, .featured-product-card {
    margin-bottom: 20px;
  }
  .product-card img, .featured-product-card img {
    height: 150px;
  }
  .brand-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 300px;
  }
  .hero-content {
    padding: 10px;
    margin: 5px;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .product-card img, .featured-product-card img {
    height: 120px;
  }
  .dream-space {
    padding: 40px 0;
  }
  .dream-space h2 {
    font-size: 1.8rem;
  }
  .brand-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
}

