/* SmartHome Hub — quiet luxury, residential, B2B sample store */

:root {
	--sh-ink: #111111;
	--sh-ivory: #f7f7f5;
	--sh-paper: #ffffff;
	--sh-olive: #111111;
	--sh-oak: #6a6a6a;
	--sh-linen: #e4e4e2;
	--sh-stone: #6a6a6a;
	--sh-radius: 999px;
	--sh-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--wp--preset--color--base, var(--sh-ivory));
	color: var(--wp--preset--color--contrast, var(--sh-ink));
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

/* Top bar */
.smarthome-topbar {
	background: #111;
	color: #f7f7f5;
	font-size: 0.78rem;
	letter-spacing: 0.02em;
}

.smarthome-topbar__inner {
	max-width: 1220px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 2rem;
	flex-wrap: wrap;
}

.smarthome-topbar a {
	color: #f7f7f5 !important;
	text-decoration: none;
}

.smarthome-topbar a:hover {
	opacity: 0.85;
}

/* Header */
.smarthome-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(247, 247, 245, 0.94);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--sh-linen);
}

.smarthome-header-row {
	width: 100%;
}

.smarthome-brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
	color: var(--sh-ink);
}

.smarthome-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.smarthome-brand__text strong {
	font-family: "Cormorant Garamond", "Noto Serif SC", serif;
	font-size: 1.45rem;
	font-weight: 600;
	letter-spacing: 0.12em;
}

.smarthome-brand__text em {
	font-style: normal;
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	color: var(--sh-stone);
	margin-top: 0.15rem;
}

.smarthome-primary-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.85rem;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
}

.smarthome-primary-nav a {
	color: var(--sh-ink);
	text-decoration: none;
	font-family: "Cormorant Garamond", "Noto Serif SC", serif;
	font-weight: 500;
	font-size: 1.05rem;
	padding: 0.2rem 0;
	border-bottom: 1px solid transparent;
}

.smarthome-primary-nav a:hover,
.smarthome-primary-nav a.current {
	color: var(--sh-olive);
	border-bottom-color: var(--sh-olive);
}

.smarthome-header-tools {
	position: relative;
	z-index: 6;
}

/* Language switcher — pill toggle */
.smarthome-lang-switcher {
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 999px;
	padding: 3px;
	position: relative;
	z-index: 8;
	box-shadow: 0 1px 4px rgba(26, 24, 20, 0.08);
}

.smarthome-lang-switcher a {
	padding: 0.38rem 0.95rem;
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 500;
	border-radius: 999px;
	line-height: 1.2;
	min-width: 2.6rem;
	text-align: center;
}

.smarthome-lang-switcher a.active {
	background: var(--sh-olive);
	color: #fff !important;
}

.smarthome-lang-switcher a:not(.active) {
	background: transparent;
	color: var(--sh-ink) !important;
}

.wp-block-woocommerce-mini-cart,
.wc-block-mini-cart {
	position: relative;
	z-index: 1;
}

.wc-block-mini-cart__button {
	padding: 0.15rem !important;
}

/* Buttons */
.wp-block-button .wp-block-button__link,
.woocommerce-page .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.smarthome-btn {
	border-radius: 999px !important;
	padding: 0.85rem 1.55rem !important;
	letter-spacing: 0.04em;
	font-size: 0.92rem !important;
	font-weight: 500 !important;
	text-decoration: none;
	display: inline-block;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid var(--sh-ink) !important;
	background: transparent !important;
	color: var(--sh-ink) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--sh-ink) !important;
	color: var(--sh-paper) !important;
}

/* Hero — full-bleed living room */
.smarthome-hero-cover {
	position: relative;
	min-height: min(88vh, 860px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: #111;
}

.smarthome-hero-cover__photo {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.smarthome-hero-cover__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.48) 100%);
}

.smarthome-hero-cover__inner {
	position: relative;
	z-index: 1;
	max-width: 1220px;
	width: 100%;
	margin: 0 auto;
	padding: 0 2rem 4.5rem;
	color: #fff;
}

.smarthome-hero-kicker {
	font-size: 0.9rem;
	letter-spacing: 0.08em;
	margin: 0 0 0.85rem;
	color: rgba(255, 255, 255, 0.92);
}

.smarthome-hero-cover h1 {
	font-family: "Cormorant Garamond", "Noto Serif SC", serif;
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.04em;
	margin: 0 0 1rem;
	max-width: 16em;
	color: #fff;
}

.smarthome-hero-lead {
	max-width: 36rem;
	font-size: 0.98rem;
	line-height: 1.85;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.92);
	margin: 0 0 1.6rem;
}

