/*
=====================================================
GLOBAL SETTINGS
=====================================================
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient( 180deg, #EAF6F9 0%, #ffffff 100% );
    color: #002D3D;
}



.container {
    max-width: 1280px;
}



/* =====================================================HERO SECTION===================================================== */

.modern-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #062B3A;
    padding: 70px 80px;
    border-radius: 25px;
    margin-top: 25px;
    color: white;
    min-height: 450px;
    overflow: hidden;
}



.hero-content {
    max-width: 700px;
    animation: fadeSlideLeft 1s ease forwards;
}



    .hero-content h1 {
        font-size: 58px;
        line-height: 1.1;
        font-weight: 800;
        margin-bottom: 20px;
    }



    .hero-content span {
        color: #22C7B8;
    }



    .hero-content p {
        font-size: 18px;
        color: #e5f4f5;
        line-height: 1.6;
    }



.hero-buttons {
    margin: 30px 0;
}



.hero-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    background: #20BFAE;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-right: 12px;
    transition: .3s;
}



    .hero-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 20px rgba(32,191,174,.3);
        color: white;
    }



    .hero-btn.outline {
        background: transparent;
        border: 1px solid #20BFAE;
    }



/* SEARCH */

.search-box {
    display: flex;
    width: 650px;
    margin-top: 30px;
}



    .search-box input {
        flex: 1;
        padding: 18px;
        border: none;
        outline: none;
        font-size: 16px;
        border-radius: 12px 0 0 12px;
    }



    .search-box button {
        width: 150px;
        border: none;
        background: #20BFAE;
        color: white;
        font-weight: bold;
        border-radius: 0 12px 12px 0;
    }



/* HERO IMAGE */

.hero-image {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideImage 1s ease forwards;
}



    .hero-image img {
        width: 320px;
        height: 320px;
        object-fit: contain;
        filter: drop-shadow( 0 20px 30px rgba(0,0,0,.25) );
    }



/* =====================================================CATEGORY SECTION===================================================== */

.category-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: white;
    padding: 35px;
    margin: 30px 0;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}



.category-card {
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}



    .category-card:hover {
        transform: translateY(-8px) scale(1.05);
        color: #2AA198;
    }





/* =====================================================MEDICINE CARDS===================================================== */

.listing-section {
    padding: 60px 20px;
}



.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}



    .section-header h2 {
        font-size: 34px;
        font-weight: 700;
    }



.view-all-btn {
    color: #2AA198;
    font-weight: 700;
    text-decoration: none;
}



    .view-all-btn:hover {
        color: #238B82;
    }





.medicine-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 25px;
}



.medicine-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: .3s;
}



    .medicine-card:hover {
        transform: translateY(-8px);
    }



.medicine-image {
    height: 180px;
    background: #F5FAFB;
    display: flex;
    justify-content: center;
    align-items: center;
}



    .medicine-image img {
        width: 85%;
        height: 150px;
        object-fit: contain;
    }



.medicine-content {
    padding: 20px;
}



    .medicine-content h3 {
        font-size: 20px;
        font-weight: 700;
        color: #062B3A;
    }



.description {
    font-size: 14px;
    color: #607783;
    height: 45px;
    overflow: hidden;
}



.medicine-info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}



.price {
    font-size: 20px;
    font-weight: bold;
}



.status-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    background: #DFF7EF;
    color: #087F5B;
    border-radius: 20px;
    font-size: 12px;
}



.details-btn {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background: #20BFAE;
    color: white;
    border-radius: 10px;
    text-decoration: none;
}



    .details-btn:hover {
        background: #238B82;
        color: white;
    }

/* =====================================================CONTACT SECTION===================================================== */

.contact-section {
    padding: 70px 20px;
    background: #F5FBFC;
}



.contact-container {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}



.contact-card {
    background: white;
    padding: 35px 25px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: .3s;
}



    .contact-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0,0,0,.15);
    }



.contact-icon {
    width: 70px;
    height: 70px;
    margin: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #E5FAF7;
    color: #2AA198;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
}



.contact-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}



.contact-info {
    color: #2AA198;
    font-size: 18px;
    font-weight: 700;
}



.contact-card p {
    color: #607783;
    line-height: 1.6;
}







