/* =========================================================
   MELAMED PHARMACY
   GLOBAL STYLESHEET
   ========================================================= */


/*========================================================= ROOT VARIABLES =========================================================*/

:root {

    --black: #111111;

    --dark: #1a1a1a;

    --white: #ffffff;

    --off-white: #f8f8f6;

    --light-grey: #eeeeec;

    --mid-grey: #777777;

    --border: #d8d8d5;

    --placeholder: #dededc;

    --success: #198754;

    --warning: #c47b00;

    --danger: #b42318;

    --container-width: 1180px;

}


/* ========================================================= GENERAL RESET ========================================================= */

html {

    scroll-behavior: smooth;

}


body {

    margin: 0;

    background: var(--white);

    color: var(--black);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;

}


img {

    max-width: 100%;

    height: auto;

}


a {

    color: inherit;

}


button,
input,
select,
textarea {

    font: inherit;

}


/* ========================================================= BOOTSTRAP OVERRIDES ========================================================= */

.container {

    max-width: var(--container-width);

}


.btn {

    border-radius: 0;

    padding:
        0.7rem
        1.25rem;

    font-weight: 600;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;

}


.btn:hover {

    transform: translateY(-1px);

}


.btn-dark {

    background: var(--black);

    border-color: var(--black);

}


.btn-dark:hover {

    background: #333333;

    border-color: #333333;

}


.btn-outline-dark {

    background: var(--white);

    border-color: var(--black);

    color: var(--black);

}


.btn-outline-dark:hover {

    background: var(--black);

    color: var(--white);

}


/* ========================================================= GLOBAL TYPOGRAPHY ========================================================= */

.display-heading {

    max-width: 680px;

    margin-bottom: 1.5rem;

    font-size:
        clamp(
            2.8rem,
            6vw,
            5.6rem
        );

    line-height: 0.95;

    font-weight: 800;

    letter-spacing: -0.055em;

}


.section-heading {

    margin-bottom: 1.25rem;

    font-size:
        clamp(
            2rem,
            4vw,
            3.5rem
        );

    line-height: 1;

    font-weight: 800;

    letter-spacing: -0.04em;

}


.eyebrow {

    margin-bottom: 0.75rem;

    color: var(--mid-grey);

    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 0.18em;

}


.lead-text {

    max-width: 650px;

    margin-bottom: 2rem;

    color: #454545;

    font-size: 1.05rem;

}


.body-text {

    max-width: 650px;

    color: #555555;

}


.narrow-text {

    max-width: 560px;

    margin-right: auto;

    margin-left: auto;

}


/* ========================================================= NAVIGATION ========================================================= */

.site-header {

    position: relative;

    z-index: 1000;

    background: var(--white);

    border-bottom:
        1px solid
        var(--border);

}


.site-header .navbar {

    min-height: 82px;

}


.pharmacy-brand {

    display: flex;

    align-items: center;

    gap: 0.7rem;

    color: var(--black) !important;

    font-weight: 800;

}


.brand-mark {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 38px;

    height: 38px;

    border:
        2px solid
        var(--black);

    font-family: Georgia, serif;

    font-size: 1.3rem;

}


.brand-text {

    font-size: 1rem;

    letter-spacing: -0.02em;

}


.site-header .nav-link {

    position: relative;

    padding:
        0.55rem
        0.75rem !important;

    color: var(--black) !important;

    font-size: 0.9rem;

    font-weight: 500;

}


.site-header .nav-link::after {

    position: absolute;

    right: 0.75rem;

    bottom: 0.2rem;

    left: 0.75rem;

    height: 1px;

    background: var(--black);

    content: "";

    transform:
        scaleX(0);

    transform-origin: right;

    transition:
        transform 0.2s ease;

}


.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {

    transform:
        scaleX(1);

    transform-origin: left;

}


.site-header .nav-login {

    margin-left: 0.5rem;

    border:
        1px solid
        var(--black);

}


.site-header .nav-register {

    background: var(--black);

    color: var(--white) !important;

}


.site-header .nav-register::after {

    display: none;

}


.admin-nav-link {

    font-weight: 700 !important;

}


/* ========================================================= SECTIONS ========================================================= */

.section-padding {

    padding-top: 6rem;

    padding-bottom: 6rem;

}


.section-light {

    background: var(--off-white);

}


.section-introduction {

    margin-bottom: 3.5rem;

}


.section-button {

    margin-top: 3rem;

}


/* ========================================================= HERO ========================================================= */

.hero-section {

    padding-top: 5rem;

    padding-bottom: 7rem;

}


.wireframe-image-placeholder {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 470px;

    background: var(--placeholder);

    color: #888888;

}


