.catalog-main { padding-top:24px; padding-bottom:64px; }
.breadcrumbs { display:flex; gap:12px; align-items:center; flex-wrap:wrap; font-size:13px; color:#849086; margin:4px 0 30px; }
.breadcrumbs a { color:#637569; }
.category-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:28px; }
.catalog-eyebrow { font-size:11px; text-transform:uppercase; letter-spacing:.12em; color:#819081; margin:0 0 12px; }
.catalog-main h1 { font-family:effra-cc,Arial,sans-serif; font-size:42px; font-weight:600; line-height:1.1; color:#123d2c; text-transform:none; padding:0; margin:0 0 16px; }
.catalog-main h1::before,.catalog-main h2::before { display:none; }
.category-intro { font-size:16px; line-height:1.6; color:#708075; max-width:680px; margin:0; }
#category-total { white-space:nowrap; font-size:14px; color:#78867b; padding-bottom:6px; }
.category-pills { display:flex; gap:10px; flex-wrap:wrap; padding-bottom:28px; border-bottom:1px solid #e6eae2; margin-bottom:30px; }
.category-pills a { border:1px solid #e0e6dc; border-radius:24px; padding:11px 18px; font-size:14px; color:#46604e; }
.category-pills a[aria-current] { background:#143d2d; color:#fff; border-color:#143d2d; }
.category-pills a:hover { border-color:#4e7058; }
.catalog-layout { display:grid; grid-template-columns:216px minmax(0,1fr); gap:32px; }
.catalog-filters { align-self:start; border:1px solid #e4e9df; border-radius:14px; padding:20px; background:#fafbf7; }
.filter-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.catalog-main h2 { font-size:19px; text-transform:none; font-weight:600; color:#163c2c; margin:0; padding:0; line-height:1.3; }
.filter-heading button { font-size:11px; border:0; padding:4px 0; color:#7a897e; background:none; }
.filter-group { border:0; padding:0; margin:0 0 24px; min-width:0; }
.filter-group legend { font-size:13px; font-weight:600; margin-bottom:12px; color:#254b35; border:0; }
.filter-check { display:flex; gap:9px; align-items:center; font-size:13px; font-weight:400; line-height:1.4; margin:0 0 10px; cursor:pointer; }
.filter-check input { accent-color:#204d35; width:15px; height:15px; margin:0; flex-shrink:0; }
.filter-check small { color:#8d978d; margin-left:auto; }
.price-range { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.price-range label { font-size:11px; font-weight:400; color:#7b887e; }
.price-range input { width:100%; padding:10px 8px; border:1px solid #dfe5d9; border-radius:7px; background:#fff; font-size:13px; color:#254b35; margin-top:5px; }
.catalog-toolbar { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:20px; min-height:40px; }
#results-count { color:#7d897f; font-size:13px; }
.catalog-toolbar label { display:flex; align-items:center; gap:10px; margin:0; font-size:12px; font-weight:400; color:#859086; }
.catalog-toolbar select { padding:10px 28px 10px 12px; border:1px solid #e0e6dc; border-radius:8px; background:#fff; font-family:inherit; font-size:13px; color:#284a35; max-width:190px; }
.filter-mobile-toggle { display:none; }
.catalog-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.catalog-card { position:relative; display:flex; flex-direction:column; border:1px solid #e2e7de; border-radius:14px; padding:16px; background:#fff; min-width:0; transition:border-color .2s,box-shadow .2s; }
.catalog-card:hover { border-color:#b4c6b4; box-shadow:0 6px 24px #153d2c09; }
.catalog-product-photo { height:196px; display:grid; place-items:center; padding:20px 10px 12px; margin-bottom:14px; }
.catalog-product-photo img { max-width:100%; width:auto; height:100%; max-height:174px; object-fit:contain; }
.catalog-badge { position:absolute; top:14px; left:14px; padding:5px 8px; background:#f6eee3; border-radius:5px; font-size:11px; color:#986644; }
.catalog-favorite { position:absolute; top:12px; right:12px; display:grid; place-items:center; width:32px; height:32px; border:0; border-radius:50%; background:#f7f8f3; color:#718471; }
.catalog-favorite[aria-pressed=true] { color:#a05c48; background:#f9eee7; }
.catalog-favorite svg { width:17px; height:17px; }
.catalog-meta { color:#899486; font-size:11px; margin:0 0 9px; }
.catalog-product-name { color:#223d2c; font-size:15px; font-weight:500; line-height:1.45; display:block; margin-bottom:18px; min-height:65px; }
.catalog-product-name:hover { color:#597e57; }
.catalog-price-row { display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; margin-top:auto; margin-bottom:14px; }
.catalog-price { font-size:21px; font-weight:600; color:#143d2b; }
.catalog-old-price { font-size:12px; color:#98a092; text-decoration:line-through; }
.catalog-card-actions { display:flex; gap:8px; align-items:stretch; }
.catalog-quantity { display:flex; align-items:center; border:1px solid #e1e7da; border-radius:8px; }
.catalog-quantity button { width:26px; min-height:42px; border:0; background:none; color:#52704e; font-size:16px; }
.catalog-quantity input { width:25px; border:0; padding:0; text-align:center; background:transparent; font-size:12px; }
.catalog-add { flex:1; border:0; border-radius:8px; background:#f0e6d0; color:#1b402b; font-size:12px; font-weight:600; padding:11px 8px; }
.catalog-add:hover { background:#173f2c; color:#fff; }
#active-filters { display:flex; flex-wrap:wrap; gap:8px; }
#active-filters:not(:empty) { margin-bottom:18px; }
.active-filter { border:0; border-radius:20px; background:#edf3e8; color:#3f613f; font-size:12px; padding:8px 12px; }
#catalog-empty { padding:64px 24px; text-align:center; background:#fafbf7; border-radius:14px; }
#catalog-empty p { color:#7d887b; margin:15px 0; }
#empty-reset { background:#1c4430; color:white; border:0; border-radius:8px; padding:12px 18px; }
.category-guide { display:grid; grid-template-columns:1fr 1.4fr; gap:18px 50px; margin-top:48px; padding:32px; background:#f5f6ee; border-radius:16px; }
.category-guide p { font-size:14px; line-height:1.8; color:#70816e; margin:0; }
.category-guide a { grid-column:2; font-size:14px; color:#2a5335; }
.catalog-toast { position:fixed; bottom:28px; left:50%; transform:translate(-50%,20px); padding:14px 24px; border-radius:10px; background:#153d2b; color:white; font-size:14px; z-index:500; opacity:0; pointer-events:none; transition:.2s; box-shadow:0 4px 24px #0002; }
.catalog-toast.visible { opacity:1; transform:translate(-50%,0); }
.catalog-page :is(button,a,input,select):focus-visible { outline:3px solid #bb9e64; outline-offset:3px; }
.catalog-cart-row { padding:12px 0; border-bottom:1px solid #e6eae1; font-size:13px; }
.catalog-cart-row strong { display:block; margin-bottom:7px; }
.catalog-cart-row button { background:none; border:0; color:#92735a; margin-left:12px; font-size:12px; }
.catalog-cart-total { font-size:17px; padding-top:18px; color:#163e2b; }


@media(max-width:992px) {
 .catalog-main { padding-top:18px !important; }
 .catalog-main h1 { font-size:34px; }
 .catalog-layout { display:block; }
 .catalog-filters { display:none; margin-bottom:20px; }
 .catalog-filters.filters-open { display:block; }
 #filter-fields { display:grid; grid-template-columns:1fr 1fr; gap:0 28px; }
 .filter-mobile-toggle { display:block; padding:10px 14px; border:1px solid #d9e2d2; border-radius:8px; background:#fff; font-size:13px; color:#234c31; }
 .catalog-toolbar { flex-wrap:wrap; }
 .catalog-toolbar label { margin-left:auto; }
 .catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:600px) {
 .breadcrumbs { font-size:11px; gap:8px; margin-bottom:22px; }
 .category-heading { display:block; margin-bottom:20px; }
 .catalog-main h1 { font-size:30px; margin-bottom:12px; }
 .category-intro { font-size:14px; }
 #category-total { display:block; margin-top:12px; font-size:12px; }
 .category-pills { flex-wrap:nowrap; overflow:auto; margin-right:-16px; padding-right:16px; padding-bottom:20px; margin-bottom:18px; }
 .category-pills a { flex-shrink:0; font-size:12px; padding:10px 14px; }
 .catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .catalog-card { padding:12px; border-radius:12px; }
 .catalog-product-photo { height:150px; padding:24px 0 8px; margin-bottom:10px; }
 .catalog-product-photo img { max-height:125px; }
 .catalog-meta { font-size:10px; }
 .catalog-product-name { font-size:13px; min-height:76px; margin-bottom:12px; }
 .catalog-price { font-size:18px; }
 .catalog-price-row { gap:5px; margin-bottom:12px; }
 .catalog-old-price { font-size:10px; }
 .catalog-card-actions { flex-wrap:wrap; }
 .catalog-quantity { width:100%; justify-content:space-between; }
 .catalog-quantity button { width:38px; min-height:36px; }
 .catalog-add { min-height:40px; }
 .catalog-toolbar { gap:10px; }
 .catalog-toolbar label { font-size:0; gap:0; }
 .catalog-toolbar select { font-size:12px; max-width:170px; padding:10px; }
 #results-count { order:3; width:100%; font-size:12px; }
 .category-guide { display:block; padding:24px; }
 .category-guide p { margin:18px 0; }
 .catalog-toast { width:calc(100% - 32px); text-align:center; bottom:18px; }
}

/* === Фильтры сверху + широкая сетка (desktop) === */
.filter-group summary { list-style:none; cursor:pointer; }
.filter-group summary::-webkit-details-marker { display:none; }
.filter-count[hidden] { display:none; }
.filter-count { display:inline-grid; place-items:center; min-width:18px; height:18px; padding:0 5px; margin-left:7px; border-radius:9px; background:#143d2d; color:#fff; font-size:10px; font-weight:600; }
@media(min-width:993px) {
 .catalog-layout { display:block; }
 .catalog-filters { display:flex; align-items:center; gap:10px; padding:0; border:0; background:none; border-radius:0; margin-bottom:16px; }
 .filter-heading { order:2; margin:0 0 0 auto; }
 .filter-heading h2 { display:none; }
 .filter-heading button { font-size:13px; }
 #filter-fields { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
 .filter-group { position:relative; margin:0; }
 .filter-group summary { display:flex; align-items:center; padding:10px 34px 10px 16px; border:1px solid #e0e6dc; border-radius:24px; background:#fff; font-size:13px; font-weight:500; color:#254b35; position:relative; user-select:none; }
 .filter-group summary::after { content:""; position:absolute; right:15px; top:50%; width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-70%) rotate(45deg); transition:transform .15s; }
 .filter-group[open] summary { border-color:#143d2d; }
 .filter-group[open] summary::after { transform:translateY(-30%) rotate(-135deg); }
 .filter-group summary:hover { border-color:#4e7058; }
 .filter-panel { position:absolute; top:calc(100% + 8px); left:0; z-index:40; min-width:240px; max-height:340px; overflow:auto; padding:16px; background:#fff; border:1px solid #e2e7de; border-radius:12px; box-shadow:0 12px 32px #153d2c1a; }
 .filter-panel .filter-check:last-child { margin-bottom:0; }
 .filter-sale { margin:0; padding:10px 16px; border:1px solid #e0e6dc; border-radius:24px; background:#fff; font-weight:500; color:#254b35; }
 .filter-sale:has(input:checked) { border-color:#143d2d; background:#edf3e8; }
 .catalog-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(min-width:1400px) { .catalog-grid { grid-template-columns:repeat(5,minmax(0,1fr)); } }
@media(max-width:1100px) and (min-width:993px) { .catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:992px) {
 .filter-group summary { font-size:13px; font-weight:600; color:#254b35; margin-bottom:12px; }
 .filter-group { margin-bottom:12px; }
}
