.category-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,0.5);display:none;align-items:center;justify-content:center;z-index:1000}
.products-section>.container{max-width:1400px;padding-left:12px;padding-right:12px}
.products-section>.container>.products-grid,.products-section>.container>.products-list{width:100%!important;max-width:1400px!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important;box-sizing:border-box!important}
.products-filter-container{max-width:1400px;padding-left:0;padding-right:0}
.products-filter-form{width:100%;box-sizing:border-box}
.products-global-search-panel{max-width:1400px;padding-left:0;padding-right:0}
.products-global-search-panel .filter-search-wrapper{max-width:680px}
.products-filter-section{padding:8px 0 10px}
.products-filter-form{padding:12px;border-radius:12px;box-shadow:0 6px 18px rgba(15,23,42,.055),0 1px 4px rgba(15,23,42,.035)}
.products-filter-form::before{height:1px;border-radius:12px 12px 0 0}
.products-filter-form .filter-options-row{grid-template-columns:minmax(210px,1.05fr) minmax(360px,1.35fr) minmax(235px,.98fr) minmax(160px,.7fr) minmax(190px,.82fr) auto;gap:10px;align-items:end;margin-bottom:0}
.products-filter-form .filter-item-group{gap:5px;min-width:0}
.products-filter-form .filter-item-label{font-size:10px;line-height:12px;margin-bottom:0}
.products-filter-form .category-filter-control{max-width:none}
.products-filter-form .filter-category-btn,.products-filter-form .filter-dropdown-select,.products-filter-form .filter-price-field{height:40px;min-height:40px;border-radius:10px}
.products-filter-form .filter-dropdown-select,.products-filter-form .filter-price-field{font-size:14px;padding-top:0;padding-bottom:0}
.products-filter-form .filter-checkboxes{gap:5px}
.products-filter-form .filter-condition-group .filter-checkbox-item{min-height:30px;padding-top:5px;padding-bottom:5px}
.products-filter-form .filter-price-range{gap:7px}
.products-filter-form .filter-actions-row{align-self:end;justify-content:flex-start;gap:8px;margin:0;flex-wrap:nowrap}
.products-filter-form .filter-submit-btn,.products-filter-form .filter-reset-btn{height:40px;min-height:40px;padding:0 15px;border-radius:10px;font-size:14px;white-space:nowrap}
.products-filter-form .filter-reset-btn span{display:none}
.products-filter-form .filter-reset-btn{width:40px;padding:0;justify-content:center}
.products-filter-form .filter-reset-btn i{margin:0}
.category-modal{background:#fff;border-radius:10px;max-width:720px;width:95%;max-height:80vh;overflow:auto;padding:14px;box-shadow:0 10px 30px rgba(2,6,23,0.15)}
.category-modal .modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.category-modal-search-wrap{position:relative;margin-bottom:12px}
.category-modal .search{width:100%;padding:10px 12px;border:1px solid #e6e9ef;border-radius:10px;background:#fbfcfd;box-shadow:inset 0 1px 2px rgba(16,24,40,0.02);margin-bottom:0}
.category-modal .category-list{margin-top:14px;padding-bottom:8px}
.category-modal .main-cat{font-weight:700;padding:10px 8px;border-bottom:1px solid #f1f3f6;color:#111827}
.category-modal .main-cat .main-show-all-inline{display:none}
.filter-category-btn{display:inline-flex;align-items:center;gap:7px;min-width:0;min-height:42px;padding:0 12px;border:1px solid #dbe4ef;background:linear-gradient(180deg,#ffffff,#fbfdff);border-radius:10px;cursor:pointer;font-weight:600;color:#0f172a;max-width:100%;overflow:hidden}
.filter-category-btn .label{display:inline-block;min-width:0}
.filter-category-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.filter-category-btn .cat-icon,.filter-category-btn .filter-category-caret,.filter-category-btn .caret{flex:0 0 auto;color:#6b7280}
.filter-category-btn .caret,.filter-category-btn .filter-category-caret{margin-left:4px;font-size:12px}
.filter-clear-category{flex:0 0 28px;margin-left:0;padding:0;border:none;background:transparent;cursor:pointer;font-size:18px;color:#6b7280;width:28px;height:28px;border-radius:999px;line-height:1}
.filter-clear-category:hover{background:#f1f5f9;color:#334155}
.category-quick-links{margin:16px 0 0;background:#fff;border:1px solid #e5edf6;border-radius:16px;padding:16px;box-shadow:0 10px 28px rgba(15,23,42,0.05)}
.category-quick-links-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px}
.category-quick-links-head span{font-size:15px;font-weight:800;color:#0f172a}
.category-quick-links-head small{font-size:12px;color:#64748b}
.category-quick-links-grid{display:flex;flex-wrap:wrap;gap:8px}
.category-quick-link{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:9px 12px;border:1px solid #dbe4ef;border-radius:999px;background:#f8fafc;color:#0f172a;text-decoration:none;font-size:13px;font-weight:700;line-height:1.2;transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
.category-quick-link:hover{background:#fff7ed;border-color:#fb923c;color:#c2410c;box-shadow:0 8px 18px rgba(234,88,12,0.12);transform:translateY(-1px);text-decoration:none}
.category-quick-link-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.category-quick-link i{flex:0 0 auto;font-size:11px;color:#94a3b8}
.category-quick-link:hover i{color:#ea580c}
.category-quick-link-landing{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.category-quick-link-landing:hover{background:#ecfdf5;border-color:#22c55e;color:#15803d;box-shadow:0 8px 18px rgba(34,197,94,0.14)}
.category-quick-link-landing:hover i{color:#16a34a}
.category-modal .child-cat,.category-modal a.child-cat{padding:8px 12px;cursor:pointer;display:flex;align-items:center;gap:6px;border-radius:6px;margin:2px 0;text-decoration:none;color:inherit}
.category-modal .child-cat:hover,.category-modal a.child-cat:hover{background:transparent;transform:none;text-decoration:underline}
.category-modal .child-cat:not(.root-leaf)::before{display:none}
.category-modal .child-cat.root-leaf{font-weight:700;padding:10px 12px;background:transparent;border-radius:6px}
.category-modal .child-cat.root-leaf::before{background:#10b981}
.category-modal .child-cat.root-leaf:hover::before{background:#059669}
.category-filter-control{display:flex;align-items:center;gap:8px;width:100%;max-width:340px;min-width:0}
.category-filter-control .filter-category-btn{flex:1 1 auto}
.catalog-heading-row{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.catalog-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;max-width:1400px;box-sizing:border-box;margin:0 auto 12px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:12px;background:rgba(255,255,255,.72);box-shadow:0 4px 14px rgba(15,23,42,.035)}
.catalog-topbar__left,.catalog-topbar__actions{display:flex;align-items:center;gap:8px;min-width:0}
.catalog-topbar__left{flex:1 1 auto}
.catalog-topbar__actions{flex:0 0 auto;justify-content:flex-end}
.catalog-topbar .filter-results-count{font-size:15px;line-height:1.2;white-space:nowrap}
.catalog-topbar .filter-clear-link{padding:5px 9px}
.catalog-topbar .catalog-view-toggle{box-shadow:none;border-radius:9px;padding:3px}
.catalog-topbar .catalog-view-toggle__btn{min-height:30px;padding:0 9px;font-size:12px;border-radius:7px}
.category-subscribe-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 11px;border:1px solid #dbe4ef;border-radius:999px;background:#fff;color:#334155;font-size:13px;font-weight:800;line-height:1;cursor:pointer;white-space:nowrap;box-shadow:0 4px 12px rgba(15,23,42,0.04);transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease}
.category-subscribe-btn:hover{background:#fef2f2;border-color:#fecaca;color:#dc2626;transform:translateY(-1px);box-shadow:0 8px 18px rgba(220,38,38,0.10)}
.category-subscribe-btn.is-subscribed{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.category-subscribe-btn.is-subscribed:hover{background:#ecfdf5;border-color:#86efac;color:#166534;box-shadow:0 8px 18px rgba(22,101,52,0.10)}
.category-modal .cat-icon{margin-right:8px;color:#6b7280;width:16px;text-align:center}
.category-modal .main-show-all{background:transparent;border:none;color:#2563eb;font-size:13px;margin-left:8px;cursor:pointer}
.category-modal .main-show-all:hover{text-decoration:underline}
.category-description{margin:12px 0 20px;color:#374151;line-height:1.6;background:#fff;border-radius:8px;padding:16px;box-shadow:0 1px 2px rgba(16,24,40,0.04)}
.category-description p{margin:0 0 12px}
.category-description .desc-preview{overflow:hidden;transition:max-height 320ms ease}
.category-description .desc-collapsed{max-height:160px}
.category-description .desc-fade{position:relative}
.category-description .desc-fade::after{content:'';position:absolute;left:0;right:0;bottom:0;height:48px;background:linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,1));pointer-events:none}
.category-description .desc-toggle{display:inline-block;margin-top:12px;background:transparent;border:1px solid #e6e9ef;padding:8px 12px;border-radius:999px;cursor:pointer;color:#0f172a;font-weight:600}
.category-description .desc-toggle:hover{background:#f8fafc}
.category-description.expanded .desc-fade::after{display:none}
.category-description ul,.category-description ol{margin:0 0 12px 1.25rem;padding-left:1.25rem}
.category-description ul{list-style:disc}
.category-description ol{list-style:decimal}
.category-description li{margin-bottom:6px}
.category-description ul ul{list-style-type:circle}
.landing-faq{margin:18px 0 28px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:18px;box-shadow:0 1px 2px rgba(16,24,40,0.04)}
.landing-faq h2{margin:0 0 14px;font-size:22px;line-height:1.25;color:#111827}
.landing-faq-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.landing-faq-item{border:1px solid #edf0f5;border-radius:8px;padding:14px;background:#fbfcff}
.landing-faq-item h3{margin:0 0 8px;font-size:15px;line-height:1.3;color:#111827}
.landing-faq-item p{margin:0;color:#4b5563;line-height:1.55;font-size:14px}
.filter-price-field.typing{border-color:#3b82f6!important;box-shadow:0 0 0 3px rgba(59,130,246,0.1)!important}
.filter-price-field.typing::after{content:'';position:absolute;right:12px;top:50%;transform:translateY(-50%);width:2px;height:16px;background:#3b82f6;animation:blink 1s infinite}
@keyframes blink{0%,50%{opacity:1}51%,100%{opacity:0}}
.filter-search-icon{transition:transform .3s cubic-bezier(.4,0,.2,1)}
.favorite-btn.animate{animation:favoriteClick .6s cubic-bezier(.4,0,.2,1)}
@keyframes favoriteClick{0%{transform:scale(1)}50%{transform:scale(1.2)}100%{transform:scale(1)}}
.products-filter-form.loading::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);backdrop-filter:blur(2px);z-index:5;border-radius:16px}

@media (max-width:600px){
    .products-section>.container>.products-grid,.products-section>.container>.products-list{padding-left:0!important;padding-right:0!important}
    .category-filter-control{gap:6px}
    .catalog-heading-row{gap:8px;margin-bottom:10px}
    .catalog-topbar{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;width:100%;max-width:100%;box-sizing:border-box;margin:0 0 10px;padding:8px;gap:8px}
    .catalog-topbar__left{display:flex;width:100%;min-height:20px;justify-content:flex-start;gap:7px}
    .catalog-topbar__actions{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto;align-items:center;justify-content:stretch;gap:8px}
    .catalog-topbar .filter-results-count{display:block;min-width:0;font-size:14px;line-height:20px;white-space:normal}
    .catalog-topbar .catalog-view-toggle{width:auto;display:inline-flex;grid-template-columns:none;flex:0 0 auto;justify-self:end;height:38px;align-items:center}
    .catalog-topbar .catalog-view-toggle:only-child{grid-column:2}
    .catalog-topbar .catalog-view-toggle__btn{width:auto;min-height:32px;height:32px;padding:0 8px}
    .filter-category-btn{min-height:40px;padding:0 11px;font-size:15px;width:auto;flex:1 1 auto;justify-content:flex-start;border-radius:8px}
    .filter-category-btn .label{flex:1 1 auto}
    .filter-category-btn .cat-icon{margin-right:6px}
    .filter-clear-category{display:inline-flex;flex:0 0 36px;align-items:center;justify-content:center;padding:0;font-size:24px;margin-left:0;line-height:1;width:36px;height:36px;border-radius:999px;align-self:center}
    .category-subscribe-btn{width:100%;min-width:0;max-width:100%;height:38px;white-space:nowrap;text-align:center;line-height:1;overflow:hidden}
    .category-subscribe-btn span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .category-quick-links{width:100%;box-sizing:border-box;margin:12px 0 0;padding:12px;border-radius:14px}
    .category-quick-links-head{align-items:flex-start;flex-direction:column;gap:1px;margin-bottom:10px;min-height:41px}
    .category-quick-links-head span{font-size:18px;line-height:20px}
    .category-quick-links-head small{font-size:13px;line-height:16px}
    .category-quick-links-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .category-quick-link{justify-content:center;text-align:center;border-radius:12px;padding:8px;min-height:48px;font-size:14px;box-shadow:none;background:#f8fafc}
    .category-quick-link-title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.15}
    .category-quick-link i{display:none}
}

@media (min-width:769px) and (max-width:1279px){
    .products-filter-form .filter-options-row{grid-template-columns:repeat(3,minmax(0,1fr))}
    .products-filter-form .filter-actions-row{grid-column:1/-1}
    .products-filter-form .filter-reset-btn span{display:inline}
    .products-filter-form .filter-reset-btn{width:auto;padding:0 15px}
}

@media (max-width:340px){.category-quick-links-grid{grid-template-columns:1fr}}
@media (max-width:900px){.landing-faq-grid{grid-template-columns:1fr}}