.wireframe-image-placeholder i {

    margin-bottom: 0.75rem;

    font-size: 3rem;

}


.wireframe-image-placeholder span {

    font-size: 0.85rem;

    font-weight: 600;

}


/* ========================================================= BUTTON GROUP ========================================================= */

.button-group {

    display: flex;

    flex-wrap: wrap;

    gap: 0.7rem;

}


/* ========================================================= FEATURES ========================================================= */

.feature-list {

    border-top:
        1px solid
        var(--black);

}


.feature-row {

    display: grid;

    grid-template-columns:
        50px
        1fr;

    gap: 1rem;

    padding:
        1.4rem
        0;

    border-bottom:
        1px solid
        var(--black);

}


.feature-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 38px;

    height: 38px;

    border:
        1px solid
        var(--black);

}


.feature-icon i {

    font-size: 1.1rem;

}


.feature-row h3 {

    margin-bottom: 0.35rem;

    font-size: 1.1rem;

    font-weight: 800;

}


.feature-row p {

    margin: 0;

    color: #555555;

    font-size: 0.9rem;

}


/* ========================================================= CATEGORY CARDS ========================================================= */

.category-grid {

    align-items: stretch;

}


.category-card {

    height: 100%;

    overflow: hidden;

    background: var(--white);

    border:
        1px solid
        var(--black);

}


.category-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--placeholder);
}

.category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.category-card:hover .category-image img {

    transform: scale(1.04);

}


.category-content {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    padding: 1.5rem;

}


.category-content h3 {

    margin-bottom: 0.5rem;

    font-size: 1.35rem;

    font-weight: 800;

}


.category-content p {

    min-height: 70px;

    margin-bottom: 1rem;

    color: #555555;

    font-size: 0.9rem;

}


.tag-list {

    display: flex;

    flex-wrap: wrap;

    gap: 0.4rem;

    margin-bottom: 1.2rem;

}


.tag-list span {

    padding:
        0.25rem
        0.5rem;

    background: var(--off-white);

    border:
        1px solid
        var(--border);

    font-size: 0.7rem;

}


.text-link {

    display: inline-flex;

    align-items: center;

    gap: 0.4rem;

    margin-top: auto;

    color: var(--black);

    font-size: 0.85rem;

    font-weight: 700;

    text-decoration: none;

}


.text-link:hover {

    text-decoration: underline;

}


.text-link i {

    transition:
        transform 0.2s ease;

}


.text-link:hover i {

    transform:
        translateX(4px);

}


/* ========================================================= CTA PANELS ========================================================= */

.cta-panel {

    height: 100%;

    padding: 2.5rem;

    border:
        1px solid
        var(--black);

}


.cta-icon {

    margin-bottom: 1.25rem;

    font-size: 1.5rem;

}


.cta-panel h2 {

    margin-bottom: 0.75rem;

    font-size: 2rem;

    font-weight: 800;

    letter-spacing: -0.03em;

}


.cta-panel p {

    max-width: 500px;

    margin-bottom: 1.5rem;

    color: #555555;

}


/* ========================================================= FAQ ========================================================= */

.faq-list {

    border-top:
        1px solid
        var(--black);

}


.faq-item {

    border-bottom:
        1px solid
        var(--black);

}


.faq-item summary {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        1.25rem
        0;

    cursor: pointer;

    list-style: none;

    font-weight: 700;

}


.faq-item summary::-webkit-details-marker {

    display: none;

}


.faq-item summary::after {

    content: "+";

    font-size: 1.5rem;

    font-weight: 400;

}


.faq-item[open] summary::after {

    content: "−";

}


.faq-item p {

    max-width: 850px;

    padding:
        0 0 1.25rem;

    margin: 0;

    color: #555555;

}


.faq-contact {

    padding-top: 4rem;

}


.faq-contact h2 {

    max-width: 600px;

    margin-bottom: 1.5rem;

    font-size:
        clamp(
            2rem,
            4vw,
            3rem
        );

    font-weight: 800;

}


/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonial-card {

    height: 100%;

    padding: 2rem;

    border:
        1px solid
        var(--black);

}


.testimonial-text {

    min-height: 120px;

    margin-bottom: 2rem;

    font-size: 1rem;

}


.testimonial-name {

    margin-bottom: 0.1rem;

    font-weight: 800;

}


.testimonial-location {

    margin: 0;

    color: var(--mid-grey);

    font-size: 0.8rem;

}


/* ========================================================= FOOTER ========================================================= */

.site-footer {

    background: var(--white);

    border-top:
        1px solid
        var(--black);

}


.footer-top {

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1.4fr;

    gap: 3rem;

    padding:
        4rem
        0;

}


.footer-brand {

    max-width: 350px;

}


