/* ============================================================
   MQ.CSS — Responsive / media-query rules
   ============================================================ */


/* ── LARGE DESKTOP ── */

@media (min-width: 1500px) {
    .container {
        max-width: 88.75rem;
    }
}


/* ============================================================
   HEADER
   ============================================================ */

@media (max-width: 991.98px) {
    .header-content::before {
        height: 3.5rem;
    }

    .header-content > .container {
        grid-template-columns: auto 1fr auto auto auto;
        grid-template-rows: 3.5rem auto;
        grid-template-areas:
            "logo  search user  fav   cart"
            "menuL menuL  menuL menuR menuR";
        column-gap: 0.5rem;
    }

    .header-content .link-w-icon-text {
        display: none;
    }

    .header-menu-left-part-item,
    .header-menu-right-part-item {
        display: none;
    }

    .btn-hamburger-sticky {
        display: inline-flex;
    }
    .header-logo-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .header-logo-item img {
        max-width: 8.75rem;
    }

    .header-content .link-w-icon {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .header-content .link-w-icon svg {
        width: 1.375rem;
        height: 1.375rem;
    }

    .header-dropdown-categories {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .header-dropdown-categories a {
        border: none;
        border-radius: 0;
        padding: 0.75rem 0rem;
        gap: 0.625rem;
    }
    .header-dropdown-categories a:hover,
    .header-dropdown-categories a:active {
        background: none;
        color: var(--accent);
        border: none;
    }
    .header-dropdown-categories .cat-icon {
        flex: 0 0 1.75rem;
        width: 1.75rem;
        height: 1.75rem;
        padding: 0;
        background: none;
    }
    .header-dropdown-categories .cat-chevron {
        opacity: 0.4;
    }

    .header-dropdown-inner {
        padding: 1.5rem 0 2rem;
    }

    .header-dropdown-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-dropdown,
    .header-dropdown[hidden] {
        display: block !important;
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 100%);
        height: calc(100dvh - 100%);
        max-height: none;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid var(--color-border);
        background: var(--white);
        overflow-y: auto;
        transition: left 0.3s ease;
    }
    .header-dropdown.is-open {
        left: 0;
    }

    html:has(body.header-dropdown-open),
    body.header-dropdown-open {
        overflow: hidden !important;
    }
    body.header-dropdown-open #header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
    }

    .header-dropdown-links {
        margin-top: 1rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--color-border);
    }
    .header-dropdown-links ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .header-dropdown-links a {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        padding: 0.75rem 0rem;
        color: var(--color-text);
        text-decoration: none;
        font-size: var(--text-xs);
        font-weight: var(--fw-medium);
    }
    .header-dropdown-links a svg:first-child {
        width: 1.125rem;
        height: 1.125rem;
        flex-shrink: 0;
    }
    .header-dropdown-links .cat-chevron {
        margin-left: auto;
        opacity: 0.4;
    }
}

@media (min-width: 992px) {
    .header-dropdown-inner {
        padding: 1.75rem 0;
    }
}

@media (max-width: 575.98px) {
    .header-content::before {
        height: 3.125rem;
    }

    .header-dropdown-categories {
        grid-template-columns: 1fr;
    }

    .header-content > .container {
        grid-template-columns: 1fr auto auto auto;
        grid-template-rows: 3.125rem auto;
        grid-template-areas:
            "logo  user  fav   cart"
            "search search search search";
        column-gap: 0.25rem;
        row-gap: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .header-logo-item img {
        max-width: 7.5rem;
    }

    .header-search-item .search_input {
        height: 2.25rem;
        font-size: var(--text-xs);
    }

    #header.header-compact .header-content > .container {
        grid-template-columns: 1fr auto auto auto;
        grid-template-rows: 3.125rem auto;
        grid-template-areas:
            "logo  user  fav   cart"
            "search search search search";
        padding-bottom: 0.5rem;
    }

    #header.header-compact .header-content::before {
        height: 3.125rem;
    }

    .search-results {
        left: 0;
        right: 0;
        max-height: 60vh;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .header-dropdown {
        max-width: 100%;
        width: 100%;
    }

    .cart-icon-wrapper .cart_count,
    .icon-wrapper-favorites .favorites-count {
        min-width: 1rem;
        height: 1rem;
        font-size: 0.625rem;
        line-height: 1rem;
        padding: 0 0.25rem;
        top: -0.375rem;
        right: -0.25rem;
    }

    .checkout-header__logo img {
        max-height: 2rem;
    }

    .header-content .link-w-icon {
        min-width: 36px;
        min-height: 36px;
    }
}


