﻿/* ===== Page Title ===== */
h3 {
    letter-spacing: 0.5px;
}

/* ===== Search Card ===== */
.card {
    border-radius: 14px;
}

input.form-control-lg {
    border-radius: 30px;
    padding-left: 20px;
}

/* ===== Product Card ===== */
.medicine-card {
    border-radius: 18px;
    transition: all 0.3s ease;
    background: #fff;
}

    .medicine-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    }

/* ===== Product Image ===== */
.product-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .product-img:hover {
        transform: scale(1.05);
    }

/* ===== Product Title ===== */
.card-title {
    font-size: 15px;
    min-height: 42px;
}

/* ===== Price Section ===== */
.card-text + p {
    margin-top: 5px;
}

.text-success {
    font-size: 18px;
}

/* ===== Buttons ===== */
.btn-sm {
    border-radius: 30px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #084298);
    border: none;
}

.btn-outline-secondary:hover {
    background: #f1f1f1;
}

/* ===== Pagination ===== */
.btn-outline-secondary {
    border-radius: 30px;
    font-weight: 600;
}

/* ===== Loading Spinner ===== */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ===== Mobile Optimization ===== */
@media (max-width: 576px) {
    .product-img {
        height: 150px;
    }

    .card-title {
        font-size: 14px;
    }
}


/* ===== Product Card Wrapper ===== */
.medicine-card {
    position: relative;
    overflow: hidden;
}

    /* ===== Discount Badge ===== */
    .medicine-card::before {
        content: "SALE";
        position: absolute;
        top: 12px;
        left: 12px;
        background: linear-gradient(135deg, #dc3545, #b02a37);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 20px;
        z-index: 2;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    /* ===== Wishlist Heart ===== */
    .medicine-card::after {
        content: "❤";
        position: absolute;
        top: 10px;
        right: 12px;
        width: 34px;
        height: 34px;
        background: #fff;
        color: #dc3545;
        font-size: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
        transition: all 0.3s ease;
    }

    .medicine-card:hover::after {
        transform: scale(1.1);
    }

/* ===== Rating Stars ===== */
.card-title::after {
    content: " ★★★★☆";
    display: block;
    font-size: 13px;
    color: #f4c150;
    margin-top: 4px;
}

/* ===== Image Container Look ===== */
.product-img {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 8px;
}

/* ===== Price Highlight ===== */
.text-decoration-line-through {
    font-size: 13px;
}

.text-success {
    font-size: 19px;
    font-weight: 700;
}

/* ===== Button Hover Effect ===== */
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(13,110,253,0.35);
}

/* ===== Card Hover Glow ===== */
.medicine-card:hover {
    border: 1px solid rgba(13,110,253,0.15);
}