.footer-logo {

    display: inline-block;

    margin-bottom: 1rem;

    color: var(--black);

    font-family: Georgia, serif;

    font-size: 1.4rem;

    font-weight: 700;

    text-decoration: none;

}


.footer-brand p {

    color: var(--mid-grey);

    font-size: 0.9rem;

}


.footer-column h3 {

    margin-bottom: 1rem;

    font-size: 0.85rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.08em;

}


.footer-column ul {

    padding: 0;

    margin: 0;

    list-style: none;

}


.footer-column li {

    margin-bottom: 0.55rem;

}


.footer-column a {

    color: #555555;

    font-size: 0.85rem;

    text-decoration: none;

}


.footer-column a:hover {

    color: var(--black);

    text-decoration: underline;

}


.footer-column address {

    font-style: normal;

}


.footer-column address p {

    margin-bottom: 0.6rem;

    color: #555555;

    font-size: 0.85rem;

}


.footer-column i {

    width: 20px;

    margin-right: 0.25rem;

}


.footer-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

    padding:
        1.5rem
        0;

    border-top:
        1px solid
        var(--border);

}


.footer-bottom p {

    margin: 0;

    color: var(--mid-grey);

    font-size: 0.75rem;

}


.footer-legal {

    display: flex;

    flex-wrap: wrap;

    gap: 1.25rem;

}


.footer-legal a {

    color: var(--mid-grey);

    font-size: 0.75rem;

    text-decoration: none;

}


.footer-legal a:hover {

    color: var(--black);

    text-decoration: underline;

}


/* ========================================================= ACCESS DENIED ========================================================= */

.access-denied-page {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--off-white);

}


.access-denied-card {

    max-width: 550px;

    padding: 3rem;

    margin:
        4rem
        auto;

    background: var(--white);

    border:
        1px solid
        var(--black);

    text-align: center;

}


.access-denied-icon {

    margin-bottom: 1rem;

    font-size: 3rem;

}


.access-denied-card h1 {

    margin-bottom: 1rem;

    font-weight: 800;

}


.access-denied-card p {

    margin-bottom: 2rem;

    color: #555555;

}


/* ========================================================= RESPONSIVE DESIGN ========================================================= */

@media (max-width: 991.98px) {

    .site-header .navbar-collapse {

        padding:
            1rem
            0;

    }


    .site-header .nav-link {

        padding:
            0.7rem
            0 !important;

    }


    .site-header .nav-link::after {

        right: 0;

        left: 0;

    }


    .site-header .nav-login {

        margin-left: 0;

        margin-top: 0.5rem;

    }


    .site-header .nav-register {

        margin-top: 0.5rem;

        text-align: center;

    }


    .footer-top {

        grid-template-columns:
            1fr
            1fr;

    }

}


@media (max-width: 767.98px) {

    .section-padding {

        padding-top: 4rem;

        padding-bottom: 4rem;

    }


    .hero-section {

        padding-top: 3rem;

        padding-bottom: 4rem;

    }


    .display-heading {

        font-size:
            clamp(
                2.5rem,
                12vw,
                4rem
            );

    }


    .section-heading {

        font-size:
            clamp(
                2rem,
                9vw,
                3rem
            );

    }


    .wireframe-image-placeholder {

        min-height: 300px;

    }


    .category-image {

        height: 170px;

    }


    .footer-top {

        grid-template-columns: 1fr;

        gap: 2rem;

        padding:
            3rem
            0;

    }


    .footer-bottom {

        flex-direction: column;

        align-items: flex-start;

    }

}


@media (max-width: 575.98px) {

    .site-header .navbar {

        min-height: 70px;

    }


    .brand-text {

        font-size: 0.9rem;

    }


    .brand-mark {

        width: 34px;

        height: 34px;

    }


    .button-group {

        width: 100%;

    }


    .button-group .btn {

        width: 100%;

    }


    .cta-panel {

        padding: 1.75rem;

    }


    .feature-row {

        grid-template-columns:
            40px
            1fr;

    }


    .testimonial-text {

        min-height: auto;

    }

}

```css
/* =========================================================
   HOMEPAGE SECTION CARDS
   ========================================================= */



main {
    background: #f2f2f0;
    padding: 24px 0;
}



.section-card {
    background: var(--white);
    margin: 0 24px 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}



.section-card.section-light {
    background: var(--off-white);
}



.section-card.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}


@media (max-width: 767.98px) {

    main {
        padding: 12px 0;
    }

    .section-card {
        margin: 0 12px 16px;
        border-radius: 10px;
    }

    .section-card.section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

}
```


/* =========================================
   MELAMED PHARMACY - WEBSITE THEME
   Teal | Deep Blue | White | Black
========================================= */