.smarthome-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.smarthome-btn--solid {
	background: #111;
	color: #fff !important;
}

.smarthome-btn--ghost {
	background: transparent;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.85);
}

.smarthome-btn--solid:hover {
	background: #000;
}

.smarthome-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
}

.smarthome-kicker {
	display: inline-block;
	font-family: Outfit, "Noto Sans SC", sans-serif;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--sh-oak);
	margin-bottom: 1.1rem;
}

.smarthome-kicker::after {
	content: "";
	display: block;
	width: 2.25rem;
	height: 1px;
	background: var(--sh-oak);
	margin-top: 0.85rem;
}

/* Stats */
.smarthome-stats {
	border-top: 1px solid var(--sh-linen);
	border-bottom: 1px solid var(--sh-linen);
	background: var(--sh-paper);
}

.smarthome-stat {
	text-align: center;
	padding: 2rem 1rem;
}

.smarthome-stat strong,
.smarthome-stat .smarthome-stat-value {
	display: block;
	font-family: "Cormorant Garamond", "Noto Serif SC", serif;
	font-size: 2rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--sh-ink);
}

.smarthome-stat span,
.smarthome-stat p {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sh-stone);
}

/* Cards / categories */
.smarthome-cat-card {
	position: relative;
	display: block;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	background: var(--sh-paper);
	min-height: 280px;
}

.smarthome-cat-card img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	display: block;
	transition: transform 0.55s ease;
}

.smarthome-cat-card:hover img {
	transform: scale(1.05);
}

.smarthome-cat-card span {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.15rem 1.25rem;
	background: linear-gradient(transparent, rgba(26, 24, 20, 0.72));
	color: var(--sh-paper);
	font-family: "Cormorant Garamond", "Noto Serif SC", serif;
	font-size: 1.35rem;
	letter-spacing: 0.02em;
}

.smarthome-section-lead {
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
	color: var(--sh-stone);
	font-weight: 300;
}

.smarthome-card {
	border: 1px solid var(--sh-linen);
	border-radius: var(--sh-radius);
	overflow: hidden;
	background: var(--sh-paper);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.smarthome-icon-box {
	text-align: left;
	padding: 2rem 1.6rem 2.1rem;
	height: 100%;
	background: var(--sh-paper);
	border-top: 1px solid var(--sh-oak);
}

.smarthome-icon-box .icon {
	font-family: "Cormorant Garamond", serif;
	font-size: 1.35rem;
	letter-spacing: 0.16em;
	color: var(--sh-oak);
	margin-bottom: 1.1rem;
	display: block;
	font-weight: 500;
}

.smarthome-timeline-item {
	border-left: 1px solid var(--sh-oak);
	padding-left: 1.75rem;
	margin-bottom: 2rem;
}

.smarthome-cert-card {
	border: 1px solid var(--sh-linen) !important;
	background: var(--sh-paper) !important;
	text-align: center;
	padding: 2.4rem 1rem !important;
}

.smarthome-cert-card h3 {
	font-size: 1.85rem !important;
	letter-spacing: 0.08em;
}

/* Catalog */
.smarthome-catalog-toolbar {
	margin: 0 0 2.5rem;
	padding-bottom: 1.75rem;
	border-bottom: 1px solid var(--sh-linen);
}

.smarthome-catalog-kicker {
	color: var(--sh-oak);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin: 0 0 0.65rem;
}

.smarthome-catalog-title {
	font-family: "Cormorant Garamond", "Noto Serif SC", serif;
	font-size: clamp(2.1rem, 4vw, 3.1rem);
	font-weight: 500;
	margin: 0 0 0.75rem;
	letter-spacing: -0.02em;
}

.smarthome-catalog-lead {
	color: var(--sh-stone);
	margin: 0 0 1.6rem;
	max-width: 38rem;
	font-weight: 300;
}

.smarthome-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 1.1rem;
}

.smarthome-chip {
	display: inline-block;
	padding: 0.4rem 0.95rem;
	border-radius: var(--sh-radius);
	background: transparent;
	border: 1px solid var(--sh-linen);
	color: var(--sh-ink) !important;
	text-decoration: none;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
}

.smarthome-chip:hover,
.smarthome-chip.is-active {
	background: var(--sh-ink);
	border-color: var(--sh-ink);
	color: var(--sh-paper) !important;
}

.smarthome-protocol-filter {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	font-size: 0.85rem;
	color: var(--sh-stone);
}

.smarthome-protocol-filter select {
	border: 1px solid var(--sh-linen);
	border-radius: var(--sh-radius);
	padding: 0.5rem 0.8rem;
	background: var(--sh-paper);
	color: var(--sh-ink);
}

