/*
Theme Name: Kalamoradi
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kalamoradi
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

:root {
	--kala-radius: 16px;
	--kala-radius-lg: 20px;
	--kala-border: 1px solid var(--wp--preset--color--border);
	--kala-hero-muted: #D5DEEC;
	--kala-hero-art: #9DB4D6;
	--kala-on-dark-border: rgba(255, 255, 255, 0.55);
	--kala-shadow: 0 16px 40px rgba(16, 40, 77, 0.14);
}

/* === base === */
/* Tahoma scaled to Vazirmatn's width and line metrics, so text does not reflow
   (and the page does not jump) if the web font arrives after first paint. */
@font-face {
	font-family: "Vazirmatn Fallback";
	src: local("Tahoma");
	size-adjust: 92.86%;
	ascent-override: 110.9%;
	descent-override: 58.2%;
	line-gap-override: 0%;
}

/* Cross-fade between pages instead of flashing on every link click. */
@view-transition {
	navigation: auto;
}

html {
	scrollbar-gutter: stable;
}
body {
	-webkit-font-smoothing: antialiased;
}
:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
.wp-site-blocks p {
	margin-block: 0;
}

/* === block styles === */
.is-style-card {
	background: var(--wp--preset--color--base);
	border: var(--kala-border);
	border-radius: var(--kala-radius);
	padding: 20px 24px;
}
.is-style-icon-tile,
.is-style-icon-circle {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary);
}
.is-style-icon-tile {
	width: 48px;
	height: 48px;
	border-radius: 12px;
}
.is-style-icon-circle {
	width: 84px;
	height: 84px;
	border-radius: 50%;
}
.is-style-category-card {
	position: relative;
	background: var(--wp--preset--color--base);
	border: var(--kala-border);
	border-radius: var(--kala-radius);
	padding: 18px 8px;
	gap: 10px;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.is-style-category-card:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 6px 18px rgba(16, 40, 77, 0.08);
}
.category-card__label {
	font-weight: 700;
	text-align: center;
}
.category-card__label a {
	color: var(--wp--preset--color--contrast);
}
.category-card__label a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.is-style-promo-card {
	border-radius: var(--kala-radius-lg);
	padding: 28px;
	gap: 12px;
	min-height: 192px;
}
.is-style-promo-card svg {
	flex-shrink: 0;
}
.promo-card__text {
	gap: 8px;
}
.promo-card__text :is(h2, h3) {
	margin: 0;
}
.is-style-pill {
	border-radius: 999px;
	padding: 6px 14px;
	font-weight: 700;
	line-height: 1.5;
}
.is-style-more-link {
	font-size: var(--wp--preset--font-size--regular);
	font-weight: 700;
}
.is-style-more-link a {
	color: var(--wp--preset--color--primary);
}
.promo-link--accent a {
	color: var(--wp--preset--color--accent);
}
.section-head .is-style-more-link a::after {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-inline-start: 4px;
	vertical-align: -4px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-style-on-dark .wp-element-button {
	background: transparent;
	border: 1px solid var(--kala-on-dark-border);
	color: var(--wp--preset--color--base);
}
.is-style-on-dark .wp-element-button:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--base);
}
.is-style-chip .wp-element-button {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border-strong);
	color: var(--wp--preset--color--contrast);
	border-radius: 999px;
	padding: 9px 18px;
	font-weight: 500;
}
.is-style-chip .wp-element-button:hover {
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary);
}
.is-style-chip.is-active .wp-element-button {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-weight: 700;
}
.wp-block-button.is-style-outline .wp-element-button {
	padding: 8px 12px;
	border-width: 1px;
}