:root {
    --primary: #087F8C;
    --primary-dark: #066570;
    --secondary: #102A43;
    --black: #111827;
    --white: #FFFFFF;
    --off-white: #F4F8FA;
    --placeholder: #E7F0F2;
    --border: #D9E4E8;

    --teal-light: #DDF3F3;
    --text-muted: #64748B;

    --shadow-soft: 0 4px 18px rgba(16, 42, 67, 0.07);
    --shadow-hover: 0 12px 28px rgba(16, 42, 67, 0.13);
}

/* ---------- GENERAL PAGE ---------- */

body {
    background: #F4F8FA;
    color: var(--black);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

main {
    background: #F4F8FA;
}

h1, h2, h3, h4, h5 {
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: -0.4px;
}

p {
    color: #475569;
}

a {
    transition: color 0.25s ease;
}

a:hover {
    color: var(--primary);
}

/* ---------- HEADER & NAVIGATION ---------- */

header,
.site-header {
    background: var(--secondary);
    color: var(--white);
}

header .navbar,
.site-header .navbar,
.navbar {
    background: var(--secondary);
    padding: 16px 0;
}

.navbar .navbar-brand {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar .navbar-brand:hover {
    color: #5EE1DB;
}

.navbar .nav-link {
    color: #E5EDF4;
    font-weight: 500;
    padding: 10px 14px;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: #5EE1DB;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* ---------- BUTTONS ---------- */

.btn {
    border-radius: 8px;
    padding: 11px 22px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(8, 127, 140, 0.22);
}

.btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: #1C496B;
    border-color: #1C496B;
    color: var(--white);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ---------- CATEGORY CARDS ---------- */

.category-grid {
    align-items: stretch;
}

.category-card {
    height: 100%;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--teal-light);
}

.category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.04);
}

/* Keep your existing category content and links. */
.category-card h3,
.category-card h4 {
    color: var(--secondary);
}

.category-card p {
    color: var(--text-muted);
}

/* ---------- GENERAL CARDS ---------- */

.card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: var(--secondary);
    color: var(--white);
    border-bottom: 3px solid var(--primary);
    font-weight: 700;
}

.card-body {
    padding: 24px;
}

.card-title {
    color: var(--secondary);
    font-weight: 700;
}

/* ---------- HOMEPAGE SECTIONS ---------- */

