/* Store pages, from the design boards v2 (desktop 1440 px, mobile 390 px).
 * Values come from design-system/tokens.json; scoped to .tcs-store so Hello's defaults do not leak in. */

.tcs-store {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--tcs-content) + 80px); /* site.css */
	margin: 0 auto;
	padding: 0 40px;
	color: #000000;
	font-family: 'Helvetica Neue', 'Inter Tight', Helvetica, Arial, sans-serif;
	font-size: 12px;
	line-height: 1.45;
}

.tcs-store *,
.tcs-store *::before,
.tcs-store *::after {
	box-sizing: border-box;
}

.tcs-store a,
.tcs-store a:visited {
	color: #000000;
	text-decoration: none;
}

.tcs-store a:hover {
	color: #000000;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tcs-store a:focus-visible {
	outline: 2px solid #000000;
	outline-offset: 3px;
}

.tcs-store p,
.tcs-store h1,
.tcs-store h2 {
	margin: 0;
}

/* Hello gives headings line-height 1.2 and weight 500: here they follow the text they sit in */
.tcs-store h2 {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.tcs-store .cap {
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.tcs-store .serif {
	font-family: 'Fields', 'Fraunces', Georgia, serif;
	font-weight: 400;
	letter-spacing: 0;
}

.tcs-store .more {
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

.tcs-store .rail {
	scrollbar-width: none;
}

.tcs-store .sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.tcs-store a.bag,
.tcs-store a.bag:visited,
.tcs-store a.bag:hover {
	color: #FFFFFF;
	text-decoration: none;
}

.tcs-store .rail::-webkit-scrollbar {
	display: none;
}

/* Cover on the mockup photo (one composed image per cover), slightly enlarged in its frame */
.tcs-store .mk {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 928 / 1152;
	overflow: hidden;
	line-height: 0;
	background: #EFEFEF;
}

.tcs-store .mk-in {
	position: absolute;
	inset: -9%;
	display: block;
}

.tcs-store .mk-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.tcs-store .mk-ph {
	position: absolute;
	left: 21.23%;
	top: 19.79%;
	width: 58.41%;
	height: 59.72%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	color: #555555;
	font-size: 12px;
	line-height: 1.3;
	text-align: center;
}

/* The only movement on the covers: a slow, small zoom under the mouse */
.tcs-store .zoom {
	display: block;
}

.tcs-store .zoom .mk-in {
	transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.tcs-store .zoom:hover .mk-in {
		transform: scale(1.03);
	}
}

/* Tile, as in the client's shop example */
.tcs-store .t {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.tcs-store .t-issue {
	margin: 14px 0 0;
	font-size: 12px;
}

.tcs-store .t-title {
	margin: 2px 0 0;
	font-size: 18px;
	line-height: 1.2;
}

.tcs-store .t-title--missing {
	font-family: inherit;
}

.tcs-store .t-price {
	margin: 4px 0 0;
	font-size: 11px;
	line-height: 1.5;
}

/* Separator between the two prices: " / " on desktop, a line break on mobile (drawn by CSS, so the
   hidden one leaves no stray text) */
.tcs-store .t-sep::before {
	content: " / ";
	white-space: pre;
}

.tcs-store .t-br {
	display: none;
}

.tcs-store .t-add {
	margin-top: 10px;
	border-top: 1px solid #A0A0A0;
	display: flex;
	justify-content: flex-end;
	font-size: 12px;
}

.tcs-store .t-add a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding-right: 6px;
	font-weight: 700;
}

/* Category page */
.tcs-cat .cat-title {
	margin-top: 28px;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
}

.tcs-cat .cat-title h1 {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 12px;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.tcs-cat .cat-title h1 .cap {
	font-size: 12px;
}

.tcs-cat .cat-issue-title {
	font-size: 26px;
	line-height: 1.2;
}

.tcs-cat .cat-all {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 12px;
	white-space: nowrap;
}

.tcs-cat .cat-count {
	font-size: 12px;
	color: #555555;
	white-space: nowrap;
}

.tcs-cat .cat-filter {
	position: relative;
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 16px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.tcs-cat .cat-filter-label {
	display: flex;
	align-items: center;
	min-height: 44px;
	white-space: nowrap;
	font-weight: 700;
}

.tcs-cat .cat-filter-rule {
	flex: 0 0 auto;
	width: 1px;
	height: 14px;
	background: #000000;
}

.tcs-cat .cat-filter-item {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	white-space: nowrap;
	font-weight: 400;
	text-underline-offset: 4px;
}

.tcs-cat .cat-filter-item.is-on {
	font-weight: 700;
	text-decoration: underline;
}

.tcs-cat .cat-covers {
	margin-top: 12px;
}

.tcs-store .grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 28px;
}

.tcs-cat .cat-pager {
	margin-top: 64px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	font-size: 12px;
}

.tcs-cat .cat-pager a,
.tcs-cat .cat-pager span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	text-underline-offset: 4px;
}

.tcs-cat .pg-step {
	min-width: 44px;
	padding: 0 6px;
}

.tcs-cat .pg-step.is-off {
	color: #767676;
}

.tcs-cat .pg-n {
	min-width: 36px;
	font-weight: 400;
}

.tcs-cat .pg-n.is-on {
	font-weight: 700;
	text-decoration: underline;
}

/* "Open" label that follows the mouse over the covers (store.js): 60 px, in Fields */
.tcs-cursor {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 9999;
	pointer-events: none;
}

.tcs-cursor-in {
	position: absolute;
	left: -30px;
	top: -30px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000000;
	color: #FFFFFF;
	font: 400 14px/1 'Fields', 'Fraunces', Georgia, serif;
	transform: scale(0);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.tcs-cursor.is-on .tcs-cursor-in {
	transform: scale(1);
}

.tcs-fine .tcs-store [data-cursor] .zoom,
.tcs-fine .tcs-store [data-cursor] .zoom * {
	cursor: none;
}

/* Tablet: three columns between the two boards */
@media (max-width: 1024px) {
	.tcs-store .grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Mobile board (390 px) */
@media (max-width: 767px) {
	.tcs-store {
		padding: 0 16px;
		font-size: 13px;
	}

	.tcs-store .t-issue {
		font-size: 11px;
	}

	.tcs-store .t-title {
		font-size: 15px;
	}

	.tcs-store .t-price {
		font-size: 10px;
	}

	/* Mobile board: the two prices on two lines */
	.tcs-store .t-sep {
		display: none;
	}

	.tcs-store .t-br {
		display: inline;
	}

	.tcs-cat .cat-title {
		margin-top: 16px;
	}

	.tcs-cat .cat-issue-title {
		font-size: 20px;
	}

	.tcs-cat .cat-filter {
		margin: 10px -16px 0;
		padding: 0 16px;
		flex-wrap: nowrap;
		overflow-x: auto;
		column-gap: 14px;
	}

	.tcs-cat .cat-covers {
		margin-top: 6px;
	}

	.tcs-store .grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 8px;
	}

	/* Previous, the numbers and Next centred, as in the mobile board */
	.tcs-cat .cat-pager {
		margin-top: 40px;
		gap: 2px;
	}

	.tcs-cat .pg-n {
		min-width: 32px;
	}
}

/* Narrow phones (320-374 px): the seven page numbers still fit on one line */
@media (max-width: 374px) {
	.tcs-cat .cat-pager {
		gap: 0;
	}

	.tcs-cat .pg-step {
		min-width: 0;
		padding: 0;
	}

	.tcs-cat .pg-n {
		min-width: 26px;
	}
}

/* ---------- Cover page (board "Prodotto" v2) ---------- */

.tcs-store.tcs-prod {
	padding: 0;
}

/* Two columns on desktop: images | product */
.tcs-prod .prod-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 480px;
	align-items: start;
	padding-left: 40px;
}

.tcs-prod .prod-gallery {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

/* Cover on the mockup photo, cropped 15% per side: the cover is about 30% bigger, still centred */
.tcs-prod .prod-main {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 928 / 1152;
	overflow: hidden;
	line-height: 0;
	background: #EFEFEF;
}

.tcs-prod .prod-main .mk-in {
	inset: -15%;
}

.tcs-prod .prod-spreads {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tcs-prod .prod-spread {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 560px;
	background: #EFEFEF;
}

.tcs-prod .prod-spread-img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.tcs-prod .prod-pages {
	display: flex;
	outline: 1px solid #DCDCDC;
}

.tcs-prod .prod-page {
	width: 300px;
	height: 388px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: #555555;
	text-align: center;
	font-size: 12px;
}

.tcs-prod .prod-page--l {
	background: linear-gradient(to left, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0) 14%), #FAFAF8;
}

.tcs-prod .prod-page--r {
	padding: 0 8px;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0) 12%), #FAFAF8;
}

.tcs-prod .prod-page-xx {
	font-weight: 700;
}

/* Product column: stays in view while the images scroll (store.js lowers it when it is taller than the screen) */
.tcs-prod .prod-info {
	position: sticky;
	top: 177px;
	padding: 8px 40px 40px 48px;
}

.tcs-prod .prod-eyebrow {
	font-size: 12px;
}

.tcs-prod .prod-title {
	margin: 6px 0 0;
	font-size: 34px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.tcs-prod .prod-prices {
	margin: 14px 0 0;
	font-size: 12px;
}

.tcs-prod .prod-desc {
	margin-top: 20px;
	max-width: 380px;
	font-size: 14px;
	line-height: 1.55;
}

.tcs-prod .prod-desc p {
	margin: 0;
}

.tcs-prod .prod-desc p + p {
	margin-top: 0.8em;
}

/* Accordions: native details, the minus sign shows when open */
.tcs-prod summary {
	list-style: none;
	cursor: pointer;
	font-size: 12px;
}

.tcs-prod summary::-webkit-details-marker {
	display: none;
}

.tcs-prod details[open] .acc-v {
	visibility: hidden;
}

.tcs-prod .prod-details summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
}

.tcs-prod .prod-details dl {
	margin: 0 0 6px;
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 4px;
	font-size: 13px;
}

.tcs-prod .prod-details dt {
	font-weight: 400;
}

.tcs-prod .prod-details dd {
	margin: 0;
}

/* Format: two boxes, the chosen one with a double black border */
.tcs-prod .prod-formats {
	margin-top: 18px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.tcs-prod .fmt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 2px;
	min-height: 64px;
	padding: 0 14px;
	border: 1px solid #C8C8C8;
	text-align: left;
}

.tcs-prod .fmt:hover {
	text-decoration: none;
	border-color: #000000;
}

.tcs-prod .fmt.is-on {
	border-color: #000000;
	box-shadow: inset 0 0 0 1px #000000;
}

.tcs-prod .fmt .cap {
	font-size: 12px;
}

.tcs-prod .fmt-price {
	font-size: 14px;
}

.tcs-prod .prod-note {
	margin: 8px 0 0;
	font-size: 13px;
	color: #555555;
}

/* Black buttons (Hello styles buttons pink: reset here) */
.tcs-store .bag,
.tcs-store .bag:hover,
.tcs-store .bag:focus {
	border: 0;
	border-radius: 0;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.tcs-store .bag {
	background: #000000;
	transition: background 0.25s ease;
}

.tcs-store .bag:hover,
.tcs-store .bag:focus-visible {
	background: #333333;
}

.tcs-store .bag:focus-visible {
	outline: 2px solid #000000;
	outline-offset: 3px;
}

.tcs-prod .prod-add {
	display: block;
	margin-top: 16px;
	width: 100%;
	height: 52px;
	padding: 0;
}

.tcs-prod .prod-status {
	margin: 10px 0 0;
	display: flex;
	justify-content: space-between;
	font-size: 13px;
}

.tcs-prod .prod-status:empty {
	display: none;
}

/* WooCommerce adds its own "View cart" after the button on "added_to_cart" (woocommerce.css shows it with
 * .woocommerce a.added_to_cart): the status line already has "View bag" */
.tcs-prod .prod-form a.added_to_cart {
	display: none;
}

.tcs-prod .prod-oc-h {
	margin: 36px 0 0;
	font-size: 12px;
}

.tcs-prod .prod-oc {
	margin-top: 10px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.tcs-prod .prod-oc-item {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.tcs-prod .prod-oc-n {
	margin-top: 4px;
	font-size: 12px;
}

.tcs-prod .prod-acc {
	margin-top: 24px;
	border-top: 1px solid #A0A0A0;
}

.tcs-prod .prod-ship summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	min-height: 48px;
}

.tcs-prod .prod-ship p {
	margin: 0 0 12px;
	font-size: 13px;
	color: #555555;
}

/* Links in the shipping text are recognised by the underline, as "More details" */
.tcs-prod .prod-ship p a {
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

.tcs-prod .prod-contact {
	display: flex;
	align-items: center;
	min-height: 49px; /* 48 px of text area plus the 1 px rule, as in the board */
	border-top: 1px solid #A0A0A0;
	font-size: 12px;
}

/* Other issues */
.tcs-prod .prod-like {
	margin-top: 120px;
	padding: 0 40px;
}

.tcs-prod .prod-like h2 {
	margin: 0 0 16px;
	font-size: 12px;
}

.tcs-prod .prod-like-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

.tcs-store .like-card {
	display: flex;
	flex-direction: column;
}

.tcs-store .like-card .t-issue,
.tcs-store .like-card .t-title {
	display: block;
}

.tcs-store .like-count {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #555555;
}

/* Add to bag at the bottom of the screen: mobile and tablet only */
.tcs-prod .prod-bar {
	display: none;
}

@media (max-width: 1023px) {
	.tcs-prod .prod-cols {
		display: block;
		padding-left: 0;
	}

	.tcs-prod .prod-gallery {
		display: block;
	}

	.tcs-prod .prod-spreads {
		margin-top: 8px;
		flex-direction: row;
		overflow-x: auto;
		padding: 0 16px;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 16px;
	}

	.tcs-prod .prod-spread {
		flex: 0 0 300px;
		height: 220px;
		scroll-snap-align: start;
	}

	.tcs-prod .prod-page {
		width: 118px;
		height: 152px;
	}

	.tcs-prod .prod-info {
		position: static;
		margin-top: 24px;
		padding: 0 16px;
	}

	.tcs-prod .prod-title {
		font-size: 30px;
	}

	.tcs-prod .prod-like {
		margin-top: 64px;
		padding: 0 16px;
	}

	.tcs-prod .prod-like h2 {
		margin-bottom: 12px;
	}

	.tcs-prod .prod-like-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	/* Two issues on mobile, as in the board */
	.tcs-prod .like-card:nth-child(n + 3) {
		display: none;
	}

	.tcs-prod .prod-bar {
		display: block;
		position: sticky;
		bottom: 0;
		z-index: 5;
		margin-top: 40px;
		padding: 8px 16px;
		background: #FFFFFF;
		border-top: 1px solid #E0E0E0;
	}

	.tcs-prod .prod-bar-btn {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		height: 52px;
		padding: 0 16px;
	}
}

/* Tablet: the mobile layout, in a centred column */
@media (min-width: 768px) and (max-width: 1023px) {
	.tcs-store.tcs-prod {
		max-width: 640px;
	}
}

/* ---------- Home (board "Home" v2) ---------- */

.tcs-home .home-latest {
	margin-top: 16px;
}

.tcs-home .home-prev {
	margin-top: 120px;
}

.tcs-home .an-pin {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.tcs-home .home-prev-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	font-size: 12px;
}

.tcs-home .home-prev-count {
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}

.tcs-home .home-rail {
	display: flex;
	gap: 28px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.tcs-home .home-rail .like-card {
	flex: 0 0 300px;
	scroll-snap-align: start;
}

/* The row slides with the page scroll once it is whole in view and moves by hand at any time (store.js), never
 * pinned. The script moves it a little at a time, and a drag follows the pointer: snapping would pull it back to a
 * cover at every step. */
.tcs-home .home-prev.is-linked .home-rail,
.tcs-home .home-prev.is-dragging .home-rail {
	scroll-snap-type: none;
}

.tcs-home .home-prev.is-dragging .home-rail {
	user-select: none;
}

/* Phones and tablets with scroll-driven animations (site.js: tcs-sda; store.js: is-flow), as in the magazine theme: the
 * browser slides the covers with the page scroll on its compositor, as smooth as the scroll itself, from the moment the
 * whole row is in view (entry 100%); store.js writes how far they go and where the slide starts. A sideways drag takes
 * the covers off the slide and moves them with a transform (is-hand, --tcs-x), then they glide to the start of a cover
 * (is-gliding) and go back to the slide; an up and down swipe scrolls the page. Never both motions at once: Safari on
 * the iPhone left the cards white while a translate moved them over the slide (magazine, 2026-11-24).
 * tcs-row-probe changes nothing on screen: from its progress store.js reads the page scroll past "whole row in view"
 * as the browser measures it (on its own timeline, so the slide of the covers keeps running on the compositor). */
.tcs-home .home-prev.is-flow .home-rail {
	overflow-x: hidden;
	scroll-snap-type: none;
	touch-action: pan-y;
	view-timeline-name: --tcs-row, --tcs-row-probe;
	view-timeline-axis: block, block;
	animation: tcs-row-probe linear both;
	animation-timeline: --tcs-row-probe;
	animation-range: entry calc(100% - 20000px) entry calc(100% + 20000px);
}

.tcs-home .home-prev.is-flow .home-rail > * {
	animation: tcs-row linear both;
	animation-timeline: --tcs-row;
	animation-range: entry 100% exit 100%;
}

.tcs-home .home-prev.is-hand .home-rail > * {
	animation: none;
	transform: translateX(var(--tcs-x, 0px));
}

.tcs-home .home-prev.is-gliding .home-rail > * {
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes tcs-row-probe {
	from {
		--tcs-row-at: 0;
	}

	to {
		--tcs-row-at: 1;
	}
}

.tcs-home .home-all {
	margin-top: 64px;
	display: flex;
	justify-content: center;
}

.tcs-home .home-all .bag {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 360px;
	height: 48px;
}

.tcs-home .home-mag {
	margin-top: 140px;
	padding-top: 28px;
	border-top: 1px solid #000000;
}

.tcs-home .home-mag h2 {
	font-size: 12px;
}

.tcs-home .home-mag-link {
	display: inline-block;
	margin-top: 14px;
	font-size: 64px;
	line-height: 1.05;
	text-transform: capitalize;
}

@media (max-width: 767px) {
	.tcs-home .home-latest {
		margin-top: 8px;
	}

	.tcs-home .home-prev {
		margin-top: 72px;
	}

	.tcs-home .home-rail {
		gap: 8px;
		margin: 0 -16px;
		padding: 0 16px;
		scroll-padding-inline: 16px;
	}

	.tcs-home .home-rail .like-card {
		flex-basis: 220px;
	}

	.tcs-home .home-all {
		margin-top: 40px;
	}

	.tcs-home .home-all .bag {
		width: 100%;
	}

	.tcs-home .home-mag {
		margin-top: 80px;
		padding-top: 20px;
	}

	.tcs-home .home-mag-link {
		margin-top: 10px;
		font-size: 40px;
	}
}