/* === header === */
.site-header {
	position: relative;
	z-index: 20;
	border-bottom: var(--kala-border);
	background: var(--wp--preset--color--base);
}
.header-topbar__inner {
	min-height: 40px;
	gap: 16px;
}
.header-toplinks .wp-block-navigation__container {
	gap: 20px;
}
.header-toplinks a {
	color: var(--wp--preset--color--base);
}
.header-main {
	padding-block: 16px;
}
.header-main__row {
	gap: 24px;
}
.header-brand {
	gap: 10px;
	flex-shrink: 0;
}
.brand-mark {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	flex-shrink: 0;
}
.brand-mark--light {
	width: 44px;
	height: 44px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
}
.header-brand__text {
	gap: 0;
}
.header-brand__text .wp-block-site-title {
	font-weight: 800;
	line-height: 1.5;
}
.header-brand__text .wp-block-site-title a {
	color: var(--wp--preset--color--contrast);
}
.header-brand__text .wp-block-site-tagline {
	margin: 0;
}
.header-search {
	flex: 999 1 380px;
	min-width: 0;
}
.header-search .wp-block-search__inside-wrapper {
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: 12px;
	background: var(--wp--preset--color--surface);
	padding: 0;
	overflow: hidden;
}
.header-search .wp-block-search__input {
	min-height: 48px;
	border: 0;
	background: transparent;
	padding: 0 16px;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--regular);
	color: var(--wp--preset--color--contrast);
}
.header-search .wp-block-search__button {
	width: 52px;
	margin: 0;
	padding: 0;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}
