/*
 Theme Name: Astra Child
 Theme URI: https://tu-tienda-online.com
 Description: Tema hijo para la tienda con Astra.
 Author: Tu Nombre
 Author URI: https://tu-web.com
 Template: astra
 Version: 1.0.0
 Text Domain: astra-child
*/






/* ============================
   TARJETAS DE PRODUCTOS
   ============================ */
.custom-product-card {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-card-wrapper {
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    text-align: center;
    transition: none !important;
}

.product-card-wrapper:hover {
    transform: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

/* ============================
   IMAGEN Y BADGE
   ============================ */
.product-image {
    position: relative;
    margin-bottom: 12px;
    text-align: center;
}

.wapl-label {
    position: absolute !important;
    top: -10px;
    right: -10px;
    z-index: 20;
    background: #ff5252;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 8px;
    height: 35px;
    border-radius: 3px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ============================
   INFO y PUNTUACIÓN
   ============================ */
.product-info {
    flex-grow: 1;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 8px;
    height: 40px;
    overflow: hidden;
    white-space: normal;
}

.product-title a {
    text-decoration: none;
    color: #222;
}

/* Rating */
.product-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: #555;
}

.product-rating .rating-number {
    margin-left: 5px;
    font-weight: bold;
}

.product-price {
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: bold;
    color: #111;
}

/* ============================
   BOTONES DE ACCIÓN
   ============================ */
.product-actions {
    margin-top: 10px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-4px);
}

/* Estilo para botones */
.product-actions a,
.product-actions button {
    display: block;
    width: 90%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #ffffff;
    color: #333 !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: background 0.3s;
    text-align: center;
}

/* Separación entre botones */
.product-actions a+a {
    margin-top: -15px !important;
}

/* Hover */
.product-actions a:hover,
.product-actions button:hover {
    background: #eee;
}

/* ============================
   GRID DE PRODUCTOS
   ============================ */
ul.products li.product {
    margin: 10px !important;
    width: calc(25% - 20px);
}

@media (max-width: 1024px) {
    ul.products li.product {
        width: calc(33.33% - 20px);
    }
}

@media (max-width: 768px) {
    ul.products li.product {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    ul.products li.product {
        width: 100%;
    }
}













/* ============================
   MODAL UNIFICADO DEL MAPA
   ============================ */
#mapModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 20px;
}

#mapModal .map-content {
    background: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    height: auto;
    max-height: 90vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

#mapModal h2 {
    margin-top: 0;
}

#map {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    border-radius: 8px;
}

#mapModal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

/* Evitar desplazamiento del fondo cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
}



