/**
 * OGI Shop Archive — minimal catalog styling.
 *
 * Goal: clean, legible, mobile-friendly wholesale catalog. Layout + light
 * surface treatment only. Fonts are inherited from the active theme; the few
 * colors used here are scoped, fully-valued, locally-defined variables (NOT a
 * reintroduction of the old global --ogi-* token soup). Orange is reserved for
 * primary actions and active states — links read navy so orange never dominates.
 */

.ogi-catalog-layout,
.ogi-featured-products,
.ogi-shop-categories {
	/* Local, fully-defined palette — derived from theme navy/orange/heading-blue. */
	--ogi-navy: #042f55;
	--ogi-heading: #004e8c;
	--ogi-orange: #f27f2f;
	--ogi-orange-dark: #d96a1d;
	--ogi-ink: #233140;
	--ogi-muted: #61728a;
	--ogi-line: #e4e8ee;
	--ogi-line-strong: #cfd6e0;
	--ogi-surface: #ffffff;
	--ogi-canvas: #f5f7fa;
	--ogi-focus: #1769aa;
	--ogi-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* Shared small uppercase section/meta label. */
.ogi-featured-products-kicker,
.ogi-shop-categories-kicker,
.ogi-catalog-filter-label {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ogi-navy);
}

/* ------------------------------------------------------------------ Layout */
.ogi-catalog-layout {
	display: flex;
	gap: 28px;
	align-items: flex-start;
}

.ogi-catalog-filters {
	flex: 0 0 230px;
	position: sticky;
	top: 16px;
}

.ogi-catalog-main {
	flex: 1 1 auto;
	min-width: 0;
}

/* --------------------------------------------------- Featured (horizontal) */
.ogi-featured-products {
	margin: 0 0 28px;
	padding: 18px 18px 8px;
	background: var(--ogi-canvas);
	border: 1px solid var(--ogi-line);
	border-radius: 10px;
}

.ogi-featured-products-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.ogi-featured-products-controls {
	display: flex;
	gap: 8px;
}

.ogi-featured-products-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid var(--ogi-line-strong);
	border-radius: 6px;
	background: var(--ogi-surface);
	color: var(--ogi-navy);
	font-size: 0.95rem;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.ogi-featured-products-button:hover:not(:disabled) {
	border-color: var(--ogi-navy);
}

.ogi-featured-products-button:disabled {
	opacity: 0.35;
	cursor: default;
}

