/**
 * Strona główna katalogu Digital Signage.
 */

body.woocommerce-shop,
body.woocommerce-shop #main {
    overflow-x: hidden;
}

body.woocommerce-shop #main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f4f8fb !important;
}

body.woocommerce-shop #main > .container {
    width: min(1320px, calc(100% - 40px)) !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 0 0 90px !important;
}

body.woocommerce-shop #main .main-content-wrap,
body.woocommerce-shop #main .main-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 100% !important;
}

body.woocommerce-shop #main .sidebar,
body.woocommerce-shop .page-top,
body.woocommerce-shop .page-title {
    display: none !important;
}

.mw-shop-shell {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
}

.mw-shop-hero {
    position: relative;
    isolation: isolate;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    padding: 34px 0 clamp(72px, 8vw, 112px);
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(24, 200, 239, .2), transparent 26%),
        linear-gradient(122deg, #051a2d 0%, #062a46 56%, #064969 100%);
}

.mw-shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .38;
    background-image:
        linear-gradient(rgba(123, 219, 241, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 219, 241, .09) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, transparent, #000 32%, #000);
}

.mw-shop-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    right: -12vw;
    bottom: -42vw;
    width: 68vw;
    height: 68vw;
    border: 1px solid rgba(103, 232, 249, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(103, 232, 249, .025), 0 0 0 160px rgba(103, 232, 249, .018);
}

.mw-shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: clamp(38px, 5vw, 68px);
    color: #8eeaff;
    font-size: .78rem;
    font-weight: 700;
}

.mw-shop-breadcrumb a {
    color: rgba(255, 255, 255, .6) !important;
    text-decoration: none !important;
}

.mw-shop-breadcrumb a:hover { color: #fff !important; }
.mw-shop-breadcrumb strong { color: #dff9ff; }

.mw-shop-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: clamp(48px, 7vw, 100px);
    align-items: center;
}

.mw-shop-hero-copy { max-width: 730px; }

.mw-shop-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 17px;
    color: #8eeaff;
    font-size: .82rem;
    font-weight: 750;
}

.mw-shop-status span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #18c8ef;
    box-shadow: 0 0 0 6px rgba(24, 200, 239, .12), 0 0 24px rgba(24, 200, 239, .7);
}

.mw-shop-hero h1 {
    max-width: 760px;
    margin: 0 0 22px !important;
    color: #fff !important;
    font-size: clamp(2.6rem, 5.2vw, 5.35rem) !important;
    font-weight: 690 !important;
    line-height: .98 !important;
    letter-spacing: -.052em !important;
}

.mw-shop-lead {
    max-width: 690px;
    margin: 0 0 30px;
    color: rgba(236, 249, 255, .74);
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    line-height: 1.72;
}

.mw-shop-search {
    display: grid;
    grid-template-columns: 1fr auto;
    max-width: 650px;
    padding: 6px;
    border: 1px solid rgba(142, 234, 255, .28);
    border-radius: 13px;
    background: rgba(4, 25, 42, .56);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
    backdrop-filter: blur(12px);
}

.mw-shop-search input[type='search'] {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 16px;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: .94rem;
    box-shadow: none !important;
}

.mw-shop-search input::placeholder { color: rgba(255, 255, 255, .46); }
.mw-shop-search input:focus { outline: 0; }

.mw-shop-search button {
    min-width: 112px;
    border: 0;
    border-radius: 9px;
    background: #18c8ef;
    color: #052136;
    font-size: .84rem;
    font-weight: 850;
    cursor: pointer;
}

.mw-shop-search:focus-within {
    border-color: #67e8f9;
    box-shadow: 0 0 0 4px rgba(24, 200, 239, .12);
}

.mw-shop-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;
    margin-top: 24px;
    color: rgba(255, 255, 255, .58);
    font-size: .76rem;
}

.mw-shop-hero-meta span { display: inline-flex; align-items: baseline; gap: 6px; }
.mw-shop-hero-meta strong { color: #fff; font-size: 1.05rem; }

.mw-shop-device-lab {
    position: relative;
    min-height: 490px;
}

.mw-shop-lab-line {
    position: absolute;
    top: 49%;
    left: 5%;
    width: 88%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(103, 232, 249, .48), transparent);
    transform: rotate(-12deg);
}

.mw-shop-device {
    position: absolute;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto auto;
    width: 248px;
    min-height: 286px;
    padding: 12px 12px 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .09);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 30px 80px rgba(0, 8, 18, .34);
    backdrop-filter: blur(14px);
    transition: border-color .25s ease, transform .25s ease, background .25s ease;
}

