:root {
    --bg: #e9ece6;
    --surface: #ffffff;
    --surface-soft: #f4f6f1;
    --text: #111517;
    --text-muted: #4a5348;
    --primary: #205742;
    --primary-dark: #1a4f3a;
    --primary-soft: #2f7a5d;
    --accent: #87b48e;
    --brand-burgundy: #5a1f28;
    --border: rgba(33, 83, 54, 0.12);
    --header-height: 64px;
    --hero-header-overlap: 14px;
    --hero-panel-top: calc(100% - clamp(44px, 8vh, 88px) - 270px);
}

body {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 500;
    background: var(--bg);
    color: var(--text);
}

* {
    box-sizing: border-box;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    min-height: var(--header-height);
    padding: 0 18px 0 0;
    background-color: #0a2d23;
    background-color: rgba(10, 45, 35, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    transition:
        background-color 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.header.is-scrolled {
    background-color: rgba(10, 45, 35, 0.72);
    border-bottom-color: rgba(135, 180, 142, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .header {
        background-color: rgba(10, 45, 35, 0.88);
    }

    .header.is-scrolled {
        background-color: rgba(10, 45, 35, 0.88);
    }
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
    cursor: pointer;
}

.logo img {
    display: block;
    width: 168px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    filter: none;
}

.header-search {
    position: relative;
    display: flex;
    justify-content: center;
    flex: 0 1 280px;
    min-width: 210px;
    margin: 0 auto;
    z-index: 120;
}

.header-search input {
    width: min(100%, 280px);
    height: 32px;
    padding: 0 12px;
    border: none;
    border-radius: 6px;
    outline: none;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 500;
}

.header-search input::placeholder {
    color: rgba(26, 79, 58, 0.72);
}

.header-search input:focus {
    box-shadow: 0 0 0 3px rgba(135, 180, 142, 0.32);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(360px, 42vw, 560px);
    max-height: min(420px, calc(100vh - 110px));
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(12, 36, 31, 0.94);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.search-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.9);
}

.search-result.active,
.search-result:hover {
    background: #fff;
}

.search-result + .search-result {
    margin-top: 6px;
}

.search-result-main {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.search-result-thumb {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 7px;
    background: var(--surface);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 900;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-result-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.search-result-info strong {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
}

.search-result-info span,
.search-result-info small,
.search-empty {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.search-result-info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-empty {
    margin: 0;
    padding: 12px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.search-result-actions {
    width: max-content;
    min-width: 118px;
}

.search-result-actions .add,
.search-result-actions .qty {
    min-width: 0;
    height: 30px;
    padding: 0 10px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
}

.search-result-actions .add {
    width: 100%;
}

.search-result-actions .qty-row {
    gap: 5px;
    width: max-content;
}

.search-result-actions .qty {
    flex: 0 0 30px;
}

.search-result-actions .qty-val {
    min-width: 34px;
    padding: 5px 6px;
    border-color: var(--border);
    font-size: 0.86rem;
}

.search-result-actions .qty-input {
    width: 38px;
    min-width: 38px;
    height: 30px;
    padding: 4px 6px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    color: var(--text);
    font: inherit;
    font-size: 0.86rem;
    line-height: 1;
    text-align: center;
}

.search-result-actions .qty-input:focus {
    border-color: var(--primary);
    outline: none;
}

.card.is-highlighted {
    outline: 3px solid rgba(32, 87, 66, 0.32);
    outline-offset: 3px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
}

.nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    padding: 9px 12px;
    border-radius: 6px;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: white;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.cart {
    --cart-red: #7f1d26;
    --cart-red-hover: #681820;
    --cart-red-active: #531319;
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 14px;
}

.cart-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 44px;
    padding: 2px 4px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--primary-dark);
    cursor: pointer;
}

.cart-icon-btn::before {
    content: "";
    display: block;
    width: 64px;
    height: 58px;
    background: var(--cart-red);
    -webkit-mask: url("../img/Logo2.png") center / contain no-repeat;
    mask: url("../img/Logo2.png") center / contain no-repeat;
    filter: drop-shadow(0 1px 0 rgba(89, 22, 29, 0.22));
    transition: background-color 180ms ease, filter 180ms ease;
}

.cart-icon-btn:hover,
.cart-icon-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.cart-icon-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(166, 31, 41, 0.28);
}

.cart-icon-btn:hover::before,
.cart-icon-btn:focus-visible::before {
    background: var(--cart-red-hover);
    filter: drop-shadow(0 1px 0 rgba(83, 18, 25, 0.28));
}

.cart-icon-btn:active::before {
    background: var(--cart-red-active);
    filter: drop-shadow(0 1px 0 rgba(72, 15, 21, 0.22));
}

.cart-icon-btn img {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: auto;
    height: 58px;
    max-width: 64px;
    object-fit: contain;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: var(--cart-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 5px 12px rgba(89, 22, 29, 0.26);
}

.cart-count.hidden {
    display: none;
}

.cart-preview {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 130;
    width: min(280px, calc(100vw - 24px));
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    box-shadow: 0 16px 34px rgba(17, 21, 23, 0.18);
}

.cart-preview::before {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 100%;
    border: 8px solid transparent;
    border-bottom-color: rgba(255, 255, 255, 0.98);
}

.cart-preview.hidden {
    display: none;
}

.cart-preview-empty {
    margin: 0;
    color: var(--brand-burgundy);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
}

.cart-preview:not(.is-empty) .cart-preview-empty {
    display: none;
}

.cart-preview-summary {
    display: grid;
    gap: 8px;
}

.cart-preview-summary span {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.cart-preview-summary strong {
    color: var(--text);
    font-weight: 800;
    white-space: nowrap;
}

.cart-preview-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.cart-preview-actions button {
    min-height: 32px;
    padding: 0 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
}

#closeCartPreview {
    background: var(--accent);
    color: var(--primary-dark);
}

#checkoutFromPreview {
    background: var(--primary);
    color: white;
}

#closeCartPreview:hover,
#checkoutFromPreview:hover {
    filter: brightness(0.96);
}

.cart-preview.is-empty .cart-preview-summary,
.cart-preview.is-empty .cart-preview-actions {
    display: none;
}

.hero {
    position: relative;
    min-height: clamp(650px, 78vh, 740px);
    margin-top: calc(-1 * var(--hero-header-overlap));
    padding: calc(clamp(46px, 6vw, 68px) + var(--hero-header-overlap)) 20px clamp(46px, 6vw, 68px);
    background-image:
        linear-gradient(90deg, rgba(10, 55, 40, 0.68) 0%, rgba(10, 55, 40, 0.48) 42%, rgba(10, 55, 40, 0.14) 76%, rgba(10, 55, 40, 0.06) 100%),
        url("../img/ImageHome.png");
    background-size: cover;
    background-position: center 26%;
    background-repeat: no-repeat;
    color: white;
}

.hero-content {
    position: absolute;
    top: calc(var(--hero-panel-top) + var(--hero-header-overlap));
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: minmax(0, 500px) minmax(380px, 440px);
    justify-content: space-between;
    align-items: start;
    gap: clamp(24px, 4vw, 60px);
    width: min(1040px, calc(100% - 80px));
    max-width: 1040px;
}

.hero-copy {
    width: 100%;
    max-width: 540px;
}

.hero-copy h1 {
    max-width: 540px;
    margin: 0;
    font-size: 1.95rem;
    font-weight: 800;
    line-height: 1.12;
}

.hero-copy p {
    max-width: 500px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.02rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero button {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 6px;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-actions a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-panel {
    position: relative;
    display: grid;
    justify-self: end;
    gap: 6px;
    width: min(100%, 440px);
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(19, 63, 49, 0.28), rgba(8, 31, 27, 0.28)),
        rgba(12, 36, 31, 0.28);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 96px;
    height: 96px;
    border-left: 1px solid rgba(135, 180, 142, 0.24);
    border-bottom: 1px solid rgba(135, 180, 142, 0.24);
    background: rgba(135, 180, 142, 0.08);
    transform: translate(32px, -32px) rotate(45deg);
}

.hero-panel-kicker {
    position: relative;
    justify-self: start;
    width: max-content;
    margin-bottom: 5px;
    padding: 5px 9px;
    border-radius: 5px;
    background: rgba(135, 180, 142, 0.18);
    color: #cfe6d3;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: none;
    letter-spacing: 0;
}

.material-card {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
}

.material-main {
    border-color: rgba(135, 180, 142, 0.42);
    background: rgba(135, 180, 142, 0.18);
}

.material-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 28px;
    border: 1px solid rgba(135, 180, 142, 0.46);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(135, 180, 142, 0.32), rgba(32, 87, 66, 0.42));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #dff2df;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 5px rgba(12, 36, 31, 0.52);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.material-card span:hover {
    border-color: rgba(135, 180, 142, 0.72);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26), 0 0 16px rgba(135, 180, 142, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.06);
}