.ogi-featured-products-track {
	display: flex;
	flex-direction: row;
	gap: 14px;
	overflow-x: auto;
	padding-bottom: 10px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.ogi-featured-product {
	flex: 0 0 158px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	background: var(--ogi-surface);
	border: 1px solid var(--ogi-line);
	border-radius: 8px;
	text-decoration: none;
	scroll-snap-align: start;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ogi-featured-product:hover {
	border-color: var(--ogi-line-strong);
	box-shadow: 0 4px 14px rgba(4, 47, 85, 0.08);
}

.ogi-featured-product-image {
	display: block;
}

.ogi-featured-product-image img {
	display: block;
	width: 100%;
	height: 120px;
	object-fit: contain;
}

.ogi-featured-product-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.ogi-featured-product-name {
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--ogi-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ogi-featured-product-sku {
	font-family: var(--ogi-mono);
	font-size: 0.7rem;
	color: var(--ogi-muted);
}

/* ----------------------------------------------------------- Categories */
.ogi-shop-categories {
	margin: 0 0 24px;
}

.ogi-shop-categories-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.ogi-shop-categories-separator {
	color: var(--ogi-line-strong);
}

.ogi-shop-categories-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.85rem;
}

.ogi-shop-categories-breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 6px;
	color: var(--ogi-line-strong);
}

.ogi-shop-categories-breadcrumbs a {
	color: var(--ogi-heading);
	text-decoration: none;
}

.ogi-shop-categories-breadcrumbs a:hover {
	text-decoration: underline;
}

.ogi-shop-categories-breadcrumbs [aria-current="page"] {
	color: var(--ogi-muted);
}

.ogi-shop-categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.ogi-shop-category-tile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border: 1px solid var(--ogi-line);
	border-radius: 8px;
	background: var(--ogi-surface);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ogi-shop-category-tile:hover {
	border-color: var(--ogi-line-strong);
	box-shadow: 0 4px 14px rgba(4, 47, 85, 0.08);
}

.ogi-shop-category-image img,
.ogi-shop-category-placeholder {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	object-fit: contain;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ogi-shop-category-placeholder {
	border-radius: 50%;
	background: var(--ogi-canvas);
	color: var(--ogi-navy);
	font-weight: 700;
	font-size: 1.1rem;
}

.ogi-shop-category-name {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ogi-ink);
	line-height: 1.2;
}

/* --------------------------------------------------------------- Filters */
.ogi-catalog-filter-group {
	margin-bottom: 22px;
}

.ogi-catalog-filter-label {
	margin: 0 0 10px;
}

.ogi-catalog-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ogi-catalog-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border: 1px solid var(--ogi-line-strong);
	border-radius: 999px;
	background: var(--ogi-surface);
	color: var(--ogi-ink);
	font-size: 0.82rem;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ogi-catalog-chip:hover {
	border-color: var(--ogi-navy);
}

.ogi-catalog-chip.is-active {
	background: var(--ogi-navy);
	border-color: var(--ogi-navy);
	color: #fff;
}

.ogi-catalog-chip.is-removable {
	background: var(--ogi-orange);
	border-color: var(--ogi-orange);
	color: #fff;
}

.ogi-catalog-chip-x {
	font-size: 0.95rem;
	line-height: 1;
}

.ogi-catalog-control {
	display: inline-block;
	margin-top: 10px;
	font-size: 0.8rem;
	color: var(--ogi-heading);
}

.ogi-catalog-cart {
	padding: 14px;
	border: 1px solid var(--ogi-line);
	border-radius: 10px;
	background: var(--ogi-canvas);
}

.ogi-catalog-cart .ogi-catalog-filter-label {
	margin-bottom: 12px;
}

/* Mini cart in the filter column — tidy the theme widget a touch. */
.ogi-catalog-cart .widget_shopping_cart_content {
	font-size: 0.85rem;
}

.ogi-catalog-cart .cart_list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ogi-catalog-cart .woocommerce-mini-cart-item {
	padding-bottom: 12px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--ogi-line);
}

.ogi-catalog-cart .woocommerce-mini-cart__total {
	padding-top: 12px;
	border-top: 1px solid var(--ogi-line-strong);
	text-align: center;
}

.ogi-catalog-cart .woocommerce-mini-cart__buttons {
	display: grid;
	gap: 10px;
}

.ogi-catalog-cart .woocommerce-mini-cart__buttons .button {
	width: 100%;
	margin: 0;
	text-align: center;
}

/* ------------------------------------------------------------------- Bar */
.ogi-catalog-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.ogi-catalog-bar {
	flex-wrap: wrap;
	justify-content: space-between;
}

.ogi-catalog-bar-controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 16px;
}

.ogi-catalog-bar .woocommerce-ordering {
	margin: 0;
}

.ogi-catalog-perpage {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.ogi-catalog-perpage-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ogi-muted);
}

.ogi-catalog-perpage-go {
	padding: 7px 12px;
	border: 1px solid var(--ogi-line-strong);
	border-radius: 6px;
	background: var(--ogi-surface);
	color: var(--ogi-navy);
	font-size: 0.8rem;
	cursor: pointer;
}

.ogi-catalog-bar .woocommerce-ordering select,
.ogi-catalog-perpage-select {
	max-width: 100%;
	padding: 8px 34px 8px 12px;
	border: 1px solid var(--ogi-line-strong);
	border-radius: 6px;
	background-color: var(--ogi-surface);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23042f55' stroke-width='1.5' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	font-size: 0.82rem;
	color: var(--ogi-ink);
	line-height: 1.2;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.ogi-catalog-bar .woocommerce-ordering select:focus,
.ogi-catalog-perpage-select:focus {
	outline: none;
	border-color: var(--ogi-focus);
	box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.12);
}

