
/* =========================================
   KG CODE - BESTSELLERS BUNDLE
========================================= */

.kgcode-bestsellers-bundle-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
}


/* =========================================
   PRODUCT CARD
========================================= */

.kgcode-bestsellers-bundle-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}


/* =========================================
   PRODUCT IMAGE
========================================= */

.kgcode-bestsellers-bundle-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1.35 / 1;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.20);
    padding: 12px;
    box-sizing: border-box;
}

.kgcode-bestsellers-bundle-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0;
}
.kgcode-bestsellers-bundle-image-link {
    display: block;
    text-decoration: none;
}


/* =========================================
   PRODUCT TITLE
========================================= */

.kgcode-bestsellers-bundle-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #222222;
    margin: 14px 0 3px;
    padding: 0;
}

.kgcode-bestsellers-bundle-title a {
    color: inherit;
    text-decoration: none;
}

.kgcode-bestsellers-bundle-title a:hover {
    color: inherit;
}


/* =========================================
   SHORT DESCRIPTION
========================================= */

.kgcode-bestsellers-bundle-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    color: #707070;
    margin: 0;
}

.kgcode-bestsellers-bundle-description p {
    margin: 0;
    padding: 0;
}


/* =========================================
   BUNDLE MEMBERS
========================================= */

.kgcode-bestsellers-bundle-members {
    font-size: 13px;
    line-height: 1.6;
    color: #777777;
    margin-top: 8px;
}


/* =========================================
   PRICING
========================================= */

.kgcode-bestsellers-bundle-pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 8px;
    margin-top: 14px;
    color: #222222;
}

.kgcode-bestsellers-bundle-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.kgcode-bestsellers-bundle-regular-price {
    color: #222222;
}

.kgcode-bestsellers-bundle-old-price {
    color: #e52b2b;
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
}

.kgcode-bestsellers-bundle-sale-price {
    color: #e52b2b;
    font-size: 16px;
    font-weight: 700;
}

.kgcode-bestsellers-bundle-individual-price {
    color: #777777;
    font-size: 13px;
    font-weight: 400;
}


/* =========================================
   ADD TO CART
========================================= */

.kgcode-bestsellers-bundle-actions {
    margin-top: auto;
    padding-top: 12px;
}

.kgcode-bestsellers-bundle-add-to-cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    min-height: 44px;
    box-sizing: border-box;

    padding: 7px 15px !important;

    background: transparent !important;
    border: 4px solid #328573 !important;
    border-radius: 30px !important;

    color: #328573 !important;

    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;

    box-shadow: none !important;
}

.kgcode-bestsellers-bundle-add-to-cart:hover,
.kgcode-bestsellers-bundle-add-to-cart:focus {
    background: #eaf4f1 !important;
    border-color: #203f37 !important;
    color: #203f37 !important;
}

.kgcode-bestsellers-bundle-add-to-cart span {
    display: inline-block;
}

.kgcode-bestsellers-bundle-cart-icon {
    display: block;
    width: 17px;
    height: 19px;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1024px) {

    .kgcode-bestsellers-bundle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

}

@media (max-width: 600px) {

    .kgcode-bestsellers-bundle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .kgcode-bestsellers-bundle-image-wrapper {
        border-radius: 16px;
        aspect-ratio: 1.15 / 1;
        padding: 7px;
    }

    .kgcode-bestsellers-bundle-title {
        font-size: 14px;
    }

    .kgcode-bestsellers-bundle-description {
        font-size: 12px;
    }

    .kgcode-bestsellers-bundle-members {
        font-size: 11px;
    }

    .kgcode-bestsellers-bundle-pricing {
        gap: 3px 5px;
        margin-top: 10px;
    }

    .kgcode-bestsellers-bundle-price {
        font-size: 14px;
    }

    .kgcode-bestsellers-bundle-individual-price {
        font-size: 11px;
    }

    .kgcode-bestsellers-bundle-add-to-cart {
        min-height: 39px;
        padding: 6px 7px !important;
        border-width: 3px !important;
        font-size: 12px !important;
        gap: 5px;
    }

    .kgcode-bestsellers-bundle-cart-icon {
        width: 14px;
        height: 16px;
    }

}
