body {
	background: var(--ess-bg);
	color: var(--ess-ink);
}

.ess-shop-shell {
	width: 100%;
	margin: 42px auto 80px;
}

body.home .elementor-element-store01 > .elementor-container {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

body.home .elementor-element-store02 > .elementor-widget-wrap {
	padding-inline: 0;
}

.ess-shop-hero {
	display: grid;
	gap: 24px;
	padding: clamp(28px, 6vw, 72px) 0 24px;
}

.ess-shop-kicker,
.ess-product-tag {
	margin: 0;
	color: var(--ess-green);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ess-shop-hero h1 {
	max-width: 1120px;
	margin: 0;
	color: var(--ess-ink);
	font-size: clamp(2.4rem, 7vw, 6.8rem);
	line-height: 0.92;
	letter-spacing: 0;
}

.ess-shop-intro {
	max-width: 560px;
	margin: 0;
	color: var(--ess-muted);
	font-size: clamp(1rem, 2vw, 1.2rem);
}

.ess-shop-hero-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 46px;
	margin-top: 14px;
	padding: 0 20px;
	border-radius: 12px;
	background: var(--ess-accent);
	color: #fff;
	font-weight: 900;
	text-decoration: none;
}

.ess-shop-toolbar {
	display: grid;
	grid-template-columns: minmax(190px, 260px) auto;
	justify-content: end;
	gap: 10px;
	align-items: center;
	margin: 18px 0 12px;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	background: rgba(11, 18, 32, 0.72);
}

.ess-shop-search {
	flex: 1 1 260px;
}

.ess-shop-toolbar input,
.ess-shop-toolbar select,
.ess-shop-toolbar button {
	min-height: 46px;
	border: 1px solid var(--ess-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--ess-ink);
	font: inherit;
}

.ess-shop-toolbar input {
	width: 100%;
	padding: 0 18px;
}

.ess-shop-toolbar select {
	width: 100%;
	padding: 0 38px 0 16px;
}

.ess-shop-toolbar button,
.ess-product-card .button {
	padding: 0 18px;
	border: 0;
	background: #ffffff;
	color: #111111;
	font-weight: 800;
	text-decoration: none;
}

.ess-shop-toolbar button {
	min-width: 104px;
}

.ess-shop-pills {
	display: flex;
	gap: 8px;
	margin: 0 0 26px;
	padding: 8px 0 2px;
	overflow-x: auto;
	scrollbar-width: none;
}

.ess-shop-pills::-webkit-scrollbar {
	display: none;
}

.ess-shop-pills a {
	flex: 0 0 auto;
	padding: 10px 16px;
	border: 1px solid var(--ess-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--ess-ink);
	font-weight: 800;
	text-decoration: none;
}

.ess-shop-pills a.is-active {
	background: var(--ess-accent);
	color: #111111;
	border-color: var(--ess-accent);
}

.ess-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: clamp(16px, 2vw, 24px);
}

.ess-product-card {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 16px;
	background: var(--ess-surface);
	box-shadow: 0 8px 26px rgba(22, 23, 26, 0.06);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.ess-product-image {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #1d1d1d;
}

.ess-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 260ms ease;
}

.ess-product-card:hover .ess-product-image img {
	transform: scale(1.045);
}

.ess-product-quick {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 8px 12px;
	border-radius: 12px;
	background: rgba(20, 20, 20, 0.9);
	color: var(--ess-ink);
	font-size: 0.84rem;
	font-weight: 800;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.ess-product-card:hover .ess-product-quick {
	opacity: 1;
	transform: translateY(0);
}

.ess-product-meta {
	display: grid;
	gap: 10px;
	padding: 16px;
}

.ess-product-meta h2 {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.18;
	letter-spacing: 0;
}

.ess-product-meta h2 a {
	color: var(--ess-ink);
	text-decoration: none;
}

.ess-product-bottom {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
}

.ess-product-price {
	font-weight: 900;
	color: var(--ess-accent);
}

.ess-product-card .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	border-radius: 12px;
	font-size: 0.86rem;
	line-height: 1;
}

.ess-product-card .ess-design-button {
	background: #fff;
	color: #111;
	white-space: nowrap;
}

.ess-shop-empty {
	grid-column: 1 / -1;
	padding: 30px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--ess-muted);
}