.ogi-catalog-view-toggle {
	display: inline-flex;
	gap: 0;
	border: 1px solid var(--ogi-line-strong);
	border-radius: 6px;
	overflow: hidden;
}

.ogi-catalog-view-toggle a {
	padding: 7px 16px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ogi-muted);
	text-decoration: none;
	background: var(--ogi-surface);
	transition: background 0.15s ease, color 0.15s ease;
}

.ogi-catalog-view-toggle a:hover {
	background: var(--ogi-canvas);
}

.ogi-catalog-view-toggle a + a {
	border-left: 1px solid var(--ogi-line-strong);
}

/* Active = same treatment as the table header (pale canvas + navy). */
.ogi-catalog-view-toggle a.is-active {
	background: var(--ogi-canvas);
	color: var(--ogi-navy);
}

/* Filter-these-results search box. */
.ogi-catalog-actions {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.ogi-catalog-filter-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 1 min(680px, 68%);
	min-width: 0;
	position: relative;
	padding: 0;
	border: 1px solid var(--ogi-line-strong);
	border-radius: 8px;
	background: var(--ogi-surface);
	padding-left: 12px;
}

.ogi-catalog-filter-bar:focus-within {
	border-color: var(--ogi-focus);
	box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.12);
}

.ogi-catalog-filter-bar-icon {
	flex: 0 0 auto;
	fill: var(--ogi-muted);
}

.ogi-catalog-filter-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 8px;
	border: 0;
	background: transparent;
	font-size: 0.9rem;
}

.ogi-catalog-filter-input:focus {
	outline: none;
	box-shadow: none;
}

.ogi-catalog-filter-count {
	flex: 0 0 auto;
	padding-right: 12px;
	font-family: var(--ogi-mono);
	font-size: 0.75rem;
	color: var(--ogi-muted);
}

.ogi-catalog-no-matches {
	padding: 18px;
	border: 1px dashed var(--ogi-line-strong);
	border-radius: 8px;
	color: var(--ogi-muted);
	font-size: 0.9rem;
}

/* --------------------------------------------------------- Shared buttons */
.ogi-product-table-bulk-button,
.ogi-product-table-add-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border: 1px solid var(--ogi-orange);
	border-radius: 6px;
	background: var(--ogi-orange);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.ogi-product-table-bulk-button:hover,
.ogi-product-table-add-button:hover {
	background: var(--ogi-orange-dark);
	border-color: var(--ogi-orange-dark);
	color: #fff;
}

.ogi-product-table-details-button {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border: 1px solid var(--ogi-line-strong);
	border-radius: 6px;
	background: var(--ogi-surface);
	color: var(--ogi-navy);
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
}

.ogi-product-table-details-button:hover {
	border-color: var(--ogi-navy);
}

.ogi-product-table-toolbar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 14px;
}

/* ----------------------------------------------------------------- Table */
.ogi-product-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--ogi-line);
	border-radius: 10px;
}

.ogi-product-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
	background: var(--ogi-surface);
}

.ogi-product-table thead th {
	padding: 12px 14px;
	border-bottom: 2px solid var(--ogi-line-strong);
	background: var(--ogi-canvas);
	text-align: left;
	vertical-align: middle;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ogi-navy);
	white-space: nowrap;
}

.ogi-product-table tbody td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--ogi-line);
	text-align: left;
	vertical-align: middle;
}

.ogi-product-table tbody tr:last-child td {
	border-bottom: 0;
}

.ogi-product-table tbody tr:hover {
	background: var(--ogi-canvas);
}

.ogi-product-table-image {
	width: 132px;
}