.mw-shop-device:hover {
    z-index: 4;
    border-color: rgba(103, 232, 249, .62);
    background: rgba(255, 255, 255, .14);
    transform: translateY(-7px);
}

.mw-shop-device img {
    grid-column: 1 / -1;
    width: 100%;
    height: 205px;
    margin-bottom: 12px;
    object-fit: cover;
    background: #fff;
}

.mw-shop-device strong { font-size: .9rem; line-height: 1.25; }
.mw-shop-device small { grid-column: 1 / -1; margin-top: 4px; color: rgba(255, 255, 255, .58); font-size: .69rem; }
.mw-shop-device-index { align-self: start; color: #8eeaff; font-size: .68rem; font-weight: 850; }
.mw-shop-device-1 { top: 0; left: 5%; z-index: 2; }
.mw-shop-device-2 { right: 0; bottom: 0; z-index: 3; }
.mw-shop-device-3 { left: 34%; bottom: 42px; z-index: 1; transform: scale(.86); opacity: .84; }
.mw-shop-device-3:hover { transform: scale(.86) translateY(-7px); }

.mw-shop-explorer {
    padding: clamp(68px, 8vw, 108px) 0 74px;
}

.mw-shop-section-head,
.mw-shop-products-head {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(280px, .55fr);
    gap: 40px;
    align-items: end;
}

.mw-product-search-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
    gap: clamp(38px, 7vw, 92px);
    align-items: end;
    width: 100vw;
    max-width: none;
    margin: 0 0 34px calc(50% - 50vw);
    padding: clamp(34px, 5vw, 58px) max(20px, calc((100vw - 1320px) / 2));
    border-radius: 0;
    background:
        linear-gradient(rgba(116, 222, 245, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(116, 222, 245, .08) 1px, transparent 1px),
        #06233b;
    background-size: 48px 48px;
    color: #fff;
}

.mw-product-search-copy nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    color: #8eeaff;
    font-size: .72rem;
    font-weight: 700;
}