/* =====================================================STATS SECTION===================================================== */

.stats-section {    
    display: grid;
    grid-template-columns: repeat(3,1fr);
    background: #E9FAF8;
    padding: 45px;
    margin: 50px 0;
    border-radius: 20px;
    text-align: center;
}



    .stats-section h2 {
        font-size: 38px;
        color: #073044;
        margin-bottom: 5px;
    }



    .stats-section p {
        color: #607783;
    }





/* =====================================================DETAILS PAGE===================================================== */

.medicine-details {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}



.medicine-details-card {
    background: white;
    padding: 35px;
    width: 550px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
}



.details-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 15px;
}





/* =====================================================FORMS===================================================== */

.form-container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}



    .form-container h2 {
        text-align: center;
        margin-bottom: 25px;
    }



.form-input {
    width: 100%;
    padding: 13px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}



    .form-input:focus {
        border-color: #2AA198;
        outline: none;
    }



.btn-submit {
    width: 100%;
    padding: 13px;
    background: #2AA198;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
}



    .btn-submit:hover {
        background: #238B82;
    }





/* =====================================================ADMIN DASHBOARD===================================================== */

.admin-dashboard {
    padding: 50px 20px;
}



    .admin-dashboard h1 {
        font-size: 42px;
        color: #062B3A;
    }



.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
    margin-top: 40px;
}



.dashboard-card {
    background: white;
    padding: 35px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}



    .dashboard-card h2 {
        font-size: 45px;
        color: #2AA198;
    }



.dashboard-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}



.dashboard-btn {
    background: #2AA198;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
}



    .dashboard-btn:hover {
        background: #238B82;
        color: white;
    }





/* =====================================================SCROLL REVEAL===================================================== */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity .8s ease, transform .8s ease;
}



    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

/* =====================================================ANIMATIONS===================================================== */

@keyframes fadeSlideLeft {

    from {
        opacity: 0;
        transform: translateX(-50px);
    }


    to {
        opacity: 1;
        transform: translateX(0);
    }
}



@keyframes slideImage {

    from {
        opacity: 0;
        transform: translateX(60px);
    }


    to {
        opacity: 1;
        transform: translateX(0);
    }
}



/* =====================================================FOOTER===================================================== */

footer {
    background: white;
    padding: 25px 0;
    margin-top: 60px;
    text-align: center;
    color: #0D2E3D;
    border-top: 1px solid #e6e6e6;
}



    footer a {
        color: #1A6B8A;
        text-decoration: none;
    }



        footer a:hover {
            color: #2AA198;
        }





/* =====================================================RESPONSIVE DESIGN===================================================== */

@media(max-width:1200px) {



    .medicine-grid {
        grid-template-columns: repeat(3,1fr);
    }



    .hero-content h1 {
        font-size: 45px;
    }
}





@media(max-width:992px) {



    .modern-hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 30px;
    }



    .hero-image {
        width: 100%;
        margin-top: 40px;
    }



    .search-box {
        width: 100%;
    }



    .medicine-grid {
        grid-template-columns: repeat(2,1fr);
    }



    .contact-container {
        grid-template-columns: 1fr;
    }



    .stats-section {
        grid-template-columns: repeat(2,1fr);
        gap: 30px;
    }



    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}





@media(max-width:600px) {



    .modern-hero {
        padding: 35px 20px;
        border-radius: 15px;
    }



    .hero-content h1 {
        font-size: 34px;
    }



    .hero-content p {
        font-size: 15px;
    }



    .hero-btn {
        display: block;
        margin: 10px 0;
    }



    .search-box {
        flex-direction: column;
    }



        .search-box input {
            border-radius: 10px;
        }



        .search-box button {
            width: 100%;
            height: 50px;
            margin-top: 10px;
            border-radius: 10px;
        }



    .category-section {
        flex-direction: column;
        gap: 25px;
    }



    .medicine-grid {
        grid-template-columns: 1fr;
    }



    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }



    .stats-section {
        grid-template-columns: 1fr;
    }



    .medicine-details-card {
        width: 90%;
    }



    .dashboard-actions {
        flex-direction: column;
    }
}
/* ADMIN ACTION BUTTONS */

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}



.edit-btn, .delete-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}