/* ============================================================
   HOMEPAGE — BADGE ROW
   ============================================================ */

@media (max-width: 991.98px) {
    .badge_row_container {
        display: block !important;
    }

    .badge_row_container .builder-row {
        row-gap: 1.5rem;
    }

    .badge-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .badge-col .badge {
        height: 100%;
    }
}

@media (max-width: 575.98px) {
    .badge-col .badge {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    .badge-col .badge-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    .badge-col .badge-text p {
        font-size: var(--text-xs);
    }

        .badge_row_container > .container > .row {
        gap: 0.75rem;
    }

    .badge-col {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
}


/* ============================================================
   HOMEPAGE — CATEGORIES / SLIDER
   ============================================================ */

@media (max-width: 991.98px) {
    .hometop .builder-row > .col-lg-3 {
        display: none;
    }
    .hometop .builder-row > .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hometop > .container {
        padding-left: 0;
        padding-right: 0;
    }
    .hometop-slider {
        border-radius: 0;
    }

    .hometop-slider .module-fickle {
        height: 17rem;
        min-height: 17rem;
        padding: 1.25rem;
        justify-content: center;
    }
    .hometop-slider .slick-prev,
    .hometop-slider .slick-next {
        width: 2rem;
        height: 2rem;
    }
    .hometop-slider .slick-dots {
        bottom: 0.75rem;
        right: 0.75rem;
    }
    .module-categories {
        margin-bottom: 1rem;
    }

    .hometop-slider .fickle-image::after {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.15) 80%);
    }

    .hometop-slider .fickle-header,
    .hometop-slider .fickle-content {
        padding: 0 2.5rem;
    }

    .hometop-slider .slick-dots {
        left: 0;
        right: 0;
        bottom: 0.75rem;
        width: 100%;
        justify-content: center;
    }

    .hometop-slider .slick-prev,
    .hometop-slider .slick-next {
        z-index: 2;
    }
}

@media (max-width: 575.98px) {
    .module-categories .category-card {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
    }
    .module-categories .category-card__title {
        font-size: var(--text-xs);
    }
}


/* ============================================================
   HOMEPAGE — BLOG / PAGES MODULE
   ============================================================ */

@media (max-width: 575.98px) {
    .module-pages .post-card__body {
        padding: 0.875rem;
    }
    .module-pages .post-card__title {
        font-size: var(--text-base);
    }
}


/* ============================================================
   PRODUCTS GRID
   ============================================================ */

@media (min-width: 768px) {
    .products-grid .row {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 1.25rem;
    }
}


/* ============================================================
   PRODUCT SLIDER
   ============================================================ */

