

/* Start:/local/templates/project/components/project/facet.filter/.default/style.css?17915557616872*/
/*
 * local/components/project/facet.filter/templates/.default/style.css
 *
 * Фильтр в стиле карточек сайта: белая панель с мягкой тенью, бордовый акцент.
 */

.facet {
    --facet-accent: #4a0f17;     /* заголовки, отмеченные чекбоксы */
    --facet-button: #8b5a5f;     /* кнопка «Показать» - как «В корзину» */
    --facet-text: #2b2b2b;
    --facet-muted: #8c8186;
    --facet-line: #efe6e3;
    --facet-control: #c9b6b8;    /* рамки чекбоксов и полей */
    --facet-surface: #fff;
    --facet-radius: 16px;

    position: relative;
    padding: 24px 24px 0;
    background: var(--facet-surface);
    border-radius: var(--facet-radius);
    box-shadow: 0 4px 24px rgba(74, 15, 23, .08);
    color: var(--facet-text);
    font-size: 14px;
    transition: opacity .15s;
}
.facet *, .facet *::before, .facet *::after { box-sizing: border-box; }
.facet.is-loading { opacity: .6; }

/* Шапка */
.facet__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--facet-line);
}
.facet__heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--facet-accent);
}

/* Группа */
.facet__group { border-bottom: 1px solid var(--facet-line); }

.facet__title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    list-style: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    cursor: pointer;
    user-select: none;
}
.facet__title::-webkit-details-marker { display: none; }
.facet__title:hover { color: var(--facet-accent); }
.facet__title-text { flex: 1; min-width: 0; }

/* точка у заголовка, если в группе что-то выбрано - на CSS, обновляется сама */
.facet__group:has(.facet__check:checked) .facet__title-text::after,
.facet__group:has(input[data-range]:not(:placeholder-shown)) .facet__title-text::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    vertical-align: middle;
    border-radius: 50%;
    background: var(--facet-accent);
}

.facet__chevron {
    flex: 0 0 auto;
    color: var(--facet-muted);
    transition: transform .15s;
}
.facet__group[open] > .facet__title .facet__chevron { transform: rotate(180deg); }

.facet__body { padding-bottom: 16px; }

/* Значение */
.facet__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    cursor: pointer;
}
.facet__item.is-empty { cursor: default; }
.facet__item.is-empty .facet__name,
.facet__item.is-empty .facet__count { opacity: .45; }
.facet__item:not(.is-empty):hover .facet__name { color: var(--facet-accent); }

.facet__name { flex: 1; min-width: 0; line-height: 1.35; }
.facet__count { font-size: 12px; color: var(--facet-muted); }