.material-card strong {
    color: rgba(255, 255, 255, 0.93);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.28;
    white-space: nowrap;
    transition: color 180ms ease, text-shadow 180ms ease;
}

.material-card span:hover + strong {
    color: #f2fff0;
    text-shadow: 0 0 10px rgba(135, 180, 142, 0.48), 0 0 18px rgba(135, 180, 142, 0.32);
}

.trust-strip,
.order-flow,
.contact-cta {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 40px;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.trust-item,
.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
}

.trust-item strong,
.step strong {
    display: block;
    margin-bottom: 8px;
}

.trust-item span,
.step p,
.contact-cta p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.45;
}

.products {
    padding: 40px;
}

.catalog-page {
    display: flex;
    flex-direction: column;
    max-width: 1360px;
    margin: 0 auto;
}

.catalog-breadcrumbs {
    order: 0;
}

.catalog-heading {
    order: 1;
}

.catalog-controls {
    order: 2;
}

.catalog-help {
    order: 7;
}

.catalog-message {
    order: 3;
}

.catalog-featured {
    order: 5;
}

#productGrid {
    order: 6;
}

.catalog-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.catalog-breadcrumbs a,
.catalog-breadcrumbs button {
    color: var(--primary-dark);
    text-decoration: none;
}

.catalog-breadcrumbs button {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
}

