
/** ADD YOUR AWESOME CODES HERE **/

.pagination {
    display: flex;
    margin-top: 15px;
    align-items: center;
    justify-content: center;
    float: right !important;
}

.pagination a, .pagination span.current {
    text-decoration: none;
    padding: 12px 17px;
    border-radius: 2px;
    color: #fff;
    background-color: var(--moss);
}

.pagination span.current {
    margin-right: 0.2em;
}

.pagination a:hover {
    background-color: var(--clay);
}

:root {
    --ink: #1e2924;
    --muted: #66736a;
    --paper: #f7f8f3;
    --surface: #ffffff;
    --moss: #315b45;
    --moss-dark: #203c30;
    --clay: #c8754d;
    --line: #e4e9e1;
    --shadow: 0 18px 45px rgba(35, 57, 43, .10);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--muted);
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.cover-slides h1 {
    color: var(--ink);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
}

.main-top {
    background: var(--moss-dark) !important;
    padding: 4px 0;
}

.main-top .container-fluid,
.main-header .container,
.main-content > .container,
.main-content > .container-fluid > .container,
footer .container {
    max-width: 1240px;
}

.main-top .row {
    align-items: center;
}

.main-top p,
.main-top a,
.our-link ul li a {
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

#google_translate_element,
#google_translate_element .goog-te-gadget,
#google_translate_element .goog-te-gadget-simple {
    color: rgba(255, 255, 255, .72) !important;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
}

#google_translate_element select,
#google_translate_element .goog-te-combo {
    background: var(--moss) !important;
    border: 1px solid rgba(255, 255, 255, .25) !important;
    border-radius: 4px;
    color: #fff !important;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    max-width: 180px;
    padding: 7px 9px;
}

/* Hide the "Powered by Google Translate" label + branding for a cleaner look */
#google_translate_element .goog-logo-link,
#google_translate_element .goog-te-gadget span,
#google_translate_element .goog-te-gadget > span,
.goog-te-banner-frame {
    display: none !important;
}

#google_translate_element .goog-te-gadget {
    font-size: 0 !important;
    height: auto;
    line-height: 0;
}

#google_translate_element .goog-te-gadget .goog-te-combo {
    font-size: 12px !important;
    margin: 0 !important;
}

/* Prevent Google Translate from shifting the body down */
body {
    top: 0 !important;
}

/* Floating language switcher - fixed on the right edge of the viewport */
.lang-switcher-floating {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
    display: flex;
    align-items: stretch;
}

