/* Global */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Global */
.site-main {
    padding-top: calc(52px + 50px);
    overflow-x: hidden;
}
.blog-layout {
    padding-top: calc(52px + 50px);
}
.nav-link {
    display: inline-flex;
    align-items: center;
    position: relative;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.header.hide .top-nav {
    transform: translateY(-100%);
}

/* Top Nav */
.header .top-nav {
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
    z-index: 2000;
}

.header .navbar-brand {
    letter-spacing: .0625rem;
    margin: clamp(-3rem, -5vw, -3.8rem);
}

.header .nav-link {
    color: white;
}

.header .navbar-toggler:focus {
    box-shadow: none;
}

/* Search Bar */
.header .search-bar {
    position: relative;
    width: 100%;
    min-width: clamp(17.6rem, 25vw, 20rem);
    margin: 0 auto;
}

.header .search-input {
    height: 3rem;
    padding: 0 1rem;
    border-radius: .625rem;
    border: 1px solid var(--color-white);
    background-color: var(--color-primary);
    color: white;
}

.header .search-input::placeholder {
    color: white;
    opacity: 1;
}

.header .search-input:focus {
    outline: none;
    border-color: white;
}

.header .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    pointer-events: none;
}

.header .contact-info {
    padding-left: 1rem;
}

.header .top-nav .dropdown-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
}

.header .sub-nav {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    transform: translateY(65px);
    transition: transform 0.35s ease;
    padding-left: 0 !important;
}

.navbar-toggler {
    position: relative;
    z-index: 3000;
    pointer-events: auto;
}

.navbar-toggler {
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.navbar-toggler:active {
    transform: scale(0.88);
    opacity: 0.6;
}

.header.hide .sub-nav {
    transform: translateY(0);
}

.sub-nav .nav {
    flex-wrap: nowrap;
    gap: 1.5rem;
    /* more spacing between items */
}

.sub-nav .nav-item {
    white-space: nowrap;
}

.sub-nav .nav-link {
    color: var(--black-text);
    padding: 0.5rem 0.75rem;
    /* larger clickable area */
}

.sub-nav .nav-link:hover,
.sub-nav .nav-link:focus,
.sub-nav .nav-link:active {
    color: var(--color-primary);
    text-decoration: none;
    box-shadow: none;
    outline: none;
}

.dropdown-toggle::after {
    transition: transform 0.2s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}


.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: white;
    color: #00984A;
}

.cart-dropdown {
    transition: all 0.25s ease !important;
    position: absolute !important;
}

.cart-overlay {
    transition: all 0.25s ease !important;
}

.dropdown-menu,
.cart-dropdown,
.cart-overlay,
.navbar-collapse {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.nav-link,
.dropdown-toggle {
    transition: all 0.2s ease;
}

.sub-nav {
    min-height: fit-content;
}

.sub-nav .nav {
    align-items: center;
}

.navbar-nav .nav-link,
.nav .nav-link {
    white-space: nowrap;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: white;
    text-decoration: none
}

.logo-brand img {
    max-height: 6.25rem;
    max-width: 20.625rem;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all .3s ease
}

.logo-brand:hover {
    opacity: .9;
    text-decoration: none
}

.offcanvas.offcanvas-start {
    width: 85%;
    max-width: 20rem
}

.offcanvas-header {
    border-bottom: 1px solid var(--metropolis-border-color)
}

.offcanvas-logo img {
   /*  max-height: 4.375rem; */
    margin-left: 1.3125rem
}

.offcanvas-body {
    display: flex;
    flex-direction: column
}

.offcanvas .nav-link {
    color: var(--color-black);
    padding: .9rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem
}

.offcanvas .nav-link i.nav-icon {
    color: var(--color-primary);
    width: 1.25rem;
    text-align: center
}

.offcanvas .dropdown-toggle::after {
    margin-left: auto
}

.offcanvas .dropdown-menu {
    border: none;
    padding-left: 2.5rem
}

.offcanvas .dropdown-item {
    padding: .5rem 1rem
}

.offcanvas-body .list-group-item {
    border: none;
    position: relative;
    padding: .75rem 1rem
}

.offcanvas-body .list-group-item a {
    color: #000;
    text-decoration: none
}

.offcanvas-body .collapse a {
    display: block;
    padding: .5rem 0;
    color: #000;
    text-decoration: none
}

.offcanvas-body .list-group-item .fa-chevron-down {
    color: #555
}

.offcanvas-body .list-group-item::after {
    content: "";
    display: block;
    height: 1px;
    background: #ddd;
    margin: .5rem 1rem 0 1rem
}

.offcanvas-body .list-group-item:last-child::after {
    display: none
}

.offcanvas-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--metropolis-border-color)
}

