/**
 * Stickerfreak – brand layer on top of Kadence.
 *
 * Colors/fonts come from the Kadence palette (see inc/class-kadence-defaults.php),
 * so everything here references the --global-palette* variables.
 */

:root {
	--sf-magenta: var(--global-palette1, #c4127c);
	--sf-black: var(--global-palette3, #1b1b1b);
	--sf-gray: var(--global-palette6, #b3b3b3);
	--sf-radius: 14px;
	--sf-radius-lg: 22px;
	--sf-outline: 6px;
	--sf-section-y: clamp(3.5rem, 7vw, 6.5rem);
	/* White die-cut border + soft drop shadow, like a real sticker. */
	--sf-sticker-shadow:
		drop-shadow(var(--sf-outline) 0 0 #fff)
		drop-shadow(calc(var(--sf-outline) * -1) 0 0 #fff)
		drop-shadow(0 var(--sf-outline) 0 #fff)
		drop-shadow(0 calc(var(--sf-outline) * -1) 0 #fff)
		drop-shadow(0 14px 18px rgba(0, 0, 0, 0.25));
}

/* ---------- Typography ---------- */

h1, h2, h3,
.wp-block-heading.sf-upper,
.woocommerce div.product .product_title,
.entry-hero .entry-title {
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

.sf-accent {
	color: var(--sf-magenta);
}

/* A word set like a sticker: magenta block, white outline, slight tilt. */
.sf-sticker-word {
	display: inline-block;
	padding: 0.02em 0.28em 0.08em;
	color: #fff;
	background: var(--sf-magenta);
	border: 0.09em solid #fff;
	border-radius: 0.18em;
	box-shadow: 0 0.12em 0 var(--sf-black);
	transform: rotate(-3deg);
}

.sf-eyebrow {
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sf-magenta);
}

/* ---------- Buttons ---------- */

.wp-block-button__link,
.button,
button[type="submit"],
.woocommerce a.button,
.woocommerce button.button {
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-button__link:hover,
.button:hover {
	transform: translateY(-2px);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
	color: inherit;
}

.sf-dark .wp-block-button.is-style-outline > .wp-block-button__link,
.sf-magenta .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #fff;
}

/*
 * Hover fills the outline button. The :not(.has-background) matches Kadence's
 * own outline hover rule, which sets a transparent background and otherwise
 * wins on specificity: the text turned dark on a dark section and vanished.
 */
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):focus-visible {
	background: var(--sf-black);
	border-color: var(--sf-black);
	color: var(--sf-c-white);
}

.sf-dark .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover,
.sf-dark .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):focus-visible,
.sf-magenta .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover,
.sf-magenta .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):focus-visible {
	background: var(--sf-c-white);
	border-color: var(--sf-c-white);
	color: var(--sf-black);
}

/* ---------- Header ---------- */

.site-top-header-wrap .header-html,
.site-top-header-wrap .mobile-html {
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
}

.site-top-header-wrap .header-html a,
.site-top-header-wrap .mobile-html a {
	color: #fff;
	text-decoration: underline;
}

/* Mobile top bar: the same text as desktop ("… σε όλη την Ελλάδα") on one
 * line from 360px up — smaller step of the scale, tighter tracking and
 * less side padding. Below 360px it wraps to two lines. */
@media (max-width: 781px) {
	#mobile-header .site-top-header-wrap .site-container {
		padding-inline: var(--sf-s-3);
	}

	.site-top-header-wrap .mobile-html {
		font-size: var(--sf-t-xs);
		letter-spacing: 0.02em;
	}
}

/* Shrunk sticky row: Kadence caps the logo at the row height, so give it air.
   Equal padding keeps the wordmark on the centre line (see logo-header.svg). */
#masthead .item-is-stuck .site-branding img.custom-logo {
	box-sizing: border-box;
	width: auto;
	padding-block: var(--sf-s-1);
}

.main-navigation .primary-menu-container > ul > li.menu-item > a {
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.site-header-item .header-cart-total {
	background: var(--sf-magenta);
	color: #fff;
}

/* Account icon, beside search and cart. */
.sf-account-item .sf-account-link {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.35em;
	color: var(--global-palette3);
	transition: color 0.2s ease;
}

.sf-account-item .sf-account-link:hover,
.sf-account-item .sf-account-link:focus {
	color: var(--sf-magenta);
}

/* Cart count only when there is something in the cart (Kadence keeps
 * .header-cart-is-empty-true up to date as items are added). */
.header-cart-is-empty-true ~ .header-cart-inner-wrap .header-cart-total {
	display: none;
}

/* Desktop header: search, account and cart as one set — same ink colour and
 * size (Kadence draws search grey at 1em). */
@media (min-width: 1025px) {
	#main-header .search-toggle-open-container .search-toggle-open,
	#main-header .header-cart-button,
	#main-header .sf-account-item .sf-account-link {
		color: var(--sf-black);
	}

	#main-header .search-toggle-open-container .search-toggle-open:hover,
	#main-header .header-cart-button:hover {
		color: var(--sf-c-magenta);
	}

	#main-header .search-toggle-open svg,
	#main-header .header-cart-button svg,
	#main-header .sf-account-item .sf-account-link svg {
		width: 22px;
		height: 22px;
	}
}

/* Mobile header: account, cart and menu as one set — outline icons from
 * Icons (Header_Icons swaps Kadence's filled cart/menu), 44px tap targets,
 * the cart count as a badge on the bag, the menu toggle as a round ink
 * button, and a soft shadow once the header is stuck. */
@media (max-width: 1024px) {
	#mobile-header .site-header-main-section-right {
		gap: var(--sf-s-1);
	}

	#mobile-header .site-header-main-section-right .site-header-item {
		margin: 0;
	}

	#mobile-header .search-toggle-open,
	#mobile-header .sf-account-item .sf-account-link,
	#mobile-header .header-cart-button,
	#mobile-header .menu-toggle-open {
		position: relative;
		display: grid;
		place-items: center;
		box-sizing: border-box;
		width: 2.75rem;
		height: 2.75rem;
		padding: 0;
		border-radius: var(--sf-r-pill);
		color: var(--sf-black);
	}

	#mobile-header .search-toggle-open svg,
	#mobile-header .sf-account-item .sf-account-link svg,
	#mobile-header .header-cart-button svg,
	#mobile-header .menu-toggle-open svg {
		width: 24px;
		height: 24px;
	}

	#mobile-header .header-cart-button .header-cart-total {
		position: absolute;
		top: 2px;
		right: -6px;
		display: grid;
		place-items: center;
		min-width: 1.25rem;
		height: 1.25rem;
		margin: 0;
		padding: 0 var(--sf-s-1);
		border: 2px solid var(--sf-c-white);
		border-radius: var(--sf-r-pill);
		font-size: var(--sf-t-xs);
		font-weight: 800;
		line-height: 1;
	}

	#mobile-header .menu-toggle-open {
		margin-left: var(--sf-s-1);
		background: var(--sf-black);
		color: var(--sf-c-white);
		transition: background-color 0.2s var(--sf-ease);
	}

	#mobile-header .menu-toggle-open:hover,
	#mobile-header .menu-toggle-open:focus-visible {
		background: var(--sf-c-magenta);
		color: var(--sf-c-white);
	}

	#mobile-header .menu-toggle-open:focus-visible,
	#mobile-header .search-toggle-open:focus-visible,
	#mobile-header .header-cart-button:focus-visible,
	#mobile-header .sf-account-link:focus-visible {
		outline: none;
		box-shadow: var(--sf-focus);
	}

	#mobile-header .kadence-sticky-header.item-is-fixed {
		box-shadow: 0 6px 18px rgba(27, 27, 27, 0.08);
	}

	#mobile-header .search-toggle-open:hover {
		color: var(--sf-c-magenta);
	}

	/* Same specificity as the badge rule above, which would otherwise show it. */
	#mobile-header .header-cart-is-empty-true ~ .header-cart-inner-wrap .header-cart-total {
		display: none;
	}
}

