/* ---------- At a glance ---------- */
.ojwd-glance {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	border-top: 1px solid #dfdcd9;
	border-left: 1px solid #dfdcd9;
	font-size: 14px;
}
.ojwd-glance__cell {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 27px 20px 24px;
	border-right: 1px solid #dfdcd9;
	border-bottom: 1px solid #dfdcd9;
	grid-column: span var(--ojwd-span-lg, 1);
	min-width: 0;
	overflow-wrap: break-word;
}
.ojwd-glance__label {
	font-family: "IBM Plex Sans", sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	color: #9b713a;
}
.ojwd-glance__value {
	font-family: "IBM Plex Mono", monospace;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
	color: #000;
}

/* ---------- Tabs ---------- */
.ojwd-tabs__list {
	display: flex;
	border-bottom: 1px solid #ccb8a3;
}
.ojwd-tabs__tab,
.ojwd-tabs__tab:hover,
.ojwd-tabs__tab:focus {
	position: relative;
	margin: 0 0 -1px;
	padding: 18px 26px 19px;
	background: transparent;
	border: 1px solid #ccb8a3;
	border-radius: 0;
	box-shadow: none;
	font-family: "Newsreader", serif;
	font-weight: 400;
	font-size: 32px;
	line-height: 1.5;
	color: #998f85;
	cursor: pointer;
	transition: color 0.2s ease;
}
.ojwd-tabs__tab + .ojwd-tabs__tab {
	margin-left: -1px;
}
.ojwd-tabs__tab:hover,
.ojwd-tabs__tab.is-active {
	color: #000;
}
.ojwd-tabs__tab.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 3px;
	background: #be1e2d;
}
.ojwd-tabs__tab:focus-visible {
	outline: 2px solid #be1e2d;
	outline-offset: 2px;
}

/* ---------- Tab list (2 columns, column-major) ---------- */
.ojwd-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: repeat(var(--ojwd-rows, 1), auto);
	grid-auto-flow: column;
	margin-top: 28px;
}
.ojwd-list__item {
	position: relative;
	padding: 26px 0;
	border-bottom: 1px solid #e0cfbe;
	min-width: 0;
}
.ojwd-list__item.is-left {
	padding-right: 68px;
}
.ojwd-list__item.is-right {
	padding-left: 68px;
}
.ojwd-list__item.is-left::after {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	right: 0;
	width: 1px;
	background: #e0cfbe;
}
.ojwd-list__label {
	margin-bottom: 5px;
	font-family: "IBM Plex Sans", sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	color: #000;
}
.ojwd-list__value {
	font-family: "IBM Plex Sans", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	color: #4d4d4d;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.ojwd-glance {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.ojwd-glance__cell {
		grid-column: span var(--ojwd-span-md, 1);
	}
	.ojwd-tabs__tab,
	.ojwd-tabs__tab:hover,
	.ojwd-tabs__tab:focus {
		font-size: 26px;
		padding: 14px 20px 15px;
	}
	.ojwd-list__item.is-left {
		padding-right: 32px;
	}
	.ojwd-list__item.is-right {
		padding-left: 32px;
	}
}

