/**
 * Categorías como packs
 * 
 * @author Difadi.com	<soporte@difadi.com>
 * @author Luis Santos	<lsantos@difadi.com>
 * @license Comercial
 * @copyright 2025 Difadi.com
 */

.dfdcustomcategorypack-header {
    position: fixed;
    bottom: 16px;
    left: 100px;
    border-radius: 10px;
    border: 1px solid lightgray;
    box-shadow: 0 0 10px gray;
    background-color: white;
    width: calc(100% - 200px);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    z-index: 1049;
    align-items: center;
    opacity: 0.95;
}

#dfdcustomcategorypack-product-count {
    font-weight: bold;
}

.dfdcustomcategorypack-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.dfdcustomcategorypack-product-miniature {
    padding: 10px;
    margin: 10px;
    box-shadow: 0 0 10px lightgray;
    border-radius: 10px;
}

.dfdcustomcategorypack-thumbnail img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.dfdcustomcategorypack-product-check span {
    margin-left: 5px;
}

.dfdcustomcategorypack-product-checkbox {
    transform: scale(1.5);
    margin-left: 5px;
}

.dfdcustomcategorypack-product-title {
    font-size: 0.8em;
    min-height: 32px;
}

.dfdcustomcategorypack-selector-wrapper {
    min-height: 48px;;
}

.dfdcustomcategorypack-price {
    font-size: var(--text-lg);
    font-weight: bold;
}

.dfdcustomcategorypack-add a {
    width: 100%;
    font-size: 0.8em;
    padding: 2px;
}

.dfdcustomcategorypack-oos {
    background: darkred;
    color: white;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 0.8em;
}

.dfdcustomcategorypack-quantity-wrapper {
    margin-bottom: 5px;
    min-height: 48px;
}

.dfdcustomcategorypack-quantity {
    max-width: 72px;
    text-align: center;
}

/* Modal carrito */
.dfdcustomcategorypack-cartmodal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.466);
    z-index: 2400500000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.dfdcustomcategorypack-cartmodal {
    background-color: white;
    width: 1000px;
    max-width: 100%;
    max-height: 600px;
    border-radius: 10px;
    box-shadow: 0 0 10px gray;
    padding: 10px;
}

.dfdcustomcategorypack-cartmodal-main {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.dfdcustomcategorypack-cartmodal-main img {
    max-width: 64px;
}

.dfdcustomcategorypack-cartmodal-main table {
    max-width: 100%;
    overflow-x: auto;
}

.dfdcustomcategorypack-cartmodal-footer {
    text-align: right;
}

.dfdcustomcategorypack.dfdcustomcategorypack-oncart .dfdcustomcategorypack-header, 
.dfdcustomcategorypack .dfdcustomcategorypack-cartmodal-wrapper {
    display: none;
}

.dfdcustomcategorypack.dfdcustomcategorypack-oncart .dfdcustomcategorypack-cartmodal-wrapper {
    display: flex;
}

/* Responsive */
@media (max-width: 1080px) {
    .dfdcustomcategorypack-list {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .dfdcustomcategorypack-cartmodal {
        width: 8000px;
    }
}

@media (max-width: 760px) {
    .dfdcustomcategorypack-list {
        grid-template-columns: 1fr 1fr;
    }

    .dfdcustomcategorypack-header {
        position: fixed;
        bottom: 0;
        left: 0;
        border-radius: 0px;
        border: 1px solid lightgray;
        box-shadow: 0 0 10px gray;
        background-color: white;
        width: 100%;
        padding: 10px 20px;
        z-index: 24444444444;
        opacity: 1;
        flex-wrap: wrap;
    }

    .dfdcustomcategorypack-cartmodal {
        width: 600px;
        max-height: 800px;
    }
}

@media (max-width: 480px) {
    .dfdcustomcategorypack-list {
        grid-template-columns: 1fr;
    }

    .dfdcustomcategorypack-actions {
        margin-top: 5px;
    }

    #dfdcustomcategorypack-add-to-cart, .dfdcustomcategorypack-actions {
        width: 100%;
    }

    .dfdcustomcategorypack-cartmodal {
        width: 600px;
        max-height: 800px;
    }
}