/* Estilos para el frontend del plugin Boutique Manager */

/* Grid principal */
.boutique-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

/* Ajuste responsive */
@media (max-width: 768px) {
    .boutique-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .boutique-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Columnas personalizables */
.boutique-grid[data-columnas="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.boutique-grid[data-columnas="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Elementos individuales */
.boutique-item {
    background: #fff;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.boutique-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Imagen */
.boutique-imagen {
    position: relative;
    overflow: hidden;
    padding-bottom: 75%; /* Proporción 4:3 */
}

.boutique-imagen img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.boutique-item:hover .boutique-imagen img {
    transform: scale(1.05);
}

/* Contenido */
.boutique-contenido {
    padding: 20px;
}

.boutique-titulo {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: "Samas", Sans-serif;
}

.boutique-descripcion {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    font-family: "Samas", Sans-serif;
}

.boutique-descripcion p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}


/* Modal de WhatsApp */
.boutique-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boutique-modal-content {
    background-color: #fff;
    margin: 0 auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.boutique-modal-header {
    background: #f8f8f8;
    color: #333;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.boutique-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: "Samas", Sans-serif;
    color: #333;
}

.boutique-modal-body {
    padding: 0;
    overflow-y: auto;
}

/* Nuevo diseño de tarjeta de producto */
.producto-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}

.producto-imagen-modal {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 300px;
}

.producto-imagen-modal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.producto-info {
    width: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.producto-titulo-modal {
    margin: 0 0 15px 0;
    font-size: 2rem;
    color: #333;
    font-family: "Samas", Sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.producto-descripcion-modal {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
    font-family: "Samas", Sans-serif;
    font-size: 1rem;
}

.producto-detalles-adicionales {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.producto-contacto {
    margin-top: auto;
    padding-top: 20px;
}

.producto-contacto p {
    margin: 0 0 15px 0;
    color: #666;
    font-weight: 500;
    font-family: "Samas", Sans-serif;
}

.boutique-modal-actions {
    text-align: center;
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.boutique-whatsapp-button {
    background: #25D366;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Samas", Sans-serif;
    width: auto;
    min-width: 200px;
    justify-content: center;
}

.boutique-whatsapp-button:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.4);
}

.boutique-whatsapp-button svg {
    flex-shrink: 0;
}

.boutique-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.boutique-modal-close:hover {
    opacity: 0.7;
}

/* Responsive para el nuevo modal */
@media (max-width: 768px) {
    .boutique-modal-content {
        width: 95%;
        margin: 0 auto;
    }
    
    .producto-imagen-modal {
        height: 200px;
    }
    
    .producto-info {
        padding: 15px;
    }
    
    .producto-titulo-modal {
        font-size: 1.5rem;
    }
    
    .boutique-whatsapp-button {
        padding: 12px 25px;
        font-size: 14px;
        min-width: 180px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive para modal */
@media (max-width: 768px) {
    .boutique-modal-content {
        margin: 20% auto;
        width: 95%;
    }
    
    .boutique-modal-body {
        padding: 20px;
    }
    
    .boutique-whatsapp-button {
        padding: 12px 25px;
        font-size: 14px;
    }
}
