/**
 * Business IT — responsive layout fixes (loads last).
 */

:root {
    --container-max-width: 100%;
    --container-padding-x: 24px;
    --sidebar-width: 278px;
}

@media (min-width: 1400px) {
    :root {
        --container-padding-x: 40px;
    }
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
    width: 100%;
    box-sizing: border-box;
}

/* Sidebar layout: keep all .container blocks left-aligned in the main column (matches home-layout). */
@media (min-width: 1025px) {
    body.has-category-sidebar .site-main .container {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}

/* Home sections: no extra horizontal inset beyond parent .container */
.home-layout .main-content > .home-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.home-layout .main-content .carousel-container {
    padding-left: 0;
    padding-right: 0;
}

.home-layout .final-cta-section > .container {
    padding-left: 0;
    padding-right: 0;
}

/* Hero multi-slide carousel */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

.hero-carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}

.hero-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

/* Full-banner hero: edge-to-edge, no padding, responsive image fill */
.hero.hero--full-banner {
    --hero-full-banner-height: calc(70vh - var(--header-height, 76px) - 52px);
    --hero-full-banner-height: calc(70dvh - var(--header-height, 76px) - 52px);
    position: relative;
    padding: 0 !important;
    margin: 0;
    background: #0a1628;
    border-bottom: none;
    width: 100%;
    max-width: 100%;
    height: var(--hero-full-banner-height);
    min-height: 360px;
    overflow: hidden;
}

.hero-carousel--full-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-carousel--full-banner .hero-carousel-track {
    display: flex;
    height: 100%;
    align-items: stretch;
}

.hero-carousel--full-banner .hero-slide--full-banner {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 100%;
}

.hero-carousel--full-banner .hero-dots {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    margin-top: 0;
    z-index: 2;
}

.hero-slide--full-banner .hero-banner-full {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    line-height: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.hero-slide--full-banner .hero-banner-full picture,
.hero-slide--full-banner .hero-banner-full .hero-banner-picture {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.hero-slide--full-banner .hero-banner-full img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
}

/* Mixed carousel: full-banner slide breaks out of .container padding */
.hero--has-full-banner .hero-slide--full-banner {
    position: relative;
    margin-left: calc(-1 * var(--container-padding-x, 24px));
    margin-right: calc(-1 * var(--container-padding-x, 24px));
    width: calc(100% + (2 * var(--container-padding-x, 24px)));
    max-width: calc(100% + (2 * var(--container-padding-x, 24px)));
    min-height: var(--hero-full-banner-height, calc(70dvh - var(--header-height, 76px) - 52px));
}

.hero--has-full-banner .hero-slide--full-banner .hero-banner-full {
    position: relative;
    width: 100%;
    min-height: inherit;
    height: var(--hero-full-banner-height, calc(70dvh - var(--header-height, 76px) - 52px));
}

.hero--has-full-banner .hero-slide--full-banner .hero-banner-full img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
}