.edit-btn {
    background: #ffc107;
    color: #222;
}



.delete-btn {
    background: #dc3545;
    color: white;
}



.edit-btn {
    background: #e0a800;
    color: #222;
}



.delete-btn {
    background: #bb2d3b;
    color: white;
}

footer h5 {
    font-size: 22px;
    font-weight: 700;
    color: #0D2E3D;
}

footer p {
    margin: 8px 0;
    color: #607783;
}

footer a {
    color: #2AA198;
    text-decoration: none;
}

    footer a:hover {
        color: #0D2E3D;
    }

/* ==========================REVIEWS PAGE========================== */

.reviews-page {
    padding: 60px 40px;
}



.reviews-header {
    text-align: center;
    margin-bottom: 40px;
}



    .reviews-header h1 {
        font-size: 42px;
        font-weight: 700;
        color: #062b3a;
    }



    .reviews-header p {
        color: #607783;
        font-size: 18px;
    }



.review-btn {
    display: inline-block;
    margin-top: 20px;
    background: #20bfae;
    color: white;
    padding: 14px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}



.review-summary {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
    margin-bottom: 50px;
}



    .review-summary div {
        background: white;
        padding: 30px;
        border-radius: 20px;
        text-align: center;
        box-shadow: 0 8px 25px rgba(0,0,0,.08);
    }



    .review-summary h2 {
        color: #20bfae;
        font-size: 38px;
    }



.reviews-container {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 25px;
}



.review-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: .3s;
}



    .review-card:hover {
        transform: translateY(-5px);
    }



.review-top {
    display: flex;
    gap: 20px;
    align-items: center;
}



.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #20bfae;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    font-weight: bold;
}



.review-card h3 {
    margin: 0;
    color: #062b3a;
}



.stars {
    color: #ffb400;
    font-size: 18px;
}



.review-message {
    margin-top: 25px;
    font-size: 17px;
    color: #425b66;
    line-height: 1.6;
}



.review-date {
    margin-top: 20px;
    color: #789;
    font-size: 14px;
}





@media(max-width:900px) {

    .review-summary,
    .reviews-container {
        grid-template-columns: 1fr;
    }
}

.form-section-title {
    margin-top: 30px;
    margin-bottom: 20px;
    color: #062b3a;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    border-bottom: 2px solid #2AA198;
    padding-bottom: 8px;
}
/* ==========================MEDICINE DETAILS PAGE========================== */

.details-page {
    max-width: 1100px;
    margin: 50px auto;
}



.details-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}



.details-image-container {
    background: #f5fafb;
    border-radius: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.details-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}





.product-details h1 {
    font-size: 36px;
    color: #062b3a;
}





.details-price {
    color: #2AA198;
    font-size: 32px;
    margin: 20px 0;
}





.details-description {
    color: #607783;
    line-height: 1.7;
}





.product-info-box {
    background: #f5fbfc;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}







/* SELLER */

.seller-card {
    margin-top: 30px;
    background: white;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}



    .seller-card h2 {
        color: #062b3a;
    }



.seller-info p {
    font-size: 17px;
    margin: 12px 0;
}





.contact-seller-btn {
    display: inline-block;
    margin-top: 20px;
    background: #2AA198;
    color: white;
    padding: 14px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}



    .contact-seller-btn:hover {
        background: #238b82;
        color: white;
    }





.back-btn {
    display: inline-block;
    margin-top: 25px;
    text-decoration: none;
    color: #2AA198;
}



@media(max-width:768px) {

    .details-card {
        grid-template-columns: 1fr;
    }
}

.seller-preview {
    margin-top: 10px;
    color: #567;
    font-size: 13px;
    font-weight: 600;
}
/* ==========================LISTINGS PAGE IMPROVEMENT========================== */

.listing-section {
    padding: 50px 0;
}



.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}



    .section-header h1 {
        font-size: 40px;
        color: #062b3a;
    }



    .section-header p {
        color: #607783;
    }



.seller-preview {
    margin-top: 15px;
    font-size: 14px;
    color: #567;
    font-weight: 600;
}



.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}



.edit-btn, .delete-btn {
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}



.edit-btn {
    background: #f0ad4e;
    color: white;
}



