/* Global base — always loaded from _default. Theme overrides in theme.css */

*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
}

html {
	height: 100%;
}

body {
	min-height: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family:
		-apple-system, BlinkMacSystemFont,
		"Helvetica Neue", Helvetica,
		Arial,
		sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #222;
	background: #fff;
}

body > header,
body > footer {
	flex-shrink: 0;
}

/* Fixed header: expands over content on hover, does not push main */
body > header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	width: 100%;
	background: whitesmoke;
}

body > header .header-bar {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 1rem;
	padding: 0.5rem 1rem;
}

.header-brand {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.header-logo {
	display: block;
	height: 2rem;
	width: auto;
	max-width: 12rem;
	object-fit: contain;
}

.header-tools {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-left: auto;
	flex: 0 0 auto;
}

.header-tool {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 0.3em;
	background: transparent;
	color: inherit;
	cursor: pointer;
	text-decoration: none;
}

.header-tool img {
	width: 1.35rem;
	height: 1.35rem;
	display: block;
}

.header-cart-badge {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 1.1rem;
	height: 1.1rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 0.65rem;
	line-height: 1.1rem;
	text-align: center;
	box-sizing: border-box;
}

.header-cart-badge[hidden] {
	display: none !important;
}

.header-hamburger {
	display: none;
}

/* Header menu — top level inline; nested dropdowns under / beside parent */
body > header .header-nav {
	flex: 1 1 auto;
	min-width: 0;
}

body > header .header-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

body > header .header-nav > ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem 1rem;
	justify-content: flex-end;
}

