/* Site-wide styles after design/home-mockup.jpg: header and the "Our Collection" block. */
:root {
	--sh-text: #1e0d03;
	--sh-accent: #7d3829;
	--sh-tan: #a97f6a;
	--sh-line: #e4ddd7;
	--sh-serif: "Bodoni Moda", "Didot", Georgia, serif;
}

/* Header: own light background, above page content (the hero photo used to slide under it). */
#masthead {
	position: relative;
	z-index: 20;
	background: #fbf8f6;
}

/* Home hero: text sits inside the photo, over a soft dark fade at the bottom. */
.sh-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	font-family: "Montserrat", sans-serif;
	background: #2a1c16;
}
.elementor .sh-hero .sh-hero__image {
	display: block;
	width: 100%;
	height: min(calc(100svh - 96px), 62.5vw);
	min-height: 520px;
	object-fit: cover;
	object-position: center 30%;
}
.sh-hero::after {
	content: "";
	position: absolute;
	inset: 45% 0 0;
	background: linear-gradient(to bottom, rgba(30, 13, 3, 0), rgba(30, 13, 3, 0.62));
	pointer-events: none;
}
.sh-hero__content {
	position: absolute;
	inset: auto 0 0;
	z-index: 1;
	padding: 0 clamp(16px, 4vw, 64px) clamp(28px, 5vw, 64px);
}
.sh-hero .sh-hero__title {
	font-family: "Italiana", serif;
	font-weight: 400;
	font-size: clamp(44px, 9vw, 132px);
	line-height: 0.95;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #fff;
	margin: 0;
	text-shadow: 0 2px 24px rgba(30, 13, 3, 0.35);
}
.sh-hero__tagline {
	margin: 10px 0 24px;
	font-size: clamp(14px, 1.4vw, 18px);
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #f4e1c1;
}
.sh-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.elementor .sh-hero .sh-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 32px;
	font-size: 15px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}
.elementor .sh-hero .sh-hero__button--primary {
	background: var(--sh-accent);
	color: #fff;
}
.elementor .sh-hero .sh-hero__button--primary:hover {
	background: #5e2a1f;
}
.elementor .sh-hero .sh-hero__button--ghost {
	border: 1px solid rgba(255, 255, 255, 0.85);
	color: #fff;
}
.elementor .sh-hero .sh-hero__button--ghost:hover {
	background: #fff;
	color: var(--sh-text);
}
.sh-hero__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}
@media (max-width: 767px) {
	.elementor .sh-hero .sh-hero__image {
		height: calc(100svh - 70px);
		min-height: 480px;
		max-height: 680px;
	}
	.sh-hero::after {
		inset: 35% 0 0;
	}
	.sh-hero__actions {
		flex-direction: column;
	}
	.elementor .sh-hero .sh-hero__button {
		width: 100%;
	}
}

/* Header */
.site-header .site-title,
.site-header .site-title a {
	font-family: var(--sh-serif);
	font-weight: 400;
	font-size: 30px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--sh-text);
}
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
	font-family: var(--sh-serif);
	font-size: 16px;
	color: var(--sh-text);
	padding: 0 14px;
}
/* Anchor links to the home page all count as "current" there; underline only real current pages. */
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link:hover,
.ast-builder-menu-1 .main-header-menu > .current-menu-item.menu-item-type-post_type > .menu-link {
	color: var(--sh-text);
	text-decoration: underline;
	text-decoration-color: var(--sh-accent);
	text-underline-offset: 6px;
}
.site-header .ast-search-menu-icon .astra-search-icon,
.site-header .ast-header-account-wrap .ast-header-account-link,
.site-header .ast-header-account-wrap svg,
.site-header .ast-site-header-cart .ast-cart-menu-wrap,
.site-header .ast-site-header-cart svg,
.site-header .ast-icon svg {
	color: var(--sh-text);
	fill: var(--sh-text);
}
.site-header .ast-site-header-cart .ast-cart-menu-wrap .count,
.site-header .ast-site-header-cart .ast-addon-cart-wrap .ast-icon-shopping-cart::after {
	background: var(--sh-text);
	color: #fff;
	border-color: var(--sh-text);
}

/* Our Collection (home) */
.sh-collection {
	font-family: "Montserrat", sans-serif;
	color: var(--sh-text);
}
/* Beats the theme's underline for links inside page content (.ast-single-post .entry-content a). */
.entry-content .sh-collection a.sh-category,
.entry-content .sh-collection a.sh-collection__catalog-link {
	text-decoration: none;
}
.sh-collection__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}
.sh-collection .sh-collection__title {
	font-family: "Italiana", serif;
	font-weight: 600;
	font-size: clamp(40px, 6.2vw, 80px);
	line-height: 1;
	text-transform: uppercase;
	color: var(--sh-accent);
	margin: 0;
}
.sh-collection__catalog {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	flex: none;
	font-size: 13px;
}
.sh-collection .sh-collection__catalog-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 176px;
	min-height: 44px;
	padding: 0 24px;
	border: 2px solid var(--sh-accent);
	color: var(--sh-accent);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}
.sh-collection .sh-collection__catalog-link:hover {
	background: var(--sh-accent);
	color: #fff;
}

