body {
    background-color: #f8fafc;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body.mobile-menu-open {
    overflow: hidden;
}

section {
    scroll-margin-top: 140px;
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.line-clamp-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.swiper {
    overflow: hidden;
}

.swiper-button-next,
.swiper-button-prev {
    color: #f97316;
    background: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.08);
    background: #f97316;
    color: #ffffff;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
    font-weight: 900;
}

.swiper-pagination-bullet-active {
    background: #f97316 !important;
    width: 24px !important;
    border-radius: 4px !important;
}

.filter-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.filter-accordion-item.open .filter-accordion-content {
    max-height: 520px;
}

.filter-accordion-item.open .chevron {
    transform: rotate(180deg);
}

.chart-shell {
    min-height: 220px;
}

[data-checkbox-ui] {
    position: relative;
}

[data-checkbox-ui].is-checked {
    border-color: #f97316;
    background: #f97316;
}

[data-checkbox-ui] i {
    opacity: 0;
    transition: opacity 0.18s ease;
}

[data-checkbox-ui].is-checked i {
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 80;
}

.mobile-nav.hidden {
    display: none;
}

.mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
}

.mobile-nav__panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: min(88vw, 420px);
    background: #ffffff;
    box-shadow: -24px 0 64px rgba(15, 23, 42, 0.18);
    padding: 1.25rem;
}

.mobile-search {
    z-index: 45;
}

.product-card__price-value {
    min-width: 0;
    overflow-wrap: anywhere;
}

a,
button,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
}

@media (min-width: 768px) {
    #categories-bar {
        overflow-x: visible;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    section {
        scroll-margin-top: 110px;
    }

    #header nav {
        gap: 0.75rem;
        border-radius: 1.25rem;
    }

    #categories-bar {
        top: 126px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #categories-bar > div {
        justify-content: flex-start;
        gap: 1rem;
        min-width: max-content;
    }

    .accordion-nav-item {
        flex: 0 0 auto;
    }

    .accordion-nav-content {
        position: fixed !important;
        left: 1rem !important;
        right: 1rem !important;
        top: 176px !important;
        padding-top: 0;
        z-index: 70;
    }

    .accordion-nav-content > div {
        min-width: auto;
        max-height: min(56vh, 420px);
        overflow-y: auto;
    }

    .heroSwiper,
    .productSwiper,
    .relatedSwiper {
        overflow: visible;
    }

    .heroSwiper .swiper-slide {
        height: 420px !important;
    }

    .heroSwiper .swiper-slide > div,
    .heroSwiper .swiper-slide .absolute.inset-0 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }

    .swiper-slide article {
        min-height: 100%;
    }

    .product-card__prices {
        gap: 0.75rem;
    }

    .product-card__price-value {
        font-size: 1.35rem;
        line-height: 1.1;
    }

    .mobile-nav__panel {
        width: 100%;
        max-width: none;
    }

    footer {
        margin-top: 2.5rem !important;
    }
}