.catalog-breadcrumbs a:hover,
.catalog-breadcrumbs button:hover {
    color: var(--brand-burgundy);
}

.catalog-breadcrumbs button[aria-disabled="true"] {
    cursor: default;
}

.catalog-breadcrumbs .current {
    color: var(--brand-burgundy);
    font-weight: 800;
}

.catalog-top {
    display: contents;
}

.catalog-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
}

.catalog-heading h2 {
    margin: 0;
    white-space: nowrap;
}

.catalog-help {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin: 42px 0 32px;
    padding: 18px 20px;
    border: 1px solid rgba(90, 31, 40, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(244, 246, 241, 0.92)),
        linear-gradient(135deg, rgba(32, 87, 66, 0.1), rgba(90, 31, 40, 0.08));
    box-shadow: 0 10px 24px rgba(17, 21, 23, 0.08);
}

.catalog-help h3 {
    margin: 0 0 6px;
    color: var(--brand-burgundy);
    font-size: 1.05rem;
    font-weight: 800;
}

.catalog-help p {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}

.catalog-help-action {
    position: relative;
    display: inline-grid;
    gap: 8px;
    justify-items: stretch;
}

.catalog-help a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(32, 87, 66, 0.22);
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.catalog-price-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 15px;
    border: 1px solid rgba(32, 87, 66, 0.16);
    border-radius: 6px;
    background: var(--primary);
    color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(32, 87, 66, 0.18);
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.catalog-help a::before {
    content: "☎";
    margin-right: 8px;
    font-size: 0.88rem;
}

.catalog-help a:hover,
.catalog-price-download:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 22px rgba(32, 87, 66, 0.28);
    transform: translateY(-1px);
}

