.products-section>.container{max-width:1400px;padding-left:12px;padding-right:12px}
.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-inner{max-width:680px;margin:0 auto}
.products-global-search-panel .filter-search-wrapper{max-width:100%}
.products-search-scope{display:inline-flex;align-items:center;gap:8px;margin-top:8px;padding:7px 10px;border:1px solid #dbe4ef;border-radius:999px;background:#fff;color:#475569;font-size:13px;font-weight:700;line-height:1;cursor:pointer;box-shadow:0 4px 12px rgba(15,23,42,.035);user-select:none}
.products-search-scope input{appearance:none;width:16px;height:16px;margin:0;border:2px solid #cbd5e1;border-radius:5px;background:#fff;box-sizing:border-box;position:relative;flex:0 0 16px}
.products-search-scope input:checked{border-color:#ff6600;background:#ff6600}
.products-search-scope input:checked::after{content:'';position:absolute;left:4px;top:1px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.products-search-scope:hover{border-color:#fed7aa;color:#0f172a;background:#fff7ed}
.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}
.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}
#closeCategoryModal{flex:0 0 auto;width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:30px;line-height:1;border:0;background:#f1f5f9;color:#475569;border-radius:10px;cursor:pointer;padding:0;transition:background .15s,color .15s}
#closeCategoryModal:hover{background:#e2e8f0;color:#0f172a}
.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;display:flex;align-items:center;gap:8px}
.category-modal .main-cat{font-weight:700;padding:10px 8px;border-bottom:1px solid #f1f3f6;color:#111827;display:flex;align-items:center;gap:8px}
.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:9px; 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 }

/* Remove marker (dot) for regular child categories, keep it for root-leaf if needed */
.category-modal .child-cat:not(.root-leaf)::before{display:none}

/* Root categories that are leaves: visually distinct and clickable */
.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 layout helper: keep long labels from pushing the clear button away */
.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__actions .catalog-view-toggle{margin-left:auto}
.catalog-topbar .catalog-view-toggle__btn{min-height:30px;padding:0 9px;font-size:12px;border-radius:7px}
.catalog-currency-control{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:0 8px;border:1px solid #dbe4ef;border-radius:9px;background:#fff;color:#334155;box-shadow:0 4px 12px rgba(15,23,42,.035)}
.catalog-currency-control i{font-size:13px;color:#64748b}
.catalog-currency-select{height:30px;border:0;background:transparent;color:#334155;font-size:13px;font-weight:800;outline:none;cursor:pointer;padding:0 18px 0 0}
.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)}

/* Mobile: make category button touch-friendly but allow clear button inline */
@media (max-width: 600px) {
    .category-filter-control { gap:6px }
    .catalog-heading-row{gap:8px;margin-bottom:10px}
    .products-global-search-inner{max-width:100%}
    .products-search-scope{max-width:100%;font-size:12px;line-height:1.15}
    .products-search-scope span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .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}
    .catalog-currency-control{width:100%;height:38px;justify-content:center}
    .catalog-currency-select{min-width:74px}
    .filter-category-btn { min-height:40px;padding:0 11px; font-size:15px; width:auto; flex:1 1 auto; justify-content:flex-start }
    .filter-category-btn .label { flex:1 1 auto }
    .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 (max-width: 340px) {
    .category-quick-links-grid{grid-template-columns:1fr}
}

/* Category icons */
.category-modal .cat-icon { margin-right:8px; color:#6b7280; width:16px; text-align:center; }
.category-modal-icon{flex:0 0 26px;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;background:#f8fafc;color:#64748b}
.category-modal-icon .cat-icon-img{width:20px;height:20px;border-radius:7px}
.category-modal-icon .cat-icon-svg{width:20px!important;height:20px!important;max-width:20px;max-height:20px}
.category-modal-icon .cat-icon-fa{width:20px;height:20px;font-size:16px;margin-right:0}
.category-modal-icon .cat-icon-text{min-width:20px;min-height:20px;font-size:16px}
.child-cat-label,.main-cat-label{min-width:0}

/* Make category button larger and more tap-friendly on small screens */
@media (max-width: 600px) {
    .filter-category-btn { min-height:40px;padding:0 11px; font-size:15px; border-radius:8px; }
    .filter-category-btn .cat-icon { margin-right:6px; }
}

/* main-show-all button */
.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 spacing: add gap between paragraphs */
.category-description p { margin: 0 0 12px; }

/* Collapsible description styles */
.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 .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 }

/* Lists inside category descriptions: ensure markers and spacing */
.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}
@media(max-width:900px){.landing-faq-grid{grid-template-columns:1fr}}

/* ===== Compact catalog toolbar on mobile (2026-06-16) ===== */
@media (max-width: 600px) {
  .catalog-topbar { padding:6px; gap:6px; }
  .catalog-topbar__left { min-height:0; }
  .catalog-topbar .filter-results-count { font-size:13px; line-height:18px; }
  .catalog-topbar__actions { display:flex; flex-wrap:nowrap; align-items:center; gap:6px; grid-template-columns:none; }
  .catalog-currency-control { width:auto; flex:0 0 auto; height:32px; min-height:32px; padding:0 8px; gap:5px; }
  .catalog-currency-control i { font-size:12px; }
  .catalog-currency-select { height:28px; font-size:12px; min-width:0; padding:0 15px 0 0; font-weight:700; }
  .category-subscribe-btn { flex:1 1 auto; width:auto; height:32px; min-height:32px; font-size:12px; padding:0 10px; gap:6px; }
  .catalog-topbar .catalog-view-toggle { height:32px; flex:0 0 auto; justify-self:auto; padding:2px; }
  .catalog-topbar .catalog-view-toggle__btn { height:28px; min-height:28px; font-size:11px; padding:0 7px; gap:4px; }
}
@media (max-width: 400px) {
  /* very narrow: bell-only to keep currency + notify + view on one line */
  .category-subscribe-btn { flex:0 0 auto; padding:0 11px; }
  .category-subscribe-btn span { display:none; }
}