.ogi-product-table-image img {
	display: block;
	width: 104px;
	height: 104px;
	object-fit: contain;
	border: 1px solid var(--ogi-line);
	border-radius: 6px;
	background: #fff;
	cursor: zoom-in;
}

.ogi-product-table-sku {
	font-family: var(--ogi-mono);
	font-size: 0.8rem;
	color: var(--ogi-muted);
	white-space: nowrap;
}

.ogi-product-table-name a {
	color: var(--ogi-heading);
	font-weight: 600;
	text-decoration: none;
}

.ogi-product-table-name a:hover {
	color: var(--ogi-orange);
	text-decoration: underline;
}

.ogi-product-table-price {
	font-weight: 600;
	color: var(--ogi-ink);
	white-space: nowrap;
}

.ogi-product-table-sort-button {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	color: inherit;
	cursor: pointer;
}

.ogi-product-table-sort-icon {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	opacity: 0.35;
}

.ogi-product-table-sort-button[aria-sort="ascending"] .ogi-product-table-sort-icon {
	border-bottom: 5px solid var(--ogi-orange);
	opacity: 1;
}

.ogi-product-table-sort-button[aria-sort="descending"] .ogi-product-table-sort-icon {
	border-top: 5px solid var(--ogi-orange);
	opacity: 1;
}

.ogi-product-table-rule {
	display: block;
	margin-top: 4px;
	font-family: var(--ogi-mono);
	font-size: 0.68rem;
	color: var(--ogi-muted);
}

.ogi-product-table-stock.is-out {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	background: #f1f3f6;
	color: var(--ogi-muted);
	font-size: 0.74rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

/* Buy controls */
.ogi-product-table-buy-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ogi-product-table-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--ogi-line-strong);
	border-radius: 6px;
	overflow: hidden;
	background: var(--ogi-surface);
}

.ogi-product-table-qty-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 34px;
	padding: 0;
	border: 0;
	background: var(--ogi-surface);
	color: var(--ogi-navy);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ogi-product-table-qty-button:hover {
	background: var(--ogi-canvas);
}

.ogi-product-table-qty-input.qty,
.ogi-product-table-qty-input {
	width: 46px;
	height: 34px;
	padding: 0;
	border: 0;
	border-left: 1px solid var(--ogi-line-strong);
	border-right: 1px solid var(--ogi-line-strong);
	border-radius: 0;
	background: var(--ogi-surface);
	text-align: center;
	font-size: 0.85rem;
	-moz-appearance: textfield;
}

.ogi-product-table-qty-input::-webkit-outer-spin-button,
.ogi-product-table-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ogi-product-table-select {
	text-align: center;
}

.ogi-product-table-select input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--ogi-orange);
	cursor: pointer;
}

.ogi-product-table-select-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* ------------------------------------------------------------- Grid view */
.ogi-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.ogi-product-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--ogi-line);
	border-radius: 10px;
	background: var(--ogi-surface);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ogi-product-card:hover {
	border-color: var(--ogi-line-strong);
	box-shadow: 0 4px 14px rgba(4, 47, 85, 0.08);
}

.ogi-product-card-image img {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: contain;
}

.ogi-product-card-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ogi-product-card-meta {
	margin: 0;
	font-family: var(--ogi-mono);
	font-size: 0.72rem;
	color: var(--ogi-muted);
}

.ogi-product-card-body h2 {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.25;
}

.ogi-product-card-body h2 a {
	color: var(--ogi-heading);
	text-decoration: none;
}

.ogi-product-card-body h2 a:hover {
	color: var(--ogi-orange);
}

.ogi-product-card-price {
	font-weight: 600;
	color: var(--ogi-ink);
}

.ogi-product-card-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
}

.ogi-product-card-select {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	color: var(--ogi-muted);
}

/* ------------------------------------------------------------- Lightbox */
.ogi-product-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(4, 17, 33, 0.78);
}

/* The JS toggles the `hidden` attribute to close; an author `display` rule
 * would otherwise beat the UA `[hidden]` style and keep the overlay visible. */
