/* Product Card V2 - Shared Styles */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.product-card-v2 {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: #111;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
    width: 100%;
}

.product-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.12);
    border-color: transparent;
}

.product-card-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #f9fafb;
}

.product-card-image a {
    position: absolute;
    inset: 0;
    display: block;
}

.product-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card-v2:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

/* Product Name Row - Name + Category Badge */
.product-name-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.product-name-row h3 {
    font-size: 1.15rem;
    margin: 0;
    font-weight: 700;
    color: #111827;
    flex: 1;
    line-height: 1.3;
}

.product-name-row h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name-row h3 a:hover {
    color: #00CCFF;
}

.product-chip {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Product Info Row - Price + Stock */
.product-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-info-row .price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ef4444;
    margin: 0;
}

.stock-info {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Product Actions - Cart Icon + Buy Now Button */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-add-cart {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-add-cart i {
    font-size: 1.5rem;
    color: #6b7280;
    transition: color 0.3s ease;
}

.btn-add-cart:hover {
    background: #f9fafb;
    border-color: #00CCFF;
    transform: translateY(-2px);
}

.btn-add-cart:hover i {
    color: #00CCFF;
}

.btn-buy-now {
    flex: 1;
    height: 50px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #00CCFF 0%, #00AEEF 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 204, 255, 0.3);
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 204, 255, 0.4);
}

/* Wishlist Button */
.product-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-wishlist-btn i {
    font-size: 1.4rem;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.product-wishlist-btn:hover {
    background: #fff;
    border: 1px solid #ff1744;
    transform: scale(1.1);
}

.product-wishlist-btn:hover i {
    color: #ff1744;
}

.product-wishlist-btn.active {
    background: #ff1744;
    border-color: #ff1744;
}

.product-wishlist-btn.active i {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-name-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .product-name-row h3 {
        font-size: 1rem;
    }
    
    .product-info-row .price {
        font-size: 1.2rem;
    }
    
    .btn-add-cart {
        width: 45px;
        height: 45px;
    }
    
    .btn-buy-now {
        height: 45px;
        font-size: 0.85rem;
    }
}
