/* Main Carousel */

.carousel-item img {
  object-fit: cover;
  height: 100%;
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  color: white;
  max-width: 35%;
  padding: 1rem;
}

.highlight {
  background-color: yellow;
  color: black;
  padding: 2px 6px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .text-overlay {
    max-width: 70%;
    top: 60%;
    transform: translateY(-60%);
    padding: 0.75rem;
  }

  .text-overlay h1 {
    font-size: 1.25rem;
  }

  .text-overlay a.btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
  }
}


/* Navbar Tags */
.nav-tabs .nav-link {
  font-weight: 500;
  color: #333;
}
.nav-tabs .nav-link.active {
  font-weight: bold;
  background-color: #d3d3d3;
  border-color: #dee2e6 #dee2e6 #fff;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* category card */
.category-card {
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 200px; /* Fixed height */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.category-card img {
  max-width: 150px;
  margin-bottom: 10px;
}

.category-card p {
  font-weight: bold;
  color: #707070;
  margin: 0; /* Remove margin to keep consistency */
  text-align: center;
}

@media (max-width: 768px) {
  .category-card img {
    max-width: 80px;
  }
}

/*offer card*/
.offer-card {
  height: 300px;
  background-color: #f8f9fa;
  text-align: left;
}

.offer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.offer-info {
  z-index: 2;
  max-width: 60%;
}


.offer-card:hover {
  transform: scale(1.05);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-img-top {
  height: 350px;
  object-fit: cover;
}

h6 {
  font-weight: 600;
  margin-bottom: 5px;
}

/*tagline */
.tagline-box {
  background-color: #fff8f0;
  width: 100%;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tagline-text {
  font-weight: 500;
  font-size: 1.2rem;
  color: #333;
  margin: 0;
}

/*feature card*/
.feature-card {
  text-align: center;
  padding: 20px;
  border: 1px solid #f1f1f1;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%; /* Ensures equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card:hover {
  transform: scale(1.05);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 2rem;
  color: #28a745;
  margin-bottom: 1rem;
}

/* Ensure equal height in row */
.row.text-center {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .feature-card {
    padding: 15px;
  }
}

/* Base card */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border-radius: 12px;
    background-color: #fdfdfd;
    border: 1px solid #d6d6d6;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Glow effect on hover */
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 0 3px rgba(179, 229, 252, 0.6), 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #a0a0a0; /* slightly stronger blue on hover */
}


.product-img {
    transition: transform 0.5s ease;
}
.product-img:hover {
    transform: scale(1.50);
}

.badge.pastel-blue {
    background-color: #e3f2fd;
    color: #0d47a1;
    font-size: 1.0rem;           
    font-weight: 600;            
    padding: 6px 12px;           
    border-radius: 0.5rem;       
}


.product-card .badge {
    z-index: 2;
}

.card-footer {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.product-card:hover .card-footer {
    transform: translateY(-8px);
    opacity: 1;
}

