/**
 * Baby & Mama presentation layer.
 *
 * Keep WooCommerce business rules out of this file. Prefer theme.json and
 * block-level controls; these rules cover interaction, RTL, and responsive
 * details that global styles cannot yet express reliably.
 */

html {
	scroll-padding-block-start: 5rem;
}

body {
	overflow-wrap: anywhere;
	text-align: start;
}

body[dir="rtl"],
html[dir="rtl"] body {
	direction: rtl;
}

[hidden] {
	display: none !important;
}

img {
	block-size: auto;
	max-inline-size: 100%;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	border-radius: 6px;
	box-shadow: 0 0 0 2px var(--wp--preset--color--surface);
	outline: 3px solid var(--wp--preset--color--brand-pink);
	outline-offset: 3px;
}

:where(
	button,
	input[type="button"],
	input[type="submit"],
	select,
	.wp-element-button,
	.wp-block-button__link,
	.wp-block-navigation-item__content,
	.wp-block-search__button,
	.wc-block-components-button
) {
	min-block-size: var(--wp--custom--baby-mama--touch-target, 44px);
}

:where(
	input[type="email"],
	input[type="tel"],
	input[type="url"],
	input[inputmode="numeric"],
	.baby-mama-ltr
) {
	direction: ltr;
	text-align: start;
	unicode-bidi: isolate;
}

a {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.baby-mama-skip-link {
	background: var(--wp--preset--color--ink);
	border-radius: 0 0 10px 10px;
	color: var(--wp--preset--color--surface);
	inset-block-start: 0;
	inset-inline-start: 1rem;
	padding-block: 0.75rem;
	padding-inline: 1rem;
	position: fixed;
	transform: translateY(-140%);
	transition: transform var(--wp--custom--baby-mama--motion--fast, 180ms ease);
	z-index: 100000;
}

.baby-mama-skip-link:focus {
	transform: translateY(0);
}

.baby-mama-header-shell {
	background: color-mix(in srgb, var(--wp--preset--color--surface) 96%, transparent);
	border-block-end: 1px solid var(--wp--preset--color--border);
	position: relative;
	z-index: 30;
}

.baby-mama-header-top {
	min-block-size: 76px;
}

.baby-mama-brand {
	min-inline-size: 0;
}

.baby-mama-brand .wp-block-site-logo {
	flex-shrink: 0;
}

.baby-mama-brand .wp-block-site-logo img {
	block-size: 60px;
	inline-size: 60px;
	object-fit: contain;
}

.baby-mama-brand .wp-block-site-title a,
.baby-mama-footer .wp-block-site-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.baby-mama-header-actions {
	min-inline-size: max-content;
}

.baby-mama-header-actions :where(.wp-block-woocommerce-customer-account, .wp-block-woocommerce-mini-cart) {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	min-block-size: var(--wp--custom--baby-mama--touch-target, 44px);
	min-inline-size: var(--wp--custom--baby-mama--touch-target, 44px);
}

.baby-mama-primary-navigation {
	border-block-start: 1px solid var(--wp--preset--color--border);
}

.baby-mama-primary-navigation .wp-block-navigation-item__content {
	align-items: center;
	display: inline-flex;
	text-decoration: none;
}

.baby-mama-search-row {
	background: var(--wp--preset--color--canvas);
	border-block-start: 1px solid var(--wp--preset--color--border);
	padding-block: 0.75rem;
}

.baby-mama-search-row .wp-block-search {
	margin: 0;
}

.baby-mama-search-row .wp-block-search__inside-wrapper {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	min-block-size: 48px;
	overflow: hidden;
}

.baby-mama-search-row .wp-block-search__input {
	border: 0;
	min-block-size: 46px;
	padding-inline: 1rem;
}

.baby-mama-search-row .wp-block-search__button {
	border-radius: 10px;
	margin: 3px;
}

main.wp-block-group {
	padding-block: clamp(2rem, 5vw, 4rem);
}

main.baby-mama-home-main {
	padding-block-start: clamp(1.25rem, 3vw, 2rem);
}

.baby-mama-section {
	margin-block: clamp(2.5rem, 7vw, 5rem);
}

.baby-mama-hero {
	background: linear-gradient(
		125deg,
		var(--wp--preset--color--brand-purple-soft),
		var(--wp--preset--color--brand-pink-soft)
	);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--brand-purple) 18%, transparent);
	border-radius: 24px;
	overflow: clip;
	padding-block: clamp(1.5rem, 4vw, 3rem);
	padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.baby-mama-hero .wp-block-heading {
	max-inline-size: 18ch;
}