/* Narrow phones (< 390px): four header buttons beside the 130px logo only fit
 * with some air at 40px and no extra spacing. */
@media (max-width: 389px) {
	#mobile-header .site-header-main-section-right {
		gap: 0;
	}

	#mobile-header .search-toggle-open,
	#mobile-header .sf-account-item .sf-account-link,
	#mobile-header .header-cart-button,
	#mobile-header .menu-toggle-open {
		width: 2.5rem;
		height: 2.5rem;
	}

	#mobile-header .menu-toggle-open {
		margin-left: 0;
	}
}

/* Six items fit on one line down to 1025px only if they breathe less.
   Below 1180px they need the tighter step too (~80px to spare at 1025). */
@media (min-width: 1025px) and (max-width: 1320px) {
	.main-navigation .primary-menu-container > ul > li.menu-item > a {
		padding-left: 0.55em;
		padding-right: 0.55em;
		font-size: 0.95rem;
	}
}

@media (min-width: 1025px) and (max-width: 1180px) {
	.main-navigation .primary-menu-container > ul > li.menu-item > a {
		padding-left: 0.45em;
		padding-right: 0.45em;
		font-size: var(--sf-t-sm);
		letter-spacing: 0.02em;
	}
}

/* In-page anchors (#pos-leitourgei) should not look "active" in the menu. */
.main-navigation .primary-menu-container > ul > li.menu-item-type-custom.current-menu-item > a[href*="#"] {
	color: var(--global-palette3);
}

.mobile-navigation ul li.menu-item-type-custom.current-menu-item > a[href*="#"] {
	color: inherit;
}

.main-navigation .primary-menu-container > ul > li.menu-item-type-custom.current-menu-item > a[href*="#"]:hover {
	color: var(--global-palette1);
}

/* ---------- Mobile menu (Kadence popup drawer) ----------
 * Full-screen ink panel with the hero's halftone dots, menu items in the
 * heading face, round sub-menu toggles, and the calls to action + contact at
 * the bottom (template-parts/header/sf-drawer-extra.php).
 */
#mobile-drawer .drawer-inner {
	width: 100%;
	max-width: none;
	background-color: var(--sf-black);
	background-image: radial-gradient(rgba(196, 18, 124, 0.28) 1.5px, transparent 1.6px);
	background-size: 22px 22px;
	background-position: 0 0;
}

#mobile-drawer .drawer-header {
	padding: var(--sf-s-4) var(--sf-s-5) 0;
}

/* Same specificity as Kadence's .drawer-header .drawer-toggle, whose padding
 * would otherwise stretch the round button into an oval. */
#mobile-drawer .drawer-header .menu-toggle-close {
	box-sizing: border-box;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: var(--sf-r-pill);
	color: var(--sf-c-white);
	transition: border-color 0.2s var(--sf-ease), background-color 0.2s var(--sf-ease);
}

#mobile-drawer .drawer-header .menu-toggle-close:hover,
#mobile-drawer .drawer-header .menu-toggle-close:focus-visible {
	border-color: var(--sf-c-magenta);
	background: var(--sf-c-magenta);
}

#mobile-drawer .drawer-header .menu-toggle-close .toggle-close-bar {
	width: 18px;
	height: 2px;
	background: currentColor;
}

#mobile-drawer .drawer-content {
	display: flex;
	flex-direction: column;
	min-height: calc(100% - 4rem);
	padding: var(--sf-s-4) var(--sf-s-5) var(--sf-s-6);
}

#mobile-drawer .mobile-navigation ul li > a,
#mobile-drawer .mobile-navigation ul li .drawer-nav-drop-wrap {
	border-bottom: 0;
}

#mobile-drawer .mobile-navigation .menu > li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#mobile-drawer .mobile-navigation .menu > li > a,
#mobile-drawer .mobile-navigation .menu > li > .drawer-nav-drop-wrap > a {
	padding: var(--sf-s-4) 0;
	color: var(--sf-c-white);
	font-size: var(--sf-t-lg);
	font-weight: 900;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

#mobile-drawer .mobile-navigation .menu > li.current-menu-item > a,
#mobile-drawer .mobile-navigation .menu > li.current-menu-ancestor > .drawer-nav-drop-wrap > a,
#mobile-drawer .mobile-navigation .menu > li > a:hover,
#mobile-drawer .mobile-navigation .menu > li > .drawer-nav-drop-wrap > a:hover {
	color: var(--sf-c-magenta);
}

#mobile-drawer .mobile-navigation .drawer-nav-drop-wrap {
	display: flex;
	align-items: center;
}

#mobile-drawer .mobile-navigation .drawer-sub-toggle {
	display: grid;
	place-items: center;
	flex: 0 0 2.5rem;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-left-width: 2px;
	border-radius: var(--sf-r-pill);
	color: var(--sf-c-white);
	transition: transform 0.25s var(--sf-ease), background-color 0.2s var(--sf-ease), border-color 0.2s var(--sf-ease);
}

#mobile-drawer .mobile-navigation .drawer-sub-toggle[aria-expanded="true"] {
	border-color: var(--sf-c-magenta);
	background: var(--sf-c-magenta);
	transform: rotate(180deg);
}

#mobile-drawer .mobile-navigation .drawer-sub-toggle .kadence-svg-iconset svg {
	width: 1.25rem;
	height: 1.25rem;
}

#mobile-drawer .mobile-navigation .sub-menu {
	margin: 0 0 var(--sf-s-4);
	padding: 0;
}

#mobile-drawer .mobile-navigation .sub-menu li a {
	display: flex;
	align-items: center;
	gap: var(--sf-s-3);
	padding: var(--sf-s-2) 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--sf-t-base);
	font-weight: 600;
	text-transform: none;
}

#mobile-drawer .mobile-navigation .sub-menu li a::before {
	content: "";
	flex: 0 0 auto;
	width: 1rem;
	height: 2px;
	background: var(--sf-c-magenta);
}

