/* Category listing (V2). Builds on home.css tokens and division.css (breadcrumb, intro, quote, help). */
.gc { background: #fff; }
.gc-intro { background: linear-gradient(180deg, #fff 0%, var(--gx-surface) 100%); border-bottom: 1px solid var(--gx-line); }
.gc-intro__copy { max-width: 690px; font-size: 17px; line-height: 1.65; color: var(--gx-ink-2); }
.gc-intro__copy p { margin-bottom: 8px !important; }
.gc-more { border: 0; background: none; padding: 0; color: var(--gx-blue); font-weight: 600; }
.gc-more:hover { text-decoration: underline; }

.gc-catalogue { padding: 40px 0 88px; }
.gc-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }

/* sidebar */
.gc-side { display: flex; flex-direction: column; gap: 16px; }
.gc-box { border: 1px solid var(--gx-line); border-radius: var(--gx-radius); background: #fff; overflow: hidden; }
.gc-box__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--gx-line); }
.gc-box__head h2 { font-family: var(--gx-body) !important; font-size: 15px; font-weight: 600; letter-spacing: 0 !important; }
.gc-box__head h2 a:hover { color: var(--gx-blue) !important; }
.gc-clear { font-size: 13px; font-weight: 600; color: var(--gx-blue) !important; }
.gc-types, .gc-siblings { list-style: none; margin: 0; padding: 8px; }
.gc-type { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 14px; color: var(--gx-ink-2) !important; }
.gc-type:hover { background: var(--gx-sky-50); }
.gc-type__name { flex: 1; min-width: 0; }
.gc-type small, .gc-siblings small { color: var(--gx-muted); font-size: 12.5px; }
.gc-check { flex: none; width: 17px; height: 17px; border: 1.5px solid var(--gx-line-2); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.gc-check i { font-size: 13px; color: #fff; opacity: 0; }
.gc-type:hover .gc-check { border-color: var(--gx-blue); }
.gc-type.is-active { background: var(--gx-sky-50); color: var(--gx-ink) !important; font-weight: 600; }
.gc-type.is-active .gc-check { background: var(--gx-blue); border-color: var(--gx-blue); }
.gc-type.is-active .gc-check i { opacity: 1; }
.gc-siblings a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.4; color: var(--gx-ink-2) !important; }
.gc-siblings a:hover { background: var(--gx-sky-50); color: var(--gx-blue) !important; }
.gc-siblings a.is-current { background: var(--gx-sky-50); color: var(--gx-blue) !important; font-weight: 600; }
.gc-all { display: inline-flex; margin: 0 18px 16px; font-size: 13.5px; }
.gc-help { margin-top: 0; border-radius: var(--gx-radius); }

/* toolbar */
.gc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--gx-line); }
.gc-count { font-size: 15px; color: var(--gx-ink-2); }
.gc-count strong { color: var(--gx-ink); }
.gc-toolbar__actions { display: flex; align-items: center; gap: 10px; }
.gc-sort { position: relative; display: flex; align-items: center; height: 40px; border: 1px solid var(--gx-line-2); border-radius: 9px; padding: 0 34px 0 14px; background: #fff; font-size: 14px; }
.gc-sort label { margin: 0 6px 0 0; color: var(--gx-muted); font-weight: 400; }
.gc-sort select { height: 38px; line-height: 38px; margin: 0; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--gx-ink); appearance: none; -webkit-appearance: none; padding: 0; cursor: pointer; }
.gc-sort label { line-height: 38px; }
.gc-sort select:focus { outline: none; }
.gc-sort:focus-within { border-color: var(--gx-blue); box-shadow: 0 0 0 3px rgba(0,112,164,.15); }
.gc-sort > i { position: absolute; right: 12px; pointer-events: none; color: var(--gx-muted); }
.gc-view { display: inline-flex; border: 1px solid var(--gx-line-2); border-radius: 9px; overflow: hidden; }
.gc-view button { width: 40px; height: 38px; border: 0; background: #fff; color: var(--gx-ink-2); font-size: 17px; }
.gc-view button + button { border-left: 1px solid var(--gx-line-2); }
.gc-view button.is-active { background: var(--gx-blue-900); color: #fff; }

.gc-filtered { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; font-size: 14px; color: var(--gx-muted); }
.gc-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--gx-sky); border-radius: 999px; background: var(--gx-sky-50); color: var(--gx-ink) !important; font-weight: 600; }
.gc-pill:hover { border-color: var(--gx-blue); }
.gc-filtered .gx-link { font-size: 14px; }

