/*
 * Base styles of every page: reset, header, menu panel, footer, tiles, home blocks, page shells.
 * Carried over from the old site (include/style.css, include/index.css and the styles in include/header.php)
 * without jQuery and slick: the category slider is scroll-snap, the menu panel is switched by assets/js/site.js.
 * The font is the stack the live site loads: no font files.
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    background: #fff;
    color: #1a1a1a;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button {
    font-family: inherit;
}

.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

.icon-big {
    width: 48px;
    height: 48px;
}

/* Promo line over the header: the lines come from the content, the first shows, site.js changes them */
#promo-bar {
    height: 40px;
    background: #000;
    color: #fff;
    text-align: center;
    line-height: 40px;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 201;
    overflow: hidden;
    white-space: nowrap;
}

.promo-slide {
    display: block;
    width: 100%;
    padding: 0 16px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-slide[hidden] {
    display: none;
}

.promo-slide a {
    color: #fff;
    text-decoration: underline;
    margin-left: 8px;
    font-weight: 500;
}

/* Header */
header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    z-index: 200;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-right a {
    color: inherit;
}

.burger {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

.logo {
    width: 100px;
    height: auto;
}

.search-form {
    flex: 1;
    max-width: 220px;
}

.search-box {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 8px 12px;
    width: 100%;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-right nav {
    display: flex;
    gap: 32px;
}

.header-right nav a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.2s;
}

.header-right nav a:hover {
    color: #666;
}

.icons {
    display: flex;
    gap: 24px;
    min-width: 28px;
    min-height: 28px;
}

.icons a {
    color: #000;
    transition: opacity 0.2s;
}

.icons a:hover {
    opacity: 0.6;
}

/* Menu panel */
.burger-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.burger-overlay.open {
    display: block;
}

.burger-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 66vh;
    background: #fff;
    z-index: 1001;
    display: none;
    overflow-y: auto;
    padding: 30px 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #eee;
}

.burger-panel.open {
    display: block;
}

.burger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.close-burger {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #000;
}

.burger-logo {
    width: 80px;
    height: auto;
    margin-bottom: 30px;
}

.burger-icons-section {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.burger-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.burger-icon-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    color: #000;
    transition: background-color 0.3s;
}

.burger-icon-btn:hover {
    background-color: #f5f5f5;
}

.burger-language {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.burger-language label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-dropdown {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.language-dropdown:hover,
.language-dropdown:focus {
    border-color: #000;
    outline: none;
}

.burger-two-columns {
    display: flex;
    gap: 80px;
}

.burger-left-col {
    width: 250px;
}

.burger-left-col ul {
    list-style: none;
}

.burger-left-col li {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
}

.burger-main-item {
    background: none;
    border: none;
    font: inherit;
    color: #000;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.burger-main-item.active {
    font-weight: 700;
    border-left: 3px solid #000;
    padding-left: 12px;
}

.burger-right-col {
    flex: 1;
}

.burger-right-col .burger-title {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.burger-right-col .category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    padding: 6px 3px;
    color: #000;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s;
}

.category-item:hover {
    opacity: 0.7;
}

.category-item img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.pane-links a {
    display: block;
    padding: 8px 0;
    font-size: 16px;
    color: #000;
    text-decoration: none;
}

.pane-links a:hover {
    color: #666;
}

/* Footer */
footer {
    background: #f9f9f9;
    padding: 70px 80px 40px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

footer h4,
footer .footer-title {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

footer ul {
    display: flex;
    flex-direction: column;
}

footer ul,
footer a {
    list-style: none;
    line-height: 2.2;
    color: #555;
    font-size: 14px;
    text-decoration: none;
}

footer a {
    display: inline-block;
}

footer a:hover {
    color: #000;
}

.footer-bottom {
    background: #000;
    color: #fff;
    padding: 20px 80px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    margin-left: 30px;
}

.footer-bottom__legal {
    flex-basis: 100%;
    margin-top: 12px;
    opacity: 0.7;
}

.accordion.mobile {
    display: none;
}

.accordion {
    border-top: 1px solid #eee;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    font: inherit;
    font-weight: 500;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #555;
    line-height: 1.5;
}

.accordion-item.active .accordion-content {
    max-height: 1200px;
    padding-bottom: 20px;
}

/* Blocks of the pages */
.section {
    padding: 80px 80px 60px;
    border-bottom: 1px solid #f0f0f0;
}

.section h2 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 48px;
    letter-spacing: -0.3px;
}

.cat-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
}

.cat-slider .cat-card {
    flex: 0 0 min(407px, 80vw);
    scroll-snap-align: start;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.cat-grid .cat-card {
    height: 320px;
}

.cat-card {
    display: block;
    position: relative;
    overflow: hidden;
    height: 450px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* A soft shade under the name, so white text reads on any picture, a light placeholder included. */
.cat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 55%);
    pointer-events: none;
}

.cat-card:hover img {
    transform: scale(1.05);
}

/* A tile with the icon of a section: a light tile, the icon in the middle at its own size (54x54, a raster file), the name under it in dark. */
.cat-card.cat-card-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #f8f8f8;
    color: #000;
}

.cat-card.cat-card-icon::after {
    display: none;
}

.cat-card.cat-card-icon img {
    width: 54px;
    height: 54px;
    object-fit: none;
    /* The file of one icon (Раковины) has a white background: multiply makes white take the colour of the tile. */
    mix-blend-mode: multiply;
}

.cat-card.cat-card-icon .cat-info {
    position: static;
    color: #000;
    text-shadow: none;
    text-align: center;
}

/* An icon needs no photo height: the tiles with icons are low, and on a phone they go two in a row (18 sections stay one screen
   of scrolling, not seven). */
.cat-grid .cat-card.cat-card-icon {
    height: 180px;
    padding: 0 12px;
}

@media (max-width: 768px) {
    .cat-grid:has(> .cat-card-icon) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .cat-grid .cat-card.cat-card-icon {
        height: 150px;
        gap: 10px;
    }

    .cat-card.cat-card-icon .cat-info h3 {
        font-size: 16px;
    }
}

.cat-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 1;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.cat-info h3 {
    font-size: 22px;
    font-weight: 400;
}

.seo-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.seo-title {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 48px;
    letter-spacing: -0.3px;
}

.seo-content p + p {
    margin-top: 16px;
}

.leader-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    background: #fff;
    padding: 40px 0;
}

.leader-text {
    flex: 1;
}

.leader-text h3 {
    font-weight: 300;
    font-size: 32px;
    margin-bottom: 20px;
}

.leader-text p {
    line-height: 1.6;
    color: #444;
}

.leader-logo {
    flex: 0 0 200px;
    text-align: center;
}

.leader-logo img {
    max-width: 180px;
    height: auto;
}

/* Shells of the text pages and lists */
.page-hero {
    background: #fafafa;
    padding: 48px 80px 24px;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.page-body {
    padding: 40px 80px 80px;
}

.breadcrumbs {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

.breadcrumbs a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover,
.breadcrumbs .current {
    color: #000;
}

.empty-note {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.empty-state {
    text-align: center;
    padding: 60px 0;
    color: #666;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 16px;
}

.btn-detail {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    padding-bottom: 4px;
}

.btn-link {
    display: block;
    text-align: center;
    text-decoration: none;
}

/* Cart: the badge on the icon, the button of a tile, the message over the page, the window "Find out the price", the footer form, the bot trap. */
.cart-link {
    position: relative;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #000;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

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

.btn-tile {
    display: block;
    margin-top: 12px;
    padding: 8px 20px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 13px;
    cursor: pointer;
}

.btn-tile:hover {
    background: #333;
}

.shop-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 300;
    max-width: calc(100% - 32px);
    padding: 14px 22px;
    background: #000;
    color: #fff;
    font-size: 14px;
    border-radius: 8px;
}

.shop-toast a {
    color: #fff;
    text-decoration: underline;
}

.shop-toast[hidden] {
    display: none;
}

.trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field-error {
    margin-top: 6px;
    font-size: 13px;
    color: #c00;
}

.field-error[hidden] {
    display: none;
}

.ask-dialog {
    /* The reset of the page takes the automatic margin of a window away: put it back to keep the window in the middle. */
    margin: auto;
    width: min(440px, calc(100% - 32px));
    padding: 28px;
    border: none;
    border-radius: 16px;
}

.ask-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.ask-dialog h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 12px;
}

.ask-dialog p {
    margin-bottom: 16px;
    font-size: 14px;
    color: #555;
}

.ask-dialog .form-group {
    margin-bottom: 16px;
}

.ask-dialog .field-error {
    margin: 6px 0 0;
    font-size: 13px;
    color: #c00;
}

.ask-dialog .field-error[hidden] {
    display: none;
}

.ask-dialog label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.ask-dialog input[type="text"],
.ask-dialog input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.ask-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.ask-submit,
.ask-close {
    padding: 12px 24px;
    border: 1px solid #000;
    border-radius: 40px;
    font-size: 14px;
    cursor: pointer;
}

.ask-submit {
    background: #000;
    color: #fff;
}

.ask-close {
    background: #fff;
    color: #000;
}

.ask-status {
    margin: 12px 0;
}

.footer-subscribe .subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-subscribe input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-family: inherit;
}

.footer-subscribe button {
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.subscribe-note,
.subscribe-status {
    margin-top: 10px;
    font-size: 12px;
    color: #555;
}

/* The contacts under the footer links: filled lines in a row, or one line "Contacts are being specified". */
.footer-contacts {
    background: #f9f9f9;
    padding: 30px 80px 40px;
    border-top: 1px solid #eee;
}

.footer-contacts h4,
.footer-contacts .footer-title {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-contacts__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 40px;
    list-style: none;
}

.footer-contacts__item,
.footer-contacts__empty {
    font-size: 14px;
    line-height: 2;
    color: #555;
}

.footer-contacts__label {
    margin-right: 8px;
    color: #888;
}

.footer-contacts a {
    color: #555;
    text-decoration: none;
}

.footer-contacts a:hover {
    color: #000;
}

/* The banner of the consent to cookies: at the bottom of the screen, over the page, until the visitor chooses. */
.consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 80px;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.consent[hidden] {
    display: none;
}

.consent__text {
    max-width: 760px;
}

.consent__text a {
    color: #000;
    text-decoration: underline;
}

.consent__actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.consent__button {
    padding: 12px 20px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.consent__button--accept {
    background: #000;
    color: #fff;
}

@media (max-width: 1024px) {
    .footer-contacts {
        padding-left: 30px;
        padding-right: 30px;
    }

    .consent {
        padding: 16px 30px;
    }
}

@media (max-width: 768px) {
    .footer-contacts {
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-contacts__list {
        flex-direction: column;
    }

    .consent {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .consent__actions {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 0 30px;
    }

    .header-right nav,
    .header-right .icons {
        display: none;
    }

    .burger-panel {
        padding: 20px 30px;
    }

    .burger-two-columns {
        gap: 40px;
    }

    .burger-right-col .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        grid-template-columns: repeat(2, 1fr);
        padding: 50px 30px;
    }

    .footer-bottom {
        padding: 20px 30px;
    }

    .section {
        padding: 60px 30px;
    }

    .leader-block {
        flex-direction: column;
        text-align: center;
    }

    .page-hero {
        padding: 40px 40px 20px;
    }

    .page-body {
        padding: 30px 40px 60px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 15px;
    }

    .header-left {
        gap: 16px;
    }

    .burger-panel {
        height: auto;
        max-height: 90vh;
        padding: 16px;
    }

    .burger-two-columns {
        display: block;
    }

    .burger-left-col {
        width: 100%;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #ddd;
    }

    .burger-right-col .burger-title {
        margin-bottom: 16px;
        font-size: 18px;
    }

    .burger-right-col .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px 16px;
    }

    .category-item {
        font-size: 11px;
        gap: 8px;
    }

    .category-item img {
        width: 54px;
        height: 54px;
    }

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

    footer > div:not(.accordion):not(.footer-subscribe) {
        display: none;
    }

    .accordion.mobile {
        display: block;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }

    .footer-bottom a {
        margin: 0 10px;
    }

    .section {
        padding: 40px 16px;
    }

    .leader-block {
        gap: 24px;
        padding: 30px 0;
    }

    .page-hero {
        padding: 24px 15px;
    }

    .page-hero h1 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .page-body {
        padding: 24px 15px 40px;
    }
}

/* The tiles of products and sections (was catalog.css until stage 23, wave 23.7): every page of the catalog needs them, and one file
   less blocks the first paint. */

/*
 * Catalog pages: the hero with the path and the heading, the container of the tiles and of the product grid.
 * From catalog/catalog.css of the old site; the filter panel and the product cards come with the products.
 */

.category-hero {
    padding: 48px 80px 24px;
}

.category-hero h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.category-hero .breadcrumbs {
    padding: 0;
}

.catalog-container {
    padding: 24px 80px 80px;
}

/* The product grid and its tiles, from catalog/catalog.css of the old site. */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 30px;
}

.product-count {
    font-size: 14px;
    color: #666;
}

/*
 * The filter panel, from the filter styles of catalog/catalog.css of the old site. It is a <details>: the button is its
 * summary, the panel opens under the toolbar over the grid, and everything works without a script.
 */
.catalog-toolbar {
    position: relative;
}

.filter-box > summary {
    list-style: none;
}

.filter-box > summary::-webkit-details-marker {
    display: none;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 24px;
    border: 1px solid #ddd;
    border-radius: 40px;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.14s;
}

.filter-btn:hover,
.filter-box[open] > .filter-btn {
    border-color: #000;
}

.filter-btn:focus-visible,
.apply-filters:focus-visible,
.filter-reset:focus-visible,
.price-range input:focus-visible,
.filter-options input:focus-visible,
.sort-radio-group input:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.filter-overlay {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px 60px;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.filter-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.filter-header h2 {
    font-size: 24px;
    font-weight: 500;
}

.filter-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 60px;
}

.filter-group-title {
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 2px solid #000;
    font-size: 18px;
    font-weight: 500;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-options label,
.sort-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 16px;
    cursor: pointer;
}

.price-range {
    display: flex;
    gap: 16px;
}

.price-range input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 16px;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
}

.sort-group {
    grid-column: span 2;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.sort-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.filter-reset {
    color: #666;
    font-size: 14px;
}

.apply-filters {
    min-width: 200px;
    min-height: 44px;
    padding: 14px 30px;
    border: none;
    border-radius: 0;
    background: #000;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.empty-state .empty-hint {
    margin: 8px 0 24px;
    color: #666;
    font-size: 14px;
}

.section-text {
    max-width: 760px;
    margin: 48px 0 0;
    color: #444;
    font-size: 16px;
    line-height: 1.6;
}

.section-text p {
    margin: 0 0 16px;
}

@media (max-width: 1024px) {
    .filter-overlay {
        padding: 20px 30px;
    }
}

@media (max-width: 768px) {
    .filter-overlay {
        position: static;
        flex: 1 1 100%;
        margin-top: 8px;
        padding: 20px;
    }

    .filter-box {
        flex: 1 1 100%;
    }

    .filter-two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sort-group {
        grid-column: span 1;
    }

    .filter-actions {
        justify-content: space-between;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(171px, 274px));
    gap: 40px;
}

.product-card {
    background: #f9f9f9;
    padding: 24px 20px;
    transition: box-shadow 0.2s;
    border-radius: 6px;
}

.product-card .main-img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: #fff;
    margin-bottom: 16px;
    border-radius: 8px;
}

.product-card .product-title {
    font-size: 18px;
    font-weight: 500;
    margin: 12px 0 4px;
}

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

.product-card .product-sku {
    font-size: 12px;
    color: #777;
}

/* "Series · size" under the name (wave 13.11): the same small grey text as the article; a long line wraps inside the tile. */
.product-card .product-facts {
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}

/* "N finishes" under the article of a model that comes in several finishes (wave 13.6): the same small grey text as the article. */
.product-card .product-finishes {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.product-card .product-price {
    font-weight: 600;
    margin: 12px 0;
    font-size: 20px;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.pager a,
.pager .current {
    min-width: 40px;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 40px;
    text-align: center;
    font-size: 14px;
    color: #000;
    text-decoration: none;
}

.pager a:hover {
    border-color: #000;
}

.pager .current {
    background: #000;
    border-color: #000;
    color: #fff;
}

.pager .gap {
    color: #888;
}

@media (max-width: 1024px) {
    .category-hero {
        padding: 40px 40px 20px;
    }

    .catalog-container {
        padding: 20px 40px 60px;
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 24px 15px;
    }

    .category-hero h1 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .category-hero .breadcrumbs {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .catalog-container {
        padding: 16px 15px 30px;
    }

    .product-card {
        padding: 16px 12px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(171px, 171px));
    }
}

/* Buying on a phone (stage 23, wave 23.13; PLAN-seo-quality.md, section 3b, У1, У2, У3, У8, У9). The rules stand last so they win over
   the older ones above: the cart with its badge stays in the header on every width, the grid fills the width (two columns on a phone,
   four on a computer), a tile keeps its price and buttons at the bottom, and what a finger presses is 44 px at least. */
.cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.burger {
    min-width: 44px;
    min-height: 44px;
}

@media (max-width: 1024px) {
    .header-right .icons {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header-left {
        flex: 1;
        min-width: 0;
        gap: 8px;
    }

    .header-left .logo {
        width: 80px;
    }

    .search-form {
        min-width: 0;
    }

    /* Below 16 px a phone zooms the page in when a field gets the focus. */
    .search-box,
    .footer-subscribe input[type="email"],
    input,
    select,
    textarea {
        font-size: 16px;
    }
}

.products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

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

    .product-card {
        padding: 10px;
    }

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

    .product-card .product-price {
        font-size: 17px;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card .main-img {
    height: auto;
    aspect-ratio: 274 / 260;
}

.product-card .product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-price {
    margin-top: auto;
    padding-top: 12px;
}

.product-card .btn-detail {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.btn-tile {
    width: 100%;
    min-height: 44px;
}

.btn-tile.in-cart,
.btn-add-to-cart.in-cart {
    background: #2e7d32;
}

/* Accessibility (stage 23, wave 23.8; PLAN-seo-quality.md, М13, К18): a visible focus for the keyboard wherever a rule above took the
   outline away, the link past the header, grey texts dark enough for 4.5:1, links of the footer big enough for a finger. */
:focus-visible {
    outline: 2px solid #000 !important;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1000;
    padding: 12px 18px;
    background: #000;
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    top: 8px;
}

main:focus {
    outline: none;
}

.breadcrumbs,
.breadcrumbs a,
.footer-contacts__label,
.product-info .product-sku,
.search-empty-title,
.search-empty-hint,
.product-card .product-sku,
.product-card .product-facts,
.product-card .product-finishes {
    color: #595959;
}

.footer-bottom a {
    display: inline-block;
    min-height: 24px;
    padding: 4px 0;
}

/* The catalog (stage 23, wave 23.15; PLAN-seo-quality.md, У7): the panel of the filter shrinks to the screen, the sort stands apart next
   to it, the conditions that filter the list are chips that each take one off. */
.filter-box {
    min-width: 0;
    max-width: 100%;
}

.filter-overlay {
    box-sizing: border-box;
    max-width: 100%;
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.sort-form select {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 40px;
    background: #fff;
    font: inherit;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-basis: 100%;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid #000;
    border-radius: 40px;
    color: #000;
    font-size: 14px;
    text-decoration: none;
}

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

.filter-two-columns > *,
.price-range {
    min-width: 0;
}
