/* Struktura zestawu */
.wc-product-bundle .zestaw {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 4em;
}

.wc-product-bundle .product-bundle-items {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 70%;
}

/* Karty produktów */
.wc-product-bundle .product-card {
  display: flex;
  flex-direction: column;
  gap: 1em;
  position: relative;
  flex: 0 0 calc(40% - 30px);
  margin-bottom: 20px;
}

.wc-product-bundle .product-card .product-link {
  display: flex;
  flex-direction: column;
  gap: 1em;
  text-decoration: none;
}

.wc-product-bundle .product-card .product-image {
  border-radius: 25px;
  overflow: hidden;
}

.wc-product-bundle .product-card .product-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.wc-product-bundle .product-card .product-information {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

/* Przyciski i ikony */
.wc-product-bundle .product-card .fav-icon {
  position: absolute;
  top: 1.5em;
  right: 0.5em;
  z-index: 10;
}

.wc-product-bundle .product-card .fav-button {
  background: transparent;
  border: none;
  padding: 0.5em 1em;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.wc-product-bundle .product-card .fav-button img {
  width: 30px;
  height: 30px;
  display: block;
  pointer-events: none;
  transition: all 0.3s ease;
}

.wc-product-bundle .product-card .fav-button.active img {
  content: url("../images/fav-filled.svg");
}

/* Odznaki produktów */
.wc-product-bundle .product-card .product-badges {
  position: absolute;
  top: 1.5em;
  left: 1.5em;
  padding: 0.5em 1em;
  background-color: white;
  border-radius: 10px;
}

.wc-product-bundle .product-card .badge {
  font-weight: 600;
  color: #1e1e1e;
}

/* Informacje o produktach */
.wc-product-bundle .product-card .product-title {
  font-size: 1.5em;
  font-weight: 500;
  color: #1e1e1e;
  margin: 0;
}

.wc-product-bundle .product-card .product-short-description {
  color: #666;
  margin: 0;
}

/* Poziom trudności */
.wc-product-bundle .product-card .product-difficulty {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.wc-product-bundle .product-card .difficulty-dots {
  display: flex;
  gap: 0.5em;
}

.wc-product-bundle .product-card .difficulty-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: #e0e0e0;
  transition: background-color 0.3s ease;
}

.wc-product-bundle .product-card .difficulty-dot.active {
  background-color: #4caf50;
}

.wc-product-bundle .product-card .difficulty-label {
  color: #666;
  padding-right: 0.5em;
}

/* Przyciski akcji */
.wc-product-bundle .product-card .product-info-bottom {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.wc-product-bundle .product-card .action-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
  padding-top: 1em;
}

.wc-product-bundle .product-card .action-buttons .main-button-secondary {
  display: inline-block;
  padding: 1em 2em;
  color: #ffffff;
  background-color: #6ba505;
  border-radius: 35px;
  transition: transform 0.3s ease;
  font-size: 1em;
  cursor: pointer;
  border: 0;
}

.wc-product-bundle .product-card .action-buttons .main-button-secondary:hover {
  color: #ffffff;
  transform: translateY(-5px);
}

/* Znak plus między produktami */
.wc-product-bundle .bundle-plus-sign {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  font-size: 100px;
  font-weight: 200;
  color: black;
}

/* Podsumowanie zestawu */
.wc-product-bundle .bundle-summary {
  width: 30%;
  background-color: #f5f5f5;
  padding: 2em;
  border-radius: 25px;
}

.wc-product-bundle .bundle-info {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.wc-product-bundle .bundle-info h2 {
  margin: 0 0 15px;
  font-size: 28px;
  font-weight: 700;
  color: #1e1e1e;
}

.wc-product-bundle .bundle-info p {
  margin: 0 0 20px;
  font-size: 1em;
  color: #666;
  line-height: 1.6;
}

/* Informacje o cenie */
.wc-product-bundle .price-label {
  font-size: 1em;
  color: #1e1e1e;
  margin-bottom: 5px;
}

.wc-product-bundle .bundle-price span {
  font-size: 2rem;
  font-weight: 600;
  font-family: "Playfair Display", serif;
  color: #1e1e1e;
}

.wc-product-bundle .lowest-price {
  font-size: 12px;
  color: #777;
}

/* Przyciski formularza */
.bundle-cart-form {
  display: flex;
  flex-direction: row;
  gap: 1em;
  flex-wrap: wrap;
}

.wc-product-bundle .quantity-buttons {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 35px;
  padding: 0.3em 0.5em;
}

.wc-product-bundle .custom-minus-btn,
.wc-product-bundle .custom-plus-btn {
  background: transparent;
  border-radius: 50%;
  border: none;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 400;
  transition: background-color 0.3s ease;
}

.wc-product-bundle .qty {
  width: 40px;
  text-align: center;
  border: none;
  padding: 0.75rem 0;
  font-size: 1rem;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
  background-color: #f5f5f5;
}

.wc-product-bundle .qty::-webkit-inner-spin-button,
.wc-product-bundle .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wc-product-bundle .bundle-add-to-cart-button,
.wc-product-bundle .main-button-primary {
  display: inline-block;
  padding: 1em 2em;
  color: #ffffff;
  background-color: #ff8900;
  border-radius: 35px;
  transition: transform 0.3s ease;
  font-size: 1em;
  cursor: pointer;
  border: 0;
}

.wc-product-bundle .bundle-add-to-cart-button:hover,
.wc-product-bundle .main-button-primary:hover {
  color: #ffffff;
  transform: translateY(-5px);
}

/* Modalne okno wyboru wariantów */

.select-variation-btn {
  display: inline-block;
  padding: 1em 2em;
  color: #ffffff;
  background-color: #ff8900;
  border-radius: 35px;
  transition: transform 0.3s ease;
  font-size: 1em;
  cursor: pointer;
  border: 0;
}

.select-variation-btn:hover {
  color: #ffffff;
  transform: translateY(-5px);
}

.variation-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.variation-modal-content {
  position: relative;
  background-color: #fff;
  border-radius: 15px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  max-height: 90vh;
}

.variation-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: 200;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;
}

.variation-modal-close:hover {
  color: #333;
}

.variation-modal-title {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 600;
  color: #1e1e1e;
  padding-right: 30px;
}

.variation-modal-image {
  text-align: center;
  margin-bottom: 20px;
}

.variation-modal-image img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 10px;
  object-fit: contain;
}

.variation-modal-attributes {
  margin-bottom: 20px;
}

.variation-attribute {
  margin-bottom: 15px;
}

.variation-attribute label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #1e1e1e;
  text-transform: capitalize;
}