.header-search .wp-block-search__button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}
.header-actions {
	gap: 8px;
	flex-shrink: 0;
}
.header-account a {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 12px;
	border: var(--kala-border);
	border-radius: 12px;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--regular);
	font-weight: 500;
}
.header-account a:hover {
	border-color: var(--wp--preset--color--primary);
}
.header-cart .wc-block-mini-cart__button {
	min-height: 48px;
	padding: 0 14px;
	gap: 10px;
	border-radius: 12px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
}
.header-cart .wc-block-mini-cart__button:hover:not([disabled]) {
	opacity: 1;
	background: #A8380A;
}
.header-cart .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
	border: 2px solid var(--wp--preset--color--base);
	font-weight: 700;
}
.header-nav {
	padding-bottom: 12px;
}
.header-menu {
	font-size: var(--wp--preset--font-size--regular);
	font-weight: 500;
	position: relative;
}
.header-menu .wp-block-navigation__container {
	gap: 4px;
	width: 100%;
}
.header-menu .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	color: var(--wp--preset--color--contrast);
}
.header-menu .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary);
}
.header-menu .menu-offers {
	margin-inline-start: auto;
}
.header-menu .menu-offers > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent) !important;
	font-weight: 700;
	gap: 6px;
}
.header-menu .menu-offers > .wp-block-navigation-item__content::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12l-8 8-9-9V3h8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12l-8 8-9-9V3h8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Mega menu: the first submenu is the "categories" button and its panel. */
.header-menu .menu-mega {
	position: static;
}
.header-menu .wp-block-navigation__container > .menu-mega > .wp-block-navigation-submenu__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 10px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-weight: 700;
}
.header-menu .menu-mega > .wp-block-navigation-submenu__toggle::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center / contain no-repeat;
}
.header-menu .menu-mega > .wp-block-navigation__submenu-icon {
	display: none;
}
.header-menu .menu-mega > .wp-block-navigation-submenu__toggle .wp-block-navigation__submenu-icon,
.header-menu .menu-mega > .wp-block-navigation-submenu__toggle + .wp-block-navigation__submenu-icon {
	color: var(--wp--preset--color--base);
}
.header-menu .menu-mega > .wp-block-navigation__submenu-container {
	top: 100%;
	right: 0;
	left: 0;
	width: auto;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 24px;
	padding: 24px;
	background: var(--wp--preset--color--base);
	border: var(--kala-border);
	border-radius: var(--kala-radius);
	box-shadow: var(--kala-shadow);
}
.header-menu .menu-mega .wp-block-navigation__submenu-container .wp-block-navigation-item {
	display: block;
	width: 100%;
}
.header-menu .menu-mega .wp-block-navigation__submenu-container .wp-block-navigation-submenu > .wp-block-navigation-item__content,
.header-menu .menu-mega .wp-block-navigation__submenu-container .wp-block-navigation-submenu > .wp-block-navigation-submenu__toggle {
	display: block;
	width: 100%;
	padding: 0 0 6px;
	border-bottom: 2px solid var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary);
	font-size: 15px;
	font-weight: 800;
	text-align: right;
	pointer-events: none;
}
.header-menu .menu-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon {
	display: none;
}
/* Second-level lists always show inside the open panel. */
.header-menu .menu-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
	position: static;
	visibility: visible;
	opacity: 1;
	width: auto;
	height: auto;
	min-width: 0;
	overflow: visible;
	border: 0;
	box-shadow: none;
	padding: 4px 0 0;
	background: transparent;
}
.header-menu .menu-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0;
	line-height: 2.4;
	color: var(--wp--preset--color--contrast);
}
.header-menu .menu-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent);
}
/* === home === */
.home-section {
	padding-top: 40px;
}
.home-hero,
.home-hero + .home-section {
	padding-top: 24px;
}
.home-section--last {
	padding-bottom: 48px;
}
.section-head {
	gap: 16px;
}
.section-head h2,
.home-section > h2 {
	margin: 0;
}
.hero-row {
	gap: 16px;
}
.hero-main {
	flex: 999 1 600px;
	min-width: 0;
	min-height: 400px;
	gap: 32px;
	padding: 48px;
	border-radius: var(--kala-radius-lg);
	overflow: hidden;
}
.hero-copy {
	flex: 1 1 340px;
	gap: 16px;
}
.hero-copy h1 {
	margin: 0;
	line-height: 1.5;
}
.hero-lead {
	color: var(--kala-hero-muted);
	line-height: 2;
}
.hero-copy .wp-block-buttons {
	margin-top: 8px;
	gap: 12px;
}
.hero-copy .wp-element-button {
	min-height: 48px;
	padding: 12px 24px;
	font-size: 15px;
}
.hero-art {
	flex: 1 1 260px;
	gap: 4px;
	color: var(--kala-hero-art);
}
.hero-side {
	flex: 1 1 300px;
	gap: 16px;
}
.hero-side .is-style-promo-card {
	flex: 1 1 auto;
	width: 100%;
	box-sizing: border-box;
}
.benefits-bar {
	gap: 16px;
}
.benefit {
	gap: 12px;
}
.benefit__text {
	gap: 2px;
}
.benefit__title {
	font-weight: 700;
}
.category-grid {
	gap: 16px;
}
.offers {
	padding: 24px;
	gap: 24px;
	border-radius: var(--kala-radius-lg);
}
.offers__intro {
	flex: 1 1 200px;
	max-width: 240px;
	gap: 16px;
}
.offers__intro h2 {
	margin: 0;
}
.offers__lead {
	color: #FFE7D9;
	line-height: 1.9;
}
.offer-countdown {
	direction: ltr;
	gap: 6px;
	align-items: center;
}
.countdown-box {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: 18px;
	font-weight: 800;
}
.countdown-sep {
	font-weight: 800;
}
.offers__intro .wp-block-buttons .wp-block-button,
.offers__intro .wp-element-button {
	width: 100%;
}
.offers__intro .is-style-on-dark .wp-element-button {
	border-color: var(--wp--preset--color--base);
}
.offers__grid {
	flex: 999 1 560px;
	min-width: 0;
}
.banner-row {
	gap: 16px;
}
.banner {
	min-height: 180px;
	padding: 32px;
}
.chip-row {
	gap: 8px;
}
.brand-grid {
	gap: 16px;
}
.brand-tile {
	position: relative;
	height: 88px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--base);
	border: 1px dashed #B8C2D1;
	border-radius: 14px;
	font-size: var(--wp--preset--font-size--small);
}
.brand-tile a {
	color: var(--wp--preset--color--muted);
}
.brand-tile a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.blog-grid .wp-block-post-template {
	gap: 16px;
}
.blog-card {
	padding: 0;
	overflow: hidden;
	gap: 0;
	height: 100%;
}
.blog-card .wp-block-post-featured-image {
	margin: 0;
	width: 100%;
}
.blog-card__body {
	padding: 18px;
	gap: 8px;
}
.blog-card .wp-block-post-title {
	margin: 0;
	line-height: 1.8;
}
.blog-card .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
}
.blog-card .wp-block-post-terms a {
	color: var(--wp--preset--color--muted);
}
.seo-box {
	padding: 28px;
	gap: 12px;
}
.seo-box h2 {
	margin: 0;
}
.seo-box p {
	line-height: 2.1;
}