.smarthome-sample-notice {
	background: var(--sh-ivory);
	border-left: 1px solid var(--sh-oak);
	padding: 1rem 1.1rem;
	margin: 1.1rem 0;
	font-size: 0.9rem;
}

.smarthome-sample-notice p {
	margin: 0.35rem 0 0;
	color: var(--sh-stone);
	font-weight: 300;
}

.smarthome-cart-banner {
	background: var(--sh-ivory);
	border-left: 2px solid var(--sh-oak);
	padding: 1rem 1.15rem;
	margin-bottom: 1.4rem;
	font-size: 0.92rem;
	color: var(--sh-stone);
}

.smarthome-inquiry-btn {
	background: transparent !important;
	color: var(--sh-ink) !important;
	border: 1px solid var(--sh-ink) !important;
	margin-left: 8px;
}

.smarthome-inquiry-btn:hover {
	background: var(--sh-oak) !important;
	border-color: var(--sh-oak) !important;
	color: var(--sh-paper) !important;
}

.woocommerce div.product form.cart .variations {
	margin-bottom: 1rem;
}

.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
	padding: 0.35rem 0;
	vertical-align: top;
	border: 0;
	background: transparent;
}

.smarthome-color-label {
	display: block;
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sh-stone);
	margin-bottom: 0.35rem;
}

.smarthome-color-picker {
	margin: 0 0 1.1rem;
}

.smarthome-color-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin: 0.2rem 0 0.45rem;
}

.smarthome-color-swatch {
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 999px;
	border: 1px solid rgba(17, 17, 17, 0.18);
	padding: 0;
	cursor: pointer;
	box-shadow: inset 0 0 0 2px #fff;
}

.smarthome-color-swatch.is-selected {
	outline: 2px solid var(--sh-ink);
	outline-offset: 2px;
}

.smarthome-color-hint {
	margin: 0 0 0.35rem;
	font-size: 0.82rem;
	color: var(--sh-stone);
}

.smarthome-color-select {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.woocommerce div.product form.cart .reset_variations {
	font-size: 0.8rem;
}

/* WooCommerce product collection (home) */
.wp-block-woocommerce-product-collection .wc-block-product-template,
.wp-block-woocommerce-product-collection ul {
	gap: 1.75rem !important;
}

.wp-block-woocommerce-product-collection .wc-block-product img,
.wp-block-woocommerce-product-collection img {
	background: var(--sh-paper);
}

.wp-block-woocommerce-product-collection h3,
.wp-block-woocommerce-product-collection .wp-block-post-title {
	font-family: Outfit, "Noto Serif SC", serif !important;
	font-weight: 500;
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1, "tnum" 1;
}

/* WooCommerce */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1.25rem;
}

/* WooCommerce clearfix pseudo-elements become empty first grid cells. */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none !important;
	display: none !important;
}

.woocommerce-breadcrumb {
	display: none !important;
}

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
	display: none !important;
}

.smarthome-catalog-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	margin-top: 2.25rem;
}

.smarthome-catalog-footer .woocommerce-pagination {
	float: none;
	margin: 0;
}

.smarthome-catalog-footer .woocommerce-result-count {
	float: none;
	margin: 0;
	font-size: 0.9rem;
	color: var(--sh-stone);
}

.woocommerce ul.products li.product {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	height: 100%;
	width: auto !important;
	margin: 0 !important;
	border: 0;
	padding: 0 !important;
	background: transparent;
	text-align: center;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	flex: 1 1 auto;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
	margin-top: auto !important;
	align-self: center;
}

.woocommerce ul.products li.product a img {
	margin-bottom: 1rem;
	background: var(--sh-paper);
	aspect-ratio: 1;
	object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: Outfit, "Noto Serif SC", serif;
	font-size: 1rem !important;
	font-weight: 500;
	min-height: 2.6em;
	line-height: 1.3;
	letter-spacing: 0;
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1, "tnum" 1;
}

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount,
.woocommerce ul.products li.product .price .woocommerce-Price-amount {
	color: var(--sh-oak) !important;
	font-family: Outfit, "Noto Sans SC", sans-serif !important;
	font-size: 0.95rem;
	font-weight: 500;
	font-variant-numeric: lining-nums tabular-nums;
	font-feature-settings: "lnum" 1, "tnum" 1;
}

.woocommerce span.onsale {
	background: var(--sh-oak) !important;
	border-radius: 0 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.7rem !important;
	padding: 0.35rem 0.55rem !important;
}

