/* =========================================================================
   BuyTides — shop / product catalog
   ========================================================================= */

.bt-shop {
	--bt-navy: #0b2c4d;
	--bt-navy-mid: #164a7a;
	--bt-cyan: #1fc8e3;
	--bt-cyan-tint: #eaf7fb;
	--bt-cyan-line: #c7e9f3;
	--bt-teal: #1b7fa8;
	--bt-mist: #eef2f4;
	--bt-line: #dde7ee;
	--bt-muted: #7c93a3;
	--bt-muted-2: #a8bcc7;
	--bt-navy-soft: #2c4658;

	--bt-shell: 1680px;
	--bt-gutter: clamp(24px, 5vw, 56px);

	--bt-sans: "Inter", system-ui, -apple-system, sans-serif;
	--bt-display: "Outfit", "Inter", system-ui, sans-serif;

	background: var(--bt-mist);
	font-family: var(--bt-sans);
	color: var(--bt-navy);
	padding-bottom: clamp(40px, 6vw, 72px);
	max-width: 100%;
	overflow-x: clip;
}

.bt-shop *,
.bt-shop *::before {
	box-sizing: border-box;
}

.bt-shop ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bt-shop a {
	text-decoration: none;
}

.bt-shop img {
	max-width: 100%;
	height: auto;
}

.bt-shop .bt-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

/* ---------- Hero ---------- */

.bt-shop__hero {
	max-width: var(--bt-shell);
	width: calc(100% - var(--bt-gutter));
	margin: clamp(28px, 4vw, 56px) auto 0;
	text-align: center;
}

.bt-shop__eyebrow {
	margin: 0;
	font-family: var(--bt-display);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bt-teal);
}

.bt-shop__title {
	margin: 14px 0 0;
	font-family: var(--bt-display);
	font-size: clamp(34px, 5vw, 62px);
	line-height: 1.05;
	font-weight: 700;
	letter-spacing: -0.028em;
	text-wrap: balance;
}

.bt-shop__intro {
	margin: 18px auto 0;
	max-width: 62ch;
	font-size: clamp(15px, 1.3vw, 18px);
	line-height: 1.65;
	color: var(--bt-navy-soft);
	text-wrap: pretty;
}

/* ---------- Category chips ---------- */

.bt-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: clamp(24px, 3vw, 38px);
}

.bt-chip {
	appearance: none;
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1.5px solid var(--bt-cyan-line);
	border-radius: 999px;
	background: #fff;
	padding: 12px 20px;
	cursor: pointer;
	font-family: var(--bt-display);
	font-size: 15px;
	font-weight: 600;
	color: var(--bt-navy);
	transition: border-color 0.15s ease, background 0.15s ease;
}

.bt-chip:hover {
	border-color: var(--bt-cyan);
	background: var(--bt-cyan-tint);
}

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

.bt-chip__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	border-radius: 999px;
	background: var(--bt-cyan-tint);
	color: var(--bt-teal);
	font-size: 12.5px;
	font-weight: 700;
	padding: 0 7px;
}

.bt-chip.is-active .bt-chip__count {
	background: var(--bt-cyan);
	color: var(--bt-navy);
}

/* ---------- Body layout ---------- */

.bt-shop__body {
	max-width: var(--bt-shell);
	width: calc(100% - var(--bt-gutter));
	margin: clamp(20px, 3vw, 36px) auto clamp(28px, 4vw, 56px);
	display: flex;
	flex-wrap: wrap;
	gap: clamp(16px, 2vw, 28px);
	align-items: flex-start;
}

/* ---------- Filter rail ---------- */

.bt-filters {
	flex: 1 1 270px;
	max-width: 100%;
	min-width: 0;
	background: #fff;
	border: 1.5px solid var(--bt-cyan-line);
	border-radius: 22px;
	padding: clamp(18px, 2vw, 26px);
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 16px;
}

.bt-filters__head {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.bt-filters__title {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-family: var(--bt-display);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.bt-filters__reset {
	appearance: none;
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	font-family: var(--bt-display);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bt-teal);
}

.bt-filters__reset:hover {
	color: var(--bt-navy);
}

.bt-filters__group {
	border-top: 1px solid var(--bt-line);
	padding-top: 18px;
}

.bt-filters__group:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.bt-filters__label {
	margin: 0 0 12px;
	font-family: var(--bt-display);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--bt-muted);
}

.bt-filters__value {
	margin-left: 6px;
	color: var(--bt-navy);
	letter-spacing: 0;
	text-transform: none;
	font-size: 14px;
}

.bt-filters__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* ---------- Checkbox ---------- */

.bt-check {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 7px 0;
	cursor: pointer;
}

.bt-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bt-check__box {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 7px;
	border: 2px solid var(--bt-cyan-line);
	background: #fff;
	transition: all 0.15s ease;
}