.ogi-product-lightbox[hidden] {
	display: none;
}

body.ogi-product-lightbox-open {
	overflow: hidden;
}

.ogi-product-lightbox-frame {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: min(680px, 92vw);
	max-height: 88vh;
	padding: 16px;
	background: #fff;
	border-radius: 10px;
}

.ogi-product-lightbox-frame img {
	max-width: 100%;
	max-height: 72vh;
	object-fit: contain;
}

.ogi-product-lightbox-title {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ogi-ink);
	text-align: center;
}

.ogi-product-lightbox-close {
	position: absolute;
	top: 18px;
	right: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.ogi-product-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.28);
}

/* ----------------------------------------------------- WooCommerce paging */
.ogi-catalog-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--ogi-line);
}

.ogi-catalog-page-status {
	margin: 0;
	font-family: var(--ogi-mono);
	font-size: 0.78rem;
	color: var(--ogi-muted);
	white-space: nowrap;
}

.ogi-catalog-footer .woocommerce-pagination {
	margin: 0;
}

.ogi-catalog-main .woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.ogi-catalog-main .woocommerce-pagination ul li {
	border: 0;
	margin: 0;
}

.ogi-catalog-main .woocommerce-pagination a,
.ogi-catalog-main .woocommerce-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border: 1px solid var(--ogi-line-strong);
	border-radius: 6px;
	background: var(--ogi-surface);
	color: var(--ogi-navy);
	font-size: 0.82rem;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.ogi-catalog-main .woocommerce-pagination a:hover {
	background: var(--ogi-canvas);
	border-color: var(--ogi-navy);
}

/* Active page = same pale-canvas/navy treatment as the table header. */
.ogi-catalog-main .woocommerce-pagination .current {
	background: var(--ogi-canvas);
	border-color: var(--ogi-line-strong);
	color: var(--ogi-navy);
	font-weight: 700;
}

/* The "…" gap is non-interactive — no box. */
.ogi-catalog-main .woocommerce-pagination .dots {
	border: 0;
	background: transparent;
	color: var(--ogi-muted);
	min-width: 18px;
}

/* --------------------------------------------------------- Responsive */

