/* Add this style to change the color of the icon for products in the wishlist */
svg.wishlist path {
  fill: #FF826B; /* Peach */
}

svg.nowishlist path {
  fill: currentColor; /* Inherit color, usually black or whatever the parent defines */
}


.add-to-cart-icon:hover svg {
	color: #FF826B;
	fill: #FF826B;
  }

.favorite-icon:hover .wishlist-button svg path {
	fill: #FF826B;
}
  

.product-listing-section {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

.listing-wishlist {
	position: inherit;
}

.icon-container {
	position: relative;
	display: inline-flex;
	/* Display icons in a row */
	align-items: center;
	/* Vertically center icons */
	cursor: pointer;
	/* Change cursor to pointer */
}

/* Container for the filter chips */
#active-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 5px;
}

/* The Peach Filter Chip */
.filter-chip {
    display: inline-flex;
    align-items: center;     
    border: 1px solid #000;  
    color: #000;         
    border-radius: 50px;        /* Pill shape */
    padding: 6px 14px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Subtle shadow for depth */
}



/* Text inside the chip */
.filter-chip span {
    margin-right: 10px;
    font-weight: 600; /* Slightly bolder to stand out on color */
}

/* The 'X' button inside the chip */
.filter-chip .close-filter {
    cursor: pointer;
    font-size: 14px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.2s;
}
 
.filter-chip .close-filter:hover {
    color: #fff;
    background-color: #ff8a65; 
}

/* Clear All Button */
.clear-all-btn {
    background: transparent;
    border: none;
    text-decoration: underline;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    padding: 6px;
    margin-left: 5px;
    font-weight: 500;
}

.clear-all-btn:hover {
    color: #ff8a65;
}

.social-icons {
  position: absolute;
  top: 95%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  display: flex;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 10px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* important for Safari */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: all 0.35s ease;
  z-index: 10;
}

@media (hover: hover) and (pointer: fine) {
    .icon-container:hover .social-icons,
    .share-wrapper:hover .social-icons {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px); /* Uses the smoother transform from the gap-fix */
        pointer-events: auto;
    }

    /* This handles the case where the popup is aligned to the right */
    .icon-container:hover .social-icons.position-left,
    .share-wrapper:hover .social-icons.position-left {
        transform: translateX(0) translateY(-5px);
    }
}

/* Use this class when the button is too close to the TOP of the screen */
.social-icons.position-above {
  top: auto;
  bottom: 110%;
}



/* Use this class when the button is too close to the RIGHT of the screen */
.social-icons.position-left {
  left: auto;
  right: 0;
}


.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  /* background: rgba(255, 255, 255, 0.3); */
  /* box-shadow: 0 4px 10px rgba(0,0,0,0.12); */
  transform: scale(0.8);
  transition: transform 0.3s ease, background 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.15);
  /* background: rgba(255, 255, 255, 0.6); */
}

/* Styling for the range input */
.range-input {
	position: relative;
	width: 100%;
}

.range-input input[type="range"] {
	position: absolute;
	top: -5px;
	background: none;
	pointer-events: none;
	width: 100%;
	height: 20px;
	-webkit-appearance: none;
	-moz-appearance: none;
	margin: 10px 0;
}

.range-input input[type="range"]::-webkit-slider-runnable-track {
	width: 100%;
	height: 4px;
	background: #ccc;
	border: none;
	border-radius: 5px;
	position: relative;
}

.range-input input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	height: 20px;
	width: 15px;
	background: #000;
	border-radius: 20%;
	cursor: grab;
	margin-top: -8px;
	pointer-events: auto;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
	position: relative;
	z-index: 4;
}

input[type="range"]::-moz-range-thumb {
	-moz-appearance: none;
	height: 20px;
	width: 15px;
	border: none;
	border-radius: 20%;
	margin-top: -8px;
	background: #000;
	pointer-events: auto;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
	position: relative;
	z-index: 4;
}

/* Styling for the scale marks */
.range-input .scale {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	position: relative;
}

.range-input .scale-mark {
	width: 2px;
	height: 10px;
	background: #ccc;
	position: absolute;
	top: -6px;
}

.range-selected {
	margin-top: 13px;
	width: 100%;
	height: 4px;
	left: 0%;
	border-radius: 4px;
	background: #000;
	position: absolute;
	z-index: 2;
	top: 0;
}

.filter-sel-body {
	padding: 1rem;
}

/* mobile screens */
@media (min-width:0) and (max-width:575px) {
	.filter-sel-body {
		padding: 0.5rem;
	}
}

@media (min-width:0) and (max-width:767px) {
	.product-listing-section {
		padding-top: 0px;
	}
}

/* On small screens, align based on position */
@media (max-width: 575px) {
 .icon-container.align-right .social-icons {
    left: auto;
    right: 0;
    transform: translateY(10px);
  }
}

/* --- CORRECTED SHARE BUTTON ENHANCEMENTS --- */

/* This rule targets devices with a primary pointer (a mouse), i.e., desktops,
   and HIDES any element with the class "desktop-only". */
/* Hide the desktop-specific 'More options' button by default */
.show-on-desktop {
    display: none !important;
}

/* ONLY on devices with a mouse, show the 'More options' button */
@media (hover: hover) and (pointer: fine) {
    .show-on-desktop {
        display: flex !important;
    }
}

/* Make the social icons popup appear slightly higher to prevent the gap issue */
.icon-container .social-icons,
.share-wrapper .social-icons {
  top: 110%;
  transform: translateX(-50%) translateY(-10px);
}

.icon-container:hover .social-icons,
.share-wrapper:hover .social-icons {
  transform: translateX(-50%) translateY(-5px);
}

/* Adjust image sizes in the popup if needed */
.social-icons a img {
    height: 60%;
    width: auto;
}
.social-icons .share-whatsapp img {
    height: 90%; 
    width: 90%;
}
.social-icons .share-copy-link img {
    height: 75%; 
    width: 75%;
}
.social-icons .share-native img {
    height: 80%; 
    width: 80%;
}