.bt-check__tick {
	width: 13px;
	height: 13px;
	color: var(--bt-navy);
	opacity: 0;
	transition: opacity 0.15s ease;
}

.bt-check input:checked + .bt-check__box {
	background: var(--bt-cyan);
	border-color: var(--bt-cyan);
}

.bt-check input:checked + .bt-check__box .bt-check__tick {
	opacity: 1;
}

.bt-check input:focus-visible + .bt-check__box {
	outline: 2px solid var(--bt-cyan);
	outline-offset: 2px;
}

.bt-check__label {
	flex: 1;
	min-width: 0;
	font-family: var(--bt-display);
	font-size: 16px;
	font-weight: 500;
	color: var(--bt-navy);
}

.bt-check__count {
	font-size: 13px;
	color: var(--bt-muted);
	font-variant-numeric: tabular-nums;
}

/* ---------- Range ---------- */

.bt-range {
	appearance: none;
	width: 100%;
	height: 6px;
	border-radius: 999px;
	background: var(--bt-cyan-line);
	outline: none;
	cursor: pointer;
}

.bt-range::-webkit-slider-thumb {
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--bt-navy);
	border: 3px solid var(--bt-cyan);
	cursor: pointer;
}

.bt-range::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--bt-navy);
	border: 3px solid var(--bt-cyan);
	cursor: pointer;
}

.bt-range__ends {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 12.5px;
	color: var(--bt-muted);
	font-variant-numeric: tabular-nums;
}

.bt-range__ends .amount {
	color: inherit;
}

/* ---------- Category radios ---------- */

.bt-radios {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bt-radio {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 13px;
	cursor: pointer;
	text-align: left;
}

.bt-radio__ring {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	border: 2px solid var(--bt-cyan-line);
	transition: border-color 0.15s ease;
}

.bt-radio__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--bt-cyan);
	transform: scale(0);
	transition: transform 0.15s ease;
}

.bt-radio.is-active .bt-radio__ring {
	border-color: var(--bt-cyan);
}

.bt-radio.is-active .bt-radio__dot {
	transform: scale(1);
}

.bt-radio__label {
	flex: 1;
	min-width: 0;
	font-family: var(--bt-display);
	font-size: 16px;
	font-weight: 500;
	color: var(--bt-navy-soft);
}

.bt-radio.is-active .bt-radio__label {
	font-weight: 700;
	color: var(--bt-navy);
}

.bt-radio__count {
	font-size: 13px;
	color: var(--bt-muted);
	font-variant-numeric: tabular-nums;
}

.bt-radio:focus-visible .bt-radio__ring {
	outline: 2px solid var(--bt-cyan);
	outline-offset: 3px;
}

/* ---------- Dual-handle range ----------
   Two native range inputs stacked on one track. The inputs are transparent and
   only their thumbs receive pointer events, so each handle stays independently
   draggable while the coloured fill between them is drawn by the track. */

.bt-dual {
	position: relative;
	height: 22px;
	display: flex;
	align-items: center;
}

.bt-dual__track {
	position: absolute;
	left: 0;
	right: 0;
	height: 6px;
	border-radius: 999px;
	background: var(--bt-cyan-line);
	overflow: hidden;
}

.bt-dual__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	background: var(--bt-teal);
	border-radius: 999px;
}

.bt-dual__input {
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
	margin: 0;
	background: none;
	appearance: none;
	pointer-events: none;
	height: 22px;
}

.bt-dual__input::-webkit-slider-thumb {
	pointer-events: auto;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--bt-navy);
	border: 3px solid var(--bt-cyan);
	cursor: pointer;
}

.bt-dual__input::-moz-range-thumb {
	pointer-events: auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--bt-navy);
	border: 3px solid var(--bt-cyan);
	cursor: pointer;
}

.bt-dual__input:focus-visible::-webkit-slider-thumb {
	outline: 2px solid var(--bt-cyan);
	outline-offset: 2px;
}

/* ---------- Results heading + breadcrumb ---------- */

.bt-results__heading {
	flex: 1 1 220px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.bt-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--bt-muted);
}

.bt-crumbs__link {
	color: var(--bt-teal);
}

.bt-crumbs__link:hover {
	color: var(--bt-navy);
	text-decoration: underline;
}

.bt-crumbs__sep {
	color: var(--bt-muted-2);
}

.bt-crumbs__current {
	color: var(--bt-navy);
	font-weight: 500;
}

/* ---------- Results ---------- */

.bt-results {
	flex: 999 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: clamp(14px, 1.8vw, 22px);
}

.bt-results__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px 20px;
}

/* flex-basis here used to be 220px, copied from .bt-results__heading where it
   sizes a row. This element's parent is a COLUMN flex container, so that basis
   applied to height instead of width and stretched a one-line heading to 220px
   tall, dropping the breadcrumb far below the title. */
