:root {
    --ink: #222;
    --muted: #777;
    --line: #e8e8e8;
    --surface: #fff;
    --soft: #f7f7f7;
    --accent: #f36f21;
    --accent-ink: #fff;
}

html { overflow-x: clip; }

body {
    font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink);
    overflow-x: hidden;
}

.site-header {
    position: relative;
    background: #fff;
    border-bottom: 0;
    backdrop-filter: none;
}

.utility-bar {
    min-height: 40px;
    color: #777;
    background: #f5f5f5;
    border: 0;
    font-size: 12px;
}

.utility-inner,
.header-main,
.category-nav,
.main,
.site-footer-inner,
.footer-services {
    width: min(1140px, calc(100% - 32px));
    margin-inline: auto;
}

.utility-inner {
    min-height: 40px;
}

.utility-links,
.locale-links {
    gap: 18px;
}

.header-main {
    min-height: 82px;
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
    align-items: center;
    gap: 20px;
}

.brand {
    justify-self: start;
    max-width: 190px;
    color: #111;
    font-size: 23px;
    font-weight: 600;
    text-transform: none;
}

.brand img {
    width: auto;
    max-width: 190px;
    max-height: 54px;
    object-fit: contain;
}

.header-search {
    position: relative;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

.header-search summary,
.mobile-menu summary {
    list-style: none;
}

.header-search summary::-webkit-details-marker,
.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.header-search .search-form {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    z-index: 30;
    width: min(420px, calc(100vw - 32px));
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgb(0 0 0 / 10%);
}

.header-search .search-form input {
    width: 100%;
    min-height: 42px;
}

.header-search .search-form button {
    min-height: 42px;
    background: var(--accent);
    border-color: var(--accent);
}

.header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    gap: 4px;
    padding-right: 38px;
}

.icon-action {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #333;
    border: 0;
    cursor: pointer;
    font-size: 23px;
    line-height: 1;
}

.icon-action:hover {
    color: var(--accent);
}

.icon-action svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-nav {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    overflow: visible;
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid var(--line);
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.category-nav > a,
.nav-menu > a {
    min-height: 48px;
    display: flex;
    align-items: center;
}

.category-nav a:hover {
    color: var(--accent);
}

.nav-menu {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 25;
    min-width: 300px;
    display: none;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 28px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgb(0 0 0 / 9%);
    transform: translateX(-50%);
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
    display: grid;
}

.nav-dropdown strong,
.nav-dropdown a {
    display: block;
    padding: 4px 0;
    white-space: nowrap;
}

.nav-dropdown strong {
    margin-bottom: 5px;
    font-size: 13px;
}

.nav-dropdown a {
    color: var(--muted);
    font-weight: 400;
}

.main {
    padding: 30px 0 60px;
}

body:has(.home-slider:first-child) .main {
    padding-top: 0;
}

.home-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
    background: #f2f2f2;
}

.home-slider.is-full,
.image-module.is-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.home-slides,
.home-slide {
    width: 100%;
}

.home-slides {
    position: relative;
}

.home-slide {
    display: none;
}

.home-slide.is-active {
    display: block;
}

.home-slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 52px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #333;
    background: rgb(255 255 255 / 82%);
    border: 0;
    cursor: pointer;
    font-size: 34px;
    transform: translateY(-50%);
}

.slider-previous { left: 18px; }
.slider-next { right: 18px; }

