/* ---------- Toolbar ---------- */
.ojc-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin-bottom: 20px;
}
.ojc-count {
	font-family: "IBM Plex Sans", sans-serif;
	font-weight: 500;
	font-size: 13px;
	line-height: 1.2;
	letter-spacing: 0.65px;
	text-transform: uppercase;
	color: #9b713a;
}
.ojc-tools {
	display: flex;
	align-items: stretch;
	gap: 8px;
}
.ojc-search,
.ojc-sort {
	position: relative;
}
.ojc-search__field {
	display: flex;
	align-items: stretch;
	width: 300px;
	height: 44px;
	margin: 0;
	border: 1px solid #dfdcd9;
	background: #fff;
}
.ojc-search__field input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 14px;
	color: #000;
}
.ojc-search__field input[type="search"]:focus {
	outline: none;
}
.ojc-search__field:focus-within {
	border-color: #000;
}
.ojc-search__field button,
.ojc-search__field button:hover,
.ojc-search__field button:focus {
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-family: "IBM Plex Sans", sans-serif;
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #000;
	cursor: pointer;
}

.ojc-btn,
.ojc-btn:hover,
.ojc-btn:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid #dfdcd9;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	font-family: "IBM Plex Sans", sans-serif;
	font-weight: 500;
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #000;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.ojc-btn:hover {
	border-color: #000;
}
.ojc-btn--filters,
.ojc-btn--filters:hover,
.ojc-btn--filters:focus {
	background: #f5e7da;
	border-color: #f5e7da;
}
.ojc-btn--filters:hover {
	border-color: #9b713a;
}
.ojc-btn--sort {
	min-width: 190px;
	justify-content: space-between;
}
.ojc-caret {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #000;
}
.ojc-btn--primary,
.ojc-btn--primary:focus {
	background: #be1e2d;
	border-color: #be1e2d;
	color: #fff;
}
.ojc-btn--primary:hover {
	background: #9e1824;
	border-color: #9e1824;
	color: #fff;
}
.ojc-btn--outline:hover {
	border-color: #000;
}

/* ---------- Chips ---------- */
.ojc-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
}
.ojc-chip,
.ojc-chip:hover,
.ojc-chip:focus {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 10px;
	border: 0;
	border-radius: 0;
	background: #f6f5f2;
	font-family: "IBM Plex Mono", monospace;
	font-size: 12px;
	line-height: 1.2;
	text-transform: uppercase;
	color: #000;
	cursor: pointer;
}
.ojc-chip:hover {
	background: #f5e7da;
}
.ojc-chip--clear,
.ojc-chip--clear:hover,
.ojc-chip--clear:focus {
	margin: 0 0 0 4px;
	padding: 0;
	border: 0;
	background: none;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 12px;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: #4d4d4d;
	cursor: pointer;
}

/* ---------- Grid + cards ---------- */
.ojc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 56px 32px;
}
.ojc-card[hidden] {
	display: none;
}
.ojc-card__img {
	display: block;
	aspect-ratio: 384 / 428;
	overflow: hidden;
	background: #f6f5f2;
}
.ojc-card .ojc-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.ojc-card:hover .ojc-card__img img {
	transform: scale(1.03);
}
.ojc-card.is-sold .ojc-card__img img {
	opacity: 0.5;
	filter: grayscale(0.3);
}
.ojc-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-top: 17px;
}
.ojc-card__brand {
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	color: #9b713a;
}
.ojc-card__sku {
	font-family: "IBM Plex Mono", monospace;
	font-size: 14px;
	color: #000;
}
.ojc-card__title {
	margin: 7px 0 0;
}
.ojc-card__title a,
.ojc-card__title a:hover {
	color: #000;
	text-decoration: none;
}
.ojc-card.is-sold .ojc-card__title a {
	color: #4d4d4d;
}
.ojc-card__info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	padding-bottom: 19px;
	border-bottom: 1px solid #dfdcd9;
	font-size: 14px;
	color: #4d4d4d;
}
.ojc-card__year {
	font-family: "IBM Plex Mono", monospace;
}
.ojc-card__status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ojc-card__status::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #2e9e5b;
}
.ojc-card__status.is-sold {
	font-family: "IBM Plex Mono", monospace;
	font-size: 12px;
	text-transform: uppercase;
	color: #998f85;
}
.ojc-card__status.is-sold::before {
	display: none;
}
.ojc-card__price,
.ojc-card__price .amount {
	margin-top: 19px;
	font-size: 26px;
	line-height: 1.5;
	color: #000;
}
.ojc-card__price .amount {
	margin: 0;
}
.ojc-card.is-sold .ojc-card__price {
	color: #998f85;
}
.ojc-empty {
	padding: 48px 0;
	text-align: center;
}

