.gfs-top{margin:0 auto 26px;width:100%;padding:0 16px;box-sizing:border-box;max-width:1440px;color:#252525}.gfs-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.gfs-tile{display:flex;flex-direction:column;text-align:left;border:1px solid #ececec;border-radius:14px;background:#f5f5f6;padding:16px;color:inherit;text-decoration:none!important;transition:border-color .15s,box-shadow .15s}.gfs-tile:hover,.gfs-tile[aria-current=true]{border-color:#cf212b;box-shadow:0 0 0 1px #cf212b}.gfs-tile strong{font-size:16px;line-height:1.3}.gfs-tile small{font-size:12px;color:#686868;margin-top:5px;min-height:32px}.gfs-tile img{width:100%;height:142px;object-fit:contain;mix-blend-mode:multiply;margin:8px 0}.gfs-tile span{font-size:12px;color:#777}.gfs-guide{margin-top:16px;border:1px solid #e8e8e8;border-radius:12px;padding:14px 18px;font-size:13px;line-height:1.5;background:#fff}.gfs-guide p{margin:0 0 10px}.gfs-guide p:last-child{margin:0}.gfs-series{display:flex;gap:12px;flex-wrap:wrap}.gfs-series button{background:#f7f7f7;border:1px solid #e7e7e7;border-radius:8px;padding:10px 14px;text-align:left;cursor:pointer;font:inherit;color:inherit;flex:1;min-width:180px}.gfs-series button:hover{border-color:#cc222c}.gfs-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;border:1px solid #bbb}.gfs-panel{border:1px solid #e5e5e5;border-radius:12px;background:#fff;padding:20px;color:#252525;box-sizing:border-box}.gfs-panel h2{font-size:20px;margin:0 0 18px}.gfs-panel input[type=search],.gfs-panel input[type=number]{box-sizing:border-box;width:100%;min-width:0;padding:10px;border:1px solid #dedede;border-radius:7px;background:#fff;font:inherit}.gfs-price{display:flex;gap:8px;margin:10px 0}.gfs-panel details{border-top:1px solid #eee;padding:14px 0}.gfs-panel summary{font-size:14px;font-weight:600;cursor:pointer;list-style-position:outside;margin-left:14px}.gfs-options{max-height:218px;overflow:auto;margin-top:12px}.gfs-option{display:flex!important;align-items:center;gap:8px;padding:5px 0;font-size:13px;line-height:1.4;cursor:pointer}.gfs-option input{accent-color:#cc222c;width:16px;height:16px;flex:0 0 16px}.gfs-option span{flex:1}.gfs-option small{color:#909090}.gfs-option:has(input:disabled){opacity:.45}.gfs-reset{background:none;border:0;text-decoration:underline;color:#777;cursor:pointer;padding:8px 0;font-size:13px}.gfs-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px}.gfs-toolbar select{padding:9px 12px;border:1px solid #ddd;border-radius:7px;background:white;color:#333}.gfs-chips{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}.gfs-chip{background:#f5f5f5;border:1px solid #e1e1e1;border-radius:20px;padding:6px 11px;font-size:12px;cursor:pointer;color:#333}.gfs-note{font-size:12px;line-height:1.4;margin-top:8px;color:#666}.gfs-note b{color:#333}.gfs-empty{padding:40px 16px;border:1px solid #eee;border-radius:12px;text-align:center;grid-column:1/-1}.gfs-more{display:block;margin:24px auto;padding:12px 32px;border:1px solid #cc222c;border-radius:8px;background:#cc222c;color:white;font-weight:600;cursor:pointer}.gfs-mobile-toggle{display:none}.gfs-ready .widget-type_system_widget_v4_pagination_1,.gfs-ready .gfayt-catalog-more,.gfs-ready .filter,.gfs-ready .catalog__controls{display:none!important}.gfs-native-hide{display:none!important}
 @media(max-width:1000px){.gfs-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.gfs-top{padding:0 12px}.gfs-tile img{height:120px}}@media(max-width:767px){.gfs-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gfs-tile{padding:12px;border-radius:10px}.gfs-tile strong{font-size:14px}.gfs-tile img{height:108px}.gfs-tile small{font-size:11px}.gfs-guide{padding:12px}.gfs-series{gap:6px}.gfs-series button{min-width:100%;padding:8px}.gfs-mobile-toggle{display:block;width:100%;padding:12px;border:1px solid #ddd;border-radius:8px;background:#fff;margin-bottom:12px;font-weight:600}.gfs-panel{display:none;margin-bottom:16px}.gfs-panel.gfs-open{display:block}.gfs-toolbar{font-size:13px}.gfs-toolbar select{max-width:180px}.gfs-top{margin-bottom:18px}}

 .gfs-ready .collection-order-wrapper,.gfs-ready .collection-order{display:none!important}.gfs-tiles{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.gfs-quick{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.gfs-quick a{border:1px solid #ddd;border-radius:8px;padding:10px 16px;color:#333;text-decoration:none}.gfs-quick a[aria-current=true]{border-color:#333;background:#f3f3f3}@media(max-width:767px){.gfs-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}

.gfs-tile-placeholder{width:100%;height:142px;background:linear-gradient(135deg,#ececef,#f8f8f9);border-radius:8px;margin:8px 0;grid-area:photo}.gfs-load-status{font-size:13px;color:#666;padding:8px 0 12px}.gfs-retry{margin-left:8px;border:1px solid #ddd;border-radius:6px;background:#fff;padding:6px 10px;cursor:pointer}@media(max-width:767px){.gfs-tile-placeholder{height:82px}}

/* Compact navigation, aligned with the category content. */
.page_section_top .gfs-top { padding: 0; margin-bottom: 0; }
body.gfs-ready[data-theme-template="collection"] .widget-type_system_widget_v4_catalog_5 .catalog-tools { display: none !important; }
.gfs-chips:empty { display: none; }
.gfs-top .gfs-tiles {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  justify-content: stretch;
  gap: 12px;
}
.gfs-top .gfs-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  grid-template-rows: auto auto 1fr;
  grid-template-areas: "title photo" "desc photo" "count photo";
  column-gap: 14px;
  min-width: 0;
  min-height: 140px;
  box-sizing: border-box;
  padding: 16px;
  border-radius: 12px;
  background: #f5f5f6;
  border: 1px solid #e9e9eb;
  box-shadow: none;
  transition: border-color .15s, background .15s;
}
.gfs-top .gfs-tile:hover,
.gfs-top .gfs-tile[aria-current=true] { border-color: #b9b9bd; background: #eeeef0; box-shadow: none; }
.gfs-top .gfs-tile:focus-visible { outline: 2px solid #252525; outline-offset: 3px; }
.gfs-top .gfs-tile strong {
  grid-area: title;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: break-word;
}
.gfs-top .gfs-tile small {
  grid-area: desc;
  min-height: 0;
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #707074;
}
.gfs-top .gfs-tile small:empty { display: none; }
.gfs-top .gfs-tile img {
  grid-area: photo;
  align-self: center;
  justify-self: center;
  width: 120px;
  height: 96px;
  margin: 0;
  object-fit: contain;
}
.gfs-top .gfs-tile span {
  grid-area: count;
  align-self: end;
  padding-top: 12px;
  font-size: 11px;
  line-height: 1.4;
  color: #7b7b80;
}
.gfs-top .gfs-quick { justify-content: flex-start; gap: 8px; }
.gfs-top .gfs-quick a { font-size: 12px; padding: 8px 12px; }
.gfs-top .gfs-guide { margin-top: 12px; }
@media (max-width: 600px) {
  .gfs-top .gfs-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .gfs-top .gfs-tile {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas: "title" "desc" "photo" "count";
    gap: 0;
    padding: 12px;
    min-height: 186px;
    border-radius: 10px;
  }
  .gfs-top .gfs-tile img { width: 112px; max-width: 100%; height: 82px; margin: 10px 0 0; }
  .gfs-top .gfs-tile strong { font-size: 13px; }
  .gfs-top .gfs-tile span { padding-top: 8px; }
}

/* One category-card composition for every collection and nested level.
   Editorial root catalogue covers and all product/cart controls retain their own styles. */
body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-grid],
.gfs-top .gfs-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 12px !important;
  margin-bottom: 12px;
}
body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-grid] > li { min-width: 0; list-style: none; }
body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-card].gfayt-catalog__card,
.gfs-top .gfs-tile {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr) clamp(88px, 11vw, 144px);
  /* A photo spans all three rows. Keep two complete text lines in each
     intrinsic track instead of allowing its spanning size to collapse desc. */
  grid-template-rows: minmax(39.2px, max-content) minmax(30.8px, max-content) minmax(15.4px, 1fr);
  grid-template-areas: "title photo" "desc photo" "count photo";
  gap: 5px 12px;
  box-sizing: border-box;
  width: 100%;
  height: 160px !important;
  min-height: 160px !important;
  min-width: 0;
  padding: 16px !important;
  overflow: hidden;
  border: 1px solid #e9e9eb;
  border-radius: 12px !important;
  background: #f1f5f8 !important;
  text-align: left;
  color: #242629;
  text-decoration: none;
}
body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-card] .gf-ref-category-copy { display: contents; }
body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-card] .gfayt-catalog__name,
.gfs-top .gfs-tile strong {
  grid-area: title;
  position: static;
  align-self: start;
  min-width: 0;
  margin: 0;
  padding: 0;
  font: 600 14px/1.4 "VI Sans", Arial, sans-serif !important;
  overflow-wrap: anywhere;
}
.gfs-top .gfs-tile small { grid-area: desc; margin: 0; min-height: 30.8px; font-size: 11px; line-height: 1.4; }
body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-card] > .gf-ref-category-image,
body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-card] > picture {
  grid-area: photo;
  display: block;
  position: static !important;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 144px;
  height: 120px !important;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #f1f5f8;
}
body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-card].gfayt-catalog__card img,
.gfs-top .gfs-tile img,
.gfs-top .gfs-tile-placeholder {
  grid-area: photo;
  display: block;
  position: static !important;
  align-self: center;
  justify-self: center;
  width: 100% !important;
  max-width: 144px !important;
  height: 120px !important;
  max-height: 120px !important;
  padding: 0 !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  object-view-box: var(--gfayt-photo-view-box, inset(0%)) !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: darken !important;
  transition: none !important;
}
body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-card] .gfayt-photo-native-clip,
.gfs-top .gfs-tile .gfayt-photo-native-clip { clip-path: var(--gfayt-photo-native-clip, inset(0px)) !important; }
body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-card].gfayt-catalog__card img.gfayt-photo-fallback,
.gfs-top .gfs-tile img.gfayt-photo-fallback {
  transform: var(--gfayt-photo-fallback-transform, none) !important;
  clip-path: var(--gfayt-photo-fallback-clip, inset(0px)) !important;
  transform-origin: center !important;
}
body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-card] .gfayt-catalog__count,
.gfs-top .gfs-tile span {
  grid-area: count;
  position: static;
  align-self: end;
  padding: 0;
  margin: 0;
  font: 400 11px/1.4 "VI Sans", Arial, sans-serif;
  color: #626b75;
}
body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-card]:focus-visible { outline: 2px solid #242629; outline-offset: 2px; }
@media (max-width: 1200px) and (min-width: 901px) {
  body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-grid],
  .gfs-top .gfs-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
  body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-grid],
  .gfs-top .gfs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
}
@media (max-width: 600px) {
  body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-card].gfayt-catalog__card,
  .gfs-top .gfs-tile {
    grid-template-columns: minmax(0, 1fr);
    /* Two subtitle lines occupy the same slot even when another tile has
       one line or no subtitle. Auto maxima keep longer wording intact. */
    grid-template-rows: minmax(38px, auto) minmax(30.8px, auto) 120px minmax(15.4px, auto);
    grid-template-areas: "title" "desc" "photo" "count";
    gap: 8px;
    height: auto !important;
    min-height: 224px !important;
    padding: 12px !important;
  }
  body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-card] > .gf-ref-category-image,
  body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-card] > picture,
  body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-card].gfayt-catalog__card img,
  .gfs-top .gfs-tile img,
  .gfs-top .gfs-tile-placeholder { width: 100% !important; max-width: 100% !important; height: 120px !important; margin: 0 !important; }
  body.gfayt-subcategory-catalog[data-theme-template="collection"] .page_section_top [data-gf-subcategory-card] .gfayt-catalog__name,
  .gfs-top .gfs-tile strong { font-size: 13px !important; }
}

/* The custom controller owns the mobile entry point only after initialization.
   Keep native filters available when the controller is absent or falls back. */
body.gfs-ready[data-theme-template="collection"] .js-show-mobile-filter,
body.gfs-ready[data-theme-template="collection"] .js-filter-trigger { display: none !important; }