/* Tablet list view: mirror the legacy catalog card-list treatment. */
@media (min-width: 761px) and (max-width: 1180px) {
	.ogi-product-table-bulk-button {
		display: none;
	}

	.ogi-product-table-wrap {
		overflow-x: visible;
		border: 0;
		border-radius: 0;
		background: transparent;
	}

	.ogi-product-table {
		display: block;
		min-width: 0;
		border-collapse: separate;
		background: transparent;
	}

	.ogi-product-table thead {
		display: none;
	}

	.ogi-product-table tbody {
		display: grid;
		gap: 12px;
	}

	.ogi-product-table-row {
		display: grid;
		grid-template-columns: 116px minmax(0, 1fr);
		grid-template-areas:
			"image name"
			"image sku"
			"image price"
			"image buy";
		grid-template-rows: min-content min-content min-content min-content;
		align-content: center;
		min-height: 132px;
		overflow: hidden;
		border: 1px solid var(--ogi-line);
		border-radius: 10px;
		background: var(--ogi-surface);
	}

	.ogi-product-table-row:hover {
		background: var(--ogi-canvas);
	}

	.ogi-product-table tbody td {
		padding: 0 12px;
		border-bottom: 0;
		background: transparent;
	}

	.ogi-product-table tbody tr:last-child td {
		border-bottom: 0;
	}

	.ogi-product-table-image {
		grid-area: image;
		width: 116px;
		height: 100%;
		min-height: 132px;
		padding: 0;
	}

	.ogi-product-table-image a {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 116px;
		min-height: 132px;
		height: 100%;
	}

	.ogi-product-table-image img {
		width: 104px;
		height: 104px;
	}

	.ogi-product-table-sku {
		grid-area: sku;
		width: auto;
		padding-top: 3px;
		font-size: 0.78rem;
	}

	.ogi-product-table-name {
		grid-area: name;
		min-width: 0;
		padding-top: 12px;
	}

	.ogi-product-table-name a {
		display: -webkit-box;
		overflow: hidden;
		font-size: 0.95rem;
		line-height: 1.2;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.ogi-product-table-price {
		grid-area: price;
		width: auto;
		padding-top: 8px;
		font-size: 0.84rem;
	}

	.ogi-product-table-buy {
		grid-area: buy;
		width: auto;
		padding-top: 8px;
		padding-bottom: 12px;
	}

	.ogi-product-table-buy-controls {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		justify-content: flex-start;
	}

	.ogi-product-table-select {
		display: none;
	}
}

/* Tablet portrait and below: filter column stacks above the catalog. */
@media (max-width: 768px) {
	.ogi-catalog-layout {
		flex-direction: column;
		gap: 20px;
	}

	.ogi-catalog-filters {
		position: static;
		flex-basis: auto;
		width: 100%;
	}

	.ogi-catalog-filters .ogi-catalog-chip-row {
		gap: 8px;
	}
}

/* Phones: collapse the product table into stacked cards using data-title. */
@media (max-width: 600px) {
	.ogi-catalog-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ogi-catalog-filter-bar {
		flex-basis: auto;
		width: 100%;
	}

	.ogi-product-table-wrap {
		border: 0;
		border-radius: 0;
		overflow-x: visible;
	}

	.ogi-product-table,
	.ogi-product-table tbody,
	.ogi-product-table tbody tr,
	.ogi-product-table tbody td {
		display: block;
		width: 100%;
	}

	.ogi-product-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.ogi-product-table tbody tr {
		position: relative;
		margin-bottom: 14px;
		padding: 14px 14px 14px 132px;
		min-height: 132px;
		border: 1px solid var(--ogi-line);
		border-radius: 10px;
		background: var(--ogi-surface);
	}

	.ogi-product-table tbody tr:hover {
		background: var(--ogi-surface);
	}

	.ogi-product-table tbody td {
		padding: 4px 0;
		border: 0;
	}

	.ogi-product-table tbody tr:last-child td {
		border: 0;
	}

	/* Image floats into the reserved left gutter of the card. */
	/* Selector is intentionally specific so it beats the generic
	 * `.ogi-product-table tbody td { width: 100% }` block above — otherwise the
	 * absolutely-positioned image cell stretches full-width and covers the
	 * SKU/Name/Price sitting beside it. */
	.ogi-product-table tbody td.ogi-product-table-image {
		position: absolute;
		top: 14px;
		left: 14px;
		width: 104px;
		padding: 0;
	}

	.ogi-product-table-image img {
		width: 104px;
		height: 104px;
	}

	/* Labelled rows: data-title on the left, value on the right. */
	.ogi-product-table-sku,
	.ogi-product-table-price {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px;
	}

	.ogi-product-table-sku::before,
	.ogi-product-table-price::before {
		content: attr(data-title);
		font-family: var(--ogi-mono);
		font-size: 0.68rem;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: var(--ogi-muted);
	}

	.ogi-product-table-name {
		padding-bottom: 8px;
	}

	.ogi-product-table-name a {
		font-size: 0.95rem;
	}

	.ogi-product-table-buy,
	.ogi-product-table-select {
		padding-top: 10px;
	}

	.ogi-product-table-buy-controls {
		justify-content: flex-start;
	}

	.ogi-product-table-select {
		text-align: left;
	}

	.ogi-product-table-select::before {
		content: attr(data-title);
		margin-right: 8px;
		font-family: var(--ogi-mono);
		font-size: 0.68rem;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: var(--ogi-muted);
	}

	.ogi-product-table-select label {
		display: inline-flex;
		align-items: center;
	}

	.ogi-featured-products {
		padding: 14px 14px 4px;
	}

	.ogi-product-table-bulk-button {
		width: 100%;
	}
}