.sh-collection ul.sh-collection__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}
.sh-collection__grid li {
	margin: 0;
}
.sh-collection .sh-category {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: var(--sh-text);
}
.sh-category__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f4eee9;
}
.sh-category__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #efe6df, #dccabd);
	font-family: var(--sh-serif);
	font-size: 24px;
	color: rgba(30, 13, 3, 0.45);
}
.sh-category__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.sh-category:hover .sh-category__image img {
	transform: scale(1.03);
}
.sh-category__title {
	font-family: var(--sh-serif);
	font-size: clamp(26px, 3vw, 38px); /* "Machine Weft" stays on one line in a 4-card row */
	white-space: nowrap;
	line-height: 1.2;
	margin: 22px 0 18px;
}
.sh-category__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: min(270px, 100%);
	min-height: 64px;
	padding: 0 32px;
	background: var(--sh-tan);
	color: #fff;
	font-size: 20px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: background-color 0.15s;
}
.sh-category:hover .sh-category__button {
	background: var(--sh-accent);
}
.sh-category:focus-visible,
.sh-collection__catalog-link:focus-visible {
	outline: 2px solid var(--sh-accent);
	outline-offset: 4px;
}

@media (max-width: 921px) {
	.site-header .site-title,
	.site-header .site-title a {
		font-size: 22px;
	}
}

@media (max-width: 1023px) {
	.sh-collection ul.sh-collection__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.sh-collection__head {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 20px;
	}
	.sh-collection__catalog {
		align-items: flex-start;
	}
	.sh-collection ul.sh-collection__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	.sh-category__title {
		margin: 14px 0 12px;
	}
	.sh-category__button {
		min-height: 52px;
		font-size: 16px;
	}
}

/* ------------------------------------------------------------------
   Mobile & touch polish (from the mobile audit: Safari on iPhone,
   Chrome on Android, 320–844 px).
   ------------------------------------------------------------------ */

/* Nothing may scroll the page sideways (CookieYes' hidden preferences panel is wider than phones). */
html,
body {
	overflow-x: clip;
}

/* Logo and site name: a finger-sized tap area around them. */
.site-header .custom-logo-link,
.site-header .site-title a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* WooCommerce focuses its notices for screen readers; brand colour instead of browser blue. */
.woocommerce-message:focus,
.woocommerce-error:focus,
.woocommerce-info:focus,
.woocommerce-notices-wrapper :focus {
	outline: 2px solid var(--sh-accent);
	outline-offset: 2px;
}

/* Home "Hair Guide": the three tip boxes get the same padding, text centred vertically. */
.elementor-element-8838446 .elementor-element-3eef116 > .elementor-widget-wrap,
.elementor-element-8838446 .elementor-element-0f98510 > .elementor-widget-wrap,
.elementor-element-8838446 .elementor-element-c71b60a > .elementor-widget-wrap {
	padding: 24px !important;
	align-content: center;
	align-items: center;
}
.elementor-element-8838446 .elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

@media (max-width: 921px) {
	/* Form fields under 16px make iOS Safari zoom in on tap. */
	html body input[type="text"],
	html body input[type="email"],
	html body input[type="tel"],
	html body input[type="search"],
	html body input[type="number"],
	html body input[type="password"],
	html body input[type="date"],
	html body input[type="time"],
	html body input.search-field,
	html body select,
	html body textarea {
		font-size: 16px;
	}

	/* Breadcrumb links: taller tap area without changing the look. */
	.woocommerce-breadcrumb a,
	.sh-catalog__breadcrumb a {
		display: inline-block;
		padding: 10px 0;
	}

	/* Cart: remove (×) button big enough for a finger. */
	.woocommerce a.remove {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}

	/* Search button next to the search field (404 page, search results). */
	.ast-search-submit,
	.search-form .search-submit {
		min-width: 44px;
		min-height: 44px;
	}

	/* Login: "show password" eye and "remember me" checkbox. */
	.woocommerce form .show-password-input {
		width: 44px;
		height: 44px;
		top: 50%;
		right: 0;
		transform: translateY(-50%);
		background-position: center;
	}
	.woocommerce form input[type="checkbox"] {
		width: 20px;
		height: 20px;
		vertical-align: middle;
	}
}

/* Narrow phones (iPhone SE, 360px Androids): keep the name on one line. */
@media (max-width: 400px) {
	.site-header .site-title,
	.site-header .site-title a {
		font-size: 19px;
		white-space: nowrap;
	}
	.site-header .custom-logo-link img {
		max-width: 30px;
	}
}

/* Currency switcher in the header ("CAD ⌄", as in the mockup). */
.sh-currency {
	position: relative;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	color: var(--sh-text);
}
.sh-currency summary {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	padding: 0 6px;
	list-style: none;
	cursor: pointer;
	font-weight: 500;
}
.sh-currency summary::-webkit-details-marker {
	display: none;
}
.sh-currency summary::after {
	content: "";
	width: 6px;
	height: 6px;
	margin: -3px 0 0 4px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}
.sh-currency__list {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 30;
	min-width: 190px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--sh-line);
	border-radius: 4px;
	box-shadow: 0 10px 30px rgba(30, 13, 3, 0.12);
}
.sh-currency__list li {
	margin: 0;
}
.sh-currency__list a {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-height: 44px;
	padding: 12px 16px;
	color: var(--sh-text);
	text-decoration: none;
	font-weight: 600;
}
.sh-currency__list a span {
	font-weight: 400;
	color: #6f625a;
}
.sh-currency__list a:hover,
.sh-currency__list a[aria-current="true"] {
	background: #f4eee9;
}
/* Inside the phone menu the list opens in place. */
.ast-mobile-popup-content .sh-currency,
.ast-mobile-header-content .sh-currency {
	padding: 0 20px;
}
.ast-mobile-popup-content .sh-currency__list,
.ast-mobile-header-content .sh-currency__list {
	position: static;
	box-shadow: none;
}
