@import url('../fonts/stylesheet.css');

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    body {
        @apply font-inter antialiased;
    }
}

.modal-backdrop {
    backdrop-filter: blur(4px);
}

:root {
    --overlay-z-index: 10000;
    --toast-z-index: 10020;
}

[id*="Modal"],
[id*="modal"],
[id*="Popup"],
[id*="popup"],
.modal,
.popup,
.lb-popup-overlay,
.lb-popup,
.modal-backdrop {
    z-index: var(--overlay-z-index) !important;
}

#toast,
#toastContainer,
[id*="Toast"],
[id*="toast"] {
    z-index: var(--toast-z-index) !important;
}

/* Hide scrollbar for category filter */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.announcement-marquee {
    --announcement-height: 2.75rem;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1;
    min-height: var(--announcement-height);
}

.announcement-marquee--top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4000;
}

#topBanner.announcement-marquee {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4000 !important;
}

.announcement-marquee--below {
    position: relative;
    z-index: 10;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.announcement-marquee__track {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    min-width: max-content;
    width: max-content;
    animation: announcement-marquee-scroll 60s linear infinite;
    will-change: transform;
}

.announcement-marquee__group {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
}

.announcement-marquee__text,
.announcement-marquee__separator {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    white-space: nowrap;
}

.announcement-marquee__text {
    padding-right: 1rem;
}

.announcement-marquee__separator {
    padding-right: 1rem;
}

.announcement-marquee__track,
.announcement-marquee__group,
.announcement-marquee__text,
.announcement-marquee__separator {
    max-width: none;
}

@keyframes announcement-marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.site-header {
    position: fixed;
    top: calc(2.75rem + 1.25rem);
    left: 0;
    right: 0;
    z-index: 3900;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    pointer-events: none;
}

.site-header__pill {
    width: min(39rem, calc(100vw - 2rem));
    min-height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-header__logo img {
    width: auto;
    height: 3.65rem;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.site-header__icon-button,
.site-header__login {
    transition: transform 180ms ease, filter 180ms ease, background-color 180ms ease;
}

.site-header__icon-button {
    position: relative;
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #037050;
}

.site-header__icon-button:hover,
.site-header__login:hover {
    transform: translateY(-1px) scale(1.03);
}

.site-header__icon-button img {
    width: 1.35rem;
    height: 1.35rem;
    filter: brightness(0) invert(1);
}

.site-header__login {
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    border-radius: 999px;
    background: #fa7f03;
    color: #fff;
    font-family: "Bowlby One", cursive;
    font-size: 1rem;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-header #cartBadge {
    top: -0.25rem;
    right: -0.25rem;
}

.home-hero {
    height: 100vh;
    min-height: 42rem;
    background-image: url('../images/home-hero-full.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.bg-primary > section.relative.bg-primary:first-of-type {
    position: relative;
    z-index: auto !important;
    overflow: hidden;
    height: 100vh !important;
    min-height: 42rem;
    padding: 0 !important;
    background: transparent !important;
}

body.bg-primary > section.relative.bg-primary:first-of-type::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../images/home-hero-full.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.bg-primary > section.relative.bg-primary:first-of-type > .absolute.inset-0,
body.bg-primary > section.relative.bg-primary:first-of-type > .relative.z-20 {
    display: none !important;
}

body > section.relative.bg-primary:first-of-type > header {
    position: fixed !important;
    top: calc(2.75rem + 1.25rem) !important;
    left: 50% !important;
    right: auto !important;
    width: min(39rem, calc(100vw - 2rem)) !important;
    min-height: 5.5rem;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.25rem;
    padding: 0.9rem 2rem !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    transform: translateX(-50%);
    z-index: 3900 !important;
}

body.bg-primary > section.bg-white.pt-20 {
    padding-top: 5rem !important;
}

body > section.relative.bg-primary:first-of-type > header > a:first-child {
    width: 8.2rem;
    height: 3.65rem;
    display: inline-flex !important;
    align-items: center;
    flex: 0 0 auto;
    background: url('../images/logo-green-orange.svg') center / contain no-repeat;
}

body > section.relative.bg-primary:first-of-type > header > a:first-child img {
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
}

body > section.relative.bg-primary:first-of-type > header > div {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex: 0 0 auto;
}

body > section.relative.bg-primary:first-of-type > header > div > a[href^="cart"],
body > section.relative.bg-primary:first-of-type > header > div > #authLinkDesktop {
    width: 3.25rem !important;
    height: 3.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: #037050 !important;
}

body > section.relative.bg-primary:first-of-type > header > div > a[href^="cart"] img,
body > section.relative.bg-primary:first-of-type > header > div > #authLinkDesktop img {
    width: 1.35rem !important;
    height: 1.35rem !important;
    filter: brightness(0) invert(1);
}

body > section.relative.bg-primary:first-of-type > header > div > #loginBtnDesktop {
    width: auto !important;
    height: 3.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 2rem !important;
    border-radius: 999px !important;
    background: #fa7f03 !important;
    color: #fff !important;
    font-family: "Bowlby One", cursive;
    font-size: 1rem !important;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

body:not(.bg-primary) > section.relative.bg-primary:first-of-type {
    padding-top: 10rem !important;
}

@media (max-width: 767px) {
    .announcement-marquee {
        --announcement-height: 2.35rem;
    }

    .site-header {
        top: calc(2.35rem + 0.75rem);
        padding: 0 0.75rem;
    }

    .site-header__pill {
        width: min(100%, 27rem);
        min-height: 4.5rem;
        gap: 0.7rem;
        padding: 0.7rem 1rem;
    }

    .site-header__logo img {
        height: 2.75rem;
    }

    .site-header__actions {
        gap: 0.55rem;
    }

    .site-header__icon-button {
        width: 2.55rem;
        height: 2.55rem;
    }

    .site-header__icon-button img {
        width: 1.1rem;
        height: 1.1rem;
    }

    .site-header__login {
        height: 2.55rem;
        padding: 0 1rem;
        font-size: 0.72rem;
    }

    .home-hero {
        height: 60vh;
        min-height: 60vh;
        background-position: center;
    }

    body.bg-primary > section.relative.bg-primary:first-of-type {
        height: 60vh !important;
        min-height: 0 !important;
        max-height: 60vh !important;
        background-position: center !important;
    }

    body > section.relative.bg-primary:first-of-type > header {
        top: calc(2.35rem + 0.75rem) !important;
        width: min(100%, calc(100vw - 1.5rem)) !important;
        min-height: 4.5rem;
        gap: 0.7rem;
        padding: 0.7rem 1rem !important;
    }

    body > section.relative.bg-primary:first-of-type > header > a:first-child {
        width: 6.2rem;
        height: 2.75rem;
    }

    body > section.relative.bg-primary:first-of-type > header > div {
        gap: 0.55rem !important;
    }

    body > section.relative.bg-primary:first-of-type > header > div > a[href^="cart"],
    body > section.relative.bg-primary:first-of-type > header > div > #authLinkDesktop {
        width: 2.55rem !important;
        height: 2.55rem !important;
    }

    body > section.relative.bg-primary:first-of-type > header > div > a[href^="cart"] img,
    body > section.relative.bg-primary:first-of-type > header > div > #authLinkDesktop img {
        width: 1.1rem !important;
        height: 1.1rem !important;
    }

    body > section.relative.bg-primary:first-of-type > header > div > #loginBtnDesktop {
        height: 2.55rem !important;
        padding: 0 1rem !important;
        font-size: 0.72rem !important;
    }

    body:not(.bg-primary) > section.relative.bg-primary:first-of-type {
        padding-top: 8rem !important;
    }
}
