.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.device-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.device-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.device-image {
    width: 100%;
    height: 220px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
}

.device-card:hover .device-image {
    transform: scale(1.05);
}

.device-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.device-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.device-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.star { color: #FFD700; font-size: 1rem; }
.star-off { color: rgba(255, 255, 255, 0.2); font-size: 1rem; }

.device-action {
    margin-top: auto;
    padding: 0.8rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.device-card:hover .device-action {
    background: var(--primary);
    color: white;
}

