@charset "UTF-8";
/* =========================================================================
   Vitalis UI — Part 3/4: app shell (header, drawer, bottom nav, footer)
   ========================================================================= */

/* ========================= announcement bar ============================ */
.announce {
    background: #fff;
    color: var(--c-ink-3);
    border-bottom: 1px solid var(--c-line);
    font-size: .8rem;
    text-align: center;
    padding: .4rem 1rem;
}

.announce__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.announce b, .announce strong {
    color: var(--c-brand-700);
}

.announce i {
    color: var(--c-brand-500);
    margin-left: .3rem;
}

@media (max-width: 767.98px) {
    .announce__inner > *:not(:first-child) {
        display: none;
    }
}

/* ============================== header ================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
    transition: box-shadow var(--t-base);
}

.site-header.is-stuck {
    box-shadow: var(--sh-md);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--header-h);
    padding-block: .55rem;
}

/* --- brand --- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    flex: none;
    font-weight: 700;
    color: var(--c-ink);
}

.brand:hover {
    color: var(--c-brand-700);
}

.brand__mark {
    width: 42px;
    height: 42px;
    flex: none;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand__name {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.brand__tag {
    font-size: .68rem;
    font-weight: 600;
    color: var(--c-ink-4);
}

@media (max-width: 991.98px) {
    .brand__tag {
        display: none;
    }
}

/* --- search --- */
.hsearch {
    position: relative;
    flex: 1 1 auto;
    max-width: 520px;
}

.hsearch.is-mobile {
    display: none;
}

.hsearch__input {
    width: 100%;
    height: 44px;
    /* icon sits on the left in RTL, so reserve space there */
    padding: 0 1rem 0 2.8rem;
    border: 1px solid var(--c-line);
    border-radius: var(--r-pill);
    background: var(--c-surface-2);
    font-size: .92rem;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.hsearch__input:focus {
    background: var(--c-surface);
    border-color: var(--c-brand-400);
    box-shadow: 0 0 0 4px rgba(61, 106, 76, .12);
}

.hsearch__btn {
    position: absolute;
    top: 50%;
    left: .35rem;
    right: auto;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--c-ink-4);
    cursor: pointer;
    transition: color var(--t-fast), background var(--t-fast);
}

.hsearch__btn:hover {
    color: var(--c-brand-600);
    background: var(--c-brand-50);
}

@media (max-width: 767.98px) {
    .hsearch {
        display: none;
    }

    .hsearch.is-mobile {
        display: block;
        max-width: none;
        padding-bottom: .6rem;
    }
}

/* --- header actions --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex: none;
    margin-right: auto;
}

.haction {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    min-width: 46px;
    padding: .35rem .5rem;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--c-ink-3);
    font-size: .68rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.haction i {
    font-size: 1.12rem;
}

.haction:hover {
    background: var(--c-brand-50);
    color: var(--c-brand-700);
}

.haction--cart {
    background: var(--c-brand-50);
    border-color: var(--c-brand-100);
    color: var(--c-brand-700);
}

.haction--cart:hover {
    background: var(--c-brand-100);
}

.haction__count {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: var(--r-pill);
    background: var(--c-rose-500);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    direction: ltr;
    box-shadow: 0 0 0 2px var(--c-surface);
}

.haction--login {
    flex-direction: row;
    gap: .4rem;
    padding: .5rem 1rem;
    border-radius: var(--r-pill);
    background: var(--c-brand-500);
    color: #fff;
    font-size: .86rem;
    box-shadow: var(--sh-brand);
}

.haction--login:hover {
    color: #fff;
    background: var(--c-brand-600);
}

@media (max-width: 767.98px) {
    .header-actions {
        display: none;
    }
}

.drawer-toggle {
    display: none;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-surface);
    color: var(--c-ink-2);
    font-size: 1.1rem;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .drawer-toggle {
        display: grid;
    }
}

/* --- desktop category nav --- */
.header-nav {
    border-top: 1px solid var(--c-line-2);
    background: var(--c-surface);
}

.header-nav__list {
    display: flex;
    align-items: center;
    gap: .2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.header-nav__list::-webkit-scrollbar {
    display: none;
}

.header-nav__link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem .85rem;
    border-radius: var(--r-sm);
    color: var(--c-ink-2);
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--t-fast), background var(--t-fast);
}

.header-nav__link i {
    color: var(--c-brand-400);
    font-size: .95em;
}

.header-nav__link:hover, .header-nav__link.is-active {
    background: var(--c-brand-50);
    color: var(--c-brand-700);
}

.header-nav__link--hot i {
    color: var(--c-rose-500);
}

@media (max-width: 991.98px) {
    .header-nav {
        display: none;
    }
}

/* ============================ mobile drawer ============================= */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1049;
    background: rgba(7, 51, 47, .5);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), visibility var(--t-base);
}

.drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    width: min(86vw, 320px);
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    box-shadow: var(--sh-lg);
    transform: translateX(100%);
    transition: transform var(--t-slow);
    overflow-y: auto;
}

.drawer.is-open {
    transform: translateX(0);
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--c-line);
    background: #fff;
    color: var(--c-ink);
}

.drawer__head .brand__name, .drawer__head .brand {
    color: var(--c-ink);
}

.drawer__close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.drawer__user {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--c-line-2);
    background: var(--c-surface-2);
    font-size: .88rem;
}

