
.sp-table-wrapper {
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin-bottom: var(--sp-spacing-4);
}
.sp-table-wrapper table {
min-width: 600px;
}
img {
max-width: 100%;
height: auto;
}

/* GLOBAL MOBILE OVERFLOW FIX */
html,
body {
overflow-x: hidden;
max-width: 100%;
font-size: var(--sp-font-size-body);
}

*,
*::before,
*::after {
box-sizing: border-box;
}



@media (max-width: 991.98px) {

    .sp-header-main .sp-search-box {
        display: none;
    }

    .sp-mobile-nav-toggle {
        display: flex;
    }

    .sp-mobile-menu {
        display: block;
    }

.sp-mega-menu-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--sp-surface-main);
    z-index: var(--sp-z-modal);
    overflow-y: auto;
    padding: var(--sp-spacing-5);
    box-shadow: var(--sp-shadow-xl);
}

.sp-mega-menu-wrapper.is-active {
    display: block;
}

.sp-product-actions {
    grid-template-columns: 1fr;
}

.sp-product-card .sp-btn {
    width: 100%;
}

.sp-product-image img {
    padding: var(--sp-spacing-2);
}

.sp-sidebar {
    margin-top: var(--sp-spacing-6);
}

.sp-modal-content {
    padding: var(--sp-spacing-5);
    margin: var(--sp-spacing-2);
    max-width: none;
}

.sp-contact-layout {
    gap: var(--sp-spacing-6);
}

.sp-footer-columns {
    gap: var(--sp-spacing-6);
}

.sp-section {
    padding-top: var(--sp-spacing-6);
    padding-bottom: var(--sp-spacing-6);
}

.sp-fs-h1 {
    font-size: 1.875rem;
}

.sp-fs-h2 {
    font-size: 1.5rem;
}

.sp-navigation-wrapper {
    justify-content: flex-end;
}

.sp-nav-list {
    display: none;
}

.sp-mobile-nav-toggle {
    display: flex;
}

} /* @media (max-width: 991.98px) */
@media (min-width: 576px) {
.sp-footer-columns {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 768px) {
.sp-grid-2 {
grid-template-columns: repeat(2, 1fr);
}

.sp-blog-grid {
    grid-template-columns: repeat(2, 1fr);
}

.sp-product-grid {
    grid-template-columns: repeat(3, 1fr);
}

.sp-product-detail-layout {
    gap: var(--sp-spacing-10);
}

}
@media (min-width: 992px) {
.sp-header-wrapper {
padding-top: var(--sp-spacing-2);
padding-bottom: var(--sp-spacing-2);
}

.sp-footer-columns {
    grid-template-columns: repeat(4, 1fr);
}

.sp-product-actions {
    grid-template-columns: repeat(2, 1fr);
}

.sp-product-card:hover .sp-product-actions {
    opacity: 1;
    visibility: visible;
}

.sp-search-layout {
    grid-template-columns: 300px 1fr;
}

.sp-sidebar {
    margin-top: 0;
}

}
@media (min-width: 1200px) {
.sp-product-grid {
grid-template-columns: repeat(4, 1fr);
}

.sp-blog-grid {
    grid-template-columns: repeat(3, 1fr);
}

}
.sp-img-fluid {
max-width: 100%;
height: auto;
}
.sp-object-fit-cover {
object-fit: cover;
}
.sp-object-fit-contain {
object-fit: contain;
}
@media (pointer: coarse) {
.sp-btn,
.sp-nav-link,
.sp-tab-link,
.sp-accordion-header {
min-height: 44px;
padding-top: var(--sp-spacing-3);
padding-bottom: var(--sp-spacing-3);
}

.sp-input, 
.sp-select, 
.sp-textarea {
    font-size: 16px;
}
}

@media (max-width: 575.98px) {
.sp-product-grid {
grid-template-columns: repeat(2, 1fr);
gap: var(--sp-spacing-2);
}

.sp-product-card {
    padding: var(--sp-spacing-2);
}

.sp-product-title {
    font-size: var(--sp-font-size-body);
    line-height: 1.4;
}

.sp-container {
    padding-right: var(--sp-spacing-3);
    padding-left: var(--sp-spacing-3);
}

}
.sp-mobile-scroller {
display: flex;
overflow-x: auto;
scroll-snap-type: x mandatory;
scrollbar-width: none;
-ms-overflow-style: none;
gap: var(--sp-spacing-3);
}
.sp-mobile-scroller::-webkit-scrollbar {
display: none;
}
.sp-mobile-scroller > * {
flex: 0 0 auto;
scroll-snap-align: start;
}
@media (min-width: 992px) {
.sp-mobile-scroller {
display: grid;
overflow-x: visible;
}
}

/* MOBILE READABILITY IMPROVEMENT */

@media (max-width: 575.98px) {

    .sp-fs-xs {
        font-size: calc(var(--sp-font-size-xs) + 2px) !important;
    }

    .sp-fs-sm {
        font-size: calc(var(--sp-font-size-sm) + 2px) !important;
    }

}

@media (max-width: 991.98px) {
    .sp-top-bar .sp-container {
        justify-content: flex-start;
    }

    .sp-top-bar .header-top-contact {
        width: 100%;
        justify-content: space-between;
        gap: 20px;
    }
}

@media (max-width: 991.98px) {
    .mobile-menu-list {
        width: 100%;
    }

    .mobile-menu-item {
        border-bottom: 1px solid var(--sp-border-color);
    }

    .mobile-menu-row {
        display: flex;
        align-items: stretch;
    }

    .mobile-menu-link {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        padding: 1rem;
        color: var(--sp-text-main);
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-menu-toggle {
        display: flex;
        flex: 0 0 52px;
        align-items: center;
        justify-content: center;
        border: 0;
        border-left: 1px solid var(--sp-border-color);
        background: transparent;
        color: var(--sp-text-main);
    }

    .mobile-menu-toggle i {
        transition: transform 0.2s ease;
    }

    .mobile-menu-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

    .mobile-submenu {
        background: var(--bg-light);
        border-top: 1px solid var(--sp-border-color);
    }

    .mobile-submenu-item + .mobile-submenu-item {
        border-top: 1px solid var(--sp-border-color);
    }

    .mobile-submenu-link {
        display: block;
        padding: 0.75rem 1rem 0.75rem 2rem;
        color: var(--sp-text-main);
        font-size: var(--sp-font-size-sm);
        font-weight: 600;
        text-decoration: none;
    }
}
