/* ==================================================
   Bundle Builder – Scoped Layout CSS
   ================================================== */


.bundle-submit {
    position: relative;
}

.bundle-submit.loading .btn-text {
    display: none;
}

.bundle-submit.loading .btn-loader {
    display: inline-block;
}


.bundle-builder {
    width: 100%;
}
/* Two-column layout */
.bundle-builder .bundle-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: flex-start;
}

/* LEFT: Products grid */
.bundle-builder .bundle-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

/* Product card structure */
.bundle-builder .product-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    background: #fff;
    border-radius: 24px;
}

.bundle-builder .product-image {
    width: 100%;
    position:relative;
  padding-bottom:100%;
  border-radius:18px;
  overflow: hidden;
}

.bundle-builder .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
  border-radius:18px;
}
.bundle-builder .product-card .product-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 100%;
    color: #682B32;
}

.bundle-builder button.add-to-bundle {
    margin-top: auto;
}

.bundle-builder button.pack-option,
.bundle-builder .product-card button.add-to-bundle{
    background: #682b32 !important;
    color: #fff !important;
    border: 2px solid #682b32 !important;
  transition:0.3s ease all;
}

.bundle-builder button.pack-option.active,
.bundle-builder button.pack-option:hover,
.bundle-builder .product-card button.add-to-bundle:hover{
    background: #ffffff !important;
    color: #682b32 !important;
    border: 2px solid #682b32 !important;
}
.bundle-builder .product-card button.remove-from-bundle,
.bundle-builder .product-card button.add-to-bundle{
        width: 30px;
    height: 30px;
    padding: 0;
}

.bundle-builder .product-card button.remove-from-bundle{
    background: #ffffff !important;
    color: #682b32 !important;
    border: 2px solid #682b32 !important;
  transition:0.3s ease all;
}
.bundle-builder .product-card button.remove-from-bundle:hover{
    background: #682b32 !important;
    color: #ffffff !important;
    border: 2px solid #682b32 !important;
}

/* RIGHT: Bundle summary */
.bundle-builder .bundle-summary {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Bundle preview slots */
.bundle-builder .bundle-preview {
    display: flex;
    flex-wrap:wrap;
    gap: 12px;
    max-width: 400px;
    margin-inline: auto;
    width: 100%;
    justify-content: center;
}
.bundle-builder .bundle-preview .bundle-slot{
   flex: 0 0 auto;
    width: 80px;
}
.bundle-builder .bundle-preview-mobile{
    display: none;
}
/*.bundle-builder .bundle-slot {
    flex: 0 0 auto;
    width: 80px;
}
.bundle-builder .bundle-slot:not(:nth-child(1)) {
    margin-left: -10%;
}*/

.bundle-builder .bundle-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  position:absolute;
}
.bundle-builder .bundle-slot .bundle-slot-inner {
    padding-bottom: 133.33%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 2px dashed #682b32;
    background: #fff;
}
.bundle-builder .bundle-slot .bundle-slot-inner .remove-slot {
    color: #fff;
    position: absolute;
    left: 6px;
    top: 6px;
    font-size: 21px;
    line-height: 6px;
    width: 20px;
    height: 20px;
    background: #682b32;
    padding: 3px;
    border-radius: 999px;
    cursor: pointer;
    border: 2px solid #682b32;
    transition: 0.3s ease all;
}
.bundle-builder .bundle-slot .bundle-slot-inner .remove-slot:hover{
    background: transparent;
    color: #682b32;

}
/* Pack options */
.bundle-builder .pack-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bundle-builder .pack-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Quantity */
.bundle-builder .bundle-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bundle-builder .bundle-quantity input {
    width: 43px;
    height: 43px;
    padding: 0 !important;
    text-align: center;
    background: #fff !important;
    border: 2px solid #C48252 !important;
    color: #C48252 !important;
    font-size: 14px;
    border-radius: 5px;
}
.bundle-builder .bundle-quantity input:focus {
    outline: none;
}

.bundle-quantity>button {
    background: #fff !important;
    border: 2px solid #C48252 !important;
    color: #C48252 !important;
    padding: 6px 15px !important;
}
.bundle-quantity>button:hover {
    background: #C48252 !important;
    border: 2px solid #C48252 !important;
    color: #fff !important;
}
/* CTA wrapper */
.bundle-builder .bundle-action {
    margin-top: auto;
}
.bundle-builder .bundle-action .bundle-submit {
    font-family: Rowdies !important;
    font-weight: 400 !important;
    font-size: 21px !IMPORTANT;
    line-height: 100%;
    background: #C48252 !important;
    border: 2px solid #C48252 !important;
    color: #fff !important;
    padding: 15px 30px !important;
    border-radius: 40px !important;
    width: 100%;
}

.bundle-builder .bundle-action .bundle-submit:hover {
    background: #fff !IMPORTANT;
    color: #C48252 !important;
    text-decoration: none !important;
}
/* Responsive */
@media (max-width: 991px) {
    .bundle-builder .bundle-layout {
        grid-template-columns: 1fr;
    }
    .bundle-builder .bundle-summary {
        order: 1;
    }
    .bundle-builder .bundle-products {
        order: 2;
    }
.bundle-builder .bundle-preview-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9;
    display: block;
    padding: 20px;
    padding-top: 0;
    background: #f9f9f938;
    backdrop-filter: blur(1.2px);

    /* animation base state */
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;

    transition: 
        transform 0.35s ease-out,
        opacity 0.25s ease;
}

.bundle-builder .bundle-preview-mobile.isvisible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

}