/* tienda-cupra.css — Estilos para la tienda CUPRA Shop completa */

.tienda-cupra-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 32px);
}

.tienda-cupra-grid {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.coleccion-card {
    background: #fff;
    border-radius: 16px;
    padding: clamp(28px, 4vw, 48px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    scroll-margin-top: 80px;
}

.coleccion-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--line);
}

.coleccion-nombre {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin: 0;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.coleccion-count {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.producto-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.producto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.producto-imagen {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.08);
}

.producto-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.producto-nombre {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.producto-precio {
    font-size: 18px;
    font-weight: 700;
    color: var(--copper-2);
    margin: 0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20BA5C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
    transform: translateY(0);
}

.btn-whatsapp svg {
    flex-shrink: 0;
}

.tienda-aviso {
    margin-top: 56px;
    padding: 32px;
    background: rgba(11, 11, 12, 0.03);
    border-radius: 12px;
    border-left: 4px solid var(--copper-2);
}

.tienda-aviso p {
    margin: 0 0 12px;
    font-size: 15px;
    color: rgba(11, 11, 12, 0.75);
    line-height: 1.7;
}

.tienda-aviso p:last-child {
    margin-bottom: 0;
}

.tienda-aviso strong {
    color: var(--ink);
    font-weight: 600;
}

/* Navegación por colecciones */
.colecciones-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 16px 0;
    margin-bottom: 32px;
    z-index: 10;
    border-bottom: 1px solid var(--line);
}

.colecciones-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: var(--max);
    margin: 0 auto;
}

.colecciones-nav a {
    display: block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.colecciones-nav a:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

/* Responsive */
@media (max-width: 1024px) {
    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }
    
    .producto-info {
        padding: 16px;
    }
    
    .producto-nombre {
        font-size: 14px;
    }
    
    .producto-precio {
        font-size: 16px;
    }
    
    .btn-whatsapp {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .coleccion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .coleccion-card {
        padding: 20px;
    }
}

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

.producto-card {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.producto-card:nth-child(1) { animation-delay: 0.05s; }
.producto-card:nth-child(2) { animation-delay: 0.1s; }
.producto-card:nth-child(3) { animation-delay: 0.15s; }
.producto-card:nth-child(4) { animation-delay: 0.2s; }
.producto-card:nth-child(5) { animation-delay: 0.25s; }
.producto-card:nth-child(6) { animation-delay: 0.3s; }