/* ---------- Panels (search + sort dropdowns) ---------- */
.ojc-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 50;
	box-sizing: border-box;
	padding: 24px;
	background: #fff;
	border: 1px solid #dfdcd9;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.ojc-panel[hidden] {
	display: none;
}
.ojc-panel--search {
	left: 0;
	right: auto;
	width: 520px;
	padding: 32px;
}
.ojc-panel--sort {
	width: 360px;
}
.ojc-panel__title {
	margin-bottom: 8px;
	font-family: "Newsreader", serif;
	font-weight: 400;
	font-size: 32px;
	line-height: 1.2;
	color: #000;
}
.ojc-panel__hint {
	font-size: 14px;
	color: #998f85;
}
.ojc-results__count {
	margin-top: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #dfdcd9;
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.65px;
	text-transform: uppercase;
	color: #9b713a;
}
.ojc-result {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px 16px;
	padding: 18px 0;
	border-bottom: 1px solid #dfdcd9;
	text-decoration: none;
	color: #000;
}
.ojc-result:hover {
	background: #faf8f5;
}
.ojc-result__brand {
	font-size: 14px;
	color: #9b713a;
}
.ojc-result__sku {
	font-family: "IBM Plex Mono", monospace;
	font-size: 13px;
	text-align: right;
	color: #4d4d4d;
}
.ojc-result__title {
	font-family: "Newsreader", serif;
	font-size: 22px;
	line-height: 1.2;
	color: #000;
}
.ojc-result__price {
	align-self: end;
	font-size: 16px;
	text-align: right;
	color: #000;
}
.ojc-result__price.is-sold {
	text-transform: uppercase;
	color: #998f85;
}

.ojc-panel--sort .ojc-panel__title {
	padding-bottom: 12px;
	border-bottom: 1px solid #dfdcd9;
}
.ojc-sort__opt,
.ojc-sort__opt:hover,
.ojc-sort__opt:focus {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 16px 0;
	border: 0;
	border-bottom: 1px solid #dfdcd9;
	border-radius: 0;
	background: none;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 17px;
	text-align: left;
	color: #4d4d4d;
	cursor: pointer;
}
.ojc-sort__opt:last-child {
	border-bottom: 0;
}
.ojc-sort__opt:hover,
.ojc-sort__opt.is-active {
	color: #000;
}
.ojc-sort__opt.is-active::after {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #be1e2d;
}

/* ---------- Filters modal ---------- */
.ojc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.ojc-modal[hidden] {
	display: none;
}
.ojc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(2, 17, 31, 0.5);
}
.ojc-modal__box {
	position: relative;
	box-sizing: border-box;
	width: 520px;
	max-width: 100%;
	max-height: calc(100vh - 40px);
	margin: 0;
	padding: 32px;
	overflow-y: auto;
	background: #fff;
}
.ojc-modal__x,
.ojc-modal__x:hover,
.ojc-modal__x:focus {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	color: #000;
	cursor: pointer;
}
.ojc-modal__box > .ojc-panel__title {
	padding-bottom: 16px;
	border-bottom: 1px solid #dfdcd9;
}
.ojc-group {
	margin: 0;
	padding: 20px 0;
	border: 0;
	border-bottom: 1px solid #dfdcd9;
}
.ojc-group legend {
	float: left;
	width: 100%;
	margin: 0 0 12px;
	padding: 0;
	font-size: 13px;
	letter-spacing: 0.65px;
	text-transform: uppercase;
	color: #4d4d4d;
}
.ojc-check {
	display: flex;
	align-items: center;
	gap: 10px;
	clear: both;
	padding: 5px 0;
	font-size: 16px;
	color: #000;
	cursor: pointer;
}
.ojc-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.ojc-check__box {
	position: relative;
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	border: 1px solid #000;
}
.ojc-check input:checked + .ojc-check__box {
	background: #000;
}
.ojc-check input:checked + .ojc-check__box::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.ojc-check input:focus-visible + .ojc-check__box {
	outline: 2px solid #be1e2d;
	outline-offset: 2px;
}
.ojc-check__count {
	font-family: "IBM Plex Mono", monospace;
	font-size: 13px;
	color: #4d4d4d;
}
.ojc-price {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	clear: both;
}
.ojc-price input {
	width: 100%;
	height: 48px;
	box-sizing: border-box;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #dfdcd9;
	border-radius: 0;
	box-shadow: none;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 14px;
	color: #000;
}
.ojc-price input:focus {
	outline: none;
	border-color: #000;
}
.ojc-modal__actions {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 16px;
	margin-top: 24px;
}
.ojc-modal__actions .ojc-btn {
	height: 48px;
	font-size: 14px;
}
html.ojc-lock {
	overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
	.ojc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 24px;
	}
	.ojc-search__field {
		width: 240px;
	}
}

@media (max-width: 767px) {
	.ojc-bar {
		flex-direction: column;
		align-items: stretch;
	}
	.ojc-tools {
		flex-wrap: wrap;
	}
	.ojc-search {
		flex: 1 1 100%;
	}
	.ojc-search__field {
		width: 100%;
	}
	.ojc-btn--filters {
		flex: 1;
	}
	.ojc-sort {
		flex: 1;
	}
	.ojc-btn--sort {
		width: 100%;
		min-width: 0;
	}
	.ojc-panel--search {
		width: 100%;
		padding: 20px;
	}
	.ojc-panel--sort {
		width: calc(100vw - 32px);
		max-width: 360px;
	}
	.ojc-panel__title {
		font-size: 26px;
	}
	.ojc-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.ojc-modal {
		align-items: flex-end;
		padding: 0;
	}
	.ojc-modal__box {
		width: 100%;
		max-height: 90vh;
		padding: 24px 20px;
	}
	.ojc-card__price,
	.ojc-card__price .amount {
		font-size: 22px;
	}
}

/* ---------- AJAX states ---------- */
.ojc-grid {
	transition: opacity 0.2s ease;
}
.ojc.is-loading .ojc-grid {
	opacity: 0.4;
	pointer-events: none;
}
.ojc-more {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}
.ojc-more .ojc-btn {
	min-width: 200px;
	height: 52px;
	font-size: 14px;
}
.ojc-more .ojc-btn[hidden] {
	display: none;
}
.ojc-btn:disabled {
	opacity: 0.5;
	cursor: wait;
}