.lang-switcher-floating .lang-switcher-toggle {
    background: var(--moss, #143025);
    border: none;
    border-radius: 12px 0 0 12px;
    padding: 12px 10px;
    box-shadow: -3px 3px 12px rgba(0, 0, 0, .18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-switcher-floating .lang-switcher-toggle {
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    min-width: 54px;
}

/* Logo-matching gold gradient applied to the icon + language code */
.lang-switcher-floating .lang-switcher-toggle .lang-switcher-icon,
.lang-switcher-floating .lang-switcher-toggle i.fas,
.lang-switcher-floating .lang-switcher-toggle i.fa,
.lang-switcher-floating .lang-switcher-toggle .lang-switcher-code {
    background: linear-gradient(180deg, #f5db85 0%, #e8b944 45%, #b8811f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35));
}

.lang-switcher-floating .lang-switcher-toggle .lang-switcher-icon,
.lang-switcher-floating .lang-switcher-toggle i.fas,
.lang-switcher-floating .lang-switcher-toggle i.fa {
    font-size: 22px;
    line-height: 1;
}

.lang-switcher-floating .lang-switcher-toggle .lang-switcher-code {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.lang-switcher-floating .lang-switcher-toggle:hover .lang-switcher-icon,
.lang-switcher-floating .lang-switcher-toggle:hover .lang-switcher-code,
.lang-switcher-floating.is-open .lang-switcher-icon,
.lang-switcher-floating.is-open .lang-switcher-code {
    background: linear-gradient(180deg, #fce8a0 0%, #f4c95a 45%, #c99230 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lang-switcher-floating .lang-switcher-panel {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .1);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    box-shadow: -4px 4px 14px rgba(0, 0, 0, .12);
    padding: 12px 14px;
    display: none;
    align-items: center;
    gap: 10px;
    max-width: 240px;
}

.lang-switcher-floating.is-open .lang-switcher-panel {
    display: flex;
}

.lang-switcher-floating.is-open .lang-switcher-toggle {
    border-radius: 0;
}

.lang-switcher-floating .lang-switcher-label {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--moss, #143025);
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.lang-switcher-floating #google_translate_element {
    display: inline-flex;
    align-items: center;
}

.lang-switcher-floating #google_translate_element select,
.lang-switcher-floating #google_translate_element .goog-te-combo {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, .18) !important;
    border-radius: 6px;
    color: #333 !important;
    font-family: 'Manrope', sans-serif;
    font-size: 12px !important;
    padding: 6px 8px !important;
    max-width: 150px;
    cursor: pointer;
}

/* Mobile: smaller widget, positioned above the back-to-top button */
@media (max-width: 767px) {
    .lang-switcher-floating {
        top: auto;
        bottom: 82px;
        transform: none;
    }

    .lang-switcher-floating .lang-switcher-toggle {
        padding: 8px 8px;
    }

    .lang-switcher-floating .lang-switcher-toggle {
        padding: 8px 10px;
        min-width: 46px;
    }

    .lang-switcher-floating .lang-switcher-toggle .lang-switcher-icon {
        font-size: 18px;
    }

    .lang-switcher-floating .lang-switcher-toggle .lang-switcher-code {
        font-size: 10px;
    }

    .lang-switcher-floating .lang-switcher-panel {
        padding: 10px 12px;
        max-width: 200px;
    }

    .lang-switcher-floating .lang-switcher-label {
        display: none;
    }
}

.main-top a:hover,
.our-link ul li a:hover {
    color: #f2c58f;
}

.our-link ul li {
    border-color: rgba(255, 255, 255, .22);
}

.main-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 20;
}

.main-header .navbar {
    background: transparent !important;
    min-height: 76px;
    padding: 6px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 48px;
    left: 0 !important;
    position: relative;
    top: 0 !important;
}

.navbar-brand img.logo {
    height: 64px !important;
    object-fit: contain;
    width: 84px !important;
}

nav.navbar.bootsnav ul.nav > li > a,
.navbar-nav .nav-link {
    color: var(--ink) !important;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 13px 14px !important;
    position: relative;
}

nav.navbar.bootsnav ul.nav > li > a::after {
    display: none !important;
}

nav.navbar.bootsnav ul.nav > li:not(.active) > a:hover,
nav.navbar.bootsnav ul.nav > li:not(.active) > a:focus {
    background: transparent !important;
    color: var(--moss) !important;
    text-decoration: none !important;
}

#navbar-menu li .nav-link.active,
#navbar-menu li .nav-link.active:hover {
    background: var(--moss) !important;
    border-radius: 4px;
    color: #fff !important;
}

#navbar-menu li.nav-item a.nav-link.active,
#navbar-menu li.nav-item a.nav-link.active:hover {
    background: #315b45 !important;
    background-color: #315b45 !important;
    color: #fff !important;
}

#navbar-menu li.nav-item.active {
    background: #315b45 !important;
    border-radius: 4px;
}

#navbar-menu li.nav-item.active > a.nav-link,
#navbar-menu li.nav-item.active > a.nav-link:hover {
    background: transparent !important;
    color: #fff !important;
}

.navbar-light .navbar-toggler {
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--moss);
    padding: 9px 12px;
}

.cover-slides {
    background: var(--moss-dark);
    min-height: min(680px, 72vh);
}

.cover-slides .slides-container li::after {
    background: linear-gradient(90deg, rgba(19, 36, 28, .78), rgba(19, 36, 28, .18));
    content: '';
    inset: 0;
    position: absolute;
}

.cover-slides .container {
    position: relative;
    z-index: 2;
}

.cover-slides h1 {
    color: #fff;
    font-size: clamp(46px, 6vw, 86px);
    letter-spacing: -.02em;
    line-height: .9 !important;
    max-width: 720px;
    text-align: left;
}

.cover-slides p {
    color: rgba(255, 255, 255, .86);
    font-size: clamp(15px, 2vw, 19px);
    max-width: 520px;
    text-align: left;
}

.cover-slides p a,
.btn.hvr-hover {
    background: var(--clay) !important;
    border: 0 !important;
    border-radius: 4px !important;
    box-shadow: 0 10px 22px rgba(200, 117, 77, .22);
    color: #fff !important;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    padding: 14px 22px;
    text-transform: uppercase;
}

.cover-slides p a:hover,
.btn.hvr-hover:hover {
    background: var(--moss) !important;
    transform: translateY(-2px);
}

.banner,
.about,
.products-box,
.latest-blog,
.shop-box-inner {
    padding: 88px 0;
}