.catalog-price-download:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.catalog-help-phone {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 4;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(90, 31, 40, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand-burgundy);
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(17, 21, 23, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.catalog-help-action.is-phone-visible .catalog-help-phone {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.catalog-help-phone:hover {
    box-shadow: 0 12px 26px rgba(17, 21, 23, 0.18);
}

.catalog-message {
    min-height: 20px;
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.catalog-message:empty {
    display: none;
}

.catalog-message.error {
    color: var(--brand-burgundy);
}

.catalog-message.success {
    color: var(--primary);
}

.catalog-featured {
    margin-top: 26px;
}

.catalog-featured h2 {
    margin: 0 0 18px;
    font-weight: 700;
}

.popular-products {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 40px;
}

.popular-scroll {
    position: relative;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(5, 220px);
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.popular-arrow {
    display: none;
}

.popular-grid .card-info h3,
.popular-grid .card-info p {
    font-weight: 600;
}

.popular-grid .card-info p {
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 1400px) {
    .popular-scroll {
        padding: 0 34px;
    }
    .popular-grid {
        display: flex;
        justify-content: flex-start;
        gap: 15px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }
    .popular-grid::-webkit-scrollbar {
        display: none;
    }
    .popular-grid .card {
        flex: 0 0 220px;
    }
    .popular-arrow {
        position: absolute;
        top: 50%;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 46px;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: 6px;
        background: var(--surface);
        color: var(--primary);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        cursor: pointer;
        font-size: 1.45rem;
        line-height: 1;
        transform: translateY(-50%);
    }
    .popular-arrow-left {
        left: 0;
    }
    .popular-arrow-right {
        right: 0;
    }
}

.catalog-controls {
    display: grid;
    gap: 12px;
    margin: 14px 0 28px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(244, 246, 241, 0.82);
    box-shadow: 0 8px 22px rgba(17, 21, 23, 0.06);
}

.category-main-list,
.category-subcategory-list,
.category-group-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    height: auto;
    min-height: 0;
    min-width: 0;
}

.category-subcategory-list,
.category-group-list {
    padding-top: 10px;
    border-top: 1px solid rgba(33, 83, 54, 0.12);
    overflow: visible;
}

.category-subcategory-list.is-expanded,
.category-group-list.is-expanded {
    max-height: none;
}

.category-subcategory-hint {
    margin: 0;
    padding-top: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.category-subcategory-select,
.category-group-select {
    display: none;
}

.category-subcategory-select select,
.category-group-select select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(32, 87, 66, 0.2);
    border-radius: 6px;
    background: var(--surface);
    color: var(--primary-dark);
    padding: 0 12px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
}

.category-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--primary-dark);
    padding: 0 12px;
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.category-control.level-0 {
    min-height: 36px;
    border-color: rgba(32, 87, 66, 0.24);
    background: rgba(255, 255, 255, 0.82);
    color: var(--primary-dark);
    font-size: 0.88rem;
    font-weight: 700;
}

.category-control.category-all {
    min-height: 36px;
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    font-size: 0.88rem;
    font-weight: 800;
}

.category-control.level-1 {
    min-height: 32px;
    border-color: rgba(47, 122, 93, 0.18);
    background: rgba(255, 255, 255, 0.86);
    color: var(--primary-dark);
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}

.category-control.level-2 {
    min-height: 28px;
    border-color: rgba(32, 87, 66, 0.22);
    background: rgba(234, 241, 234, 0.9);
    color: var(--primary-dark);
    padding: 0 10px;
    font-size: 0.76rem;
    font-weight: 700;
}

.category-control.category-group-all {
    border-color: rgba(90, 31, 40, 0.28);
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-burgundy);
}

.category-control.active,
.category-control:hover {
    border-color: var(--brand-burgundy);
    background: var(--brand-burgundy);
    color: white;
}

.catalog-page .category-control.active {
    border-color: var(--brand-burgundy);
    background: var(--brand-burgundy);
    color: white;
    box-shadow: 0 6px 16px rgba(90, 31, 40, 0.22);
}

.catalog-page .category-control.level-1.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 16px rgba(32, 87, 66, 0.2);
}

.catalog-page .category-control.level-2.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 16px rgba(32, 87, 66, 0.2);
}

.catalog-page .category-control.category-group-all.active {
    border-color: var(--brand-burgundy);
    background: var(--brand-burgundy);
    color: white;
    box-shadow: 0 6px 16px rgba(90, 31, 40, 0.2);
}

.subcategory-toggle,
.group-toggle {
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    min-height: 32px;
    border: 1px solid rgba(90, 31, 40, 0.28);
    border-radius: 6px;
    background: transparent;
    color: var(--brand-burgundy);
    padding: 6px 12px;
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.subcategory-toggle:hover,
.group-toggle:hover {
    border-color: var(--brand-burgundy);
    background: rgba(90, 31, 40, 0.08);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 220px));
    justify-content: center;
    gap: 15px;
    align-items: stretch;
    opacity: 1;
    transition: opacity 180ms ease;
}

.grid.is-updating {
    opacity: 0.35;
}

.empty-products {
    grid-column: 1 / -1;
    margin: 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-muted);
    text-align: center;
}

.catalog-level-prompt {
    border-color: rgba(32, 87, 66, 0.18);
    background: rgba(244, 246, 241, 0.86);
    color: var(--primary-dark);
    font-weight: 700;
}

.catalog-load-more {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding-top: 6px;
}