@media (max-width: 640px) {
	.ess-shop-shell {
		width: 100%;
		margin-top: 16px;
	}

	.ess-shop-hero h1 {
		max-width: 100%;
		font-size: clamp(2.15rem, 12vw, 3.25rem);
		line-height: 0.98;
		overflow-wrap: break-word;
	}

	.ess-shop-intro {
		max-width: 100%;
		font-size: 1rem;
	}

	.ess-shop-toolbar {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 8px;
	}

	.ess-shop-toolbar input,
	.ess-shop-toolbar select,
	.ess-shop-toolbar button {
		box-sizing: border-box;
	}

	.ess-shop-toolbar select,
	.ess-shop-toolbar button {
		width: 100%;
	}

	.ess-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.ess-product-card {
		border-radius: 12px;
	}

	.ess-product-meta {
		padding: 12px;
	}

	.ess-product-bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}

.ess-shop-toolbar button,
.ess-product-card .button {
	background: #ffffff;
	color: #111111;
}

.ess-product-card {
	border-color: rgba(255, 255, 255, 0.08);
}

.ess-shop-toolbar input::placeholder {
	color: rgba(246, 243, 238, 0.58);
}
html,
body,
#page,
.site,
.site-main,
.page-content,
.entry-content,
.wp-site-blocks {
	background: var(--ess-bg) !important;
}

#site-footer,
.site-footer {
	display: none !important;
}

html,
body {
	overflow-x: hidden;
}

body,
.site-main,
.page-content,
.entry-content {
	color: var(--ess-ink);
}

.ess-shop-hero h1 {
	color: #f6f3ee;
}

.ess-shop-toolbar input,
.ess-shop-toolbar select {
	background: #141414;
	border-color: rgba(255, 255, 255, 0.18);
	color: #f6f3ee;
}

.ess-shop-toolbar select option {
	background: #141414;
	color: #f6f3ee;
}

.ess-shop-pills a:not(.is-active) {
	background: #141414;
	color: #f6f3ee;
}

.ess-product-card {
	background: var(--ess-card);
	color: var(--ess-ink);
}

.ess-product-meta h2 a {
	color: #f6f3ee;
}

.ess-product-image {
	background: #222;
}

.ess-designer-shell {
	width: min(1320px, calc(100% - 32px));
	margin: 42px auto 80px;
}

body.page-id-12 .ess-designer-shell {
	width: 100%;
}

@media (max-width: 575px) {
	body.page-id-12 .site-main {
		padding-inline: 0 !important;
	}
}

.ess-designer-heading {
	display: grid;
	gap: 10px;
	padding: clamp(28px, 5vw, 56px) 0 22px;
}

.ess-designer-heading h1 {
	max-width: 900px;
	margin: 0;
	color: #f6f3ee;
	font-size: clamp(2.2rem, 6vw, 5.8rem);
	line-height: 0.94;
	letter-spacing: 0;
}

.ess-designer-heading p {
	max-width: 640px;
	margin: 0;
	color: #b8b1a8;
	font-size: 1.05rem;
}

.ess-designer-frame {
	display: block;
	width: 100%;
	height: 1120px;
	min-height: 1120px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 18px;
	background: #020617;
	box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
	overflow: hidden;
}

body.single-product {
	overflow-x: clip;
	overflow-y: visible;
}

body.single-product div.product {
	display: grid;
	grid-template-columns: minmax(580px, 0.86fr) minmax(720px, 1.14fr);
	gap: 28px;
	align-items: start;
	overflow: visible;
}

body.single-product div.product .woocommerce-product-gallery {
	position: sticky !important;
	top: 120px;
	width: 100% !important;
	max-width: 100%;
	float: none !important;
	margin: 0;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 18px;
	background: #050814;
	box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
	align-self: start;
	z-index: 2;
	overflow: hidden;
	box-sizing: border-box;
}

body.single-product div.product .woocommerce-product-gallery__wrapper {
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #020617;
}

body.single-product div.product .woocommerce-product-gallery__image,
body.single-product div.product .woocommerce-product-gallery__image a,
body.single-product div.product .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
}

body.single-product div.product .woocommerce-product-gallery__image img {
	border-radius: 12px;
	object-fit: cover;
}

body.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	top: 24px;
	right: 24px;
}

body.single-product div.product .woocommerce-product-gallery.ess-gallery-released {
	position: relative !important;
	top: var(--ess-gallery-release-offset, 0);
}

body.single-product div.product .summary {
	width: 100% !important;
	float: none !important;
	margin: 0;
}

body.single-product div.product .summary > .product_title,
body.single-product div.product .summary > .price,
body.single-product div.product .summary > .woocommerce-product-details__short-description,
body.single-product div.product .summary > .product_meta,
body.single-product .ess-product-designer-shell .ess-designer-heading {
	display: none;
}