.section-card {
    background: var(--white);
    margin: 0 24px 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.section-card.section-light {
    background: #EAF5F6;
}

.section-card.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* ---------- HERO IMAGE ---------- */

.wireframe-image-placeholder {
    width: 100%;
    height: 470px;
    overflow: hidden;
    background: var(--teal-light);
    border-radius: 14px;
}

.wireframe-image-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ---------- FORMS & INPUTS ---------- */

.form-control,
.form-select {
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 11px 14px;
    color: var(--black);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(8, 127, 140, 0.15);
}

/* ---------- TABLES ---------- */

.table thead th {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.table tbody tr:hover {
    background: #EAF5F6;
}

/* ---------- FOOTER ---------- */

footer,
.site-footer {
    background: var(--secondary);
    color: #E5EDF4;
    padding: 48px 0 24px;
}

footer h3,
footer h4,
footer h5,
.site-footer h3,
.site-footer h4,
.site-footer h5 {
    color: var(--white);
    font-weight: 700;
}

footer p,
footer li,
.site-footer p,
.site-footer li {
    color: #CBD5E1;
}

footer a,
.site-footer a {
    color: #CBD5E1;
    text-decoration: none;
}

footer a:hover,
.site-footer a:hover {
    color: #5EE1DB;
}

footer hr,
.site-footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- RESPONSIVE DESIGN ---------- */

@media (max-width: 767.98px) {
    .category-image {
        height: 170px;
    }

    .wireframe-image-placeholder {
        height: 300px;
    }

    .section-card {
        margin: 0 12px 16px;
        border-radius: 10px;
    }

    .section-card.section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .card-body {
        padding: 18px;
    }

    .btn {
        padding: 10px 16px;
    }

    footer,
    .site-footer {
        padding: 36px 0 20px;
    }
}



/* =========================================================
   MELAMED PHARMACY — COMPLETE WEBSITE THEME
   Colours: Teal, Deep Blue, White, Near-Black
   Add this entire block to the bottom of assets/css/style.css
   ========================================================= */

/* ---------------------------------------------------------
   1. THEME VARIABLES & GLOBAL STYLES
   --------------------------------------------------------- */

:root {
    --mp-teal: #087F8C;
    --mp-teal-dark: #066570;
    --mp-teal-light: #35C5C3;
    --mp-aqua: #5EE1DB;
    --mp-blue: #102A43;
    --mp-blue-light: #243F59;
    --mp-black: #111827;
    --mp-white: #FFFFFF;
    --mp-background: #F4F8FA;
    --mp-pale-teal: #DDF3F3;
    --mp-text: #243447;
    --mp-muted: #64748B;
    --mp-border: #DCE5EC;
    --mp-shadow: 0 8px 24px rgba(16, 42, 67, 0.08);
    --mp-shadow-hover: 0 14px 32px rgba(16, 42, 67, 0.14);
    --mp-radius: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--mp-background);
    color: var(--mp-text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
}

img {
    max-width: 100%;
}

a {
    color: var(--mp-teal);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--mp-teal-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--mp-blue);
    font-weight: 750;
    line-height: 1.3;
}

p {
    color: inherit;
}

::selection {
    background: var(--mp-pale-teal);
    color: var(--mp-blue);
}


/* ---------------------------------------------------------
   2. GLOBAL HEADER & NAVIGATION
   Works with the redesigned includes/header.php
   --------------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 1000;
    background: var(--mp-blue);
    border-bottom: 3px solid var(--mp-teal);
    box-shadow: 0 4px 16px rgba(16, 42, 67, 0.12);
}

.site-header .navbar {
    background: var(--mp-blue);
    padding: 14px 0;
}

.pharmacy-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 24px;
    color: var(--mp-white) !important;
    text-decoration: none;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--mp-teal);
    color: var(--mp-white);
    font-size: 1.55rem;
    box-shadow: 0 4px 12px rgba(8, 127, 140, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    color: var(--mp-white);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--mp-aqua);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.site-header .navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 13px;
    border-radius: 8px;
    color: #E5EDF4;
    font-size: 0.94rem;
    font-weight: 600;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link:focus {
    background: rgba(255, 255, 255, 0.07);
    color: var(--mp-aqua);
}

.site-header .navbar-nav .nav-link.active {
    background: rgba(8, 127, 140, 0.2);
    color: var(--mp-aqua);
}

.site-header .navbar-nav .nav-login {
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.site-header .navbar-nav .nav-login:hover {
    border-color: var(--mp-aqua);
}

.site-header .navbar-nav .nav-register {
    margin-left: 4px;
    padding: 10px 19px;
    border: 1px solid var(--mp-teal);
    background: var(--mp-teal);
    color: var(--mp-white);
}

.site-header .navbar-nav .nav-register:hover {
    transform: translateY(-1px);
    border-color: var(--mp-teal-dark);
    background: var(--mp-teal-dark);
    color: var(--mp-white);
}

.site-header .navbar-nav .admin-nav-link {
    color: var(--mp-aqua);
}

.site-header .navbar-toggler {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
}

.site-header .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(94, 225, 219, 0.2);
}

.site-header .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}


/* ---------------------------------------------------------
   3. BUTTONS
   --------------------------------------------------------- */

.btn {
    border-radius: 9px;
    font-weight: 650;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 3px solid rgba(53, 197, 195, 0.45);
    outline-offset: 2px;
}

.btn-primary {
    border-color: var(--mp-teal);
    background: var(--mp-teal);
    color: var(--mp-white);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--mp-teal-dark);
    background: var(--mp-teal-dark);
    color: var(--mp-white);
}

.btn-secondary {
    border-color: var(--mp-blue);
    background: var(--mp-blue);
    color: var(--mp-white);
}

.btn-secondary:hover,
.btn-secondary:focus {
    border-color: var(--mp-blue-light);
    background: var(--mp-blue-light);
    color: var(--mp-white);
}

.btn-outline-primary {
    border-color: var(--mp-teal);
    color: var(--mp-teal);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    border-color: var(--mp-teal);
    background: var(--mp-teal);
    color: var(--mp-white);
}

.btn-outline-secondary {
    border-color: var(--mp-blue);
    color: var(--mp-blue);
}

.btn-outline-secondary:hover {
    border-color: var(--mp-blue);
    background: var(--mp-blue);
    color: var(--mp-white);
}

.btn-success {
    border-color: #16835D;
    background: #16835D;
}

.btn-danger {
    border-color: #C03945;
    background: #C03945;
}

.btn-warning {
    color: var(--mp-black);
}

.btn-light {
    border-color: var(--mp-border);
    background: var(--mp-white);
    color: var(--mp-blue);
}


/* ---------------------------------------------------------
   4. CARDS & CONTENT SECTIONS
   --------------------------------------------------------- */

.card {
    overflow: hidden;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: var(--mp-white);
    box-shadow: var(--mp-shadow);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--mp-border);
    background: var(--mp-blue);
    color: var(--mp-white);
    font-weight: 700;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
    margin-bottom: 0;
    color: var(--mp-white);
}