.baby-mama-hero-copy {
	max-inline-size: 60ch;
}

.baby-mama-hero-mark {
	margin-inline: auto;
	max-inline-size: 220px;
}

.baby-mama-hero-mark img {
	inline-size: 100%;
	object-fit: contain;
}

.baby-mama-section-heading {
	margin-block-end: 0.5rem;
}

.baby-mama-category-list .wc-block-product-categories-list {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.baby-mama-category-list .wc-block-product-categories-list-item {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	min-inline-size: 0;
	padding-block: 0.875rem;
	padding-inline: 1rem;
}

.baby-mama-category-list .wc-block-product-categories-list-item a {
	color: var(--wp--preset--color--ink);
	font-weight: 700;
	text-decoration: none;
}

.baby-mama-trust-strip {
	background: var(--wp--preset--color--surface);
	border-block: 1px solid var(--wp--preset--color--border);
	padding-block: clamp(1.25rem, 3vw, 2rem);
}

.baby-mama-trust-item {
	min-inline-size: 0;
}

.baby-mama-trust-item strong {
	display: block;
	margin-block-end: 0.25rem;
}

.wp-block-woocommerce-product-template {
	gap: clamp(0.75rem, 2vw, 1.5rem);
}

.wp-block-woocommerce-product-image img,
.wp-block-woocommerce-product-image-gallery img {
	background: var(--wp--preset--color--surface);
	border-radius: 12px;
}

.wp-block-woocommerce-product-template .wp-block-post-title {
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.55;
	margin-block: 0.75rem 0.25rem;
	text-align: start;
}

.wp-block-woocommerce-product-template .wp-block-post-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.wp-block-woocommerce-product-template .wp-block-woocommerce-product-price {
	margin-block: 0.25rem 0.75rem;
	text-align: start;
}

.wp-block-woocommerce-product-template .wp-block-woocommerce-product-button {
	margin-block-start: auto;
	text-align: start;
}

.wp-block-query-pagination {
	margin-block-start: var(--wp--preset--spacing--section);
}

.wp-block-query-pagination a,
.wp-block-query-pagination .current {
	align-items: center;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	display: inline-flex;
	justify-content: center;
	min-block-size: 44px;
	min-inline-size: 44px;
	padding-inline: 0.625rem;
	text-decoration: none;
}

.wp-block-query-pagination .current {
	background: var(--wp--preset--color--brand-purple);
	border-color: var(--wp--preset--color--brand-purple);
	color: var(--wp--preset--color--surface);
}

.wp-block-woocommerce-product-meta {
	border-block-start: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	margin-block-start: 1.5rem;
	padding-block-start: 1rem;
}

.wp-block-woocommerce-product-meta .wp-block-group {
	align-items: flex-start;
	flex-direction: column;
}

.wp-block-woocommerce-add-to-cart-form :where(button, input, select) {
	min-block-size: 48px;
}

.wp-block-woocommerce-add-to-cart-form input.qty {
	min-inline-size: 4.5rem;
}

.wc-block-components-button {
	background: var(--wp--preset--color--brand-purple);
	border: 1px solid var(--wp--preset--color--brand-purple);
	border-radius: 12px;
	color: var(--wp--preset--color--surface);
	font-family: inherit;
	font-weight: 700;
	transition: background-color var(--wp--custom--baby-mama--motion--fast, 180ms ease),
		border-color var(--wp--custom--baby-mama--motion--fast, 180ms ease);
}

.wc-block-components-button:hover:not(:disabled) {
	background: var(--wp--preset--color--brand-purple-dark);
	border-color: var(--wp--preset--color--brand-purple-dark);
	color: var(--wp--preset--color--surface);
}

.wc-block-components-button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

:where(
	.wc-block-components-text-input input,
	.wc-block-components-combobox-control input,
	.wc-block-components-textarea,
	.wc-block-components-select select
) {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--border);
	border-radius: 12px;
	color: var(--wp--preset--color--ink);
	font-family: inherit;
	min-block-size: 48px;
}