.slider-dots {
    position: absolute;
    right: 0;
    bottom: 16px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.slider-dot.is-active { background: #fff; }

.home-module {
    margin: 0 0 52px;
}

.module-title {
    margin: 0 0 28px;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
}

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

.product-card {
    min-width: 0;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: box-shadow .2s ease, transform .2s ease;
}

.product-card:hover {
    z-index: 1;
    box-shadow: 0 8px 25px rgb(0 0 0 / 10%);
    transform: translateY(-2px);
}

.product-image {
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.025);
}

.product-badge {
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    color: #fff;
    background: var(--accent);
    border-radius: 0;
    font-size: 11px;
}

.product-body {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px 18px;
    text-align: center;
}

.product-title {
    width: 100%;
    min-height: 44px;
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 7px;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-price-row {
    justify-content: center;
    gap: 9px;
}

.price {
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
}

.image-module {
    display: grid;
    gap: 30px;
}

.image-module-image300 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.image-module-image200 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.image-module-image100 { grid-template-columns: 1fr; }

.image-module a {
    display: block;
    overflow: hidden;
}

.image-module img {
    width: 100%;
    height: auto;
    transition: transform .35s ease;
}

.image-module a:hover img { transform: scale(1.02); }

.home-rich-text {
    color: #555;
    line-height: 1.8;
}

.home-rich-text > :first-child { margin-top: 0; }
.home-rich-text > :last-child { margin-bottom: 0; }

.headline {
    margin-bottom: 34px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.headline h1 {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.3;
}

.catalog-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
}

.catalog-filters {
    padding: 0 20px 0 0;
    border: 0;
    border-right: 1px solid var(--line);
}

.filter-title {
    color: #333;
    font-size: 14px;
    text-transform: none;
}

input,
select,
textarea {
    border-color: #ddd;
    border-radius: 0;
    background: #fff;
}

select {
    min-height: 42px;
    padding: 0 40px 0 12px;
    color: #333;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;
    cursor: pointer;
}

select:hover { border-color: #aaa; }
select:disabled { color: #999; background-color: #f4f4f4; cursor: not-allowed; }
select::-ms-expand { display: none; }

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgb(243 111 33 / 16%);
}

.button {
    min-height: 42px;
    padding: 0 22px;
    border-color: var(--accent);
    border-radius: 0;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.button:hover { filter: brightness(.93); }

.button-secondary,
.text-button {
    border-color: #ccc;
    background: #fff;
    color: #444;
}

.detail {
    grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
    gap: 48px;
    align-items: start;
}

.gallery {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
}

.gallery-main {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbs {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumb {
    width: 82px;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    background: #f8f8f8;
    cursor: pointer;
}

.thumb:hover { border-color: #555; }

.panel {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.detail > .panel h1 {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.4;
}

.detail > .panel > div,
.detail > .panel > form,
.detail > .panel > p {
    margin-bottom: 18px;
}

.variant-option {
    min-height: 42px;
    border-radius: 0;
}

.variant-option.is-selected {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.content {
    margin-top: 50px;
    padding: 28px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}

.content h2 {
    font-size: 22px;
    font-weight: 500;
}

.cart-line {
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}

.cart-line-image {
    background: #f7f7f7;
}

.site-footer {
    margin-top: 25px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.footer-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 30px 0;
    border-bottom: 1px solid #e8e8e8;
}

.footer-service {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 0 18px;
    border-right: 1px solid #e1e1e1;
}

.footer-service:last-child { border-right: 0; }

.footer-service img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-service strong,
.footer-service span {
    display: block;
    overflow-wrap: anywhere;
}

.footer-service strong {
    color: #333;
    font-size: 13px;
    font-weight: 600;
}

.footer-service span {
    color: var(--muted);
    font-size: 11px;
}

.site-footer-inner { padding: 42px 0 0; }

.footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 42px;
    padding-bottom: 38px;
}

.footer-brand {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.footer-brand img {
    width: auto;
    max-width: 180px;
    max-height: 48px;
}

.footer-intro,
.footer-contact,
.footer-links {
    color: #777;
    font-size: 12px;
    line-height: 1.9;
}

.footer-intro p { margin: 0 0 10px; }

.footer-title {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-inline: calc(50% - 50vw);
    padding-inline: max(16px, calc((100vw - 1140px) / 2));
    color: #777;
    background: #efeff4;
    border: 0;
    font-size: 12px;
}

.footer-bottom p { margin: 0; }
.footer-bottom img { width: auto; max-width: min(330px, 45vw); max-height: 32px; }

.mobile-menu { display: none; }

@media (max-width: 900px) {
    .utility-bar,
    .category-nav { display: none; }

    .header-main {
        min-height: 64px;
        grid-template-columns: 78px 1fr auto;
        gap: 8px;
    }

    .brand {
        grid-column: 2;
        justify-self: center;
        max-width: 150px;
        font-size: 19px;
    }

    .brand img { max-width: 150px; max-height: 44px; }

    .mobile-menu {
        position: static;
        grid-column: 1;
        grid-row: 1;
        display: block;
    }

    .mobile-menu summary {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        cursor: pointer;
        font-size: 22px;
    }

    .mobile-panel {
        top: 64px;
        z-index: 40;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .header-search {
        grid-column: 1;
        display: block;
        justify-self: end;
    }

    .header-search .search-form {
        top: calc(100% + 13px);
        right: auto;
        left: -42px;
    }

    .header-actions {
        grid-column: 3;
        padding: 0;
    }

    .header-actions .icon-action:nth-child(2) { display: none; }

    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .detail { grid-template-columns: 1fr; gap: 30px; }
    .footer-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-service { padding-block: 15px; }
    .footer-service:nth-child(2) { border-right: 0; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .utility-inner,
    .header-main,
    .category-nav,
    .main,
    .site-footer-inner,
    .footer-services {
        width: min(100% - 24px, 1140px);
    }

    .main { padding-bottom: 42px; }
    .home-slider { margin-bottom: 34px; }
    .home-slide img { min-height: 180px; object-fit: cover; }
    .slider-arrow { display: none; }
    .home-module { margin-bottom: 38px; }
    .module-title { margin-bottom: 20px; font-size: 21px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-body { min-height: 105px; padding: 11px 5px 14px; }
    .product-title { min-height: 40px; font-size: 12px; line-height: 1.55; }
    .price { font-size: 13px; }
    .image-module { gap: 12px; }
    .image-module-image300 { grid-template-columns: 1fr; }
    .image-module-image200 { grid-template-columns: 1fr 1fr; }
    .headline h1 { font-size: 26px; }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-filters { padding: 0 0 20px; border-right: 0; border-bottom: 1px solid var(--line); }
    .gallery { grid-template-columns: 1fr; }
    .gallery-main { grid-column: 1; grid-row: 1; }
    .thumbs { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; }
    .thumb { flex: 0 0 68px; width: 68px; }
    .detail > .panel h1 { font-size: 22px; }
    .footer-services { grid-template-columns: 1fr; padding-block: 14px; }
    .footer-service { justify-content: flex-start; border-right: 0; border-bottom: 1px solid #e5e5e5; }
    .footer-service:last-child { border-bottom: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-bottom { min-height: 82px; flex-direction: column; justify-content: center; text-align: center; }
    .footer-bottom img { max-width: 80vw; }
}

/* Category catalog follows the original storefront's 22/78 sidebar layout. */
.catalog-breadcrumb {
    width: 100vw;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -30px 0 34px calc(50% - 50vw);
    padding-inline: max(16px, calc((100vw - 1140px) / 2));
    color: #555;
    background: #f7f7f7;
    font-size: 13px;
}

.catalog-breadcrumb strong { font-weight: 600; }
.catalog-breadcrumb a:hover { color: var(--accent); }

.catalog-layout {
    display: grid;
    grid-template-columns: minmax(210px, 22%) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.catalog-sidebar {
    min-width: 0;
    padding-right: 20px;
}

.sidebar-section {
    padding: 0 0 24px;
    margin: 0 0 24px;
    border-bottom: 1px solid #e6e6e6;
}

.sidebar-section h2 {
    margin: 0 0 17px;
    color: #282828;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.category-tree,
.category-tree ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-branch { margin: 0 0 4px; }

.category-row {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.category-row > a {
    min-width: 0;
    overflow: hidden;
    color: #333;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-row > a.is-active,
.category-tree ul a.is-active {
    color: var(--accent);
    font-weight: 600;
}

.category-row button {
    width: 30px;
    height: 30px;
    position: relative;
    flex: 0 0 30px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.category-row button span::before,
.category-row button span::after {
    position: absolute;
    top: 14px;
    left: 9px;
    width: 11px;
    height: 1px;
    content: "";
    background: #aaa;
}

.category-row button span::after {
    transform: rotate(90deg);
    transition: transform .2s ease;
}

.category-branch.is-open .category-row button span::after { transform: rotate(0); }

.category-tree ul {
    display: none;
    padding: 2px 0 6px 12px;
}

.category-branch.is-open > ul { display: block; }

.category-tree ul li { margin: 12px 0; }

.category-tree ul a {
    display: block;
    overflow: hidden;
    color: #868e96;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-tree a:hover { color: var(--accent); }

.price-filter {
    --price-start: 0%;
    --price-end: 100%;
}

.price-slider {
    height: 28px;
    position: relative;
    margin: 4px 0 5px;
}

.price-slider-track {
    position: absolute;
    top: 12px;
    right: 8px;
    left: 8px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #e3e3e3 0 var(--price-start), var(--accent) var(--price-start) var(--price-end), #e3e3e3 var(--price-end) 100%);
}

.price-slider input[type="range"] {
    width: 100%;
    height: 28px;
    min-height: 28px;
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    pointer-events: none;
}

.price-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border: 0;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -6px;
    appearance: none;
    -webkit-appearance: none;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
    cursor: ew-resize;
    pointer-events: auto;
}

.price-slider input[type="range"]::-moz-range-track {
    height: 4px;
    background: transparent;
    border: 0;
}

.price-slider input[type="range"]::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
    cursor: ew-resize;
    pointer-events: auto;
}

.price-slider input[type="range"]:focus::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px rgb(243 111 33 / 18%); }
.price-slider input[type="range"]:focus::-moz-range-thumb { box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px rgb(243 111 33 / 18%); }

.price-range-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #868e96;
    font-size: 12px;
}

.price-range-labels b { font-weight: 400; }

.attribute-filter .filter-options { gap: 12px; }

.attribute-filter .check-option {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #444;
    cursor: pointer;
}

.attribute-filter .check-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
}

.sidebar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-actions .button { min-height: 38px; padding-inline: 17px; }
.sidebar-actions a { color: #666; }
.sidebar-actions a:hover { color: var(--accent); }

.catalog-toolbar {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.catalog-view-mode svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: var(--accent);
}

.catalog-toolbar-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    color: #777;
    font-size: 12px;
}

.catalog-toolbar-controls label {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.catalog-toolbar-controls select {
    width: auto;
    min-width: 72px;
    min-height: 38px;
    padding: 0 34px 0 11px;
    color: #444;
    background-position: right 10px center;
    font-size: 12px;
}

.catalog-toolbar-controls label:last-child select { min-width: 172px; }

.catalog-child-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin: -8px 0 20px;
    color: #777;
    font-size: 13px;
}

.catalog-child-links a { color: #333; }
.catalog-child-links a:hover { color: var(--accent); }

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

.mobile-catalog-filter { display: none; }

@media (max-width: 900px) {
    .catalog-breadcrumb { margin-top: -30px; margin-bottom: 22px; }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-sidebar { display: none; }
    .mobile-catalog-filter { display: block; margin-bottom: 20px; }
    .mobile-catalog-filter details { border: 1px solid #e2e2e2; }
    .mobile-catalog-filter summary {
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 14px;
        cursor: pointer;
        font-weight: 600;
        list-style: none;
    }
    .mobile-catalog-filter summary::-webkit-details-marker { display: none; }
    .mobile-catalog-filter details[open] summary span { transform: rotate(45deg); }
    .mobile-catalog-filter form { padding: 18px 14px; border-top: 1px solid #eee; }
    .catalog-products .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 620px) {
    .catalog-breadcrumb {
        min-height: 40px;
        margin-bottom: 16px;
        padding-inline: 12px;
        font-size: 12px;
    }
    .catalog-toolbar { align-items: flex-start; }
    .catalog-view-mode { display: none; }
    .catalog-toolbar-controls { width: 100%; flex-wrap: wrap; justify-content: space-between; }
    .catalog-toolbar-controls > span { width: 100%; }
    .catalog-toolbar-controls label { align-items: flex-start; flex-direction: column; gap: 4px; }
    .catalog-toolbar-controls label:last-child select { min-width: 190px; }
    .catalog-child-links { margin-top: -6px; }
    .catalog-products .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

.sr-only {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.store-alert {
    margin-bottom: 22px;
    padding: 12px 16px;
    color: #285d27;
    background: #f0f8ef;
    border: 1px solid #cce3c8;
}

.product-breadcrumb {
    overflow: hidden;
    white-space: nowrap;
}

.product-breadcrumb strong {
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    gap: 62px;
    align-items: start;
    margin-bottom: 100px;
}

.product-gallery {
    min-width: 0;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.product-thumbnails {
    max-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.product-thumbnails::-webkit-scrollbar { width: 0; height: 0; display: none; }

.product-thumbnail {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    display: grid;
    place-items: center;
    padding: 2px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    cursor: pointer;
}

.product-thumbnail:hover,
.product-thumbnail.is-active { border-color: #333; }

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-main-image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery-dots { display: none; }

.product-summary { min-width: 0; padding-top: 1px; }

.product-summary h1 {
    margin: 0 0 24px;
    color: #282828;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.product-detail-price {
    min-height: 44px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 36px;
}

.product-detail-price strong {
    color: #282828;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
}

.product-detail-price s {
    color: #777;
    font-size: 13px;
}

.product-rating-summary {
    margin: -23px 0 32px;
    color: #777;
    font-size: 13px;
}

.product-facts {
    display: grid;
    gap: 9px;
    margin: 0 0 28px;
    color: #555;
    font-size: 14px;
}

.product-facts > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); }
.product-facts dt { color: #6f6f6f; font-weight: 400; }
.product-facts dd { margin: 0; overflow-wrap: anywhere; }
.product-facts dd.in-stock { color: #57b62f; }
.product-facts a { color: var(--accent); }

.product-purchase { margin: 0; }

.variant-picker { display: grid; gap: 18px; margin-bottom: 22px; }
.variant-picker fieldset { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.variant-picker legend { margin: 0; color: #333; font-size: 13px; }
.variant-values { display: flex; flex-wrap: wrap; gap: 8px; }

.variant-option {
    min-width: 48px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 11px;
    color: #222;
    background: #fff;
    border: 1px solid #ddd;
    font: inherit;
    cursor: pointer;
}

.variant-option:hover,
.variant-option.is-selected {
    border-color: #222;
    box-shadow: none;
}

.variant-option img { width: 36px; height: 36px; object-fit: cover; }

.sku-select { max-width: 310px; display: grid; gap: 7px; margin-bottom: 20px; color: #555; }

.purchase-actions {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.quantity-control { flex: 0 0 80px; }
.quantity-control input { width: 80px; height: 44px; margin: 0; text-align: center; }

.purchase-actions .button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding-inline: 16px;
    white-space: nowrap;
}

.purchase-actions .button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.add-cart-button {
    min-width: 142px;
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}

.add-cart-button:hover { background: #df5f15; border-color: #df5f15; }

.buy-now-button { color: #fff; background: #282828; border-color: #282828; }
.purchase-actions .button:disabled { opacity: .5; cursor: not-allowed; }

.product-wishlist,
.product-login-link { margin-top: 7px; }

.product-wishlist button,
.product-login-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 0;
    color: #7b838c;
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.product-wishlist button span,
.product-login-link span { font-size: 19px; line-height: 1; }
.product-wishlist button:hover,
.product-login-link:hover { color: var(--accent); }

.product-information { margin-bottom: 64px; }

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 8px 30px;
    overflow-x: auto;
    border-bottom: 1px solid #e3e3e3;
}

.product-tabs button {
    min-height: 46px;
    position: relative;
    padding: 0 2px;
    color: #333;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.product-tabs button.is-active { color: var(--accent); }
.product-tabs button.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; content: ""; background: var(--accent); }

.product-tab-panel { display: none; padding: 30px 0 0; color: #555; line-height: 1.8; }
.product-tab-panel.is-active { display: block; }
.product-tab-panel img { max-width: 100%; height: auto; }

.review-item { padding: 16px 0; border-bottom: 1px solid #eee; }
.review-item > div { display: flex; justify-content: space-between; gap: 15px; }
.review-item span { color: #888; font-size: 12px; }
.review-item p { margin-bottom: 0; }
.review-form { max-width: 620px; margin-top: 24px; }

.related-products { margin-top: 52px; }
.related-products > h2 { margin: 0 0 28px; font-size: 24px; font-weight: 600; text-align: center; }

@media (max-width: 900px) {
    .product-detail { grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 30px; margin-bottom: 64px; }
    .product-gallery { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
    .product-thumbnail { width: 64px; height: 64px; flex-basis: 64px; }
    .product-summary h1 { font-size: 23px; }
    .purchase-actions { flex-wrap: wrap; }
}

@media (max-width: 700px) {
    .product-breadcrumb { display: none; }
    .product-detail { grid-template-columns: 1fr; gap: 24px; margin-bottom: 52px; }
    .product-gallery { display: block; }
    .product-thumbnails { display: none; }
    .product-main-image { max-width: none; border-inline: 0; }
    .product-gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
    .product-gallery-dots span { width: 7px; height: 7px; border-radius: 50%; background: #ddd; }
    .product-gallery-dots span.is-active { background: var(--accent); }
    .product-summary h1 { margin-bottom: 15px; font-size: 20px; }
    .product-detail-price { min-height: 34px; margin-bottom: 22px; }
    .product-detail-price strong { font-size: 26px; }
    .product-facts { margin-bottom: 22px; }
    .purchase-actions { display: grid; grid-template-columns: 76px 1fr; gap: 10px; }
    .quantity-control,
    .quantity-control input { width: 76px; }
    .buy-now-button { grid-column: 1 / -1; }
    .product-tabs { justify-content: flex-start; }
    .product-tabs button { font-size: 15px; }
    .related-products > h2 { font-size: 21px; }
}

/* Shared commerce pages */
.page-breadcrumb { margin-top: -30px; }

.commerce-page-header {
    margin: 34px 0 38px;
    text-align: center;
}

.commerce-page-header h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.25;
}

.commerce-page-header p { margin: 9px 0 0; color: #777; }
.commerce-page-header a { color: var(--accent); }

.auth-layout {
    max-width: 930px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto 45px;
}

.auth-panel { min-width: 0; padding: 8px 58px 22px; }
.auth-panel + .auth-panel { border-left: 1px solid #e6e6e6; }
.auth-panel h2 { margin: 0 0 7px; font-size: 20px; font-weight: 600; }
.auth-panel > p { min-height: 45px; margin: 0 0 20px; color: #777; }
.auth-panel form { display: grid; gap: 14px; }
.auth-panel label,
.auth-single label,
.checkout-fields label { display: grid; gap: 6px; color: #555; font-size: 13px; }
.auth-actions { display: flex; align-items: center; gap: 18px; }
.auth-actions a { color: #777; font-size: 13px; }
.auth-actions a:hover { color: var(--accent); }
.auth-new-customer .button { margin-top: 10px; }
.button-dark { color: #fff; background: #282828; border-color: #282828; }
.social-login { display: grid; gap: 8px; margin-top: 15px; }

.auth-single {
    max-width: 560px;
    display: grid;
    gap: 15px;
    margin: 0 auto 50px;
    padding: 30px 38px;
    border: 1px solid #e5e5e5;
}

.auth-single .button { justify-self: start; }

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 38px;
    align-items: start;
}

.cart-table { min-width: 0; border-top: 1px solid #e2e2e2; }
.cart-table-head,
.cart-row { display: grid; grid-template-columns: minmax(250px, 1fr) 90px 80px 100px 34px; gap: 14px; align-items: center; }
.cart-table-head { min-height: 50px; color: #777; border-bottom: 1px solid #e2e2e2; font-size: 12px; text-transform: uppercase; }
.cart-row { min-height: 126px; padding: 16px 0; border-bottom: 1px solid #e8e8e8; }
.cart-product { min-width: 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; }
.cart-product-image { width: 88px; height: 88px; display: grid; place-items: center; overflow: hidden; border: 1px solid #eee; }
.cart-product-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-product strong { display: block; overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.cart-product span { display: block; margin-top: 5px; color: #888; font-size: 12px; }
.cart-cell { color: #555; }
.cart-subtotal { color: #222; font-weight: 600; }
.cart-quantity { width: 46px; padding: 8px 0; text-align: center; border: 1px solid #ddd; }
.cart-remove { width: 30px; height: 30px; padding: 0; color: #999; background: transparent; border: 0; font-size: 24px; cursor: pointer; }
.cart-remove:hover { color: var(--accent); }

.order-summary { padding: 25px 26px; background: #f7f7f7; border: 1px solid #ececec; }
.order-summary h2 { margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid #ddd; font-size: 20px; font-weight: 600; }
.order-summary > div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; color: #666; }
.order-summary-total { margin-top: 8px; padding-top: 17px !important; border-top: 1px solid #ddd; color: #222 !important; font-size: 17px; }
.order-summary .button { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; margin-top: 20px; }
.continue-shopping { display: block; margin-top: 14px; color: #666; text-align: center; }
.cart-empty { display: grid; justify-items: center; gap: 16px; padding: 70px 20px; }
.cart-empty h2 { margin: 0; font-size: 21px; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 48px; align-items: start; }
.checkout-form { display: grid; gap: 22px; }
.checkout-section { border: 1px solid #e5e5e5; }
.checkout-section h2 { min-height: 56px; display: flex; align-items: center; gap: 12px; margin: 0; padding: 0 22px; border-bottom: 1px solid #e5e5e5; font-size: 18px; font-weight: 600; }
.checkout-section h2 span { width: 26px; height: 26px; display: grid; place-items: center; color: #fff; background: #282828; border-radius: 50%; font-size: 12px; }
.checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; padding: 24px 22px; }
.checkout-fields > label:has(input[name="address_1"]),
.checkout-fields > label:has(input[name="address_2"]),
.checkout-fields > label:has(input[name="comment"]),
.checkout-fields > .form-grid { grid-column: 1 / -1; }
.checkout-fields input,
.checkout-fields select { margin: 0; }
.checkout-submit { justify-self: end; min-width: 170px; }
.checkout-summary { position: sticky; top: 20px; }
.checkout-products { display: grid; gap: 14px; margin-bottom: 14px; padding-bottom: 17px; border-bottom: 1px solid #ddd; }
.checkout-products article { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.checkout-product-image { width: 58px; height: 58px; position: relative; display: grid; place-items: center; background: #fff; border: 1px solid #e3e3e3; }
.checkout-product-image img { width: 100%; height: 100%; object-fit: contain; }
.checkout-product-image span { min-width: 20px; height: 20px; position: absolute; top: -7px; right: -7px; display: grid; place-items: center; padding: 0 5px; color: #fff; background: #777; border-radius: 10px; font-size: 11px; }
.checkout-products strong { display: -webkit-box; overflow: hidden; font-size: 13px; font-weight: 500; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.checkout-products small { display: block; margin-top: 3px; color: #888; }
.checkout-products b { font-size: 13px; font-weight: 600; }

@media (max-width: 900px) {
    .page-breadcrumb { margin-top: -30px; }
    .cart-layout,
    .checkout-layout { grid-template-columns: 1fr; }
    .order-summary { max-width: none; }
    .checkout-summary { position: static; }
}

@media (max-width: 700px) {
    .commerce-page-header { margin: 25px 0 28px; }
    .commerce-page-header h1 { font-size: 25px; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-panel { padding: 8px 8px 30px; }
    .auth-panel + .auth-panel { padding-top: 28px; border-top: 1px solid #e6e6e6; border-left: 0; }
    .auth-single { padding: 22px 18px; }
    .cart-table-head { display: none; }
    .cart-row { grid-template-columns: minmax(0, 1fr) 30px; gap: 8px 12px; }
    .cart-product { grid-column: 1; }
    .cart-row form { grid-column: 2; grid-row: 1; align-self: start; }
    .cart-cell { grid-column: 1; display: flex; justify-content: space-between; }
    .cart-cell::before { content: attr(data-label); color: #888; font-size: 12px; font-weight: 400; }
    .cart-quantity { width: auto; padding: 0; border: 0; text-align: left; }
    .checkout-fields { grid-template-columns: 1fr; padding: 20px 16px; }
    .checkout-fields > * { grid-column: 1 !important; }
    .checkout-section h2 { padding-inline: 16px; }
    .checkout-submit { width: 100%; }
}

/* Listing, account and content page polish */
.page-breadcrumb + .headline,
.page-breadcrumb + .brand-hero {
    margin-top: 32px;
}

.headline {
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e9e9e9;
}

.headline h1 {
    margin-bottom: 5px;
    color: #282828;
    font-size: 28px;
    font-weight: 600;
}

.headline h2 { font-size: 23px; font-weight: 600; }
.headline p { max-width: 720px; margin: 5px 0 0; color: #777; }

.search-page-form {
    margin-bottom: 32px;
    padding: 18px 20px;
    background: #f7f7f7;
    border: 1px solid #ededed;
}

.search-page-form label { color: #666; font-size: 12px; }
.search-page-form input,
.search-page-form select { margin-top: 5px; }

.section-list { border-top: 1px solid #e5e5e5; }
.section-list .section { margin: 0; padding: 24px 0; background: transparent; border: 0; border-bottom: 1px solid #e5e5e5; border-radius: 0; box-shadow: none; }
.section-list .section h2 { margin: 0 0 7px; font-size: 19px; font-weight: 500; }

.content { max-width: 900px; margin-inline: auto; font-size: 15px; line-height: 1.85; }
.content h2,
.content h3 { margin-top: 1.8em; font-weight: 600; }
.content img { max-width: 100%; height: auto; }

.service-form-panel { max-width: 760px; margin-inline: auto; padding: 30px 34px; border: 1px solid #e5e5e5; box-shadow: none; }
.service-form-panel form { display: grid; gap: 15px; }

.account-layout { margin-top: 32px; }
.account-sidebar { background: #fff; border-color: #e5e5e5; }
.account-identity { padding: 20px 18px; }
.account-nav a,
.account-nav button { color: #555; background: #fff; border-color: #eee; }
.account-nav a:hover,
.account-nav button:hover { color: var(--accent); background: #fafafa; }
.account-nav a.is-active { color: var(--accent); background: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.account-layout > .panel,
.account-form-grid > form { padding: 25px 28px; border: 1px solid #e5e5e5; box-shadow: none; }
.account-layout .headline { margin-top: 0; }
.account-layout .sku { border-color: #e7e7e7; border-radius: 0; }

.detail > .panel { padding: 26px; background: #f7f7f7; border-color: #e7e7e7; border-radius: 0; box-shadow: none; }

@media (max-width: 700px) {
    .page-breadcrumb { display: none; }
    .page-breadcrumb + .headline,
    .page-breadcrumb + .brand-hero { margin-top: 0; }
    .headline h1 { font-size: 24px; }
    .service-form-panel,
    .account-layout > .panel,
    .account-form-grid > form { padding: 20px 16px; }
    .account-layout { margin-top: 0; }
}
