/* Sublime Souls Commerce storefront helpers. Brand variables can be overridden by the active theme. */
:root {
	--lc-forest: #2c3729;
	--lc-gold: #cbb57b;
	--lc-sage: #c3c9c0;
	--lc-blush: #e5dad6;
	--lc-paper: #fbfaf7;
	--lc-ink: #172015;
	--lc-border: rgba(44, 55, 41, 0.14);
	--lc-shadow: 0 24px 70px rgba(23, 32, 21, 0.13);
}

.lc-search,
.lc-product-grid,
.lc-quick-add,
.lc-contact {
	box-sizing: border-box;
}

.lc-search *,
.lc-product-grid *,
.lc-quick-add *,
.lc-contact * {
	box-sizing: border-box;
}

.lc-search {
	position: relative;
	z-index: 20;
	width: min(100%, 760px);
	color: var(--lc-ink);
}

.lc-search__form {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	min-height: 64px;
	margin: 0;
	padding: 7px;
	border: 1px solid var(--lc-border);
	border-radius: 18px;
	background: rgba(251, 250, 247, 0.94);
	box-shadow: 0 10px 38px rgba(23, 32, 21, 0.08);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.lc-search:focus-within .lc-search__form,
.lc-search.is-open .lc-search__form {
	border-color: rgba(44, 55, 41, 0.42);
	box-shadow: 0 14px 46px rgba(23, 32, 21, 0.13), 0 0 0 4px rgba(203, 181, 123, 0.17);
}

.lc-search__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	color: var(--lc-forest);
}

.lc-search__icon::before {
	width: 14px;
	height: 14px;
	content: "";
	border: 2px solid currentColor;
	border-radius: 50%;
}

.lc-search__icon::after {
	position: absolute;
	left: calc(50% + 6px);
	top: calc(50% + 6px);
	width: 8px;
	height: 2px;
	content: "";
	background: currentColor;
	border-radius: 2px;
	transform: rotate(45deg);
	transform-origin: left center;
}

.lc-search__input {
	min-width: 0;
	height: 48px;
	padding: 0 10px 0 2px !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--lc-ink) !important;
	font: inherit;
	font-size: clamp(16px, 1.35vw, 18px) !important;
	line-height: 1.2;
}

.lc-search__input::placeholder {
	color: rgba(23, 32, 21, 0.54);
	opacity: 1;
}

.lc-search__input::-webkit-search-cancel-button {
	cursor: pointer;
}

.lc-search__submit,
.lc-quick-add__button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px !important;
	border: 1px solid var(--lc-forest) !important;
	border-radius: 12px !important;
	background: var(--lc-forest) !important;
	box-shadow: none !important;
	color: #fff !important;
	font: inherit !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em;
	line-height: 1 !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease !important;
}

.lc-search__submit:hover,
.lc-quick-add__button:hover {
	background: #202a1e !important;
	box-shadow: 0 9px 26px rgba(44, 55, 41, 0.2) !important;
	transform: translateY(-1px);
}

.lc-search__submit:focus-visible,
.lc-quick-add__button:focus-visible,
.lc-search__product-link:focus-visible,
.lc-search__add:focus-visible {
	outline: 3px solid var(--lc-gold) !important;
	outline-offset: 3px;
}

.lc-search--compact .lc-search__form {
	min-height: 54px;
	padding: 5px;
}

.lc-search--compact .lc-search__input,
.lc-search--compact .lc-search__submit {
	height: 42px;
	min-height: 42px;
}

.lc-search__results {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	max-height: min(68vh, 620px);
	padding: 9px;
	overflow: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--lc-border);
	border-radius: 18px;
	background: rgba(251, 250, 247, 0.985);
	box-shadow: var(--lc-shadow);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	transform-origin: top center;
	animation: lc-search-open 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lc-search__results[hidden] {
	display: none !important;
}

.lc-search__list {
	display: grid;
	gap: 4px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.lc-search__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 17px;
	transition: background-color 150ms ease;
}

.lc-search__item:hover,
.lc-search__item.is-active {
	background: rgba(195, 201, 192, 0.28);
}

.lc-search__product-link {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	align-items: center;
	gap: 15px;
	min-width: 0;
	padding: 8px;
	color: inherit !important;
	text-decoration: none !important;
}

.lc-search__image-wrap {
	position: relative;
	width: 72px;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 13px;
	background: linear-gradient(145deg, var(--lc-blush), var(--lc-sage));
}

.lc-search__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lc-search__copy {
	display: grid;
	min-width: 0;
	gap: 4px;
}

