.wedding-gowns-header {
  font-size: 2rem;
  font-weight: bold;
  position: fixed;
  top: 120px;
  left: 0;
  right: 0;
  padding: 15px 20px;
  background-color: transparent;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: none;
}

.wedding-gowns-header.transparent {
  background-color: transparent;
  color: white;
}

/* Update the #content style */
#content {
  padding-top: 100px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.product-name {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 1rem;
  text-transform: lowercase;
  margin: 5px 0;
}

/* Add this new style for first letter capitalization */
.product-name::first-letter,
.product-name span::first-letter {
  text-transform: uppercase;
}

.product-description {
  font-family: 'Calibri', sans-serif;
  font-size: 0.8rem;
  display: none;
  width: 100%;
  min-width: 200px;
  max-width: 300px;
  background-color: rgba(255, 255, 255, 0.98);
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  text-align: center;
}

.description-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
}

.product-info p {
  font-size: 0.7rem;  /* Reduced from default size */
  margin: 5px 0;
  text-align: center;
}

/* Update the product-info class */
.product-info {
  position: relative;
  padding: 5px;
  margin-bottom: 5px;
  text-align: center;
}

/* Update the hover effect styles */
.product-header:hover + .product-description,
.product-header:hover + .description-overlay,
.product-description:hover,
.description-overlay:hover + .product-description {
  display: block;
}

/* Updated gown-box styles */
.gown-box {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 20px;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
  aspect-ratio: 2/3; /* Add aspect ratio to maintain consistent proportions */
}

.carousel {
  width: 100%;
  height: 100%; /* Changed from fixed height to 100% */
  overflow: hidden;
  padding-top: 0; /* Remove padding */
  position: relative;
  aspect-ratio: 2/3; /* Match gown-box aspect ratio */
}

.carousel-inner, .carousel-item {
  height: 100%;
  width: 100%;
  background-color: white;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Changed from contain to cover */
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 5s ease-in-out;
}

.carousel:hover .carousel-item img {
  transform: scale(1.05); /* Reduced scale effect */
}

/* Add padding to the product info */
.product-info {
  padding: 5px;
  margin-bottom: 5px;
}

.carousel-item a {
  cursor: pointer;
}

/* Add this new style for product detail padding */
.product-detail {
  padding-top: 150px;
  margin-top: 20px;
}

/* Add these new styles in the style block */
.product-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wishlist-icon {
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 0.8rem;
}

.wishlist-icon:hover {
  color: #ff4d4d;
}

.wishlist-icon.active {
  color: #ff4d4d;
}

/* Add these new styles for the sort dropdown */
.nav-sort {
  margin-right: 20px;
}

.caret-icon {
  cursor: pointer;
  padding: 8px 12px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-family: 'Calibri', sans-serif;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.caret-icon::after {
  content: '▼';
  display: inline-block;
  font-size: 0.8em;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

/* Add this new style for active state */
.caret-icon.active::after {
  transform: rotate(180deg);
}

.sort-dropdown {
  position: fixed;
  right: -300px;
  top: 0;
  width: 300px;
  height: 100vh;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  z-index: 1001;
  transition: right 0.5s ease;
  padding-top: 160px;
  display: block;
  opacity: 1;
  transform: none;
}

.sort-dropdown.show {
  right: 0;
}

.sort-option {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: 'Calibri', sans-serif;
  font-size: 1.1rem;
  font-weight: normal;
}

.sort-option:hover {
  background-color: #f5f5f5;
}

.sort-option:active {
  background-color: #e9e9e9;
}

.nav-filter {
  margin-left: 20px;
}

.filter-icon {
  cursor: pointer;
  padding: 8px 12px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-family: 'Calibri', sans-serif;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-sidebar {
  position: fixed;
  left: -300px;
  top: 0;
  width: 300px;
  height: 100vh;
  background-color: white;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  z-index: 1010;
  transition: left 0.3s ease;
  padding-top: 160px;
  overflow-y: auto;
  display: block;
}

.filter-sidebar.show {
  left: 0;
  display: block;
}

.filter-content {
  padding: 20px;
}

.filter-section {
  margin-bottom: 20px;
}

.filter-section h5 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
  margin: 0;
  border-bottom: 1px solid #eee;
  font-weight: normal;
  font-size: 0.9rem;
}

.filter-section h5::after {
  content: '▼';
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.filter-section h5.collapsed::after {
  transform: rotate(-90deg);
}

.filter-options {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;
}

.filter-options.show {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px 0;
}

/* Add scrollbar styling */
.filter-options::-webkit-scrollbar {
  width: 6px;
}

.filter-options::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.filter-options::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Add transition to the content container */
#content {
  transition: margin-left 0.3s ease;
}

#content.shifted {
  margin-left: 300px;
}

/* Add transition to the content container for sort sidebar */
#content.shifted-right {
  margin-right: 300px;
}

/* Add these new styles for the price range slider */
.price-range-slider {
  padding: 15px 10px;
}

.range-slider {
  width: 100%;
  position: relative;
  margin: 15px 0 25px;
}

.range-values {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: #ddd;
  outline: none;
  position: absolute;
  pointer-events: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #333;
  cursor: pointer;
  pointer-events: auto;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #333;
  cursor: pointer;
  pointer-events: auto;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.slider-track {
  width: 100%;
  height: 2px;
  position: absolute;
  background: #333;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Remove these styles that cause the fading effect */
.product-container:not(.active) {
  opacity: 0.7;
  filter: blur(1px);
}

.product-container.fade {
  opacity: 0.3;
  filter: blur(2px);
}

/* Update the product-container styles to only include necessary effects */
.product-container {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  background: white;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-container:hover {
  z-index: 1001;
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Add responsive adjustments */
@media (max-width: 768px) {
  #content {
    padding-top: 200px;
  }
  
  .wedding-gowns-header {
    top: 100px;
  }

  .carousel {
    height: 300px; /* Smaller height on mobile */
  }
}

@media (max-width: 576px) {
  .carousel {
    height: 250px; /* Even smaller height on very small screens */
  }
}

.badge-animation {
  animation: badgePulse 0.5s ease;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

#toast-container .toast {
  min-width: 200px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Add overlay for filter sidebar */
.filter-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1009;
}

.filter-overlay.show {
  display: block;
}

/* Add a close button to the filter sidebar */
.filter-close {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Add checkbox styles */
.filter-options label {
  display: block;
  padding: 4px 0;
  margin: 0;
  cursor: pointer;
}

.filter-options input[type="checkbox"] {
  margin-right: 8px;
}

/* Add these new styles for color swatches */
.color-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: inline-block;
}

/* Update color filter styles */
.color-filter-label {
  display: flex !important;
  align-items: center;
  padding: 4px 0;
  margin: 0;
  cursor: pointer;
}

.color-filter-label input[type="checkbox"] {
  margin-right: 8px;
}

.color-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #ddd;
}

.color-name {
  font-size: 0.9rem;
}

/* Update these carousel fade styles */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block !important;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
  z-index: 1;
}

/* Remove these classes as they're no longer needed */
.carousel-fade .carousel-item.fade-in,
.carousel-fade .carousel-item.fade-out {
  opacity: 0;
}

/* Ensure images fill the carousel properly */
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-in-out;  /* Added smooth transform transition */
}

/* Hide carousel controls for smoother experience */
.carousel-control-prev,
.carousel-control-next {
  display: none;
}
