/* Department browsing shares the owner's existing colors, columns and card sizing. */
.catalog-section .catalog-controls { padding:18px; border:1px solid #e1e2d8; border-radius:var(--corner-radius); background:#fffdf8; margin-bottom:16px; }
.catalog-section .catalog-tools { align-items:flex-end; gap:20px; padding:0; background:transparent; border-radius:0; }
.catalog-section .category-group { flex:1; min-width:0; }
.catalog-section .category-filters { display:flex; flex-wrap:wrap; gap:8px; }
.catalog-section .category-filter { display:grid; grid-template-columns:44px auto auto; gap:8px; align-items:center; min-height:60px; padding:6px 10px 6px 6px; border:1px solid #dadfd4; background:white; color:var(--forest); border-radius:10px; font-size:14px; line-height:1.4; }
.catalog-section .category-filter.active { border-color:var(--forest); background:#edf2e8; box-shadow:inset 0 0 0 1px var(--forest); color:var(--forest); }
.category-filter-picture { display:grid; place-items:center; width:44px; height:44px; border-radius:7px; overflow:hidden; background:#f4f4ed; color:var(--gold); font-size:26px; }
.category-filter-picture img { display:block; width:100%; height:100%; object-fit:contain; }
.category-filter-name { font-weight:600; }
.catalog-section .category-filter .filter-count { border:0; padding:0; color:inherit; opacity:.65; font-size:11px; }
.catalog-section .catalog-secondary { margin:12px 0 0; padding:0; min-height:44px; gap:12px; align-items:flex-end; background:transparent; border-radius:0; }
.catalog-section .catalog-search { min-height:44px; }
.catalog-section .catalog-tools .sort-wrap { flex:0 0 180px; }
#product-grid.catalog-grouped { display:block; }
.catalog-department { border:1px solid #d9ddcf; border-radius:var(--corner-radius); background:#fffdf8; overflow:clip; }
.catalog-department + .catalog-department { margin-top:12px; }
.catalog-department-heading { margin:0; }
.department-toggle { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:76px; padding:16px 20px; gap:16px; background:transparent; border:0; color:var(--forest); font:inherit; text-align:start; cursor:pointer; }
.department-title { display:flex; align-items:baseline; flex-wrap:wrap; gap:12px; font-size:clamp(22px,2vw,28px); line-height:1.5; }
.department-title small { font-size:12px; font-weight:400; color:var(--muted,#6f766b); white-space:nowrap; }
.department-chevron { flex:none; width:30px; height:30px; padding:5px; border:1px solid #d9ddcf; border-radius:50%; stroke:currentColor; stroke-width:2; transition:transform .18s ease; }
.department-toggle[aria-expanded="true"] .department-chevron { transform:rotate(180deg); }
.department-toggle:hover { background:#f1f4e9; }
.department-panel { padding:0 20px 20px; }
.department-panel[hidden] { display:none !important; }
.department-collections { display:flex; flex-wrap:wrap; gap:8px; padding:12px 0 16px; border-top:1px solid #d9ddcf; }
.collection-carousel-controls { display:none; }
.department-collection { min-height:44px; padding:7px 12px; border:1px solid #d9ddcf; border-radius:9px; color:var(--forest); background:white; font:inherit; font-size:14px; cursor:pointer; }
.department-collection span { margin-inline-start:5px; font-size:12px; opacity:.75; }
.department-collection.active { background:var(--forest); color:white; border-color:var(--forest); }
.department-toggle:focus-visible,.department-collection:focus-visible { outline:2px solid var(--forest); outline-offset:-4px; }
.department-browse { display:inline-flex; gap:10px; align-items:center; padding:9px 0; min-height:44px; border:0; background:transparent; color:var(--forest); cursor:pointer; font:inherit; font-size:13px; font-weight:600; white-space:nowrap; }
.department-browse:hover { text-decoration:underline; text-underline-offset:5px; }
.department-browse:focus-visible,.category-filter:focus-visible { outline:2px solid var(--forest); outline-offset:3px; }
@media (max-width:760px) {
  .catalog-section .catalog-controls { padding:10px; gap:10px; }
  .catalog-section .catalog-controls .category-group { grid-column:1/-1; }
  .catalog-section .catalog-controls .category-filters { display:flex; flex-wrap:nowrap; gap:7px; overflow-x:auto; padding:2px 2px 8px; scrollbar-width:thin; scroll-snap-type:x proximity; }
  .catalog-section .category-filter { flex:0 0 88px; width:88px; min-height:104px; grid-template-columns:1fr; justify-items:center; gap:3px; padding:7px 4px; font-size:12px; scroll-snap-align:start; }
  .category-filter-picture { width:50px; height:50px; }
  .category-filter-name { max-width:100%; overflow-wrap:anywhere; }
  .catalog-section .category-filter .filter-count { display:none; }
  .catalog-section .catalog-controls #mobile-category-select { display:none; }
  .catalog-section .catalog-controls { grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-areas:"category category" "collection collection" "search sort"; }
  .catalog-section .catalog-controls:has(.collection-group[hidden]) { grid-template-areas:"category category" "search sort"; }
  .catalog-section .catalog-controls .collection-group { grid-column:1/-1; }
  .catalog-section .catalog-controls .catalog-tools .sort-wrap { width:auto; }
  .department-toggle { min-height:68px; padding:12px; }
  .department-title { font-size:22px; gap:8px; }
  .department-title small { font-size:12px; }
  .department-panel { padding:0 10px 12px; }
  .department-collection-carousel { min-width:0; border-top:1px solid #d9ddcf; }
  .collection-carousel-controls { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:44px; color:var(--forest); font-size:14px; }
  .collection-carousel-navigation { display:flex; align-items:center; gap:2px; }
  .collection-carousel-position { min-width:54px; direction:ltr; text-align:center; white-space:nowrap; font-size:12px; font-variant-numeric:tabular-nums; }
  .collection-carousel-step { display:grid; place-items:center; width:44px; height:44px; padding:10px; border:1px solid #d9ddcf; border-radius:50%; color:var(--forest); background:white; }
  .collection-carousel-step svg { width:18px; height:18px; stroke:currentColor; stroke-width:2; }
  .collection-carousel-step:disabled { opacity:.35; }
  .collection-carousel-step:focus-visible { outline:2px solid var(--forest); outline-offset:-3px; }
  [dir="ltr"] .collection-carousel-step svg { transform:rotate(180deg); }
  .department-collections { flex-wrap:nowrap; gap:6px; min-width:0; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; scrollbar-color:#a6b39f transparent; padding:8px 0 12px; border-top:0; scroll-padding-inline:2px; }
  .department-collection { flex:0 0 auto; max-width:85%; white-space:normal; font-size:14px; line-height:1.5; padding:7px 10px; }
  .department-browse { font-size:11px; gap:5px; }
}
@media (prefers-reduced-motion:reduce) { .department-chevron { transition:none; } }
