/* Layout */
.main-info-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: space-between; /* Zapewnia równe rozłożenie elementów */
}

.product-gallery {
    flex: 1 1 500px;
    display: flex;
    gap: 1rem;
    flex-direction: row;
}

.product-gallery .main-image {
    flex: 1;
    max-width: 600px;
}

.product-gallery .main-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background-color: var(--color-beige);
    object-fit: cover;
}

.product-gallery .thumbnails {
    flex-direction: column;
    display: flex;
    gap: 0.5rem;
}

.product-gallery .thumbnail-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border 0.2s ease-in-out;
}

.product-gallery .thumbnail-item img.active,
.product-gallery .thumbnail-item img:hover {
    border-color: var(--color-gold);
}

/* Informacje o produkcie */
.product-info {
    flex: 1 1 400px;
}

.product-info .product-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.product-info .product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-green-bottle);
}

.product-info .regular-price {
    font-size: 1.2rem;
}

.product-info .discount-badge {
    font-size: 0.85rem;
    padding: 4px 8px;
}

/* Rozmiary */
.size-options button {
    border: 1px solid var(--color-gray-light);
    background: white;
    color: var(--color-gray);
    padding: 6px 12px;
    margin-right: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.size-options button.active {
    border-color: var(--color-gold);
    background-color: var(--color-beige-dark);
    color: var(--color-black);
}

/* Kolory */
.color-options {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border 0.2s;
}

.color-dot.active {
    border-color: var(--color-gold);
}

.add-to-cart-form {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

/* Ilość */
.add-to-cart-form .input-group {
    max-width: 10px;
    margin-bottom: 1rem;
}

.add-to-cart-form .form-control {
    text-align: center;
    padding: 6px;
}

.product-category {
    margin: 1rem 0;
}

/* Responsywność */
@media (max-width: 768px) {
    .main-info-container {
        flex-direction: column;
    }

    .product-gallery {
        flex-direction: column;
    }

    .product-gallery .thumbnails {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .product-gallery .main-image,
    .product-info {
        width: 100%;
    }

    .size-options button {
        margin-bottom: 0.5rem;
    }
}
