/* Sticky Navbar */
  .sticky-top {
    position: sticky;
    top: 0;
    z-index: 1030;
  }

  /* Navbar brand styling */
  .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d63384 !important; /* Bootstrap pink */
  }

  /* Navbar link styles */
  .navbar-nav .nav-link {
    font-weight: 500;
    color: #333;
    margin-right: 10px;
    transition: color 0.2s ease-in-out;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: #d63384;
  }

  /* Search bar styling */
  .navbar-search {
    width: 100%;
    margin-top: 10px;
  }

  @media (min-width: 768px) {
    .navbar-search {
      margin-top: 0;
      max-width: 300px;
    }
  }

  /* Make sure the form fits well on small screens */
  .navbar .form-control {
    font-size: 0.95rem;
  }

  .btn-outline-primary {
    color: #d63384;
    border-color: #d63384;
  }

  .navbar-nav .nav-link {
      font-size: 0.9rem;
      padding: 0.3rem 0.6rem;
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }

  .navbar-nav .nav-link i {
      font-size: 1rem;
    }

  .btn-outline-primary:hover {
    background-color: #d63384;
    color: white;
  }
    .sticky-top {
      position: sticky;
      top: 0;
      z-index: 1030;
    }
    .navbar-search {
      width: 100%;
    }
    @media (min-width: 768px) {
      .navbar-search {
        max-width: 300px;
      }
    }

    .hover-underline {
      color: #ffffff;
      position: relative;
      display: inline-block;
    }

    .hover-underline::after,
    .hover-underline::before {
      content: '';
      position: absolute;
      width: 100%;
      height: 2px;
      background: linear-gradient(to right, #ff0000, #00ffff);
      bottom: -5px;
      left: 0;
      transform: scaleX(0);
      transform-origin: right;
      transition: transform 0.4s ease-out;
    }

    .hover-underline::before {
      top: -5px;
      transform-origin: left;
    }

    .hover-underline:hover::after,
    .hover-underline:hover::before {
      transform: scaleX(1);
    }

    .hover-underline-animation.center::after {
       transform-origin: bottom center;
      }

    .hover-underline-animation.center:hover::after {
          transform-origin: bottom center;
        }
    .hover-underline-animation {
      display: inline-block;
      position: relative;
    }

    .hover-underline-animation::after {
      content: '';
      position: absolute;
      width: 100%;
      transform: scaleX(0);
      height: 2px;
      bottom: 0;
      left: 0;
      background-color: #d63384;
      transition: transform 0.25s ease-out;
    }

    .hover-underline-animation:hover::after {
      transform: scaleX(1);
    }

.related-items-griddd {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.related-items-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* exactly 3 per row */
  gap: 16px;
  margin-top: 20px;
}

.related-item-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.related-item-card:hover {
  transform: scale(1.03);
}

.related-item-card img {
  width: 100%;
  height: 250px; /* fixed height */
  object-fit: contain; /* show full image */
  object-position: top; /* align to top if there's empty space */
  border-radius: 8px;
  background-color: #f9f9f9; /* optional background fill */
}

.card-content .name {
  font-weight: bold;
  margin-top: 8px;
}

.card-content .price {
  color: #388e3c;
  margin-top: 4px;
}
  .scroll-wrapper {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
  }

  .scroll-wrapper::-webkit-scrollbar {
    display: none;
  }

  .carousel-card {
  scroll-snap-align: start;
  width: calc(100% / 3 - 16px); /* 3 cards in view, gap = 16px (gap-3) */
  height: 85vh; /* Use viewport height for control */
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.fixed-image {
  height: 80%;
  object-fit: cover;
  object-position: center;
}

.card-body {
  height: 5%;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
}

.card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.card-text {
  margin: 0;
  font-size: 0.8rem;
}
