.product-bundles-wrapper {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
}

.product-bundles-wrapper h2 {
    text-align: center;
    margin: 0 0 20px 0;
}

.bundle-item {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 16px;
    align-items: center;
    flex-direction: row;
}

.bundle-title {
    width: 100%;
    text-align: center;
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
}

.bundle-item:last-child {
    margin-bottom: 0;
}

.bundle-products {
    display: flex;
    gap: 16px;
    flex: 1;
    flex-wrap: nowrap;
    flex-direction: row;
}

.bundle-product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 150px;
}

.bundle-product-image {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.bundle-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bundle-product-name {
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

.bundle-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    min-width: 200px;
}

.bundle-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.bundle-price-label {
    font-size: 14px;
    color: #666;
}

.bundle-price-value {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.bundle-original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    font-weight: normal;
}

.bundle-actions {
    display: flex;
    gap: 8px;
}

.bundle-actions button {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border-radius: 50px !important;
    /* Tabletka */
    padding: 12px 30px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.bundle-actions button:hover {
    background-color: var(--secondary-color) !important;
}

@media (max-width: 768px) {
    .bundle-item {
        flex-direction: column;
        align-items: stretch;
    }

    .bundle-info {
        align-items: stretch;
        width: 100%;
    }

    .bundle-price {
        align-items: flex-start;
    }

    .bundle-price-value {
        align-items: flex-start;
    }

    .bundle-actions button {
        width: 100%;
    }
}

.bundle-products {
    display: flex;
    gap: 16px;
    flex: 1;
    flex-wrap: wrap;
    flex-direction: row;
}

/* Zakładając, że wewnątrz są elementy np. z klasą .product-item lub po prostu divy */
.bundle-products>* {
    /* Domyślnie 4 kolumny: (100% / 4) - (odstępy) */
    flex: 1 1 calc(25% - 12px);
    box-sizing: border-box;
}

/* Styl dla telefonów (ekrany poniżej 768px) */
@media (max-width: 768px) {
    .bundle-products>* {
        /* 2 kolumny: (100% / 2) - (odstępy) */
        flex: 1 1 calc(50% - 16px);
    }
}

@media (max-width: 900px) {

    .bundle-price,
    .bundle-price-value,
    .bundle-original-price {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* --- Bundle Badges --- */
.bundle-item {
    position: relative;
    /* ensure badges can be positioned relative if needed, mostly for z-index or absolute scenarios */
}

.bundle-badges {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    /* Center badges */
}

.bundle-badge {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    line-height: 1;
}

.badge-bestseller {
    background-color: var(--primary-color);
    /* Orange/Gold for Bestseller */
}

.badge-freeshipping {
    background-color: var(--primary-color);
    /* Green for Free Shipping */
}