@media (max-width: 767px) {
	.ojwd-glance {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ojwd-glance__cell {
		grid-column: span var(--ojwd-span-sm, 1);
		padding: 20px 16px 18px;
	}
	.ojwd-tabs__tab,
	.ojwd-tabs__tab:hover,
	.ojwd-tabs__tab:focus {
		flex: 1 1 0;
		font-size: 18px;
		line-height: 1.3;
		padding: 12px 10px 13px;
		text-align: center;
	}
	.ojwd-list {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		grid-auto-flow: row;
		margin-top: 8px;
	}
	.ojwd-list__item.is-left,
	.ojwd-list__item.is-right {
		padding: 20px 0;
	}
	.ojwd-list__item.is-left::after,
	.ojwd-list__item.is-empty {
		display: none;
	}
}

/* ---------- Archive list ---------- */
.ojwd-archive {
	border-top: 1px solid #e0cfbe;
}
.ojwd-archive__row {
	display: grid;
	grid-template-columns: 34px minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr) auto;
	align-items: baseline;
	gap: 0 16px;
	padding: 12px 0;
	border-bottom: 1px solid #e0cfbe;
	font-family: "Newsreader", serif;
	font-size: 18px;
	line-height: 1.5;
	color: #000;
	text-decoration: none;
	transition: background-color 0.2s ease;
	position: relative;
}
.ojwd-archive__row:hover {
	color: #000;
}
.ojwd-archive__row::after{
	content: '';
	position: absolute;
	background-color: rgba(155, 113, 58, 0.06);
	width: 100vw;
	height: 100%;
	top: 0;
	transform: translateX(-50%);
	left: 50%;
	opacity: 0;
	transition: all .2s ease;
}
.ojwd-archive__row:hover::after{
	opacity: 1;
}
.ojwd-archive__no {
	font-family: "IBM Plex Mono", monospace;
	font-size: 12px;
	color: #4d4d4d;
}
.ojwd-archive__status {
	text-align: right;
}

@media (max-width: 767px) {
	.ojwd-archive__row {
		grid-template-columns: 30px minmax(0, 1fr) auto;
		gap: 2px 12px;
		font-size: 16px;
	}
	.ojwd-archive__ref,
	.ojwd-archive__year {
		grid-column: 2;
		font-family: "IBM Plex Mono", monospace;
		font-size: 13px;
		color: #4d4d4d;
	}
	.ojwd-archive__status {
		grid-column: 3;
		grid-row: 1;
	}
}

/* ---------- Archive stat box ---------- */
.ojwd-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 255px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	margin-left: auto;
	box-sizing: border-box;
	padding: 20px;
	background: #fff;
	border: 1px solid #dfdcd9;
	text-align: center;
}
.ojwd-stat__num {
	font-family: "IBM Plex Mono", monospace;
	font-weight: 300;
	font-size: 64px;
	line-height: 1.2;
	color: #000;
}
.ojwd-stat__label {
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: #4d4d4d;
}

@media (max-width: 767px) {
	.ojwd-stat {
		width: 100%;
		aspect-ratio: auto;
		margin-left: 0;
		padding: 32px 20px;
	}
	.ojwd-stat__num {
		font-size: 48px;
	}
	.ojwd-stat__label {
		font-size: 14px;
	}
}

/* ---------- Product hero ---------- */
.ojwd-hero__top {
	display: grid;
	grid-template-columns: 709fr 731fr;
	align-items: start;
}
.ojwd-hero__media {
	aspect-ratio: 709 / 707;
	overflow: hidden;
	background: #f6f5f2;
}
.ojwd-hero img.ojwd-hero__main {
	display: block;
	max-width: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.15s ease;
}
.ojwd-hero__info {
	box-sizing: border-box;
	max-width: 731px;
	padding: 94px 112px 40px 47px;
}
.ojwd-hero__brand {
	font-family: "IBM Plex Sans", sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: #9b713a;
}
.ojwd-hero__ref {
	margin-top: 14px;
	font-family: "Newsreader", serif;
	font-weight: 300;
	font-size: 48px;
	line-height: 1.2;
	color: #000;
}
.ojwd-hero__title {
	margin: 12px 0 0;
	font-family: "Newsreader", serif;
	font-weight: 400;
	font-size: 22px;
	line-height: 1.2;
	color: #000;
}
.ojwd-hero__short {
	margin-top: 5px;
}
.ojwd-hero__short p,
.ojwd-hero__intro p {
	margin: 0;
}
.ojwd-hero__pricebox {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 81px;
	box-sizing: border-box;
	margin-top: 26px;
	padding: 12px 20px 12px 26px;
	background: #f5e7da;
}
.ojwd-hero__price,
.ojwd-hero__price .amount {
	font-family: "Newsreader", serif;
	font-weight: 300;
	font-size: 40px;
	line-height: 1.2;
	color: #000;
}
.ojwd-hero__status {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	line-height: 1.5;
	color: #4d4d4d;
}
.ojwd-hero__status::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #2e9e5b;
}
.ojwd-hero__status.is-sold::before {
	background: #be1e2d;
}
.ojwd-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 31px;
}
.ojwd-btn,
.ojwd-btn:hover,
.ojwd-btn:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	box-sizing: border-box;
	padding: 16px 24px;
	font-family: "IBM Plex Sans", sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ojwd-btn--primary,
