/* 
* ===================================================
*     1. TODO EL DOCUMENTO
* ===================================================
*/

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: var(--body-font-family);
}


h1 {
    color: var(--dark-color);
    text-align: center;
}

p {
    text-align: justify;
}

a {
    text-decoration: none;
}

.link-gdl {
    text-decoration:underline;
    color: var(--link-grande-deleim);
    font-weight: bold;
}

.link-renew {
    text-decoration:underline;
    color: var(--link-renew-peel);
    font-weight: bold;
}

.link-leim {
    text-decoration:underline;
    color: var(--link-leim);
    font-weight: bold;
}


.detail-text {
    color: var(--details-text);
    font-weight: bold;
}

.detail-text-leim {
    color: var(--link-leim);
    font-weight: bold;
}

.btn-cart-header {
    border: 2px solid var(--border-color);
    width: auto;
    background: var(--primary-color);
    border-radius: var(--border-radius-large);
    color: var(--white-color);
    line-height: normal;
    padding: 10px;
    font-size:medium;
}

.btn-cart-header:hover {
    color: var(--primary-color);
    background: var(--white-color);
    border: 2px solid var(--border-color);
}

.btn-cart-header:active {
    color: var(--primary-color);
    background: var(--white-color);
    border: 2px solid var(--border-color);
}

.btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    color: var(--white-color);
    line-height: normal;
    padding: 10px 10px;
}

.btn-primary:hover {
    background: var(--secondary-color-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn-primary:active {
    border: 3px solid var(--primary-color);
    background: var(--secondary-color-light);
    color: var(--primary-color);
    cursor: pointer;
}

/* Desactivar los botones de incremento y decremento en inputs de tipo number */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input:disabled {
    background: var(--modal-color);
}

/* 
* ===================================================
*     2. SITE HEADER  
* ===================================================
*/
.site-header {
    background: var(--primary-color);
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    color: var(--white-color);
    font-size: var(--copyright-font-size);
}

.site-header a {
    color: var(--white-color);
    text-align: center;
}

/* 
* ===================================================
*     3. NAVIGATION  
* ===================================================
*/

.logo {
    max-width: 100px;
    height: auto;
}


.navbar {
    background: var(--white-color);
    z-index: 9;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand {
    color: var(--primary-color);
    font-size: var(--h6-font-size);
}

.navbar-toggler {
    border: 0;
    padding: 0;
    cursor: pointer;
    margin: 0;
    width: 30px;
    height: 35px;
    outline: none;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
    transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
    transition: top 300ms 50ms ease, transform 300ms 350ms ease;
    transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
    transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
    background: var(--dark-color);
    transition: background 10ms 300ms ease;
    display: block;
    width: 30px;
    height: 2px;
    position: relative;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
    transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
    transition: top 300ms 350ms ease, transform 300ms 50ms ease;
    transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
    position: absolute;
    right: 0;
    left: 0;
    background: var(--dark-color);
    width: 30px;
    height: 2px;
    content: '';
}

.navbar-toggler .navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
    top: 8px;
}


@media (min-width: 1400px) {
    .nav-link {
        font-size: 1.2rem;
        color: var(--dark-color);
        text-shadow: 1px 1px 2px rgb(196, 196, 196);
        padding: 5px;
        margin: 3px;
    }
}

@media (max-width: 1399px) {
    .nav-link {
        font-size: 1rem;
        text-shadow: 1px 1px 2px rgb(196, 196, 196);
    }

    .dropdown-menu li {
        font-size: 1.4rem;
    }
}

@media (max-width: 1199px) {
    #offcanvasMenu {
        width: 40vw;
    }

    .nav-link {
        font-size: 1.5rem;
        color: var(--dark-color);
        font-weight: 400;
    }

}

@media (max-width: 768px) {
    #offcanvasMenu {
        width: 60vw;
    }
}

@media (max-width: 576px) {
    #offcanvasMenu {
        width: 80vw;
    }
}

/* 
* ===================================================
*     4. SOCIAL ICON 
* ===================================================
*/

