﻿/* ===== Navbar ===== */
.navbar {
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1050;
}

.navbar-brand img {
    border-radius: 6px;
}

.nav-link {
    position: relative;
    color: #333 !important;
}

.hover-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0d6efd;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.hover-link:hover::after {
    width: 100%;
}

/* ===== Cart Badge ===== */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    font-size: 11px;
    padding: 4px 6px;
}

/* ===== Profile Dropdown ===== */
.dropdown-menu {
    border-radius: 14px;
}

.dropdown-item i {
    margin-right: 8px;
    color: #0d6efd;
}

/* ===== Body Spacing ===== */
body {
    background: #f8f9fa;
}

.container {
    max-width: 1320px;
}

/* ===== Page Content Wrapper ===== */
.page-wrapper {
    margin-top: 90px;
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, #0d6efd, #084298);
}

/* ===== Sticky Shadow on Scroll ===== */
.navbar.scrolled {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ===== Navbar Search ===== */
.nav-search input {
    border-radius: 30px;
    padding: 8px 18px;
    width: 240px;
    background: #f1f3f5;
    border: none;
}

    .nav-search input:focus {
        box-shadow: 0 0 0 2px rgba(13,110,253,.25);
    }

/* ===== Notification Badge ===== */
.notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 10px;
    padding: 3px 6px;
}

/* ===== Dark Toggle ===== */
.dark-toggle {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 16px;
}

/* ===== Dark Mode ===== */
.dark-mode {
    background: #121212;
    color: #eaeaea;
}

    .dark-mode .navbar,
    .dark-mode footer {
        background: #1f1f1f !important;
    }

    .dark-mode .nav-link {
        color: #eaeaea !important;
    }

    .dark-mode .dropdown-menu {
        background: #2a2a2a;
    }

    .dark-mode .dropdown-item {
        color: #eaeaea;
    }

        .dark-mode .dropdown-item:hover {
            background: #333;
        }

/* ===== Mobile Fix ===== */
@media (max-width: 992px) {
    .nav-search {
        width: 100%;
        margin: 10px 0;
    }
}


.card {
    transition: all 0.3s ease;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }

textarea:focus,
input:focus {
    box-shadow: 0 0 0 2px rgba(13,110,253,.25);
}




.hero-section {
    background: linear-gradient(135deg, #0d6efd, #084298);
    border-radius: 0 0 40px 40px;
}

.service-card {
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    height: 100%;
}

    .service-card i {
        font-size: 32px;
        color: #0d6efd;
        margin-bottom: 10px;
    }

    .service-card h6 {
        font-weight: 700;
    }

.medicine-card {
    transition: all 0.3s ease;
}

    .medicine-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

.product-img {
    height: 160px;
    object-fit: contain;
    margin-bottom: 10px;
}




/* ================= ABOUT SECTION ================= */
.container .card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

    .container .card h4 {
        letter-spacing: 0.5px;
    }

    .container .card p {
        font-size: 15px;
        line-height: 1.7;
    }

/* ================= FEATURED PRODUCTS ================= */
.medicine-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
}

    .medicine-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    }

/* Product Image */
.product-img {
    height: 180px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.medicine-card:hover .product-img {
    transform: scale(1.05);
}

/* Price styling */
.text-success.fs-5 {
    font-size: 1.1rem !important;
}

/* ================= SEARCH BAR ================= */
.card input.form-control {
    border-radius: 12px;
}

.card button.btn {
    border-radius: 12px;
}

/* ================= PAGINATION ================= */
button.btn-outline-secondary {
    border-radius: 30px;
}

/* ================= SERVICES SECTION ================= */
.service-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 25px 18px;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .service-card i {
        font-size: 34px;
        color: #0d6efd;
        margin-bottom: 12px;
    }

    .service-card h6 {
        font-weight: 700;
        margin-bottom: 8px;
    }

    .service-card p {
        font-size: 14px;
        color: #6c757d;
        line-height: 1.6;
    }

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(13,110,253,0.25);
    }

/* ================= SECTION SPACING ================= */
h3.fw-bold {
    letter-spacing: 0.4px;
}

p.text-muted {
    font-size: 14px;
}

/* ================= MOBILE OPTIMIZATION ================= */
@media (max-width: 768px) {
    .product-img {
        height: 150px;
    }

    .service-card {
        padding: 20px 15px;
    }
}





.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-float {
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37,211,102,.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37,211,102,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37,211,102,0);
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    bottom: 15px;
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: .8rem;
    opacity: 0;
    transition: opacity .2s;

}

.whatsapp-container:hover .whatsapp-tooltip {
    opacity: 1;
}

.whatsapp-close {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #000;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
}



