/*
Theme Name: Calmshelf Living
Theme URI: https://calmshelf.com/
Description: A modern mens watch editorial child theme preserving the Watch Collection commerce stack.
Author: Calmshelf
Version: 1.2.0
Template: watch-collection
Requires at least: 7.0
Requires PHP: 8.1
Text Domain: calmshelf-living
*/

:root {
	--cs-navy: #13283f;
	--cs-navy-soft: #213c57;
	--cs-ink: #17212b;
	--cs-muted: #667079;
	--cs-cream: #f7f2e9;
	--cs-paper: #fffdf8;
	--cs-copper: #c8794d;
	--cs-copper-dark: #a65e39;
	--cs-sage: #879487;
	--cs-blue: #8faec7;
	--cs-line: rgba(19, 40, 63, .16);
	--cs-display: Georgia, "Times New Roman", serif;
	--cs-sans: var(--watch-font-body, Arial, sans-serif);
}

body.formandhour-living-theme {
	background: var(--cs-cream);
	color: var(--cs-ink);
}

.formandhour-living-theme .watch-collection-header.is-overlay:not(.is-scrolled),
.formandhour-living-theme .watch-collection-header.is-scrolled {
	background: rgba(247, 242, 233, .96);
	border-bottom: 1px solid var(--cs-line);
	box-shadow: none;
	color: var(--cs-ink);
	backdrop-filter: blur(16px);
}

.formandhour-living-theme .watch-collection-header.is-overlay:not(.is-scrolled) .watch-collection-cart-count {
	background: var(--cs-copper);
	color: #fff;
}

.cs-brand {
	align-items: center;
	display: inline-flex !important;
	gap: 11px;
	text-decoration: none;
}

.cs-brand .cs-brand-mark,
.cs-footer-brand .cs-brand-mark {
	flex: 0 0 auto;
	height: 42px !important;
	max-height: none !important;
	object-fit: contain;
	width: 42px !important;
}

.cs-brand-wordmark,
.cs-footer-brand .watch-collection-footer-wordmark {
	color: var(--cs-navy);
	font-family: var(--cs-display);
	font-size: clamp(22px, 1.8vw, 29px);
	font-weight: 600;
	letter-spacing: -.035em;
	line-height: 1;
	text-transform: none !important;
}

.cs-home {
	background: var(--cs-cream);
	color: var(--cs-ink);
	overflow: clip;
}

.cs-container {
	margin: 0 auto;
	max-width: 1500px;
	padding-left: clamp(18px, 3.25vw, 52px);
	padding-right: clamp(18px, 3.25vw, 52px);
}

.cs-kicker {
	color: var(--cs-copper-dark);
	font-family: var(--cs-sans);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .2em;
	line-height: 1.5;
	margin: 0 0 16px;
	text-transform: uppercase;
}

.cs-hero {
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(290px, .78fr) minmax(470px, 1.52fr) minmax(220px, .58fr);
	margin: 0 auto;
	max-width: 1580px;
	min-height: 750px;
	padding: calc(var(--watch-header-height) + 20px) 18px 18px;
}

.cs-hero-copy {
	align-items: flex-start;
	background: var(--cs-navy);
	color: var(--cs-cream);
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: clamp(34px, 4vw, 66px) clamp(26px, 3vw, 50px);
}

.cs-hero-copy .cs-kicker {
	color: #e4a77c;
}

.cs-hero-copy h1,
.cs-heading h2,
.cs-story-copy h2 {
	font-family: var(--cs-display);
	font-weight: 400;
	letter-spacing: -.055em;
	line-height: .95;
	margin: 0;
}

.cs-hero-copy h1 {
	color: #fffaf1;
	font-size: clamp(54px, 5.1vw, 80px);
	max-width: 470px;
}

.cs-hero-copy > p:not(.cs-kicker) {
	color: rgba(255, 250, 241, .76);
	font-size: 14px;
	line-height: 1.72;
	margin: 26px 0 30px;
	max-width: 390px;
}