.wc-block-cart__submit-container {
	background: var(--wp--preset--color--surface);
}

.wc-block-cart__submit-container::before {
	color: color-mix(in srgb, var(--wp--preset--color--ink) 12%, transparent);
}

.wc-block-components-order-summary-item__quantity {
	background: var(--wp--preset--color--brand-purple-soft);
	border-color: var(--wp--preset--color--brand-purple);
	box-shadow: 0 0 0 2px var(--wp--preset--color--surface);
	color: var(--wp--preset--color--brand-purple-dark);
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	border-radius: 12px;
	padding-block: 1rem;
	padding-inline: 1rem;
}

.woocommerce-error {
	background: #FDEBED;
	border-inline-start: 4px solid var(--wp--preset--color--danger);
	color: var(--wp--preset--color--danger);
}

.woocommerce-message {
	background: #E7F4EE;
	border-inline-start: 4px solid var(--wp--preset--color--success);
	color: var(--wp--preset--color--success);
}

.woocommerce-info {
	background: var(--wp--preset--color--brand-purple-soft);
	border-inline-start: 4px solid var(--wp--preset--color--brand-purple);
	color: var(--wp--preset--color--ink);
}

.baby-mama-footer {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
	margin-block-start: clamp(3rem, 8vw, 6rem);
	padding-block: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
}

.baby-mama-footer :where(a, .wp-block-site-title, .wp-block-site-title a) {
	color: var(--wp--preset--color--surface);
}

.baby-mama-footer .wp-block-navigation-item__content {
	text-decoration-color: color-mix(in srgb, var(--wp--preset--color--surface) 45%, transparent);
}

.baby-mama-footer-rule {
	border-block-start: 1px solid color-mix(in srgb, var(--wp--preset--color--surface) 20%, transparent);
	margin-block-start: 2rem;
	padding-block-start: 1rem;
}

@media (max-width: 782px) {
	.baby-mama-header-top {
		align-items: center;
		flex-wrap: wrap;
		gap: 0.5rem;
		padding-block: 0.5rem;
	}

	.baby-mama-brand .wp-block-site-logo img {
		block-size: 52px;
		inline-size: 52px;
	}

	.baby-mama-primary-navigation {
		border-block-start: 0;
	}

	.baby-mama-category-list .wc-block-product-categories-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.baby-mama-hero {
		border-radius: 18px;
	}

	.baby-mama-hero .wp-block-columns {
		gap: 1rem;
	}

	.baby-mama-hero-mark {
		display: none;
	}

	.baby-mama-header-top > .baby-mama-brand {
		flex-basis: 100%;
		gap: 0.75rem;
	}

	.baby-mama-brand .wp-block-site-title {
		font-size: 18px;
	}

	.baby-mama-brand .wp-block-site-tagline {
		font-size: 12px;
	}

	.baby-mama-hero .wp-block-columns > .wp-block-column:last-child {
		display: none;
	}

	.wp-block-woocommerce-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* Account screens retain WooCommerce-owned forms and account behavior. */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.75rem 1rem;
	border-block-end: 1px solid var(--wp--preset--color--border);
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	background: var(--wp--preset--color--brand-purple-soft);
	font-weight: 700;
}

.woocommerce-account :where(input.input-text, button.button) {
	min-block-size: 48px;
	font: inherit;
	border-radius: 12px;
}