.woocommerce div.product div.images .flex-control-thumbs {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.woocommerce div.product .woocommerce-tabs {
	margin-top: 2.5rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
	border-bottom: 1px solid var(--sh-linen);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: transparent;
	border: 0;
	border-radius: 0;
	margin: 0 1.5rem 0 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--sh-oak);
}

.woocommerce table.shop_attributes th {
	width: 32%;
	background: var(--sh-ivory);
	font-weight: 500;
}

.woocommerce div.product .product_title {
	font-family: Outfit, "Noto Serif SC", serif;
	letter-spacing: 0;
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1, "tnum" 1;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product p.price .amount,
.woocommerce div.product span.price .woocommerce-Price-amount {
	color: var(--sh-oak);
	font-family: Outfit, "Noto Sans SC", sans-serif;
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1.2;
	font-variant-numeric: lining-nums tabular-nums;
	font-feature-settings: "lnum" 1, "tnum" 1;
}

.woocommerce-page .woocommerce-message,
.woocommerce-info {
	border-top-color: var(--sh-oak);
	background: var(--sh-paper);
}

/* Contact form */
.wpcf7 label {
	display: block;
	margin-bottom: 1rem;
	font-weight: 400;
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sh-stone);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--sh-linen);
	border-radius: 0;
	padding: 0.7rem 0;
	background: transparent;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-bottom-color: var(--sh-oak);
}

.wpcf7 input[type="submit"] {
	background: var(--sh-ink);
	color: var(--sh-paper);
	border: 0;
	border-radius: var(--sh-radius);
	padding: 0.85rem 1.7rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}

.smarthome-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
}

.smarthome-inquiry-notice {
	margin: 0 0 1.25rem;
	padding: 0.75rem 0;
	font-size: 0.95rem;
}

.smarthome-inquiry-notice.is-success {
	color: #2f5d3a;
}

.smarthome-inquiry-notice.is-error {
	color: #8a2f2f;
}

.smarthome-contact-card {
	background: var(--sh-paper);
	border: 1px solid var(--sh-linen);
	padding: 2rem 1.75rem;
}

.smarthome-contact-card iframe {
	margin-top: 1rem;
}

.smarthome-gallery img {
	border-radius: 0;
	width: 100%;
	height: 240px;
	object-fit: cover;
}

.smarthome-gallery figcaption {
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	color: var(--sh-stone);
	margin-top: 0.65rem;
}

.smarthome-cta-home {
	background: var(--sh-ink);
	border-radius: 0;
}

.smarthome-cta-home .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--sh-paper) !important;
	color: var(--sh-paper) !important;
}

.has-contrast-background-color a {
	color: #d9cbb8;
}

.has-contrast-background-color a:hover {
	color: #f7f4ef;
}

.smarthome-site-footer {
	background: #141210;
	color: #d7cfc3;
}

.smarthome-site-footer h3,
.smarthome-site-footer h4 {
	color: #fffcf7 !important;
	letter-spacing: 0.06em;
}

.smarthome-page-shell {
	padding-top: 3.5rem;
	padding-bottom: 5rem;
}

/* Empty mini-cart */
.smarthome-empty-cart {
	max-width: 20rem;
	margin: 0 auto 1.5rem;
	text-align: left;
}

.smarthome-empty-cart__lead {
	color: var(--sh-stone);
	font-size: 0.92rem;
	line-height: 1.7;
	margin: 0 0 1rem;
	text-align: center;
}

.smarthome-empty-cart__list {
	list-style: none;
	margin: 0;
	padding: 0;
	color: var(--sh-ink);
	font-size: 0.88rem;
}

.smarthome-empty-cart__list li {
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--sh-linen);
}

.smarthome-empty-cart__list li:last-child {
	border-bottom: 0;
}

.wc-block-mini-cart__drawer,
.wc-block-mini-cart__template-container {
	background: #f7f7f5 !important;
}

.wc-block-mini-cart__shopping-button,
.wc-block-mini-cart__shopping-button a {
	background: #111 !important;
	color: #fff !important;
	border-radius: 999px !important;
}

@media (max-width: 1100px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 781px) {
	.smarthome-hero-cover {
		min-height: 72vh;
	}

	.smarthome-hero-cover__inner {
		padding: 0 1.25rem 2.5rem;
	}

	.smarthome-hero-cover h1 {
		font-size: 2.15rem;
	}

	.smarthome-primary-nav ul {
		gap: 0.85rem;
	}

	.smarthome-topbar__inner {
		padding: 0.5rem 1.25rem;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 0.95rem !important;
	}

	.woocommerce ul.products {
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}
}

@media (max-width: 520px) {
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}
}