@media (max-width: 1199.98px) { .pv-product-slider:not(.slick-initialized) { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 991.98px) { .pv-product-slider:not(.slick-initialized) { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .pv-product-slider:not(.slick-initialized) { grid-template-columns: repeat(2, 1fr); } }


/* ============================================================
   PRODUCT VIEW
   ============================================================ */

@media (max-width: 991.98px) {
    .pv__row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1.5rem;
    }
    .pv-gallery,
    .pv__info-col {
        position: static;
    }
    .pv__name { font-size: var(--text-lg); }
    .pv__price-main { font-size: var(--text-xl); }
    .pv-gallery__main,
    .pv-gallery__main img { max-height: 50vh; }

    .pv__trust { flex-direction: row; }
    .pv__trust-card { flex: 1; min-width: 0; }
}

@media (max-width: 767.98px) {
    .pv__info-col { padding: 1.25rem; }
    .pv__name { font-size: var(--text-base); }
    .pv__price-main { font-size: var(--text-lg); }
    .pv__desc { font-size: var(--text-xs); }

    .pv__trust { flex-direction: column; }

    .tier-price-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .tier-price-table {
        font-size: var(--text-xs);
        min-width: 26.25rem;
    }

    .pv-tabs__nav {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .pv-tabs__nav li { scroll-snap-align: start; }
    .pv-tabs__btn { padding: 0.625rem 1rem; font-size: var(--text-xs); }

    .pv-slider-arrow { width: 1.875rem; height: 1.875rem; }
    .pv-slider-arrow--prev { left: 0; }
    .pv-slider-arrow--next { right: 0; }
    .pv-slider-arrow svg { width: 0.875rem; height: 0.875rem; }
}

@media (max-width: 575.98px) {
    .pv { padding: 0.75rem 0 0; }
    .pv__breadcrumbs { margin-bottom: 0.75rem; font-size: var(--text-xs); }
    .pv__info-col { padding: 1rem; border-radius: var(--radius-sm); }
    .pv__name { font-size: var(--text-base); }
    .pv__price-main { font-size: var(--text-lg); }
    .pv__desc { font-size: var(--text-xs); margin-bottom: 0.75rem; }
    .pv__price-box { padding: 0.75rem; }

    .pv-gallery__main,
    .pv-gallery__main img {
        max-height: 45vh;
        max-height: 45svh;
    }
    .pv-gallery__thumb { width: 3.5rem; height: 3.5rem; }

    .pv__cart-section {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        background: var(--white);
        border-radius: 0;
        border-top: 1px solid var(--color-border);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
        padding: 0.5rem 1rem;
        margin: 0;
        gap: 0.5rem;
    }

    .pv__qty-wrap {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.375rem;
    }
    .pv__qty-label { display: none; }
    .pv__qty-hint { display: none; }
    .pv__qty-selector { border-radius: var(--radius-sm); }
    .pv__qty-btn { width: 2.25rem; height: 2.75rem; }
    .pv__qty-input { width: 2.5rem; height: 2.75rem; font-size: var(--text-xs); }

    .pv__btn-group { flex: 1; }
    .pv__btn-group .add-to-cart { flex: 1; height: 2.75rem; min-height: unset; font-size: var(--text-xs); padding: 0 0.75rem; }
    .pv__btn-group .btn-favorite { width: 2.75rem; height: 2.75rem; min-height: unset; }

    .pv-tabs__btn { padding: 0.625rem 0.875rem; font-size: var(--text-xs); }
    .pv-tabs-section { padding-bottom: 5rem; margin-top: 1rem; }

    .pv__trust-card { padding: 0.625rem; }
    .pv__trust-icon svg { width: 1.125rem; height: 1.125rem; }
    .pv__trust-header strong { font-size: var(--text-xs); }

    .pv__voucher { flex-direction: column; align-items: flex-start; gap: 0.375rem; padding: 0.625rem 0.75rem; }

    .toast-container { bottom: 5rem; }

    .pv-slider-section__title { font-size: var(--text-md); }

    .hometop-slider .fickle-title {
        font-size: var(--text-md);
    }
    .hometop-slider .fickle-text-content,
    .hometop-slider .fickle-text-content p {
        font-size: var(--text-xs);
    }
    .hometop-slider .module-fickle {
        padding-bottom: 2.5rem;
    }
}


/* ============================================================
   PRODUCT CARD
   ============================================================ */

@media (max-width: 991.98px) {
    .product-card__action .add-to-cart,
    .product-card__action .btn-variation-add,
    .product-card__btn {
        font-size: var(--text-xs);
        padding: 0.4rem 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .product-card__body { padding: 0.625rem; gap: 0.375rem; }
    .product-card__title a { font-size: var(--text-xs); min-height: calc(var(--text-xs) * 1.3 * 2); }
    .product-card__price-current { font-size: var(--text-sm); }
    .product-card__price-old { font-size: var(--text-xs); }
    .product-card__badge { font-size: var(--text-xs); padding: 0.15rem 0.4rem; }
    .product-card__action .add-to-cart,
    .product-card__action .add-to-cart.btn-primary,
    .product-card__action .add-to-cart-variation-modal,
    .product-card__btn--oos {
        min-height: 2rem;
        font-size: 0.6rem;
        padding: 0.4rem 0.5rem;
    }
}

@media (max-width: 400px) {
    .product-card__body { padding: 0.5rem; }
    .product-card__title a { font-size: var(--text-xs); }
    .product-card__action .add-to-cart,
    .product-card__action .btn-variation-add,
    .product-card__btn {
        font-size: 0.625rem;
        padding: 0.35rem 0.375rem;
        min-height: 2rem;
    }
}


/* ============================================================
   CART PAGE
   ============================================================ */

@media (min-width: 992px) {
    .cart-summary-sticky {
        position: sticky;
        top: calc(var(--header-height, 5rem) + 1rem);
    }
}

@media (max-width: 991.98px) {
    .cart-summary-sticky { position: static; }
}

@media (max-width: 575.98px) {
    .cart-page .cart-item-image img { width: 4rem; height: 4rem; }
    .cart-page .cart-qty-btn { width: 1.75rem; height: 1.75rem; }
    .cart-page .cart-qty-input { width: 2.25rem; height: 1.75rem; font-size: var(--text-xs); }
    .cart-summary h2 { font-size: var(--text-base); }
    .cart-item .cart-item-image img { width: 4.375rem; height: 4.375rem; }
    .cart-help-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    #cartOffcanvas { width: 100% !important; }
    #cartOffcanvas .cart-item-image img { width: 3.75rem; height: 3.75rem; }
}

@media (max-width: 575.98px) {
    .product-compare .remove-compare { font-size: var(--text-xs); min-height: 2.25rem; }
}

@media (max-width: 575.98px) {
    .empty-state { padding: 2rem 1rem; }
    .empty-state__icon svg { width: 2.25rem; height: 2.25rem; }
    .empty-state__title { font-size: var(--text-base); }
}


/* ============================================================
   CHECKOUT
   ============================================================ */

@media (min-width: 768px) {
    .checkout-step-group,
    .checkout-summary-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 991.98px) {
    .checkout-step-group { padding: 1.5rem; }
}

@media (max-width: 575.98px) {
    .checkout-step { padding-top: 1rem; padding-bottom: 1.5rem; }
    .checkout-step-group { padding: 1rem; }

    .checkout-step-group .form-check { padding: 0.625rem 0; padding-left: 1.75rem; }
    .checkout-step-group .form-check-input { width: 1.15em; height: 1.15em; margin-top: 0.15em; }

    .is-company-selector { flex-direction: column; gap: 0.25rem; }
    .is-company-selector .form-check-inline { margin-right: 0; }

    .payment-method .form-check {
        padding: 0.75rem;
        padding-left: 2.25rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        margin-bottom: 0.5rem;
    }

    .checkout-btn-wrapper {
        position: sticky;
        bottom: 0;
        background: var(--white);
        padding: 0.75rem 0;
        z-index: 10;
        border-top: 1px solid var(--color-border);
    }
    .checkout-btn-wrapper .btn { min-height: 48px; font-size: var(--text-base); }

    .checkout-products-part-wrapper .product-image img {
        width: 3rem;
        height: 3rem;
        object-fit: contain;
    }

    .secure-connection-box { display: none; }

    .select2-container { z-index: 1060; }

    .ck-card-box__content { flex-direction: column; gap: 0.75rem; }
}


/* ============================================================
   REVIEW UTILITIES
   ============================================================ */

@media (max-width: 767.98px) {
    .review-utilities .review-utilities-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    .review-utilities .rating-distribution {
        border: none;
        border-top: 1px solid var(--color-border);
        padding: 1rem 0 0;
    }
}


/* ============================================================
   SECTION TOP
   ============================================================ */

@media (max-width: 1000px) {
    .section-top .section-title h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 800px) {
    .section-top {
        flex-direction: column !important;
        align-items: stretch;
        gap: 0.75rem;
    }
    .section-top .section-title,
    .section-top .module-button {
        width: 100%;
    }
    .section-top .section-title h2 {
        text-align: left;
        white-space: normal;
        font-size: var(--text-lg);
    }
    .section-top .module-button .btn {
        width: 100%;
    }
    .section-top .line-title {
        width: 100%;
        min-width: 0;
    }
}


/* ============================================================
   USER SECTION — SIDEBAR
   ============================================================ */

.sidebar-toggle-btn { display: none; }
#userNavCollapse { display: block !important; }

@media (max-width: 991.98px) {
    .account-page .col-md-3 { flex: 0 0 100%; max-width: 100%; }
    .account-page .col-md-9 { flex: 0 0 100%; max-width: 100%; }

    .account-page .user-sidebar {
        position: static;
        margin-bottom: 1rem;
    }

    .account-page .user-sidebar-account { display: none; }

    #userNavCollapse { display: none !important; }
    #userNavCollapse.show { display: block !important; }
    #userNavCollapse.collapsing { display: block !important; }

    .sidebar-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.75rem 1rem;
        background: var(--white);
        border: none;
        border-radius: var(--radius-sm);
        cursor: pointer;
        min-height: 48px;
        font-family: var(--font-family);
        font-size: var(--text-sm);
        font-weight: var(--fw-medium);
        color: var(--color-text);
    }

    .sidebar-toggle-btn__label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .sidebar-toggle-btn__label .icon {
        display: inline-flex;
        width: 1.25rem;
        height: 1.25rem;
    }
    .sidebar-toggle-btn__label .icon svg {
        width: 100%;
        height: 100%;
        color: var(--accent);
    }

    .sidebar-toggle-btn__hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        width: 1.125rem;
        height: 1.125rem;
        flex-shrink: 0;
    }
    .sidebar-toggle-btn__hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--color-text-soft);
        border-radius: 1px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .sidebar-toggle-btn[aria-expanded="true"] .sidebar-toggle-btn__hamburger span:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }
    .sidebar-toggle-btn[aria-expanded="true"] .sidebar-toggle-btn__hamburger span:nth-child(2) {
        opacity: 0;
    }
    .sidebar-toggle-btn[aria-expanded="true"] .sidebar-toggle-btn__hamburger span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    .account-page .user-sidebar .list-group {
        flex-direction: column;
        background: var(--white);
        border: none;
        border-top: 1px solid var(--color-border);
        border-radius: 0;
        overflow: hidden;
        gap: 0;
        padding: 0;
    }

    .account-page .user-sidebar .list-group-item {
        border-left: none;
        border-radius: 0;
        white-space: normal;
        flex-shrink: 1;
        font-size: var(--text-sm);
        padding: 0.75rem 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .account-page .user-sidebar .list-group-item .icon {
        display: inline-flex;
    }

    .account-page .user-sidebar .list-group-item.active {
        background: var(--accent-soft);
        color: var(--accent);
        border-left: none;
        font-weight: var(--fw-medium);
    }
    .account-page .user-sidebar .list-group-item.active .icon svg { color: var(--accent); }

    .account-page .user-sidebar .list-group-item:not(.active):hover {
        background: var(--gray-100);
    }

    .account-page .user-sidebar .list-group-item:last-child {
        border-top: 1px solid var(--color-border);
        margin-top: 0;
    }
}