.offcanvas-footer .contact-info-mobile {
    padding: .5rem 1rem
}

.offcanvas-footer .contact-info-mobile .contact-label {
    color: #6c757d
}

.offcanvas-footer .contact-info-mobile .contact-number,
.offcanvas-body .contact-number {
    color: var(--metropolis-dark-text)
}

.mobile-sub-header {
    border-top: 1px solid rgba(255, 255, 255, .15)
}

.mobile-sub-header img {
    vertical-align: middle
}

footer {
    position: relative
}

.site-footer {
    background-color: var(--bg-grey);
    color: var(--color-black);
    border-top: 1px solid #e7e7e7
}

.site-footer h5 {
    margin-bottom: 1.2rem
}

.site-footer .nav-link {
    color: #555;
    padding: .3rem 0;
    transition: color .2s ease-in-out
}

.accreditation-section {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0
}

.accreditation-section img {
    max-height: 5.625rem
}

.legal-links span {
    color: #777
}

.legal-links a:first-of-type {
    border-left: none;
    padding-left: 0
}

.legal-links a:hover {
    text-decoration: underline
}

.footer-bottom .legal-links a {
    display: inline-block;
    margin-left: .3125rem;
 /*    color: #333; */
    text-decoration: none;
    transition: color .3s
}

.footer-bottom .legal-links a:first-child {
    margin-left: 0
}

.footer-bottom .legal-links a:hover {
    color: var(--color-primary)
}

.chatbot-trigger-center {
    width: 4rem;
    height:4rem;
    position: fixed;
    right: 1.25rem;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    z-index: 999;
    background-color: transparent;
    cursor: pointer;
    pointer-events: auto;
    opacity: .95;
    border-radius: 50%;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15);
    transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
    animation: pulse 2.5s ease-in-out infinite
}

.chatbot-trigger-center:hover {
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 .375rem 1rem rgba(0, 0, 0, .2);
    animation: none
}

.chatbot-trigger-center:active {
    transform: scale(.95)
}

.chatbot-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15), 0 0 0 0 rgba(52, 152, 219, .7)
    }

    50% {
        box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15), 0 0 0 .5rem rgba(52, 152, 219, 0)
    }
}

.custom-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: calc(100% + 5rem);
    transform: translateX(-50%);
    min-width: 30rem;
    max-width: min(90vw, 93.75rem);
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(13.75rem, 1fr));
    gap: clamp(.2rem, 1vw, .3rem);
    padding: clamp(.5rem, 3vw, 1rem);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 1rem;
    box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .12);
    z-index: 1050;
    margin-top: .5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease
}

.custom-dropdown.right-end .dropdown-menu {
    left: calc(100% + 7rem)
}

.custom-dropdown:hover .dropdown-menu,
.custom-dropdown.active .dropdown-menu {
    display: grid;
    opacity: 1;
    visibility: visible
}

.custom-dropdown .dropdown-menu li a {
    display: flex;
    gap: .75rem;
    padding: .5rem;
    border-radius: .625rem;
    text-decoration: none;
    list-style: none;
    break-inside: avoid;
    transition: background .2s ease, border-color .2s ease, color .2s ease
}

.custom-dropdown .dropdown-menu li a:hover {
    background: var(--color-grey-bg, #f8f9fa);
    border-color: var(--border-color, #e0e0e0);
    color: var(--color-primary)
}

.custom-dropdown .dropdown-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: .1875rem
}

.dropdown-image-icon {
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .4rem;
    flex-shrink: 0;
    border: 1px solid var(--color-border, #e0e0e0)
}

.dropdown-image-icon img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain
}

.dropdown-text-content p,
.dropdown-text-content {
    margin-top: 1rem
}

.dropdown-text-content h6 {
    margin: 0 0 .25rem 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis
}

.dropdown-footer {
    grid-column: 1 / -1;
    text-align: center;
    padding: .75rem 0;
    margin-top: .5rem
}

/* =========================
   Cart Dropdown
========================= */
.cart-dropdown {
    position: absolute;
    top: calc(100% + clamp(0.5rem, 1vw, 0.875rem));
    /* 14px */
    right: 0;
    width: clamp(15rem, 40vw, 18.75rem);
    /* 300px */
    max-width: 90vw;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: clamp(0.4rem, 1vw, 0.625rem);
    /* 10px */
    z-index: 1000;
    opacity: 0;
    transform: translateY(clamp(-0.625rem, -1vw, -0.625rem));
    /* -10px */
    pointer-events: none;
    overflow: visible;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cart-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cart-arrow {
    position: absolute;
    top: clamp(-0.5rem, -1vw, -0.5rem);
    right: clamp(1rem, 2vw, 1.25rem);
    width: clamp(0.875rem, 2vw, 1rem);
    height: clamp(0.875rem, 2vw, 1rem);
    background: var(--color-white);
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
    transform: rotate(45deg);
    z-index: 1001;
}

.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
}

.cart-overlay.show {
    display: block;
}

/* =========================
   Cart Icon Styles
========================= */
#cartIconMobile,
#cartIconDesktop {
    background-color: var(--color-primary);
    border-radius: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    padding: clamp(0.15rem, 1vw, 0.2rem);
    z-index: 10;
    transition: transform 0.2s ease;
}

