.variation-popup {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

@media screen and (max-width: 1024px) {
  .mobile-variation-popups-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
  }

  .mobile-variation-popups-container .variation-popup {
    position: fixed;
    bottom: 50%;
    left: 0;
    width: 100%;
    background: #fff;
  }
}

.variation-popup-content {
  position: relative;
  background-color: white;
}

.close-popup {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
}

/* Swatch Styles */
.swatch-label {
  display: block;
}

.swatch-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch-item {
  cursor: pointer;
  transition: all 0.3s ease;
}

.swatch-item.selected {
  border-color: #333;
}

/* Color swatch specific styles */
.color-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  position: relative;
}

.color-swatch.selected::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

/* Text swatch specific styles */

.text-swatch {
  width: 1.5rem;
  height: 1.5rem;
}

.text-swatch.selected {
  background-color: #0b0a0a;
  color: #fff;
  border-radius: 50%;
}

.add-variation-to-cart {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 15px;
  width: 100%;
  transition: background-color 0.3s;
}

.add-variation-to-cart:hover {
  background-color: #555;
}

/* Disabled state */
.swatch-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
}

.swatch-item.disabled::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  right: -5px;
  height: 2px;
  background-color: #ff0000;
  transform: rotate(-45deg);
}

.product-add-to-cart-link {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.product-add-to-cart-link.expanded {
  width: 60%;
  border-radius: 0;
}

.product-add-to-cart-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 100%;
  border: none;
  background-color: #333;
  color: white;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

.product-add-to-cart-btn i {
  margin-left: 10px;
}

.product-add-to-cart-link.expanded .product-add-to-cart-btn {
  opacity: 1;
}

.product-add-to-cart-btn:hover {
  background-color: #555;
}

.hidden {
  display: none;
}

/* Product Gallery Swiper Styles */
.product-thumbnail-wrapper {
  margin: 15px 0;
  position: relative;
  width: 100%;
}

.product-thumbnail-swiper {
  margin: 0 auto;
}

.product-thumbnail-swiper .swiper-slide {
  display: flex;
}

.product-thumbnail-swiper .product {
  width: 100%;
}

/* navigation buttons */
.product-thumbnail-next,
.product-thumbnail-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.product-thumbnail-next {
  right: 0;
}

.product-thumbnail-prev {
  left: 0;
}

.product-thumbnail-next:after,
.product-thumbnail-prev:after {
  font-family: "swiper-icons";
  font-size: 20px;
  font-weight: bold;
  text-transform: none !important;
  letter-spacing: 0;
  font-variant: initial;
  line-height: 1;
}

.product-thumbnail-next:after {
  content: "next";
}

.product-thumbnail-prev:after {
  content: "prev";
}

.product-thumbnail-next:hover,
.product-thumbnail-prev:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.product-thumbnail-next.swiper-button-disabled,
.product-thumbnail-prev.swiper-button-disabled {
  opacity: 0;
  cursor: auto;
  pointer-events: none;
}

/* Show arrows on hover */
.product-thumbnail-wrapper .product-thumbnail-next,
.product-thumbnail-wrapper .product-thumbnail-prev {
  opacity: 0;
  transform: translateY(-50%) scale(0.8);
}

.product-thumbnail-wrapper:hover .product-thumbnail-next,
.product-thumbnail-wrapper:hover .product-thumbnail-prev {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Mobile specific styles */
@media screen and (max-width: 767px) {
  .product-add-to-cart-link.mobile-view {
    display: none;
  }

  .mobile-add-to-cart-wrapper {
    padding: 15px;
    background: #fff;
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  .product-add-to-cart-btn.mobile-btn {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 4px;
    margin: 0;
    position: relative;
    opacity: 1;
  }

  .product-add-to-cart-btn.mobile-btn.hidden {
    display: none;
  }
}