/* Iconos de redes sociales */
.social-icon {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.50rem;
}

.social-icon-item {
    list-style: none;
    display: inline-block;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: var(--font-size-med);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    background-color: var(--secondary-color-light);
    color: var(--white-color);
    transform: scale(1.1) rotate(7deg);
}
/* 
* ===================================================
*     5. SECTION  
* ===================================================
*/
.section-padding {
    padding-top: 25px;
    padding-bottom: 30px;
}

@media (max-width: 950px) {
    .section-padding {
        padding: 10px;
    }
}

/*
* ===================================================
*     6. BOTÓN FLOTANTE (PRODUCTOS.EJS)
* ===================================================
*/
.btn-float {
    backface-visibility: hidden;
    position: fixed;
    width: 5rem;
    height: 5rem;
    cursor: pointer;
    white-space: nowrap;
    background: var(--primary-color);
    border-radius: 100px;
    border: 3px solid #fff;
    border-width: 3px 3px 3px 3px;
    padding: 8px 10px 7px 10px;
    box-shadow: inset 0px 1px 3px var(--primary-color), inset 0px -1px 3px var(--primary-color), 0px 3px 6px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.3);
    right: 30px;
    bottom: 30px;
    z-index: 100;
}


.btn-float>i {
    color: #fff;
    font-size: 1.2em;
    border-radius: 0px;
    border: 0px solid transparent;
    border-width: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
    margin: 0px 0px 0px 0px;
    position: static
}

.btn-float>.ld {
    font-size: initial
}

@media (max-width: 576px) {
    .btn-float {
        width: 4rem;
        height: 4rem;
    }
}

@media (max-width: 768px) {

}

@media (max-width: 992px) {

}

@media (max-width: 1200px) {

}

@media (max-width: 1400px) {

}

/*
* ===================================================
*     7. CARDS (PRODUCTOS.EJS)
* ===================================================
*/

.single_product {
    cursor: default;
    transition: all 400ms ease;
    text-align: center;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    padding-bottom: 50px;
    background: #fff;
    transition: .2s;
}

.single_product:hover {
    transform: translateY(-2%);
    box-shadow: 5px 5px 20px rgba(44, 44, 44, 0.4);
}

.single_product .box-content {
    width: 100%;
    padding: 10px 0;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0px;
    left: 0;
    z-index: 1;
    overflow: hidden;
    background: transparent;
    text-align: center;
}