.card-body {
    padding: 22px;
}

.card-footer {
    border-top: 1px solid var(--mp-border);
    background: #F8FAFC;
}

.section-card {
    margin-bottom: 28px;
    padding: 28px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: var(--mp-white);
    box-shadow: var(--mp-shadow);
}

.section-title {
    margin-bottom: 10px;
    color: var(--mp-blue);
    font-weight: 800;
}

.section-subtitle {
    margin-bottom: 25px;
    color: var(--mp-muted);
}

.bg-primary {
    background-color: var(--mp-teal) !important;
}

.bg-info {
    background-color: var(--mp-pale-teal) !important;
    color: var(--mp-blue) !important;
}

.text-primary {
    color: var(--mp-teal) !important;
}


/* ---------------------------------------------------------
   5. CATEGORY CARDS & CATEGORY IMAGES
   --------------------------------------------------------- */

.category-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: var(--mp-white);
    box-shadow: var(--mp-shadow);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(8, 127, 140, 0.45);
    box-shadow: var(--mp-shadow-hover);
}

.category-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #EAF2F5;
}

.category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.04);
}

.category-card .card-body {
    padding: 22px;
}

.category-card h3,
.category-card h4,
.category-card .card-title {
    margin-bottom: 10px;
    color: var(--mp-blue);
    font-weight: 750;
}

.category-card p,
.category-card .card-text {
    color: var(--mp-muted);
    line-height: 1.7;
}


/* ---------------------------------------------------------
   6. PRODUCT CARDS & PRODUCT IMAGES
   --------------------------------------------------------- */

.product-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: var(--mp-white);
    box-shadow: var(--mp-shadow);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mp-shadow-hover);
}

.product-card img,
.product-image {
    max-width: 100%;
}

.product-card .card-title {
    color: var(--mp-blue);
    font-weight: 750;
}

.product-price {
    color: var(--mp-teal);
    font-size: 1.2rem;
    font-weight: 800;
}

.product-description {
    color: var(--mp-muted);
    font-size: 0.94rem;
}

.badge {
    font-weight: 650;
    letter-spacing: 0.1px;
}

.badge.bg-primary {
    background: var(--mp-teal) !important;
}


/* ---------------------------------------------------------
   7. HERO SECTION & MAIN BANNERS
   --------------------------------------------------------- */

.hero-section {
    position: relative;
    padding: 65px 0;
    background: linear-gradient(
        135deg,
        var(--mp-blue) 0%,
        #17465C 60%,
        var(--mp-teal) 100%
    );
    color: var(--mp-white);
}

.hero-section h1,
.hero-section h2,
.hero-section h3 {
    color: var(--mp-white);
}

.hero-section p {
    color: #E5EDF4;
}

.hero-section .btn-light {
    color: var(--mp-blue);
}

.wireframe-image-placeholder {
    width: 100%;
    height: 470px;
    overflow: hidden;
    border-radius: 16px;
    background: #EAF2F5;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.wireframe-image-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* ---------------------------------------------------------
   8. FORMS, INPUTS & SEARCH BARS
   --------------------------------------------------------- */

.form-label {
    margin-bottom: 7px;
    color: var(--mp-blue);
    font-weight: 650;
}

.form-control,
.form-select {
    min-height: 44px;
    border: 1px solid #CBD5E1;
    border-radius: 9px;
    background-color: var(--mp-white);
    color: var(--mp-text);
}

.form-control::placeholder {
    color: #94A3B8;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mp-teal);
    box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.12);
}

textarea.form-control {
    min-height: 110px;
}

.input-group .btn {
    min-height: 44px;
}

.form-check-input:checked {
    border-color: var(--mp-teal);
    background-color: var(--mp-teal);
}

.form-check-input:focus {
    border-color: var(--mp-teal);
    box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.12);
}

.invalid-feedback {
    font-size: 0.85rem;
}


/* ---------------------------------------------------------
   9. TABLES
   --------------------------------------------------------- */

.table {
    margin-bottom: 0;
    color: var(--mp-text);
    vertical-align: middle;
}

.table thead th {
    padding: 14px 16px;
    border-bottom: 2px solid var(--mp-teal);
    background: #EAF3F6;
    color: var(--mp-blue);
    font-size: 0.9rem;
    font-weight: 750;
    white-space: nowrap;
}

.table tbody td {
    padding: 14px 16px;
    border-color: #E7EDF2;
}

.table tbody tr:hover > * {
    background: #F3FAFA;
}

.table-responsive {
    border: 1px solid var(--mp-border);
    border-radius: 12px;
    background: var(--mp-white);
}


