/* ========================================
   TARJETAS DE PRODUCTOS MODERNAS - iLoveJoya
   ======================================== */

.products-section {
    padding: 80px 20px;
    background: #f8f8f8;
}

.products-section h2 {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 2.8em;
    margin-bottom: 60px;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tarjeta individual de producto */
.product-card-modern {
    background: white;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Contenedor de imagen */
.product-image-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card-modern:hover .product-image-container img {
    transform: scale(1.05);
}

/* Badge NEW IN */
.badge-new {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #000;
    color: white;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'Cinzel', serif;
    z-index: 2;
}

/* Botón de favoritos (corazón) */
.btn-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-favorite:hover {
    background: #000;
    transform: scale(1.1);
}

.btn-favorite i {
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

.btn-favorite:hover i {
    color: white;
}

.btn-favorite.active i {
    color: #e74c3c;
}

/* Información del producto */
.product-info-modern {
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name-modern {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 40px;
}

.product-material {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    font-family: Arial, sans-serif;
}

.product-price-modern {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: auto;
    font-family: 'Cinzel', serif;
    padding-bottom: 15px;
}

/* Círculos de colores ELIMINADOS */

/* Botón añadir al carrito */
.btn-add-modern {
    width: 100%;
    padding: 12px;
    background: #000;
    color: white;
    border: none;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-add-modern:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-add-modern:active {
    transform: translateY(0);
}

/* Animación al agregar al carrito */
@keyframes addedToCart {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.btn-add-modern.added {
    background: #27ae60;
    animation: addedToCart 0.4s ease;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .product-image-container {
        height: 280px;
    }
    
    .products-section h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .product-image-container {
        height: 350px;
    }
}

/* Sección de productos destacados con diseño de catálogo */
.featured-catalog-section {
    padding: 80px 20px;
    background: white;
}

.catalog-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #1a1a1a;
    letter-spacing: 2px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.catalog-item {
    text-align: center;
    padding: 30px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.catalog-item:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.catalog-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.catalog-item-code {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.catalog-item-name {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.catalog-item-specs {
    font-size: 11px;
    color: #666;
    line-height: 1.6;
}

