/*
 * Seamless Hold Discovery - Home surface.
 *
 * Covers the Find Your Inspiration launcher row and the Bestselling Fragrances
 * product row. Card interior styling is inherited from shd-cards.css.
 */

.shd-home-finder {
	--shd-primary: #A24522;
	--shd-secondary: #4E341B;
	--shd-text: #1C1106;
	--shd-accent: #846447;
	--shd-muted: #A99883;
	--shd-ivory: #FBF8F3;
	--shd-border: #E2D8CB;

	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	align-items: start;
}

.shd-home-finder__ctrl {
	display: block;
	margin: 0;
	min-width: 0;
}

.shd-home-finder__label {
	display: block;
	margin: 0 0 7px;
	font-family: Manrope, sans-serif;
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.3px;
	line-height: 1.4;
	color: var(--shd-accent);
}

.shd-home-finder__field {
	position: relative;
	display: flex;
	align-items: center;
	background: #FFFFFF;
	border: 1px solid var(--shd-border);
	border-radius: 2px;
	min-height: 38px;
	transition: border-color 0.15s ease;
}

.shd-home-finder__field:focus-within {
	border-color: var(--shd-accent);
}

.shd-home-finder__input,
.shd-home-finder__select {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 9px 8px 9px 13px;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-family: Manrope, sans-serif;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--shd-text);
	-webkit-appearance: none;
	appearance: none;
}

.shd-home-finder__input:focus,
.shd-home-finder__select:focus {
	outline: none;
	box-shadow: none;
}

.shd-home-finder__input::placeholder {
	color: var(--shd-muted);
	opacity: 1;
}

.shd-home-finder__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.shd-home-finder__select {
	padding-right: 32px;
	cursor: pointer;
	color: var(--shd-text);
}

.shd-home-finder__select:invalid,
.shd-home-finder__select option[value=""] {
	color: var(--shd-muted);
}

.shd-home-finder__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px !important;
	min-width: 38px;
	height: auto;
	min-height: 34px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	background-color: transparent !important;
	color: var(--shd-accent) !important;
	cursor: pointer;
}

.shd-home-finder__submit:hover,
.shd-home-finder__submit:focus,
.shd-home-finder__submit:active {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--shd-primary) !important;
	border: 0 !important;
}

.shd-home-finder__icon {
	display: block;
}

.shd-home-finder__chevron {
	position: absolute;
	right: 13px;
	top: 50%;
	width: 7px;
	height: 7px;
	margin-top: -5px;
	border-right: 1.4px solid var(--shd-accent);
	border-bottom: 1.4px solid var(--shd-accent);
	transform: rotate(45deg);
	pointer-events: none;
}

.shd-home-finder__go {
	flex: 0 0 auto;
	margin: 0 4px 0 0;
	padding: 6px 12px;
	border: 0;
	border-radius: 2px;
	background: var(--shd-primary);
	color: #FFFFFF;
	font-family: Manrope, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.6px;
	cursor: pointer;
}

/* With JavaScript the select submits on change, so the fallback button goes. */
.shd-home-finder.has-js .shd-home-finder__go {
	display: none;
}

.shd-home-finder .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ *
 * Bestselling Fragrances row
 * ------------------------------------------------------------------ */

.shd-home-bs {
	width: 100%;
}

.shd-home-bs ul.products,
.shd-home-bs.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.shd-home-bs ul.products::before,
.shd-home-bs ul.products::after {
	content: none;
	display: none;
}

.shd-home-bs ul.products li.product {
	width: 100% !important;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	padding: 12px 8px 14px;
	border: 1px solid #E7DED2;
	border-radius: 2px;
	background: #FFFFFF;
	text-align: center;
	display: flex;
	flex-direction: column;
}

.shd-home-bs ul.products li.product a img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 11 / 10;
	object-fit: contain;
	margin: 0 0 10px;
	background: #F3EDE5;
	border-radius: 2px;
}

.shd-home-bs ul.products li.product .woocommerce-loop-product__title {
	margin: 0 0 2px;
	padding: 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.7px;
	line-height: 1.3;
	text-transform: uppercase;
	color: #1C1106;
}

.shd-home-bs ul.products li.product .price {
	margin: auto 0 0;
	padding-top: 8px;
	border-top: 1px solid #F0E8DE;
	font-size: 13px;
	color: #1C1106;
}

/* No rating, no add-to-cart, no badges in this merchandising row. */
.shd-home-bs ul.products li.product .star-rating,
.shd-home-bs ul.products li.product .woocommerce-product-rating,
.shd-home-bs ul.products li.product .button,
.shd-home-bs ul.products li.product .added_to_cart,
.shd-home-bs ul.products li.product .onsale {
	display: none !important;
}

@media (max-width: 1024px) {
	.shd-home-finder {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}

	.shd-home-finder__field {
		min-height: 44px;
	}

	.shd-home-finder__submit {
		width: 44px;
		min-height: 44px;
	}

	.shd-home-bs ul.products,
	.shd-home-bs.woocommerce ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 14px;
	}
}

@media (max-width: 767px) {
	.shd-home-finder {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.shd-home-finder__input,
	.shd-home-finder__select {
		font-size: 16px;
		padding: 11px 8px 11px 13px;
	}

	.shd-home-bs ul.products,
	.shd-home-bs.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.shd-home-bs ul.products li.product .woocommerce-loop-product__title {
		font-size: 13px;
	}
}


.shd-home-finder--constrained {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
}

/* ---- specificity overrides against theme/kit form styles ---- */
.shd-home-finder .shd-home-finder__input,
.shd-home-finder .shd-home-finder__select {
	padding: 9px 8px 9px 13px !important;
	font-size: 12.5px !important;
	line-height: 1.45 !important;
	border: 0 !important;
	border-radius: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--shd-text) !important;
}

.shd-home-finder .shd-home-finder__select {
	padding-right: 32px !important;
}

.shd-home-finder .shd-home-finder__input:focus,
.shd-home-finder .shd-home-finder__select:focus {
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
}

@media (max-width: 767px) {
	.shd-home-finder .shd-home-finder__input,
	.shd-home-finder .shd-home-finder__select {
		font-size: 16px !important;
		padding: 11px 8px 11px 13px !important;
	}
}
