#variantSidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #ffffff;
  transition: right 0.3s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #eaeaea;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.08);
}

#variantSidebar.open {
  right: 0;
}

#sidebarOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
#sidebarOverlay.show {
  opacity: 1;
  visibility: visible;
}

.vs-header {
  padding: .8rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vs-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.vs-close {
  font-size: 1.25rem;
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  transition: color 0.2s ease;
}
.vs-close:hover {
  color: #000;
}

.vs-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1rem 1rem;
}

.vs-main-image {
    text-align: center;
    margin-bottom: 1.25rem;
    align-items: center;
    justify-content: center;
    display: flex;

}
.vs-main-image img {
  max-width: 90%;
  height: 350px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#vsThumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  align-items: center;
  justify-content: center;
}
#vsThumbs img.vs-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}
#vsThumbs img.vs-thumb.selected {
  border-color: #000;
}

.vs-selectors .vs-group {
  margin-bottom: 1.25rem;
}
.vs-selectors label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  display: block;
  color: #333;
}

.vs-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.vs-options button {
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.88rem;
  background: #f4f4f4;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.vs-options button.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.vs-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.vs-qty-controls button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 1.1rem;
  border: 1px solid #ccc;
  background: #f4f4f4;
  cursor: pointer;
}
.vs-qty-controls input {
  width: 50px;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
  font-size: 1rem;
}

.vs-add-btn {
  display: inline-block;
  width: 100%;
  padding: .5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background-color: #000;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
}
.vs-add-btn:hover {
  background-color: #000;
}

.vs-actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 20px;
  padding-block: 20px;
  margin-bottom: 4px;
}

.vs-actions > *{
  cursor: pointer;
}

@media (max-width: 576px) {
  #variantSidebar {
    max-width: 100%;
  }
  #vsThumbs img.vs-thumb {
    width: 52px;
    height: 52px;
  }
}

.vs-wishlist-btn {
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-wishlist-btn svg {
  width: 24px;
  height: 24px;
}

.vs-wishlist-btn.pulse-continuous svg {
  animation: vsPulseLoop 1.5s infinite ease-in-out;
}

.vs-wishlist-btn.pulse-once svg {
  animation: vsPulseOnce 0.5s ease-in-out;
}

@keyframes vsPulseOnce {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@keyframes vsPulseLoop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.vs-wishlist-btn.active svg path {
  fill: #e63946 !important;
  stroke: #e63946 !important;
}


.wishlist-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.wishlist-modal-actions button {
  margin: 0 0.5rem;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
}

.hidden {
  display: none;
}



.whishlist.pulse-continuous svg {
  animation: wishlistPulse 1.5s infinite ease-in-out;
}

@keyframes wishlistPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.wishlist-confirm-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.wishlist-modal-actions button {
  margin: 0 10px;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
}

.hidden {
  display: none !important;
}