.box-content a {
    display: inline-block;
    font-size: 1.2rem;
    width: 35px;
    height: auto;
    line-height: 30px;
    background: #ffffff;
    color: #fd3c3c;
    border: 2px solid #fd3c3c;
    border-radius: 50%;
    margin: 7px 7px;
    transition: .5s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box-content a:hover {

    background: #fd3c3c;
    color: #fff;
    border-color: #fd3c3c;
}

/*
* ===================================================
*     8. MODALES DE PRODUCTOS (PRODUCTOS.EJS)
* ===================================================
*/

.modal-header {
    background-color: var(--primary-color);
}

.modal-footer {
    background-color: transparent;
}

.badge-bg {
    background-color: var(--secondary-color);
}


.modal-body {
    background-color: var(--modal-color);
}


.iconos_problemas {
    width: 15rem;
    height: auto;
}

/* Iconos de problemas renewpeel */

.iconos_problemas_renewpeel {
    width: 6rem;
    height: auto;
}

.star {
    font-size: 32px;
    color: #ddd;
    transition: color 0.3s;
    cursor: pointer;
}

.star:hover,
.star.checked {
    color: var(--dark-color);
}

.modal-detail-quantity p {
    font-size: 1.2rem;
    text-align: center;
}

.modal-detail-quantity input {
    font-size: 1.2rem;
    max-width: 50px;
}

/*
* ===================================================
*   9. MODAL CARRITO (PRODUCTOS.EJS)
* ===================================================
*/

/* --- Estructura Principal del Ítem del Carrito --- */
    .cart-item {
        background-color: #ffffff;
        border: 1px solid #dee2e6;
        padding: 10px;
        margin-bottom: 15px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    /* --- Encabezado y Título --- */
    .cart-item__header {
        padding-bottom: 10px;
        border-bottom: 1px solid #e9ecef;
    }

    .cart-item__title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #343a40;
        margin: 0;
    }

    /* --- Cuerpo y Detalles del Producto --- */
    .cart-item__body {
        padding: 10px 0;
    }

    .cart-item__image {
        max-width: 100px;
        height: auto;
        border: none
    }

    .cart-item__details p {
        margin: 0;
        font-size: 0.9rem;
        color: #495057;
    }

    .cart-item__details strong {
        color: #212529;
    }

    /* --- Controles de Cantidad --- */
    .cart-item__quantity-label {
        font-size: 0.9rem;
        color: #6c757d;
        margin-bottom: 5px;
    }

    .cart-item__quantity-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }

    .cart-item__quantity-input {
        width: 50px;
        border: none;
        border-radius: 5px;
        background-color: transparent;
    }
    
    .cart-item__quantity-input::-webkit-outer-spin-button,
    .cart-item__quantity-input::-webkit-inner-spin-button {
        -webkit-appearance: none; /* Para Chrome, Safari, Edge */
        margin: 0;
    }

    .total__pedido input:disabled {
        background-color: transparent;
        font-size: 1rem;
        color: #495057;
        font-weight: bold;
        text-align: center;
    }

    .cart-item__quantity-btn {
        background-color: #fff;
        color: var(--primary-color);
        font-weight: bold;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s, color 0.2s;
    }

    .cart-item__quantity-btn:hover {
        background-color: var(--primary-color);
        color: #fff;
    }

    /* --- Pie de Página y Acciones --- */
    .cart-item__footer {
        padding-top: 10px;
        border-top: 1px solid #e9ecef;
        font-size: 0.85rem;
        color: #6c757d;
    }

    .cart-item__subtotal .badge {
        font-size: 1rem;
    }
    
    .cart-item__remove-link {
        color: #dc3545;
        text-decoration: none;
        font-size: 0.85rem;
        transition: text-decoration 0.2s;
    }

    .cart-item__remove-link:hover {
        text-decoration: underline;
        color: #a71d2a;
    }

/*
* ===================================================
*     10. SELECT FILTROS (PRODUCTOS.EJS)
* ===================================================
*/

.filter li>a:hover {
    background: var(--dark-color);
    color: #fff;
}

.filter li>a:active {
    background: var(--dark-color);
    color: #fff;
}

.dropdown-menu .active {
    background: var(--dark-color);
    color: #fff;
}

.filter-option-inner-inner {
    color: var(--dark-color);
    font-weight: 600;
}

@media (max-width: 576px) {

}

@media (max-width: 768px) {

}

@media (max-width: 992px) {

}

@media (max-width: 1200px) {

}

@media (max-width: 1400px) {

}

/* 
* ===================================================
*     11. SITE FOOTER  
* ===================================================
*/

.site-footer-bottom {
    background-color: var(--primary-color);
    position: relative;
    z-index: 2;
    margin-top: 10px;
    padding-top: 25px;
    padding-bottom: 25px;
}

.site-footer-bottom a {
    color: var(--white-color);
}


.site-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: var(--font-size-med);
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer-link:hover {
    background-color: var(--secondary-color-light);
    color: var(--white-color);
    transform: scale(1.1) rotate(7deg);
}

.copyright-text {
    color: var(--section-bg-color);
    font-size: var(--copyright-font-size);
    margin-right: 30px;
}

.logofoot {
    width: 150px;
    height: auto;
}

/*
* ===================================================
*     11. MEDIA QUERIES
* ===================================================
*/

@media (max-width: 576px) {
    .iconos_problemas_renewpeel {
        width: 5rem;
        height: auto;
    }
}

@media (max-width: 768px) {

}

@media (max-width: 992px) {

}

@media (max-width: 1200px) {

}

@media (max-width: 1400px) {

}