/*
 * Product listings: department, sub-category, brand, search. Owner: dev.
 * Colours, fonts, radii, shadows and motion come only from main.css :root tokens, so a token restyle
 * reskins this file. Cards (.card) and picture tiles (.tile) are main.css components. Mobile first,
 * one breakpoint at 900px like main.css.
 */

/* Page frame */
.glo-shop { padding-top: 20px; }
.glo-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.glo-crumbs li:not(:last-child)::after { content: "\203A"; margin: 0 8px; color: var(--muted); opacity: .6; }
.glo-crumbs a { color: var(--muted); transition: color var(--fast); }
.glo-crumbs a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.glo-crumbs li:last-child { color: var(--ink); }

.glo-shop__header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 14px 0 20px; }
.glo-shop__title { font: 800 clamp(36px, 4.2vw, 56px)/.95 var(--f-head); color: var(--navy); letter-spacing: .004em; text-wrap: balance; }
.glo-shop__count { font-size: 14px; font-weight: 600; color: var(--muted); }

/* Sub-categories: picture tiles on a department, chips below that */
.glo-subcats { margin-bottom: 32px; }
.glo-subcats__list { list-style: none; margin: 0; padding: 0; }
/* Tiles sit in one scrolling row so the products start near the top (13 tiles on Fishing were 3 rows on desktop and 7 on mobile). */
.glo-subcats--tiles .glo-subcats__list { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
.glo-subcats--tiles .glo-subcats__list > li { flex: 0 0 112px; scroll-snap-align: start; }
.glo-subcats--tiles .tile__name { font-size: 16px; line-height: 1.1; }
.glo-subcats--tiles .tile__count { font-size: 12px; }
.glo-subcats--chips .glo-subcats__list { display: flex; flex-wrap: wrap; gap: 8px; }

.glo-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-4); background: var(--paper); color: var(--ink); font: 600 14px/1.1 var(--f-body); transition: border-color var(--fast), color var(--fast); }
.glo-chip:hover { border-color: var(--blaze); color: var(--navy); }
.glo-chip span[aria-hidden] { font-size: 18px; line-height: 1; color: var(--muted); }

/* Filters + results */
.glo-shop__body { display: block; }
.glo-shop__results { min-width: 0; }