body > header .header-nav > ul > li {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

body > header .header-nav li > a,
body > header .header-nav li > span:not(.menu-caret) {
	text-decoration: none;
	white-space: nowrap;
}

/* Filled triangle; rotates when submenu is open */
body > header .menu-caret {
	display: inline-block;
	width: 0;
	height: 0;
	padding: 0;
	margin: 0;
	border-style: solid;
	border-width: 0.35em 0.28em 0;
	border-color: currentColor transparent transparent;
	background: transparent;
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	color: inherit;
	line-height: 0;
	opacity: 0.55;
	cursor: pointer;
	transition: transform 0.15s ease;
}

body > header .header-nav > ul > li.is-open > .menu-caret,
body > header .header-nav > ul > li:focus-within > .menu-caret {
	transform: rotate(180deg);
}

body > header .header-nav ul ul .menu-caret {
	transform: rotate(-90deg);
	margin-left: 0.35rem;
}

body > header .header-nav ul ul > li.is-open > .menu-caret,
body > header .header-nav ul ul > li:focus-within > .menu-caret {
	transform: rotate(90deg);
}

body > header .header-nav > ul > li > ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	min-width: 10rem;
	padding: 0.4rem 0;
	background: #fff;
	border: 1px solid #e5e5e5;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body > header .header-nav > ul > li.is-open > ul,
body > header .header-nav > ul > li:focus-within > ul {
	display: block;
}

body > header .header-nav ul ul > li {
	display: flex;
	align-items: center;
	position: relative;
	padding: 0.35rem 0.85rem;
}

body > header .header-nav ul ul ul {
	display: none;
	position: absolute;
	top: 0;
	left: 100%;
	z-index: 21;
	min-width: 10rem;
	padding: 0.4rem 0;
	background: #fff;
	border: 1px solid #e5e5e5;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body > header .header-nav ul ul > li.is-open > ul,
body > header .header-nav ul ul > li:focus-within > ul {
	display: block;
}

body > header .header-nav ul ul > li.open-left > ul {
	left: auto;
	right: 100%;
}

/* Mobile drawer */
.header-drawer {
	display: none;
}

.header-search {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 5rem 1rem 1rem;
	background: rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
}

.header-search[hidden] {
	display: none !important;
}

.header-search-input {
	width: min(32rem, 100%);
	padding: 0.75rem 1rem;
	border: 0;
	border-radius: 0.4rem;
	font: inherit;
	font-size: 1.1rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
	.header-nav {
		display: none;
	}

	.header-hamburger {
		display: inline-flex;
	}

	.header-drawer {
		display: block;
		position: fixed;
		top: var(--header-offset, 3.5rem);
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 99;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		background: #fff;
		border-top: 1px solid #e8e8e8;
	}

	.header-drawer[hidden] {
		display: none !important;
	}

	.header-drawer-nav ul {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.header-drawer-nav > ul {
		display: block;
		padding: 0.5rem 0 1.5rem;
		font-size: 1.05rem;
		letter-spacing: -0.02em;
	}

	.header-drawer-nav li {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		position: static;
	}

	.header-drawer-nav li > a,
	.header-drawer-nav li > span:not(.menu-caret) {
		display: block;
		grid-column: 1;
		padding: 0.7rem 1rem;
		text-decoration: none;
	}

	/* Same triangle as desktop — only position + hit area for touch */
	.header-drawer-nav .menu-caret {
		grid-column: 2;
		grid-row: 1;
		justify-self: center;
		align-self: center;
		position: relative;
		margin-right: 1rem;
		font-size: 1.15em;
	}

	.header-drawer-nav .menu-caret::after {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		width: 2.75rem;
		height: 2.75rem;
		transform: translate(-50%, -50%);
	}

	.header-drawer-nav li.is-open > .menu-caret {
		transform: rotate(180deg);
	}

	.header-drawer-nav ul ul {
		display: none;
		grid-column: 1 / -1;
		position: static !important;
		border: 0;
		box-shadow: none;
		padding-left: 0.75rem;
		background: transparent;
	}

	.header-drawer-nav li.is-open > ul {
		display: block;
	}

	html.header-drawer-open {
		overflow: hidden;
	}
}

.search-posts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.search-posts li {
	padding: 0.4rem 0;
	border-bottom: 1px solid #eee;
}

body > footer {
	background: #000;
	color: #fff;
}

body > footer.footer a {
	color: inherit;
}

body > main {
	flex: 1 0 auto;
	margin-top: var(--header-offset, 0px);
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

/* Form validation — API field errors map to this class */
input.input-error,
textarea.input-error,
select.input-error,
.search-select.is-error > input {
	outline: 2px solid #c00;
	outline-offset: 1px;
}

.form-error {
	color: #c00;
}

/* Base form controls — match shop _default-2 feel */
.content input[type="text"],
.content input[type="email"],
.content input[type="tel"],
.content input[type="password"],
.content input[type="number"],
.content input[type="search"],
.content textarea,
.content select,
.search-select > input {
	display: block;
	width: 100%;
	padding: 0.55em 0.7em;
	border: 1px solid #ddd;
	border-radius: 0.3em;
	box-sizing: border-box;
	font: inherit;
	background: #fff;
	color: inherit;
}

.content textarea {
	min-height: 6em;
	resize: vertical;
}

.content label {
	display: block;
	margin-top: 0.65em;
	font-weight: 400;
	color: #666;
}

/* Submit row — padding (not margin) so * { margin:0 } + collapse cannot eat the gap */
.content form > p:has(> .btn) {
	padding-top: 1rem;
}

.login-link {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.login-hint,
.login-notice {
	margin-bottom: 0.75rem;
}

.login-notice {
	color: #2a7a4b;
}

.register-done-actions {
	margin-top: 1rem;
}

.content label.radio,
.content label.checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	margin-top: 0.35em;
	margin-right: 1.25em;
	color: inherit;
}

.content input[type="radio"],
.content input[type="checkbox"] {
	display: inline-block;
	width: auto;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
}

.content .field {
	margin: 0 0 0.75em;
}

.content .field > label {
	margin-top: 0;
}

.content .field-hint {
	font-size: 0.85em;
	color: #999;
	font-weight: 400;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/*
 * Primary action button — always use class "btn".
 * Loading: add "is-loading" (Vue: :class="{ 'is-loading': busy }").
 * Appearance: override --btn-* in theme.css only.
 */
.btn {
	--btn-bg: #609bbf;
	--btn-color: #fff;
	--btn-border: transparent;
	--btn-loading-spinner: #fff;
	position: relative;
	display: inline-block;
	padding: 0.5em 1.1em;
	border: 1px solid var(--btn-border);
	border-radius: 0.3em;
	background: var(--btn-bg);
	color: var(--btn-color);
	font: inherit;
	line-height: 1.25;
	cursor: pointer;
}

.btn:hover {
	opacity: 0.88;
}

.btn:disabled {
	opacity: 0.5;
	cursor: default;
}

.btn.is-loading {
	color: transparent;
	pointer-events: none;
}

.btn.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1em;
	height: 1em;
	margin: -0.5em 0 0 -0.5em;
	border: 2px solid var(--btn-loading-spinner);
	border-right-color: transparent;
	border-radius: 50%;
	animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
	to {
		transform: rotate(360deg);
	}
}

body > a[href="#content"] {
	position: absolute;
	left: -9999px;
}

body > a[href="#content"]:focus {
	left: 0;
	top: 0;
	z-index: 110;
}

/* Breadcrumbs */
.breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
}

.breadcrumbs li + li::before {
	content: "/";
	margin: 0 0.5rem;
	color: #999;
}

/* Storefront layout width: section carries it (main + footer) */
.content {
	padding-bottom: 2em;
}

.content section,
.footer section {
	width: 100%;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
	padding: 0;
	box-sizing: border-box;
}

.content section.full,
.footer section.full {
	max-width: 100%;
}

/* Constrained column inside full-bleed section (bg/hero full; text narrow) */
.content section.full > div,
.footer section.full > div {
	width: 100%;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

@media (max-width: 768px) {
	.content section:not(.full),
	.footer section:not(.full),
	.content section.full > div,
	.footer section.full > div {
		padding-left: 0.5em;
		padding-right: 0.5em;
	}
}

/* --------------------------------------------------------------------------
 * Grid utilities — shared storefront + CMS (keep in sync with cms/style.css)
 * .grid-2 … .grid-9 → N equal columns; mobile → 1fr
 * .grid-8-4 etc → desktop first number, mobile second (after last dash)
 * -------------------------------------------------------------------------- */
.grid-2,
.grid-3,
.grid-4,
.grid-5,
.grid-6,
.grid-7,
.grid-8,
.grid-9,
.grid-4-2,
.grid-6-2,
.grid-6-3,
.grid-8-4,
.grid-8-2,
.content .grid-2,
.content .grid-3,
.content .grid-4,
.content .grid-5,
.content .grid-6,
.content .grid-7,
.content .grid-8,
.content .grid-9,
.content .grid-4-2,
.content .grid-6-2,
.content .grid-6-3,
.content .grid-8-4,
.content .grid-8-2 {
	display: grid;
	gap: var(--grid-gap, 0.75rem);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-7 { grid-template-columns: repeat(7, 1fr); }
.grid-8 { grid-template-columns: repeat(8, 1fr); }
.grid-9 { grid-template-columns: repeat(9, 1fr); }

.grid-4-2 { grid-template-columns: repeat(4, 1fr); }
.grid-6-2 { grid-template-columns: repeat(6, 1fr); }
.grid-6-3 { grid-template-columns: repeat(6, 1fr); }
.grid-8-4 { grid-template-columns: repeat(8, 1fr); }
.grid-8-2 { grid-template-columns: repeat(8, 1fr); }

@media (max-width: 768px) {
	.grid-2,
	.grid-3,
	.grid-4,
	.grid-5,
	.grid-6,
	.grid-7,
	.grid-8,
	.grid-9 {
		grid-template-columns: 1fr;
	}

	.grid-4-2 { grid-template-columns: repeat(2, 1fr); }
	.grid-6-2 { grid-template-columns: repeat(2, 1fr); }
	.grid-6-3 { grid-template-columns: repeat(3, 1fr); }
	.grid-8-4 { grid-template-columns: repeat(4, 1fr); }
	.grid-8-2 { grid-template-columns: repeat(2, 1fr); }
}

/*
 * Product catalog grid — override in theme.css via vars, e.g.:
 *   .products-grid { --products-cols: 3; --products-cols-mobile: 2; }
 */
.products-grid {
	--products-cols: 4;
	--products-cols-mobile: 2;
	--products-gap: 1.25rem;
	display: grid;
	grid-template-columns: repeat(var(--products-cols), minmax(0, 1fr));
	gap: var(--products-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Storefront pager (?page=) — products + posts */
.products-pager,
.posts-pager {
	margin-top: 2rem;
}

.pager {
	text-align: center;
	font-size: 0.875rem;
}

.pager-list {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pager-list li {
	margin: 0;
}

.pager-list a,
.pager-list span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25em;
	height: 2.25em;
	padding: 0 0.45em;
	text-decoration: none;
	color: inherit;
	background: #eee;
	border-radius: 0.25em;
	line-height: 1;
}

.pager-list a:hover {
	background: #222;
	color: #fff;
}

.pager-current span {
	background: #222;
	color: #fff;
	font-weight: 600;
}

.pager-disabled span {
	opacity: 0.35;
	cursor: default;
}

.pager-ellipsis span {
	background: transparent;
	min-width: 1.5em;
}

@media (max-width: 768px) {
	.products-grid {
		grid-template-columns: repeat(var(--products-cols-mobile), minmax(0, 1fr));
	}
}

.product-card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}

.product-card-media {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: #f3f3f3;
}

.product-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-stickers-container {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.25rem;
	pointer-events: none;
}

.product-stickers-container:empty {
	display: none;
}

.product-sticker {
	display: inline-block;
	padding: 0.25em 0.55em;
	border-radius: 0.25em;
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #fff;
	background: #444;
}

.sticker-discount {
	background: #c0392b;
}

.sticker-quantity {
	background: #8e44ad;
}

.sticker-coupon {
	background: #2980b9;
}

.sticker-action {
	background: #16a085;
}

.sticker-new {
	background: #565ceb;
}

.product-card-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
}

.product-card-title a {
	color: inherit;
	text-decoration: none;
}

.product-card-title a:hover {
	text-decoration: underline;
}

.product-card-desc {
	margin: 0;
	color: #666;
	font-size: 0.875em;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.product-card-price {
	margin: 0;
	font-weight: 600;
}

.product-card-price del {
	margin-right: 0.35em;
	font-weight: 400;
	opacity: 0.65;
}

.product-card-actions {
	margin-top: auto;
	padding-top: 0.25rem;
}

.product-card-actions .btn {
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}

.product-card-actions .btn:disabled {
	opacity: 0.45;
	cursor: default;
}

/* Product detail — layout mirrors shop/_default-2 (media left, info right) */
.product {
	--product-gap: 1.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--product-gap);
	align-items: start;
}

@media (max-width: 768px) {
	.product {
		grid-template-columns: 1fr;
	}
}

.product-left {
	min-width: 0;
}

.product-main-image {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.product-image {
	display: block;
	width: 100%;
	height: auto;
}

.product-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.5rem;
}

.product-thumb {
	flex: 0 0 calc(20% - 0.28rem);
	max-width: 5em;
	padding: 1px;
	border: 1px solid transparent;
	background: transparent;
	cursor: pointer;
	box-sizing: border-box;
}

.product-thumb img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 5em;
	object-fit: cover;
	pointer-events: none;
}

.product-thumb:hover {
	opacity: 0.85;
}

.product-thumb.is-selected {
	border-color: #999;
}

.product-right {
	min-width: 0;
}

.product-title {
	margin: 0.35rem 0 0.5rem;
	font-size: 1.6rem;
	line-height: 1.25;
}

.product-weight {
	margin: 0 0 0.75rem;
	color: #666;
	font-size: 0.9em;
}

.product-price {
	position: relative;
	margin: 0.75rem 0 1rem;
	font-size: 1.25rem;
	font-weight: 600;
}

.product-price del {
	margin-right: 0.4em;
	font-weight: 400;
	opacity: 0.65;
	font-size: 0.75em;
}

.product-discount {
	margin-right: 0.4em;
	color: #b33;
	font-size: 0.85em;
}

.product-option {
	margin-bottom: 0.85rem;
}

.product-option h2 {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	font-weight: 600;
}

.product-actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 1rem 0;
}

.product-actions .btn {
	width: 100%;
	text-align: center;
	box-sizing: border-box;
	font-size: 1.1rem;
}

.btn-buy-now {
	--btn-bg: #111;
	--btn-color: #fff;
	--btn-border: #111;
}

.product-description,
.product-specifications,
.product-instructions {
	margin-top: 1.25rem;
}

.product-meta {
	margin-top: 1rem;
	color: #888;
	font-size: 0.85em;
}

/* Product gallery lightbox — dimmed overlay + white dialog */
html.product-lightbox-open {
	overflow: hidden;
}

.product-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.45);
}

.product-lightbox[hidden] {
	display: none !important;
}

.product-lightbox-dialog {
	position: relative;
	width: min(960px, 100%);
	max-height: calc(100vh - 2.5rem);
	padding: 2.5rem 1.25rem 1.25rem;
	box-sizing: border-box;
	background: #fff;
	border-radius: 0.5rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.product-lightbox-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 3;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eee;
	color: #222;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
}

.product-lightbox-close:hover {
	background: #ddd;
}

.product-lightbox-slider {
	width: 100%;
}

.product-lightbox-slider .slider-viewport {
	min-height: 40vh;
}

.product-lightbox-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.product-lightbox-slide img {
	display: block;
	max-width: 100%;
	max-height: min(75vh, 720px);
	width: auto;
	height: auto;
	object-fit: contain;
	-webkit-user-drag: none;
	user-select: none;
	pointer-events: none;
}

.product-lightbox-slider .slider-dots {
	margin-top: 0.75rem;
}

.product-lightbox-slider .slider-dot {
	background: #ccc;
}

.product-lightbox-slider .slider-dot.is-active {
	background: #333;
}

.product-lightbox-slider .slider-prev,
.product-lightbox-slider .slider-next {
	background: rgba(0, 0, 0, 0.35);
}

/* Variation swatches — colour/image options on the product page. */
.product-swatches {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.85rem 0.5rem;
}

@media (max-width: 768px) {
	.product-swatches {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.product-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
	color: inherit;
}

.product-swatch-chip {
	display: block;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	border: 1px solid #ccc;
	background: #f3f3f3;
	box-sizing: border-box;
	overflow: hidden;
}

.product-swatch.is-selected .product-swatch-chip {
	outline: 2px solid #333;
	outline-offset: 3px;
}

.product-swatch-chip img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.product-swatch-name {
	display: block;
	max-width: 100%;
	font-size: 0.75rem;
	line-height: 1.2;
	text-align: center;
	overflow-wrap: anywhere;
}

/* Background image on section/div (from HtmlEditor sidebar) */
.content .has-bg {
	background-image: var(--bg-image);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: transparent;
}

.content .bg-ratio-4-1 {
	aspect-ratio: 4 / 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.content .bg-ratio-16-9 {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* --------------------------------------------------------------------------
 * Searchable select (courier city / street)
 * -------------------------------------------------------------------------- */
.search-select {
	position: relative;
}

.search-select.is-disabled {
	opacity: 0.55;
}

.search-select-list {
	position: absolute;
	z-index: 40;
	top: calc(100% + 2px);
	left: 0;
	right: 0;
	max-height: 14em;
	margin: 0;
	padding: 0.25em 0;
	list-style: none;
	overflow: auto;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 0.3em;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.search-select-list li {
	padding: 0.45em 0.7em;
	cursor: pointer;
}

.search-select-list li:hover,
.search-select-list li.is-focused {
	background: #f3f7fa;
}

/* --------------------------------------------------------------------------
 * Address forms
 * -------------------------------------------------------------------------- */
.address-form-row,
.address-form-street {
	display: grid;
	gap: 0.75rem;
}

.address-form-row {
	grid-template-columns: 1fr 1fr;
}

.address-form-street {
	grid-template-columns: 1fr 5.5rem;
	align-items: stretch;
}

.address-form-street .field,
.address-form-row .field {
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
}

/* Keep street + number inputs on one baseline (SearchSelect vs plain input). */
.address-form-street label {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	justify-content: flex-end;
	margin-top: 0;
	min-height: 100%;
}

.address-form-street .search-select,
.address-form-street input[type="text"] {
	margin-top: 0;
}

.field--hint {
	position: relative;
	padding-bottom: 1.15em;
}

.field-hint {
	position: absolute;
	left: 0;
	bottom: 0;
	margin: 0;
	font-size: 0.75em;
	line-height: 1.2;
	color: #999;
	font-weight: 400;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
 * Cart
 * -------------------------------------------------------------------------- */
.cart-layout {
	display: block;
	width: 100%;
}

.cart-totals-bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
	gap: 1rem;
	align-items: stretch;
	margin: 0 0 1.75rem;
	padding: 0;
	border: none;
}

.cart-coupon,
.cart-summary,
.cart-order-box {
	padding: 1rem 1.1rem;
	background: #f7f7f7;
	border-radius: 0.3em;
}

.cart-coupon,
.cart-summary {
	height: 100%;
	box-sizing: border-box;
}

.cart-self-pickup {
	margin: 0 0 1rem;
	padding: 1rem 1.1rem;
	background: #f7f7f7;
	border-radius: 0.3em;
	text-align: right;
}

.cart-summary {
	text-align: right;
}

.cart-summary .cart-total,
.cart-order-box .cart-total {
	margin: 0.5em 0 0;
	font-size: 1.15em;
}

.cart-terms {
	margin: 0.75rem 0;
	text-align: center;
}

.cart-terms .checkbox {
	align-items: flex-start;
	justify-content: center;
	margin-right: 0;
}

.cart-terms a {
	text-decoration: underline;
}

.cart-terms-link {
	margin-left: 0.5em;
}

.cart-order-box {
	margin-top: 1rem;
	text-align: center;
}

.cart-order-box .btn {
	margin-top: 0.75rem;
}

.cart-coupon-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.cart-coupon-row input {
	flex: 1 1 8rem;
}

.cart-items-head {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) 6.5rem 6rem 10.5rem;
	gap: 0.75rem 1rem;
	padding: 0 0 0.5rem 5.5rem;
	margin-bottom: 0.25rem;
	border-bottom: 1px solid #eee;
	font-weight: 600;
	font-size: 0.9em;
	color: #666;
}

.cart-items-head-product {
	justify-self: start;
}

.cart-items {
	list-style: none;
	margin: 0 0 0.5rem;
	padding: 0;
}

.cart-item {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
	gap: 0.75rem 1rem;
	align-items: start;
	padding: 0.85rem 0;
	border-bottom: 1px solid #eee;
}

.cart-item-media {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	min-width: 0;
}

.cart-item-image {
	display: block;
	text-decoration: none;
}

.cart-item-image img {
	display: block;
	width: 4.5rem;
	height: 4.5rem;
	object-fit: cover;
	border-radius: 0.2em;
	background: #f3f3f3;
}

.cart-item-body {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) 6.5rem 6rem 10.5rem;
	gap: 0.5rem 1rem;
	align-items: center;
	min-width: 0;
}

.cart-item-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	min-width: 0;
}

.cart-product-title {
	font-weight: 600;
	text-decoration: none;
	color: inherit;
}

.cart-product-title:hover {
	text-decoration: underline;
}

.cart-product-variation {
	font-size: 0.9em;
	font-weight: 400;
	color: #666;
}

.cart-item-stickers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	max-width: 4.5rem;
}

.cart-item-stickers .product-sticker {
	pointer-events: auto;
}

.cart-item-unit {
	text-align: left;
}

.cart-item-unit del {
	display: block;
	font-size: 0.85em;
	opacity: 0.65;
	font-weight: 400;
}

.cart-qty {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	white-space: nowrap;
}

.cart-qty .btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 2.1rem;
	height: 2.1rem;
	padding: 0;
	line-height: 1;
}

