/* Container principal */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Cardul de produs */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #3498db;
}

/* Imaginea */
.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Păstrează proporțiile fără a tăia imaginea */
    transition: transform 0.5s ease;
    padding: 10px;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Detalii produs */
.product-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vendor-tag {
    font-size: 0.75rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.1rem;
    margin: 5px 0 10px 0;
    height: 2.6rem; /* Limitează la 2 rânduri */
    overflow: hidden;
    line-height: 1.3;
}

.product-title a {
    color: #2c3e50;
    text-decoration: none;
}

/* Rating */
.product-rating {
    margin-bottom: 15px;
    color: #f1c40f;
    font-size: 0.85rem;
}

.reviews-count {
    color: #bdc3c7;
    margin-left: 5px;
}

/* Preț */
.product-price-row {
    margin-top: auto;
    padding-bottom: 15px;
}

.price-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #e74c3c;
}

.price-currency {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e74c3c;
    margin-left: 2px;
}

/* Butoane */
.product-actions {
    display: flex;
    gap: 10px;
}

.btn-view {
    flex-grow: 1;
    background: #f8f9fa;
    color: #2c3e50;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    transition: background 0.2s;
}

.btn-view:hover {
    background: #e9ecef;
}

.btn-add-cart {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-cart:hover {
    background: #2980b9;
}

/* Badges */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
    text-transform: uppercase;
}

.badge-out { background: #e74c3c; color: white; }
.badge-low { background: #f39c12; color: white; }