﻿/* Estilos productos
-------------------------------------------------- */

.product-image-wrapper {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #f8fcf8 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 150, 64, 0.10);
    padding: 10px;
}

.contenedor-etiquetas {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    max-width: 250px;
    gap: 6px;
    z-index: 10;
}

.etiqueta {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.product-image-wrapper.no-stock .product-image img {
    filter: grayscale(100%) brightness(0.6);
}

#lbNoStock {
    position: absolute;
    top: 45%;
    left: 0;
    width: 100%;
    background: rgba(33, 37, 41, 0.86);
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 8px 0;
    font-size: 18px;
    z-index: 2;
    display: none;
}

.product-image-wrapper.no-stock #lbNoStock {
    display: block;
}

.section-products {
    padding: 80px 0 54px;
}

    .section-products .header {
        margin-bottom: 50px;
    }

        .section-products .header h3 {
            font-size: 1rem;
            color: #198754;
            font-weight: 600;
        }

        .section-products .header h2 {
            font-size: 2.2rem;
            font-weight: 600;
            color: #1f2933;
        }

    .section-products .single-product {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
        margin-bottom: 26px;
        background: #ffffff;
        border: 1px solid rgba(25, 135, 84, 0.16);
        border-radius: 18px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.055);
        overflow: hidden;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    }

        .section-products .single-product:hover {
            transform: translateY(-4px);
            border-color: rgba(25, 135, 84, 0.34);
            box-shadow: 0 16px 34px rgba(25, 135, 84, 0.13);
        }

        .section-products .single-product .part-1 {
            position: relative;
            height: 290px;
            max-height: 290px;
            margin-bottom: 20px;
            overflow: hidden;
        }

            .section-products .single-product .part-1::before {
                position: absolute;
                content: "";
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                z-index: -1;
                transition: all 0.3s;
            }

        .section-products .single-product:hover .part-1::before {
            transform: scale(1.2,1.2) rotate(5deg);
        }

    .section-products #product-1 .part-1::before {
        background: url("https://i.ibb.co/L8Nrb7p/1.jpg") no-repeat center;
        background-size: cover;
        transition: all 0.3s;
    }

    .section-products #product-2 .part-1::before {
        background: url("https://i.ibb.co/cLnZjnS/2.jpg") no-repeat center;
        background-size: cover;
    }

    .section-products #product-3 .part-1::before {
        background: url("https://i.ibb.co/L8Nrb7p/1.jpg") no-repeat center;
        background-size: cover;
    }

    .section-products #product-4 .part-1::before {
        background: url("https://i.ibb.co/cLnZjnS/2.jpg") no-repeat center;
        background-size: cover;
    }

    .section-products .single-product .part-1 .discount,
    .section-products .single-product .part-1 .new {
        position: absolute;
        top: 15px;
        left: 20px;
        color: #ffffff;
        background-color: #dc3545;
        padding: 2px 8px;
        text-transform: uppercase;
        font-size: 0.85rem;
    }

    .section-products .single-product .part-1 .etiqueta {
        position: relative;
        top: 15px;
        left: 20px;
        padding: 2px 8px;
    }

    .section-products .single-product .part-1 .new {
        left: 0;
        background-color: #198754;
    }

    .section-products .single-product .part-1 ul {
        position: absolute;
        bottom: -41px;
        left: 20px;
        margin: 0;
        padding: 0;
        list-style: none;
        opacity: 0;
        transition: bottom 0.5s, opacity 0.5s;
    }

    .section-products .single-product:hover .part-1 ul {
        bottom: 30px;
        opacity: 1;
    }

    .section-products .single-product .part-1 ul li {
        display: inline-block;
        margin-right: 4px;
    }

        .section-products .single-product .part-1 ul li a {
            display: inline-block;
            width: 40px;
            height: 40px;
            line-height: 40px;
            background-color: #ffffff;
            color: #444444;
            text-align: center;
            box-shadow: 0 2px 20px rgb(50 50 50 / 10%);
            transition: color 0.2s;
        }

            .section-products .single-product .part-1 ul li a:hover {
                color: #198754;
            }

    .section-products .single-product .part-2 .product-title {
        font-size: 1rem;
    }

    .section-products .single-product .part-2 h4 {
        display: inline-block;
        font-size: 1rem;
    }

    .section-products .single-product .part-2 .product-old-price {
        position: relative;
        padding: 0 7px;
        margin-right: 2px;
        opacity: 0.6;
    }

        .section-products .single-product .part-2 .product-old-price::after {
            position: absolute;
            content: "";
            top: 50%;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #444444;
            transform: translateY(-50%);
        }

