/*
Theme Name: Object Harbor Living
Theme URI: https://objectharbor.com/
Description: A bright, warm, modern storefront child theme that preserves the Watch Collection commerce integrations.
Author: Object Harbor
Template: watch-collection
Version: 1.0.0
Requires at least: 7.0
Requires PHP: 8.1
Text Domain: object-harbor-living
*/

:root {
	--oh-ink: #193b39;
	--oh-ink-deep: #102e2c;
	--oh-cream: #fff9f2;
	--oh-sand: #f3e8da;
	--oh-coral: #e86f51;
	--oh-coral-dark: #bd4d36;
	--oh-apricot: #ffc59d;
	--oh-sage: #b7c9a8;
	--oh-teal: #1e5e5b;
	--oh-sun: #f5bf47;
	--oh-white: #fffefa;
	--oh-border: rgba(25, 59, 57, .16);
	--oh-shadow: 0 18px 55px rgba(61, 46, 31, .12);
	--oh-radius-sm: 14px;
	--oh-radius: 24px;
	--oh-radius-lg: 38px;
	--oh-max: 1280px;
	--oh-gutter: clamp(20px, 4vw, 64px);
}

.object-harbor-living {
	background: var(--oh-cream);
	color: var(--oh-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.object-harbor-living h1,
.object-harbor-living h2,
.object-harbor-living h3,
.object-harbor-living h4 {
	color: var(--oh-ink-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	letter-spacing: -.035em;
	line-height: .98;
}

.object-harbor-living :focus-visible {
	outline: 3px solid var(--oh-sun);
	outline-offset: 4px;
}

.object-harbor-living .watch-collection-header {
	background: rgba(255, 254, 250, .96);
	border-bottom-color: var(--oh-border);
	color: var(--oh-ink-deep);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.object-harbor-living .watch-collection-header.is-overlay:not(.is-scrolled) {
	background: rgba(255, 251, 245, .92);
	border-bottom-color: rgba(25, 59, 57, .12);
	color: var(--oh-ink-deep);
}

.object-harbor-living .watch-collection-header.is-scrolled {
	background: rgba(255, 254, 250, .97);
	box-shadow: 0 10px 35px rgba(25, 59, 57, .1);
	color: var(--oh-ink-deep);
}

.object-harbor-living .watch-collection-brand {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(18px, 1.7vw, 26px);
	font-weight: 600;
	letter-spacing: -.015em;
	text-transform: none;
}

.object-harbor-living .watch-collection-desktop-nav > a,
.object-harbor-living .watch-collection-mega-trigger > a {
	font-size: 13px;
	font-weight: 650;
	letter-spacing: .025em;
}

.object-harbor-living .watch-collection-cart-count,
.object-harbor-living .is-overlay:not(.is-scrolled) .watch-collection-cart-count {
	background: var(--oh-coral);
	color: #fff;
}

.oh-home {
	background: var(--oh-cream);
	overflow: clip;
}

.oh-home *,
.oh-home *::before,
.oh-home *::after {
	box-sizing: border-box;
}

.oh-home img {
	display: block;
	height: auto;
	max-width: 100%;
}

.oh-hero {
	background: #efe5d5;
	height: min(850px, 90vh);
	min-height: 680px;
	position: relative;
}

.oh-hero__media,
.oh-hero__media img,
.oh-hero__wash {
	inset: 0;
	position: absolute;
}

.oh-hero__media img {
	height: 100%;
	object-fit: cover;
	object-position: center;
	width: 100%;
}

.oh-hero__wash {
	background:
		linear-gradient(90deg, rgba(255, 249, 242, .97) 0%, rgba(255, 249, 242, .83) 25%, rgba(255, 249, 242, .2) 52%, rgba(255, 249, 242, 0) 70%),
		linear-gradient(0deg, rgba(16, 46, 44, .08), transparent 35%);
}

.oh-hero__content {
	left: max(var(--oh-gutter), calc((100vw - var(--oh-max)) / 2));
	max-width: 590px;
	position: absolute;
	top: 54%;
	transform: translateY(-50%);
	z-index: 2;
}

.oh-eyebrow {
	align-items: center;
	color: var(--oh-coral-dark);
	display: flex;
	font-size: 12px;
	font-weight: 800;
	gap: 10px;
	letter-spacing: .15em;
	line-height: 1.4;
	margin: 0 0 18px;
	text-transform: uppercase;
}

.oh-eyebrow::before {
	background: currentColor;
	border-radius: 999px;
	content: "";
	height: 7px;
	width: 7px;
}

.oh-hero h1 {
	font-size: clamp(58px, 6.2vw, 96px);
	margin: 0 0 28px;
	max-width: 760px;
}

.oh-hero__content > p:not(.oh-eyebrow) {
	font-size: clamp(17px, 1.35vw, 21px);
	line-height: 1.65;
	margin: 0;
	max-width: 520px;
}

.oh-hero__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-top: 38px;
}

.oh-button {
	align-items: center;
	border: 0;
	border-radius: 999px;
	display: inline-flex;
	font-size: 14px;
	font-weight: 800;
	justify-content: center;
	letter-spacing: .035em;
	min-height: 54px;
	padding: 14px 27px;
	text-decoration: none;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.oh-button:hover {
	transform: translateY(-2px);
}

.oh-button--primary {
	background: var(--oh-coral);
	box-shadow: 0 12px 26px rgba(189, 77, 54, .22);
	color: #fff;
}

.oh-button--primary:hover {
	background: var(--oh-coral-dark);
	color: #fff;
}

.oh-button--light {
	background: var(--oh-white);
	color: var(--oh-ink-deep);
}

.oh-text-link {
	align-items: center;
	color: var(--oh-ink-deep);
	display: inline-flex;
	font-size: 14px;
	font-weight: 800;
	gap: 9px;
	text-decoration: none;
	text-underline-offset: 5px;
}

.oh-text-link span {
	font-size: 20px;
	transition: transform .2s ease;
}

.oh-text-link:hover {
	color: var(--oh-coral-dark);
	text-decoration: underline;
}

.oh-text-link:hover span {
	transform: translateX(4px);
}

.oh-promise {
	background: var(--oh-ink-deep);
	color: #fff;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 0 auto;
	padding: 30px max(var(--oh-gutter), calc((100vw - var(--oh-max)) / 2));
}

.oh-promise > div {
	align-items: center;
	border-right: 1px solid rgba(255, 255, 255, .18);
	display: grid;
	gap: 2px 14px;
	grid-template-columns: 40px 1fr;
	padding: 0 clamp(18px, 3vw, 50px);
}

.oh-promise > div:first-child {
	padding-left: 0;
}

.oh-promise > div:last-child {
	border-right: 0;
	padding-right: 0;
}

.oh-promise > div > span {
	align-items: center;
	background: rgba(255, 255, 255, .11);
	border-radius: 50%;
	display: flex;
	font-size: 19px;
	grid-row: 1 / 3;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.oh-promise strong {
	font-size: 13px;
	letter-spacing: .025em;
}

.oh-promise small {
	color: rgba(255, 255, 255, .68);
	font-size: 11px;
	line-height: 1.35;
}

.oh-section {
	margin: 0 auto;
	max-width: var(--oh-max);
	padding: clamp(78px, 9vw, 132px) var(--oh-gutter) 0;
}

.oh-section__heading {
	align-items: end;
	display: grid;
	gap: 40px;
	grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
	margin-bottom: clamp(34px, 5vw, 64px);
}

.oh-section__heading--row {
	grid-template-columns: minmax(0, 1fr) auto;
}

.oh-section__heading h2 {
	font-size: clamp(42px, 5vw, 70px);
	margin: 0;
	max-width: 840px;
}

.oh-section__heading > p {
	font-size: 16px;
	line-height: 1.7;
	margin: 0;
}

.oh-category-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oh-category-card {
	background: var(--oh-sand);
	border-radius: var(--oh-radius);
	color: var(--oh-ink-deep);
	display: grid;
	grid-template-rows: minmax(270px, 1fr) auto;
	min-width: 0;
	overflow: hidden;
	position: relative;
	text-decoration: none;
	transition: box-shadow .25s ease, transform .25s ease;
}

.oh-category-card:hover {
	box-shadow: var(--oh-shadow);
	color: var(--oh-ink-deep);
	transform: translateY(-5px);
}

.oh-category-card--2 { background: #f8d9c9; }
.oh-category-card--3 { background: #d9e3cc; }
.oh-category-card--4 { background: #d7e6e5; }

.oh-category-card__media {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 0;
	overflow: hidden;
}

.oh-category-card__media:empty::after {
	color: rgba(25, 59, 57, .45);
	content: "✦";
	font-size: 70px;
}

.oh-category-card__media img {
	height: 100%;
	object-fit: contain;
	padding: 22px;
	transition: transform .45s ease;
	width: 100%;
}

.oh-category-card:hover .oh-category-card__media img {
	transform: scale(1.035) rotate(-1deg);
}

.oh-category-card__copy {
	display: grid;
	gap: 7px;
	padding: 8px 26px 28px;
}

.oh-category-card__copy small {
	font-size: 11px;
	font-weight: 750;
	letter-spacing: .11em;
	opacity: .65;
	text-transform: uppercase;
}

.oh-category-card__copy strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(25px, 2.3vw, 34px);
	font-weight: 500;
	letter-spacing: -.025em;
	line-height: 1.05;
}

.oh-category-card__copy em {
	font-size: 12px;
	font-style: normal;
	font-weight: 800;
	margin-top: 8px;
}

.oh-product-grid {
	display: grid;
	gap: clamp(18px, 2.2vw, 30px);
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.oh-product-card {
	background: var(--oh-white);
	border: 1px solid rgba(25, 59, 57, .1);
	border-radius: var(--oh-radius-sm);
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}

.oh-product-card:hover {
	box-shadow: var(--oh-shadow);
	transform: translateY(-4px);
}

.oh-product-card__media {
	align-items: center;
	aspect-ratio: 1 / 1.06;
	background: #f5eee6;
	display: flex;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.oh-product-card__media img {
	height: 100%;
	object-fit: contain;
	padding: clamp(14px, 2vw, 28px);
	transition: transform .4s ease;
	width: 100%;
}

.oh-product-card:hover .oh-product-card__media img {
	transform: scale(1.045);
}

.oh-product-card__badge {
	background: var(--oh-sun);
	border-radius: 999px;
	color: var(--oh-ink-deep);
	font-size: 10px;
	font-weight: 850;
	left: 12px;
	letter-spacing: .06em;
	padding: 8px 11px;
	position: absolute;
	top: 12px;
	text-transform: uppercase;
}

.oh-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.oh-product-card__category {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .1em;
	line-height: 1.35;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.oh-product-card__category a {
	color: var(--oh-coral-dark);
	text-decoration: none;
}

.oh-product-card h3 {
	font-family: inherit;
	font-size: 16px;
	font-weight: 750;
	letter-spacing: -.01em;
	line-height: 1.35;
	margin: 0 0 18px;
}

.oh-product-card h3 a {
	color: var(--oh-ink-deep);
	text-decoration: none;
}

.oh-product-card__bottom {
	align-items: end;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin-top: auto;
}

.oh-product-card__price {
	color: var(--oh-ink-deep);
	font-size: 15px;
	font-weight: 850;
	line-height: 1.3;
}

.oh-product-card__price del {
	font-size: 11px;
	opacity: .48;
}

.oh-product-card__price ins {
	background: transparent;
	text-decoration: none;
}

.oh-product-card__action .button {
	align-items: center;
	background: var(--oh-ink-deep);
	border: 0;
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	font-size: 0;
	height: 42px;
	justify-content: center;
	min-height: 42px;
	min-width: 42px;
	padding: 0;
	width: 42px;
}

.oh-product-card__action .button::before {
	content: "+";
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
}

.oh-product-card__action .button:hover {
	background: var(--oh-coral);
	color: #fff;
}

.oh-product-card__action .added_to_cart {
	display: none;
}

.oh-editorial {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oh-story {
	border-radius: var(--oh-radius-lg);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.oh-story--coral {
	background: #f8d8c6;
}

.oh-story--teal {
	background: #d5e4e2;
}

.oh-story__media {
	aspect-ratio: 5 / 4;
	overflow: hidden;
}

.oh-story__media img {
	height: 100%;
	object-fit: cover;
	transition: transform .7s ease;
	width: 100%;
}

.oh-story:hover .oh-story__media img {
	transform: scale(1.025);
}

.oh-story__copy {
	padding: clamp(28px, 4vw, 54px);
}

.oh-story__copy h2 {
	font-size: clamp(38px, 4.2vw, 58px);
	margin: 0 0 22px;
}

.oh-story__copy > p:not(.oh-eyebrow) {
	font-size: 15px;
	line-height: 1.7;
	margin: 0 0 26px;
}

.oh-related {
	background: #f3e8da;
	border-radius: var(--oh-radius-lg);
	margin-top: clamp(78px, 9vw, 132px);
	max-width: calc(var(--oh-max) - (var(--oh-gutter) * 2));
	padding: clamp(58px, 7vw, 94px) clamp(24px, 5vw, 72px);
}

.oh-related .oh-section__heading {
	margin-bottom: 42px;
}

.oh-closing {
	align-items: center;
	background: var(--oh-coral);
	border-radius: var(--oh-radius-lg);
	color: #fff;
	display: flex;
	gap: 40px;
	justify-content: space-between;
	margin-bottom: clamp(78px, 9vw, 132px);
	margin-top: clamp(78px, 9vw, 132px);
	max-width: calc(var(--oh-max) - (var(--oh-gutter) * 2));
	padding: clamp(44px, 6vw, 76px);
}

.oh-closing .oh-eyebrow,
.oh-closing h2 {
	color: #fff;
}

.oh-closing h2 {
	font-size: clamp(40px, 5vw, 68px);
	margin: 0;
	max-width: 820px;
}

.object-harbor-living .watch-collection-footer {
	background: var(--oh-ink-deep);
	color: #fff;
}

.object-harbor-living .watch-collection-footer a,
.object-harbor-living .watch-collection-footer h2,
.object-harbor-living .watch-collection-footer h3,
.object-harbor-living .watch-collection-footer strong {
	color: #fff;
}

.object-harbor-living .watch-collection-footer input {
	border-color: rgba(255, 255, 255, .35);
	color: #fff;
}

.object-harbor-living .watch-collection-footer input::placeholder {
	color: rgba(255, 255, 255, .6);
}

@media (max-width: 1080px) {
	.oh-hero {
		height: 760px;
	}

	.oh-hero__content {
		max-width: 510px;
	}

	.oh-hero h1 {
		font-size: clamp(54px, 7vw, 78px);
	}

	.oh-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.oh-category-card {
		grid-template-rows: minmax(220px, 1fr) auto;
	}
}

@media (max-width: 820px) {
	.oh-promise {
		grid-template-columns: 1fr;
		padding-bottom: 12px;
		padding-top: 12px;
	}

	.oh-promise > div,
	.oh-promise > div:first-child,
	.oh-promise > div:last-child {
		border-bottom: 1px solid rgba(255, 255, 255, .16);
		border-right: 0;
		padding: 15px 0;
	}

	.oh-promise > div:last-child {
		border-bottom: 0;
	}

	.oh-section__heading,
	.oh-section__heading--row {
		align-items: start;
		gap: 22px;
		grid-template-columns: 1fr;
	}

	.oh-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.oh-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.oh-editorial {
		grid-template-columns: 1fr;
	}

	.oh-closing {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 700px) {
	:root {
		--oh-gutter: 18px;
		--oh-radius: 20px;
		--oh-radius-lg: 26px;
	}

	.object-harbor-living .watch-collection-header.is-overlay:not(.is-scrolled) {
		background: rgba(255, 251, 245, .97);
	}

	.oh-hero {
		display: flex;
		flex-direction: column;
		height: auto;
		min-height: 0;
		padding-top: var(--watch-header-height, 72px);
	}

	.oh-hero__media {
		aspect-ratio: 4 / 5;
		inset: auto;
		order: 1;
		position: relative;
	}

	.oh-hero__media img {
		object-position: center;
	}

	.oh-hero__wash {
		display: none;
	}

	.oh-hero__content {
		background: var(--oh-cream);
		left: auto;
		max-width: none;
		order: 2;
		padding: 32px var(--oh-gutter) 44px;
		position: relative;
		top: auto;
		transform: none;
	}

	.oh-hero h1 {
		font-size: clamp(45px, 13vw, 62px);
		margin-bottom: 20px;
	}

	.oh-hero__content > p:not(.oh-eyebrow) {
		font-size: 16px;
		line-height: 1.55;
	}

	.oh-hero__actions {
		align-items: flex-start;
		flex-direction: column;
		gap: 20px;
		margin-top: 28px;
	}

	.oh-button {
		width: 100%;
	}

	.oh-section {
		padding-top: 74px;
	}

	.oh-section__heading {
		margin-bottom: 32px;
	}

	.oh-section__heading h2 {
		font-size: clamp(39px, 11vw, 52px);
	}

	.oh-category-grid {
		display: flex;
		gap: 14px;
		margin: 0 calc(var(--oh-gutter) * -1);
		overflow-x: auto;
		padding: 0 var(--oh-gutter) 12px;
		scroll-padding-left: var(--oh-gutter);
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	.oh-category-card {
		flex: 0 0 min(78vw, 320px);
		grid-template-rows: 245px auto;
		scroll-snap-align: start;
	}

	.oh-product-grid {
		gap: 12px;
	}

	.oh-product-card__body {
		padding: 14px;
	}

	.oh-product-card h3 {
		font-size: 13px;
		margin-bottom: 14px;
	}

	.oh-product-card__category {
		font-size: 8px;
	}

	.oh-product-card__price {
		font-size: 13px;
	}

	.oh-product-card__action .button {
		height: 36px;
		min-height: 36px;
		min-width: 36px;
		width: 36px;
	}

	.oh-product-card__action .button::before {
		font-size: 20px;
	}

	.oh-story__copy {
		padding: 28px 22px 34px;
	}

	.oh-story__copy h2 {
		font-size: 42px;
	}

	.oh-related,
	.oh-closing {
		border-radius: 0;
		margin-left: 0;
		margin-right: 0;
		max-width: none;
	}

	.oh-related {
		padding: 54px var(--oh-gutter);
	}

	.oh-closing {
		margin-bottom: 0;
		padding: 48px var(--oh-gutter);
	}
}

@media (max-width: 390px) {
	.oh-product-card__bottom {
		align-items: start;
		flex-direction: column;
	}

	.oh-product-card__action,
	.oh-product-card__action .button {
		border-radius: 999px;
		width: 100%;
	}

	.oh-product-card__action .button {
		font-size: 10px;
		font-weight: 800;
		padding: 0 10px;
	}

	.oh-product-card__action .button::before {
		content: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oh-home *,
	.oh-home *::before,
	.oh-home *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}



/* Object Harbor policy footer column */
@media (min-width: 1025px) {
	.watch-collection-footer-grid {
		gap: clamp(24px, 3vw, 52px);
		grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(0, .75fr));
	}
}


/*
 * Product card hover-image safety.
 * Keep the primary image visible unless the template confirms a readable
 * secondary attachment and adds the has-hover-image class.
 */
.watch-collection-product-hover-image {
	opacity: 0;
}

.watch-collection-product-card-media:hover .watch-collection-product-primary-image {
	opacity: 1;
}

.watch-collection-product-card-media.has-hover-image:hover .watch-collection-product-hover-image {
	opacity: 1;
}

.watch-collection-product-card-media.has-hover-image:hover .watch-collection-product-primary-image {
	opacity: 0;
}
