.swizzle-variant-product-link-wrapper {
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  > span {
    margin-bottom: 6px;
    font-weight: 700;
  }
}

.swizzle-variant-product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px 12px 12px;
  background: transparent;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 400;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  outline: none;
  border: 1px solid #000;
  position: relative;
  line-height: 1.5;
}

.swizzle-variant-product-link:after {
  content: "";
  width: 18px;
  height: 18px;
  background-image: url("../images/chevron.png");
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  right: 12px;
}

.logged-in .swizzle-variant-product-panel {
  top: 33px;
}

/* Slide Panel - Mini Cart Style */
.swizzle-variant-product-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  z-index: 999999;
  transition: right 0.3s ease;
   pointer-events: none;
}

.swizzle-variant-product-panel.active {
  right: 0;
  pointer-events: auto;
}

.swizzle-variant-product-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.swizzle-variant-product-panel.active .swizzle-variant-product-overlay {
  opacity: 1;
  pointer-events: auto;
}

.swizzle-variant-product-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 90%;
  max-width: 450px;
  height: 100%;
  background: #f6f7f7;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.swizzle-variant-product-panel.active .swizzle-variant-product-content {
  transform: translateX(0);
}

@media (max-width: 921px) {
  
  .swizzle-variant-product-link-wrapper{
    margin-bottom: 1em !important;
  }

  .logged-in .swizzle-variant-product-panel {
    top: 0;
  }
  .swizzle-variant-product-panel {
    top: 0;
    left: 0;
    right: auto;
    bottom: -100%;
    width: 100%;
    height: 100%;
    transition: bottom 0.3s ease;
  }

  .swizzle-variant-product-panel.active {
    bottom: 0;
    right: auto;
  }

  .swizzle-variant-product-content {
    top: auto;
    left: 0;
    right: auto;
    bottom: 0;
    width: 100%;
    height: 70%;
    max-width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .swizzle-variant-product-panel.active .swizzle-variant-product-content {
    transform: translateY(0);
  }

  .swizzle-variant-product-header{
    padding-bottom: 0;
  }

  .swizzle-variant-product-close{
    top: 19px;
  }

  .swizzle-variant-product-body-select-count{
    display: none !important;
  }
}

.swizzle-variant-product-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: unset;
  padding: 0;
}

.swizzle-variant-product-close:hover {
  background: none;
  color: #000;
}

/* Prevent body scroll when panel is open */
body.swizzle-variant-product-open {
  overflow: hidden;
}

/* Loader */
.swizzle-variant-product-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.swizzle-variant-product-loader .spinner {
  display: inline-block;
  width: 35px;
  height: 35px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0066cc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.swizzle-variant-product-header {
  /* padding: 20px; */
  /* border-bottom: 1px solid #e0e0e0; */

  padding-bottom: 50px;
  background-color: #fff;
}

.swizzle-variant-product-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.swizzle-variant-product-body {
  flex: 1;
  overflow-y: auto;
  background-color: #fff;
}

.swizzle-variant-product-body-select-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid #dddddd;

  > span {
    font-weight: 700;
    font-size: 18px;
  }
}

.swizzle-variant-product-body-select-count {
  color: #7c7c7c;
}

/* Product List - Mini Cart Style */
.swizzle-variant-product-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.swizzle-variant-product-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  position: relative;
}

.swizzle-variant-product-item.selected {
  border: 1px solid #000;
  margin: 10px;
  border-radius: 5px;
  background: #f6f7f7;
  padding-right: 40px;
}

.swizzle-variant-product-item.selected:after {
  /* content: '\f00c'; */
  /* content: '✓'; */
  /* font-family: 'Font Awesome 5 Free'; */
  /* color: #000; */
  /* font-size: 16px; */
  /* font-weight: 900; */
  content: "";
  width: 18px;
  height: 18px;
  background-image: url("../images/check.png");
  background-repeat: no-repeat;
  background-size: contain;
  filter: brightness(0);
  position: absolute;
  right: 25px;
}

.swizzle-variant-product-item:hover {
  background-color: #f6f7f7;
}

.swizzle-variant-product-image {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 8px;
  background: #f6f7f7;
  border: 1px solid #eeeeee;
}

.swizzle-variant-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.swizzle-variant-product-details {
  flex: 1;
  min-width: 0;
}

.swizzle-variant-product-title {
  margin: 0;
  font-size: 16px;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
}

.swizzle-variant-product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Quantity Controls */
.swizzle-variant-product-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.swizzle-variant-product-quantity button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swizzle-variant-product-quantity button:hover {
  background: #f5f5f5;
  border-color: #0066cc;
}

.swizzle-variant-product-quantity button img {
  width: 16px;
  height: 16px;
  display: block;
}

.swizzle-variant-product-quantity .quantity-input {
  width: 50px;
  height: 32px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  -moz-appearance: textfield;
}

.swizzle-variant-product-quantity .quantity-input::-webkit-outer-spin-button,
.swizzle-variant-product-quantity .quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.swizzle-variant-product-quantity .quantity-input:focus {
  outline: none;
  border-color: #0066cc;
}

/* Footer with Add to Cart Button */
.swizzle-variant-product-footer {
  padding: 20px 30px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
  margin-top: auto;
}

.swizzle-variant-product-add-to-cart {
  width: 100%;
  padding: 15px 20px;
  background: #0066cc;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.swizzle-variant-product-add-to-cart:hover {
  background: #0052a3;
}

.swizzle-variant-product-add-to-cart:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Success Message */
.swizzle-variant-product-message {
  padding: 15px 30px;
  background: #d4edda;
  color: #155724;
  border-bottom: 1px solid #c3e6cb;
  display: none;
}

.swizzle-variant-product-message.show {
  display: block;
}

.swizzle-variant-product-message.error {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.swizzle-variant-product-error {
  display: flex;
  height: 60vh;
  justify-content: center;
  align-items: center;
  margin: 0;
}

/* Responsive */
/* @media (max-width: 768px) {
    .swizzle-variant-product-content {
        width: 100%;
        max-width: 100%;
    }

    .swizzle-variant-product-header,
    .swizzle-variant-product-body {
        padding: 20px;
    }

    .swizzle-variant-product-footer {
        padding: 15px 20px;
    }

    .swizzle-variant-product-header h3 {
        font-size: 20px;
    }

    .swizzle-variant-product-item {
        gap: 12px;
        padding: 15px 0;
    }

    .swizzle-variant-product-image {
        width: 70px;
        height: 70px;
    }

    .swizzle-variant-product-title {
        font-size: 13px;
    }

    .swizzle-variant-product-price {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .swizzle-variant-product-item {
        gap: 10px;
    }

    .swizzle-variant-product-image {
        width: 60px;
        height: 60px;
    }

    .swizzle-variant-product-quantity .quantity-input {
        width: 45px;
    }
} */