.bt-results__title {
	flex: 0 0 auto;
	min-width: 0;
	margin: 0;
	font-family: var(--bt-display);
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 700;
	letter-spacing: -0.022em;
}

.bt-results__count {
	margin: 0;
	font-size: 14.5px;
	color: var(--bt-muted);
}

.bt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
	gap: clamp(14px, 1.6vw, 22px);
}

/* ---------- Card ---------- */

.bt-card {
	background: #fff;
	border: 1.5px solid var(--bt-line);
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.bt-card:hover {
	border-color: var(--bt-cyan);
	box-shadow: 0 10px 30px rgba(11, 44, 77, 0.10);
}

.bt-card[hidden] {
	display: none;
}

.bt-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--bt-navy);
	overflow: hidden;
}

.bt-card__link,
.bt-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bt-card__save {
	position: absolute;
	top: 12px;
	left: 12px;
	font-family: var(--bt-display);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--bt-navy);
	background: var(--bt-cyan);
	border-radius: 6px;
	padding: 5px 9px;
}

.bt-card__buy {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translate(-50%, 14px);
	opacity: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--bt-navy);
	font-family: var(--bt-display);
	font-size: 13px;
	font-weight: 600;
	padding: 10px 20px;
	white-space: nowrap;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.bt-card:hover .bt-card__buy,
.bt-card__buy:focus-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.bt-card__body {
	padding: 16px 18px 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
	flex: 1;
}

.bt-card__cat {
	margin: 0;
	font-family: var(--bt-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bt-muted);
}

.bt-card__name {
	margin: 0;
	font-family: var(--bt-display);
	font-size: 17.5px;
	font-weight: 600;
	line-height: 1.28;
	letter-spacing: -0.01em;
}

.bt-card__name a {
	color: var(--bt-navy);
}

.bt-card__name a:hover {
	color: var(--bt-teal);
}

.bt-card__dose {
	margin: 0;
	font-size: 13.5px;
	color: var(--bt-muted);
}

.bt-card__pricerow {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-top: 2px;
}

.bt-card__price {
	font-family: var(--bt-display);
	font-size: 23px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.bt-card__was {
	font-size: 15px;
	color: var(--bt-muted-2);
	text-decoration: line-through;
	font-variant-numeric: tabular-nums;
}

.bt-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
	padding-bottom: 16px;
}

.bt-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--bt-cyan-tint);
	border-radius: 999px;
	padding: 6px 11px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--bt-teal);
}

.bt-badge__icon {
	width: 13px;
	height: 13px;
}

/* Solid navy bar across the foot of the card, flush to its rounded corners. */
.bt-card__view {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0;
	background: var(--bt-navy);
	padding: 16px;
	font-family: var(--bt-display);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.005em;
	color: #fff;
	text-decoration: none;
	transition: background 0.15s ease;
}

.bt-card__view:hover,
.bt-card__view:focus-visible {
	background: var(--bt-navy-mid, #164a7a);
	color: #fff;
}

.bt-card__view:active {
	background: #08213a;
}

.bt-card__eye {
	width: 19px;
	height: 19px;
}

/* ---------- Empty state ---------- */

.bt-empty {
	background: #fff;
	border: 1.5px dashed var(--bt-cyan-line);
	border-radius: 20px;
	padding: clamp(32px, 5vw, 56px);
	text-align: center;
}

.bt-empty__title {
	margin: 0;
	font-family: var(--bt-display);
	font-size: 21px;
	font-weight: 700;
}

.bt-empty__copy {
	margin: 8px 0 0;
	font-size: 15px;
	color: var(--bt-muted);
}

.bt-empty__reset {
	appearance: none;
	margin-top: 18px;
	border: 0;
	border-radius: 999px;
	background: var(--bt-navy);
	color: #fff;
	font-family: var(--bt-display);
	font-size: 15px;
	font-weight: 600;
	padding: 12px 24px;
	cursor: pointer;
}

.bt-empty__reset:hover {
	background: var(--bt-navy-mid);
}

/* ---------- Pagination ---------- */

.bt-pagination .woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	border: 0;
}

.bt-pagination .woocommerce-pagination li {
	border: 0;
}

.bt-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	background: #fff;
	border: 1.5px solid var(--bt-line);
	font-family: var(--bt-display);
	font-weight: 600;
	color: var(--bt-navy);
}

.bt-pagination .page-numbers.current {
	background: var(--bt-navy);
	border-color: var(--bt-navy);
	color: #fff;
}

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

@media (max-width: 900px) {
	.bt-filters {
		position: static;
		flex: 1 1 100%;
	}

	.bt-results {
		flex: 1 1 100%;
	}
}

@media (max-width: 560px) {
	.bt-chips {
		gap: 8px;
	}

	.bt-chip {
		padding: 10px 15px;
		font-size: 14px;
	}

	.bt-grid {
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.bt-shop * {
		transition: none !important;
	}

	.bt-card__buy {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}
