﻿.tienda-panel {
    display: flex;
    gap: 24px;
    background: #fff;
    padding: 32px 24px;
    margin-top: 32px;
    border-radius: 8px;
    box-shadow: 0px 2px 10px #ececec;
    flex-wrap: wrap; /* para que las cajas puedan ir a la siguiente fila */
}

.tienda-img-container,
.tienda-info-container {
    flex: 1 1 50%; /* base para desktop: 2 columnas de 50% */
    max-width: 50%;
}

@media (max-width: 768px) {
    .tienda-panel {
        flex-direction: column; /* Cambiar a columna en móvil */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box; /* para no exceder el ancho con padding */
    }

    .tienda-img-container,
    .tienda-info-container {
        flex: 1 1 100%;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box; /* para no exceder el ancho con padding */
    }
}
/* Opcional para que la imagen ocupe todo el ancho del contenedor y no se limite por .tienda-img-left */
.tienda-img-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 10px #f0f0f0;
    background: #f9f9f9;
}

.tienda-img-left {
    width: 270px;
    height: 270px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 10px #f0f0f0;
    margin-right: 12px;
    background: #f9f9f9;
}

.tienda-info-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    min-width: 300px;
}

    .tienda-info-right h2 {
        color: #243147;
        font-size: 2.1rem;
        font-weight: bold;
        margin-bottom: 8px;
    }

.tienda-info-list {
    margin-bottom: 15px;
    margin-top: 15px;
}

    .tienda-info-list span {
        font-weight: 600;
        color: #01234a;
    }

.slider-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    margin-top: 30px;
}

.producto-card {
    background: #ffffff;
    border-radius: 0.375rem; /* 6px */
    box-shadow: 0 2px 10px rgb(236 236 236);
    padding: 1rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .producto-card img {
        max-width: 100%;
        height: 110px;
        object-fit: contain;
        border-radius: 6px;
        background: #fff;
        margin-bottom: 10px;
        margin-left: auto;
        margin-right: auto;
    }

    .producto-card h4 {
        margin-bottom: 8px;
        font-size: 1.09rem;
        font-weight: 600;
        color: #243147;
    }

    .producto-card .precio {
        font-size: 1.09rem;
        color: #249aaa;
        font-weight: bold;
        margin-bottom: 12px;
    }


.prod-tienda-price-container {
    font-weight: 700;
    display: flex;
    flex-direction: column; /* siempre en columna para poner uno encima de otro */
    align-items: flex-start;
    margin-bottom: 1rem;
}

.prod-tienda-price-before {
    font-size: 0.85rem;
    color: gray;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.prod-tienda-price-current {
    font-size: 1.05rem;
    color: black;
}

.prod-tienda-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #dc3545;
    color: white;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 20;
    user-select: none;
    pointer-events: none;
    border: 2px solid white;
}

.card-prod {
    margin-bottom: 10px !important;
}


.btn-cotizar {
    background-color: #2e8b57;
    color: white !important;
    padding: 7px 20px;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.07em;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    align-self: center;
    transition: background-color 0.3s ease;
}

    .btn-cotizar:hover {
        background-color: #246b44;
        color: white !important;
        text-decoration: none;
    }

.carousel-inner {
    padding-bottom: 50px !important;
}

.swiper {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

/* 🔹 Estilo solo para pantallas grandes (desktop) */
@media (min-width: 992px) {
    .swiper {
        height: 400px !important;
        min-height: 400px !important;
    }
}

/* 🔹 Estilo para móviles (pantallas pequeñas) */
@media (max-width: 991px) {
    .swiper {
        height: auto !important;
        min-height: auto !important;
    }
}