@media (max-width: 359px) {
	.wp-block-woocommerce-product-template {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* Figma storefront layouts: shared geometry across native WooCommerce blocks. */
.baby-mama-header-shell { background: #fff; }
.baby-mama-header-top {
 display: grid !important; grid-template-columns: 64px minmax(0,1fr) 64px;
 min-block-size:64px; gap:12px; padding-block:0; align-items:center;
}
.baby-mama-wordmark { margin:0; text-align:center; font-size:18px; font-weight:700; line-height:1.5; }
.baby-mama-wordmark a { color:var(--wp--preset--color--brand-purple); text-decoration:none; }
.baby-mama-primary-navigation { border:0; justify-self:start; }
.baby-mama-primary-navigation .wp-block-navigation__responsive-container-open { min-width:52px; min-height:44px; align-items:center; justify-content:center; }
.baby-mama-primary-navigation .wp-block-navigation__responsive-container-open svg { display:none; }
.baby-mama-primary-navigation .wp-block-navigation__responsive-container-open::after { content:'القائمة'; font:400 14px 'Noto Sans Arabic',Tahoma,sans-serif; }
.baby-mama-cart-trigger { margin:0 !important; justify-self:end; }
.baby-mama-cart-trigger .wc-block-mini-cart__button { min-width:52px; min-height:44px; padding:8px; }
.baby-mama-cart-trigger .wc-block-mini-cart__button::after { content:'السلة'; font:400 14px 'Noto Sans Arabic',Tahoma,sans-serif; color:var(--wp--preset--color--ink); }
.baby-mama-cart-trigger .wc-block-mini-cart__icon { display:none; }
.baby-mama-cart-trigger .wc-block-mini-cart__badge { position:static; margin-inline-end:4px; }
.baby-mama-desktop-links { margin-block:0 !important; padding-block:4px; border-block-start:1px solid var(--wp--preset--color--border); }
.baby-mama-search-row { margin-block:0 !important; border:0; padding-block:12px; background:var(--wp--preset--color--canvas); }
.baby-mama-search-row .wp-block-search { max-width:none; }
.baby-mama-search-row .wp-block-search__inside-wrapper { min-height:44px; padding:0; background:transparent; }
.baby-mama-search-row .wp-block-search__input { min-height:42px; background:transparent; font-size:14px; }
.baby-mama-search-row .wp-block-search__button { background:transparent; color:var(--wp--preset--color--muted); border:0; min-width:44px; margin:0; padding:8px; }
.baby-mama-search-row .wp-block-search__button:hover { background:var(--wp--preset--color--brand-purple-soft); color:var(--wp--preset--color--brand-purple); }
main.wp-block-group { margin-block:0; padding-block:32px 56px; }
main.baby-mama-home-main { padding-block:0; }
.baby-mama-hero { border:0; border-radius:0; padding:60px max(16px,calc((100vw - 1280px)/2)); background:#F7F4F9; margin-block:0 !important; }
.baby-mama-hero-columns { gap:40px; margin-block:0; }
.baby-mama-hero .wp-block-heading { max-width:none; margin:0; font-weight:700; line-height:1.5; }
.baby-mama-hero-title-mobile { display:none; }
.baby-mama-hero-copy { margin-block:20px !important; line-height:2; font-size:16px; }
.baby-mama-hero-visual { min-height:300px; display:flex; align-items:center; justify-content:center; }
.baby-mama-hero-visual img { border-radius:12px; object-fit:cover; }
.baby-mama-hero .wp-block-buttons { gap:12px; }
.baby-mama-category-cta .wp-element-button { color:var(--wp--preset--color--brand-purple); background:transparent; }
.baby-mama-section { margin-block:0 !important; padding-block:56px 16px; }
.baby-mama-section-heading { font-size:24px; text-align:start; margin:0 0 24px !important; }
.baby-mama-category-list .wc-block-product-categories-list { grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
.baby-mama-category-list .wc-block-product-categories-list-item { padding:0; border-radius:12px; overflow:hidden; }
.baby-mama-category-list .wc-block-product-categories-list-item a { display:flex; align-items:center; justify-content:center; min-height:78px; padding:16px 8px; font-size:14px; font-weight:400; text-align:center; }
.baby-mama-category-list a:hover { background:var(--wp--preset--color--brand-purple-soft); }
.baby-mama-catalog-layout { display:grid; grid-template-columns:240px minmax(0,1fr); gap:32px; }
.baby-mama-catalog-layout:not(:has(.baby-mama-filters)) { grid-template-columns:minmax(0,1fr); }
.baby-mama-catalog-results { min-width:0; margin:0 !important; }
.baby-mama-filters { padding:20px; border:1px solid var(--wp--preset--color--border); border-radius:12px; align-self:start; background:#fff; }
.baby-mama-filters .wp-block-heading { margin-block:0 16px; }
.wp-block-woocommerce-product-template { gap:16px; }
.wp-block-woocommerce-product-template > li { border:1px solid var(--wp--preset--color--border); border-radius:12px; overflow:hidden; padding-block-end:16px; display:flex; flex-direction:column; }
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-image { margin:0; }
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-image img { aspect-ratio:1; border-radius:0; object-fit:cover; }
.wp-block-woocommerce-product-template :where(.wp-block-post-title,.wp-block-woocommerce-product-price,.wp-block-woocommerce-product-button) { margin-inline:12px; }
.wp-block-woocommerce-product-template .wp-block-post-title { font-size:14px; font-weight:500; margin-block:12px 8px; min-height:44px; }
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-price { font-size:14px; font-weight:600; }
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-button { margin-block:8px 0; }
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-button .wp-element-button { padding:8px 12px; font-size:13px; min-height:44px; }
.single-product main .wp-block-columns { gap:40px; margin-block:24px 0; }
.single-product main .wp-block-post-title { font-size:28px; line-height:1.6; }
.single-product main .wp-block-woocommerce-product-image-gallery img { border-radius:12px; }
.single-product main .wp-block-woocommerce-product-price { font-size:22px; }
.single-product .wp-block-woocommerce-add-to-cart-form .single_add_to_cart_button { background:var(--wp--preset--color--brand-purple); color:#fff; border-radius:8px; border:0; font:600 16px 'Noto Sans Arabic',Tahoma,sans-serif; padding:12px 24px; }
.single-product .quantity input { background:#fff; border:1px solid var(--wp--preset--color--border); border-radius:8px; }
.single-product .variations select { font:inherit; background:#fff; border:1px solid var(--wp--preset--color--border); border-radius:8px; padding:8px; max-width:100%; }
.baby-mama-footer { background:#fff; color:var(--wp--preset--color--ink); padding-block:56px 24px; margin-block-start:64px; border-block-start:1px solid var(--wp--preset--color--border); }
.baby-mama-footer .baby-mama-wordmark { text-align:start; }
.baby-mama-footer a { color:var(--wp--preset--color--muted); }
.baby-mama-footer .baby-mama-wordmark a { color:var(--wp--preset--color--brand-purple); }
.baby-mama-footer .wp-block-navigation { font-size:13px; font-weight:400; }
.baby-mama-footer .wp-block-navigation-item__content { min-height:36px; }
.baby-mama-footer .wc-block-product-categories-list { list-style:none; padding:0; font-size:13px; }
.baby-mama-footer .wc-block-product-categories-list a { display:block; padding-block:8px; text-decoration:none; }
.baby-mama-footer-rule { border-color:var(--wp--preset--color--border); color:var(--wp--preset--color--muted); font-size:12px; }
.baby-mama-compact-header { background:#fff; border-block-end:1px solid var(--wp--preset--color--border); }
.baby-mama-compact-row { display:grid !important; grid-template-columns:1fr 52px; min-height:56px; gap:0; }
.baby-mama-compact-row h1 { font-size:18px; text-align:center; margin:0; padding-inline-start:52px; }
.baby-mama-back-link { margin:0; }
.baby-mama-back-link a { width:44px; height:44px; display:flex; align-items:center; justify-content:center; font-size:24px; color:var(--wp--preset--color--ink); text-decoration:none; }
.woocommerce-cart main,.woocommerce-checkout main { padding-block:24px 48px; }
.wc-block-components-checkout-step,.wc-block-cart__sidebar,.wc-block-checkout__sidebar { border-radius:12px; }
.wc-block-components-checkout-step__heading h2 { font-size:18px; }
.wc-block-components-text-input input,.wc-block-components-textarea { background:#fff; border:1px solid var(--wp--preset--color--border); border-radius:12px; font:inherit; }
.wc-block-components-order-summary { background:#fff; border:1px solid var(--wp--preset--color--border); border-radius:12px; }
.wc-block-components-notice-banner { border-radius:12px; }
.wp-block-woocommerce-empty-cart-block { min-height:60vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.wp-block-woocommerce-empty-cart-block .wp-block-heading { font-size:24px; }
.baby-mama-empty-cart-copy { max-width:420px; color:var(--wp--preset--color--muted); }
@media (max-width:782px) {
 .baby-mama-header-top { display:grid !important; grid-template-columns:52px minmax(0,1fr) 52px; min-height:64px; padding:0; gap:8px; }
 .baby-mama-desktop-links { display:none; }
 .baby-mama-header-shell { border:0; }
 .baby-mama-header-top { border-block-end:1px solid var(--wp--preset--color--border); }
 .baby-mama-search-row { padding-block:12px; }
 .baby-mama-hero { background:var(--wp--preset--color--canvas); border:0; border-radius:0; padding:24px 16px 32px; }
 .baby-mama-hero-columns { display:block; }
 .baby-mama-hero-title-desktop { display:none; }
 .baby-mama-hero-title-mobile { display:block; }
 .baby-mama-hero .wp-block-heading { font-size:24px; line-height:1.55; }
 .baby-mama-hero-copy { font-size:14px; line-height:2; margin-block:16px !important; }
 .baby-mama-hero-visual,.baby-mama-category-cta { display:none !important; }
 .baby-mama-hero .wp-block-buttons,.baby-mama-shop-cta { width:100%; }
 .baby-mama-shop-cta .wp-element-button { display:block; min-height:52px; padding:13px 16px; }
 .baby-mama-section { padding-block:24px 16px; }
 .baby-mama-section-heading { font-size:18px; margin-block-end:16px !important; }
 .baby-mama-category-list .wc-block-product-categories-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .baby-mama-category-list .wc-block-product-categories-list-item a { min-height:78px; }
 main.wp-block-group:not(.baby-mama-home-main) { padding-block:24px 32px; }
 main .wp-block-query-title { font-size:24px; margin-block:8px 24px; }
 .baby-mama-catalog-layout { display:block; }
 .baby-mama-filters { border:0; padding:0; background:transparent; margin-block:0 16px !important; }
 .wp-block-woocommerce-product-template { gap:12px; grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
 .wp-block-woocommerce-product-template .wp-block-post-title { font-size:14px; }
 .baby-mama-footer { padding-block:32px 24px; margin-block-start:40px; }
 .single-product .baby-mama-search-row,.single-product main > .woocommerce-breadcrumb { display:none; }
 .single-product main.wp-block-group { padding-block-start:0; }
 .single-product main .wp-block-columns { margin-block:0; gap:24px; }
 .single-product main .wp-block-post-title { font-size:22px; margin-block:0 20px; }
 .single-product main .wp-block-woocommerce-product-image-gallery { margin-inline:-16px; width:calc(100% + 32px); }
 .single-product main .wp-block-woocommerce-product-image-gallery img { border-radius:0; }
 .single-product .wp-block-woocommerce-add-to-cart-form .single_add_to_cart_button { width:100%; margin-block-start:16px; min-height:52px; }
 .woocommerce-cart .baby-mama-footer,.woocommerce-checkout .baby-mama-footer { display:none; }
 .woocommerce-cart main.wp-block-group,.woocommerce-checkout main.wp-block-group { padding-block:20px; }
 .wp-block-woocommerce-empty-cart-block { min-height:calc(100svh - 160px); }
 .wp-block-woocommerce-empty-cart-block .wp-block-buttons { width:100%; max-width:360px; }
 .wp-block-woocommerce-empty-cart-block .wp-block-button { width:100%; }
 .wp-block-woocommerce-empty-cart-block .wp-block-button__link { display:block; }
}
@media (max-width:359px) {
 .wp-block-woocommerce-product-template { grid-template-columns:minmax(0,1fr) !important; }
}

/* WooCommerce may append account blocks to navigation; the menu already includes this route. */
.baby-mama-header-shell .wp-block-woocommerce-customer-account { display:none; }
.baby-mama-header-top > .baby-mama-primary-navigation { grid-column:1; grid-row:1; }
.baby-mama-header-top > .baby-mama-wordmark { grid-column:2; grid-row:1; white-space:nowrap; }
.baby-mama-header-top > .baby-mama-cart-trigger { grid-column:3; grid-row:1; }
.baby-mama-hero-visual figure { width:100%; margin:0; }
.baby-mama-hero-visual img { display:block; width:100%; height:340px; object-fit:cover; border:1px solid var(--wp--preset--color--border); border-radius:16px; }
.baby-mama-filters fieldset { border:0; padding:0; margin:0; }
.baby-mama-filters .wc-block-product-filter-checkbox-list__item { min-height:44px; align-items:center; }
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-price { margin-block:0; }
.baby-mama-no-results { text-align:center; padding:64px 16px; }
.baby-mama-no-results h2 { font-size:24px; }
@media (min-width:783px) { .home .baby-mama-search-row { display:none; } }
@media (max-width:782px) {
 .post-type-archive-product main > .woocommerce-breadcrumb { display:none; }
 .baby-mama-catalog-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px; }
 .baby-mama-catalog-layout .baby-mama-filters { grid-column:1; grid-row:1; margin:0 !important; }
 .baby-mama-catalog-results,.baby-mama-catalog-results > .wp-block-group { display:contents; }
 .baby-mama-catalog-results .woocommerce-ordering { grid-column:2; grid-row:1; margin:0; }
 .baby-mama-catalog-results .woocommerce-ordering select { width:100%; min-width:0; }
 .baby-mama-catalog-results .woocommerce-result-count { grid-column:1 / -1; grid-row:2; margin:0; font-size:13px; }
 .baby-mama-catalog-results > .wp-block-woocommerce-product-collection { grid-column:1 / -1; grid-row:3; margin:0; }
 .wc-block-product-filters__open-overlay { width:100%; min-height:44px; border:1px solid var(--wp--preset--color--border); border-radius:8px; background:#fff; justify-content:center; font:inherit; font-size:14px; }
 .baby-mama-filters .wc-block-product-filters__overlay-content { padding:24px 16px; }
 .wp-block-woocommerce-product-template .wp-block-post-title { min-height:44px; font-weight:500; line-height:1.6; }
}
.baby-mama-section-heading { font-size:24px !important; }
.baby-mama-category-list .wc-block-product-categories-list-item a { box-sizing:border-box; }
.wp-block-woocommerce-product-template .wp-block-post-title,.wp-block-woocommerce-product-template .wp-block-woocommerce-product-price { font-size:14px !important; }
.single-product main .wp-block-post-title { font-size:28px !important; }
@media (max-width:782px) {
 .baby-mama-section-heading { font-size:18px !important; }
 .single-product main .wp-block-post-title { font-size:22px !important; }
 .single-product main .woocommerce-breadcrumb,.post-type-archive-product main .woocommerce-breadcrumb { display:none; }
 .single-product main .wp-block-woocommerce-product-price { font-size:18px !important; }
 .baby-mama-hero { padding-block-end:8px; }
 .wc-block-cart-item__wrap .wc-block-components-product-metadata__description { display:none; }
 .wc-block-cart-items__row { background:#fff; border:1px solid var(--wp--preset--color--border); border-radius:12px; padding:16px !important; margin-block-end:12px; }
}
.wc-block-components-checkout-step__heading h2,.wc-block-components-title.wc-block-components-title { font-size:18px !important; }
.wc-block-components-text-input.wc-block-components-text-input input,.wc-block-components-combobox .wc-block-components-combobox-control input { border-color:var(--wp--preset--color--border); border-radius:12px; }