@media (max-width: 575.98px) {
    .account-page .container { padding-top: 1rem; padding-bottom: 1rem; }

    .dash-profile { flex-direction: column; text-align: center; gap: 0.75rem; }
    .dash-profile__info { align-items: center; }
    .dash-profile__details { justify-content: center; }

    .dash-stats { gap: 0.5rem; }
    .dash-stat { padding: 0.75rem 0.5rem; }
    .dash-stat__count { font-size: var(--text-lg); }
    .dash-stat__label { font-size: var(--text-xs); }

    .dash-cards--half { grid-template-columns: 1fr; }
    .acc-form-grid { grid-template-columns: 1fr; }
    .acc-items-grid { grid-template-columns: 1fr; }

    .acc-order__products { gap: 0.5rem; }
    .acc-order__product-img { width: 3rem; height: 3rem; }
}


/* ============================================================
   CATEGORY / SHOP PAGE
   ============================================================ */

@media (max-width: 991.98px) {
    .shop-filters > .col-lg-3 { margin-bottom: 1.5rem; }
    .category-count-sort { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .category-count-sort .sort-select { width: 100%; }

    .category-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        width: 100%;
    }

    .btn-filters-mobile,
    .btn-sort-mobile {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.625rem 1rem;
        background: var(--white);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        font-family: var(--font-family);
        font-size: var(--text-sm);
        font-weight: var(--fw-medium);
        color: var(--color-text);
        cursor: pointer;
        white-space: nowrap;
    }
    .btn-filters-mobile svg,
    .btn-sort-mobile svg { flex-shrink: 0; }

    .sort-dropdown-mobile {
        position: relative;
    }
    .sort-dropdown-menu {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        min-width: 12.5rem;
        background: var(--white);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        list-style: none;
        margin: 0;
        padding: 0.25rem 0;
        z-index: 20;
        overflow: hidden;
    }
    .sort-dropdown-mobile.is-open .sort-dropdown-menu {
        display: block;
    }
    .sort-dropdown-menu a {
        display: block;
        padding: 0.625rem 1rem;
        font-size: var(--text-sm);
        color: var(--color-text);
        text-decoration: none;
    }
    .sort-dropdown-menu a:hover { background: var(--gray-100); }
    .sort-dropdown-menu a.active {
        color: var(--accent);
        font-weight: var(--fw-medium);
    }

    .filters-sidebar-col {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 360px;
        height: 100%;
        z-index: 1050;
        background: var(--white);
        overflow-y: auto;
        padding: 1rem !important;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }
    .filters-sidebar-col.is-open {
        left: 0;
    }

    .filters-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid var(--color-border);
    }
    .filters-sidebar-header h5 {
        margin: 0;
        font-size: var(--text-base);
        font-weight: var(--fw-bold);
    }
    .filters-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        border: none;
        background: var(--gray-100);
        border-radius: 50%;
        cursor: pointer;
        color: var(--color-text);
        transition: background 0.15s ease;
    }
    .filters-close-btn:hover { background: var(--gray-200); }

    .filters-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1040;
    }
    .filters-backdrop.is-open {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .category-count-sort .category-count h2 { font-size: var(--text-base); }
    .category-products { padding: 1.5rem 0 2rem; }
    .filters-tab-title,
    .filters-tab-inner { padding: 0.625rem 0.75rem; }
}


