/* Block «Магазин з фільтрами» (views/blocks/main/shop.twig). Hand-written CSS: Prepros does not build this file. */
.main-shop { padding: 0 40px; background: #fff; color: #111; font-family: 'Montserrat', sans-serif; }
.main-shop *, .main-shop *::before, .main-shop *::after { box-sizing: border-box; }
.main-shop [hidden] { display: none !important; }
.main-shop .customBlock { max-width: 1440px; margin: 0 auto; padding: 48px 0 64px; }
.main-shop .sfShopTitle { margin: 0 0 28px; font-size: 42px; font-weight: 700; line-height: 1.2; }
.sfShop { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 32px; align-items: start; }

/* sidebar */
.sfShopSidebar { position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow: auto; padding: 20px; border: 1px solid #ececec; border-radius: 20px; background: #fff; scrollbar-width: thin; }
.sfShopSidebarHead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sfShopSidebarHead p { margin: 0; font-size: 18px; font-weight: 700; }
.sfShopReset { padding: 6px 12px; border: 0; border-radius: 20px; background: #f1f0ec; color: #111; font: 600 13px/1.2 'Montserrat', sans-serif; cursor: pointer; }
.sfShopReset:hover { background: #e6e4de; }
.sfShopFilters { margin: 0; }
.sfShopFilters fieldset { margin: 0; padding: 16px 0; border: 0; border-top: 1px solid #f0f0f0; min-width: 0; }
.sfShopFilters fieldset::after { content: ''; display: table; clear: both; }
/* A floated legend leaves the fieldset border instead of sitting on it. */
.sfShopLegend { display: block; float: left; width: 100%; margin: 0 0 10px; padding: 0; color: #111; font-size: 14px; font-weight: 700; }
.sfShopFilters fieldset > :not(legend) { clear: both; }
.sfShopSearchField { display: block; margin: 0 0 16px; }
.sfShopSearchBox { position: relative; display: block; clear: both; }
.sfShopSearchBox svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: #8a8a8a; stroke-width: 2; stroke-linecap: round; }
.sfShopSearch { width: 100%; height: 42px; padding: 0 12px 0 38px; border: 1.5px solid #e4e4e4; border-radius: 12px; background: #fafaf8; font: 500 14px 'Montserrat', sans-serif; color: #111; outline: none; }
.sfShopSearch:focus { border-color: #111; background: #fff; }
.sfShopPriceInputs { display: flex; align-items: center; gap: 8px; }
.sfShopPriceInputs input { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1.5px solid #e4e4e4; border-radius: 10px; font: 600 14px 'Montserrat', sans-serif; text-align: center; color: #111; -moz-appearance: textfield; }
.sfShopPriceInputs input::-webkit-outer-spin-button, .sfShopPriceInputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sfShopPriceInputs input:focus { border-color: #111; outline: none; }
.sfShopPriceInputs span { color: #999; }
.sfShopRange { --thumb: 22px; --from: 0; --to: 1; position: relative; height: 28px; margin-top: 12px; }
.sfShopRangeTrack, .sfShopRangeFill { position: absolute; top: 12px; height: 4px; border-radius: 4px; pointer-events: none; }
.sfShopRangeTrack { left: calc(var(--thumb) / 2); right: calc(var(--thumb) / 2); background: #ececec; }
.sfShopRangeFill { left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--from)); right: calc(var(--thumb) / 2 + (100% - var(--thumb)) * (1 - var(--to))); background: #111; }
.sfShopRange input { position: absolute; z-index: 1; inset: 0; width: 100%; height: 28px; margin: 0; padding: 0; background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none; }
.sfShopRange input::-webkit-slider-runnable-track { height: 28px; background: transparent; border: 0; }
.sfShopRange input::-webkit-slider-thumb { -webkit-appearance: none; box-sizing: border-box; width: var(--thumb); height: var(--thumb); margin-top: 3px; border: 3px solid #fff; border-radius: 50%; background: #111; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); cursor: pointer; pointer-events: auto; }
.sfShopRange input::-moz-range-thumb { box-sizing: border-box; width: var(--thumb); height: var(--thumb); border: 3px solid #fff; border-radius: 50%; background: #111; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); cursor: pointer; pointer-events: auto; }
.sfShopRange input::-moz-range-track { background: transparent; }
.sfShopOption { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 0; cursor: pointer; font-size: 14px; }
.sfShopOption input { position: absolute; opacity: 0; pointer-events: none; }
.sfShopCheck { flex: none; width: 20px; height: 20px; border: 1.5px solid #cfcfcf; border-radius: 6px; background: #fff; transition: background .15s, border-color .15s; }
.sfShopOption input:checked + .sfShopCheck { border-color: #111; background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.sfShopOption input:focus-visible + .sfShopCheck { outline: 2px solid #111; outline-offset: 2px; }
.sfShopOption input:disabled ~ span { opacity: .4; }
.sfShopOption:has(input:disabled) { cursor: default; }
.sfShopOptionLabel { flex: 1; min-width: 0; }
.sfShopFacetCount { color: #8a8a8a; font-size: 12px; }

/* toolbar */
.sfShopResults { min-width: 0; }
.sfShopToolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.sfShopFound { margin: 0 auto 0 0; color: #555; font-size: 14px; }
.sfShopFound b { color: #111; }
.sfShopSortLabel { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #555; font-size: 14px; }
.sfShopSort { height: 40px; padding: 0 36px 0 14px; border: 1.5px solid #e4e4e4; border-radius: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; font: 600 14px 'Montserrat', sans-serif; color: #111; -webkit-appearance: none; appearance: none; cursor: pointer; }
.sfShopSort:focus { border-color: #111; outline: none; }
/* The sort on select2 (assets/js/shop.js): the same pill; the list opens under it, inside .sfShopSortLabel. */
.sfShopSortLabel { position: relative; }
.sfShopSortLabel .select2-container { min-width: 0; }
.sfShopSortLabel .select2-container .select2-selection--single { height: 40px; border: 1.5px solid #e4e4e4; border-radius: 40px !important; background: #fff; transition: border-color .2s; }
/* select2 squares the corners next to an attached list; this list floats apart, so the pill stays whole. */
.sfShopSortLabel .select2-container--open.select2-container--below .select2-selection--single,
.sfShopSortLabel .select2-container--open.select2-container--above .select2-selection--single { border-radius: 40px !important; }
.sfShopSortLabel .select2-container--open .select2-selection--single,
.sfShopSortLabel .select2-container--focus .select2-selection--single,
.sfShopSortLabel .select2-selection--single:hover { border-color: #111; }
.sfShopSortLabel .select2-selection--single .select2-selection__rendered { display: flex; align-items: center; height: 100%; padding: 0 38px 0 16px; font: 600 14px 'Montserrat', sans-serif; color: #111; line-height: 1; white-space: nowrap; }
.sfShopSortLabel .select2-selection--single .select2-selection__arrow { top: 0; right: 12px; width: 16px; height: 100%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s; }
.sfShopSortLabel .select2-selection--single .select2-selection__arrow b { display: none; }
.sfShopSortLabel .select2-container--open .select2-selection__arrow { transform: rotate(180deg); }
.sfShopSortLabel .select2-dropdown { min-width: 220px; margin-top: 6px; padding: 6px; border: 1.5px solid #111 !important; border-radius: 16px !important; background: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.12); overflow: hidden; z-index: 30; }
.sfShopSortLabel .select2-dropdown--above { margin-top: -6px; }
.sfShopSortLabel .select2-results > .select2-results__options { max-height: none; }
.sfShopSortLabel .select2-results__option { padding: 10px 14px; border-radius: 10px; font: 500 14px 'Montserrat', sans-serif; color: #111; white-space: nowrap; }
.sfShopSortLabel .select2-results__option--highlighted[aria-selected],
.sfShopSortLabel .select2-results__option--highlighted { background: #f3f3f3 !important; color: #111 !important; }
.sfShopSortLabel .select2-results__option[aria-selected="true"],
.sfShopSortLabel .select2-results__option--selected { background: linear-gradient(128deg, rgba(251,178,222,.45), rgba(255,242,135,.45)); font-weight: 700; }
.sfShopFiltersOpen { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1.5px solid #e4e4e4; border-radius: 40px; background: #fff; font: 600 14px 'Montserrat', sans-serif; color: #111; cursor: pointer; }
.sfShopFiltersOpen svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sfShopFiltersBadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #111; color: #fff; font-size: 11px; }
.sfShopChips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sfShopChip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border: 0; border-radius: 20px; background: #f1f0ec; color: #111; font: 600 13px/1.2 'Montserrat', sans-serif; cursor: pointer; }
.sfShopChip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sfShopChip:hover { background: #e6e4de; }

/* grid */
.sfShopGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (min-width: 1360px) { .sfShopGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sfShopCell { display: flex; min-width: 0; }
.sfShopEmpty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 20px; border: 1px dashed #dcdcdc; border-radius: 20px; text-align: center; color: #555; }
.sfShopEmpty p { margin: 0; }
.sfShopEmpty .sfShopReset { display: inline-block !important; padding: 10px 18px; }
.sfShopMoreWrap { display: flex; justify-content: center; margin-top: 28px; }
.sfShopMore { min-height: 48px; min-width: 240px; padding: 12px 28px; border: 0; border-radius: 40px; background: linear-gradient(128deg, #fbb2de 0%, #fff287 100%); color: #111; font: 700 15px 'Montserrat', sans-serif; cursor: pointer; transition: opacity .15s; }
.sfShopMore:hover { opacity: .88; }

/* phone dialog */
.sfShopDialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; }
.sfShopDialog[open] { display: flex; flex-direction: column; animation: sf-shop-in .22s ease-out; }
.sfShopDialog::backdrop { background: rgba(0, 0, 0, .35); }
.sfShopDialogHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 20px 14px; border-bottom: 1px solid #ececec; }
.sfShopDialogHead p { margin: 0; font-size: 18px; font-weight: 700; }
.sfShopDialogHead span { color: #777; font-size: 14px; font-weight: 500; }
.sfShopDialogClose { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #ececec; border-radius: 50%; background: #fff; cursor: pointer; }
.sfShopDialogClose svg { width: 20px; height: 20px; fill: none; stroke: #111; stroke-width: 2; stroke-linecap: round; }
.sfShopDialogBody { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.sfShopDialogBody .sfShopOption { min-height: 44px; }
.sfShopDialogFoot { display: flex; gap: 10px; padding: 12px 20px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid #ececec; }
.sfShopDialogFoot .sfShopReset { min-height: 48px; padding: 0 18px; }
.sfShopApply { flex: 1; min-height: 48px; border: 0; border-radius: 40px; background: #111; color: #fff; font: 700 15px 'Montserrat', sans-serif; cursor: pointer; }
html.sfShopLocked { overflow: hidden; }
@keyframes sf-shop-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 1200px) {
    .sfShop { grid-template-columns: 236px minmax(0, 1fr); gap: 22px; }
    .sfShopGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 1024px) {
    .main-shop { padding: 0 20px; }
    .main-shop .customBlock { padding: 28px 0 44px; }
    .main-shop .sfShopTitle { font-size: 28px; margin-bottom: 18px; }
    .sfShop { display: block; }
    .sfShopSidebar { display: none; }
    .sfShopFiltersOpen { display: inline-flex; }
    .sfShopToolbar { display: grid; grid-template-columns: auto minmax(0, 1fr); }
    .sfShopFound { grid-column: 1 / -1; grid-row: 2; margin: 0; }
    .sfShopSortLabel { justify-self: end; }
    .sfShopSortLabel > span:first-child { display: none; }
    .sfShopSort, .sfShopSortLabel .select2-container { max-width: 100%; }
}
@media (max-width: 540px) {
    .sfShopGrid { gap: 10px; }
    .sfShopMore { width: 100%; min-width: 0; }
    .sfShopSort { padding-left: 12px; font-size: 13px; }
    .sfShopSortLabel .select2-selection--single .select2-selection__rendered { padding-left: 12px; font-size: 13px; }
    .sfShopSortLabel .select2-dropdown { left: auto !important; right: 0; }
}
@media (prefers-reduced-motion: reduce) { .sfShopDialog[open] { animation: none; } }

/* Catalog category page (views/taxonomy-catalog_categories.php.twig). */
.sfCrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; color: #777; font-size: 14px; }
.sfCrumbs a { color: #111; text-decoration: none; }
.sfCrumbs a:hover { text-decoration: underline; }
.main-shop h1.sfShopTitle { margin-bottom: 12px; }
.sfShopIntro { max-width: 820px; margin: 0 0 28px; color: #444; font-size: 15px; line-height: 1.6; }