body.single-product.ess-standard-product div.product {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body.single-product.ess-standard-product div.product .summary {
	padding: 24px 8px;
}

body.single-product.ess-standard-product div.product .summary > .product_title,
body.single-product.ess-standard-product div.product .summary > .price,
body.single-product.ess-standard-product div.product .summary > .woocommerce-product-details__short-description,
body.single-product.ess-standard-product div.product .summary > .product_meta {
	display: block;
}

body.single-product.ess-standard-product div.product .summary > .product_title {
	margin: 0 0 14px;
	color: #f6f3ee;
}

body.single-product.ess-standard-product div.product .summary > .price {
	margin: 0 0 18px;
	color: #ec3e91;
	font-size: 1.45rem;
	font-weight: 900;
}

body.single-product.ess-standard-product div.product .summary > .woocommerce-product-details__short-description {
	margin-bottom: 24px;
	color: #b8b1a8;
}

.ess-product-colour-options {
	display: grid;
	gap: 18px;
	margin: 0 0 24px;
}

.ess-product-colour-field {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.ess-product-colour-field legend {
	margin: 0 0 9px;
	padding: 0;
	color: #f6f3ee;
	font-size: 0.92rem;
	font-weight: 800;
}

.ess-product-colour-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: 390px;
}

.ess-product-colour-swatch {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.ess-product-colour-swatch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.ess-product-colour-swatch > span:not(.screen-reader-text) {
	display: block;
	width: 48px;
	height: 48px;
	border: 1px solid #111827;
	border-radius: 50%;
	background: var(--ess-swatch-colour);
	box-shadow: none;
}

.ess-product-colour-swatch input:checked + span {
	border: 2px solid #e5e7eb;
	box-shadow: 0 0 0 1px #000 inset;
	transform: none;
}

.ess-product-colour-swatch input:focus-visible + span {
	outline: 3px solid rgba(236, 62, 145, 0.45);
	outline-offset: 3px;
}

.ess-selected-colours {
	display: grid;
	gap: 8px;
	max-width: 390px;
	margin-top: 2px;
}

.ess-selected-colour-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 166px;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 10px;
	background: rgba(5, 8, 20, 0.76);
	color: #b8b1a8;
	font-size: 0.84rem;
}

.ess-selected-colour-value {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	gap: 7px;
	width: 166px;
	min-width: 0;
}

.ess-selected-colour-row strong {
	color: #f6f3ee;
	font-size: 0.86rem;
	text-align: left;
}

.ess-selected-colour-dot {
	display: block;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	border: 2px solid #ffffff;
	border-radius: 50%;
	background: var(--ess-selected-colour);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85), 0 0 10px rgba(255, 255, 255, 0.16);
}

body.single-product.ess-colour-swatch-product form.cart {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

body.single-product.ess-colour-swatch-product form.cart .ess-product-colour-options {
	margin-bottom: 0;
}

body.single-product.ess-colour-swatch-product form.cart .quantity {
	display: block;
	width: 120px;
	margin: 0;
}

body.single-product.ess-colour-swatch-product form.cart .quantity .qty {
	width: 120px;
	height: 42px;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid #374151;
	border-radius: 8px;
	background: #020617;
	color: #e5e7eb;
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	text-align: left;
	box-sizing: border-box;
}

.ess-dispatch-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 18px 0;
	padding: 14px 16px;
	border: 1px solid rgba(236, 72, 153, 0.35);
	border-left: 4px solid #ec4899;
	border-radius: 6px;
	background: #0b1220;
	color: #f8fafc;
}

.ess-dispatch-panel__status {
	display: grid;
	gap: 3px;
}

.ess-dispatch-panel__status strong {
	font-size: 15px;
	line-height: 1.3;
}

.ess-dispatch-panel__status span {
	color: #b8c2d1;
	font-size: 13px;
}

.ess-dispatch-panel__status span:empty {
	display: none;
}