.product-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
}

.product-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: .55rem;
    color: #1f2933;
}

    .product-title:hover {
        color: #198754;
    }

    .product-title a,
    a.product-title {
        color: #1f2933 !important;
        transition: color 0.2s ease;
    }

        .product-title a:hover,
        a.product-title:hover {
            color: #198754 !important;
        }

.product-description-box {
    margin: 0.35rem 0 0.75rem 0;
}

.product-description {
    font-size: 0.88rem;
    line-height: 1.4;
    color: #6c757d;
    margin: 0;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.45rem;
    font-weight: 800;
    color: #198754;
    margin-bottom: 0.85rem;
}

    .product-price small {
        font-size: .82rem;
        font-weight: 600;
        color: #6c757d;
    }

.product-buy-box {
    margin-top: auto;
}

.product-label {
    font-size: .85rem;
    font-weight: 700;
    color: #2f3e46;
    margin-bottom: .35rem;
}

.quantity-control,
.cantidad-control,
.cantidad-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
}

.quantity-input {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    border-color: rgba(25, 135, 84, 0.22);
    box-shadow: none !important;
}

.product-observation {
    resize: none;
    font-size: .9rem;
    min-height: 70px;
    border-radius: .75rem;
    border: 1px solid rgba(25, 135, 84, 0.18);
    box-shadow: none !important;
}

    .product-observation:focus {
        border-color: rgba(25, 135, 84, 0.45);
        box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.12) !important;
    }

