.product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  gap: 20px;
}

.image-gallery {
  display: flex;
  gap: 20px;
}

.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: contain; /* Zachowuje proporcje i dodaje tło, jeśli trzeba */
    background-color: white; /* Dodaje białe tło */
    display: block;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.3s, border-color 0.3s;
}

.thumbnails img:hover, .thumbnails img.selected {
  transform: scale(1.1);
  border-color: #ed6b84;
}

@media (max-width: 768px) {
  .thumbnails {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .thumbnails img {
    width: 50px;
    height: 50px;
  }
}


.main-image img {
  width: 600px;
  border-radius: 10px;
}
.product-image {
    width: 500px;
    height: 500px;
    object-fit: contain;
    background-color: white;
    display: block;
}
.product-related-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    background-color: white;
    display: block;
}
.product-details {
  flex: 2;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-details h1 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}
.product-details .sku {
  font-size: 16px;
  font-weight: 400;
  color: #333;
}
.product-details .price {
  font-size: 18px;
  font-weight: 600;
  color: #ed6b84;
  margin-bottom: 20px;
}

.product-details span {
  line-height: 1.6;
  font-size: 14px;
  color: #555;
}

.options {
  margin-bottom: 20px;
}

.options label {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.options .colors,
.options .sizes {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.color {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
}

.color.selected {
  border-color: #000;
}

.color.red {
  background: #ed6b84;
}

.color.blue {
  background: #0044cc;
}

.sizes button {
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 5px;
}

.sizes button.selected {
  border-color: #000;
  background: #f0f0f0;
}
.button-container {
  display: flex;
  gap: 10px;
  align-items: center;
}
.quantity {
  padding-top: 20px;
  display: flex;
  align-items: center;
  /*gap: 10px;*/
  margin-bottom: 20px;
}

.quantity button {
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 5px;
  height: 45px;
  width: 40px;
}

.quantity button:hover {
  background-color: #ed6b84;
  text-decoration: none;
  font-size: 14px;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
.quantity input {
  width: 80px;
  height: 45px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  border: 1px solid #ccc;
}

.cta-buttons {
  display: flex;
  gap: 10px;
}

.cta-buttons button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  border-radius: 5px;
  height: 45px;
}

.cta-buttons .buy-now {
  background: #ed6b84;
  font-family: Poppins, sans-serif;
  border: none;
}

.cta-buttons .wishlist {
  background: #333;
}
.wishlist-button {
  width: 50px;
  height: 50px;
  border: 1px solid black;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}
.wishlist-button img {
  width: 24px;
  height: 24px;
  transition: filter 0.3s;
}
.wishlist-button:hover {
  background: #ed6b84;
}
.wishlist-button:hover img {
  filter: brightness(0) invert(1);
}
.additional-info {
  margin-top: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #000;
}

.info-item img {
  width: 30px;
  height: 30px;
}

.info-item p {
  font-size: 14px;
  color: #555;
}

.info-item strong {
  font-size: 14px;
  color: #333;
}

.info-item a {
  color: #ed6b84;
  text-decoration: none;
  font-size: 14px;
}

.info-item a:hover {
  text-decoration: underline;
}
.tab-buttons {
    display: flex;
    gap: 1rem;
    /*border-bottom: 1px solid #ddd;*/
    padding-bottom: 20px;
  }

  .tab-btn {
    background: none;
    border: none;
    padding: 1rem;
    cursor: pointer;
    color: #ed6b84;
    font-family: Poppins, sans-serif;
    font-size: 16px;
  }

  .tab-btn.active {
    font-weight: bold;
    border-bottom: 2px solid #ed6b84;
  }
  .tab-content {
    margin-top: 20px;
    color: #8e8c8c;
    padding-bottom: 20px;
  }

  .tab-content.hidden {
    display: none;
  }
  .qtybtn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }