/* NEW ARRIVALS - the front-page row of the newest stock.
   Laid out the way the owner's other shop shows it: a centred heading, two cards
   per row on a phone and four on a desktop, each card a product shot on a soft
   grey ground with a round quick-look button, then name, price and colour chip.
   Everything is scoped under .tb-na so the theme is left alone. */

.tb-na {
	--tb-na-gap: 14px;
	--tb-na-per: 2;
	background: #fff;
	padding: 64px 0 56px;
	direction: rtl;
}

.tb-na__inner {
	max-width: 1220px;
	margin: 0 auto;
	padding: 0 20px;
}

.tb-na__head {
	text-align: center;
	margin: 0 0 34px;
}

.tb-na__title {
	margin: 0;
	font-family: inherit;
	font-size: clamp(19px, 3.4vw, 30px);
	font-weight: 400;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #111;
	line-height: 1.2;
}

.tb-na__sub {
	margin: 10px 0 0;
	font-size: 13px;
	letter-spacing: .04em;
	color: #7c7268;
}

/* ---------------------------------------------------------------- the rail */

.tb-na__rail {
	position: relative;
}

.tb-na__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--tb-na-per) - 1) * var(--tb-na-gap)) / var(--tb-na-per));
	gap: var(--tb-na-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.tb-na__track::-webkit-scrollbar {
	display: none;
}

.tb-na__card {
	scroll-snap-align: start;
	display: block;
	text-decoration: none;
	color: inherit;
}

.tb-na__shot {
	position: relative;
	aspect-ratio: 2 / 3;
	background: #f3f2f0;
	overflow: hidden;
}

.tb-na__shot img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .35s ease;
}

.tb-na__back {
	opacity: 0;
}

.tb-na__card:hover .tb-na__back {
	opacity: 1;
}

.tb-na__card:hover .tb-na__front {
	opacity: 0;
}

.tb-na__plus {
	position: absolute;
	bottom: 12px;
	left: 12px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #e2ded8;
	display: grid;
	place-items: center;
	font-size: 17px;
	line-height: 1;
	color: #1a1a1a;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .25s ease, transform .25s ease;
}

.tb-na__card:hover .tb-na__plus,
.tb-na__card:focus-visible .tb-na__plus {
	opacity: 1;
	transform: none;
}

.tb-na__tag {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #1a1a1a;
	color: #fff;
	font-size: 10px;
	letter-spacing: .1em;
	padding: 4px 7px;
}

/* ---------------------------------------------------------------- the words */

.tb-na__name {
	margin: 14px 0 0;
	font-size: 11.5px;
	font-weight: 400;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #1f1f1f;
	text-align: center;
	line-height: 1.55;
	min-height: 3.1em;
	direction: ltr;
	unicode-bidi: isolate;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tb-na__price {
	margin: 7px 0 0;
	font-size: 12.5px;
	letter-spacing: .03em;
	color: #2a2a2a;
	text-align: center;
	direction: rtl;
}

.tb-na__price del {
	color: #a5a5a5;
	margin-inline-start: 7px;
	text-decoration-thickness: 1px;
}

.tb-na__price ins {
	text-decoration: none;
	color: #a4302c;
}

.tb-na__chip {
	display: block;
	width: 13px;
	height: 13px;
	margin: 9px auto 0;
	border: 1px solid #d8d3cc;
	background: var(--c, #ddd);
}

/* ---------------------------------------------------------------- controls */

.tb-na__nav {
	position: absolute;
	top: calc(50% - 60px);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid #e2ded8;
	background: rgba(255, 255, 255, .94);
	display: none;
	place-items: center;
	cursor: pointer;
	color: #1a1a1a;
	font-size: 15px;
	line-height: 1;
	padding: 0;
	z-index: 2;
	transition: background .2s ease, border-color .2s ease;
}

.tb-na__nav:hover {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}

.tb-na__nav[disabled] {
	opacity: .32;
	cursor: default;
}

.tb-na__nav--prev {
	right: -19px;
}

.tb-na__nav--next {
	left: -19px;
}

.tb-na__all {
	display: block;
	width: fit-content;
	margin: 34px auto 0;
	padding: 12px 34px;
	background: #1a1a1a;
	color: #fff;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s ease;
}

.tb-na__all:hover {
	background: #000;
	color: #fff;
}

@media (min-width: 700px) {
	.tb-na {
		--tb-na-per: 4;
		--tb-na-gap: 18px;
		padding: 84px 0 76px;
	}

	.tb-na__inner {
		padding: 0 40px;
	}

	.tb-na__nav {
		display: grid;
	}
}

@media (prefers-reduced-motion: reduce) {

	.tb-na__track {
		scroll-behavior: auto;
	}

	.tb-na__shot img,
	.tb-na__plus {
		transition: none;
	}
}