.drawer__avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--c-brand-100);
    color: var(--c-brand-700);
}

.drawer__section {
    padding: .7rem 0;
    border-bottom: 1px solid var(--c-line-2);
}

.drawer__label {
    padding: .3rem 1rem;
    color: var(--c-ink-4);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.drawer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.drawer__link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem 1rem;
    color: var(--c-ink-2);
    font-size: .92rem;
    font-weight: 600;
    transition: background var(--t-fast), color var(--t-fast);
}

.drawer__link i:first-child {
    width: 1.3rem;
    text-align: center;
    color: var(--c-brand-400);
}

.drawer__link:hover {
    background: var(--c-brand-50);
    color: var(--c-brand-700);
}

.drawer__link .push-left {
    color: var(--c-ink-4);
    font-size: .8rem;
}

.drawer__link--danger {
    color: var(--c-rose-600);
}

.drawer__link--danger i:first-child {
    color: var(--c-rose-500);
}

/* ============================= bottom nav ============================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 1035;
    display: none;
    background: var(--c-surface);
    border-top: 1px solid var(--c-line);
    box-shadow: 0 -4px 20px rgba(13, 27, 26, .07);
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

.bottom-nav__link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    height: var(--bottomnav-h);
    color: var(--c-ink-4);
    font-size: .68rem;
    font-weight: 600;
}

.bottom-nav__link i {
    font-size: 1.15rem;
}

.bottom-nav__link.is-active {
    color: var(--c-brand-600);
}

.bottom-nav__link.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 30px;
    height: 3px;
    border-radius: 0 0 var(--r-pill) var(--r-pill);
    background: var(--c-brand-500);
}

.bottom-nav__count {
    position: absolute;
    top: 6px;
    left: calc(50% - 22px);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: var(--r-pill);
    background: var(--c-rose-500);
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
    direction: ltr;
}

@media (max-width: 767.98px) {
    .bottom-nav {
        display: block;
    }

    body {
        padding-bottom: var(--bottomnav-h);
    }
}

/* =============================== footer ================================ */
.site-footer {
    position: static; /* replaces the old position:fixed footer */
    margin-top: clamp(2.5rem, 2rem + 3vw, 5rem);
    background: #fff;
    color: var(--c-ink-3);
    border-top: 1px solid var(--c-line);
    font-size: .88rem;
}

.footer-trust {
    border-bottom: 1px solid var(--c-line);
    padding: 1.4rem 0;
}

.footer-trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

.footer-trust__item {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.footer-trust__icon {
    flex: none;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    background: var(--c-brand-50);
    color: var(--c-brand-600);
    font-size: 1.15rem;
}

.footer-trust__title {
    color: var(--c-ink);
    font-weight: 700;
    font-size: .92rem;
}

.footer-trust__text {
    font-size: .78rem;
    color: var(--c-ink-4);
}

.footer-main {
    padding: 2.2rem 0 1.6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 991.98px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.6rem;
    }
}

@media (max-width: 575.98px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-about .brand__name {
    color: var(--c-ink);
}

.footer-about p {
    color: var(--c-ink-4);
    font-size: .84rem;
    line-height: 1.9;
    margin-top: .8rem;
}

.footer-col__title {
    margin-bottom: .9rem;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
}

.footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-list li {
    margin-bottom: .55rem;
}

.footer-list a {
    color: var(--c-ink-3);
    font-weight: 500;
    font-size: .85rem;
    transition: color var(--t-fast), padding var(--t-fast);
}

.footer-list a:hover {
    color: var(--c-leaf-300);
    padding-right: .25rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin-bottom: .7rem;
    color: var(--c-ink-3);
    font-size: .85rem;
}

.footer-contact i {
    color: var(--c-leaf-300);
    margin-top: .35rem;
}

.footer-social {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    background: var(--c-brand-50);
    color: var(--c-brand-700);
    transition: background var(--t-fast), transform var(--t-fast);
}

.footer-social a:hover {
    background: var(--c-brand-600);
    color: #fff;
    transform: none;
}

.footer-bottom {
    border-top: 1px solid var(--c-line);
    padding: 1rem 0;
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--c-ink-4);
}

.footer-bottom a {
    color: var(--c-ink-3);
}

.footer-bottom a:hover {
    color: var(--c-leaf-300);
}

/* medical disclaimer strip */
.footer-note {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-top: 1.2rem;
    padding: .8rem 1rem;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-surface-2);
    color: var(--c-ink-4);
    font-size: .76rem;
    line-height: 1.8;
}

.footer-note i {
    color: var(--c-amber-400);
    margin-top: .25rem;
}

/* ======================== global message banner ======================== */
.flash {
    margin: 1rem 0 0;
}

.flash .alert {
    display: flex;
    align-items: center;
    gap: .6rem;
    box-shadow: var(--sh-xs);
}

/* back to top */
.to-top {
    position: fixed;
    bottom: calc(1.2rem + env(safe-area-inset-bottom));
    left: 1.2rem;
    z-index: 1030;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--c-surface);
    color: var(--c-brand-600);
    box-shadow: var(--sh-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--t-base), visibility var(--t-base), transform var(--t-base), background var(--t-fast);
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--c-brand-500);
    color: #fff;
}

@media (max-width: 767.98px) {
    .to-top {
        bottom: calc(var(--bottomnav-h) + 1rem);
    }
}
