#snip-share-wishlist {
    margin: 10px;
    padding: 8px 12px;
    background-color: #3498db;
    color: #fff;
    border: none;
    cursor: pointer;
}


.add-to-wishlist {
    display: flex;
    width: 100%;
    margin: 5px;
    height: auto;
    gap: 2em;
    margin-bottom: 100px;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
    width: 50%;
}

#product-search {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.dropdown-list {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    display: none; /* Hidden by default */
}

.dropdown-item {
    padding: 8px;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f0f0f0;
}

.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    font-size: 17px;
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
  }
  
  .toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
  }


  #share-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  #share-popup .popup-content {
    background: #fff;
    padding: 20px;
    max-width: 400px;
    width: 80%;
    position: relative;
    border-radius: 5px;
    margin: 0 auto;
    top: 30%;
  }
  
  #share-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .share-btn, #copy-link-btn {
    padding: 10px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
  }
  
  .share-btn:hover, #copy-link-btn:hover {
    background-color: #0056b3;
  }
  #share-popup .close-btn  {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
  }

  /* Loader styles */
.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -30px; /* Center the loader */
    z-index: 1100; /* Make sure it's above other elements */
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  