/* -----------------------------------
   BUNDLE PICKER WRAPPER
----------------------------------- */

.hab-bundle-picker {
    font-family: 'Inter', sans-serif;
}

.hab-bundle-picker h4 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 18px;
    margin-top: 0px;
}

.hab-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin-top: 10px;
}

.hab-choose-label {
    font-size: 12px;
    color: #555;
}

/* -----------------------------------
   SLOT BOXES
----------------------------------- */

.hab-picks {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hab-pick-box {
    width: 120px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.hab-pick-inner {
    border: 2px dashed #C9A5AF;
    background: #FAF1F3;
    height: 110px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hab-pick-inner.hab-picked-inner {
    border: none;
    background: transparent;
}

.hab-pick-box:hover .hab-pick-inner {
    border-color: #B57B88;
    background: #f7e8eb;
}

.hab-pick-empty .plus {
    font-size: 30px;
    color: #9a6c78;
    background: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    line-height: 42px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.hab-pick-box:hover .hab-pick-empty .plus {
    transform: scale(1.1);
}

.hab-pick-title {
    font-size: 13px;
    color: #555;
    margin-top: 5px;
}

/* -----------------------------------
   SELECTED PRODUCT STYLE
----------------------------------- */

.hab-picked {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
}

.hab-picked-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.hab-picked:hover .hab-picked-img {
    transform: scale(1.05);
}

.hab-picked-title {
    font-size: 12px;
    margin-top: 4px;
    color: #121212;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 20px;
}

.hab-remove-picked {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: #9a2253;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    border: 2px solid #fff;
    transition: 0.2s ease;
}

.hab-remove-picked:hover {
    transform: scale(1.1);
}

/* -----------------------------------
   ACTION BUTTONS
----------------------------------- */

.hab-open-modal,
.hab-add-bundle {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.25s ease;
}

.hab-open-modal {
    background: #fff;
    color: #B57B88;
    border: 2px solid #B57B88;
}

.hab-open-modal:hover {
    background: #B57B88;
    color: #fff;
}

.hab-add-bundle {
    background: #B57B88;
    color: #fff;
    margin-left: 10px;
}

.hab-add-bundle:hover {
    background: #9a5f69;
}

/* -----------------------------------
   MODAL OVERLAY
----------------------------------- */

.hab-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.hab-modal-inner {
    background: #fff;
    padding: 30px 25px;
    width: 100%;
    max-width: 960px;
    border-radius: 14px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.hab-modal-close {
    position: absolute;
    right: 15px;
    top: 12px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: #555;
    transition: color 0.2s ease;
}

.hab-modal-close:hover {
    color: #B57B88;
}

/* -----------------------------------
   MODAL PRODUCT GRID
----------------------------------- */

.hab-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.hab-product-item {
    cursor: pointer;
    border: 1px solid #EEE;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    background: #fff;
    transition: 0.25s ease;
}

.hab-product-item:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: #C4A0AA;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hab-product-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
}

.hab-product-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hab-loading {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    font-size: 15px;
    color: #555;
}

/* -----------------------------------
   RESPONSIVE
----------------------------------- */

@media(max-width: 768px) {
    .hab-picks {
        gap: 12px;
    }

    .hab-pick-box {
        width: 90px;
    }

    .hab-pick-inner {
        height: 95px;
    }

    .hab-picked-img {
        border-radius: 8px;
    }

    .hab-product-item img {
        height: 85px;
    }

    .hab-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .hab-product-title,
    .hab-picked-title {
        font-size: 11px;
    }

    .hab-open-modal,
    .hab-add-bundle {
        font-size: 13px;
        padding: 8px 14px;
        display: block;
        width: 100%;
        margin: 10px 0 0 0;
    }

    .hab-add-bundle {
        margin-top: 8px;
    }

    .hab-modal-inner {
        padding: 20px 15px;
        border-radius: 10px;
    }
}