/* ============================================================
   BLOG / POST VIEW
   ============================================================ */

@media (max-width: 991.98px) {
    .blog-view__sidebar { position: static; margin-top: 2rem; }
    .blog-view__sidebar-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}

@media (max-width: 575.98px) {
    .blog-view__title { font-size: var(--text-xl); }
    .blog-view__content { padding: 1.5rem 1.25rem 2rem; }
    .blog-view__nav { flex-direction: column; }
    .blog-view__nav-link { max-width: 100%; }
    .blog-view__share { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .blog-view__sidebar-list { grid-template-columns: 1fr; }
}


/* ============================================================
   FOOTER
   ============================================================ */

@media (max-width: 991.98px) {
    footer .footer_container { padding-top: 2.5rem; }
    .copyright_section { justify-content: center; text-align: center; }
}

@media (max-width: 575.98px) {
    footer .footer_container { padding-top: 2rem; }
    .copyright_section { flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */

@media (max-width: 991.98px) {
    .contact-section .module_code_contact iframe {
        height: 15rem;
    }
}

@media (max-width: 575.98px) {
    .contact-section h1 { font-size: var(--text-xl); margin-bottom: 1rem; }
    .contact-section .module-contact ul li a { padding: 0.625rem 0; }
}


/* ============================================================
   AUTH PAGES
   ============================================================ */

@media (max-width: 575.98px) {
    .auth-page { padding: 2rem 1rem; }
    .auth-card { padding: 2rem 1.25rem; max-width: 100%; }
    .auth-card__title { font-size: var(--text-lg); }
}


/* ============================================================
   GLOBAL
   ============================================================ */

@media (max-width: 575.98px) {
    #generalModal .modal-dialog { margin: 0.5rem; max-width: calc(100% - 1rem); }
}

@media (max-width: 575.98px) {
    .pagination li > * {
        width: 2.5rem;
        height: 2.5rem;
        font-size: var(--text-sm);
    }
}

@media (max-width: 575.98px) {
    #reviewModal .modal-dialog {
        max-width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }
}

@media (max-width: 767.98px) {
    .blog-view__sidebar-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .tier-price-table {
        min-width: auto;
        width: 100%;
        font-size: var(--text-xs);
    }
}

@media (max-width: 400px) {
    .search-results {
        left: 0;
        right: 0;
    }
}

@media (max-width: 400px) {
    .filters-sidebar-col {
        width: 100%;
        max-width: 100%;
    }
}

.toast-container {
    z-index: 9999;
    position: fixed;
}


/* ============================================================
   HOMEPAGE CTA BANNER
   ============================================================ */

@media (max-width: 991.98px) {
    .section-home-desc1 {
        position: relative;
    }
    .section-home-desc1::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 0;
    }
    .section-home-desc1 > .container {
        position: relative;
        z-index: 1;
    }
    .section-home-desc1 .text-right {
        text-align: left !important;
    }
}

@media (max-width: 575.98px) {
    .section-home-desc1 {
        padding: 2rem 0;
    }
    .section-home-desc1 h2 {
        font-size: var(--text-lg);
    }
    .section-home-desc1 p {
        font-size: var(--text-sm);
    }
}


/* ── Root font-size scaling ── */
html, body { overflow-x: hidden; max-width: 100vw; }

@media (max-width: 991.98px) {
    html { font-size: 15px; }
}

@media (max-width: 575.98px) {
    html { font-size: 14px; }
}