.ess-dispatch-priority {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.ess-dispatch-priority > span {
	display: grid;
	gap: 2px;
}

.ess-dispatch-priority strong {
	color: #f8fafc;
	font-size: 14px;
	line-height: 1.3;
}

.ess-dispatch-priority small {
	color: #aeb9ca;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
}

.ess-dispatch-priority[hidden] {
	display: none;
}

.ess-dispatch-priority input {
	width: 18px;
	height: 18px;
	accent-color: #ec4899;
}

.ess-dispatch-panel--designer .ess-dispatch-priority {
	display: none;
}

body.single-product form.cart > .ess-dispatch-priority {
	margin: 10px 0 14px;
	padding: 12px 14px;
	border: 1px solid rgba(236, 72, 153, 0.32);
	border-radius: 6px;
	background: rgba(236, 72, 153, 0.08);
}

@media (max-width: 620px) {
	.ess-dispatch-panel {
		align-items: flex-start;
		flex-direction: column;
	}
}

body.single-product.ess-colour-swatch-product form.cart .single_add_to_cart_button {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-radius: 999px;
	background: #ec4899;
	color: #0b1120;
	font-size: 14px;
	font-weight: 600;
	line-height: 24px;
	text-align: center;
}

body.single-product.ess-colour-swatch-product form.cart .single_add_to_cart_button:hover,
body.single-product.ess-colour-swatch-product form.cart .single_add_to_cart_button:focus-visible {
	background: #f472b6;
	color: #0b1120;
}

body.single-product.ess-standard-product div.product .woocommerce-tabs,
body.single-product.ess-standard-product div.product .related.products,
body.single-product.ess-standard-product div.product .upsells.products {
	grid-column: 1 / -1;
}

body.single-product .ess-product-designer-shell {
	clear: both;
	width: 100%;
	margin: 0;
	min-width: 0;
	max-height: 100%;
}

body.single-product div.product .woocommerce-tabs {
	grid-column: 1;
	width: 100%;
	margin: 24px 0 0;
}

body.single-product div.product .related.products,
body.single-product div.product .upsells.products {
	grid-column: 2;
	width: 100%;
	margin: 24px 0 0;
}

body.single-product .ess-product-designer-shell .ess-designer-heading {
	padding: 0 0 16px;
}

body.single-product .ess-product-designer-shell .ess-designer-heading h2 {
	max-width: 760px;
	margin: 0;
	color: #f6f3ee;
	font-size: clamp(1.7rem, 3vw, 2.7rem);
	line-height: 1;
	letter-spacing: 0;
}

body.single-product .ess-product-designer-shell .ess-designer-frame {
	height: 1720px;
	min-height: 1720px;
	border-color: transparent;
	box-shadow: none;
	background: transparent;
	overflow: hidden;
}

@media (max-width: 820px) {
	.ess-designer-shell {
		width: min(100% - 20px, 1320px);
		margin-top: 24px;
	}

	.ess-designer-frame {
		height: 1280px;
		min-height: 1280px;
		border-radius: 12px;
	}

	body.single-product div.product {
		display: block;
	}

	body.single-product div.product .woocommerce-product-gallery {
		position: static !important;
		top: auto !important;
		width: 100% !important;
		margin-bottom: 20px;
	}

	body.single-product div.product .woocommerce-product-gallery.ess-gallery-released {
		position: static !important;
		top: auto !important;
	}

	body.single-product div.product .summary {
		width: 100% !important;
	}

	body.single-product .ess-product-designer-shell {
		margin-top: 24px;
	}

	body.single-product .ess-product-designer-shell .ess-designer-frame {
		height: 1780px;
		min-height: 1780px;
	}

	body.single-product .ess-product-basket-shell {
		margin: 12px 0 60px;
	}

	body.single-product .ess-product-basket-shell .ess-basket-frame {
		height: 760px;
		min-height: 760px;
		border-radius: 12px;
	}
}

/* Compact radius pass */
.ess-shop-hero-cta,
.ess-shop-toolbar input,
.ess-shop-toolbar select,
.ess-shop-toolbar button,
.ess-shop-pills a,
.ess-product-card .button {
	border-radius: 12px;
}

.ess-product-card,
.ess-designer-frame {
	border-radius: 16px;
}

.ess-shop-empty {
	border-radius: 14px;
}

@media (max-width: 640px) {
	.ess-product-card,
	.ess-designer-frame {
		border-radius: 12px;
	}
}

/* Keep the block checkout centred and give address/payment controls the full
 * usable phone width. Stripe's embedded controls become clipped when the
 * checkout's desktop gutters are retained on narrow screens. */
@media (max-width: 782px) {
	body.woocommerce-checkout main#content.site-main {
		width: 100%;
		max-width: none;
		margin: 0 0 80px;
		padding-right: 8px;
		padding-left: 8px;
	}

	body.woocommerce-checkout .page-content,
	body.woocommerce-checkout .wp-block-woocommerce-checkout.alignwide,
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout,
	body.woocommerce-checkout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-checkout__form,
	body.woocommerce-checkout .wc-block-components-checkout-step {
		width: 100%;
		max-width: 100%;
		margin-right: auto;
		margin-left: auto;
		box-sizing: border-box;
	}

	body.woocommerce-checkout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout__sidebar {
		padding-right: 0;
		padding-left: 0;
	}

	body.woocommerce-checkout .wc-block-components-express-payment__content,
	body.woocommerce-checkout .wc-block-components-radio-control-accordion-content.optimized-checkout-element {
		padding-right: 8px;
		padding-left: 8px;
	}

	body.woocommerce-checkout iframe[title="Secure express checkout frame"],
	body.woocommerce-checkout iframe[title="Secure payment input frame"] {
		display: block;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		margin-right: auto !important;
		margin-left: auto !important;
	}
}
