/* --------------------------------------------
   Estilos personalizados para Zidrapt Store
---------------------------------------------*/

/* Colores base */
.bg-primary {
    background-color: #000000 !important;
}

.text-primary {
    color: #292D30 !important;
}

.border-primary {
    border-color: #292D30 !important;
}

/* Botón primario */
.btn-primary {
    background-color: #3196D6;
    border-color: #3196D6;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #257db3;
    border-color: #257db3;
    color: white;
}

/* Sección Hero */
.hero-section,
.hero-section-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-section h2 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    color: #333333;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: all 0.3s ease;
}

.close-button:hover {
    background-color: #f2f2f2;
    color: #e74c3c;
    transform: scale(1.1);
}

/* Tarjetas de producto */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.card-img-container {
    width: 100%;
    height: 200px; /* Puedes ajustar esta altura si deseas más espacio */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
    padding: 8px;
}

.card-img-container img,
.card-img-top {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 👈 esto es lo que permite mostrar la imagen completa */
    transition: transform 0.3s ease;
    border-radius: 8px;
}




.card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card {
    animation: fadeInUp 0.6s ease;
    flex: 1 1 250px;
    max-width: 350px;
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: scale(1.02);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.price-section h4 {
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Botón de WhatsApp */
.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #20BA5A;
    border-color: #20BA5A;
    transform: scale(1.05);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botones y animaciones */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Filtro activo */
.btn-outline-primary.active {
    background-color: #0d6efd;
    color: white;
}

/* Estilos del Admin */
.navbar-brand {
    font-weight: bold;
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.table img {
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h2 {
        font-size: 2rem;
    }

    .card-img-container {
        height: 220px;
    }

    .card-body h5 {
        font-size: 1rem;
    }

    .card-body p {
        font-size: 0.9rem;
    }

    .price-section h4 {
        font-size: 1.1rem;
    }
}





























/* Uniformar las tarjetas de producto */
.card.h-100 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Contenedor de imagen para controlar tamaño */
.card-img-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* relación 1:1 para cuadrado */
    overflow: hidden;
}

/* Imagen dentro de la tarjeta */
.card-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* mantiene proporciones, sin recorte */
    object-position: center;
}

/* Botón de WhatsApp ajustado */
.btn-whatsapp {
    background-color: #25d366;
    border: none;
}
.btn-whatsapp:hover {
    background-color: #1ebe5d;
}

/* Responsive para columnas */
@media (max-width: 767.98px) {
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}



.product-card .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-img-top {
    width: 100%;
    height: 200px; /* Puedes ajustar según lo que te guste */
    object-fit: contain; /* Hace que la imagen se vea completa */
}
