/* Container */
.products.index.content {
    padding: 40px 20px;
    text-align: center;
}

/* Page title */
.products.index.content .page-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    justify-items: center;
}

/* Tablet */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 300px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Product Name */
.product-card h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #222;
}

/* Price */
.product-card .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: red;
    margin-bottom: 10px;
}

/* Description */
.product-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

/* Medical Badge */
.medical-badge {
    display: inline-block;
    background: greenyellow;
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
}

.qty-input {
    width: 60px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

/* Buy Button */
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;             /* same as .qty-input */
    min-width: 70px;
    padding: 0 16px;
    background: red;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-buy:hover {
    background: #000;
}

.medical-badge {
    cursor: help; /* shows help icon */
}

.medical-badge.empty {
    background: transparent;
    color: transparent;
    border: none;
}
