.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    max-width: 280px;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-modal-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-title.product-modal-trigger:hover {
    color: var(--tools-blue);
}

.product-image-container.product-modal-trigger:hover .product-image {
    transform: scale(1.1);
}

/* Prevent modal trigger on buttons */
.product-actions {
    pointer-events: auto;
    z-index: 1;
    position: relative;
}

.featured-tag {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--tools-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 1;
}

.product-details {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: white;
}

.category-tag {
    display: inline-block;
    background-color: rgba(var(--tools-blue-rgb), 0.1);
    color: var(--tools-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background-color: rgba(var(--tools-blue-rgb), 0.2);
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--tools-blue);
}

.product-description {
    color: #666;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    font-size: 0.875rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tools-blue);
    margin-bottom: 1rem;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: auto;
}

.action-button {
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
}

.whatsapp-button:hover {
    background-color: #1ea952;
}

.cart-button {
    background-color: #0071DC;
    color: white;
    border: none;
}

.cart-button:hover {
    background-color: #004F9A;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 113, 220, 0.2);
}

.cart-button:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .product-card {
        max-width: 240px;
    }
    
    .product-image-container {
        height: 160px;
    }
    
    .product-details {
        padding: 0.75rem;
    }
    
    .action-button {
        padding: 0.4rem;
        font-size: 0.7rem;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .product-description {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
}