/* ---------------------------------------------------------
   10. ALERTS, NOTIFICATIONS & STATUS MESSAGES
   --------------------------------------------------------- */

.alert {
    border: 1px solid transparent;
    border-radius: 10px;
}

.alert-primary,
.alert-info {
    border-color: #B9E5E5;
    background: #EAF8F8;
    color: #155E63;
}

.alert-success {
    border-color: #B7E4CE;
    background: #ECFDF3;
    color: #166534;
}

.alert-warning {
    border-color: #F2D49B;
    background: #FFF8E7;
    color: #854D0E;
}

.alert-danger {
    border-color: #F2C2C5;
    background: #FFF0F0;
    color: #9F2633;
}


/* ---------------------------------------------------------
   11. PAGINATION
   --------------------------------------------------------- */

.pagination {
    gap: 5px;
}

.pagination .page-link {
    border: 1px solid var(--mp-border);
    border-radius: 7px;
    color: var(--mp-teal);
}

.pagination .page-link:hover {
    background: var(--mp-pale-teal);
    color: var(--mp-blue);
}

.pagination .page-item.active .page-link {
    border-color: var(--mp-teal);
    background: var(--mp-teal);
    color: var(--mp-white);
}


/* ---------------------------------------------------------
   12. ADMIN DASHBOARD & SUMMARY PANELS
   --------------------------------------------------------- */

.dashboard-card,
.stat-card {
    height: 100%;
    padding: 22px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: var(--mp-white);
    box-shadow: var(--mp-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover,
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mp-shadow-hover);
}

.stat-card h3,
.stat-card h4,
.stat-card .stat-value {
    color: var(--mp-teal);
    font-weight: 800;
}

.stat-card .stat-label {
    color: var(--mp-muted);
    font-size: 0.92rem;
}


/* ---------------------------------------------------------
   13. GLOBAL FOOTER
   Works with the redesigned includes/footer.php
   --------------------------------------------------------- */

.site-footer {
    padding: 60px 0 0;
    border-top: 4px solid var(--mp-teal);
    background: var(--mp-blue);
    color: #CBD5E1;
}

.site-footer .footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 38px;
    padding-bottom: 42px;
}

.site-footer .footer-brand {
    min-width: 0;
}

.site-footer .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--mp-white);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    text-decoration: none;
}

.site-footer .footer-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--mp-teal);
    color: var(--mp-white);
    font-size: 1.4rem;
}

.site-footer .footer-description {
    max-width: 290px;
    margin-bottom: 20px;
    color: #CBD5E1;
    font-size: 0.94rem;
    line-height: 1.8;
}

.site-footer .footer-trust {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--mp-aqua);
    font-size: 0.88rem;
    font-weight: 600;
}

.site-footer .footer-trust i {
    font-size: 1.15rem;
}

.site-footer .footer-column h3 {
    position: relative;
    margin: 0 0 25px;
    padding-bottom: 12px;
    color: var(--mp-white);
    font-size: 1rem;
    font-weight: 700;
}

.site-footer .footer-column h3::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 38px;
    height: 3px;
    border-radius: 3px;
    background: #16A6A6;
    content: "";
}

.site-footer .footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .footer-column li {
    margin-bottom: 14px;
}

.site-footer .footer-column a {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    color: #CBD5E1;
    font-size: 0.9rem;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer .footer-column a:hover {
    transform: translateX(3px);
    color: var(--mp-aqua);
}

.site-footer .footer-column a i {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--mp-teal-light);
}

.site-footer address {
    margin: 0;
    font-style: normal;
}

.site-footer .footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    color: #CBD5E1;
    font-size: 0.9rem;
    line-height: 1.7;
}

.site-footer .footer-info-item > i {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--mp-teal-light);
    font-size: 1.1rem;
}

.site-footer .footer-info-item strong,
.site-footer .footer-info-item span span {
    display: block;
}

.site-footer .footer-info-item strong {
    margin-bottom: 3px;
    color: var(--mp-white);
    font-weight: 600;
}

.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer .footer-copyright {
    margin: 0;
    color: #AFC0CF;
    font-size: 0.84rem;
}

.site-footer .footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.site-footer .footer-legal a {
    color: #AFC0CF;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .footer-legal a:hover {
    color: var(--mp-aqua);
}


/* ---------------------------------------------------------
   14. BREADCRUMBS & DROPDOWN MENUS
   --------------------------------------------------------- */

.breadcrumb {
    padding: 12px 16px;
    border-radius: 9px;
    background: #EAF3F6;
}

.breadcrumb-item a {
    color: var(--mp-teal);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--mp-muted);
}

.dropdown-menu {
    padding: 8px;
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    box-shadow: var(--mp-shadow);
}