.cart-qty span {
	display: inline-block;
	min-width: 1.5em;
	text-align: center;
}

.cart-item-end {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	white-space: nowrap;
	min-width: 0;
}

.cart-item-line-total {
	font-weight: 600;
}

.cart-item-remove {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 2.1rem;
	height: 2.1rem;
	padding: 0;
}

.cart-item-remove img {
	width: 1.15rem;
	height: 1.15rem;
	display: block;
	filter: brightness(0) invert(1);
}

.cart-item-meta {
	margin: 0.25em 0 0;
	font-size: 0.9em;
	color: #666;
}

@media (max-width: 768px) {
	.cart-items-head {
		display: none;
	}

	.cart-item {
		grid-template-columns: 38% minmax(0, 1fr);
		gap: 0.75rem;
		align-items: start;
	}

	.cart-item-image img {
		width: 100%;
		height: auto;
		aspect-ratio: 1;
	}

	.cart-item-stickers {
		max-width: 100%;
	}

	.cart-item-body {
		grid-template-columns: 1fr;
		justify-items: start;
		gap: 0.45rem;
	}

	.cart-item-unit,
	.cart-qty,
	.cart-item-end {
		width: 100%;
	}

	.cart-item-end {
		justify-content: space-between;
	}
}

.cart-form,
.cart-section {
	width: 100%;
	max-width: none;
}