.delete-btn {
    background: #dc3545;
    color: white;
}



.empty-state {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
}
/* =========================ADMIN DASHBOARD========================= */

.admin-dashboard {
    padding: 50px 0;
}



.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}



    .dashboard-header h1 {
        font-size: 40px;
        color: #062b3a;
    }



    .dashboard-header p {
        color: #607783;
    }



.admin-badge {
    background: #e5faf7;
    color: #087f5b;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 600;
}





.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}





.dashboard-card {
    background: white;
    padding: 35px;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    text-align: center;
}



.dashboard-icon {
    font-size: 35px;
}



.dashboard-card h2 {
    font-size: 45px;
    color: #2AA198;
    margin: 15px 0;
}



.dashboard-card p {
    color: #607783;
}







.dashboard-panel {
    margin-top: 40px;
    background: white;
    padding: 35px;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}



    .dashboard-panel h2 {
        color: #062b3a;
        margin-bottom: 25px;
    }





.dashboard-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}



.dashboard-btn {
    background: #2AA198;
    color: white;
    padding: 14px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}



    .dashboard-btn:hover {
        background: #238b82;
        color: white;
    }







.dashboard-info {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}



    .dashboard-info div {
        background: #f5fbfc;
        padding: 20px;
        border-radius: 15px;
    }



.online-status {
    color: #168542;
    font-weight: bold;
}





@media(max-width:900px) {

    .dashboard-cards,
    .dashboard-info {
        grid-template-columns: 1fr;
    }


    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}
/* =====================REVIEWS===================== */

.reviews-page {
    padding: 50px 0;
}



    .reviews-page h1 {
        font-size: 40px;
        color: #062b3a;
    }



.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
    margin-top: 40px;
}





.review-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}





.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.verified-badge {
    background: #e5faf7;
    color: #087f5b;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}





.stars {
    color: #f5a623;
    font-size: 24px;
    margin: 15px 0;
}



.review-comment {
    color: #567;
    line-height: 1.6;
}



.review-date {
    font-size: 13px;
    color: #888;
}





@media(max-width:900px) {

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================HOMEPAGE REVIEWS========================= */

.homepage-reviews {
    padding: 70px 0;
    background: #F5FBFC;
}



    .homepage-reviews .review-card {
        background: white;
        padding: 25px;
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(0,0,0,.08);
    }



    .homepage-reviews .stars {
        color: #f5a623;
        font-size: 22px;
        margin: 10px 0;
    }

@media (max-width: 768px) {

    .container {
        width: 100%;
        padding: 15px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    h1 {
        font-size: 32px;
    }
}
/* ================================
   MOBILE RESPONSIVE FIX
================================ */

@media (max-width:768px) {


    /* HERO KEEP DESKTOP STYLE */

    .modern-hero {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 35px 20px;
        min-height: auto;
        gap: 10px;
    }



    .hero-content {
        width: 60%;
    }



    .hero-image {
        width: 40%;
        margin-top: 0;
    }



        .hero-image img {
            width: 100%;
            height: auto;
        }



    .hero-content h1 {
        font-size: 28px;
        line-height: 1.1;
    }



    .hero-content p {
        font-size: 14px;
        line-height: 1.5;
    }



    /* BUTTONS */

    .hero-buttons {
        margin: 20px 0;
    }



    .hero-btn {
        display: inline-block;
        padding: 10px 15px;
        font-size: 13px;
        margin-right: 5px;
    }



    /* SEARCH */

    .search-box {
        width: 100%;
        flex-direction: column;
    }


        .search-box input {
            border-radius: 10px;
        }


        .search-box button {
            width: 100%;
            height: 45px;
            margin-top: 8px;
            border-radius: 10px;
        }
}

/* ==============================
   SOCIAL MEDIA FOOTER ICONS
============================== */


.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}



    .social-links a {
        font-size: 28px;
        color: #0D2E3D;
        text-decoration: none;
        transition: all 0.3s ease;
    }



        .social-links a:hover {
            color: #2AA198;
            transform: translateY(-5px);
        }



/* Mobile Responsive */

@media (max-width: 768px) {


    .social-links {
        gap: 15px;
    }



        .social-links a {
            font-size: 24px;
        }
}
.navbar-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-right: 10px;
}