.catalog-load-more button {
    width: min(100%, 260px);
    min-height: 42px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.catalog-load-more button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.catalog-load-more p {
    margin: 0;
    color: var(--text-muted);
    font-weight: 700;
    text-align: center;
}

.card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    width: 220px;
    min-height: 300px;
    height: auto;
    overflow: visible;
}

.catalog-page .card > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.card-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.thumb {
    width: 100%;
    height: 128px;
    flex: 0 0 128px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

.card-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 5px;
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: visible;
}

.card-info h3,
.card-info p {
    margin: 0;
    text-align: center;
}

.card-info h3 {
    min-height: 3.9em;
    max-height: 3.9em;
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: anywhere;
}

.card-info p {
    margin-top: 4px;
    min-height: 2.4em;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

.card button {
    height: 28px;
    padding: 8px;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    border-radius: 6px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

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

.qty-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    min-width: 0;
}

.qty-input {
    width: 44px;
    min-width: 44px;
    max-width: 86px;
    height: 34px;
    flex: 0 1 auto;
    padding: 0 4px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
    overflow: visible;
}

.qty-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(32, 87, 66, 0.12);
}

.actions {
    width: 100%;
    flex: 0 0 auto;
    margin-top: 4px;
}

.qty {
    background: var(--primary-dark);
    border: none;
    color: white;
    padding: 0;
    border-radius: 4px;
    cursor: pointer;
    width: 34px;
    min-width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}

.qty.plus,
.qty.minus {
    background: var(--primary-dark);
}

.qty-val {
    min-width: 36px;
    display: inline-block;
    text-align: center;
    border: 1px solid #111;
    border-radius: 4px;
    padding: 6px 10px;
    color: var(--text);
    background: white;
}

.cart-modal {
    position: fixed;
    right: 20px;
    top: 80px;
    width: 320px;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.12);
    padding: 12px;
    z-index: 60;
    border: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 83, 72, 0.45) var(--surface-soft);
}
.hidden { display: none; }

.cart-modal::-webkit-scrollbar {
    width: 7px;
}

.cart-modal::-webkit-scrollbar-track {
    background: var(--surface-soft);
    border-radius: 999px;
}

.cart-modal::-webkit-scrollbar-thumb {
    background: rgba(74, 83, 72, 0.42);
    border-radius: 999px;
}

.cart-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(32, 87, 66, 0.65);
}

.cart-modal h3 {
    margin: 0;
    font-size: 1rem;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
}

.clear-cart-btn {
    border: none;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.clear-cart-btn:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.clear-cart-btn:disabled {
    cursor: default;
    opacity: 0.45;
    text-decoration: none;
}

.clear-cart-confirm {
    display: grid;
    gap: 10px;
    margin: 0 0 10px;
    padding: 10px;
    border: 1px solid rgba(32, 87, 66, 0.18);
    border-radius: 8px;
    background: var(--surface-soft);
}

.clear-cart-confirm.hidden {
    display: none;
}

.clear-cart-confirm p {
    margin: 0;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.3;
}

.clear-cart-confirm div {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.clear-cart-confirm button {
    min-height: 30px;
    padding: 0 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
}

#confirmClearCart {
    background: var(--primary);
    color: white;
}

#cancelClearCart {
    background: var(--accent);
    color: var(--primary-dark);
}

#cartItems {
    display: grid;
    gap: 8px;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.cart-item > div:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.cart-item b {
    font-size: 0.82rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
    white-space: normal;
}

.cart-item span {
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.15;
}

.cart-modal .qty-row {
    gap: 5px;
    width: auto;
    margin: 0;
}

.cart-modal .qty {
    width: 26px;
    height: 26px;
    min-width: 26px;
    padding: 0;
    border-radius: 6px;
    background: var(--primary);
    font-size: 0.9rem;
}

.cart-modal .qty:hover {
    background: var(--primary-dark);
}

.cart-modal .qty-val {
    min-width: 28px;
    padding: 3px 6px;
    border-color: var(--border);
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1;
}

#cartTotal {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 700;
}

#cartWeight {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

#closeCart {
    min-height: 32px;
    padding: 0 12px;
    border: none;
    border-radius: 6px;
    background: var(--accent);
    color: var(--primary-dark);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
}

#closeCart:hover {
    filter: brightness(0.96);
}

#openCheckout {
    min-height: 34px;
    padding: 0 18px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
}

