﻿/* Contenedor de las tarjetas */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-left: 230px; /* Ajusta si usas sidebar */
    margin-right: 230px; /* Ajusta si usas sidebar derecho */
    padding-top: 200px;
    padding-bottom: 100px;
    box-sizing: border-box;
}

/* Tarjeta individual */
.card {
    width: calc(45% - 10px);
    margin-bottom: 20px;
    background-color: #F4F4F4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s ease;
}

    .card:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

/* Imagen dentro de la tarjeta */
.card-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
}

/* Contenido de la tarjeta */
.card-body {
    padding: 10px;
}

.card-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.card-description {
    margin-bottom: 10px;
    font-size: 20px;
}

.card-price {
    font-size: 30px;
    font-weight: bold;
    color: #020202;
}

/* Botón */
.add-to-cart-btn {
    background-color: #278cb0;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    display: block;
    margin: 10px auto 0;
}

    .add-to-cart-btn:hover {
        background-color: #838883;
    }

/* Responsive */
@media (max-width: 1024px) {
    .container {
        margin-left: 230px;
        margin-right: 15px;
    }

    .card {
        width: 100%;
    }

    .card-description {
        font-size: 18px;
    }

    .card-price {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 120px 10px 80px 10px;
        flex-direction: column;
    }

    .card {
        width: 100%;
    }

    .card-description {
        font-size: 16px;
    }

    .card-price {
        font-size: 20px;
    }

    .add-to-cart-btn {
        font-size: 16px;
        width: 100%;
    }
}
