/* ── Bundle products section on single product page ── */

.stylessenza-bundle-products {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    background: #fafafa;
}

.stylessenza-bundle-products__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    padding: 0;
}

.stylessenza-bundle-products__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Individual bundled product row */
.stylessenza-bundle-product__item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.stylessenza-bundle-product__item:last-child {
    border-bottom: none;
}

.stylessenza-bundle-product__image {
    width: 70px;
    flex-shrink: 0;
}

.stylessenza-bundle-product__image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block;
}

.stylessenza-bundle-product__image a {
    display: block;
}

.stylessenza-bundle-product__info {
    flex: 1;
    min-width: 0;
}

.stylessenza-bundle-product__info h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.stylessenza-bundle-product__info h4 a {
    color: inherit;
    text-decoration: none;
}

.stylessenza-bundle-product__info h4 a:hover {
    text-decoration: underline;
}

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

/* Pricing summary */
.stylessenza-bundle-pricing {
    border-top: 1px solid #e5e5e5;
    padding-top: 15px;
    margin-top: 15px;
}

.stylessenza-bundle-pricing__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 14px;
}

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

.stylessenza-bundle-pricing__row del {
    color: #999;
}

.stylessenza-bundle-pricing__row--bundle {
    font-weight: 600;
    font-size: 16px;
}

.stylessenza-bundle-pricing__row--bundle ins {
    text-decoration: none;
    color: #111;
}

.stylessenza-bundle-pricing__row--savings {
    font-weight: 600;
    color: #2e7d32;
}

/* Bundle product gallery: full-width featured image.
   1. Hide thumbnail strip (images are shown in the "This bundle includes" section).
   2. Restore wrapper to 100% (overrides the calc(100%-60px) thumbnail-sidebar rule).
   3. Force img to fill its container — overrides the HTML width attribute that
      wp_get_attachment_image() sets to the file's pixel width. */
.single-product div.product.product_type_bundle .glozin-product-gallery-thumbnails {
    display: none;
}
.single-product div.product.product_type_bundle .woocommerce-product-gallery--vertical.woocommerce-product-gallery--has-thumbnails .woocommerce-product-gallery__wrapper {
    width: 100% !important;
}
.single-product div.product.product_type_bundle .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 480px) {
    .stylessenza-bundle-products {
        padding: 15px;
    }

    .stylessenza-bundle-product__image {
        width: 60px;
    }

    .stylessenza-bundle-product__info h4 {
        font-size: 14px;
    }
}