#openCheckout:hover {
    filter: brightness(0.96);
}

#openCheckout:disabled {
    cursor: default;
    opacity: 0.55;
}

.cart-modal .qty-input {
    width: 38px;
    min-width: 38px;
    height: 26px;
    padding: 3px 5px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    color: var(--text);
    font: inherit;
    font-size: 0.82rem;
    line-height: 1;
    text-align: center;
}

.cart-modal .qty-input:focus {
    border-color: var(--primary);
    outline: none;
}

.checkout-form {
    display: grid;
    gap: 9px;
}

.checkout-form.hidden {
    display: none;
}

.checkout-form label {
    display: grid;
    gap: 4px;
}

.contact-method-fields {
    display: block;
}

.contact-method-fields label {
    min-width: 0;
}

.checkout-form label span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    color: var(--text);
    font: inherit;
    font-size: 0.86rem;
    padding: 8px 9px;
}

.checkout-form .radio-row {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 34px;
    color: var(--text);
    font-size: 0.86rem;
}

.checkout-form .radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.checkout-form .radio-row input {
    width: auto;
    margin: 0;
}

.checkout-form textarea {
    min-height: 36px;
    max-height: 150px;
    overflow-y: hidden;
    resize: vertical;
}

.checkout-form textarea.is-scrollable {
    overflow-y: auto;
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus {
    border-color: var(--primary);
    outline: none;
}

.checkout-message {
    min-height: 1.2em;
    margin: 0;
    color: var(--primary-dark);
    font-size: 0.84rem;
    line-height: 1.35;
}

.checkout-message.success {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    border: 1px solid rgba(32, 87, 66, 0.28);
    border-radius: 6px;
    background: #eef8f1;
    color: #33413a;
    text-align: left;
    animation: checkoutSuccessIn 240ms ease-out;
}

.checkout-consent label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; }
.checkout-consent input { width: 18px; height: 18px; flex: 0 0 auto; }
.checkout-consent-error { min-height: 1.25em; margin: 4px 0 0; color: #8a1f2d; font-weight: 700; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.legal-links a { color: inherit; }

.checkout-message.error {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid rgba(90, 31, 40, 0.24);
    border-radius: 6px;
    background: rgba(90, 31, 40, 0.08);
    color: var(--brand-burgundy);
    font-weight: 700;
    line-height: 1.35;
}

.checkout-success-icon {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}

.checkout-success-title {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-dark);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.25;
}

.checkout-success-text {
    display: grid;
    gap: 6px;
}

.checkout-success-text span {
    color: #33413a;
    font-size: 0.84rem;
    line-height: 1.38;
}

@keyframes checkoutSuccessIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.checkout-actions button {
    min-height: 34px;
    padding: 0 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
}

#cancelCheckout {
    background: var(--accent);
    color: var(--primary-dark);
}

.checkout-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

#cancelCheckout:hover {
    filter: brightness(0.96);
}

.checkout-actions button[type="submit"]:hover {
    filter: brightness(0.96);
}

.checkout-actions button[type="submit"]:disabled {
    cursor: default;
    opacity: 0.65;
    filter: none;
}

#cartModal, #cartModal h3, #cartModal .cart-item, #cartModal .qty-val, #cartModal .qty-input {
    font-weight: 500;
}

#cartModal h3 {
    font-weight: 700;
}
.hero button {
    font-weight: 600;
}
.cart button {
    font-weight: 600;
}

.order-flow h2,
.contact-cta h2 {
    margin: 0 0 18px;
    font-weight: 700;
}

.products h2,
.popular-products h2 {
    font-weight: 700;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.contact-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 6px;
    border-top: 1px solid var(--border);
}

.contact-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
}

.contact-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.footer {
    margin-top: 40px;
    background: #143f31;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 20px;
    font-size: 0.95rem;
}

.footer-inner strong {
    font-size: 1rem;
}