.banner {
    margin-bottom: 0 !important;
}

.bg-agarwood-banner,
.bg-agarwood-info {
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-height: 300px;
    overflow: hidden;
}

.bg-agarwood-banner {
    background-color: var(--moss) !important;
    background-blend-mode: soft-light;
}

.bg-agarwood-banner h2,
.bg-agarwood-banner p {
    max-width: 420px;
}

.bg-agarwood-banner h2 {
    color: #fff;
    font-size: 42px;
}

.about {
    background: var(--surface);
}

.about .carousel,
.about .carousel-item,
.about .carousel-inner {
    border: 0 !important;
    border-radius: 8px;
    min-height: 440px;
    overflow: hidden;
}

.about .carousel img {
    object-fit: cover;
}

.title-all h1,
.products-box .title-all h1 {
    font-size: clamp(36px, 4vw, 58px);
    letter-spacing: -.02em;
}

.filter-button-group button {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 4px !important;
    color: var(--muted);
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    margin: 4px;
    padding: 10px 16px;
    text-transform: uppercase;
}

.filter-button-group button.active,
.filter-button-group button:hover {
    background: var(--moss);
    border-color: var(--moss);
    color: #fff;
}

.products-box {
    background: var(--paper);
}

.special-list,
.shop-box-inner .row {
    row-gap: 24px;
}

.products-single,
.blog-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
    height: 100%;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}

.products-single:hover,
.blog-box:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.products-single .box-img-hover,
.blog-img {
    background: #edf1eb;
    height: 260px;
    overflow: hidden;
}

.products-single .box-img-hover img,
.blog-img img {
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
    width: 100%;
}

.products-single:hover .box-img-hover img,
.blog-box:hover .blog-img img {
    transform: scale(1.04);
}

.products-single .why-text,
.blog-content {
    height: auto !important;
    min-height: 132px;
    padding: 20px;
    position: relative;
}

.products-single .why-text h4,
.title-blog h3 {
    font-size: 23px;
    line-height: 1.05 !important;
}

.products-single .why-text h4 a,
.title-blog h3 a {
    color: var(--ink);
}

.products-single .why-text h4 a:hover,
.title-blog h3 a:hover,
.pagination a:hover {
    color: var(--clay) !important;
    text-decoration: none !important;
}

.products-single .why-text h5 {
    bottom: 17px !important;
    color: var(--clay);
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 800;
    left: 20px;
}

.box-add-products {
    padding: 0 0 72px;
}

.offer-box-products img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 100%;
}

.all-title-box {
    background-image: linear-gradient(rgba(20, 48, 37, .76), rgba(20, 48, 37, .76)), url('/static/assets/images/bgfooter.jpg');
    background-position: center;
    background-size: cover;
    padding: 72px 0;
}

.all-title-box h2 {
    color: #fff;
    font-size: clamp(42px, 6vw, 70px);
}

.all-title-box .breadcrumb,
.all-title-box .breadcrumb a {
    color: rgba(255, 255, 255, .72);
}

.all-title-box .breadcrumb {
    background: var(--moss) !important;
    border-radius: 4px;
}

.all-title-box .breadcrumb a,
.all-title-box .breadcrumb-item.active,
.all-title-box .breadcrumb-item + .breadcrumb-item::before {
    color: #fff !important;
}

.product-item-filter {
    align-items: center;
    border-bottom: 1px solid var(--line);
    margin-bottom: 36px;
    padding-bottom: 20px;
}

.toolbar-sorter-right .bootstrap-select.btn-group > .dropdown-toggle,
.toolbar-sorter-right .bootstrap-select .dropdown-toggle,
.toolbar-sorter-right .show > .btn-light.dropdown-toggle {
    background: var(--moss) !important;
    border-color: var(--moss) !important;
    color: #fff !important;
}

.product-item-filter li .nav-link.active,
.product-item-filter li .nav-link.active:hover {
    background: var(--moss) !important;
    border-color: var(--moss) !important;
    color: #fff !important;
}

.product-item-filter .nav-tabs .nav-link.active,
.product-item-filter .nav-tabs .nav-link.active:hover {
    background: var(--moss) !important;
    border-color: var(--moss) !important;
    color: #fff !important;
}

