
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f8fafc;
    --glass: rgb(0 0 0 / 90%);
    --text-main: #1e293b;
    --text-muted: #e1e1e1;
    --shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.07);
    --radius: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    margin: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Estilo App */
.wishlist-header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-back {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.btn-back:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 800;
    color: antiquewhite;
}

.site-title span {
    color: var(--primary);
}

/* Filtros */
.filters-grid {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.select-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.select-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

select {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    font-weight: 500;
}

.button-group {
    display: flex;
    gap: 0.5rem;
}

.btn-filter {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Rejilla de productos */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}





  /* Contenedor Principal de la Tarjeta */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 350px;
    transition: all 0.3s ease;
    
    /* BORDE DEFINIDO: Tono gris-azulado sutil pero visible */
    border: 1px solid #d1d8e0; 
    
    /* SOMBRA BASE: Para separar del fondo */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    /* CAMBIO DE COLOR EN BORDE: Para resaltar la selección */
    border-color: #0984e3; 
    
    /* ELEVACIÓN: Sombra más profunda para dar volumen */
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Opcional: Separación entre tarjetas si están en un grid */
.product-grid {
    display: grid;
    gap: 20px;
    padding: 20px;
}


.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px; /* Altura fija para controlar el tamaño */
    background-color: #f8f9fa; /* Fondo neutro para el espacio sobrante */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px; /* Espacio interno para que la imagen no toque los bordes */
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Muestra la imagen completa sin zoom */
    transition: transform 0.3s ease;
}

/* Efecto sutil al pasar el mouse */
.product-card:hover .product-image-container img {
    transform: scale(1.05);
}


.censored img {
    filter: blur(12px) grayscale(0.8);
}

.integrity-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Detalles del Producto */
.product-info-details {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3436;
    line-height: 1.2;
}

.product-desc {
    font-size: 0.9rem;
    color: #636e72;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.product-promotion {
    font-size: 0.85rem;
    color: #25D366;
    font-weight: 600;
    margin: 0;
}

/* Meta Data (Badges) */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.product-price-main {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0984e3;
    width: 100%;
    margin-bottom: 4px;
}

.badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 6px;
    background: #f1f2f6;
    color: #4b4b4b;
    border: 1px solid #dfe4ea;
}

/* Grid de Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s;
    color: white;
}

.bg-whatsapp { background: #25D366; }
.bg-phone { background: #3498db; }
.bg-telegram { background: #0088cc; }
.bg-gps { background: #e67e22; }

.btn-contact:hover { opacity: 0.9; }

/* Footer de Acciones */
.actions-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-delete-fav {
    background: transparent;
    border: none;
    color: #ff7675;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-icon-btn {
    background: #f1f2f6;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    color: #2d3436;
    transition: background 0.2s;
}

.action-icon-btn:hover {
    background: #dfe4ea;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease backwards;
}