#mobile-drawer .mobile-navigation .sub-menu li a:hover,
#mobile-drawer .mobile-navigation .sub-menu li.current-menu-item a {
	color: var(--sf-c-white);
}

/* Calls to action and contact, pushed to the bottom of the panel. */
.sf-drawer-extra {
	display: block;
	margin-top: auto;
	padding-top: var(--sf-s-6);
}

.sf-drawer-extra__ctas {
	display: grid;
	gap: var(--sf-s-3);
}

.sf-drawer-extra__btn {
	display: block;
	padding: var(--sf-s-4) var(--sf-s-5);
	border: 2px solid var(--sf-c-magenta);
	border-radius: var(--sf-r-md);
	background: var(--sf-c-magenta);
	color: var(--sf-c-white);
	font-weight: 900;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sf-drawer-extra__btn:hover,
.sf-drawer-extra__btn:focus-visible {
	border-color: var(--sf-c-magenta-dark);
	background: var(--sf-c-magenta-dark);
	color: var(--sf-c-white);
}

.sf-drawer-extra__btn--ghost {
	border-color: rgba(255, 255, 255, 0.35);
	background: transparent;
}

.sf-drawer-extra__btn--ghost:hover,
.sf-drawer-extra__btn--ghost:focus-visible {
	border-color: var(--sf-c-white);
	background: var(--sf-c-white);
	color: var(--sf-black);
}

.sf-drawer-extra__contact {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-s-3) var(--sf-s-5);
	margin: var(--sf-s-5) 0 0;
	padding: 0;
	list-style: none;
}

.sf-drawer-extra__contact a {
	display: inline-flex;
	align-items: center;
	gap: var(--sf-s-2);
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--sf-t-sm);
	text-decoration: none;
}

.sf-drawer-extra__contact a:hover {
	color: var(--sf-c-white);
}

.sf-drawer-extra__contact svg {
	color: var(--sf-c-magenta);
}

/* Items come in one after another when the panel opens. */
@media (prefers-reduced-motion: no-preference) {
	#mobile-drawer .mobile-navigation .menu > li,
	#mobile-drawer .sf-drawer-extra {
		opacity: 0;
		transform: translateY(12px);
		transition: opacity 0.35s var(--sf-ease), transform 0.35s var(--sf-ease);
	}

	#mobile-drawer.active .mobile-navigation .menu > li,
	#mobile-drawer.active .sf-drawer-extra {
		opacity: 1;
		transform: none;
	}

	#mobile-drawer.active .mobile-navigation .menu > li:nth-child(2) { transition-delay: 0.04s; }
	#mobile-drawer.active .mobile-navigation .menu > li:nth-child(3) { transition-delay: 0.08s; }
	#mobile-drawer.active .mobile-navigation .menu > li:nth-child(4) { transition-delay: 0.12s; }
	#mobile-drawer.active .mobile-navigation .menu > li:nth-child(5) { transition-delay: 0.16s; }
	#mobile-drawer.active .mobile-navigation .menu > li:nth-child(n+6) { transition-delay: 0.2s; }
	#mobile-drawer.active .sf-drawer-extra { transition-delay: 0.24s; }
}

/* ---------- Sections (patterns) ---------- */

.sf-section {
	padding-top: var(--sf-section-y);
	padding-bottom: var(--sf-section-y);
}

.entry-content > .sf-section.alignfull {
	margin-top: 0;
	margin-bottom: 0;
}

.sf-section.alignfull {
	padding-left: var(--global-content-edge-padding, 1.5rem);
	padding-right: var(--global-content-edge-padding, 1.5rem);
}

.sf-section > .wp-block-group__inner-container,
.sf-section.is-layout-constrained > * {
	max-width: var(--global-content-width, 1320px);
	margin-left: auto;
	margin-right: auto;
}

.sf-dark {
	background-color: var(--sf-black);
	color: #fff;
}

.sf-dark h1,
.sf-dark h2,
.sf-dark h3,
.sf-dark h4 {
	color: #fff;
}

/* A white panel (.sf-ui) inside a dark section keeps dark text. */
.sf-dark .sf-ui {
	color: var(--sf-c-ink-soft);
}

.sf-dark .sf-ui :is(h1, h2, h3, h4) {
	color: var(--sf-c-ink);
}

/*
 * The code login ([sf_login], nvm-stickerfreak-login) in a dark hero, as on
 * /re-order/: aligned with the hero's text, and standing in for the button
 * right after it, which would only lead a visitor to the same login. A
 * logged-in customer gets no form, so the button shows.
 */
.sf-dark .sf-otp {
	margin-inline: 0;
}

.sf-otp + .wp-block-buttons {
	display: none;
}

.sf-magenta {
	background-color: var(--sf-magenta);
	color: #fff;
}

.sf-magenta h2,
.sf-magenta h3,
.sf-magenta h4 {
	color: #fff;
}

.sf-light {
	background-color: var(--global-palette7, #f1f1f1);
}

/* Hero */
.sf-hero {
	position: relative;
	overflow: hidden;
}

.sf-hero::before {
	/* Subtle halftone dots in magenta. */
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(196, 18, 124, 0.28) 1.5px, transparent 1.6px);
	background-size: 22px 22px;
	mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
	pointer-events: none;
}

.sf-hero .wp-block-columns {
	position: relative;
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
}

.sf-hero h1 {
	margin-top: 0.75rem;
	font-size: clamp(2.6rem, 6.4vw, 5.2rem);
	line-height: 1.02;
	margin-bottom: 1.5rem;
}

.sf-hero p {
	font-size: 1.15rem;
	max-width: 34rem;
	color: rgba(255, 255, 255, 0.85);
}

.sf-hero .wp-block-buttons {
	margin-top: 2rem;
}

/* Image with a die-cut sticker look. */
.sf-sticker img {
	filter: var(--sf-sticker-shadow);
}

/* Sticker collage: the shadows are baked into the image, so no filter. */
.sf-hero .sf-hero-art {
	margin: 0;
	animation: sf-float 6s ease-in-out infinite;
	will-change: transform;
}

.sf-hero .sf-hero-art img {
	width: 100%;
	height: auto;
}

@keyframes sf-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
	.sf-hero .sf-hero-art {
		animation: none;
	}
}

/*
 * Light hero (/sample-pack/): magenta tint instead of black, a smaller
 * heading so the buy box (.sf-buy-box) fits on the first screen, and the
 * product photo on a black panel (.sf-hero-art--dark), where the image
 * floats instead of the panel.
 */
