:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --ink: #17202a;
    --muted: #667085;
    --line: #d8dee7;
    --accent: #0f8b5f;
    --accent-dark: #096242;
    --blue: #2356a3;
    --danger: #b42318;
    --shadow: 0 10px 30px rgba(27, 39, 51, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(16px, 4vw, 42px);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.layout,
.footer {
    position: relative;
    z-index: 1;
}

.parts-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.part {
    position: absolute;
    display: block;
    width: var(--w);
    height: auto;
    opacity: .13;
    filter: drop-shadow(0 10px 20px rgba(20, 35, 50, .08));
    animation: float-part 22s linear infinite;
    transition: transform .28s ease;
    will-change: transform, translate, rotate;
}

.part.is-escaping {
    transform: translate(var(--push-x, 0), var(--push-y, 0)) scale(1.04);
}

.part-1 {
    --w: 150px;
    left: 6%;
    top: 24%;
    animation-duration: 17.3s;
}

.part-2 {
    --w: 128px;
    right: 8%;
    top: 56%;
    animation-duration: 21.3s;
    animation-delay: -9s;
}

.part-3 {
    --w: 72px;
    left: 70%;
    top: 18%;
    animation-duration: 18.7s;
    animation-delay: -5s;
}

.part-4 {
    --w: 74px;
    left: 12%;
    bottom: 15%;
    animation-duration: 20s;
    animation-delay: -14s;
}

.part-5 {
    --w: 96px;
    left: 82%;
    top: 34%;
    animation-duration: 16s;
    animation-delay: -11s;
}

.part-6 {
    --w: 82px;
    left: 28%;
    top: 70%;
    animation-duration: 22.7s;
    animation-delay: -18s;
}

.part-7 {
    --w: 58px;
    left: 40%;
    top: 14%;
    animation-duration: 18s;
    animation-delay: -7s;
}

.part-8 {
    --w: 84px;
    right: 20%;
    bottom: 12%;
    animation-duration: 20.7s;
    animation-delay: -20s;
}

@keyframes float-part {
    0% {
        translate: 0 0;
        rotate: 0deg;
    }
    50% {
        translate: 32px -42px;
        rotate: 12deg;
    }
    100% {
        translate: 0 0;
        rotate: 0deg;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-menu-toggle,
.mobile-cart-link,
.mobile-menu {
    display: none;
}

.header-phones {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.header-phones a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.nav a,
.button,
.qty-form button {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.view-switch {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.view-switch label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.view-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.view-switch i {
    position: relative;
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: #d9e0ea;
    transition: background .18s ease;
}

.view-switch i::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(20, 35, 50, .18);
    transition: transform .18s ease;
}

.view-switch input:checked + i {
    background: var(--accent);
}

.view-switch input:checked + i::before {
    transform: translateX(22px);
}

.cart-link {
    font-weight: 700;
}

.cart-link span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    margin-left: 4px;
    border-radius: 999px;
    color: #fff;
    background: var(--accent);
    font-size: 12px;
}

.layout {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 56px;
}

.search-panel,
.page-head,
.product-view,
.cart-grid,
.empty {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 22px;
    align-items: start;
    padding: 24px;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
}

h2 {
    font-size: 18px;
    line-height: 1.25;
}

p {
    color: var(--muted);
    line-height: 1.5;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-box {
    position: relative;
    flex: 1 1 auto;
}

input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 12;
    display: none;
    max-height: 320px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.suggestions.open {
    display: block;
}

.suggestion-item {
    display: grid;
    gap: 4px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 11px 12px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.suggestion-item:last-child {
    border-bottom: 0;
}

.suggestion-item:hover {
    background: #f3f7fb;
}

.suggestion-item span {
    font-weight: 700;
}

.suggestion-item small {
    color: var(--muted);
}

.button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}

.button.primary:hover {
    background: var(--accent-dark);
}

.button.secondary {
    border-color: #b8c8df;
    background: #eef4ff;
    color: var(--blue);
    font-weight: 700;
}

.button.disabled,
.button[aria-disabled="true"] {
    border-color: var(--line);
    background: #eef0f3;
    color: #8a94a3;
    cursor: not-allowed;
    pointer-events: none;
}

.button.ghost {
    width: 100%;
    background: transparent;
}

.catalog-meta,
.pagination,
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.catalog-meta {
    margin: 20px 0 12px;
}

.catalog-meta a,
.pagination a,
.footer a,
.back-link {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

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

.product-card,
.cart-item {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-card {
    gap: 12px;
    padding: 14px;
    grid-template-rows: auto 1fr auto auto;
}

.product-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #f0f3f7;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-thumb-placeholder {
    cursor: default;
    background: #f8fafc;
}

.product-title-link {
    color: inherit;
    text-decoration: none;
}

.product-title-link:hover {
    color: var(--blue);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.product-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    font-size: 14px;
}

.product-table th,
.product-table td {
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}

.product-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f5f7fa;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.product-table th a {
    color: inherit;
    text-decoration: none;
}

.product-table th a:hover {
    color: var(--blue);
}

.product-table tr:last-child td {
    border-bottom: 0;
}

.product-table form {
    margin: 0;
}

.button.compact {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
}

.photo-state {
    color: var(--accent);
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.sku {
    margin-bottom: 0;
    font-size: 13px;
}

.product-stats {
    display: grid;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.product-stats span,
.total-row strong,
.cart-item strong {
    font-size: 18px;
    font-weight: 800;
}

.product-stats small {
    color: var(--muted);
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.actions form {
    margin: 0;
}

.notice {
    margin-bottom: 16px;
    border: 1px solid #badbcc;
    border-radius: 8px;
    padding: 14px 16px;
    background: #eaf6ef;
    color: #0f5132;
}

.notice.error {
    border-color: #f5c2c7;
    background: #f8d7da;
    color: var(--danger);
}

.empty,
.page-head {
    padding: 28px;
}

.success-block {
    text-align: center;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 22px;
    align-items: start;
    padding: 20px;
}

.cart-list {
    display: grid;
    gap: 12px;
}

.cart-item {
    grid-template-columns: 1fr 160px 130px 44px;
    align-items: center;
    box-shadow: none;
}

.cart-item h2,
.cart-item p {
    margin-bottom: 4px;
}

.qty-form {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 8px;
}

.icon-action {
    width: 40px;
    height: 40px;
    border: 1px solid #f1b8b2;
    border-radius: 8px;
    background: #fff5f5;
    color: var(--danger);
    font-size: 24px;
    cursor: pointer;
}

.checkout {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fdfefe;
}

.checkout form {
    display: grid;
    gap: 12px;
}

.checkout label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.product-view {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 26px;
    padding: 20px;
}

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

.gallery-item,
.no-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f0f3f7;
}

.gallery-item {
    display: block;
    padding: 0;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.no-photo {
    display: grid;
    place-items: center;
    color: var(--muted);
}

.product-info {
    display: grid;
    align-content: start;
    gap: 18px;
}

dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

dt {
    color: var(--muted);
}

dd {
    margin: 0;
    font-weight: 800;
}

.pagination {
    justify-content: center;
    margin-top: 22px;
}

.pagination a,
.pagination span {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
    background: #fff;
}

.footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.footer-contacts,
.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-contacts strong {
    color: var(--ink);
}

.footer-contacts span {
    color: var(--muted);
}

.scroll-top {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 8;
    display: none;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 20, .82);
}

.lightbox-panel {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    width: min(1100px, 100%);
    height: min(760px, calc(100vh - 40px));
    border-radius: 8px;
    background: #111820;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.lightbox-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    background: #0b1016;
}

.lightbox-close,
.lightbox-nav,
.lightbox-share {
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 64px;
    border-radius: 8px;
    font-size: 48px;
    line-height: 1;
    transform: translateY(-50%);
}

.lightbox-nav.prev {
    left: 12px;
}

.lightbox-nav.next {
    right: 12px;
}

.lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 10px 14px;
    color: #fff;
    background: #111820;
}

.lightbox-counter {
    font-weight: 700;
}

.lightbox-share {
    display: none;
    min-height: 40px;
    border-radius: 8px;
    padding: 9px 14px;
    font-weight: 700;
}

@media (max-width: 820px) {
    .parts-bg {
        display: none;
    }

    .topbar {
        position: sticky;
        top: 0;
        display: grid;
        grid-template-columns: 48px 1fr 48px;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
    }

    .brand {
        justify-content: center;
        min-width: 0;
        width: 100%;
    }

    .nav {
        display: none;
    }

    .header-phones {
        display: none;
    }

    .mobile-menu-toggle,
    .mobile-cart-link {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        color: var(--ink);
        text-decoration: none;
    }

    .mobile-menu-toggle {
        gap: 4px;
        padding: 0;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 999px;
        background: var(--ink);
    }

    .mobile-cart-link {
        position: relative;
        justify-self: end;
    }

    .mobile-cart-link .cart-icon {
        font-size: 21px;
        line-height: 1;
    }

    .mobile-cart-link > span:last-child {
        position: absolute;
        top: -6px;
        right: -6px;
        display: grid;
        place-items: center;
        min-width: 20px;
        height: 20px;
        border-radius: 999px;
        color: #fff;
        background: var(--accent);
        font-size: 11px;
        font-weight: 800;
    }

    .mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 30;
        display: none;
    }

    .mobile-menu.open {
        display: block;
    }

    .mobile-menu-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(10, 14, 20, .42);
    }

    .mobile-menu-panel {
        position: relative;
        display: grid;
        align-content: start;
        gap: 10px;
        width: min(320px, calc(100% - 56px));
        height: 100%;
        padding: 18px;
        background: #fff;
        box-shadow: 18px 0 45px rgba(20, 35, 50, .18);
        transform: translateX(-100%);
        animation: mobile-menu-in .22s ease forwards;
    }

    .mobile-menu-panel strong {
        margin-bottom: 8px;
        font-size: 20px;
    }

    .mobile-menu-panel a {
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 12px;
        color: var(--ink);
        text-decoration: none;
        font-weight: 700;
    }

    .mobile-menu-close {
        justify-self: end;
        width: 42px;
        height: 42px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    @keyframes mobile-menu-in {
        to {
            transform: translateX(0);
        }
    }

    .view-switch {
        width: 100%;
    }

    .search-panel,
    .product-view,
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .search-form,
    .footer {
        flex-direction: column;
        align-items: stretch;
    }

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

    .table-wrap {
        margin-left: -4px;
        margin-right: -4px;
    }

    .product-table {
        min-width: 760px;
        font-size: 13px;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .checkout {
        position: static;
    }

    .scroll-top.visible {
        display: grid;
        opacity: 1;
        transform: translateY(0);
    }

    .lightbox {
        padding: 10px;
        align-items: center;
    }

    .lightbox-panel {
        width: 100%;
        height: auto;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 8px;
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .lightbox-image {
        max-height: calc(100vh - 98px);
        max-height: calc(100dvh - 98px);
    }

    .lightbox-nav {
        width: 38px;
        height: 50px;
        font-size: 38px;
    }

    .lightbox-nav.prev {
        left: 8px;
    }

    .lightbox-nav.next {
        right: 8px;
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
        font-size: 26px;
    }

    .lightbox-footer {
        min-height: 52px;
        padding: 8px 10px;
    }

    .lightbox-share {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    body {
        padding-top: 62px;
    }

    .topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 40;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
    }

    .topbar .brand {
        grid-column: 2;
        justify-content: center;
        min-width: 0;
        width: 100%;
    }

    .topbar .brand small {
        display: none;
    }

    .topbar .brand-mark {
        width: 42px;
        height: 42px;
    }

    .topbar .header-phones,
    .topbar .nav {
        display: none;
    }

    .mobile-menu-toggle,
    .mobile-cart-link {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        color: var(--ink);
        text-decoration: none;
    }

    .mobile-menu-toggle {
        grid-column: 1;
        gap: 1px;
        padding: 0;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 22px;
        height: 4px;
        border-radius: 999px;
        background: var(--ink);
        transition: transform .18s ease, opacity .18s ease;
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .mobile-cart-link {
        grid-column: 3;
        position: relative;
        justify-self: end;
    }

    .mobile-cart-link .cart-icon {
        font-size: 21px;
        line-height: 1;
    }

    .mobile-cart-link > span:last-child {
        position: absolute;
        top: -6px;
        right: -6px;
        display: grid;
        place-items: center;
        min-width: 20px;
        height: 20px;
        border-radius: 999px;
        color: #fff;
        background: var(--accent);
        font-size: 11px;
        font-weight: 800;
    }

    .mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 30;
        display: none;
    }

    .mobile-menu.open {
        display: block;
    }

    .mobile-menu-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(10, 14, 20, .42);
    }

    .mobile-menu-panel {
        position: relative;
        display: grid;
        align-content: start;
        gap: 10px;
        width: min(320px, calc(100% - 56px));
        height: 100%;
        padding: 18px;
        background: #fff;
        box-shadow: 18px 0 45px rgba(20, 35, 50, .18);
        transform: translateX(-100%);
        animation: mobile-menu-in .22s ease forwards;
    }

    .mobile-menu-panel strong {
        margin-bottom: 8px;
        font-size: 20px;
    }

    .mobile-menu-panel a {
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 12px;
        color: var(--ink);
        text-decoration: none;
        font-weight: 700;
    }

    .mobile-menu-close {
        justify-self: end;
        width: 42px;
        height: 42px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }
}

@media (max-width: 520px) {
    body {
        padding-top: 74px;
    }

    .layout {
        width: min(100% - 20px, 1180px);
        margin-top: 16px;
    }

    .topbar {
        padding: 12px 10px;
    }

    .nav a {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
    }

    .search-panel,
    .empty,
    .page-head,
    .product-view,
    .cart-grid {
        padding: 16px;
    }

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

    .actions,
    .actions .button,
    .actions form,
    .actions button {
        width: 100%;
    }

    .product-card {
        padding: 10px;
    }

    .product-card h2 {
        font-size: 15px;
    }

    .product-thumb {
        aspect-ratio: 1 / 1;
    }

    .product-stats span {
        font-size: 16px;
    }

    .product-stats small {
        font-size: 12px;
    }
}