/* Below 1750px: match banner 16:9 ratio so cover does not crop sides/top */
@media (max-width: 1750px) {
    .hero.hero--full-banner {
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 16 / 9;
    }

    .hero--has-full-banner .hero-slide--full-banner {
        min-height: 0;
        max-height: none;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .hero--has-full-banner .hero-slide--full-banner .hero-banner-full {
        height: 100%;
        min-height: 0;
    }

    .hero-slide--full-banner .hero-banner-full img {
        object-fit: contain;
        object-position: center;
    }
}

@media (max-width: 1199px) {
    .hero.hero--full-banner {
        min-height: 0;
    }
}

@media (max-width: 991px) {
    .hero.hero--full-banner,
    .hero--has-full-banner .hero-slide--full-banner,
    .hero--has-full-banner .hero-slide--full-banner .hero-banner-full {
        --hero-full-banner-height: calc(100vh - var(--header-height, 110px) - 46px);
        --hero-full-banner-height: calc(100dvh - var(--header-height, 110px) - 46px);
    }

    .hero.hero--full-banner {
        min-height: 0;
    }

    .hero-carousel--full-banner .hero-dots {
        bottom: 14px;
    }
}

@media (max-width: 767px) {
    .hero.hero--full-banner,
    .hero--has-full-banner .hero-slide--full-banner,
    .hero--has-full-banner .hero-slide--full-banner .hero-banner-full {
        --hero-full-banner-height: calc(100vh - var(--header-height, 118px) - var(--nav-height, 46px));
        --hero-full-banner-height: calc(100dvh - var(--header-height, 118px) - var(--nav-height, 46px));
    }

    .hero.hero--full-banner {
        padding: 0 !important;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 16 / 9;
    }

    .hero--has-full-banner .hero-slide--full-banner {
        min-height: 0;
        max-height: none;
        aspect-ratio: 16 / 9;
    }

    .hero--has-full-banner .hero-slide--full-banner .hero-banner-full {
        height: 100%;
        min-height: 0;
    }

    .hero-carousel--full-banner .hero-dots {
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .hero.hero--full-banner,
    .hero--has-full-banner .hero-slide--full-banner {
        aspect-ratio: 16 / 9;
        min-height: 0;
        max-height: none;
    }

    .hero-slide--full-banner .hero-banner-full img {
        object-fit: contain;
        object-position: center;
    }
}

.hero-dots {
    position: static;
    bottom: auto;
    left: auto;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.hero-dots .dot {
    background-color: white;
}

.hero-dots .dot.active {
    background-color: var(--tech-green);
    opacity: 1;
}

/* ── Product card variants ── */
.products-grid .product-card--grid,
.products-grid-inner .product-card--grid {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.carousel-track .product-card--carousel {
    min-width: calc((100% - (5 * 16px)) / 6);
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-sizing: border-box;
    padding: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.products-grid .product-card--grid:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.products-grid .product-card--grid .pc-image img,
.products-grid .product-card--grid .pc-image .woocommerce-placeholder,
.carousel-track .product-card--carousel .img-wrap img,
.carousel-track .product-card--carousel .img-wrap .woocommerce-placeholder {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 140px;
    object-fit: contain;
}

/* Recommended products grid: prevent card overflow at all widths */
.products-grid > .product-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.products-grid .product-card .pc-body {
    min-width: 0;
}

.products-grid .product-card .pc-pricing {
    flex-wrap: wrap;
    gap: 4px;
}

/* ── Currency select (header uses <select>, not buttons) ── */
.currency-switcher select,
select.currency-switcher {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--gray-700);
    cursor: pointer;
    outline: none;
}

.currency-switcher select:focus,
select.currency-switcher:focus {
    border-color: var(--primary);
}

/* ── Nav mobile toggle (hidden on desktop) ── */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ── Sidebar head ("Shop by Category") — aligns with main-nav ── */
.sidebar-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    height: var(--nav-height, 52px);
    min-height: var(--nav-height, 52px);
    max-height: var(--nav-height, 52px);
    border-bottom: 3px solid var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    background: var(--deep-blue);
    color: #fff;
    flex-shrink: 0;
    box-sizing: border-box;
    line-height: 1;
}

.sidebar-head i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── Sidebar close button (mobile drawer) ── */
.sidebar-close {
    display: none;
    margin-left: auto;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.sidebar-logo {
    display: none;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    height: var(--header-height, 76px);
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    text-decoration: none;
    box-sizing: border-box;
}

.sidebar-logo-img {
    height: auto;
    max-height: 44px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

/* ── Desktop: fixed left sidebar + nav aligned to sidebar-head on scroll ── */
@media (min-width: 1025px) {
    body.has-category-sidebar .site-main {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
        min-width: 0;
    }

    body.has-category-sidebar .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        width: var(--sidebar-width);
        height: 100vh;
        max-height: none;
        flex: none;
        overflow: visible;
        border: none;
        border-right: 1px solid var(--gray-200);
        border-radius: 0;
        background: #fff;
    }

    body.has-category-sidebar .sidebar-logo {
        display: flex;
    }

    body.has-category-sidebar .sidebar-head {
        flex-shrink: 0;
        z-index: 2;
    }

    body.has-category-sidebar .site-header .logo {
        display: none;
    }

    body.has-category-sidebar .sidebar-list {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.has-category-sidebar .sidebar .mega {
        position: fixed;
        left: var(--sidebar-width);
        top: 0;
        overflow: visible;
        z-index: 1100;
        pointer-events: none;
    }

    /* Invisible bridge so the pointer can cross from category → mega without closing */
    body.has-category-sidebar .sidebar .mega::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: -32px;
        width: 32px;
    }

    body.has-category-sidebar .sidebar .mega-body {
        max-height: calc(100vh - 24px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    body.has-category-sidebar .sidebar-item.mega-hover .sidebar-link,
    body.has-category-sidebar .sidebar-item.mega-open .sidebar-link {
        background: rgba(0, 115, 237, .14);
        color: var(--c-secondary, #00479D);
        padding-left: 9px;
    }

    body.has-category-sidebar .sidebar-item.mega-hover .chev,
    body.has-category-sidebar .sidebar-item.mega-open .chev {
        color: var(--c-primary, #0073ED);
        transform: translateX(2px);
    }

    body.has-category-sidebar .sidebar-item.mega-hover .mega {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.has-category-sidebar .main-nav {
        flex-shrink: 0;
        height: var(--nav-height, 52px);
        min-height: var(--nav-height, 52px);
        max-height: var(--nav-height, 52px);
        box-sizing: border-box;
        border-bottom: 3px solid var(--primary);
        overflow: hidden;
        line-height: 1;
        z-index: 1000;
        background: var(--deep-blue);
    }

    body.has-category-sidebar .main-nav > .container {
        height: 100%;
        display: flex;
        align-items: stretch;
        padding-top: 0;
        padding-bottom: 0;
    }

    body.has-category-sidebar .main-nav .nav-inner,
    body.has-category-sidebar .main-nav .nav-links,
    body.has-category-sidebar .main-nav .nav-right {
        height: 100%;
    }

    body.has-category-sidebar .main-nav .nav-links > li {
        height: 100%;
    }

    body.has-category-sidebar .main-nav .nav-links > li > a {
        height: 100%;
        box-sizing: border-box;
        border-bottom: none;
        box-shadow: inset 0 -3px 0 transparent;
    }

    body.has-category-sidebar .main-nav .nav-links > li > a:hover,
    body.has-category-sidebar .main-nav .nav-links > li > a.active {
        box-shadow: inset 0 -3px 0 var(--tech-green);
    }

    body.has-category-sidebar .site-header {
        height: auto;
        min-height: 76px;
        box-sizing: border-box;
    }

    body.has-category-sidebar .sidebar-logo {
        height: var(--header-height, 76px);
        min-height: var(--header-height, 76px);
        box-sizing: border-box;
    }

    body.has-category-sidebar .home-layout,
    body.has-category-sidebar .businessit-shop-layout,
    body.has-category-sidebar .businessit-single-product-layout {
        display: block;
    }

    body.has-category-sidebar .home-layout .main-content,
    body.has-category-sidebar .businessit-shop-layout .businessit-shop-main,
    body.has-category-sidebar .businessit-single-product-layout .businessit-shop-main {
        width: 100%;
        min-width: 0;
    }
}

.home-layout .main-content,
.businessit-shop-layout .businessit-shop-main {
    flex: 1;
    min-width: 0;
}

.cat-menu-btn {
    display: none;
}

.logo-img {
    height: 48px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

/* Main nav row: menu scrolls in the middle, phone stays pinned right */
.main-nav .nav-inner {
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
}

.main-nav .nav-links {
    flex: 1 1 0;
    min-width: 0;
}

.main-nav .nav-right {
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 12px;
}

.nav-right .nav-cta-high {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    text-decoration: none;
    transition: var(--transition);
}

.nav-right .nav-cta-high:hover {
    color: #fff;
}

.nav-right .nav-phone-icon {
    display: none;
}

.nav-right .nav-phone-text {
    display: inline;
}

@media (min-width: 991px) and (max-width: 1200px) {
    .nav-right .nav-phone-text {
        display: none;
    }

    .nav-right .nav-phone-icon {
        display: inline-flex;
    }

    .nav-right .nav-cta-high {
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        font-size: 0.95rem;
    }

    .nav-right .nav-cta-high:hover {
        background: rgba(255, 255, 255, 0.22);
    }
}

@media (min-width: 901px) {
    .main-nav .nav-links {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav .nav-links::-webkit-scrollbar {
        display: none;
    }

    .main-nav .nav-links > li {
        flex: 0 0 auto;
    }

    .main-nav .nav-links > li > a {
        white-space: nowrap;
    }
}

.section-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tech-green);
    font-weight: 700;
    margin-bottom: 6px;
}

/* ── Featured category cards: contain grid + label overflow ── */
.feat-cats {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr));
}

.feat-cat-item {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

a.feat-cat-item {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.feat-cat-item:hover {
    transform: translateY(-2px);
}

.feat-cat-item .fc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    line-height: 1;
}

.feat-cat-item .fc-name {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.3;
    hyphens: auto;
}

.brand-name img {
    display: block;
    max-width: 100%;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

a.brand-card {
    text-decoration: none;
    color: inherit;
}

.carousel-window {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.carousel-window::-webkit-scrollbar {
    display: none;
}

.promo-grid .carousel-track {
    display: block;
    position: relative;
    height: 100%;
}

/* ── Large tablet / small desktop ── */
@media (max-width: 1200px) {
    .carousel-track .product-card,
    .carousel-track .product-card--carousel {
        min-width: calc((100% - (3 * 16px)) / 4);
    }

    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .products-grid > .product-card {
        min-width: 0;
        max-width: 100%;
    }

    .products-grid .product-card .pc-name {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .products-grid .product-card .pc-price {
        font-size: 0.95rem;
        word-break: break-word;
    }

    .products-grid .product-card .pc-actions {
        flex-wrap: wrap;
        gap: 6px;
    }

    .banners-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-grid {
        gap: 16px;
    }

    /* Main nav: natural item widths, scroll when tight — no stretch/crush */
    .nav-inner {
        gap: 10px;
        min-width: 0;
    }

    .nav-links {
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links > li {
        flex: 0 0 auto;
    }

    .nav-links > li > a {
        white-space: nowrap;
        padding: 0 14px;
        font-size: 0.84rem;
    }

    .nav-right {
        flex: 0 0 auto;
        flex-shrink: 0;
    }

    .nav-right .nav-cta-high {
        font-size: 0.82rem;
    }
}

/* ── Narrow desktop (sidebar on): prevent crush below main-nav (1025–1350) ── */
@media (min-width: 1025px) and (max-width: 1350px) {
    body.has-category-sidebar .site-main {
        min-width: 0;
        overflow-x: clip;
    }

    body.has-category-sidebar .site-header,
    body.has-category-sidebar .main-nav {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.has-category-sidebar .site-header > .container,
    body.has-category-sidebar .main-nav > .container {
        min-width: 0;
        max-width: 100%;
    }

    .header-inner {
        gap: 12px;
        min-width: 0;
    }

    .header-search {
        min-width: 0;
        flex: 1 1 auto;
    }

    .header-actions {
        flex-shrink: 0;
    }

    .main-nav > .container {
        overflow: hidden;
    }

    .nav-inner {
        gap: 10px;
        min-width: 0;
    }

    .nav-links {
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links > li {
        flex: 0 0 auto;
    }

    .nav-links > li > a {
        white-space: nowrap;
        padding: 0 14px;
        font-size: 0.84rem;
    }

    .nav-right {
        flex: 0 0 auto;
        flex-shrink: 0;
    }

    .nav-right .nav-cta-high {
        font-size: 0.82rem;
    }

    body.has-category-sidebar .container.home-layout,
    body.has-category-sidebar .container.businessit-shop-layout,
    body.has-category-sidebar .container.businessit-single-product-layout {
        overflow-x: clip;
        min-width: 0;
        max-width: 100%;
    }

    body.has-category-sidebar .home-layout .main-content,
    body.has-category-sidebar .businessit-shop-layout .businessit-shop-main,
    body.has-category-sidebar .businessit-single-product-layout .businessit-shop-main {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
    }

    .section-header {
        min-width: 0;
        gap: 12px;
    }

    .carousel-container,
    .carousel-window,
    .carousel-track {
        max-width: 100%;
        min-width: 0;
    }

    .weekly-discounts-section .carousel-container,
    .weekly-discounts-section .carousel-window {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .promo-grid {
        gap: 16px;
    }

    .promo-card {
        min-width: 0;
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .products-grid > .product-card,
    .products-grid .product-card {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .banners-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .banner-card {
        min-width: 0;
        max-width: 100%;
    }

    .final-cta {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

/* ── Tablet: off-canvas sidebar, stacked home layout ── */
@media (max-width: 1024px) {
    /* Header logo — sidebar logo is off-canvas until menu opens */
    .site-header .logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        min-width: 0;
    }

    .site-header .logo-img {
        height: 42px;
        max-height: 42px;
        width: auto;
    }

    .header-inner {
        gap: 14px;
    }

    .header-search {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .container.home-layout,
    .container.businessit-shop-layout,
    .container.businessit-single-product-layout,
    .home-layout,
    .businessit-shop-layout,
    .businessit-single-product-layout {
        flex-direction: column;
        gap: 24px;
        padding-top: 24px;
        padding-bottom: 40px;
        padding-left: var(--container-padding-x);
        padding-right: var(--container-padding-x);
    }

    body.has-category-sidebar .sidebar,
    .home-layout .sidebar,
    .businessit-shop-layout .sidebar,
    .businessit-single-product-layout .sidebar {
        position: fixed !important;
        left: -100% !important;
        top: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        width: min(300px, 88vw) !important;
        z-index: 9000 !important;
        background: #fff !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15) !important;
        transition: left 0.3s ease !important;
        overflow: hidden !important;
        flex: none !important;
        max-height: none !important;
        border-radius: 0 !important;
        margin-left: 0 !important;
    }

    body.has-category-sidebar .sidebar.sidebar-open .sidebar-logo,
    .home-layout .sidebar.sidebar-open .sidebar-logo,
    .businessit-shop-layout .sidebar.sidebar-open .sidebar-logo,
    .businessit-single-product-layout .sidebar.sidebar-open .sidebar-logo {
        display: flex;
    }

    body.has-category-sidebar .sidebar.sidebar-open .sidebar-list,
    .home-layout .sidebar.sidebar-open .sidebar-list,
    .businessit-shop-layout .sidebar.sidebar-open .sidebar-list,
    .businessit-single-product-layout .sidebar.sidebar-open .sidebar-list {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }

    body.has-category-sidebar .sidebar.sidebar-open,
    .home-layout .sidebar.sidebar-open,
    .businessit-shop-layout .sidebar.sidebar-open,
    .businessit-single-product-layout .sidebar.sidebar-open {
        left: 0 !important;
    }

    .sidebar-close {
        display: flex;
    }

    body.has-category-sidebar .cat-menu-btn {
        display: flex !important;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 8999;
    }

    /* Sidebar mega → accordion on touch */
    .sidebar .mega {
        position: static;
        left: auto;
        top: auto;
        width: 100%;
        max-width: none;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 12px;
        transition: max-height 0.35s ease, visibility 0.35s, padding 0.35s;
    }

    .sidebar-item.mega-open .mega {
        visibility: visible;
        max-height: 1200px;
        padding: 12px;
        border-top: 1px solid var(--gray-100, #f3f4f6);
    }

    .sidebar-item:hover .mega {
        opacity: 1;
        visibility: hidden;
        max-height: 0;
    }

    .sidebar-item.mega-open:hover .mega {
        visibility: visible;
        max-height: 1200px;
    }

    .sidebar .mega-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .sidebar .mega-promo {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sidebar-item .sidebar-link .chev {
        transition: transform 0.25s ease;
    }

    .sidebar-item.mega-open .sidebar-link .chev {
        transform: rotate(90deg);
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual .hero-card {
        max-width: 100%;
    }

    .mega-menu {
        display: none !important;
    }

    .nav-links > li.has-mega:hover .mega-menu {
        display: none !important;
    }

    .carousel-track .product-card,
    .carousel-track .product-card--carousel {
        min-width: calc((100% - (2 * 16px)) / 3);
    }

    .prev-btn {
        left: 4px;
    }

    .next-btn {
        right: 4px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .final-cta {
        flex-direction: column;
        text-align: center;
    }

    .banners-container {
        grid-template-columns: 1fr;
    }

    /* ── Home sections: stay inside .container (tablet / no sidebar) ── */
    .container.home-layout {
        overflow-x: clip;
    }

    .home-layout .main-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
    }

    .section-header {
        min-width: 0;
        gap: 12px;
    }

    .feat-cats {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr));
        gap: 12px;
        margin-bottom: 32px;
    }

    .weekly-discounts-section {
        margin-bottom: 32px;
    }

    .weekly-discounts-section .carousel-container,
    .weekly-discounts-section .carousel-window {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .carousel-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .carousel-window {
        max-width: 100%;
        min-width: 0;
    }

    .carousel-track {
        min-width: 0;
    }

    .promo-grid {
        gap: 16px;
        margin-bottom: 24px;
    }

    .promo-grid .main-carousel {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 260px;
    }

    .promo-grid .static-promo {
        width: auto;
        min-width: 0;
        max-width: none;
        min-height: 220px;
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 32px;
    }

    .products-grid > .product-card,
    .products-grid .product-card {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .products-grid .product-card .pc-image {
        height: 140px;
    }

    .products-grid .product-card .pc-image img,
    .products-grid .product-card .pc-image .woocommerce-placeholder {
        max-width: 100%;
        max-height: 120px;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .products-grid .product-card .pc-body {
        padding: 12px 14px 14px;
        min-width: 0;
    }

    .products-grid .product-card .pc-name {
        font-size: 0.85rem;
    }

    .products-grid .product-card .pc-price {
        font-size: 0.9rem;
    }

    .products-grid .product-card .pc-actions .btn {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .hero-banners-section {
        margin-bottom: 32px;
    }

    .banners-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 16px;
        margin-bottom: 32px;
    }

    .banner-card {
        min-width: 0;
        max-width: 100%;
        padding: 28px 20px;
    }

    .banner-image img {
        max-width: 100%;
        height: auto;
        max-height: 180px;
    }

    .final-cta {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 36px 24px;
        margin-bottom: 12px;
        box-sizing: border-box;
    }

    .final-cta .cta-btns {
        justify-content: center;
        width: 100%;
    }

    .nav-links > li > a {
        padding: 0 11px;
        font-size: 0.82rem;
        gap: 4px;
    }

    .nav-links > li > a i {
        font-size: 0.78rem;
    }

    .nav-right .nav-cta-high {
        font-size: 0.78rem;
    }
}

/* ── Mobile nav drawer ── */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
        order: 1;
        position: relative;
        z-index: 2;
    }

    .main-nav {
        height: auto;
        min-height: var(--nav-height);
    }

    .nav-inner {
        flex-wrap: wrap;
        align-items: center;
        padding-top: 4px;
        padding-bottom: 4px;
        gap: 0;
        height: auto;
    }

    .main-nav .nav-links {
        display: none;
        flex-direction: column;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        order: 3;
        background: rgba(0, 0, 0, 0.12);
        border-radius: var(--radius);
        margin-top: 8px;
        padding: 6px 0;
        max-height: none;
        overflow-x: visible;
        overflow-y: auto;
    }

    .main-nav.nav-open,
    .main-nav.nav-open > .container,
    .main-nav.nav-open .nav-inner {
        height: auto;
        overflow: visible;
    }

    .main-nav.nav-open .nav-inner {
        position: relative;
        align-items: center;
    }

    .main-nav.nav-open .nav-links {
        display: flex;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        max-height: 70vh;
        align-items: stretch;
        text-align: left;
        margin-top: 8px;
        padding-top: 0;
        order: 3;
        position: relative;
        z-index: 1;
    }

    .nav-links > li {
        width: 100%;
    }

    .nav-links > li > a {
        height: auto;
        min-height: 0;
        padding: 12px 16px;
        border-bottom: none;
        border-left: 3px solid transparent;
        box-shadow: none;
        justify-content: flex-start;
    }

    .main-nav.nav-open .nav-links > li > a {
        justify-content: flex-start;
    }

    .nav-links > li > a:hover,
    .nav-links > li > a.active {
        border-left-color: var(--tech-green);
        box-shadow: none;
    }

    .nav-right {
        display: flex;
        margin-left: auto;
        order: 2;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
        align-self: center;
    }

    .nav-right .nav-cta-high {
        font-size: 0.78rem;
    }
}

/* ── Mobile: header stack, tighter sections ── */
@media (max-width: 768px) {
    :root {
        --header-height: 118px;
        --nav-height: auto;
    }

    .site-header {
        height: auto;
        min-height: 64px;
        padding: 10px 0;
    }

    .header-inner {
        gap: 10px;
        flex-wrap: wrap;
    }

    .logo {
        order: 1;
        flex: 0 1 auto;
        min-width: 0;
        max-width: 52%;
    }

    .logo-img {
        height: 38px;
        max-height: 38px;
    }

    .header-actions {
        order: 2;
        gap: 4px;
        flex: 1 1 auto;
        justify-content: flex-end;
        min-width: 0;
    }

    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: 2px;
    }

    .header-search input {
        padding: 9px 14px 9px 38px;
        font-size: 0.85rem;
    }

    .header-search .search-icon {
        left: 12px;
        font-size: 0.85rem;
    }

    .header-action-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .header-action-btn .badge {
        width: 16px;
        height: 16px;
        font-size: 0.55rem;
    }

    select.currency-switcher {
        padding: 5px 8px;
        font-size: 0.72rem;
        max-width: 58px;
    }

    .hero.hero--full-banner {
        padding: 0 !important;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-sub {
        font-size: 0.88rem;
        margin-bottom: 16px;
    }

    .feat-cats {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 100px), 1fr));
        gap: 10px;
    }

    .feat-cat-item {
        padding: 14px 6px;
    }

    .feat-cat-item .fc-icon {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }

    .feat-cat-item .fc-name {
        font-size: 0.75rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .products-grid > .product-card,
    .products-grid .product-card {
        min-width: 0;
        max-width: 100%;
    }

    .products-grid .product-card .pc-body {
        padding: 12px;
    }

    .products-grid .product-card .pc-name {
        font-size: 0.82rem;
    }

    .products-grid .product-card .pc-price {
        font-size: 0.88rem;
    }

    .product-card .pc-pricing .woocommerce-Price-amount.amount {
        font-size: 0.88rem;
    }

    .carousel-track .product-card,
    .carousel-track .product-card--carousel {
        min-width: calc((100% - 16px) / 2);
    }

    .nav-btn {
        width: 34px;
        height: 34px;
    }

    .prev-btn {
        left: 0;
    }

    .next-btn {
        right: 0;
    }

    .promo-grid {
        gap: 16px;
    }

    .promo-grid .main-carousel,
    .promo-grid .static-promo {
        min-height: 240px;
    }

    .promo-card {
        min-height: 220px;
        padding: 24px 20px;
    }

    .promo-card .card-content {
        max-width: 60%;
    }

    .promo-card .card-content.centered {
        max-width: 100%;
    }

    .promo-card .card-image-wrapper img {
        object-position: right bottom;
    }

    .static-promo .card-image-wrapper img {
        object-position: center bottom;
    }

    .banner-card {
        padding: 28px 16px;
    }

    .banner-content h3 {
        font-size: 1.25rem;
    }

    .brand-card {
        width: 130px;
        height: 70px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .final-cta {
        padding: 28px 20px;
    }

    .final-cta .cta-text h2 {
        font-size: 1.35rem;
    }

    .sidebar .mega-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Small phones ── */
@media (max-width: 480px) {
    :root {
        --container-padding-x: 14px;
    }

    .logo {
        max-width: 46%;
    }

    .logo-img {
        height: auto;
        max-height: 32px;
    }

    .header-actions {
        gap: 2px;
    }

    .header-action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .header-action-btn .badge {
        width: 15px;
        height: 15px;
        font-size: 0.5rem;
        top: -2px;
        right: -2px;
    }

    select.currency-switcher {
        max-width: 52px;
        padding: 4px 4px;
        font-size: 0.68rem;
    }

    .hero-content h1 {
        font-size: 1.45rem;
    }

    .feat-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .feat-cat-item {
        padding: 12px 6px;
    }

    .feat-cat-item .fc-icon {
        font-size: 1.55rem;
        margin-bottom: 4px;
    }

    .feat-cat-item .fc-name {
        font-size: 0.72rem;
    }

    .products-grid {
        gap: 10px;
    }

    .product-card {
        padding: 12px;
    }

    .product-card .info h4,
    .product-card .pc-name {
        font-size: 0.8rem;
    }

    .carousel-track .product-card,
    .carousel-track .product-card--carousel {
        min-width: 78%;
    }

    .promo-card {
        min-height: 200px;
    }

    .card-content h2,
    .card-content h3 {
        font-size: 1.1rem;
    }

    .nav-right {
        display: flex;
    }

    .nav-right .nav-cta-high {
        font-size: 0.78rem;
    }

}

/* ── Extra-small phones: prevent logo crush in header row ── */
@media (max-width: 420px) {
    .site-header {
        padding: 8px 0;
    }

    .header-inner {
        gap: 6px;
        row-gap: 8px;
    }

    .logo {
        flex: 0 0 auto;
        max-width: 40%;
    }

    .logo-img {
        max-height: 28px;
    }

    .header-actions {
        flex: 1 1 0;
        gap: 1px;
    }

    .header-action-btn {
        width: 30px;
        height: 30px;
        font-size: 0.82rem;
    }

    select.currency-switcher {
        max-width: 46px;
        font-size: 0.62rem;
        padding: 3px 2px;
    }

    /* Wishlist — lowest priority on very narrow screens */
    .header-actions > a.account-btn:first-of-type {
        display: none;
    }

    .header-search {
        margin-top: 0;
    }

    .header-search input {
        padding: 8px 10px 8px 30px;
        font-size: 0.78rem;
    }

    .header-search .search-icon {
        left: 10px;
        font-size: 0.75rem;
    }

    .feat-cats {
        gap: 6px;
    }

    .feat-cat-item {
        padding: 10px 4px;
    }

    .feat-cat-item .fc-icon {
        font-size: 1.4rem;
    }

    .feat-cat-item .fc-name {
        font-size: 0.68rem;
    }
}

/* ── Narrow phones (320px–375px): product cards ── */
@media (max-width: 375px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .products-grid .product-card {
        min-width: 0;
        max-width: 100%;
    }

    .product-card {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        padding: 10px 7px;
    }

    .product-card .pc-image {
        height: 100px;
    }

    .product-card .pc-image img,
    .product-card .pc-image .woocommerce-placeholder {
        max-width: 100%;
        max-height: 88px;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product-card .pc-image .pc-badge {
        font-size: 0.5rem;
        padding: 2px 7px;
        top: 6px;
        left: 6px;
    }

    .product-card .pc-body {
        padding: 8px 6px 10px;
        min-width: 0;
    }

    .product-card .pc-brand {
        font-size: 0.58rem;
        letter-spacing: 0.3px;
    }

    .product-card .pc-name {
        font-size: 0.7rem;
        line-height: 1.25;
        -webkit-line-clamp: 2;
    }

    .product-card .pc-sku {
        font-size: 0.55rem;
        margin-bottom: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .product-card .pc-pricing {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        padding-top: 6px;
    }

    .product-card .pc-price {
        font-size: 0.78rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .product-card .pc-pricing .woocommerce-Price-amount.amount {
        font-size: 0.78rem;
    }

    .product-card .pc-price .currency {
        font-size: 0.52rem;
    }

    .product-card .pc-tax {
        font-size: 0.52rem;
        padding: 1px 5px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .product-card .pc-actions {
        gap: 4px;
        margin-top: 6px;
    }

    .product-card .pc-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
        padding: 6px 4px;
        font-size: 0.62rem;
        gap: 3px;
    }

    .product-card .pc-actions .btn-outline {
        flex: 0 0 30px;
        padding: 6px;
        min-width: 30px;
    }

    /* Featured Products carousel cards */
    .carousel-track .product-card,
    .carousel-track .product-card--carousel {
        min-width: min(100%, calc(100% - 20px));
        padding: 12px 10px;
    }

    .product-card .img-wrap {
        height: 110px;
        margin-bottom: 8px;
    }

    .product-card .img-wrap img,
    .product-card .img-wrap .woocommerce-placeholder {
        max-height: 95px;
        max-width: 100%;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product-card .info h4 {
        font-size: 0.72rem;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-card .info .cat {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }

    .product-card .info .price {
        font-size: 0.72rem;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        line-height: 1.2;
    }

    .product-card .wishlist-btn {
        top: 8px;
        right: 8px;
        font-size: 14px;
    }

    .product-card .badge {
        top: 8px;
        left: 8px;
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* WordPress admin bar offset */
@media (min-width: 783px) {
    .admin-bar.has-category-sidebar .sidebar {
        top: 32px;
        height: calc(100vh - 32px);
    }
}

@media (max-width: 782px) {
    .admin-bar.has-category-sidebar .sidebar {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

@media (max-width: 1024px) {
    body.has-category-sidebar .site-main {
        margin-left: 0;
        width: 100%;
    }
}

/* Highlighted nav item (add CSS class "menu-item-highlight" in Menus) */
.nav-links > li.menu-item-highlight,
.nav-links > li.menu-item-global-store {
    background: var(--tech-green);
    align-self: stretch;
}

.nav-links > li.menu-item-highlight > a,
.nav-links > li.menu-item-global-store > a {
    height: 100%;
    align-items: center;
    justify-content: center;
}

.nav-links > li.menu-item-global-store > a,
.nav-links > li.menu-item-global-store > a:hover,
.nav-links > li.menu-item-global-store > a.active {
    color: #fff;
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

body.has-category-sidebar .main-nav .nav-links > li.menu-item-global-store > a:hover,
body.has-category-sidebar .main-nav .nav-links > li.menu-item-global-store > a.active {
    box-shadow: none;
}

/* Global Store Coming Soon badge */
.nav-links > li.menu-item-coming-soon > a,
.footer-col li.menu-item-coming-soon > a {
    cursor: default;
    gap: 8px;
}

.nav-links > li.menu-item-coming-soon > a:hover,
.nav-links > li.menu-item-coming-soon > a:focus {
    background: transparent;
    box-shadow: none;
}

.nav-coming-soon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fff;
    color: #0f766e;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}

.footer-col .nav-coming-soon-badge {
    margin-left: 6px;
    background: #f59e0b;
    color: #fff;
    vertical-align: middle;
}

@media (max-width: 1024px) {
    .nav-links > li.menu-item-coming-soon > a {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* Nav dropdown (WP menus) */
.nav-links > li.menu-item-has-children {
    position: relative;
}

.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 12px 0;
    display: none;
    border-top: 4px solid var(--primary);
    z-index: 100;
    list-style: none;
}

.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .has-mega:hover > .sub-menu {
    display: block;
}

.nav-links .sub-menu li a {
    display: block;
    padding: 8px 20px;
    color: var(--gray-600);
    font-size: 0.85rem;
}

.nav-links .sub-menu li a:hover {
    color: var(--primary);
    background: var(--gray-50);
}

/* Submenu toggle — mobile only (desktop uses hover) */
.nav-submenu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 100%;
    min-height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    z-index: 2;
    transition: color var(--transition), background var(--transition);
}

.nav-submenu-toggle:hover,
.nav-submenu-toggle:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.nav-submenu-toggle i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-links > li.submenu-open > .nav-submenu-toggle i {
    transform: rotate(180deg);
}

/* Desktop: hover opens submenu, show chevron toggle */
@media (min-width: 901px) {
    .main-nav,
    .main-nav > .container,
    .main-nav .nav-inner,
    .main-nav .nav-links {
        overflow: visible;
    }

    body.has-category-sidebar .main-nav {
        overflow: visible;
    }

    .nav-submenu-toggle {
        display: flex;
        pointer-events: none;
    }

    .nav-links .has-mega > a::after {
        display: none;
    }

    .nav-links > li.menu-item-has-children > a {
        padding-right: 36px;
    }

    /* Invisible bridge so the cursor can reach the dropdown */
    .nav-links > li.menu-item-has-children::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 8px;
    }

    .nav-links > li.menu-item-has-children:hover > .nav-submenu-toggle i {
        transform: rotate(180deg);
    }

    .nav-links .sub-menu > li.menu-item-has-children {
        position: relative;
    }

    .nav-links .sub-menu .sub-menu {
        top: 0;
        left: 100%;
        margin-left: 2px;
    }

    .nav-links .sub-menu > li.menu-item-has-children:hover > .sub-menu {
        display: block;
    }
}

@media (max-width: 900px) {
    .nav-submenu-toggle {
        display: flex;
    }

    .nav-links .has-mega > a::after {
        display: none;
    }

    .nav-links > li.menu-item-has-children > a {
        padding-right: 48px;
    }

    .nav-links .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.06);
        padding: 0;
        display: none;
    }

    .nav-links > li.submenu-open > .sub-menu {
        display: block;
    }

    .nav-links .menu-item-has-children:hover > .sub-menu,
    .nav-links .has-mega:hover > .sub-menu {
        display: none;
    }

    .nav-links > li.submenu-open:hover > .sub-menu {
        display: block;
    }

    .nav-links .sub-menu li a {
        color: rgba(255, 255, 255, 0.85);
        padding-left: 32px;
    }

    .nav-links .sub-menu .menu-item-has-children > a {
        padding-right: 48px;
    }
}

/* Page templates and WooCommerce account/cart responsive */
@media (max-width: 768px) {
    .page-hero {
        padding: 28px 0 24px;
    }

    .page-hero__title {
        font-size: 1.5rem;
    }

    .businessit-single-product .product {
        padding: 20px 16px;
        gap: 24px;
    }

    .businessit-single-product .woocommerce-tabs ul.tabs {
        flex-direction: column;
    }

    .businessit-single-product .woocommerce-tabs ul.tabs li a {
        padding: 12px 16px;
    }

    .businessit-cart-page .woocommerce-cart-form,
    .businessit-cart-page .cart-collaterals .cart_totals {
        padding: 16px;
    }

    .businessit-checkout-page .businessit-checkout__summary,
    .businessit-checkout-page #payment {
        padding: 18px;
    }

    .businessit-checkout-page .woocommerce-billing-fields,
    .businessit-checkout-page .woocommerce-shipping-fields,
    .businessit-checkout-page .woocommerce-additional-fields,
    .businessit-checkout-page #order_review {
        padding: 0;
    }

    .businessit-checkout-page form .form-row-first,
    .businessit-checkout-page form .form-row-last,
    .woocommerce-checkout form .form-row-first,
    .woocommerce-checkout form .form-row-last {
        float: none;
        width: 100%;
    }

    .businessit-account-page .woocommerce-MyAccount-content {
        padding: 20px 16px;
    }

    .contact-form-card,
    .contact-info-card {
        /* Cards use internal padding; don't force outer padding */
        max-width: 100%;
        box-sizing: border-box;
    }
}