.ojwd-btn--primary:focus {
	background: #be1e2d;
	border: 1px solid #be1e2d;
	color: #fff;
}
.ojwd-btn--primary:hover {
	background: #9e1824;
	border-color: #9e1824;
	color: #fff;
}
.ojwd-btn--outline,
.ojwd-btn--outline:focus {
	background: transparent;
	border: 1px solid #dfdcd9;
	color: #000;
}
.ojwd-btn--outline:hover {
	border-color: #000;
	color: #000;
}
.ojwd-hero__intro {
	margin-top: 48px;
}

.ojwd-hero__thumbs {
	display: flex;
	gap: 20px;
	margin-top: 20px;
	overflow-x: auto;
	scrollbar-width: thin;
}
.ojwd-hero__thumb,
.ojwd-hero__thumb:hover,
.ojwd-hero__thumb:focus {
	flex: 1 0 140px;
	aspect-ratio: 1 / 1;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: #f6f5f2;
	overflow: hidden;
	cursor: pointer;
	position: relative;
}
.ojwd-hero .ojwd-hero__thumb img {
	display: block;
	max-width: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.2s ease;
}
.ojwd-hero__thumb:hover img {
	opacity: 0.8;
}
.ojwd-hero__thumb.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: #be1e2d;
}

@media (max-width: 1023px) {
	.ojwd-hero__top {
		grid-template-columns: 1fr 1fr;
	}
	.ojwd-hero__info {
		padding: 48px 32px 32px;
	}
	.ojwd-hero__ref {
		font-size: 40px;
	}
	.ojwd-hero__price,
	.ojwd-hero__price .amount {
		font-size: 34px;
	}
	.ojwd-hero__actions {
		margin-top: 24px;
	}
	.ojwd-hero__intro {
		margin-top: 32px;
	}
	.ojwd-hero__thumbs {
		gap: 12px;
	}
	.ojwd-hero__thumb {
		flex-basis: 120px;
	}
}

@media (max-width: 767px) {
	.ojwd-hero {
		display: flex;
		flex-direction: column;
	}
	.ojwd-hero__top {
		display: contents;
	}
	.ojwd-hero__media {
		order: 1;
	}
	.ojwd-hero__thumbs {
		order: 2;
	}
	.ojwd-hero__info {
		order: 3;
	}
	.ojwd-hero__media {
		aspect-ratio: 1 / 1;
	}
	.ojwd-hero__thumbs {
		gap: 8px;
		margin-top: 8px;
		padding: 0 16px;
	}
	.ojwd-hero__thumb,
	.ojwd-hero__thumb:hover,
	.ojwd-hero__thumb:focus {
		flex: 0 0 84px;
	}
	.ojwd-hero__info {
		max-width: none;
		padding: 32px 16px 16px;
	}
	.ojwd-hero__ref {
		font-size: 36px;
	}
	.ojwd-hero__price,
	.ojwd-hero__price .amount {
		font-size: 30px;
	}
	.ojwd-hero__pricebox {
		min-height: 68px;
		padding: 10px 16px 10px 20px;
	}
	.ojwd-btn {
		flex: 1 1 auto;
	}
	.ojwd-hero__intro {
		margin-top: 28px;
	}
}
