/* All products, search results and all categories (V2). Builds on home.css, division.css, category.css (sort select) and journal.css (pagination). */
.gb, .gac { background: #fff; }
.gb-hero, .gac-hero { padding: 36px 0 30px; background: linear-gradient(180deg, #fff, var(--gx-surface)); border-bottom: 1px solid var(--gx-line); }
.gb-hero h1, .gac-hero h1 { font-size: 38px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 10px; overflow-wrap: anywhere; }
.gb-lead { font-size: 16px; line-height: 1.6; color: var(--gx-ink-2); max-width: 640px; margin: 0 0 18px !important; }
.gb-search { display: flex; gap: 8px; max-width: 720px; margin-top: 16px; }
.gb-search__field { position: relative; flex: 1; }
.gb-search__field i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gx-muted); font-size: 18px; }
.gb-search__field input { width: 100%; height: 52px; padding: 0 16px 0 44px; border: 1.5px solid var(--gx-line-2); border-radius: 12px; background: #fff; font-size: 16px; }
.gb-search__field input:focus { outline: none; border-color: var(--gx-blue); box-shadow: 0 0 0 4px rgba(0, 112, 164, .12); }
.gb-search .gx-btn { height: 52px; padding: 0 24px; border-radius: 12px; }
.gb-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0 !important; font-size: 14px; color: var(--gx-muted); }
.gb-cats a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 1px solid var(--gx-sky); border-radius: 999px; background: var(--gx-sky-50); font-weight: 600; color: var(--gx-blue-900) !important; }
.gb-cats small { font-weight: 400; color: var(--gx-muted); }
.gb-body { padding: 32px 0 80px; }
.gb-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
.gb-side { position: sticky; top: 104px; border: 1px solid var(--gx-line); border-radius: 14px; overflow: hidden; background: #fff; }
.gb-side h2 { font-family: var(--gx-body) !important; font-size: 15px; font-weight: 600; letter-spacing: 0 !important; margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--gx-line); }
.gb-side ul { list-style: none; margin: 0; padding: 8px; }
.gb-side ul ul { padding: 2px 0 4px; }
.gb-f { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 14px; color: var(--gx-ink-2) !important; }
.gb-f b { flex: none; width: 16px; height: 16px; border: 1.5px solid var(--gx-line-2); border-radius: 4px; background: #fff center / 11px no-repeat; }
.gb-f small { margin-left: auto; font-size: 12.5px; color: var(--gx-muted); }
.gb-f:hover { background: var(--gx-sky-50); }
.gb-f.is-on { background: var(--gx-sky-50); color: var(--gx-ink) !important; font-weight: 600; }
.gb-f.is-on b { border-color: var(--gx-blue); background-color: var(--gx-blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); }
.gb-f--sub { padding-left: 34px; font-size: 13.5px; }
.gb-tool { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--gx-line); }
.gb-tool p { margin: 0 !important; font-size: 15px; color: var(--gx-ink-2); }
.gb-tool strong { color: var(--gx-ink); }
.gb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gb-cards mark, .gx-product__title mark { background: #fff1c2; color: inherit; padding: 0 1px; border-radius: 2px; }
.gb-empty { padding: 28px; border: 1px dashed var(--gx-line-2); border-radius: 12px; text-align: center; }
.gb-empty a { color: var(--gx-blue) !important; font-weight: 600; }

/* no results */
.gb-none { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.gb-none__box { padding: 32px; border: 1px dashed var(--gx-line-2); border-radius: 16px; text-align: center; }
.gb-none__box > i { font-size: 40px; color: var(--gx-blue); }
.gb-none__box h2 { font-size: 22px; margin: 10px 0 8px; }
.gb-none__box p { color: var(--gx-muted); margin: 0 !important; }
.gb-none__box ul { display: inline-block; margin: 10px 0 20px; padding-left: 18px; text-align: left; list-style: disc; font-size: 14.5px; line-height: 1.7; color: var(--gx-ink-2); }
.gb-none__box li { display: list-item; list-style: disc; }
.gb-none__side { display: flex; flex-direction: column; gap: 14px; }
.gb-ai { padding: 22px; border-radius: 16px; background: var(--gx-blue-900); color: #fff; }
.gb-ai h3 { font-family: var(--gx-display) !important; font-size: 18px; color: #fff; margin: 0 0 6px; }
.gb-ai p { font-size: 14px; color: #c8dbe6; margin: 0 0 14px !important; }
.gb-ai .gx-btn { width: 100%; }
.gb-make { padding: 20px; border: 1px solid var(--gx-line); border-radius: 16px; }
.gb-make h3 { font-family: var(--gx-display) !important; font-size: 17px; margin: 0 0 6px; }
.gb-make p { font-size: 14px; color: var(--gx-muted); margin: 0 0 12px !important; }

/* all categories */
.gac-hero p.gb-lead { margin-bottom: 0 !important; }
.gac-jump { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; }
.gac-jump a { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border: 1px solid var(--gx-line); border-radius: 12px; background: #fff; font-size: 14.5px; font-weight: 600; color: var(--gx-ink) !important; }
.gac-jump a:hover { border-color: var(--gx-blue); }
.gac-jump img { width: 40px; height: 40px; object-fit: contain; border: 1px solid var(--gx-line); border-radius: 8px; }
.gac-jump small { margin-left: 4px; font-weight: 400; color: var(--gx-muted); }
.gac-div { padding: 44px 0 8px; scroll-margin-top: 100px; }
.gac-div__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--gx-ink); }
.gac-div__head h2 { font-size: 26px; margin: 0; }
.gac-div__head span { font-size: 14px; color: var(--gx-muted); }
.gac-div__head a { color: var(--gx-blue) !important; font-weight: 600; }
.gac-tiles { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; }
.gac-tiles li[hidden] { display: none; }
.gac-t { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--gx-line); border-radius: 12px; overflow: hidden; background: #fff; color: var(--gx-ink) !important; transition: border-color .2s, box-shadow .25s; }
.gac-t:hover { border-color: var(--gx-blue); box-shadow: 0 10px 24px rgba(13, 34, 48, .08); }
.gac-t__m { display: flex; align-items: center; justify-content: center; height: 120px; padding: 10px; border-bottom: 1px solid var(--gx-line); }
.gac-t__m img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gac-t__b { padding: 10px 12px 12px; }
.gac-t strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.gac-t small { font-size: 12px; color: var(--gx-muted); }
.gac-none { margin-top: 24px; padding: 24px; border: 1px dashed var(--gx-line-2); border-radius: 12px; text-align: center; }
.gac-none a { color: var(--gx-blue) !important; font-weight: 600; }

@media (max-width: 1180px) { .gac-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) {
    .gb-grid, .gb-none { grid-template-columns: 1fr; }
    .gb-side { position: static; }
    .gb-side ul { display: flex; flex-wrap: wrap; gap: 6px; }
    .gb-side ul ul { width: 100%; }
    .gb-f { border: 1px solid var(--gx-line-2); border-radius: 999px; padding: 6px 12px; }
    .gb-f b { display: none; }
    .gb-f small { margin-left: 6px; }
    .gb-f--sub { padding-left: 12px; }
}
@media (max-width: 640px) {
    .gb-hero h1, .gac-hero h1 { font-size: 28px; }
    .gb-search { flex-direction: column; }
    .gb-search .gx-btn { width: 100%; }
    .gb-tool { flex-wrap: wrap; }
    .gb-cards { grid-template-columns: 1fr; }
    .gac-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gac-jump li { flex: 1 1 100%; }
    .gac-div__head { flex-direction: column; align-items: flex-start; gap: 4px; }
}
