/**
 * Product Card Component
 * Shared styles for product cards across all pages
 */

.product-card {
    background: var(--dark-light);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.product-card-image {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
    background: var(--dark);
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.product-card-actions {
    display: flex;
    gap: 8px;
}

.product-card-action {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.product-card-action:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.product-card-action.wishlisted {
    background: #ef4444;
    color: var(--white);
}

.product-card-action.wishlisted:hover {
    background: #dc2626;
    color: var(--white);
    transform: scale(1.1);
}

.product-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
}

.product-card-content {
    padding: 20px;
}

.product-card-category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card-title a:hover {
    color: var(--primary);
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card-price .current {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.product-card-price .original {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
}

.product-card-price .free {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
}

.product-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--gray);
}

.product-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .product-card-content {
        padding: 16px;
    }
    
    .product-card-title {
        font-size: 14px;
    }
    
    .product-card-price .current {
        font-size: 16px;
    }
}
