/* Updated Category Scroller Styles */
.category-scroller {
  position: relative;
  padding: 1.5rem 0;
  overflow: hidden;
  background: linear-gradient(to right, #fafafa, #fff, #fafafa);
}

.scroller-container {
  display: flex;
  gap: 1.5rem;
  padding: 0 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroller-container::-webkit-scrollbar {
  display: none;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.category-item:hover {
  transform: translateY(-5px);
}

.category-icon {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 12px; /* Changed from circle to rounded square */
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid #f0f0f0; /* Added subtle border */
}

.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-item:hover .category-icon {
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border-color: #e0e0e0;
}

.category-item:hover .category-icon img {
  transform: scale(1.05); /* Slightly reduced zoom effect */
}

.hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(212, 175, 55, 0.2); /* Lighter gold overlay */
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 11px; /* Slightly less than container to match */
}

.category-item:hover .hover-effect {
  opacity: 1;
}

.category-name {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  text-align: center;
  transition: all 0.3s ease;
  padding: 0 5px;
}

.category-item:hover .category-name {
  color: #c9a227; /* Darker gold color */
  transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .scroller-container {
    gap: 1.2rem;
    padding: 0 1rem;
  }
  
  .category-icon {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 576px) {
  .category-scroller {
    padding: 1rem 0;
  }
  
  .scroller-container {
    gap: 1rem;
    padding: 0 0.8rem;
  }
  
  .category-icon {
    width: 65px;
    height: 65px;
    border-radius: 10px;
  }
  
  .category-name {
    font-size: 0.8rem;
    margin-top: 0.7rem;
  }
}







/* Hero Carousel Styles */
.hero-carousel {
  height: 80vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  position: relative;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #fff;
}

/* Optional overlay background on hover */
.slide-overlay:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Navigation Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 2rem;
}

.carousel-control.next {
  right: 2rem;
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator.active {
  background-color: white;
  transform: scale(1.2);
}

/* Modal Styles */
.modal-banner-image {
  max-height: 60vh;
  object-fit: contain;
}

/* Responsive Adjustments */

/* Tablets */
@media (max-width: 768px) {
  .hero-carousel {
    height: 35vh;
    min-height: 200px;
  }

  .carousel-slide img {
    object-position: center center;
  }

  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel-control.prev {
    left: 1rem;
  }

  .carousel-control.next {
    right: 1rem;
  }

  .carousel-indicators {
    bottom: 1rem;
  }
}

/* Mobile Devices */
@media (max-width: 576px) {
  .hero-carousel {
    height: 30vh; /* Reduced height for better mobile fit */
    min-height: 150px; /* Minimum height to ensure visibility */
    max-height: 2000px; /* Prevent excessive stretching */
    overflow: hidden;
  }

  .carousel-container {
    height: 100%;
  }

  .carousel-slide img {
    object-fit: cover; /* Ensure image covers the area without distortion */
    height: 100%;
    width: 100%;
    object-position: center center; /* Center the image */
  }

  .slide-overlay {
    padding: 0.5rem; /* Reduced padding for smaller screens */
  }

  .carousel-control {
    width: 35px; /* Slightly smaller for mobile */
    height: 35px;
    font-size: 1rem; /* Smaller icons for touch usability */
    background-color: rgba(255, 255, 255, 0.4); /* More opaque for visibility */
  }

  .carousel-control.prev {
    left: 0.5rem; /* Closer to edge for mobile */
  }

  .carousel-control.next {
    right: 0.5rem;
  }

  .carousel-indicators {
    bottom: 0.5rem; /* Closer to bottom for better spacing */
    gap: 0.5rem; /* Smaller gap between indicators */
  }

  .indicator {
    width: 10px; /* Smaller indicators */
    height: 10px;
    border-width: 1.5px; /* Slightly thinner border */
  }

  .indicator.active {
    transform: scale(1.1); /* Slightly smaller scale for active state */
  }

  /* Ensure modal image is responsive on mobile */
  .modal-banner-image {
    max-height: 50vh; /* Reduced height for mobile modals */
    width: 100%;
    object-fit: contain;
  }
}

/* Extra Small Devices (e.g., very small phones) */
@media (max-width: 360px) {
  .hero-carousel {
    height: 20vh; /* Further reduced height */
    min-height: 120px;
  }

  .carousel-control {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .carousel-indicators {
    bottom: 0.3rem;
  }

  .indicator {
    width: 8px;
    height: 8px;
    border-width: 1px;
  }
}







/* Navbar Styles */
.navbar {
  transition: all 0.3s ease;
  padding: 0.8rem 0;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Brand Logo */
.jewelry-logo {
  font-family: 'Playfair Display', serif;
  color: #333;
  position: relative;
}

.jewelry-logo:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #d4af37;
  transition: width 0.3s ease;
}

.navbar-brand:hover .jewelry-logo:after {
  width: 100%;
}

/* Toggler Animation */
.navbar-toggler {
  transition: all 0.3s ease;
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-close {
  display: none;
  font-size: 1.5rem;
}

.navbar-toggler.collapsed .navbar-toggler-icon {
  display: inline-block;
}

.navbar-toggler.collapsed .navbar-toggler-close {
  display: none;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
  display: none;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-close {
  display: inline-block;
}

/* Nav Links */
.nav-link {
  font-weight: 500;
  color: #333;
  padding: 0.5rem 1rem;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: calc(100% - 2rem);
  height: 2px;
  background-color: #d4af37;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
  transform: scaleX(1);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
  border-radius: 0.5rem;
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #d4af37;
  padding-left: 1.75rem;
}

/* Icons */
.icon-hover {
  color: #333;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
}

.icon-hover:hover {
  color: #d4af37;
  background-color: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

.bg-accent {
  background-color: #e91e63 !important;
}

.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* Mobile Menu */
.mobile-tab-container {
  width: 100%;
}

.nav-tabs {
  border-bottom: 1px solid #eee;
}

.nav-tabs .nav-link {
  border: none;
  color: #666;
  font-weight: 500;
  padding: 0.75rem 1rem;
}

.nav-tabs .nav-link.active {
  color: #d4af37;
  background-color: transparent;
  border-bottom: 2px solid #d4af37;
}

.mobile-menu-list {
  border-radius: 0.5rem;
  overflow: hidden;
}

.list-group-item {
  border: none;
  border-bottom: 1px solid #f0f0f0;
  padding: 1rem;
}

.user-info {
  background-color: #f9f9f9;
}

.login-item {
  background-color: #fffaf0;
}

.btn-gold {
  background-color: #d4af37;
  color: white;
  border: none;
}

.btn-gold:hover {
  background-color: #c9a227;
  color: white;
}

.badge-custom {
  background-color: #f0f0f0;
  color: #666;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.menu-item {
  transition: all 0.2s ease;
  cursor: pointer;
}

.menu-item:hover {
  background-color: #f9f9f9;
  padding-left: 1.25rem;
}

.section-title {
  background-color: #f5f5f5;
  font-weight: 600;
}

.social-icon {
  color: #666;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: #d4af37;
  transform: translateY(-3px);
}

/* Category Cards */
.category-card {
  display: block;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-img-container {
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  height: 0;
  padding-bottom: 100%;
  position: relative;
}

.category-img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.category-title {
  font-weight: 500;
  text-align: center;
  padding: 0.25rem 0;
}

/* Search Form */
.search-form .form-control {
  border: 1px solid #ddd;
  min-width: 250px;
}

.search-form .form-control:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.btn-search {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #666;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .navbar-collapse {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-tab-container {
    padding: 0 0.5rem;
  }
}

@media (max-width: 576px) {
  .category-title {
    font-size: 0.875rem;
  }
  
  .list-group-item {
    padding: 0.75rem;
  }
}




/* Budget Section */
.budget-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header__title {
  font-size: 2.25rem;
  color: #333;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-header__title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #d32f2f;
}

.section-header__subtitle {
  font-size: 1rem;
  color: #777;
  max-width: 600px;
  margin: 0 auto;
}

.budget-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .budget-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.budget-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: white;
}

.budget-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.budget-card__content {
  padding: 1.5rem;
  z-index: 2;
  position: relative;
  background: white;
}

.budget-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.budget-card__description {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
}

.budget-card__image {
  position: relative;
  flex-grow: 1;
  min-height: 180px;
}

.budget-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.budget-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.budget-card:hover .budget-card__overlay {
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .budget-section {
    padding: 2.5rem 0;
  }
  
  .section-header__title {
    font-size: 1.75rem;
  }
  
  .budget-card__content {
    padding: 1rem;
  }
  
  .budget-card__title {
    font-size: 1.1rem;
  }
}


/* Gift Section Start*/
  .text-gold {
    color: #d4af37;
  }

  .budget-card {
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, #fff 60%, #fdf6e3);
  }

  .budget-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .budget-card .card-body {
    padding: 2rem 1rem;
    text-align: center;
  }

  @media (max-width: 576px) {
    .budget-card .card-body {
      padding: 1.5rem 1rem;
    }

    .budget-card i {
      font-size: 2rem !important;
    }
  }

  /* Gift Section End */


  /* Promo Design Start */
  .promo-section {
    background: linear-gradient(135deg, #fffaf5, #fef7e5);
    border-top: 1px solid #f0e8d9;
    border-bottom: 1px solid #f0e8d9;
  }

  .promo-text {
    max-width: 700px;
    margin: 0 auto;
  }

  .promo-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    letter-spacing: 1px;
  }

  .promo-heading {
    color: #d4af37;
    text-transform: uppercase;
    font-size: 2.5rem;
  }

  .text-gold {
    color: #d4af37;
  }

  .btn-gold {
    background-color: #d4af37;
    color: #fff;
    border: none;
    border-radius: 30px;
    transition: background-color 0.3s ease;
  }

  .btn-gold:hover {
    background-color: #c19b2c;
    color: #fff;
  }

  @media (max-width: 576px) {
    .promo-heading {
      font-size: 1.8rem;
    }
    .promo-description {
      font-size: 0.95rem;
    }
  }

  /* Promo Design End */


  /* Product Design Start */
/* Product Grid Section */
.bg-light {
  background-color: #f8f9fa !important;
}

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

.product-actions {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
  opacity: 1;
}

.product-actions button {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.product-actions button:hover {
  background-color: #f8f9fa;
}

.btn-gradient {
  background: linear-gradient(135deg, #f06292, #f8bbd0); /* Two elegant pink shades */
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  padding: 8px 16px;
  box-shadow: 0 4px 12px rgba(240, 98, 146, 0.3);
  font-size: 1rem; /* Default font size */
  line-height: 1.5; /* Ensure proper text alignment */
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #ec407a, #f48fb1); /* Slightly deeper pinks on hover */
  box-shadow: 0 6px 20px rgba(240, 98, 146, 0.4);
  transform: translateY(-1px);
}

#viewAllBtn {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#viewAllBtn:hover {
  background-color: #333;
  transform: scale(1.05);
}

/* Responsive Adjustments */

/* Large Devices (Desktops, ≥992px) */
@media (min-width: 992px) {
  .product-card {
    margin-bottom: 1.5rem;
  }

  .card-img-top {
    height: 220px;
  }

  .card-body {
    padding: 1.25rem;
  }

  .product-actions button {
    width: 40px;
    height: 40px;
  }

  .btn-gradient {
    padding: 10px 16px;
    font-size: 1rem;
  }

  #viewAllBtn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }
}

/* Medium Devices (Tablets, ≤991px) */
@media (max-width: 991px) {
  .col-md-4 {
    margin-bottom: 1.5rem;
  }

  .card-img-top {
    height: 180px;
  }

  .card-body {
    padding: 1rem;
  }

  .product-actions button {
    width: 32px;
    height: 32px;
  }

  .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .btn-gradient {
    padding: 2px 5px; /* Slightly smaller padding */
    font-size: 0.8rem; /* Slightly smaller font */
  }

  #viewAllBtn {
    padding: 0.6rem 1.75rem;
    font-size: 0.95rem;
  }
}

/* Small Devices (Mobile, ≤576px) */
@media (max-width: 576px) {
  .col-6 {
    margin-bottom: 1.25rem;
  }

  .card-img-top {
    height: 150px;
  }

  .card-body {
    padding: 0.75rem;
  }

  .card-body h6 {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .card-body p {
    font-size: 0.85rem;
  }

  .product-actions {
    opacity: 1; /* Always visible on mobile */
  }

  .product-actions button {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  .btn-gradient {
    padding: 6px 12px; /* Smaller padding for mobile */
    font-size: 0.85rem; /* Smaller font size */
    box-shadow: 0 3px 8px rgba(240, 98, 146, 0.2); /* Lighter shadow */
  }

  .btn-gradient:hover {
    box-shadow: 0 4px 12px rgba(240, 98, 146, 0.3); /* Slightly lighter hover shadow */
    transform: translateY(-1px);
  }

  #viewAllBtn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Extra Small Devices (Very Small Phones, ≤360px) */
@media (max-width: 360px) {
  .card-img-top {
    height: 130px;
  }

  .card-body {
    padding: 0.5rem;
  }

  .card-body h6 {
    font-size: 0.85rem;
  }

  .card-body p {
    font-size: 0.8rem;
  }

  .product-actions button {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }

  .btn-gradient {
    padding: 5px 10px; /* Minimal padding */
    font-size: 0.8rem; /* Minimal font size */
    box-shadow: 0 2px 6px rgba(240, 98, 146, 0.2);
  }

  .btn-gradient:hover {
    box-shadow: 0 3px 8px rgba(240, 98, 146, 0.3);
    transform: translateY(-1px);
  }

  #viewAllBtn {
    padding: 0.4rem 1.25rem;
    font-size: 0.85rem;
  }
}

  
.btn-gradient {
  background: linear-gradient(135deg, #f06292, #f8bbd0); /* Two elegant pink shades */
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  padding: 10px 16px;
  box-shadow: 0 4px 12px rgba(240, 98, 146, 0.3);
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #ec407a, #f48fb1); /* Slightly deeper pinks on hover */
  box-shadow: 0 6px 20px rgba(240, 98, 146, 0.4);
  transform: translateY(-1px);
}


    .cart-overlay {
      position: fixed;
      top: 20px;
      right: 20px;
      background: #fff;
      color: #333;
      padding: 12px 20px;
      border-radius: 10px;
      box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
      z-index: 2000;
      font-weight: 600;
      animation: fadeInOut 1s ease-out forwards;
      pointer-events: none;
    }

    @keyframes fadeInOut {
      0% {
        opacity: 0;
        transform: translateY(-10px);
      }
      20% {
        opacity: 1;
        transform: translateY(0);
      }
      80% {
        opacity: 1;
      }
      100% {
        opacity: 0;
        transform: translateY(-10px);
      }
    }
  /* Product Design End */