.sf-hero--light {
	background-color: var(--sf-c-magenta-tint);
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.sf-hero--light h1 {
	font-size: clamp(2.2rem, 4vw, 3.4rem);
	margin-bottom: var(--sf-s-4);
}

.sf-hero--light p:not(.sf-eyebrow) {
	font-size: var(--sf-t-base);
	color: var(--sf-c-ink-soft);
}

.sf-hero .sf-hero-art--dark {
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: var(--sf-r-lg);
	background: var(--sf-c-ink);
	animation: none;
}

.sf-hero .sf-hero-art--dark img {
	display: block;
	max-width: 26rem;
	margin-inline: auto;
	animation: sf-float 6s ease-in-out infinite;
}

@media (max-width: 781px) {
	.sf-hero .sf-hero-art--dark img {
		max-width: 14rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sf-hero .sf-hero-art--dark img {
		animation: none;
	}
}

/* Section heading row: title left, button right. */
.sf-section-head {
	align-items: flex-end;
	margin-bottom: 2.25rem;
}

.sf-section-head h2 {
	margin: 0;
}

@media (min-width: 782px) {
	.wp-block-columns.sf-section-head > .wp-block-column.sf-head-action {
		flex: 0 0 auto;
	}
}

/* Category / step cards */
.sf-cards {
	gap: 1.25rem;
}

.sf-card {
	--sf-card-pad: 1.75rem;
	position: relative;
	height: 100%;
	padding: var(--sf-card-pad);
	background: var(--global-palette7, #f1f1f1);
	border-radius: var(--sf-radius-lg);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sf-card:hover {
	transform: translateY(-4px) rotate(-0.6deg);
	box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.sf-card .wp-block-image {
	margin: 0 0 1.25rem;
	padding: 1.5rem;
	background: #fff;
	border-radius: var(--sf-radius);
	text-align: center;
}

.sf-card .wp-block-image img {
	display: block;
	margin: 0 auto;
	max-height: 170px;
	width: auto;
	filter: var(--sf-sticker-shadow);
}

/*
 * Media-library photos (product/material shots with their own grey or pink
 * background) fill the frame; the padded white box above is for the demo SVGs.
 */
.sf-card .wp-block-image:has(img[class*="wp-image-"]) {
	padding: 0;
	overflow: hidden;
}

.sf-card .wp-block-image img[class*="wp-image-"] {
	width: 100%;
	height: auto;
	max-height: none;
	aspect-ratio: 1;
	object-fit: cover;
	filter: none;
}

/*
 * A photo that opens the card bleeds to the card's top and side edges, and the
 * card turns white with a hairline border: a grey-background shot would
 * otherwise melt into the grey card.
 */
.sf-card:has(.wp-block-image:first-child img[class*="wp-image-"]) {
	background: var(--global-palette9);
	box-shadow: inset 0 0 0 1px var(--sf-c-line);
}

.sf-card:hover:has(.wp-block-image:first-child img[class*="wp-image-"]) {
	box-shadow: inset 0 0 0 1px var(--sf-c-line), 0 16px 30px rgba(0, 0, 0, 0.08);
}

.sf-card .wp-block-image:first-child:has(img[class*="wp-image-"]) {
	margin: calc(-1 * var(--sf-card-pad)) calc(-1 * var(--sf-card-pad)) var(--sf-s-5);
	border-radius: var(--sf-radius-lg) var(--sf-radius-lg) 0 0;
}

.sf-card .wp-block-image:first-child img[class*="wp-image-"] {
	border-radius: 0;
}

/*
 * Materials overview: every card is a quarter of the row on tablet and
 * desktop, whatever the number of cards in its group, so a group of two does
 * not blow its photos up to half the page width.
 */
@media (min-width: 782px) {
	.wp-block-columns.sf-materials > .wp-block-column {
		flex: 0 0 calc((100% - 3 * 1.25rem) / 4);
	}
}

/*
 * Product carousel ([sf_product_carousel]): five narrower cards to a row, so
 * the section stays short. Less padding, description cut to three lines.
 */
.sf-carousel .sf-card {
	--sf-card-pad: var(--sf-s-5);
}

.sf-carousel .sf-card .wp-block-image:first-child:has(img[class*="wp-image-"]) {
	margin-bottom: var(--sf-s-4);
}

.sf-carousel .sf-card h3 {
	font-size: var(--sf-t-base);
	line-height: 1.25;
}

.sf-carousel .sf-card p:not(.sf-tag) {
	display: -webkit-box;
	overflow: hidden;
	font-size: var(--sf-t-sm);
	line-height: 1.5;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/*
 * Two cards per row on mobile instead of one card per screen: the materials
 * overview, and any row marked .sf-2up (the homepage products and USPs).
 * Core's stacking rule uses !important, so this has to as well. The product
 * carousel gets the same compact padding, but one and a half bigger cards per
 * screen (ui.css), title only.
 */
@media (max-width: 781px) {
	.wp-block-columns.sf-materials,
	.wp-block-columns.sf-2up {
		gap: var(--sf-s-3);
	}

	.wp-block-columns.sf-materials > .wp-block-column,
	.wp-block-columns.sf-2up > .wp-block-column {
		flex-basis: calc(50% - var(--sf-s-3) / 2) !important;
		flex-grow: 0;
		min-width: 0;
	}

	.sf-materials .sf-card,
	.sf-2up .sf-card,
	.sf-carousel .sf-card {
		--sf-card-pad: var(--sf-s-4);
		border-radius: var(--sf-radius);
	}

	.sf-materials .sf-card .wp-block-image:first-child:has(img[class*="wp-image-"]),
	.sf-2up .sf-card .wp-block-image:first-child:has(img[class*="wp-image-"]),
	.sf-carousel .sf-card .wp-block-image:first-child:has(img[class*="wp-image-"]) {
		margin-bottom: var(--sf-s-3);
		border-radius: var(--sf-radius) var(--sf-radius) 0 0;
	}

	.sf-materials .sf-card h3,
	.sf-2up .sf-card h3 {
		font-size: var(--sf-t-base);
		line-height: 1.25;
	}

	.sf-materials .sf-card p:not(.sf-tag),
	.sf-2up .sf-card p:not(.sf-tag) {
		font-size: var(--sf-t-sm);
		line-height: 1.45;
	}

	.sf-carousel .sf-card p:not(.sf-tag) {
		display: none;
	}
}

/*
 * A card's label (.sf-tag) sits on the corner of its photo. It comes after the
 * photo in the markup so the photo stays the card's first child and keeps its
 * edge-to-edge treatment. Not a child selector: WordPress may wrap the card's
 * blocks in .wp-block-group__inner-container. The colour is restated because
 * the section and card paragraph rules are more specific than .sf-tag.
 */
.sf-card .sf-tag {
	position: absolute;
	top: var(--sf-s-3);
	left: var(--sf-s-3);
	z-index: 2;
	margin: 0;
	color: var(--sf-c-white);
}

/*
 * .sf-card--swap: a second photo right after the first fades in on hover
 * (devices that hover only), like the shop's product cards.
 */
.sf-card--swap .wp-block-image:first-child + .wp-block-image {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	margin: 0;
	border-radius: var(--sf-radius-lg) var(--sf-radius-lg) 0 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.sf-card--swap .wp-block-image:first-child + .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

@media (hover: hover) {
	.sf-card--swap .wp-block-image:first-child + .wp-block-image {
		transition: opacity 0.35s var(--sf-ease);
	}

	.sf-card--swap:hover .wp-block-image:first-child + .wp-block-image,
	.sf-card--swap:focus-within .wp-block-image:first-child + .wp-block-image {
		opacity: 1;
	}
}

@media (hover: none) {
	.sf-card--swap .wp-block-image:first-child + .wp-block-image {
		display: none;
	}
}

@media (max-width: 781px) {
	.sf-2up .sf-card--swap .wp-block-image:first-child + .wp-block-image {
		border-radius: var(--sf-radius) var(--sf-radius) 0 0;
	}
}

.sf-card h3 {
	font-size: 1.25rem;
	margin: 0 0 0.35rem;
}

.sf-card p:not(.sf-tag) {
	margin: 0;
	color: var(--global-palette5, #5c5c5b);
}

.sf-card a {
	color: inherit;
}

.sf-card a::after {
	/* Make the whole card clickable from the title link. */
	content: "";
	position: absolute;
	inset: 0;
}

.sf-card p.sf-step-number {
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 2.5rem !important;
	border-radius: 50%;
	background: var(--sf-magenta);
	color: #fff;
	font-weight: 900;
	font-size: 1.2rem;
	line-height: 1;
	transform: rotate(-6deg);
}

/* Materials: overview cards and the links between material pages. */
.sf-card p.sf-card-more {
	margin-top: var(--sf-s-4);
	font-weight: 800;
	color: var(--sf-magenta);
}

.sf-eyebrow a {
	color: inherit;
	text-decoration: none;
}

.sf-eyebrow a:hover,
.sf-eyebrow a:focus-visible {
	text-decoration: underline;
}

.sf-material-hero .wp-block-image img {
	display: block;
	max-height: 360px;
	width: auto;
	margin: 0 auto;
}

.wp-block-page-list.sf-material-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-s-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-material-links a {
	display: inline-block;
	padding: var(--sf-s-2) var(--sf-s-4);
	border: 2px solid var(--global-palette3);
	border-radius: var(--sf-r-pill);
	color: var(--global-palette3);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.sf-material-links a:hover,
.sf-material-links a:focus-visible {
	background: var(--global-palette3);
	color: #fff;
}

.sf-material-links .current-menu-item a {
	border-color: var(--sf-magenta);
	background: var(--sf-magenta);
	color: #fff;
}

/* USP strip */
.sf-usps {
	text-align: center;
}

.sf-usps .wp-block-columns {
	gap: 2rem;
}

.sf-usp-icon {
	font-size: 2.4rem;
	line-height: 1;
	margin-bottom: 0.75rem;
}

.sf-usps h3 {
	font-size: 1.2rem;
	margin-bottom: 0.4rem;
}

.sf-usps p {
	margin: 0 auto;
	max-width: 22rem;
	color: rgba(255, 255, 255, 0.9);
}

/*
 * 2×2 on mobile (.sf-2up): the column gap must stay the one the 2-up width
 * is calculated with, or two columns no longer fit side by side.
 */
@media (max-width: 781px) {
	.sf-usps .wp-block-columns.sf-2up {
		column-gap: var(--sf-s-3);
		row-gap: var(--sf-s-6);
	}

	.sf-usps .sf-usp-icon {
		margin-bottom: var(--sf-s-2);
	}

	.sf-usps h3 {
		font-size: var(--sf-t-base);
		line-height: 1.25;
	}

	.sf-usps p {
		font-size: var(--sf-t-sm);
		line-height: 1.45;
	}
}

/* Split section (about) */
.sf-split .wp-block-columns {
	align-items: center;
	gap: clamp(2rem, 6vw, 5rem);
}

.sf-split h2 {
	font-size: clamp(2.2rem, 4.6vw, 3.6rem);
	line-height: 1.05;
}

.sf-split .sf-panel {
	display: grid;
	place-items: center;
	min-height: 420px;
	padding: 2.5rem;
	border-radius: var(--sf-radius-lg);
}

/* Magenta unless a background is picked in the editor (e.g. black on the home Sample Pack). */
.sf-split .sf-panel:not(.has-background) {
	background: var(--sf-magenta);
}

.sf-split .sf-panel img {
	max-width: 360px;
	width: 100%;
	filter: var(--sf-sticker-shadow);
	transform: rotate(-5deg);
}

/* CTA */
.sf-cta {
	text-align: center;
}

.sf-cta h2 {
	font-size: clamp(2.2rem, 5vw, 4rem);
	line-height: 1.05;
}

.sf-cta p {
	max-width: 38rem;
	margin-left: auto;
	margin-right: auto;
	color: rgba(255, 255, 255, 0.85);
}

.sf-cta .wp-block-buttons {
	justify-content: center;
	margin-top: 2rem;
}

/* ---------- Footer ---------- */

.site-footer {
	color: rgba(255, 255, 255, 0.78);
}

.site-footer h4,
.site-footer .widget-title {
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.95rem;
}

.site-footer a {
	color: #fff;
}

.site-footer a:hover {
	color: var(--sf-magenta);
}

.site-footer .sf-footer-logo {
	margin-bottom: 1rem;
}

.site-footer .sf-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.site-footer .sf-footer-links li {
	margin-bottom: 0.4rem;
}

.site-bottom-footer-wrap {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.6);
}

.site-footer .footer-social-wrap .social-button {
	color: #fff;
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
}

.site-footer .footer-social-wrap .social-button:hover {
	color: #fff;
	background: var(--sf-magenta);
	border-color: var(--sf-magenta);
}

/* Footer link-list headings become toggles (assets/js/footer.js). On desktop
 * the button looks and behaves like the heading it replaced. */
.site-footer .sf-footer-toggle {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: inherit;
	text-transform: inherit;
	cursor: default;
}

/* Mobile footer, tighter (desktop is unchanged): smaller logo, contact kept
 * open, link lists folded (like entos.gr), no repeated address/phone or
 * Instagram text — the icon is in the bottom bar. */
@media (max-width: 781px) {
	.site-middle-footer-inner-wrap.site-footer-row {
		padding-block: var(--sf-s-6) var(--sf-s-4);
		gap: var(--sf-s-5);
	}

	.site-footer .sf-footer-logo,
	.site-footer .sf-footer-logo img {
		width: 120px !important;
		height: auto;
		margin: 0 0 var(--sf-s-3);
	}

	.site-footer .widget p {
		margin-bottom: var(--sf-s-3);
		font-size: var(--sf-t-sm);
		line-height: 1.6;
	}

	.site-footer .widget p:has(a[href*="instagram.com"]) {
		display: none;
	}

	.site-footer h4,
	.site-footer .widget-title {
		margin-bottom: var(--sf-s-2);
	}

	.site-footer .sf-footer-collapsible {
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.site-footer .sf-footer-collapsible h4 {
		margin: 0;
	}

	.site-footer .sf-footer-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 3rem;
		cursor: pointer;
	}

	.site-footer .sf-footer-toggle::after {
		content: "";
		width: 0.5rem;
		height: 0.5rem;
		margin-right: var(--sf-s-1);
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(-45deg);
		transition: transform 0.2s var(--sf-ease);
	}

	.site-footer .sf-footer-collapsible.is-open .sf-footer-toggle::after {
		transform: rotate(45deg);
	}

	.site-footer .sf-footer-toggle:focus-visible {
		outline: none;
		box-shadow: var(--sf-focus);
	}

	.site-footer .sf-footer-collapsible:not(.is-open) .sf-footer-links {
		display: none;
	}

	.site-footer .sf-footer-collapsible .sf-footer-links {
		padding-bottom: var(--sf-s-3);
	}

	.site-footer .sf-footer-links li {
		margin-bottom: 0;
	}

	.site-footer .sf-footer-links a {
		display: block;
		padding: var(--sf-s-1) 0;
		font-size: var(--sf-t-sm);
	}

	.site-bottom-footer-inner-wrap.site-footer-row {
		padding-block: var(--sf-s-4);
		gap: var(--sf-s-3);
		text-align: center;
	}

	.site-footer .sf-footer-contact {
		display: none;
	}

	.site-footer .footer-social-wrap .social-button {
		width: 2.5rem;
		height: 2.5rem;
	}
}

/* ---------- FAQ page ---------- */

/* Anything the FAQ script hides stays hidden, whatever its own display is. */
.sf-faq-page [hidden] {
	display: none;
}

.sf-faq-search {
	max-width: 32rem;
	margin: 2rem 0 2.5rem;
}

.sf-faq-search input {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid var(--sf-c-line, #dedede);
	border-radius: var(--sf-r-sm, 8px);
	font-family: inherit;
	font-size: 1rem;
}

.sf-faq-search input:focus {
	border-color: var(--sf-magenta);
	box-shadow: var(--sf-focus, 0 0 0 3px rgba(196, 18, 124, 0.35));
	outline: none;
}

.sf-faq-status:empty {
	display: none;
}

.sf-faq-layout {
	gap: clamp(1.5rem, 4vw, 3.5rem);
}

.sf-faq-nav ul {
	position: sticky;
	top: 120px;
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 2px solid var(--sf-c-line, #dedede);
}

.sf-faq-nav a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.6rem 0.9rem;
	margin-left: -2px;
	border-left: 2px solid transparent;
	color: var(--global-palette4);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.sf-faq-nav a:hover,
.sf-faq-nav a:focus-visible,
.sf-faq-nav a.is-active {
	border-left-color: var(--sf-magenta);
	color: var(--sf-magenta);
}

.sf-faq-count {
	flex: none;
	font-size: 0.8rem;
	font-weight: 800;
	color: var(--global-palette5);
}

.sf-faq-nav a.is-active .sf-faq-count {
	color: inherit;
}

.sf-faq-group + .sf-faq-group {
	margin-top: 2.5rem;
}

.sf-faq-group h2 {
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	scroll-margin-top: 120px;
}

.sf-faq-empty {
	margin-top: 1.5rem;
}

@media (max-width: 1024px) {
	.sf-faq-nav ul {
		position: static;
		display: flex;
		flex-wrap: wrap;
		gap: 0.25rem;
		border-left: 0;
		border-bottom: 2px solid var(--sf-c-line, #dedede);
		padding-bottom: 0.75rem;
	}

	.sf-faq-nav a {
		margin-left: 0;
		padding: 0.4rem 0.75rem;
		border: 2px solid var(--sf-c-line, #dedede);
		border-radius: 999px;
		font-size: 0.9rem;
	}

	.sf-faq-nav a:hover,
	.sf-faq-nav a:focus-visible,
	.sf-faq-nav a.is-active {
		border-color: var(--sf-magenta);
	}
}

/* ---------- WooCommerce ---------- */

/* Shop and category title band: a slim strip, so the products start higher. */
.product-archive-hero-section .entry-hero-container-inner .entry-header {
	min-height: 0;
	padding-block: clamp(var(--sf-s-5), 3vw, var(--sf-s-6));
}

.product-archive-hero-section .archive-title {
	font-size: clamp(var(--sf-t-xl), 3vw, var(--sf-t-2xl));
}

/* Archive cards: the product image sits on a light panel, like a sticker on paper. */
.woocommerce ul.products li.product {
	border-radius: var(--sf-radius-lg);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px rgba(27, 27, 27, 0.1);
}

.woocommerce ul.products li.product .product-details {
	padding: 1.25rem 0 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
	text-transform: uppercase;
	font-weight: 800;
	font-size: 1.05rem;
}

/*
 * Desktop shop and category cards: text and button sit inside the card, not
 * flush with its edges. Kadence's unboxed archive style zeroes this padding
 * with a long selector; the same selector plus .product-details wins.
 */
@media (min-width: 1025px) {
	.archive.content-style-unboxed .products.woo-archive-action-visible li.product.content-bg.loop-entry .product-details.content-bg:not(.loop-entry),
	.post-type-archive.content-style-unboxed .products.woo-archive-action-visible li.product.content-bg.loop-entry .product-details.content-bg:not(.loop-entry) {
		padding: var(--sf-s-5);
	}
}

/* Micro description under the card title (Shop_Loop). */
.woocommerce ul.products li.product .sf-loop-micro {
	margin: var(--sf-s-1) 0 var(--sf-s-3);
	font-size: var(--sf-t-sm);
	line-height: 1.45;
	color: var(--global-palette5);
}

/* Phones: two cards per row (Kadence only starts its 2-up grid at 544px), so
 * the shop isn't one long column. Smaller title and button, micro description
 * cut at three lines. */
@media (max-width: 543px) {
	.woocommerce ul.products.grid-ss-col-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--sf-s-3);
		row-gap: var(--sf-s-5);
	}

	.woocommerce ul.products.grid-ss-col-2 li.product .product-details {
		padding-top: var(--sf-s-3);
	}

	.woocommerce ul.products.grid-ss-col-2 li.product .woocommerce-loop-product__title,
	.woocommerce ul.products.grid-ss-col-2 li.product h2 {
		font-size: var(--sf-t-sm);
		line-height: 1.25;
		overflow-wrap: anywhere;
	}

	.woocommerce ul.products.grid-ss-col-2 li.product .sf-loop-micro {
		display: -webkit-box;
		margin-bottom: var(--sf-s-2);
		overflow: hidden;
		font-size: var(--sf-t-xs);
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
	}

	/* Ίδιο ύψος (~46px) με τα κουμπιά της αρχικής: με χαμηλότερο κουμπί η ίδια
	   καμπυλότητα (10px) το κάνει χάπι. */
	.woocommerce ul.products.grid-ss-col-2 li.product .button {
		width: 100%;
		padding: var(--sf-s-4) var(--sf-s-3);
		font-size: var(--sf-t-xs);
	}
}

.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img {
	border-radius: var(--sf-radius);
	background: var(--global-palette7, #f1f1f1);
}

.woocommerce span.onsale {
	background: var(--sf-magenta);
	border-radius: 8px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/*
 * Single product: image left, decisions right. A lone image stays in view
 * while the configurator scrolls; a gallery with extra images is taller than
 * the screen, so it scrolls with the page instead (sticky would hide its lower
 * half). .sf-product-top (Product_Gallery) holds only the image and the
 * summary, so the sticky image stops where the summary ends instead of riding
 * over the tabs. flow-root contains the two floats.
 */
.sf-product-top {
	display: flow-root;
}

@media (min-width: 1025px) {
	.woocommerce div.product div.images:not(:has(.woocommerce-product-gallery__image + .woocommerce-product-gallery__image)) {
		position: sticky;
		top: 120px;
	}
}

/* Gallery (Product_Gallery): main image full width, extra images two per row. */
.woocommerce div.product .woocommerce-product-gallery__wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sf-s-3);
	margin: 0;
}

.woocommerce div.product .woocommerce-product-gallery__image {
	margin: 0;
	width: auto;
}

/*
 * Kadence's woocommerce.css shrinks every image after the first to a 65px
 * thumbnail strip when the slider is off; same selector, so this wins by order.
 */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:nth-child(n+2) {
	display: block;
	width: auto;
	height: auto;
	margin: 0;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:nth-child(n+2) img {
	height: auto;
}

.woocommerce div.product .woocommerce-product-gallery__image:first-child {
	grid-column: 1 / -1;
}

.woocommerce div.product .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
}

.woocommerce div.product .product_title {
	margin-bottom: 0.5rem;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--sf-magenta);
	font-size: 2rem;
	font-weight: 900;
	line-height: 1.1;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	font-size: 1.05rem;
	color: var(--global-palette4);
}

.woocommerce div.product form.cart {
	gap: 1rem;
	align-items: center;
	margin: 1.75rem 0;
}

.woocommerce div.product form.cart .quantity input.qty,
.woocommerce .quantity input.qty {
	height: 52px;
	border: 2px solid var(--global-palette7, #e4e4e4);
	border-radius: var(--sf-radius);
	font-weight: 800;
}

.woocommerce div.product form.cart .button {
	height: 52px;
	padding-inline: 2rem;
}

.woocommerce div.product .product_meta {
	font-size: 0.9rem;
	color: var(--global-palette5);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	text-transform: uppercase;
	font-weight: 800;
	letter-spacing: 0.03em;
}

/* Cart and checkout: one column of decisions, one card with the total. */
.woocommerce table.shop_table {
	border-radius: var(--sf-radius-lg);
	border-color: var(--global-palette7, #e4e4e4);
}

.woocommerce table.shop_table th {
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	color: var(--global-palette5);
}

.woocommerce .cart_totals h2,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .woocommerce-billing-fields h3 {
	text-transform: uppercase;
	font-size: 1.15rem;
}

.woocommerce .cart_totals,
.woocommerce-checkout #order_review {
	padding: 1.75rem;
	border-radius: var(--sf-radius-lg);
	background: var(--global-palette7, #f1f1f1);
}

.woocommerce .cart_totals .order-total .amount,
.woocommerce-checkout .order-total .amount {
	color: var(--sf-magenta);
	font-size: 1.5rem;
	font-weight: 900;
}

.woocommerce-checkout .woocommerce-checkout-payment {
	border-radius: var(--sf-radius);
}

.woocommerce form .form-row label {
	font-weight: 800;
	font-size: 0.9rem;
}

/* Customer account: the order list is where proofs and re-orders live. */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.25rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 0.75rem 1rem;
	border-radius: var(--sf-radius);
	font-weight: 700;
	color: var(--global-palette3);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--global-palette8, #fbe7f2);
	color: var(--sf-magenta);
}

.woocommerce-account .woocommerce-orders-table__cell-order-status {
	font-weight: 800;
}

/* Kadence renders notices; keep them in the design system's voice. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: var(--sf-radius);
	border-left-width: 4px;
	font-size: 0.95rem;
}

/* Checkout: the orders plugin's Fast Production sits under the shipping
 * (or pickup) options as a card of its own, bordered like an option and
 * magenta once ticked.
 */
.nvm-sf-fast-production {
	margin-top: var(--sf-s-3);
	padding: var(--sf-s-3) var(--sf-s-4);
	border: 1px solid var(--sf-c-gray);
	border-radius: var(--sf-r-sm);
	background: var(--sf-c-white);
}

.nvm-sf-fast-production.is-chosen {
	border-color: var(--sf-c-magenta);
	box-shadow: inset 0 0 0 1px var(--sf-c-magenta);
}

.nvm-sf-fast-production .wc-block-components-checkbox {
	margin: 0;
}

.nvm-sf-fast-production .wc-block-components-checkbox__label {
	font-weight: 700;
}

/* Room for the sticky buy bar (.sf-sticky-buy): the page's last lines and
 * Kadence's scroll-to-top button stay above it.
 */
@media (max-width: 781px) {
	body.sf-has-sticky-buy {
		padding-bottom: var(--sf-s-8);
	}

	body.sf-has-sticky-buy #kt-scroll-up {
		bottom: calc(var(--sf-s-8) + var(--sf-s-4));
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 781px) {
	.sf-hero {
		text-align: left;
	}

	.sf-hero .sf-hero-art {
		max-width: 560px;
		margin: 1.5rem auto 0;
	}

	.sf-section-head {
		align-items: flex-start;
	}

	.sf-split .sf-panel {
		min-height: 300px;
	}
}

/* ---------- Login screen (inc/class-login-screen.php) ----------
 * My Account for a visitor who isn't logged in: under the site header, brand
 * half + white half with the login form, edge to edge; the footer follows.
 * Kadence's page title is removed in PHP; here the content wrappers lose
 * their spacing so the split can run edge to edge.
 */

body.sf-login-screen {
	overflow-x: clip;
}

body.sf-login-screen .content-area {
	margin-block: 0;
}

body.sf-login-screen .entry-content-wrap {
	padding: 0;
}

body.sf-login-screen .content-bg.entry {
	background: none;
	box-shadow: none;
}

.sf-login {
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100vw;
	min-height: min(44rem, 85vh);
	margin-inline: calc(50% - 50vw);
	background: var(--sf-c-white);
}

/* Brand half: magenta, dots, the collage, and the welcome at the bottom. */
.sf-login__art {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	padding: clamp(2rem, 4vw, 3.5rem);
	background: var(--sf-c-magenta);
	color: var(--sf-c-white);
}

.sf-login__art::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 1.6px);
	background-size: 22px 22px;
	pointer-events: none;
}

/* The text sits on a fade of the brand colour, so the collage never gets under it. */
.sf-login__art::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 45%;
	background: linear-gradient(to top, var(--sf-c-magenta) 35%, transparent);
	pointer-events: none;
}

.sf-login__collage {
	position: absolute;
	top: 44%;
	left: 50%;
	width: min(78%, 34rem);
	height: auto;
	transform: translate(-50%, -50%) rotate(-6deg);
	filter: drop-shadow(0 20px 30px rgba(27, 27, 27, 0.25));
}

.sf-login__title,
.sf-login__lead {
	position: relative;
	z-index: 1;
}

.sf-login .sf-login__title {
	margin: 0 0 var(--sf-s-2);
	color: var(--sf-c-white);
	font-size: clamp(1.8rem, 2.8vw, 2.6rem);
	line-height: 1.05;
}

.sf-login .sf-login__lead {
	max-width: 28rem;
	margin: 0;
	color: var(--sf-c-white);
	font-size: var(--sf-t-base);
	opacity: 0.9;
}

/* Form half: plain white, a narrow column, nothing but the form. */
.sf-login__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1.5rem, 5vw, 4rem);
}

.sf-login__inner {
	width: 100%;
	max-width: 24rem;
	margin-inline: auto;
}

/* The plugin's card (.sf-ui.sf-otp) becomes part of the white half. */
.sf-login .sf-otp {
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

/* The code screen's URL ends in #sf-otp-form, so the browser focuses the card
 * itself (a good start for screen readers). The card isn't a control: no
 * outline on it. The fields and buttons inside keep their focus ring.
 */
.sf-login .sf-otp:focus {
	outline: none;
}

.sf-login .sf-otp h2 {
	margin: 0 0 var(--sf-s-1);
	font-size: var(--sf-t-xl);
	letter-spacing: 0;
	text-transform: none;
}

.sf-login .sf-otp form > p {
	margin: 0 0 var(--sf-s-4);
	color: var(--sf-c-muted);
	font-size: var(--sf-t-sm);
}

.sf-login .sf-otp .sf-btn:not(.sf-btn--secondary) {
	width: 100%;
	border-color: var(--sf-c-ink);
	background: var(--sf-c-ink);
}

.sf-login .sf-otp .sf-btn:not(.sf-btn--secondary):hover,
.sf-login .sf-otp .sf-btn:not(.sf-btn--secondary):focus-visible {
	border-color: var(--sf-c-magenta);
	background: var(--sf-c-magenta);
}

.sf-login__fine {
	margin: var(--sf-s-4) 0 0;
	color: var(--sf-c-muted);
	font-size: var(--sf-t-sm);
}

/* Mobile: the brand half becomes a short banner, the form follows. */
@media (max-width: 781px) {
	.sf-login {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
	}

	.sf-login__art {
		min-height: 15rem;
		padding: var(--sf-s-5) var(--sf-s-4);
	}

	.sf-login__art::after {
		height: 65%;
	}

	.sf-login__collage {
		top: -0.5rem;
		right: -1.5rem;
		left: auto;
		width: 13rem;
		transform: rotate(-8deg);
	}

	.sf-login .sf-login__title {
		font-size: var(--sf-t-lg);
	}

	.sf-login .sf-login__lead {
		font-size: var(--sf-t-sm);
	}

	.sf-login__panel {
		justify-content: flex-start;
		padding: var(--sf-s-6) var(--sf-s-4);
	}
}

/* ---------- 404 ---------- */

.sf-404 {
	padding-block: clamp(1rem, 2.5vw, 2rem);
}

/* Kadence gives the content area generous room; a 404 does not need it. */
body.error404 #primary {
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.sf-404 .entry-content-wrap {
	padding-block: 0;
}

.sf-404__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
	max-width: var(--global-content-width, 1320px);
	margin-inline: auto;
}

.sf-404__title {
	margin: 0.5rem 0 1rem;
	font-size: clamp(2.2rem, 5.2vw, 4rem);
	line-height: 1.05;
}

.sf-404__text {
	max-width: 42ch;
	color: var(--global-palette4);
}

.sf-404__search {
	margin: 1.75rem 0;
	max-width: 30rem;
}

.sf-404__search .search-field,
.sf-404__search input[type="search"] {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid var(--global-palette7, #e4e4e4);
	border-radius: var(--sf-radius);
	font-family: inherit;
	font-size: 1rem;
}

.sf-404__search .search-field:focus,
.sf-404__search input[type="search"]:focus {
	border-color: var(--sf-magenta);
	outline: none;
}

/* The icon peels off the page: the one piece of motion here. */
.sf-404__art {
	display: grid;
	place-items: center;
}

.sf-404__art {
	animation: sf-peel 7s ease-in-out infinite;
	will-change: transform;
}

.sf-404 .sf-404__sticker {
	width: auto;
	max-width: min(100%, 260px);
	height: auto;
	transform: rotate(6deg);
	filter: var(--sf-sticker-shadow);
}

@keyframes sf-peel {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
	.sf-404__art {
		animation: none;
	}
}

.sf-404__links {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.sf-404__links a {
	display: grid;
	gap: 0.35rem;
	height: 100%;
	padding: 1.25rem;
	border-radius: var(--sf-radius-lg);
	background: var(--global-palette7, #f1f1f1);
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.sf-404__links a:hover,
.sf-404__links a:focus-visible {
	transform: translateY(-3px);
	background: var(--global-palette8, #fbe7f2);
}

.sf-404__links svg {
	color: var(--sf-magenta);
}

.sf-404__links strong {
	font-size: 1.05rem;
	text-transform: uppercase;
}

.sf-404__links span {
	color: var(--global-palette5);
	font-size: 0.95rem;
}

@media (max-width: 781px) {
	.sf-404__inner {
		grid-template-columns: 1fr;
	}

	.sf-404__art {
		order: -1;
	}

	.sf-404 .sf-404__sticker {
		max-width: min(55%, 190px);
	}
}

/* ---------- Tables in content ---------- */

.sf-table table {
	width: 100%;
	border-collapse: collapse;
}

/* Core's table block draws a full grid; here only rows are separated. */
.wp-block-table.sf-table th,
.wp-block-table.sf-table td {
	padding: 0.85rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--global-palette7, #e4e4e4);
	text-align: left;
	vertical-align: top;
}

.sf-table th {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--global-palette5);
}

.sf-table tbody tr:hover {
	background: var(--global-palette8, #fbe7f2);
}

/*
 * Wide tables (the materials comparison) scroll sideways on mobile instead of
 * squeezing every column to a word per line; the first column stays put so
 * each row keeps its name while scrolling.
 */
@media (max-width: 781px) {
	.wp-block-table.sf-table th,
	.wp-block-table.sf-table td {
		min-width: 8.5rem;
		padding: var(--sf-s-3);
		font-size: var(--sf-t-sm);
	}

	.wp-block-table.sf-table th:first-child,
	.wp-block-table.sf-table td:first-child {
		position: sticky;
		left: 0;
		z-index: 1;
		min-width: 9.5rem;
		background: var(--global-palette9, #fff);
		box-shadow: 1px 0 0 var(--global-palette7, #e4e4e4);
	}
}