.variation-modal-select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  font-size: 16px;
  color: #1e1e1e;
}

.variation-modal-price {
  margin: 15px 0;
  font-size: 20px;
  font-weight: 600;
  color: #1e1e1e;
}

.variation-select-button {
  display: block;
  width: 100%;
  padding: 12px 25px;
  color: #fff;
  background-color: #ff8900;
  border: none;
  border-radius: 35px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.variation-select-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.variation-select-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Stan ładowania */
.variation-modal-content.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.variation-modal-content.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -20px;
  margin-left: -20px;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff8900;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 2;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsywność */
@media (max-width: 1024px) {
  .wc-product-bundle .zestaw {
    flex-direction: column;
  }

  .wc-product-bundle .product-bundle-items {
    width: 100%;
  }

  .wc-product-bundle .bundle-summary {
    width: 100%;
  }
}

@media (max-width: 724px) {
  .wc-product-bundle .product-bundle-items {
    width: 100%;
    flex-direction: column;
  }

  .wc-product-bundle .bundle-summary {
    width: 100%;
    margin-top: 20px;
  }

  .wc-product-bundle .product-card {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }

  .wc-product-bundle .bundle-plus-sign {
    margin: 10px 0;
    font-size: 50px;
  }

  .bundle-price-info {
    margin-bottom: 2em;
  }
}