.glo-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.glo-toolbar__filter[hidden], .glo-filter__more[hidden] { display: none; }
.glo-toolbar__filter { min-height: 44px; }
.glo-toolbar__sort { margin-left: auto; }
.glo-toolbar__sort .woocommerce-ordering { display: flex; align-items: center; gap: 8px; margin: 0; float: none; }
.glo-toolbar__sort label { font-size: 14px; font-weight: 600; color: var(--ink); }
.glo-toolbar__sort select { -webkit-appearance: none; appearance: none; min-height: 44px; padding: 0 40px 0 14px; border: 1.5px solid var(--navy); border-radius: var(--r-1); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231f3a2b' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ink); font: 600 14px var(--f-body); cursor: pointer; transition: border-color var(--fast); }
.glo-toolbar__sort select:hover { border-color: var(--navy-2); }
.glo-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; flex: 1 1 100%; order: 3; }
.glo-chips .glo-chip { min-height: 36px; font-size: 13px; }
.glo-chips__clear { font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

.glo-filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.glo-filters__title { font: 800 26px/1 var(--f-head); color: var(--navy); }
.glo-filters__close { display: none; width: 44px; height: 44px; place-items: center; border-radius: var(--r-1); font-size: 28px; line-height: 1; color: var(--ink); }
.glo-filter { border-top: 1px solid var(--line); }
.glo-filter__title { display: flex; align-items: center; gap: 8px; min-height: 52px; cursor: pointer; list-style: none; font: 700 16px/1 var(--f-head); letter-spacing: .05em; text-transform: uppercase; color: var(--navy); }
.glo-filter__title::-webkit-details-marker { display: none; }
.glo-filter__title::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform var(--fast); }
.glo-filter[open] > .glo-filter__title::after { transform: rotate(-135deg) translateY(-2px); }
.glo-filter__badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-4); background: var(--navy); color: var(--paper); font-size: 12px; font-weight: 700; }
.glo-filter__body { border: 0; margin: 0; padding: 0 0 16px; min-width: 0; }
.glo-filter__list { list-style: none; margin: 0; padding: 0; }
.glo-filters[data-glo-fpanel-ready] .glo-filter__list.is-collapsed .is-extra { display: none; }
.glo-check { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 6px; border-radius: var(--r-1); cursor: pointer; font-size: 15px; color: var(--ink); transition: background-color var(--fast); }
.glo-check:hover { background: color-mix(in srgb, var(--navy) 6%, transparent); }
.glo-check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--navy); }
.glo-check__label { flex: 0 1 auto; min-width: 0; }
.glo-check__count { margin-left: auto; min-width: 28px; padding: 1px 7px; border-radius: var(--r-4); background: var(--canvas); font-size: 12px; font-weight: 600; text-align: center; color: var(--muted); }
.glo-filter__more, .glo-filter__all { display: flex; align-items: center; min-height: 40px; font: 600 14px var(--f-body); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.glo-price { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.glo-price__field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.glo-price__field input { width: 100%; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r-1); background: var(--paper); color: var(--ink); font: 500 15px var(--f-body); }
.glo-filters__actions { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.glo-filters__actions .btn { flex: 1; justify-content: center; }
.glo-filters__clear { font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.glo-filters__backdrop { position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--night) 55%, transparent); }
.glo-filters__backdrop[hidden] { display: none; }
body.glo-lock { overflow: hidden; }

/* Under 900px with JS: the filter panel is a drawer from the left. Without JS it sits above the grid. */
@media (max-width: 899px) {
	.glo-filters { margin-bottom: 24px; }
	/* .glo-js (functions.php, inline in <head>) makes it the closed drawer at first paint; [data-glo-fpanel-ready] (shop.js)
	   alone came late, so the panel slid out of the page on every load. The closing transition only runs on a toggle. */
	:is(.glo-js .glo-filters, .glo-filters[data-glo-fpanel-ready]) { position: fixed; inset: 0 auto 0 0; z-index: 91; width: min(360px, 88vw); padding: 16px 20px; overflow-y: auto; background: var(--paper); box-shadow: var(--sh-3); transform: translateX(-105%); visibility: hidden; transition: transform var(--base) var(--ease), visibility 0s linear var(--base); }
	:is(.glo-js .glo-filters, .glo-filters[data-glo-fpanel-ready]).is-open { transform: none; visibility: visible; transition: transform var(--base) var(--ease); }
	:is(.glo-js .glo-filters, .glo-filters[data-glo-fpanel-ready]) .glo-filters__close { display: grid; }
	:is(.glo-js .glo-filters, .glo-filters[data-glo-fpanel-ready]) .glo-filters__actions { position: sticky; bottom: -16px; background: var(--paper); }
}

/* Product grid: main.css .card inside */
.glo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
.glo-shop__empty { padding: 48px 24px; border: 1.5px dashed var(--line); border-radius: var(--r-2); text-align: center; }
.glo-shop__empty p { margin-bottom: 16px; font-size: 17px; color: var(--ink); }

/* Pagination (WooCommerce markup) */
.glo-shop .woocommerce-pagination { margin-top: 48px; text-align: center; }
.glo-shop .woocommerce-pagination ul.page-numbers { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; border: 0; list-style: none; }
.glo-shop .woocommerce-pagination ul.page-numbers li { float: none; border: 0; overflow: visible; }
.glo-shop .woocommerce-pagination .page-numbers a,
.glo-shop .woocommerce-pagination .page-numbers span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: var(--r-1); background: var(--paper); color: var(--ink); font: 600 16px var(--f-head); transition: border-color var(--fast), background-color var(--fast); }
.glo-shop .woocommerce-pagination .page-numbers a:hover { border-color: var(--navy); color: var(--navy); background: var(--canvas); }
.glo-shop .woocommerce-pagination .page-numbers span.current { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.glo-shop .woocommerce-pagination .page-numbers span.dots { border-color: transparent; background: none; }

/* Category description, below the grid */
.glo-shop__seo { max-width: 70ch; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.65; }
.glo-shop__seo h2, .glo-shop__seo h3 { margin: 24px 0 8px; font: 800 26px/1.05 var(--f-head); color: var(--navy); }
.glo-shop__seo p + p { margin-top: 12px; }

@media (min-width: 900px) {
	.glo-shop { padding-top: 28px; }
	.glo-subcats--tiles .glo-subcats__list { gap: 16px; }
	.glo-subcats--tiles .glo-subcats__list > li { flex-basis: 132px; }
	.glo-shop__body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
	.glo-filters { position: sticky; top: calc(var(--glo-head-h) + 16px); max-height: calc(100vh - var(--glo-head-h) - 32px); overflow-y: auto; padding-right: 4px; }
	.glo-filters__backdrop { display: none; }
	.glo-toolbar__filter { display: none; }
	.glo-chips { order: 0; flex: 1 1 auto; }
	.glo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
}
@media (min-width: 1280px) {
	.glo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (forced-colors: active) {
	.glo-toolbar__sort select { -webkit-appearance: auto; appearance: auto; background-image: none; padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	:is(.glo-js .glo-filters, .glo-filters[data-glo-fpanel-ready]), .glo-filter__title::after { transition: none; }
}
.glo-shop__page { white-space: nowrap; } /* "- Page 2" on page 2 on (SF audit, 12 Nov 2026) */