/* products */
.gc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.gx-product__type { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gx-blue); margin-bottom: 6px !important; }
.gc-grid.is-list { grid-template-columns: 1fr; gap: 14px; }
.gc-grid.is-list .gx-product { flex-direction: row; }
.gc-grid.is-list .gx-product__media { width: 220px; flex: none; aspect-ratio: 1; border-bottom: 0; border-right: 1px solid var(--gx-line); }
.gc-grid.is-list .gx-product__body { justify-content: center; }
.gc-grid.is-list .gx-product__title { min-height: 0; }
.gc-grid.is-list .gx-product__actions { margin-top: 0; max-width: 340px; }

.gc-empty { margin-top: 20px; padding: 48px 24px; text-align: center; border: 1px dashed var(--gx-line-2); border-radius: var(--gx-radius); }
.gc-empty > i { font-size: 30px; color: var(--gx-blue); }
.gc-empty h2 { font-size: 19px; margin: 10px 0 6px; }
.gc-empty p { color: var(--gx-muted); margin-bottom: 18px !important; }

.gc-custom { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding: 20px 24px; background: var(--gx-surface); border: 1px solid var(--gx-line); border-radius: var(--gx-radius); }
.gc-custom > i { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--gx-line); color: var(--gx-blue); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.gc-custom div { flex: 1; }
.gc-custom h2 { font-family: var(--gx-body) !important; font-size: 15.5px; font-weight: 600; letter-spacing: 0 !important; }
.gc-custom p { font-size: 14px; color: var(--gx-muted); margin-top: 2px !important; }

/* other types strip (filtered pages) */
.gc-more-types { padding: 72px 0 80px; background: var(--gx-surface); border-top: 1px solid var(--gx-line); }
.gc-more-types__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.gc-more-types__head h2 { font-size: 30px; }
.gc-more-types__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.gc-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gx-line); border-radius: 12px; overflow: hidden; transition: border-color .2s, box-shadow .25s; }
.gc-tile:hover { border-color: var(--gx-blue); box-shadow: 0 10px 26px rgba(13,34,48,.08); }
.gc-tile__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 12px; border-bottom: 1px solid var(--gx-line); }
.gc-tile__media img { width: 100%; height: 100%; object-fit: contain; }
.gc-tile__body { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 40px 14px 12px; }
.gc-tile__body strong { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--gx-ink); }
.gc-tile__body small { font-size: 12px; color: var(--gx-muted); }
.gc-tile__body i { position: absolute; right: 10px; bottom: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--gx-sky-50); color: var(--gx-blue); display: flex; align-items: center; justify-content: center; font-size: 13px; }

@media (max-width: 1180px) {
    .gc-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 28px; }
    .gc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gc-more-types__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .gc-layout { grid-template-columns: 1fr; }
    .gc-box--division, .gc-help { display: none; }
    /* Types become a wrapping row of chips above the results. */
    .gc-types { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
    .gc-type { border: 1px solid var(--gx-line-2); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; }
    .gc-type .gc-check { display: none; }
    .gc-type.is-active { border-color: var(--gx-blue); }
}
@media (max-width: 640px) {
    .gc-toolbar { flex-wrap: wrap; }
    .gc-view { display: none; }
    .gc-grid, .gc-grid.is-list { grid-template-columns: 1fr; }
    .gc-grid.is-list .gx-product { flex-direction: column; }
    .gc-grid.is-list .gx-product__media { width: auto; aspect-ratio: 4 / 3; border-right: 0; border-bottom: 1px solid var(--gx-line); }
    .gc-custom { flex-direction: column; align-items: flex-start; }
    .gc-more-types { padding: 48px 0 56px; }
    .gc-more-types__head { flex-direction: column; align-items: flex-start; }
    .gc-more-types__head h2 { font-size: 24px; }
    .gc-more-types__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