.cart-section {
	margin: 1.75rem 0;
	padding: 0;
}

.cart-section h2 {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
}

.cart-section h3 {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	color: #444;
}

.cart-address-section {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 1.5rem;
}

.cart-login-hint {
	margin-bottom: 1rem;
}

.content .cart-payment {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0.25rem 0 1rem;
}

.content .cart-payment .cart-payment-option {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin: 0;
	padding: 1rem 1.1rem;
	background: #f7f7f7;
	border-radius: 0.3em;
	cursor: pointer;
	color: #222;
	font-weight: 400;
}

.content .cart-payment .cart-payment-option input {
	flex-shrink: 0;
}

@media (max-width: 860px) {
	.cart-totals-bar,
	.cart-address-section,
	.address-form-row {
		grid-template-columns: 1fr;
	}

	.cart-summary {
		text-align: left;
	}

	.address-form-street {
		grid-template-columns: 1fr 5rem;
	}
}

/* Core Slider (js/Slider.js) — wraps children; segments only supply items */
.slider {
	position: relative;
}

.slider-viewport {
	overflow: hidden;
	width: 100%;
	touch-action: pan-y;
}

.slider-track {
	display: flex;
	will-change: transform;
}

.slider-slide {
	box-sizing: border-box;
	min-width: 0;
}