/* === product card === */
.product-grid .wc-block-product-template {
	gap: 16px;
	margin: 0;
}
.offers__grid .wc-block-product-template {
	gap: 12px;
}
.product-grid .wc-block-product {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 12px;
	background: var(--wp--preset--color--base);
	border: var(--kala-border);
	border-radius: 14px;
	text-align: right;
	color: var(--wp--preset--color--contrast);
	box-sizing: border-box;
}
.product-grid .wc-block-product:hover {
	border-color: var(--wp--preset--color--border-strong);
	box-shadow: 0 6px 18px rgba(16, 40, 77, 0.08);
}
.product-grid .wc-block-product > * {
	margin: 0 !important;
}
.wc-block-components-product-image {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background: var(--wp--preset--color--tile);
}
.product-grid .wc-block-components-product-image img {
	height: 190px !important;
	width: 100%;
	object-fit: contain;
}
.wc-block-components-product-sale-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	left: auto;
	z-index: 2;
	margin: 0;
	padding: 3px 9px;
	border: 0;
	border-radius: 6px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	line-height: 1.6;
	text-transform: none;
}
.product-card__cat,
.product-card__cat a {
	color: var(--wp--preset--color--muted);
}
.product-card__title {
	font-size: var(--wp--preset--font-size--regular);
	font-weight: 700;
	line-height: 1.8;
	min-height: 50px;
}
.product-card__title a {
	color: var(--wp--preset--color--contrast);
}
.product-card__title a:hover {
	color: var(--wp--preset--color--primary);
}
.wc-block-components-product-rating .wc-block-components-product-rating__stars {
	color: var(--wp--preset--color--star);
}
.product-grid .wc-block-components-product-rating__container {
	justify-content: flex-start;
}
.product-grid .wc-block-components-product-rating {
	font-size: var(--wp--preset--font-size--x-small);
}
.product-card__footer {
	margin-top: auto !important;
	gap: 8px;
	flex-wrap: wrap !important;
}
.product-card__footer > * {
	min-width: 0;
}
.wc-block-components-product-price {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 800;
	text-align: right;
}
.wc-block-components-product-price del {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	color: var(--wp--preset--color--muted);
	order: -1;
}
.wc-block-components-product-price ins {
	text-decoration: none;
	background: none;
}
.wc-block-components-product-price .woocommerce-Price-currencySymbol {
	font-size: 11px;
	font-weight: 500;
	color: var(--wp--preset--color--muted);
}
.product-card__footer .wp-block-woocommerce-product-button {
	flex-shrink: 0;
	margin: 0;
}
/* Add-to-cart becomes a square cart icon; its text stays for screen readers. */
.product-card__footer .wc-block-components-product-button__button.add_to_cart_button {
	width: 44px;
	height: 44px;
	min-height: 0;
	padding: 0;
	border-radius: 10px;
	font-size: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}
.product-card__footer .wc-block-components-product-button__button.add_to_cart_button::before {
	content: "";
	width: 22px;
	height: 22px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a1 1 0 0 0 1 .8h9.2a1 1 0 0 0 1-.8L20 8H6.2'/%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='17' cy='20' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a1 1 0 0 0 1 .8h9.2a1 1 0 0 0 1-.8L20 8H6.2'/%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='17' cy='20' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.product-card__footer .wc-block-components-product-button__button.add_to_cart_button.loading::before {
	opacity: 0.4;
}
.product-card__footer .wc-block-components-product-button__button.add_to_cart_button:hover {
	background: var(--wp--preset--color--primary-dark);
}
.product-card__footer .wc-block-components-product-button__button:not(.add_to_cart_button) {
	min-height: 44px;
	padding: 0 12px;
	border-radius: 10px;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border-strong);
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
}
.product-card__footer .added_to_cart {
	display: none;
}
/* === shop === */
.wp-site-blocks main.shop-main,
.wp-site-blocks main.product-main {
	padding-block: 16px 48px;
}
.wc-block-breadcrumbs,
.woocommerce-breadcrumb {
	color: var(--wp--preset--color--muted);
	min-height: 40px;
	display: flex;
	align-items: center;
}
.wc-block-breadcrumbs a,
.woocommerce-breadcrumb a {
	color: var(--wp--preset--color--muted);
}
.shop-intro {
	gap: 12px;
	margin-block: 8px 20px;
}
.shop-intro .wp-block-query-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xx-large);
}
.shop-layout {
	gap: 24px;
}
.shop-sidebar {
	flex: 1 1 260px;
	max-width: 300px;
	gap: 16px;
}
.shop-filters,
.shop-filters .wc-block-product-filters__overlay-content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.shop-filters .is-style-card {
	padding: 18px;
	margin: 0;
}
.shop-filters .is-style-card h3 {
	margin: 0 0 10px;
	font-weight: 800;
	font-size: 15px;
}
.shop-filters .wc-block-product-filter-price-slider .range-bar,
.shop-filters .wc-block-product-filter-price-slider input[type="range"] {
	accent-color: var(--wp--preset--color--primary);
}
.shop-filters input[type="text"],
.shop-filters input[type="number"] {
	min-height: 40px;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: 8px;
	font-family: inherit;
}
.shop-filters input[type="checkbox"] {
	accent-color: var(--wp--preset--color--primary);
}
.shop-filters .wc-block-product-filter-removable-chips__chip,
.shop-filters .wc-block-product-filter-chips__item {
	border-radius: 999px;
	border: 0;
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary);
	font-family: inherit;
}
.shop-filters .wc-block-product-filter-chips__item[aria-checked="true"] {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}
.shop-filters .wp-block-woocommerce-product-filter-clear-button .wp-element-button {
	border: 0;
	padding: 4px 0;
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--small);
}
.shop-results {
	flex: 999 1 560px;
	min-width: 0;
	gap: 16px;
}
/* WordPress vertical flex groups default to flex-wrap: wrap, which makes Chrome
   over-measure the product grid's height. */