.product-item-filter .nav-tabs .nav-link:hover,
.toolbar-sorter-right .bootstrap-select .dropdown-toggle:hover {
    background: var(--moss) !important;
    border-color: var(--moss) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.footer-main {
    background-color: var(--moss-dark) !important;
    background-image: linear-gradient(rgba(20, 48, 37, .78), rgba(20, 48, 37, .78)), url('/static/assets/images/banner_tinh_dau_2.jpg') !important;
    background-position: center;
    background-size: cover;
    padding: 72px 0 40px;
}

.footer-main h3,
.footer-main h4 {
    color: #fff;
}

.footer-main p,
.footer-main li,
.footer-main a {
    color: rgba(255, 255, 255, .68);
}

.footer-main a:hover {
    color: #f2c58f;
}

.footer-copyright {
    background: #172d23 !important;
    color: rgba(255, 255, 255, .55);
    padding: 18px 16px;
    margin-top: 0;
}

.bg-primary,
.bg-secondary {
    background-color: var(--moss) !important;
}

.bg-agarwood-info {
    background: var(--moss-dark) !important;
}

.instagram-box {
    background: var(--paper) !important;
}

/* Override legacy black overlay */
.instagram-box::before {
    background: transparent !important;
}

.instagram-box .hov-in {
    background: rgba(32, 60, 48, .78);
}

.instagram-box .hov-in a {
    color: #fff;
}

/* Owl carousel prev/next: shrink from full-height black bars to compact round buttons */
.main-instagram.owl-carousel .owl-nav button.owl-prev,
.main-instagram.owl-carousel .owl-nav button.owl-next {
    background: rgba(32, 60, 48, .55) !important;
    color: #fff !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.main-instagram.owl-carousel .owl-nav button.owl-prev {
    left: 14px !important;
}

.main-instagram.owl-carousel .owl-nav button.owl-next {
    right: 14px !important;
}

.main-instagram.owl-carousel .owl-nav button.owl-prev:hover,
.main-instagram.owl-carousel .owl-nav button.owl-next:hover {
    background: var(--clay) !important;
}

.footer-top-box .btn,
.footer-top-box button,
.newsletter-box .btn {
    background: var(--clay) !important;
    border-color: var(--clay) !important;
    color: #fff !important;
}

.footer-top-box .btn:hover,
.footer-top-box button:hover,
.newsletter-box .btn:hover {
    background: var(--moss) !important;
    border-color: var(--moss) !important;
}

.type-lb .sale {
    background: var(--clay) !important;
    border-color: var(--clay) !important;
}

.type-lb .sale {
    color: #fff !important;
}

#back-to-top {
    background: var(--clay);
    border-radius: 50%;
    bottom: 24px;
    font-size: 20px;
    height: 42px;
    line-height: 42px;
    right: 24px;
    width: 42px;
}


@media (max-width: 991px) {
    nav.navbar .navbar-brand {
        left: 0 !important;
        top: 0 !important;
    }

    .navbar-brand {
        margin-right: 0;
    }

    .main-header .navbar {
        min-height: 68px;
    }

    .navbar-collapse {
        background: var(--surface);
        border-top: 1px solid var(--line);
        margin-top: 12px;
        padding: 10px 0;
    }

    nav.navbar.bootsnav ul.nav > li > a,
    .navbar-nav .nav-link {
        padding: 12px 10px !important;
    }

    .navbar-brand img.logo {
        height: 58px !important;
        width: 76px !important;
    }

    .cover-slides {
        min-height: 600px;
    }

    .banner,
    .about,
    .products-box,
    .latest-blog,
    .shop-box-inner {
        padding: 64px 0;
    }
}

/* Mobile top bar: keep the phone number visible as a tap-to-call CTA */
@media (max-width: 767px) {
    .main-top {
        padding: 6px 0;
    }

    .main-top .right-phone-box {
        display: block !important;
        float: none !important;
        text-align: center;
        margin: 0;
        padding: 0;
    }

    .main-top .right-phone-box p {
        margin: 0;
        font-size: 12px;
        line-height: 1.4;
    }

    .main-top .right-phone-box p a {
        color: #f2c58f;
        font-weight: 700;
    }

    /* Hide the extra links + carousel on mobile so the bar stays tidy */
    .main-top .our-link,
    .main-top .text-slid-box,
    .main-top .login-box {
        display: none !important;
    }
}