.slider-slide img {
	-webkit-user-drag: none;
	user-select: none;
	pointer-events: none;
}

.slider-prev,
.slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	cursor: pointer;
	line-height: 1;
}

.slider-prev {
	left: 0.5rem;
}

.slider-next {
	right: 0.5rem;
}

.slider-prev::before,
.slider-next::before {
	display: block;
	font-size: 1.35rem;
	line-height: 1;
	font-weight: 700;
}

.slider-prev::before {
	content: "‹";
	/* optical center — glyph sits low-left in the em box */
	transform: translate(-0.05em, -0.08em);
}

.slider-next::before {
	content: "›";
	transform: translate(0.05em, -0.08em);
}

.slider-dots {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 0.75rem;
}

.slider-dot {
	width: 0.5rem;
	height: 0.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
}

.slider-prev:disabled,
.slider-next:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Profile (system-profile segment) */
.profile-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

.profile-nav-item {
	padding: 0.4em 0.9em;
	border: 1px solid #ddd;
	border-radius: 0.3em;
	background: #fff;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.profile-nav-item.is-active {
	border-color: transparent;
	background: var(--btn-bg, #609bbf);
	color: var(--btn-color, #fff);
}

.profile-saved {
	margin-top: 0.75rem;
	color: #2a7a4b;
}

.profile-orders {
	list-style: none;
	padding: 0;
	margin: 0;
}

.profile-order {
	border: 1px solid #eee;
	border-radius: 0.3em;
	margin-bottom: 0.5rem;
}

.profile-order-toggle {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0.85rem;
	border: 0;
	background: transparent;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.profile-order-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.profile-order-detail {
	padding: 0 0.85rem 0.85rem;
	border-top: 1px solid #eee;
}

.profile-order-items {
	list-style: none;
	padding: 0.75rem 0 0;
	margin: 0;
}

.profile-order-items li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.25rem 0;
}

.profile-order-total-line {
	margin-top: 0.5rem;
}

.success > p {
	margin-bottom: 1rem;
}

.success-box {
	margin: 1.25rem 0;
	padding: 1.35rem 1.5rem;
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	border-radius: 0.75rem;
	background: #fff;
}

.success-box h2 {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
}

.success-slip {
	margin-bottom: 1.25rem;
	padding-bottom: 1.15rem;
	border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}

.success-slip p {
	margin: 0.4rem 0;
}

.success-addresses {
	margin: 0;
	gap: 1.5rem;
}

.success-addresses p {
	margin: 0;
}

.success-items {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.success-item td {
	padding: 0.85rem 0;
	vertical-align: top;
	border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}

.success-item:last-child td {
	border-bottom: 0;
}

.success-item-img {
	width: 4.5rem;
	padding-right: 1rem !important;
}

.success-item-img img {
	display: block;
	width: 4.5rem;
	height: 4.5rem;
	object-fit: contain;
	border-radius: 0.4rem;
	background: #fff;
}

.success-item-img--empty {
	width: 4.5rem;
}

.success-item-info {
	width: auto;
}

.success-item-name {
	margin: 0 0 0.25rem;
	font-weight: 600;
}

.success-item-meta {
	margin: 0;
	font-size: 0.92em;
	opacity: 0.72;
}

.success-item-meta del {
	opacity: 0.65;
	margin-right: 0.25rem;
}

.success-item-total {
	width: 7rem;
	text-align: right;
	font-weight: 600;
	white-space: nowrap;
}

.success-totals {
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}

.success-totals p {
	margin: 0.3rem 0;
}

.success-total {
	margin-top: 0.5rem !important;
}

.success-note {
	margin-top: 1.15rem;
	padding-top: 1rem;
	border-top: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}

.success-box--receipt p {
	margin: 0.4rem 0;
}

.success-continue {
	margin-top: 1.5rem;
}

@media (max-width: 640px) {
	.success-box {
		padding: 1.1rem 1rem;
	}

	.success-item-img,
	.success-item-img--empty {
		width: 3.5rem;
	}

	.success-item-img img {
		width: 3.5rem;
		height: 3.5rem;
	}

	.success-item-total {
		width: 5.5rem;
		font-size: 0.95em;
	}
}