.cs-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.cs-button,
.cs-product-card .button {
	align-items: center;
	background: var(--cs-copper);
	border: 1px solid var(--cs-copper);
	border-radius: 0;
	color: #fff;
	display: inline-flex;
	font-size: 11px;
	font-weight: 800;
	gap: 14px;
	justify-content: center;
	letter-spacing: .05em;
	min-height: 48px;
	padding: 12px 21px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.cs-button:hover,
.cs-button:focus-visible,
.cs-product-card .button:hover,
.cs-product-card .button:focus-visible {
	background: var(--cs-navy-soft);
	border-color: var(--cs-navy-soft);
	color: #fff;
	transform: translateY(-2px);
}

.cs-text-link {
	border-bottom: 1px solid currentColor;
	color: var(--cs-navy);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .05em;
	padding-bottom: 3px;
	text-decoration: none;
	text-transform: uppercase;
}

.cs-hero-copy .cs-text-link {
	color: #fffaf1;
}

.cs-hero-index {
	align-items: center;
	display: flex;
	font-family: var(--cs-sans);
	font-size: 9px;
	font-weight: 700;
	gap: 10px;
	letter-spacing: .12em;
	margin-top: clamp(52px, 8vh, 105px);
	opacity: .68;
	width: 100%;
}

.cs-hero-index i {
	background: currentColor;
	display: block;
	height: 1px;
	max-width: 120px;
	width: 38%;
}

.cs-hero figure,
.cs-craft-story,
.cs-story-image {
	margin: 0;
	overflow: hidden;
	position: relative;
}

.cs-hero-main {
	background: #dfd5c4;
	min-height: 0;
}

.cs-hero-main img,
.cs-rail-card img {
	display: block;
	height: 100%;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

.cs-hero-main img {
	object-position: 50% center;
}

.cs-hero-main figcaption,
.cs-craft-story figcaption {
	background: rgba(255, 253, 248, .94);
	bottom: 18px;
	color: var(--cs-navy);
	font-family: var(--cs-display);
	font-size: clamp(20px, 2vw, 30px);
	left: 18px;
	line-height: 1.08;
	max-width: min(380px, calc(100% - 36px));
	padding: 16px 18px;
	position: absolute;
	z-index: 2;
}

.cs-hero-main figcaption span,
.cs-craft-story figcaption span {
	color: var(--cs-copper-dark);
	display: block;
	font-family: var(--cs-sans);
	font-size: 8px;
	font-weight: 800;
	letter-spacing: .18em;
	margin-bottom: 7px;
	text-transform: uppercase;
}

.cs-hero-rail {
	display: grid;
	gap: 10px;
	grid-template-rows: repeat(2, minmax(0, 1fr));
}

.cs-rail-card {
	background: var(--cs-blue);
}

.cs-rail-card.is-cafe {
	background: #d6b08e;
}

.cs-rail-card img {
	object-position: center 32%;
}

.cs-rail-card figcaption {
	background: var(--cs-cream);
	bottom: 12px;
	color: var(--cs-navy);
	font-size: 9px;
	font-weight: 800;
	left: 12px;
	letter-spacing: .12em;
	padding: 8px 10px;
	position: absolute;
	text-transform: uppercase;
}

.cs-section {
	padding: clamp(82px, 9vw, 138px) 0;
}

.cs-heading {
	align-items: flex-end;
	display: flex;
	gap: 32px;
	justify-content: space-between;
	margin-bottom: clamp(34px, 4.5vw, 62px);
}

.cs-heading > div {
	max-width: 930px;
}

.cs-heading h2 {
	color: var(--cs-navy);
	font-size: clamp(44px, 5.2vw, 76px);
}

.cs-heading p:not(.cs-kicker) {
	color: var(--cs-muted);
	font-size: 14px;
	line-height: 1.72;
	margin: 18px 0 0;
	max-width: 650px;
}

.cs-arrivals {
	background: var(--cs-paper);
	border-top: 1px solid var(--cs-line);
}

.cs-arrivals-layout {
	display: grid;
	gap: clamp(24px, 3vw, 46px);
	grid-template-columns: minmax(320px, .83fr) minmax(0, 1.45fr);
}

.cs-craft-story {
	aspect-ratio: 4 / 5;
	background: #c9b292;
}

.cs-craft-story img,
.cs-story-image img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.cs-product-grid {
	align-content: start;
	display: grid;
	gap: 32px 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs-product-card {
	min-width: 0;
	position: relative;
}

.cs-product-media {
	aspect-ratio: 1 / 1;
	background: #f1eee7;
	display: block;
	overflow: hidden;
}

.cs-product-media img {
	height: 100% !important;
	object-fit: contain;
	padding: 7%;
	transition: transform .35s ease;
	width: 100% !important;
}

.cs-product-media:hover img,
.cs-product-media:focus-visible img {
	transform: scale(1.045);
}

.cs-product-copy {
	padding: 14px 2px 0;
}

.cs-product-copy h3 {
	font-family: var(--cs-sans);
	font-size: 12px;
	font-weight: 650;
	line-height: 1.4;
	margin: 0 0 6px;
	min-height: 2.8em;
}

.cs-product-copy h3 a {
	color: var(--cs-ink);
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.cs-product-price {
	color: var(--cs-muted);
	display: block;
	font-size: 12px;
	margin-bottom: 10px;
}

.cs-product-card .button {
	background: transparent;
	border-color: rgba(19, 40, 63, .35);
	color: var(--cs-navy);
	font-size: 9px;
	min-height: 36px;
	padding: 7px 11px;
	width: 100%;
}

.cs-product-card .added_to_cart {
	color: var(--cs-copper-dark);
	display: block;
	font-size: 11px;
	font-weight: 700;
	margin-top: 8px;
}

.cs-collections {
	background: var(--cs-cream);
}

.cs-category-row {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.cs-category-card {
	color: var(--cs-navy);
	display: block;
	min-width: 0;
	position: relative;
	text-decoration: none;
}

.cs-category-number {
	color: rgba(19, 40, 63, .52);
	font-size: 9px;
	font-weight: 800;
	left: 11px;
	letter-spacing: .08em;
	position: absolute;
	top: 11px;
	z-index: 2;
}

.cs-category-media {
	aspect-ratio: 1 / 1.08;
	display: block;
	overflow: hidden;
}

.cs-category-card.tone-1 .cs-category-media { background: #d8d0c0; }
.cs-category-card.tone-2 .cs-category-media { background: #a9bcc8; }
.cs-category-card.tone-3 .cs-category-media { background: #d8a17f; }
.cs-category-card.tone-4 .cs-category-media { background: #aeb8aa; }
.cs-category-card.tone-5 .cs-category-media { background: #c9bcae; }
.cs-category-card.tone-6 .cs-category-media { background: #94a9b9; }

.cs-category-media img {
	height: 100%;
	object-fit: contain;
	padding: 10%;
	transition: transform .35s ease;
	width: 100%;
}

.cs-category-card:hover img,
.cs-category-card:focus-visible img {
	transform: scale(1.06) rotate(-1deg);
}

.cs-category-card strong {
	align-items: center;
	display: flex;
	font-size: 11px;
	font-weight: 750;
	justify-content: space-between;
	letter-spacing: .03em;
	padding: 13px 2px 0;
}

.cs-story {
	background: #dce3e3;
	padding-bottom: 0;
}

.cs-story-grid {
	display: grid;
	grid-template-columns: 1.05fr .88fr 1fr;
	margin: 0 auto;
	max-width: 1580px;
}

.cs-story-image {
	aspect-ratio: 4 / 5;
}

.cs-story-copy {
	align-items: flex-start;
	background: var(--cs-navy);
	color: #fffaf1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(38px, 5vw, 78px);
}

.cs-story-copy .cs-kicker {
	color: #e4a77c;
}

.cs-story-copy h2 {
	color: #fffaf1;
	font-size: clamp(40px, 4.2vw, 66px);
}

.cs-story-copy > p:not(.cs-kicker) {
	color: rgba(255, 250, 241, .74);
	font-size: 14px;
	line-height: 1.72;
	margin: 24px 0 28px;
}

.cs-button.is-outline {
	background: transparent;
	border-color: rgba(255, 250, 241, .7);
	color: #fffaf1;
}

.cs-story-image.is-departure img {
	object-position: center 28%;
}

.cs-story-image figcaption {
	background: rgba(255, 253, 248, .94);
	bottom: 18px;
	color: var(--cs-navy);
	font-family: var(--cs-display);
	font-size: clamp(19px, 2vw, 28px);
	left: 18px;
	line-height: 1.1;
	max-width: calc(100% - 36px);
	padding: 15px 18px;
	position: absolute;
}

.cs-assurances {
	background: var(--cs-paper);
	border-bottom: 1px solid var(--cs-line);
	border-top: 1px solid var(--cs-line);
	padding: 34px 0;
}

.cs-assurance-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cs-assurance-grid > div {
	border-right: 1px solid var(--cs-line);
	display: grid;
	grid-template-columns: auto 1fr;
	padding: 0 26px;
}

.cs-assurance-grid > div:last-child {
	border-right: 0;
}

.cs-assurance-grid span {
	color: var(--cs-copper-dark);
	font-size: 9px;
	font-weight: 800;
	grid-row: 1 / 3;
	letter-spacing: .12em;
	margin-right: 12px;
}

.cs-assurance-grid strong {
	color: var(--cs-navy);
	font-size: 12px;
	margin-bottom: 3px;
}

.cs-assurance-grid small {
	color: var(--cs-muted);
	font-size: 10px;
	line-height: 1.4;
}

.formandhour-living-theme .watch-collection-footer {
	background: var(--cs-cream);
	color: var(--cs-navy);
}

.formandhour-living-theme .watch-collection-footer h2,
.formandhour-living-theme .watch-collection-footer a,
.formandhour-living-theme .watch-collection-newsletter input,
.formandhour-living-theme .watch-collection-newsletter button {
	color: var(--cs-navy);
}

.formandhour-living-theme .watch-collection-footer-signup > p {
	color: var(--cs-muted);
}

.formandhour-living-theme .watch-collection-newsletter {
	border-bottom-color: rgba(19, 40, 63, .45);
}

.formandhour-living-theme .watch-collection-footer-bottom {
	border-top-color: var(--cs-line);
}

.cs-footer-brand {
	align-items: center;
	display: inline-flex !important;
	gap: 11px;
}

@media (min-width: 1101px) {
	.watch-collection-footer-grid {
		gap: clamp(28px, 3vw, 54px);
		grid-template-columns: 1.35fr .7fr .75fr .8fr 1fr;
	}
}

@media (max-width: 1180px) {
	.cs-hero {
		grid-template-columns: minmax(260px, .76fr) minmax(420px, 1.36fr) minmax(190px, .54fr);
		min-height: 680px;
	}

	.cs-hero-copy h1 {
		font-size: clamp(50px, 5vw, 68px);
	}

	.cs-assurance-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 28px;
	}

	.cs-assurance-grid > div:nth-child(2) {
		border-right: 0;
	}
}

@media (max-width: 900px) {
	.cs-hero {
		grid-template-columns: 1fr 1fr;
		padding-top: calc(var(--watch-header-height) + 14px);
	}

	.cs-hero-copy,
	.cs-hero-main {
		grid-column: 1 / -1;
	}

	.cs-hero-copy {
		min-height: 480px;
	}

	.cs-hero-copy h1 {
		font-size: clamp(58px, 10vw, 82px);
	}

	.cs-hero-index {
		margin-top: 48px;
	}

	.cs-hero-main {
		aspect-ratio: 3 / 2;
	}

	.cs-hero-rail {
		display: contents;
	}

	.cs-rail-card {
		aspect-ratio: 4 / 5;
	}

	.cs-arrivals-layout {
		grid-template-columns: 1fr;
	}

	.cs-craft-story {
		aspect-ratio: 5 / 4;
	}

	.cs-craft-story img {
		object-position: center 38%;
	}

	.cs-category-row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 32px;
	}

	.cs-story-grid {
		grid-template-columns: 1fr 1fr;
	}

	.cs-story-copy {
		grid-column: 1 / -1;
		grid-row: 1;
		min-height: 460px;
	}
}

@media (max-width: 620px) {
	.cs-brand .cs-brand-mark {
		height: 34px !important;
		width: 34px !important;
	}

	.cs-brand-wordmark {
		font-size: 21px;
	}

	.cs-hero {
		gap: 6px;
		padding-left: 8px;
		padding-right: 8px;
	}

	.cs-hero-copy {
		min-height: 510px;
		padding: 42px 22px 34px;
	}

	.cs-hero-copy h1 {
		font-size: clamp(49px, 14vw, 61px);
	}

	.cs-hero-copy > p:not(.cs-kicker) {
		font-size: 13px;
		margin: 20px 0 24px;
	}

	.cs-actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.cs-hero-main {
		aspect-ratio: 4 / 3;
	}

	.cs-hero-main img {
		object-position: 56% center;
	}

	.cs-hero-main figcaption {
		bottom: 10px;
		font-size: 18px;
		left: 10px;
		max-width: calc(100% - 20px);
		padding: 12px 14px;
	}

	.cs-rail-card figcaption {
		bottom: 8px;
		font-size: 8px;
		left: 8px;
	}

	.cs-section {
		padding: 78px 0;
	}

	.cs-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 20px;
	}

	.cs-heading h2,
	.cs-story-copy h2 {
		font-size: 43px;
	}

	.cs-craft-story {
		aspect-ratio: 4 / 5;
	}

	.cs-product-grid {
		gap: 30px 10px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cs-product-copy h3 {
		font-size: 11px;
	}

	.cs-category-row {
		gap: 28px 8px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cs-category-card strong {
		font-size: 10px;
	}

	.cs-story-grid {
		display: flex;
		flex-direction: column;
	}

	.cs-story-copy {
		min-height: 0;
		order: -1;
		padding: 72px 22px;
	}

	.cs-assurance-grid {
		grid-template-columns: 1fr;
		row-gap: 0;
	}

	.cs-assurance-grid > div,
	.cs-assurance-grid > div:nth-child(2) {
		border-bottom: 1px solid var(--cs-line);
		border-right: 0;
		padding: 19px 4px;
	}

	.cs-assurance-grid > div:last-child {
		border-bottom: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cs-button,
	.cs-product-card .button,
	.cs-product-media img,
	.cs-category-media img {
		transition: none;
	}
}