/* Botón principal agregar al carrito */
.btn-add-cart {
    width: 100%;
    min-height: 44px;
    border: none !important;
    border-radius: .9rem !important;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, #198754 0%, #20a763 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: .96rem !important;
    box-shadow: 0 10px 20px rgba(25, 135, 84, .20);
    transition: all .18s ease-in-out;
}

    .btn-add-cart:hover,
    .btn-add-cart:focus {
        background: linear-gradient(135deg, #157347 0%, #198754 100%) !important;
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 14px 24px rgba(25, 135, 84, .26);
    }

    .btn-add-cart:active {
        transform: translateY(0);
    }

/* Botón avisarme cuando haya stock */
.btn-stock-alert {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(25, 135, 84, .28) !important;
    border-radius: .9rem !important;
    padding: 11px 14px !important;
    background: #edf8f2 !important;
    color: #146c43 !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    transition: all .15s ease-in-out;
}

    .btn-stock-alert:hover {
        background: #198754 !important;
        border-color: #198754 !important;
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(25, 135, 84, .22);
    }

    .btn-stock-alert:focus {
        color: #146c43;
        box-shadow: 0 0 0 .25rem rgba(25, 135, 84, .18);
    }

.stock-alert-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(25, 135, 84, .12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-stock-alert:hover .stock-alert-icon {
    background: rgba(255, 255, 255, .18);
}

.stock-alert-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.1;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .50);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-text {
    color: #fff;
    margin-top: 1rem;
    text-align: center;
    padding: 0 1rem;
    font-size: 1rem;
}

/* Modal aviso stock */
.stock-modal-content {
    border: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
}

.stock-modal-header {
    background: linear-gradient(135deg, #198754, #146c43);
    color: #ffffff;
    border-bottom: 0;
    padding: 1.25rem;
}

    .stock-modal-header .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
    }

.stock-modal-subtitle {
    font-size: .92rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.stock-modal-footer {
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.char-counter {
    display: block;
    text-align: right;
    font-size: .8rem;
    margin-top: -.5rem;
}

/* Sección envíos */
.shipping-section {
    padding: 45px 16px;
    background: #f7f9f8;
}

.shipping-box {
    max-width: 920px;
    margin: 0 auto;
    padding: 24px 28px;
    background: #ffffff;
    border: 1px solid rgba(0, 128, 0, 0.12);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.shipping-info {
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
}

.shipping-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #198754, #20a763);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.shipping-text h3 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2933;
}

.shipping-text p {
    margin: 0;
    color: #6b7280;
    font-size: 0.98rem;
}

.shipping-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 170px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #198754;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 8px 18px rgba(0, 128, 0, 0.22);
}

    .shipping-btn:hover {
        background: #157347;
        color: #ffffff;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(0, 128, 0, 0.28);
    }

    .shipping-btn i {
        font-size: 0.9rem;
        transition: transform 0.25s ease;
    }

    .shipping-btn:hover i {
        transform: translateX(4px);
    }

/* / Estilos productos
-------------------------------------------------- */

/* RESPONSIVE CSS
-------------------------------------------------- */

@media (max-width: 576px) {
    .section-products .single-product {
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .product-card-body {
        padding: 14px;
    }

    .product-title {
        font-size: .95rem;
    }

    .product-description {
        font-size: .82rem;
        min-height: 36px;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .quantity-control {
        max-width: 100%;
    }

    .quantity-input {
        max-width: none;
        flex: 1;
    }

    .product-observation {
        min-height: 64px;
    }

    .btn-add-cart,
    .btn-stock-alert {
        width: 100%;
        font-size: .9rem !important;
        padding: 11px 12px !important;
    }
}

@media (min-width: 40em) {
    /* Bump up size of carousel content */
    .carousel-caption p {
        margin-bottom: 1.25rem;
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .featurette-heading {
        font-size: 50px;
    }
}

@media (min-width: 62em) {
    .featurette-heading {
        margin-top: 7rem;
    }
}

@media (max-width: 768px) {
    .shipping-section {
        padding: 32px 14px;
    }

    .shipping-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 22px;
    }

    .shipping-info {
        flex-direction: column;
        text-align: center;
    }

    .shipping-btn {
        width: 100%;
    }
}

/* ========================================= */
/* Inicio - Carousel mejorado */
/* ========================================= */

.home-carousel-section {
    background: #ffffff;
    padding-top: 18px;
    padding-bottom: 0;
}

.mo-carousel {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 0 0 22px 22px;
    border-top: 1px solid rgba(25, 135, 84, 0.10);
    border-bottom: 1px solid rgba(25, 135, 84, 0.12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.055);
}

.mo-carousel-inner {
    border-bottom: none;
}

.mo-carousel-item {
    position: relative;
    background: #ffffff;
}

.mo-carousel-img {
    width: 100%;
    height: clamp(300px, 24vw, 430px);
    object-fit: cover;
    object-position: center 58%;
    filter: none;
    background: #ffffff;
}

.mo-carousel-overlay {
    display: none;
}

.mo-carousel-content {
    display: none;
}

.mo-carousel-caption,
.mo-carousel-badge,
.mo-carousel-subtitle,
.mo-carousel-btn {
    display: none;
}

.mo-carousel-control {
    width: 52px;
    height: 52px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    opacity: 1;
    transition: all 0.2s ease-in-out;
}

    .mo-carousel-control:hover {
        background: rgba(25, 135, 84, 0.88);
    }

    .mo-carousel-control .carousel-control-prev-icon,
    .mo-carousel-control .carousel-control-next-icon {
        width: 1.35rem;
        height: 1.35rem;
    }

.mo-carousel-indicators {
    z-index: 5;
    margin-bottom: 16px;
}

    .mo-carousel-indicators button,
    .mo-carousel-indicators [data-bs-target] {
        width: 10px !important;
        height: 10px !important;
        border-radius: 999px !important;
        border: 0 !important;
        background-color: rgba(255, 255, 255, 0.72) !important;
        opacity: 1 !important;
        transition: all 0.22s ease-in-out;
    }

    .mo-carousel-indicators .active {
        width: 34px !important;
        background-color: #20a763 !important;
    }

/* ========================================= */
/* Inicio - Texto genérico */
/* ========================================= */

.generic-info-section {
    padding: 56px 16px;
}

.generic-info-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 34px 38px;
    border: 1px solid rgba(25, 135, 84, 0.14);
    border-radius: 26px;
    background: radial-gradient(circle at top left, rgba(32, 167, 99, 0.13), transparent 34%), #ffffff;
    box-shadow: 0 16px 44px rgba(25, 135, 84, 0.10);
    display: flex;
    align-items: center;
    gap: 28px;
}

.generic-info-icon {
    width: 78px;
    height: 78px;
    min-width: 78px;
    border-radius: 24px;
    background: linear-gradient(135deg, #198754, #20a763);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 14px 28px rgba(25, 135, 84, 0.24);
}

.generic-info-content {
    text-align: left;
}

.generic-info-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #198754;
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.generic-info-content h2 {
    margin: 0 0 12px;
    color: #1f2933;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    font-weight: 800;
    line-height: 1.15;
}

.generic-info-content p {
    margin: 0;
    color: #5f6f64;
    font-size: 1.08rem;
    line-height: 1.72;
}

/* ========================================= */
/* Inicio - Logo final */
/* ========================================= */

.home-logo-section {
    padding: 42px 16px 68px;
}

.home-logo-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 34px 24px;
    border: 1px solid rgba(25, 135, 84, 0.12);
    border-radius: 26px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.055);
}

.home-logo-img {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin-bottom: 18px;
}

.home-logo-card p {
    margin: 0;
    color: #5f6f64;
    font-size: 1rem;
    font-weight: 600;
}

/* ========================================= */
/* Responsive inicio */
/* ========================================= */

@media (max-width: 768px) {
    .home-carousel-section {
        padding-top: 14px;
        padding-bottom: 0;
    }

    .mo-carousel-img {
        height: clamp(220px, 52vw, 340px);
        object-fit: cover;
        object-position: center 58%;
    }

    .mo-carousel-control {
        width: 42px;
        height: 42px;
        margin: 0 8px;
    }

    .mo-carousel-indicators {
        margin-bottom: 10px;
    }

    .generic-info-section {
        padding: 38px 14px;
    }

    .generic-info-card {
        padding: 28px 22px;
        flex-direction: column;
        text-align: center;
        border-radius: 22px;
    }

    .generic-info-content {
        text-align: center;
    }

    .generic-info-icon {
        width: 68px;
        height: 68px;
        min-width: 68px;
        font-size: 30px;
        border-radius: 20px;
    }

    .generic-info-content p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .home-logo-section {
        padding: 32px 14px 52px;
    }

    .home-logo-card {
        border-radius: 22px;
    }

    .home-logo-img {
        max-width: 210px;
    }
}

@media (max-width: 420px) {
    .mo-carousel-img {
        height: 230px;
        object-fit: cover;
        object-position: center 58%;
    }

    .mo-carousel-control {
        display: none;
    }
}

/* Cantidad - estilo botones e input */
.cantidad-control {
    width: 100%;
}

.cantidad-input-group {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    border: 1px solid rgba(25, 135, 84, 0.22);
    border-radius: .9rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(25, 135, 84, 0.08);
}

    .cantidad-input-group .quantity-btn {
        width: 46px;
        min-width: 46px;
        height: 44px;
        flex: 0 0 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none !important;
        background: #f4fbf6 !important;
        color: #198754 !important;
        font-size: 1.25rem;
        font-weight: 800;
        line-height: 1;
        transition: all .15s ease-in-out;
        box-shadow: none !important;
    }

        .cantidad-input-group .quantity-btn:hover,
        .cantidad-input-group .quantity-btn:focus {
            background: linear-gradient(135deg, #198754 0%, #20a763 100%) !important;
            color: #ffffff !important;
        }

        .cantidad-input-group .quantity-btn:active {
            transform: scale(0.96);
        }

        .cantidad-input-group .quantity-btn.decrement {
            border-radius: .85rem 0 0 .85rem;
        }

        .cantidad-input-group .quantity-btn.increment {
            border-radius: 0 .85rem .85rem 0;
        }

    .cantidad-input-group .quantity-input {
        width: 100% !important;
        max-width: none !important;
        min-width: 0;
        flex: 1 1 auto;
        height: 44px;
        text-align: center;
        font-weight: 800;
        color: #1f2933;
        background: #ffffff;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

        .cantidad-input-group .quantity-input:focus {
            background: #ffffff;
            box-shadow: inset 0 0 0 2px rgba(25, 135, 84, 0.18) !important;
        }

        .cantidad-input-group .quantity-input::-webkit-outer-spin-button,
        .cantidad-input-group .quantity-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .cantidad-input-group .quantity-input[type=number] {
            -moz-appearance: textfield;
        }

/* / RESPONSIVE CSS
-------------------------------------------------- */