.dropdown-item {
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--mp-text);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--mp-pale-teal);
    color: var(--mp-blue);
}


/* ---------------------------------------------------------
   15. MODALS
   --------------------------------------------------------- */

.modal-content {
    overflow: hidden;
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    box-shadow: var(--mp-shadow-hover);
}

.modal-header {
    border-bottom: 1px solid var(--mp-border);
    background: var(--mp-blue);
    color: var(--mp-white);
}

.modal-header .modal-title {
    color: var(--mp-white);
}

.modal-footer {
    border-top: 1px solid var(--mp-border);
    background: #F8FAFC;
}


/* ---------------------------------------------------------
   16. RESPONSIVE DESIGN — TABLETS
   --------------------------------------------------------- */

@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        margin-top: 16px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .site-header .navbar-nav {
        align-items: stretch !important;
        gap: 4px;
    }

    .site-header .navbar-nav .nav-link {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        padding: 12px 14px;
    }

    .site-header .navbar-nav .nav-register {
        justify-content: center;
        margin: 6px 0 0;
    }

    .site-header .navbar-nav .nav-login {
        justify-content: center;
    }

    .site-footer .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px;
    }

    .wireframe-image-placeholder {
        height: 350px;
    }
}


/* ---------------------------------------------------------
   17. RESPONSIVE DESIGN — MOBILE PHONES
   --------------------------------------------------------- */

@media (max-width: 575.98px) {
    body {
        font-size: 0.95rem;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .brand-subtitle {
        font-size: 0.53rem;
        letter-spacing: 1px;
    }

    .site-header .navbar {
        padding: 10px 0;
    }

    .category-image {
        height: 170px;
    }

    .wireframe-image-placeholder {
        height: 300px;
    }

    .section-card {
        padding: 18px;
    }

    .card-body {
        padding: 18px;
    }

    .site-footer {
        padding-top: 42px;
    }

    .site-footer .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 30px;
    }

    .site-footer .footer-description {
        max-width: 100%;
    }

    .site-footer .footer-column h3 {
        margin-bottom: 18px;
    }

    .site-footer .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 20px 0;
    }

    .site-footer .footer-legal {
        flex-direction: column;
        gap: 10px;
    }

    .table thead th,
    .table tbody td {
        padding: 10px;
    }
}


/* ---------------------------------------------------------
   18. ACCESSIBILITY & REDUCED MOTION
   --------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--mp-teal);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/*Overriding the header navigation colours*/

.site-header .navbar-nav .nav-link {
    color: #FFFFFF !important;
}

.site-header .navbar-nav .nav-link i {
    color: #5EE1DB !important;
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link:focus {
    color: #5EE1DB !important;
    background: rgba(94, 225, 219, 0.10);
}

.site-header .navbar-nav .nav-link:hover i,
.site-header .navbar-nav .nav-link:focus i {
    color: #FFFFFF !important;
}

/* Keep the Register button readable */
.site-header .navbar-nav .nav-register,
.site-header .navbar-nav .nav-register:hover {
    color: #FFFFFF !important;
}

/* Keep the Login outline visible */
.site-header .navbar-nav .nav-login {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.45);
}

.site-header .navbar-nav .nav-login:hover {
    color: #5EE1DB !important;
    border-color: #5EE1DB;
}




/* MELAMED PHARMACY — FORCE HEADER TEXT TO WHITE */

header.site-header,
header.site-header nav,
header.site-header .navbar,
header.site-header .navbar-collapse,
header.site-header .navbar-nav {
    color: #FFFFFF !important;
}

header.site-header .navbar-nav a,
header.site-header .navbar-nav a:link,
header.site-header .navbar-nav a:visited,
header.site-header .navbar-nav a:active,
header.site-header .navbar-nav .nav-link {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

header.site-header .navbar-nav a i,
header.site-header .navbar-nav a i::before {
    color: #5EE1DB !important;
    -webkit-text-fill-color: #5EE1DB !important;
}

header.site-header .navbar-nav a:hover,
header.site-header .navbar-nav a:focus {
    color: #5EE1DB !important;
    -webkit-text-fill-color: #5EE1DB !important;
}

header.site-header .navbar-nav a:hover i,
header.site-header .navbar-nav a:focus i {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}



/* FIX: Footer address and operating hours text */
.site-footer .footer-info-item,
.site-footer .footer-info-item span,
.site-footer .footer-info-item span span {
    color: #FFFFFF !important;
}

/* Keep the Store hours label bright white */
.site-footer .footer-info-item strong {
    color: #FFFFFF !important;
}

/* Keep location and clock icons aqua-teal */
.site-footer .footer-info-item > i {
    color: #5EE1DB !important;
}