/* Чекбокс */
.facet__check {
    flex: 0 0 auto;
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid var(--facet-control);
    border-radius: 4px;
    background: var(--facet-surface) center / 12px no-repeat;
    cursor: inherit;
    transition: background-color .1s, border-color .1s;
}
.facet__check:checked {
    border-color: var(--facet-accent);
    background-color: var(--facet-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.facet__item:not(.is-empty):hover .facet__check:not(:checked) { border-color: var(--facet-accent); }
.facet__check:focus-visible { outline: 2px solid var(--facet-accent); outline-offset: 2px; }

/* «Показать ещё» */
.facet__more-toggle {
    display: inline-block;
    margin-top: 6px;
    list-style: none;
    font-size: 13px;
    color: var(--facet-button);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.facet__more-toggle::-webkit-details-marker { display: none; }
.facet__more-toggle:hover { color: var(--facet-accent); }
.facet__more-hide,
.facet__more[open] .facet__more-show { display: none; }
.facet__more[open] .facet__more-hide { display: inline; }
/* в открытом виде «Свернуть» уходит под список */
.facet__more[open] { display: flex; flex-direction: column; }
.facet__more[open] > .facet__more-toggle { order: 1; }

/* Диапазон */
.facet__range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.facet__field {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 10px;
    border: 1.5px solid var(--facet-control);
    border-radius: 6px;
    background: var(--facet-surface);
    cursor: text;
}
.facet__field:focus-within { border-color: var(--facet-accent); }
.facet__field-label { font-size: 12px; color: var(--facet-muted); }
.facet__field input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: none;
    font: inherit;
    color: inherit;
    -moz-appearance: textfield;
}
.facet__field input::-webkit-outer-spin-button,
.facet__field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.facet__field input::placeholder { color: var(--facet-muted); opacity: .8; }

/* Низ: прилипает к низу экрана, пока фильтр длиннее окна */
.facet__footer {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 -24px;
    padding: 16px 24px 24px;
    background: var(--facet-surface);
    border-radius: 0 0 var(--facet-radius) var(--facet-radius);
}
.facet__submit {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 4px;
    background: var(--facet-button);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    cursor: pointer;
}
.facet__submit:hover { background: #7a484d; }
.facet__submit:focus-visible { outline: 2px solid var(--facet-accent); outline-offset: 2px; }
.facet__submit:disabled { opacity: .5; cursor: default; }

.facet__reset {
    font-size: 13px;
    color: var(--facet-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.facet__reset:hover { color: var(--facet-accent); }

@media (prefers-reduced-motion: reduce) {
    .facet, .facet__chevron, .facet__check { transition: none; }
}

@media (max-width: 600px) {
    .facet { padding: 16px 16px 0; border-radius: 12px; }
    .facet__footer { margin: 0 -16px; padding: 12px 16px 16px; }
}
/* End */


/* Start:/local/templates/project/components/project/facet.list/.default/style.css?17920558453069*/
/* ==========================================================================
   Карточка товара в списках (.product-card) и сетка списка.
   Шаблон carousel берёт этот же файл: $this->addExternalCss($templateFolder . '/../.default/style.css').
   Бейджи (.badge), кнопки (.btn-accent) и карусель (.carousel) — в шаблоне сайта.
   ========================================================================== */

/* --- Сетка списка ------------------------------------------------------- */
/* TODO: временная сетка - в вёрстке пока нет страницы раздела, заменить по её макету */
.facet-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* --- Карточка товара ---------------------------------------------------- */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: box-shadow .2s;
}

.product-card:hover { box-shadow: var(--shadow-card-hover); }

.product-card__media { display: block; }

.product-card__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 340 / 266;
    object-fit: cover;
}

/* нет фото: держим высоту, чтобы карточки в ряду не прыгали */
.product-card__media--empty {
    aspect-ratio: 340 / 266;
    background: #f2f2f2;
}

.product-card__badges {
    position: absolute;
    top: 14px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-card__body {
    display: grid;
    flex: 1;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto auto;
    column-gap: 12px;
    padding: 14px 13px 18px;
}

.product-card__title {
    grid-column: 1 / -1;
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.product-card__title a { color: inherit; text-decoration: none; }
.product-card__title a:hover { color: var(--accent); }

.product-card__price {
    grid-row: 2;
    grid-column: 1;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
    margin: 0;
}

.product-card__current { font-size: 22px; font-weight: 700; white-space: nowrap; }

.product-card__old {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

/* кнопка project:basket.button (CLASS = product-card__cart) */
.product-card__cart { grid-row: 2; grid-column: 2; align-self: center; }

.product-card__stock {
    grid-row: 3;
    grid-column: 1;
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .product-card { transition: none; }
}
/* End */


/* Start:/local/templates/project/components/project/basket.button/.default/style.css?179154247358*/
.js-buy.js-do--loading { opacity: .6; cursor: progress; }

/* End */
/* /local/templates/project/components/project/facet.filter/.default/style.css?17915557616872 */
/* /local/templates/project/components/project/facet.list/.default/style.css?17920558453069 */
/* /local/templates/project/components/project/basket.button/.default/style.css?179154247358 */