@media (max-width: 980px) {
    :root {
        --header-height: 60px;
        --hero-header-overlap: 12px;
    }

    .header {
        gap: 10px;
        min-height: var(--header-height);
    }

    .hero-content,
    .trust-strip,
    .steps {
        grid-template-columns: 1fr;
    }

    .hero-content {
        position: static;
        transform: none;
        width: 100%;
        max-width: 1180px;
    }

    .hero-copy {
        width: 100%;
    }

    .hero-panel {
        grid-template-columns: 1fr;
        justify-self: start;
        width: min(100%, 440px);
        max-width: 100%;
    }

    .contact-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-actions {
        justify-content: flex-start;
    }

    .catalog-page {
        max-width: 100%;
    }

    .catalog-top {
        display: contents;
    }

    .catalog-controls {
        margin-top: 14px;
    }

    .catalog-heading {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .catalog-page .grid {
        grid-template-columns: repeat(auto-fit, 220px);
        justify-content: center;
        gap: 15px;
    }

    .catalog-help {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .logo img {
        width: 148px;
        max-height: 60px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: grid;
        gap: 0;
        margin-left: 0;
        padding: 8px 0;
        background: #143f31;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav a {
        padding: 14px 18px;
    }

    .nav a:hover {
        background: rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 600px) {
    :root {
        --header-height: 96px;
        --hero-header-overlap: 8px;
    }

    .contact-method-fields {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 650px;
        padding: calc(48px + var(--hero-header-overlap)) 12px 48px;
        background-position: center 24%;
    }
    .hero-copy h1 {
        font-size: 1.7rem;
    }
    .hero-copy p {
        font-size: 0.98rem;
    }
    .hero-actions {
        display: grid;
    }
    .hero button,
    .hero-actions a {
        justify-content: center;
        width: 100%;
    }
    .trust-strip,
    .order-flow,
    .contact-cta {
        padding: 28px 12px;
    }
    .material-card {
        align-items: center;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 9px;
        min-height: 46px;
        padding: 9px 10px;
    }
    .material-card span {
        width: 34px;
    }
    .material-card strong {
        text-align: left;
        font-size: 0.88rem;
        white-space: normal;
    }
    .header {
        flex-wrap: wrap;
        padding: 0 10px 0 0;
    }
    .logo img {
    width: 60px;
    max-height: 45px;
    object-fit: contain;
}
    .header-search {
        order: 4;
        flex: 1 0 100%;
        min-width: 0;
        margin: 0 0 10px 10px;
    }
    .header-search input {
        width: min(100%, 280px);
    }
    .search-dropdown {
        left: 0;
        right: 0;
        transform: none;
        width: min(100%, calc(100vw - 24px));
    }
    .search-result {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }
    .search-result-actions {
        width: 100%;
        min-width: 0;
    }
    .products {
        padding: 28px 12px;
    }
    .catalog-page .grid {
        grid-template-columns: repeat(auto-fit, minmax(0, 220px));
        justify-content: center;
        gap: 15px;
    }
    .catalog-page .card {
        width: min(220px, 100%);
        max-width: 220px;
    }
    .catalog-help {
        padding: 16px;
    }
    .catalog-help-action {
        width: 100%;
    }
    .catalog-help a {
        width: 100%;
    }
    .catalog-price-download {
        min-height: 34px;
        padding: 7px 15px;
        font-size: 13px;
    }
    .catalog-help-phone {
        left: 0;
        right: auto;
        justify-self: start;
    }
    .catalog-controls {
        margin-bottom: 22px;
        padding: 12px;
    }
    .category-main-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    .category-main-list::-webkit-scrollbar {
        display: none;
    }
    .category-subcategory-list,
    .category-group-list,
    .subcategory-toggle,
    .group-toggle {
        display: none;
    }
    .category-subcategory-select,
    .category-group-select {
        display: block;
    }
    .category-control.level-1,
    .category-control.level-2 {
        min-height: 28px;
        padding: 0 8px;
        font-size: 0.72rem;
    }
    .popular-products {
        padding: 28px 12px;
    }
    .popular-scroll {
        padding: 0 34px;
    }
    .popular-grid {
        display: flex;
        justify-content: flex-start;
        gap: 15px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }
    .popular-grid::-webkit-scrollbar {
        display: none;
    }
    .popular-grid .card {
        flex: 0 0 220px;
    }
    .popular-arrow {
        position: absolute;
        top: 50%;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 46px;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: 6px;
        background: var(--surface);
        color: var(--primary);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        cursor: pointer;
        font-size: 1.45rem;
        line-height: 1;
        transform: translateY(-50%);
    }
    .popular-arrow-left {
        left: 0;
    }
    .popular-arrow-right {
        right: 0;
    }
    .card {
        width: 220px;
        height: 300px;
    }
    .thumb {
        width: 100%;
        height: 128px;
        flex-basis: 128px;
    }
    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