.shop-results,
.product-related {
	flex-wrap: nowrap !important;
}
.shop-toolbar {
	background: var(--wp--preset--color--base);
	border: var(--kala-border);
	border-radius: 14px;
	padding: 8px 16px;
	gap: 12px;
}
.shop-toolbar .woocommerce-ordering,
.shop-toolbar .woocommerce-result-count {
	margin: 0;
}
.shop-toolbar select {
	min-height: 40px;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: 8px;
	padding: 0 10px;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--regular);
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
}
.shop-toolbar .woocommerce-result-count {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}
.shop-pagination {
	gap: 6px;
	padding-block: 8px;
	margin-top: 16px;
}
.shop-pagination .page-numbers,
.shop-pagination .wp-block-query-pagination-previous,
.shop-pagination .wp-block-query-pagination-next {
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	box-sizing: border-box;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border-strong);
	color: var(--wp--preset--color--contrast);
}
.shop-pagination .page-numbers.current {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-weight: 700;
}
.shop-pagination .page-numbers.dots {
	background: transparent;
	border: 0;
}

/* === single product === */
.product-hero {
	gap: 32px;
	padding: 24px;
	border: var(--kala-border);
	border-radius: var(--kala-radius-lg);
}
.product-hero__gallery {
	flex: 1 1 300px;
	min-width: 0;
}
.product-hero__gallery .woocommerce-product-gallery {
	position: relative;
	margin: 0;
}
.product-hero__gallery .woocommerce-product-gallery__image img {
	border-radius: var(--kala-radius);
	background: var(--wp--preset--color--tile);
	max-height: 460px;
	object-fit: contain;
}
.product-hero__gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.product-hero__gallery .flex-control-thumbs img {
	border-radius: 12px;
	border: var(--kala-border);
}
.woocommerce .product-hero__gallery span.onsale {
	min-width: 0;
	min-height: 0;
	line-height: 1.6;
	margin: 0;
	left: auto;
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	padding: 4px 12px;
	border-radius: 8px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}
