/*** Desplazar a la izq título de categorías ******/
@media (min-width: 992px) {
    #category #js-product-list-header .block-category, #search #js-product-list-header .block-category {
        padding-left: 70px;
    }

    #category h1 {
        line-height: 1.1 !important;
        max-width: 35%;
    }

    #category #category-description p {
        margin-top: 8px;
    }
    #index .featured-products .products-section-title {
        margin-bottom: 10px;
        max-width: 500px;
        line-height: 38px;
        font-size: 38px;
    }
}

/* Mantener el ancho de la imagen en Listados Productos */

@media (max-width: 1199px) {
    .products .js-product.product .thumbnail-top .product-thumbnail img {
        width: 100%;
    }
}

/***** Modificación al filtro de categorías Mobile *****/

@media (max-width: 991px) {
    #category #filters_amazzing {
        width: 50% !important;
    }

    #category #amazzing_filter {
        padding: 0.7rem;
    }

    #category .qsInput {
        padding-left: 25px;
    }

    /* Para compatibilidad con navegadores más antiguos (WebKit/Blink - Chrome, Safari, Edge, Opera) */
    .qsInput::-webkit-input-placeholder {
        font-size: 11px;
    }

    /* Para compatibilidad con Firefox más antiguo (<=18) */
    .qsInput:-moz-placeholder {
        font-size: 11px;
    }

    /* Para compatibilidad con Firefox (19+) */
    .qsInput::-moz-placeholder {
        font-size: 11px;
    }

    /* Para compatibilidad con IE 10+ y Edge más antiguo */
    .qsInput:-ms-input-placeholder {
        font-size: 11px;
    }

    /****** Cart Mobile ******/

    #cart .cart-overview {
        padding-bottom: 0px;
    }

    #cart .cart-overview .cart-item {
        padding-bottom: 0px;
    }

    #cart .cart-grid-body .cart-detailed-subtotals #cart-subtotal-products {
        margin-bottom: 10px;
    }

    #cart .cart-grid-body .cart-detailed-subtotals .cart-summary-line .value {
        padding-right: 15px;
    }

    #cart .cart-grid-body .cart-items .line-separator {
        margin-top: 10px;
    }

    #cart .cart-grid-body .cart-summary-totals .cart-total .label {
        width: 45%;
    }

    #cart .card-block.cart-summary-totals .cart-summary-line.cart-total .value {
        margin-right: 0px;
        padding-top: 5px;
    }

    #cart .cart-summary-line.cart-total {
        display: inline-flex;
        width: 100%;
    }

    #cart .cart-summary-line.cart-total > label {
        display: inline-flex;
    }
    #cart .cart-grid-body .cart-summary-totals .cart-total .label .taxes-info {
        float:none;
    }

    #cart .product-line-grid-left img {
        border-radius: 12px 12px 12px 0;
        border: 1px solid rgba(170, 170, 170, .55);
    }

    /*** Login Mobile ****/

    #login-form > footer > button {
        padding: 17px 58px;
    }

    #customer-form > footer > button {
        padding: 17px 58px;
    }

    /****** Checkout Mobile ******/

    #payment-confirmation > div.ps-shown-by-js.clearfix > article > a {
        font-size: 14px;
        text-decoration: underline;
    }

    body#checkout .cart-grid-right #js-checkout-summary>.row .totals {
        font-weight: 600;
    }

    /***** Order Confirmation *****/

    #order-confirmation section.otherpayment>.content,
    #order-confirmation section.wirepayment>.content {
        padding: 30px 30px 20px;
    }

    #order-confirmation section.otherpayment,
    #order-confirmation section.wirepayment {
        margin-top: 80px;
        margin-bottom: 0px;
    }

    #order-confirmation .subrayado-verde {
        padding: 5px;
        font-size: 16px;
    }

    #order-confirmation .page-footer {
        margin-bottom: 0.8rem;
    }

    #order-confirmation #footer .block_newsletter {
        padding: 20px 60px 60px;
    }
    #index .featured-products .block-title {
        padding-bottom: 15px;
        margin: 0 auto;
    }
}

/***************************************************/

/**** Estilos Presupuesto ***********************/
.block-category:has(.specific-category-bg) {
    position: relative !important;
    overflow: hidden !important;
    z-index: 0 !important;
    border-radius: 20px 20px 20px 0 !important;
    padding: 3% 3% 2% 5% !important;
}

.specific-category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.specific-category-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Ajustar .block-content si es necesario solo cuando el fondo está presente */
.block-category:has(.specific-category-bg) .block-content {
    position: relative;
    z-index: 1;
}

.block-category:has(.specific-category-bg) .title-ml {
    color: white !important;
}

#category:has(.specific-category-bg) h1 {
    font-weight: 300;
}

#category:has(.specific-category-bg) #category-description {
    width: 39%;
}

#category:has(.specific-category-bg) #category-description p {
    color: white;
    line-height: 18px;
    font-weight: 200;
}



@media (max-width: 992px) {
    .block-category:has(.specific-category-bg) .title-ml {
        font-family: "Happy Monkey";
        width: 35%;
    }

    #category:has(.specific-category-bg) h1 {
        font-size: 30px;
    }

    #category:has(.specific-category-bg) #category-description {
        width: 35%;
        font-family: "Almarai";
    }
}

@media (max-width: 768px) {

    #category:has(.specific-category-bg) h1 {
        font-size: 25px;
    }

    #category:has(.specific-category-bg) #category-description {
        width: 45%;
        font-family: "Almarai";
    }
}

@media (max-width: 430px) {

    .block-category:has(.specific-category-bg) {
        padding: 0;
    }

    .specific-category-bg {
        display: none;
    }

    #category:has(.specific-category-bg) h1 {
        font-size: 24px;
        font-weight: 700;
        font-family: "Almarai";
        color: #434342 !important;
    }

    #category:has(.specific-category-bg) #category-description {
        width: 100%;
        font-family: "Almarai";
    }

    #category:has(.specific-category-bg) #category-description p {
        color: #434342 !important;
    }
}


/**** FIN Estilos Presupuesto ***********************/

/* newsel 330*/ 
@supports (-webkit-appearance: none) or (-webkit-touch-callout: none) {
    @media (max-width: 991px) {
        .product-container .content-box .product-variants-item.tab-pane.color-option input:checked+span.colores {
            outline: none !important;
            -webkit-box-shadow: 0 0 0px 2px #ff5733 !important;
            box-shadow: 0 0 0px 2px #ff5733 !important;
        }
        .product-variants .product-variants-item input+span.color.texture, 
        .product-variants .product-variants-item input+span.color[style*="background-color: #fff"] {
            outline: none !important;
        }
        #category #js-product-list-header h1, #search #js-product-list-header h1
        {
            color: #434342;
            letter-spacing: -1px;
        }           
    }
}

/*end newsel 330*/

.pagination .page-list .disabled {
    visibility: hidden;
    pointer-events: none;
}

.wishlist-modal .modal-header span.modal-title {
    color: #232323;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.875rem;
    margin-top: 30px;
}

.product-variants .product-variants-item.faja-option .input-container label {
    margin-bottom: 25px !important;
}

#subcategories{
    margin-bottom: 1.5rem !important; 
}

@media (max-width: 767px) {
    #subcategories{
        margin-bottom: 0 !important; 
    }
}