.mw-product-search-copy nav a { color: rgba(255, 255, 255, .58) !important; text-decoration: none !important; }
.mw-product-search-copy nav a:hover { color: #fff !important; }
.mw-product-search-copy > p { margin: 0 0 8px; color: #8eeaff; font-size: .78rem; font-weight: 800; }
.mw-product-search-copy h1 { margin: 0 0 14px !important; color: #fff !important; font-size: clamp(2.1rem, 4vw, 3.9rem) !important; line-height: 1.02 !important; letter-spacing: -.045em !important; text-transform: none !important; }
.mw-product-search-copy > span { color: rgba(255, 255, 255, .64); font-size: .86rem; }

.mw-product-search-form { display: grid; gap: 9px; }
.mw-product-search-form > label { color: rgba(255, 255, 255, .68); font-size: .74rem; font-weight: 700; }
.mw-product-search-form > div { display: grid; grid-template-columns: 1fr auto; padding: 5px; border: 1px solid rgba(142, 234, 255, .3); border-radius: 10px; background: rgba(1, 15, 26, .42); }
.mw-product-search-form input[type='search'] { width: 100%; min-width: 0; height: 45px; padding: 0 12px; border: 0 !important; background: transparent !important; color: #fff !important; box-shadow: none !important; }
.mw-product-search-form input:focus { outline: 0; }
.mw-product-search-form button { min-width: 92px; border: 0; border-radius: 7px; background: #18c8ef; color: #052136; font-size: .76rem; font-weight: 850; cursor: pointer; }
.mw-product-search-form > a { justify-self: start; color: #8eeaff !important; font-size: .72rem; font-weight: 700; text-decoration: none !important; }

body.search.post-type-archive-product #main > .container {
    padding-top: 46px !important;
}

body.search.post-type-archive-product ul.products {
    grid-template-columns: repeat(auto-fit, minmax(270px, 360px)) !important;
    justify-content: center;
}

body.search.post-type-archive-product .shop-loop-before {
    justify-content: center;
    width: min(1124px, calc(100% - 40px));
    margin-right: auto !important;
    margin-left: auto !important;
}

.mw-shop-search-explorer {
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 1320px;
    margin: clamp(60px, 8vw, 96px) auto 0;
    padding-top: clamp(42px, 6vw, 70px);
    border-top: 1px solid #d4e2ea;
}

/* Porto ukrywa `.shop-loop-after`, gdy wyniki nie wymagają paginacji.
 * Sekcja wyboru kategorii jest osadzona w tym samym hooku, dlatego na stronie
 * wyszukiwania produktów pokazujemy kontener niezależnie od paginacji. */
body.search.post-type-archive-product .shop-loop-after.d-none {
    display: block !important;
    width: 100%;
}

body.search.post-type-archive-product .shop-loop-after > .woocommerce-pagination:empty {
    display: none !important;
}

@media (max-width: 767px) {
    .mw-shop-search-explorer {
        width: calc(100% - 28px);
    }
}

.mw-product-search-related {
    margin-top: clamp(62px, 8vw, 96px);
    padding-top: clamp(42px, 6vw, 70px);
    border-top: 1px solid #d4e2ea;
}

.mw-product-search-related > header {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(280px, .5fr);
    gap: 34px;
    align-items: end;
    margin-bottom: 28px;
}

.mw-product-search-related > header p {
    margin: 0 0 7px;
    color: #078dcc;
    font-size: .78rem;
    font-weight: 800;
}

.mw-product-search-related > header h2 {
    margin: 0 !important;
    color: #06233b !important;
    font-size: clamp(1.8rem, 3vw, 2.85rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -.04em !important;
}

.mw-product-search-related > header > span {
    color: #61798a;
    font-size: .88rem;
    line-height: 1.6;
}

.mw-product-search-related-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.mw-product-search-related-grid > a {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: min(100%, 310px);
    min-height: 100px;
    padding: 10px;
    border: 1px solid #d6e4ec;
    border-radius: 11px;
    background: #fff;
    color: #06233b !important;
    text-decoration: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mw-product-search-related-grid > a:hover {
    border-color: #8bcfe2;
    box-shadow: 0 12px 28px rgba(5, 38, 61, .08);
    transform: translateY(-2px);
}

.mw-product-search-related-grid > a:focus-visible {
    outline: 3px solid rgba(24, 200, 239, .35);
    outline-offset: 3px;
}

.mw-product-search-related-image {
    display: block;
    width: 78px;
    height: 78px;
    overflow: hidden;
    border-radius: 7px;
    background: #eff5f8;
}

.mw-product-search-related-image img { width: 100%; height: 100%; object-fit: cover; }
.mw-product-search-related-copy { display: grid; gap: 5px; min-width: 0; }
.mw-product-search-related-copy strong { font-size: .86rem; line-height: 1.25; }
.mw-product-search-related-copy small { color: #6b8292; font-size: .66rem; line-height: 1.4; }

.mw-product-search-related-footer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.mw-product-search-related-footer a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 19px;
    border: 1px solid #078dcc;
    border-radius: 9px;
    background: #078dcc;
    color: #fff !important;
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 12px 28px rgba(7, 141, 204, .17);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.mw-product-search-related-footer a:hover {
    border-color: #06233b;
    background: #06233b;
    transform: translateY(-2px);
}

.mw-product-search-related-footer a:focus-visible {
    outline: 3px solid rgba(24, 200, 239, .35);
    outline-offset: 3px;
}

.mw-shop-section-head p,
.mw-shop-products-head p,
.mw-shop-service-copy > p {
    margin: 0 0 8px;
    color: #087fae;
    font-size: .78rem;
    font-weight: 800;
}

.mw-shop-section-head h2,
.mw-shop-products-head h2,
.mw-shop-service h2 {
    margin: 0 !important;
    color: #06233b !important;
    font-size: clamp(2rem, 3.5vw, 3.35rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -.045em !important;
}

.mw-shop-section-head > span,
.mw-shop-products-head > span {
    max-width: 480px;
    color: #5d7485;
    font-size: .96rem;
    line-height: 1.65;
}

.mw-shop-use-filter {
    display: flex;
    gap: 8px;
    margin-top: 34px;
    padding-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.mw-shop-use-filter button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #ccdce6;
    border-radius: 8px;
    background: #fff;
    color: #39576b;
    font-size: .78rem;
    font-weight: 750;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.mw-shop-use-filter button:hover,
.mw-shop-use-filter button.is-active {
    border-color: #06233b;
    background: #06233b;
    color: #fff;
}

.mw-shop-use-filter button:focus-visible,
.mw-shop-category-card:focus-visible,
.mw-shop-service-actions a:focus-visible {
    outline: 3px solid rgba(24, 200, 239, .38);
    outline-offset: 3px;
}

.mw-shop-filter-status {
    margin: 8px 0 20px;
    color: #708697;
    font-size: .74rem;
}

.mw-shop-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #d5e2ea;
    border-left: 1px solid #d5e2ea;
}

.mw-shop-category-card {
    position: relative;
    display: grid;
    grid-template-columns: 154px minmax(0, 1fr) 28px;
    gap: 22px;
    align-items: center;
    min-height: 190px;
    padding: 20px;
    border-right: 1px solid #d5e2ea;
    border-bottom: 1px solid #d5e2ea;
    background: #fff;
    color: #06233b !important;
    text-decoration: none !important;
    transition: background .22s ease, box-shadow .22s ease;
}

.mw-shop-category-card[hidden] { display: none !important; }
.mw-shop-category-card:hover { z-index: 2; background: #f9fdff; box-shadow: inset 4px 0 #18c8ef; }

.mw-shop-category-media {
    position: relative;
    display: block;
    height: 148px;
    overflow: hidden;
    background: #eef4f7;
}

.mw-shop-category-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.mw-shop-category-card:hover img { transform: scale(1.045); }

.mw-shop-category-media small {
    position: absolute;
    right: 7px;
    bottom: 7px;
    left: 7px;
    padding: 6px 8px;
    background: rgba(4, 31, 51, .84);
    color: #dff9ff;
    font-size: .63rem;
    line-height: 1.25;
    backdrop-filter: blur(8px);
}

.mw-shop-category-copy { display: grid; gap: 13px; min-width: 0; }
.mw-shop-category-copy > span:first-child { display: grid; gap: 4px; }
.mw-shop-category-copy strong { font-size: clamp(1.05rem, 1.5vw, 1.32rem); line-height: 1.2; }
.mw-shop-category-copy em { color: #078dcc; font-size: .7rem; font-style: normal; font-weight: 750; }
.mw-shop-category-copy > span:last-child { color: #647d8e; font-size: .82rem; line-height: 1.5; }
.mw-shop-category-arrow { color: #078dcc; font-size: 1.15rem; transition: transform .2s ease; }
.mw-shop-category-card:hover .mw-shop-category-arrow { transform: translate(3px, -3px); }

.mw-shop-products-head {
    margin: 8px 0 26px;
    padding-top: 68px;
    border-top: 1px solid #d5e2ea;
}

body.woocommerce-shop .shop-loop-before {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 52px;
    margin: 0 0 24px !important;
    padding: 7px 9px 7px 16px;
    border: 1px solid #d8e5ed;
    border-radius: 10px;
    background: #fff;
}

body.woocommerce-shop .shop-loop-before .woocommerce-ordering { margin: 0 !important; }
body.woocommerce-shop .shop-loop-before select.orderby { min-height: 38px; border: 0; background: #eef5f8; color: #28485c; font-size: .78rem; }
body.woocommerce-shop .gridlist-toggle { display: none !important; }

body.woocommerce-shop ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px !important;
    margin: 0 !important;
}

body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after { display: none !important; }

body.woocommerce-shop ul.products li.product-col {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-shop .product-inner {
    height: 100%;
    overflow: hidden;
    border: 1px solid #d7e4ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(5, 38, 61, .055);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

body.woocommerce-shop .product-inner:hover {
    border-color: #9acfe0;
    box-shadow: 0 22px 50px rgba(5, 38, 61, .11);
    transform: translateY(-4px);
}

body.woocommerce-shop .product-image { margin: 0 !important; padding: 14px 14px 0; }
body.woocommerce-shop .product-image .inner { overflow: hidden; border-radius: 11px; background: #f2f7fa; }
body.woocommerce-shop .product-image img { width: 100% !important; aspect-ratio: 1 / 1; object-fit: contain !important; }
body.woocommerce-shop .product-content { display: flex; flex-direction: column; min-height: 225px; padding: 18px 20px 20px !important; }
body.woocommerce-shop .category-list { margin-bottom: 8px !important; }
body.woocommerce-shop .category-list a { color: #078dcc !important; font-size: .68rem !important; font-weight: 800; text-decoration: none !important; }
body.woocommerce-shop .woocommerce-loop-product__title { margin: 0 !important; color: #08263e !important; font-size: clamp(.96rem, 1.2vw, 1.12rem) !important; line-height: 1.38 !important; text-transform: none !important; }

body.woocommerce-shop .mw-product-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 13px 0 17px;
}

body.woocommerce-shop .mw-product-card-meta span {
    padding: 5px 7px;
    border: 1px solid #d6e6ee;
    border-radius: 5px;
    color: #567184;
    font-size: .62rem;
    font-weight: 700;
}

body.woocommerce-shop .add-links-wrap { margin-top: auto; }
body.woocommerce-shop .mw-quote-add-button { display: flex !important; justify-content: space-between; align-items: center; width: 100%; min-height: 44px; padding: 0 13px !important; border: 1px solid #a9d5e3 !important; border-radius: 8px !important; background: #effaff !important; color: #075c86 !important; font-size: .76rem !important; font-weight: 800 !important; }
body.woocommerce-shop .mw-quote-add-button:hover { border-color: #18c8ef !important; background: #18c8ef !important; color: #052136 !important; }

/* Porto's small-screen ccols-2 rule hides cart labels with text-indent:-9999px
   and a 36px width. Quote actions must remain labelled at every breakpoint. */
body.woocommerce-shop ul.products .add-links .mw-quote-add-button {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    text-indent: 0 !important;
    white-space: normal;
    line-height: 1.4 !important;
    padding-block: 10px !important;
}

body.woocommerce-shop ul.products .mw-quote-add-button::before {
    display: none !important;
}

body.woocommerce-shop ul.products .mw-quote-add-button > span,
body.woocommerce-shop ul.products .mw-quote-add-button > i {
    text-indent: 0 !important;
}

body.woocommerce-shop ul.products .mw-quote-add-button > i {
    flex-shrink: 0;
}

body.search.post-type-archive-product ul.products .add-links-wrap,
body.search.post-type-archive-product ul.products .add-links {
    width: 100%;
}

.mw-shop-service {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
    gap: clamp(45px, 7vw, 90px);
    align-items: center;
    margin-top: 86px;
    padding: clamp(34px, 5vw, 62px);
    overflow: hidden;
    background: #06233b;
    color: #fff;
}

.mw-shop-service h2 { color: #fff !important; }
.mw-shop-service-copy > span { display: block; max-width: 580px; margin-top: 18px; color: rgba(255, 255, 255, .66); line-height: 1.68; }
.mw-shop-service-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mw-shop-service-actions a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 8px; color: #fff !important; font-size: .78rem; font-weight: 800; text-decoration: none !important; }
.mw-shop-service-actions a:first-child { border-color: #18c8ef; background: #18c8ef; color: #052136 !important; }

.mw-shop-service-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.mw-shop-service-steps li { position: relative; display: grid; gap: 5px; padding: 26px 14px 0 0; }
.mw-shop-service-steps li:not(:last-child)::after { content: ''; position: absolute; top: -4px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: #18c8ef; box-shadow: 0 0 0 5px rgba(24, 200, 239, .1); }
.mw-shop-service-steps span { color: #67e8f9; font-size: .68rem; font-weight: 850; }
.mw-shop-service-steps strong { color: #fff; font-size: .9rem; }
.mw-shop-service-steps small { color: rgba(255, 255, 255, .5); font-size: .68rem; line-height: 1.4; }

@media (max-width: 1100px) {
    .mw-shop-hero-grid { grid-template-columns: 1fr; }
    .mw-shop-device-lab { width: min(720px, 100%); min-height: 390px; }
    .mw-shop-device { width: 220px; min-height: 245px; }
    .mw-shop-device img { height: 165px; }
    .mw-shop-device-1 { left: 0; }
    .mw-shop-device-2 { right: 2%; }
    .mw-shop-device-3 { left: 35%; }
    .mw-shop-service { grid-template-columns: 1fr; }
    body.woocommerce-shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    body.woocommerce-shop #main > .container,
    .mw-shop-shell { width: min(100% - 28px, 1320px) !important; }
    .mw-shop-hero { padding-top: 24px; }
    .mw-shop-breadcrumb { margin-bottom: 34px; }
    .mw-shop-hero h1 { font-size: clamp(2.25rem, 12vw, 3.55rem) !important; }
    .mw-shop-search { grid-template-columns: 1fr; }
    .mw-shop-search button { min-height: 44px; }
    .mw-shop-device-lab { display: grid; grid-template-columns: repeat(3, 180px); gap: 12px; min-height: 0; overflow-x: auto; padding-bottom: 10px; }
    .mw-shop-device { position: relative; inset: auto; width: 180px; min-height: 235px; transform: none !important; opacity: 1; }
    .mw-shop-device img { height: 155px; }
    .mw-shop-lab-line { display: none; }
    .mw-shop-section-head,
    .mw-shop-products-head { grid-template-columns: 1fr; gap: 14px; }
    .mw-shop-category-grid { grid-template-columns: 1fr; }
    .mw-shop-category-card { grid-template-columns: 116px minmax(0, 1fr) 20px; gap: 14px; min-height: 155px; padding: 14px; }
    .mw-shop-category-media { height: 126px; }
    body.woocommerce-shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; }
    body.woocommerce-shop .product-image { padding: 8px 8px 0; }
    body.woocommerce-shop .product-content { min-height: 210px; padding: 13px 12px 14px !important; }
    .mw-shop-service { margin-top: 64px; padding: 30px 22px; }
    .mw-shop-service-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 12px; }
    .mw-product-search-head { grid-template-columns: 1fr; gap: 28px; padding: 28px 20px; }
    .mw-product-search-copy nav { margin-bottom: 26px; }
    body.search.post-type-archive-product #main > .container { padding-top: 20px !important; }
    body.search.post-type-archive-product ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .mw-product-search-related > header { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 480px) {
    .mw-shop-category-card { grid-template-columns: 94px minmax(0, 1fr); }
    .mw-shop-category-media { height: 112px; }
    .mw-shop-category-arrow { display: none; }
    .mw-shop-category-copy > span:last-child { font-size: .74rem; }
    body.woocommerce-shop ul.products { grid-template-columns: 1fr; }
    body.woocommerce-shop .product-content { min-height: 0; }
    .mw-shop-service-steps { grid-template-columns: 1fr; }
    .mw-product-search-form > div { grid-template-columns: 1fr; }
    .mw-product-search-form button { min-height: 42px; }
    body.search.post-type-archive-product ul.products { grid-template-columns: 1fr !important; }
    .mw-product-search-head { width: 100vw; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .mw-shop-device,
    .mw-shop-category-card,
    .mw-shop-category-media img,
    body.woocommerce-shop .product-inner { transition: none !important; }
}

/* Mobile containment: wide device tracks scroll inside the hero, not the page.
 * Do not use overflow:hidden as a substitute for shrinkable grid children. */
.mw-shop-shell,
.mw-shop-hero,
.mw-shop-hero *,
.mw-shop-explorer *,
.mw-shop-service * {
    box-sizing: border-box;
}

.mw-shop-hero-grid > *,
.mw-shop-section-head > *,
.mw-shop-products-head > *,
.mw-shop-service > *,
.mw-shop-category-card > *,
.mw-product-search-head > * {
    min-width: 0;
    max-width: 100%;
}

.mw-shop-hero-copy,
.mw-shop-category-copy,
.mw-shop-service-copy,
.mw-shop-section-head,
.mw-shop-products-head {
    overflow-wrap: anywhere;
}

.mw-shop-device-lab {
    min-width: 0;
    max-width: 100%;
}

.mw-shop-search {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
}

.mw-shop-search button,
.mw-shop-service-actions a,
.mw-product-search-related-footer a {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

body.woocommerce-shop ul.products > li,
body.woocommerce-shop .product-content,
body.woocommerce-shop .mw-product-card-meta > span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

body.woocommerce-shop .mw-quote-add-button {
    min-width: 0;
    white-space: normal;
}

body.woocommerce-shop .shop-loop-before {
    flex-wrap: wrap;
    gap: 10px;
}

body.woocommerce-shop .shop-loop-before form,
body.woocommerce-shop .shop-loop-before select {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 1100px) {
    .mw-shop-hero-grid,
    .mw-shop-service {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .mw-shop-section-head,
    .mw-shop-products-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .mw-shop-breadcrumb {
        flex-wrap: wrap;
    }

    .mw-shop-search {
        grid-template-columns: minmax(0, 1fr);
    }

    .mw-shop-search button {
        width: 100%;
        min-width: 0;
        padding: 12px 16px;
    }

    .mw-shop-device-lab {
        width: 100%;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(180px, 75%);
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
    }

    .mw-shop-device {
        width: 100%;
        min-width: 0;
        scroll-snap-align: start;
    }

    .mw-shop-device strong,
    .mw-shop-device small {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .mw-shop-use-filter {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .mw-shop-use-filter button {
        flex: 0 1 auto;
        max-width: 100%;
        height: auto;
        padding-block: 10px;
        line-height: 1.4;
        white-space: normal;
    }

    .mw-shop-service-actions a {
        justify-content: center;
        width: 100%;
        padding-block: 12px;
    }

    body.woocommerce-shop .shop-loop-before form {
        flex: 1 1 100%;
    }

    body.woocommerce-shop .shop-loop-before select {
        width: 100%;
    }
}