.product-hero__gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
}
.product-hero__info {
	flex: 1 1 280px;
	min-width: 0;
	gap: 16px;
}
.product-brand a {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}
.product-title {
	margin: 0;
	font-size: 24px;
	line-height: 1.7;
}
.product-meta-row {
	gap: 16px;
}
.product-meta-row .wc-block-components-product-rating,
.product-meta-row .wp-block-woocommerce-product-sku {
	margin: 0;
}
.product-features {
	gap: 8px;
	width: 100%;
	border-top: var(--kala-border);
	padding-top: 16px;
}
.product-features h2 {
	margin: 0;
	font-weight: 800;
	font-size: 15px;
}
.product-features .wp-block-post-excerpt__excerpt {
	margin: 0;
	line-height: 2.2;
}
.product-specs-compact,
.product-specs-compact table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--regular);
}
.product-specs-compact th,
.product-specs-compact td {
	border: 0;
	padding: 8px 0;
	border-bottom: var(--kala-border);
	text-align: right;
}
.product-specs-compact th {
	color: var(--wp--preset--color--muted);
	font-weight: 500;
	width: 36%;
}
.product-buybox {
	flex: 1 1 280px;
	min-width: 0;
	max-width: 380px;
	gap: 14px;
	padding: 20px;
	background: #F8F9FB;
	border: var(--kala-border);
	border-radius: var(--kala-radius);
}
.product-buybox .wc-block-components-product-stock-indicator {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}
.product-buybox .wc-block-components-product-stock-indicator--in-stock {
	color: var(--wp--preset--color--success);
}
.product-buybox__price {
	font-size: 26px;
}
.product-buybox__price .woocommerce-Price-currencySymbol {
	font-size: var(--wp--preset--font-size--regular);
}
.product-buybox__price del {
	font-size: var(--wp--preset--font-size--regular);
}
.product-buybox form.cart {
	display: flex;
	gap: 10px;
	align-items: stretch;
	margin: 0;
}
.product-buybox form.cart .quantity {
	display: flex;
	align-items: center;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: 12px;
	background: var(--wp--preset--color--base);
	overflow: hidden;
}
.product-buybox form.cart .quantity input.qty {
	width: 56px;
	min-height: 48px;
	border: 0;
	text-align: center;
	font-family: inherit;
	font-weight: 800;
	background: transparent;
}
.product-buybox form.cart .quantity button {
	width: 40px;
	min-height: 48px;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--primary);
	font-size: 20px;
	cursor: pointer;
}
/* The stock indicator block above already shows availability. */
.product-buybox .wp-block-add-to-cart-form > .stock {
	display: none;
}
.product-buybox form.cart .single_add_to_cart_button {
	flex: 1;
	white-space: nowrap;
	padding-inline: 16px;
	min-height: 48px;
	margin: 0;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-size: 15px;
	font-weight: 800;
}
.product-buybox form.cart .single_add_to_cart_button:hover {
	background: #A8380A;
}
.product-installment {
	gap: 10px;
	padding: 12px;
	border-radius: 12px;
	line-height: 1.9;
}
.product-installment svg {
	flex-shrink: 0;
}
.product-installment a {
	color: inherit;
}
.product-assurances {
	gap: 10px;
	border-top: var(--kala-border);
	padding-top: 12px;
}
.assurance {
	gap: 8px;
}
.product-tabs {
	margin-top: 24px !important;
	background: var(--wp--preset--color--base);
	border: var(--kala-border);
	border-radius: var(--kala-radius-lg);
	overflow: hidden;
}
.product-tabs .wc-tabs,
.product-tabs .wc-block-product-details__tabs,
.product-tabs ul.tabs {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0 16px;
	list-style: none;
	border-bottom: var(--kala-border);
	overflow-x: auto;
}
.product-tabs ul.tabs::before,
.product-tabs ul.tabs li::before,
.product-tabs ul.tabs li::after {
	display: none !important;
}
.product-tabs ul.tabs li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
}
.product-tabs ul.tabs li a {
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 0 18px !important;
	border-bottom: 3px solid transparent;
	color: var(--wp--preset--color--muted);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
}
.product-tabs ul.tabs li.active a {
	border-bottom-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
	font-weight: 800;
}
.product-tabs .woocommerce-Tabs-panel {
	padding: 28px;
	max-width: 880px;
	margin: 0 !important;
	line-height: 2.2;
	color: var(--wp--preset--color--body);
}
.product-tabs .woocommerce-Tabs-panel h2,
.product-tabs .woocommerce-Tabs-panel h3 {
	color: var(--wp--preset--color--contrast);
	margin: 8px 0 0;
}
.product-tabs .woocommerce-Tabs-panel h2 {
	font-size: 18px;
}
.product-tabs .woocommerce-Tabs-panel h3 {
	font-size: 16px;
}
.product-tabs table.shop_attributes {
	width: 100%;
	border-collapse: collapse;
	border: 0;
}
.product-tabs table.shop_attributes th,
.product-tabs table.shop_attributes td {
	padding: 14px 12px;
	border-bottom: var(--kala-border);
	text-align: right;
}
.product-tabs table.shop_attributes th {
	width: 36%;
	background: #F8F9FB;
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}
.product-tabs table.shop_attributes td {
	font-weight: 700;
	font-style: normal;
}
.product-tabs table.shop_attributes td p {
	margin: 0;
	padding: 0;
}
.product-tabs .commentlist {
	padding: 0;
	list-style: none;
}
.product-tabs .comment_container {
	border: var(--kala-border);
	border-radius: 14px;
	padding: 16px;
}
.product-tabs .comment-form input:not([type="submit"]):not([type="checkbox"]),
.product-tabs .comment-form textarea,
.product-tabs .comment-form select {
	width: 100%;
	min-height: 44px;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: 10px;
	padding: 8px 12px;
	font-family: inherit;
	box-sizing: border-box;
}
.product-tabs .comment-form .submit {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border: 0;
	border-radius: 10px;
	min-height: 44px;
	padding: 0 24px;
	font-family: inherit;
	font-weight: 700;
	cursor: pointer;
}
.product-tabs .star-rating,
.product-tabs .stars a {
	color: var(--wp--preset--color--star);
}
.product-related {
	margin-top: 24px !important;
	gap: 16px;
}
.product-related h2 {
	margin: 0;
}
/* === footer === */
.site-footer a {
	color: var(--wp--preset--color--footer-muted);
}
.site-footer a:hover {
	color: var(--wp--preset--color--base);
}
.footer-newsletter {
	padding-block: 32px;
	gap: 20px;
	border-bottom: 1px solid var(--wp--preset--color--footer-line);
}
.footer-newsletter__text {
	gap: 4px;
}
.footer-newsletter h2 {
	margin: 0;
}
.site-footer .footer-newsletter__button .wp-element-button {
	color: var(--wp--preset--color--base);
	min-height: 48px;
	padding: 12px 32px;
}
.footer-columns {
	padding-block: 40px;
	gap: 32px;
}
@media (min-width: 900px) {
	.footer-about {
		grid-column: span 2;
	}
}
.footer-about {
	gap: 12px;
}
.footer-about p {
	line-height: 2.1;
}
.footer-brand {
	gap: 10px;
}
.footer-brand .wp-block-site-title {
	font-weight: 800;
}
.site-footer .footer-brand .wp-block-site-title a {
	color: var(--wp--preset--color--base);
}
.footer-links,
.footer-trust {
	gap: 8px;
}
.footer-links h3,
.footer-trust h3 {
	margin: 0;
}
.footer-links .wp-block-navigation__container {
	gap: 0;
}
.footer-links .wp-block-navigation-item__content {
	line-height: 2.4;
	padding: 0;
}
.footer-badges {
	gap: 10px;
}
.trust-badge {
	width: 84px;
	height: 96px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
}
.footer-social {
	gap: 8px;
}
.site-footer .footer-social .wp-element-button {
	border: 1px solid var(--wp--preset--color--footer-line);
	border-radius: 10px;
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	padding: 8px 12px;
}
.footer-bottom {
	padding-block: 16px;
	gap: 12px;
	border-top: 1px solid var(--wp--preset--color--footer-line);
}

/* Footer: the bottom bar's top border spans the full footer width in the design. */
.site-footer {
	padding-bottom: 0;
}
/* WooCommerce repeats the tab name as a heading inside the description tab. */
.product-tabs .woocommerce-Tabs-panel--description > h2:first-child {
	display: none;
}

/* === responsive === */
@media (max-width: 781px) {
	.hero-main {
		padding: 32px 24px;
		min-height: 0;
	}
	.hero-copy h1 {
		font-size: 28px;
	}
	.hero-art svg {
		width: 120px;
		height: 120px;
	}
	.offers__intro {
		max-width: none;
	}
	.banner-row {
		grid-template-columns: 1fr !important;
	}
	.banner {
		padding: 24px;
	}
	.shop-sidebar,
	.product-buybox {
		max-width: none;
	}
	.product-hero {
		padding: 16px;
	}
	.header-account .label {
		display: none;
	}
}