#cartIconMobile {
    position: relative;
    overflow: visible;
}

#cartIconMobile img,
#cartIconDesktop img {
    width: 28px;
    height: auto;
    display: block;
}

/* =========================
   Cart Badge
========================= */

.cart-badge {
    position: absolute;
    bottom: 1rem;
    /* keep stable */
    right: 0rem;
    transform: translate(50%, -50%);
    background-color: var(--color-danger);
    color: var(--color-white);
    width: clamp(0.875rem, 2vw, 0.9rem);
    height: clamp(0.875rem, 2vw, 0.9rem);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.6rem, 1vw, 0.7rem);
    font-weight: 700;
    z-index: 20;
}


.fixed-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-primary, #00984A);
    color: #fff;
    padding: .4rem;
    z-index: 800;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, .15)
}

.fixed-cta-bar .container {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.fixed-cta-bar .cta-text {
    font-size: clamp(.9rem, 2vw, 1rem);
    line-height: 1.4
}

.fixed-cta-bar a {
    color: #fff;
    text-decoration: underline
}

.fixed-cta-bar .btn {
    border-radius: 50px;
    padding: .5rem 1.25rem;
    transition: all .3s ease
}

.fixed-cta-bar .btn:hover {
    background: #f8f9fa;
    color: var(--color-primary, #00984A)
}

.profile-dropdown {
    min-width: clamp(16rem, 40vw, 20rem);
    padding: 0;
    border: none;
    box-shadow: 0 clamp(0.25rem, 1vw, 0.75rem) clamp(0.5rem, 1vw, 1rem) rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
}

.profile-header {
    display: flex;
    align-items: center;
    padding: clamp(1rem, 2vw, 1.5rem);
    border-bottom: 1px solid var(--color-border);
}


.profile-menu-item {
    display: flex;
    align-items: center;
    padding: clamp(0.5rem, 1vw, 0.75rem) clamp(0.75rem, 2vw, 1rem);
    text-decoration: none;
    transition: background-color 0.2s;
    color: var(--color-black);
}

.logout-item {
    color: var(--color-danger);
    background-color: var(--bg-grey);
    border-radius: 0.5rem;
}

.profile-menu-item:hover {
    background-color: #f8f9fa;
    color: var(--color-black);
}

.logout-item:hover {
    background-color: #fff5f5;
    color: var(--color-danger);
}

.profile-btn img {
    width: clamp(2rem, 5vw, 2.2rem);
    height: clamp(2rem, 5vw, 2.2rem);
    border-radius: 50%;
    object-fit: cover;
}

/* Equal spacing for Login, Profile, Cart */
.header-user-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    /* adjust as needed */
}

/* Make profile button a white circle */
.profile-btn {
    background: #fff;
    border-radius: 50%;

    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
}


/* Reset nav spacing interfering with alignment */
.navbar-nav {
    margin: 0;
    padding: 0;
}

/* Cart icon alignment */
#cartIconDesktop a {
    display: flex;
    align-items: center;
    position: relative;
}
.mobile-pill {
    background: #fff;
    border-radius: 999px;
    /* full pill */
    padding: 6px 10px;
    border:1px solid var(--border-color);
}

.pill-location {
    cursor: pointer;
    padding-right: 10px;
    white-space: nowrap;
}

.pill-divider {
    width: 1px;
    height: 22px;
    background: #e5e7eb;
    margin: 0 10px;
}

.pill-search-input {
    border: 0;
    height: 32px;
    font-size: 14px;
}

.pill-search-input:focus {
    box-shadow: none;
}

.pill-search .search-icon {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}
.text-ellipsis {
    white-space: nowrap;
    /* Prevents wrapping */
    overflow: hidden;
    /* Hides overflowing text */
    text-overflow: ellipsis;
    /* Adds the … at the end */
}