@media (max-width: 575px) {
    .main-top .our-link {
        display: none;
    }

    .main-top .login-box {
        margin: 0;
    }

    .main-header .container {
        padding: 0 18px;
    }

    .navbar-brand img.logo {
        height: 52px !important;
        width: 68px !important;
    }

    .cover-slides,
    .cover-slides .slides-container li {
        min-height: 540px;
    }

    .cover-slides h1 {
        font-size: 50px;
    }

    .cover-slides p {
        font-size: 14px;
    }

    .about .carousel,
    .about .carousel-item,
    .about .carousel-inner {
        min-height: 300px;
    }

    .bg-agarwood-banner,
    .bg-agarwood-info {
        min-height: 240px;
    }

    .products-single .box-img-hover,
    .blog-img {
        height: 220px;
    }

    .products-box,
    .latest-blog,
    .shop-box-inner {
        padding: 52px 0;
    }
}

/* ============================================================
   RESPONSIVE FIXES - Card heights, iframe wrapper, pagination
   ============================================================ */

/* Responsive YouTube iframe wrapper - keeps 16:9 aspect ratio */
.responsive-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.responsive-iframe-wrapper .responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Home banner section: side-by-side card + video, matched height on desktop */
.banner .banner-col > .bg-agarwood-banner {
    min-height: 300px;
    height: 100%;
}

.banner .banner-col > .responsive-iframe-wrapper {
    height: 100%;
    min-height: 300px;
}

@media (min-width: 768px) {
    .banner .row {
        align-items: stretch;
    }

    .banner .banner-col {
        display: flex;
        flex-direction: column;
    }

    .banner .banner-col > .responsive-iframe-wrapper {
        padding-bottom: 0;
        flex: 1;
    }

    .banner .banner-col > .bg-agarwood-banner {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .banner .banner-col:first-child {
        margin-bottom: 2em;
    }
}

/* Product card text block - uses min-height instead of fixed height,
   so long product names on mobile don't get clipped */
.product-card-text {
    min-height: 8em;
    position: relative;
    padding-bottom: 2.5em;
}

.product-card-text .product-card-price {
    position: absolute;
    bottom: 1em;
    left: 20px;
    margin: 0;
}

/* News card body - flexible height on all viewports */
.blog-card-content,
.news-card-text {
    min-height: 6em;
}

.blog-card-content {
    min-height: 12em;
}

/* Pagination - center on mobile instead of float:right */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.pagination .step-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Small mobile tweaks (<= 575px) */
@media (max-width: 575px) {
    .product-card-text {
        min-height: 7em;
        padding-bottom: 2.2em;
    }

    .product-card-text .product-card-price {
        left: 15px;
    }

    .blog-card-content {
        min-height: 10em;
    }
}

/* Very small phones (<= 360px) - reduce padding/margin footprint */
@media (max-width: 360px) {
    .products-box,
    .latest-blog,
    .shop-box-inner,
    .about-box-main,
    .contact-box-main {
        padding: 32px 0;
    }

    .footer-widget,
    .footer-link,
    .hover-team,
    .product-categori,
    .offer-box-products,
    .coupon-box,
    .single-product-slider,
    .contact-info-left,
    .add-comp a {
        margin-bottom: 15px !important;
    }

    .product-item-filter,
    .product-categorie-box {
        margin: 15px 0 !important;
    }

    .cover-slides h1 {
        font-size: 24px;
    }

    .cover-slides p {
        font-size: 13px;
    }

    .filter-button-group button {
        font-size: 12px;
        padding: 4px 12px;
    }

    .all-title-box h2 {
        font-size: 22px;
    }
}

/* All title box - fix breadcrumb overflow on mobile */
@media (max-width: 767px) {
    .all-title-box h2 {
        float: none !important;
        font-size: 30px !important;
        text-align: center;
        padding-bottom: 6px !important;
    }

    .all-title-box .breadcrumb {
        float: none !important;
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }
}

@media (max-width: 360px) {
    .all-title-box h2 {
        font-size: 24px !important;
    }

    .all-title-box .breadcrumb li,
    .all-title-box .breadcrumb li a {
        font-size: 13px;
    }
}

/* Filter button group - wrap buttons on mobile to prevent overflow */
@media (max-width: 767px) {
    .filter-button-group,
    .special-menu .filter-button-group {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .filter-button-group button {
        white-space: nowrap;
        margin-bottom: 0 !important;
    }
}

/* Sort dropdown - ensure it stays within viewport on mobile */
@media (max-width: 575px) {
    .toolbar-sorter-right {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }

    .toolbar-sorter-right .bootstrap-select.form-control:not([class*="col-"]) {
        width: 100% !important;
        max-width: 100%;
    }

    .toolbar-sorter-right > span {
        width: auto;
    }
}

/* Prevent horizontal overflow on any device */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}