.lc-search__name {
	overflow: hidden;
	color: var(--lc-ink);
	font-size: 15px;
	font-weight: 750;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lc-search__summary {
	overflow: hidden;
	color: rgba(23, 32, 21, 0.62);
	font-size: 12px;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lc-search__price {
	color: var(--lc-forest);
	font-size: 13px;
	font-weight: 700;
}

.lc-search__price del {
	opacity: 0.52;
}

.lc-search__price ins {
	text-decoration: none;
}

.lc-search__add {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	margin-right: 9px;
	padding: 8px 14px !important;
	border: 1px solid rgba(44, 55, 41, 0.22) !important;
	border-radius: 12px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--lc-forest) !important;
	font-size: 12px !important;
	font-weight: 750 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color 150ms ease, color 150ms ease !important;
}

.lc-search__add:hover {
	background: var(--lc-forest) !important;
	color: #fff !important;
}

.lc-search__message {
	margin: 0;
	padding: 24px 18px;
	color: rgba(23, 32, 21, 0.67);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.lc-search.is-loading .lc-search__icon {
	animation: lc-search-pulse 800ms ease-in-out infinite alternate;
}

.lc-product-grid {
	position: relative;
}

.lc-product-grid ul.products {
	row-gap: clamp(26px, 4vw, 56px);
}

.lc-product-grid ul.products li.product {
	transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease;
}

.lc-product-grid ul.products li.product:hover {
	transform: translateY(-6px);
}

.lc-product-grid ul.products li.product img {
	border-radius: clamp(16px, 2vw, 28px);
	background: var(--lc-blush);
	transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 300ms ease;
}

.lc-product-grid ul.products li.product:hover img {
	filter: saturate(1.03) contrast(1.02);
	transform: scale(1.018);
}

.lc-product-grid ul.products li.product .woocommerce-loop-product__title {
	color: var(--lc-ink);
	font-weight: 700;
}

.lc-product-grid ul.products li.product .price {
	color: var(--lc-forest);
	font-weight: 650;
}

.lc-product-grid ul.products li.product .button {
	border-radius: 12px;
}

.lc-quick-add {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.lc-quick-add__price {
	color: var(--lc-forest);
	font-size: clamp(17px, 2vw, 22px);
	font-weight: 750;
}

.lc-quick-add__price ins {
	text-decoration: none;
}

.lc-quick-add__button--full {
	width: 100%;
}

.lc-editor-notice {
	padding: 12px 14px;
	border-left: 4px solid var(--lc-gold);
	background: var(--lc-paper);
	color: var(--lc-ink);
}

/* Contact form ----------------------------------------------------------- */
.lc-contact {
	width: 100%;
	color: var(--lc-ink);
}

.lc-contact__status {
	margin: 0 0 22px;
	padding: 14px 16px;
	border: 1px solid var(--lc-border);
	border-left-width: 4px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
}

.lc-contact__status--success {
	background: #eef4eb;
	border-left-color: #2c6339;
}

.lc-contact__status--error {
	background: #f8ece9;
	border-left-color: #8d2d26;
}

.lc-contact__form,
.lc-contact__row {
	display: grid;
	gap: 18px;
}

.lc-contact__row--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lc-contact__field {
	display: grid;
	gap: 7px;
	margin: 0;
}

.lc-contact__field label {
	font-size: 13px;
	font-weight: 700;
}

.lc-contact__field label small {
	color: rgba(23, 32, 21, 0.58);
	font-size: 11px;
	font-weight: 500;
}

.lc-contact__field input,
.lc-contact__field select,
.lc-contact__field textarea {
	width: 100%;
	min-width: 0;
	min-height: 52px;
	margin: 0;
	padding: 12px 14px;
	color: var(--lc-ink);
	background: #fff;
	border: 1px solid rgba(44, 55, 41, 0.24);
	border-radius: 12px;
	box-shadow: none;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
}

.lc-contact__field textarea {
	min-height: 168px;
	resize: vertical;
}

.lc-contact__field input:focus,
.lc-contact__field select:focus,
.lc-contact__field textarea:focus {
	border-color: var(--lc-forest);
	box-shadow: 0 0 0 4px rgba(203, 181, 123, 0.22);
	outline: 0;
}

.lc-contact__consent {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	color: rgba(23, 32, 21, 0.72);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
}

.lc-contact__consent input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--lc-forest);
}

.lc-contact__consent a {
	color: var(--lc-forest);
	font-weight: 700;
}

.lc-contact__submit {
	width: 100%;
	min-height: 56px;
	padding: 0 22px;
	color: #fff;
	background: var(--lc-forest);
	border: 1px solid var(--lc-forest);
	border-radius: 12px;
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	cursor: pointer;
	transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.lc-contact__submit:hover {
	background: #202a1e;
	box-shadow: 0 10px 26px rgba(44, 55, 41, 0.2);
	transform: translateY(-1px);
}

.lc-contact__honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.lc-motion [data-lc-reveal],
.lc-motion .lc-product-grid li.product {
	opacity: 0;
	transform: translate3d(0, 18px, 0);
}

.lc-motion [data-lc-reveal].is-visible,
.lc-motion .lc-product-grid li.product.is-visible {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lc-motion .lc-product-grid li.product.is-visible:hover {
	transform: translate3d(0, -6px, 0);
}

@keyframes lc-search-open {
	from { opacity: 0; transform: translateY(-5px) scale(0.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lc-search-pulse {
	to { opacity: 0.4; transform: scale(0.92); }
}

@media (max-width: 600px) {
	.lc-contact__row--two {
		grid-template-columns: 1fr;
	}
	.lc-search__form {
		min-height: 58px;
		padding: 5px;
	}

	.lc-search__icon {
		width: 39px;
	}

	.lc-search__input {
		height: 46px;
		font-size: 16px !important;
	}

	.lc-search__submit {
		min-height: 46px;
		padding-inline: 15px !important;
		font-size: 13px !important;
	}

	.lc-search__results {
		position: fixed;
		top: auto;
		bottom: max(12px, env(safe-area-inset-bottom));
		left: 12px;
		right: 12px;
		max-height: min(62vh, 540px);
		border-radius: 22px;
	}

	.lc-search__product-link {
		grid-template-columns: 62px minmax(0, 1fr);
		gap: 11px;
	}

	.lc-search__image-wrap {
		width: 62px;
	}

	.lc-search__add {
		width: 40px;
		min-width: 40px;
		padding: 8px !important;
		font-size: 0 !important;
	}

	.lc-search__add::after {
		content: "+";
		font-size: 18px;
		line-height: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lc-search *,
	.lc-product-grid *,
	.lc-quick-add *,
	.lc-motion [data-lc-reveal],
	.lc-motion .lc-product-grid li.product {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.lc-motion [data-lc-reveal],
	.lc-motion .lc-product-grid li.product {
		opacity: 1;
		transform: none;
	}
}
