/* MAMO theme. Tokens come from theme.json (--wp--preset--*); short aliases below are shared with the mamo-core plugin. */

:root {
	--ivory: var(--wp--preset--color--ivory); --paper: var(--wp--preset--color--paper); --oat: var(--wp--preset--color--oat);
	--sand: var(--wp--preset--color--sand); --blush: var(--wp--preset--color--blush); --caramel: var(--wp--preset--color--caramel);
	--clay: var(--wp--preset--color--clay); --clay-press: #87412A; --taupe: var(--wp--preset--color--taupe); --cocoa: var(--wp--preset--color--cocoa);
	--night: var(--wp--preset--color--night); --moss: var(--wp--preset--color--moss); --rule: var(--wp--preset--color--rule); --night-rule: #47362B;
	--display: var(--wp--preset--font-family--display); --text: var(--wp--preset--font-family--text);
	--ease-out: cubic-bezier(.23, 1, .32, 1); --ease-drawer: cubic-bezier(.32, .72, 0, 1);
	--gutter: var(--wp--style--root--padding-left, clamp(20px, 4.4vw, 64px)); --max: 1440px; --header: 72px; --announce: 34px;
	color-scheme: light;
	accent-color: var(--clay);
	scrollbar-color: var(--sand) var(--ivory);
}

html { -webkit-text-size-adjust: 100%; background: var(--ivory); }
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--blush); color: var(--cocoa); }
[hidden] { display: none !important; }
img, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { text-wrap: balance; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* ---------- header ---------- */
.mamo-announce { height: var(--announce); display: grid; align-items: center; padding-block: 0; }
.mamo-announce p { margin: 0; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--oat); }
.mamo-announce { position: relative; }
/* Currency: € EUR / $ USD at the end of the bar (D-028); only the symbols on phones. */
.mcur { position: absolute; inset-block: 0; margin: 0 !important; inset-inline-end: var(--gutter); display: flex; align-items: center; font-size: var(--wp--preset--font-size--xs); }
.mcur a, .mcur span[aria-current] { display: inline-flex; align-items: center; height: 100%; padding-inline: .5em; color: var(--oat); text-decoration: none; }
.mcur a { opacity: .7; transition: opacity .15s ease; }
.mcur a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.mcur span[aria-current] { color: var(--ivory); font-weight: 600; }
.mcur a:focus-visible { outline-color: var(--oat); outline-offset: -4px; opacity: 1; }
@media (max-width: 599px) { .mcur-code { display: none; } }
.mamo-site-header, .mamo-checkout-header {
	position: sticky;
	top: calc(var(--announce) * -1);
	z-index: 50;
	background: rgb(246 239 228 / .97);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
	backdrop-filter: saturate(1.2) blur(10px);
	border-bottom: 1px solid var(--rule);
}
.mamo-checkout-header { top: 0; }
.admin-bar .mamo-site-header { top: calc(var(--wp-admin--admin-bar--height, 32px) - var(--announce)); }
.mamo-hbar { min-height: var(--header); gap: clamp(16px, 3vw, 40px); }
.mamo-logo { display: inline-flex; line-height: 0; }
.mamo-logo img { display: block; width: auto; height: 34px; }
.mamo-logo--light img { height: 48px; filter: brightness(1.7) saturate(.5); }
.mamo-nav { flex: 1; }
.mamo-nav .wp-block-navigation__container { gap: clamp(14px, 2vw, 28px); }
.mamo-nav .wp-block-navigation-item__content { text-decoration: none; padding-block: 24px; position: relative; }
.mamo-nav .current-menu-item > .wp-block-navigation-item__content::after,
.mamo-nav .wp-block-navigation-item__content[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 16px; height: 1px; background: var(--cocoa); }
@media (hover: hover) and (pointer: fine) { .mamo-nav .wp-block-navigation-item__content:hover { color: var(--clay); } }
.mamo-tools { color: var(--cocoa); flex-shrink: 0; }
.mamo-tools .wp-block-search__button { background: transparent; color: inherit; padding: .5rem; border: 0; min-width: 44px; min-height: 44px; }
.mamo-tools .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.mamo-tools .wp-block-search__input { border: 0; border-bottom: 1px solid var(--cocoa); background: transparent; border-radius: 0; font: inherit; }
.mamo-tools .wc-block-mini-cart__button,
.mamo-tools .wc-block-customer-account a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: inherit; }
.mamo-tools .wc-block-mini-cart__badge { background: var(--cocoa); color: var(--ivory); font: 600 11px/1 var(--text); }
@media (max-width: 980px) {
	/* owner (2026-10-16): logo alone on the left; search, account, bag and the menu icon on the right */
	.mamo-hbar { gap: 4px; justify-content: flex-start !important; }
	.mamo-logo { order: 0; }
	.mamo-tools { order: 1; margin-left: auto !important; gap: 2px !important; }
}
.wp-block-navigation__responsive-container.is-menu-open { background: var(--ivory); padding: var(--wp--preset--spacing--50) var(--gutter); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch; padding-top: 48px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--rule); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--display); font-size: 28px; line-height: 1.1; padding: 16px 0; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none; }

/* ---------- main + generic ---------- */
.mamo-main { padding-bottom: var(--wp--preset--spacing--80); }
.mamo-home, .mamo-pdp-main { padding-bottom: 0; }
.mamo-main > .wp-block-post-title, .mamo-pagetitle { font-size: clamp(40px, 5.4vw, 80px); line-height: 1; margin-top: var(--wp--preset--spacing--60); margin-bottom: var(--wp--preset--spacing--40); }
.crumbs-wrap { padding-top: 8px; }
.mamo-main .crumbs.wp-block-woocommerce-breadcrumbs { font-size: 13px; color: var(--taupe); padding-top: 24px; margin-bottom: 0; }
.mamo-main .crumbs a { color: inherit; text-decoration: none; }
.pending { color: var(--taupe); }
.wp-element-button, .wp-block-button__link { transition: background-color .18s var(--ease-out), transform .12s var(--ease-out); text-decoration: none; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; }
.wp-element-button:active, .wp-block-button__link:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .wp-block-button__link:hover { background-color: var(--clay-press); } }
.wp-block-button.mamo-textlink .wp-block-button__link { background: none; color: var(--cocoa); padding-inline: 0; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; font-weight: 500; }
input, select, textarea { border-radius: 2px; }
.mamo-sechead { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.02; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- home ---------- */
.mamo-home .wp-block-post-content > * { margin-block: 0; }
.mamo-home section.s.pt0, .mamo-home section.s.tight.pt0 { padding-top: 0; }
.mamo-home section.s.paper { background: var(--paper); }
.mamo-home section.s.night { background: var(--night); color: var(--oat); }
.mamo-home .night h2, .mamo-home .night h3 { color: var(--ivory); }
.mamo-home .night .head p { color: var(--sand); }
.mamo-home .sec-in > .head { margin-top: 0; }
.mamo-home .head > * { margin: 0; }
.mamo-home .head a { color: inherit; }

.hero-sec .hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.hero .copy { grid-column: 1 / 7; display: grid; gap: 26px; padding-bottom: 12px; }
.hero .copy > * { margin: 0; }
.hero h1 { font-size: clamp(46px, 6.6vw, 100px); line-height: .93; letter-spacing: -.025em; }
.hero .sub { font-size: clamp(17px, 1.5vw, 19px); max-width: 38ch; }
.hero .wp-block-buttons { gap: 18px; align-items: center; }
.hero .herofilm { grid-column: 7 / 13; aspect-ratio: 9 / 13; max-height: 78vh; justify-self: end; width: 100%; border-radius: clamp(90px, 12vw, 170px) clamp(90px, 12vw, 170px) 22px 22px; }
@media (max-width: 860px) {
	.hero-sec .hero { grid-template-columns: 1fr; padding-top: 0; gap: 0; }
	.hero .herofilm { grid-column: 1; grid-row: 1; max-height: none; aspect-ratio: 9 / 14; border-radius: 20px; width: 80%; margin: 16px auto 0; justify-self: center; } /* owner chose option A: smaller, so the headline shows on the first screen */
	.hero .copy { grid-row: 2; grid-column: 1; padding-top: 24px; }
}

.worlds { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, clamp(240px, 26vw, 380px))); gap: clamp(12px, 1.6vw, 24px); }
.world, .tcard { position: relative; overflow: hidden; background: var(--oat); color: var(--ivory); margin: 0 !important; }
.world .wp-block-image, .tcard .wp-block-image { position: absolute; inset: 0; margin: 0; }
.world .wp-block-image a, .tcard .wp-block-image a { display: block; height: 100%; }
.world .wp-block-image img, .tcard .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .world:hover img, .tcard:hover img { transform: scale(1.025); } }
.world .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px; display: grid; gap: 8px; background: linear-gradient(180deg, rgb(39 28 22 / 0), rgb(39 28 22 / .58)); pointer-events: none; }
.world .cap > *, .tcard .tcap > * { margin: 0; }
.world h3 { font-size: clamp(28px, 2.8vw, 42px); line-height: 1; color: var(--ivory); }
.world h3 a, .tcard h3 a { color: inherit; text-decoration: none; pointer-events: auto; }
.world h3 a::after, .tcard h3 a::after { content: ""; position: absolute; inset: 0; }
.world p { font-size: 14px; color: var(--oat); }
.w-sleep { grid-column: 1 / 6; grid-row: 1 / 3; }
.w-lounge { grid-column: 6 / 13; grid-row: 1 / 2; }
.w-play { grid-column: 6 / 13; grid-row: 2 / 3; }
@media (max-width: 760px) {
	/* one tile per row; each tile sets its own height so none can overlap the next */
	.worlds { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; }
	.w-sleep, .w-lounge, .w-play { grid-column: 1; grid-row: auto; height: 260px; }
	.w-sleep { height: 360px; }
	.w-sleep img { object-position: 50% 85%; } /* keep the bed in frame */
}
.together { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
@media (max-width: 760px) { .together { grid-template-columns: 1fr; } }
.tcard { min-height: clamp(320px, 34vw, 480px); display: grid; align-content: end; padding: clamp(20px, 2.4vw, 32px); }
.tcard .wp-block-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(39 28 22 / 0) 35%, rgb(39 28 22 / .62)); pointer-events: none; }
.tcard .tcap { position: relative; z-index: 2; display: grid; gap: 10px; max-width: 40ch; pointer-events: none; }
.tcard h3 { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.04; color: var(--ivory); }
.tcard p { color: var(--oat); }
.tcard .save { color: var(--ivory); background: var(--moss); padding: 6px 8px; justify-self: start; font: 600 12px/1 var(--text); }
.ptease { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 40px); background: var(--paper); border: 1px solid var(--rule); }
.ptease h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.04; margin: 0; }
.ptease p { color: var(--taupe); margin: 10px 0 0; max-width: 56ch; }
@media (max-width: 760px) { .ptease { grid-template-columns: 1fr; } }
.quiet { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.quiet .mamo-quote { grid-column: 1 / 8; margin: 0; border: 0; padding: 0; }
.quiet .mamo-quote p { font: 400 clamp(30px, 4.2vw, 60px)/1.06 var(--display); margin: 0; letter-spacing: -.015em; }
.quiet .cushion { grid-column: 9 / 13; aspect-ratio: 4 / 5; border-radius: 160px 160px 20px 20px; overflow: hidden; margin: 0; }
.quiet .cushion img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .quiet .mamo-quote, .quiet .cushion { grid-column: 1 / -1; } .quiet .cushion { border-radius: 120px 120px 16px 16px; max-width: 360px; } }
.collection { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(20px, 3vw, 48px); align-items: end; }
.collection .vfilm { aspect-ratio: 9 / 16; max-height: 760px; }
.collection-cards { display: grid; gap: 28px; }
.collection-cards .head { margin: 0; }
.collection.reverse { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.collection.reverse > .mamo-film { order: 2; }
@media (max-width: 860px) {
	.collection, .collection.reverse { grid-template-columns: 1fr; }
	.collection.reverse > .mamo-film { order: 0; }
	.collection .vfilm { width: 72%; max-width: 400px; margin-inline: auto; border-radius: 20px; }
}
.moments { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(10px, 1.4vw, 20px); }
.moments > .wp-block-image { margin: 0; display: grid; gap: 10px; align-content: start; }
.moments img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: var(--oat); }
.moments .lead { grid-row: span 2; position: relative; min-height: 320px; }
.moments .lead img { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.moments figcaption { font-size: 14px; color: var(--taupe); margin: 0; }
@media (max-width: 760px) {
	.moments { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
	.moments > * { flex: 0 0 78%; scroll-snap-align: start; }
	.moments .lead { min-height: 0; }
	.moments .lead img { position: static; aspect-ratio: 4 / 5; }
}
.materials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
@media (max-width: 760px) { .materials { grid-template-columns: 1fr; } }
.mat { display: grid; gap: 16px; align-content: start; }
.mat > * { margin: 0; }
.mat .matimg { width: 132px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.mat .matimg img { width: 100%; height: 100%; object-fit: cover; }
.mat h3 { font-size: 30px; }
.mat p { color: var(--oat); max-width: 36ch; }

/* ---------- category ---------- */
.toolbar { position: sticky; top: calc(var(--header) - 1px); z-index: 20; background: rgb(246 239 228 / .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-block: 1px solid var(--rule); }
.admin-bar .toolbar { top: calc(var(--header) + var(--wp-admin--admin-bar--height, 32px) - 1px); }
.toolbar-in { min-height: 56px; font-size: 14px; }
.toolbar-in > * { margin: 0 !important; }
.toolbar .wc-block-product-results-count { color: var(--taupe); }
.toolbar .woocommerce-ordering select, .toolbar select { border: 0; background: transparent; font: 500 14px var(--text); color: var(--cocoa); cursor: pointer; padding: 10px 0; }
.pgrid-wrap { padding-block: 32px 24px; }
.pgrid-wrap .wc-block-product-template { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(14px, 2vw, 28px); list-style: none; padding: 0; margin: 0; }
.pgrid-wrap .wc-block-product-template > li { width: auto !important; margin: 0 !important; max-width: none !important; }
@media (max-width: 1080px) { .pgrid-wrap .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pgrid-wrap .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } }
.wp-block-query-pagination { margin-top: 40px; font-size: 15px; gap: 12px; }

/* ---------- WooCommerce: notices, bag, checkout, mini-cart ---------- */
.wc-block-components-notice-banner { border-radius: 2px; border-color: var(--rule); background: var(--paper); color: var(--cocoa); }
.wc-block-components-notice-banner.is-success { border-color: var(--moss); }
.wc-block-components-notice-banner.is-success > svg { background: var(--moss); }
.wc-block-cart, .wc-block-checkout { padding-top: var(--wp--preset--spacing--50); }
.wp-block-woocommerce-cart h2, .wp-block-woocommerce-checkout h2, .wc-block-components-title { font-family: var(--display) !important; font-weight: 400 !important; }
.wc-block-components-product-name { font-family: var(--display); font-size: 18px; color: var(--cocoa); text-decoration: none; }
.wc-block-components-totals-wrapper, .wc-block-cart-items, .wc-block-cart-items td, .wc-block-cart-items th { border-color: var(--rule) !important; }
.wc-block-cart__sidebar, .wc-block-checkout__sidebar { background: var(--paper); border: 1px solid var(--rule); padding: 28px !important; }
.wc-block-components-button:not(.is-link) { border-radius: 2px !important; background: var(--clay) !important; color: var(--ivory) !important; min-height: 56px; font-weight: 600; }
.wc-block-components-button:not(.is-link):hover { background: var(--clay-press) !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-form .wc-block-components-text-input input { border-radius: 2px !important; border-color: var(--sand) !important; background: var(--paper) !important; }
.wc-block-components-quantity-selector { border-radius: 2px !important; border-color: var(--sand) !important; }
.wc-block-components-product-metadata { color: var(--taupe); font-size: 13px; }
.wc-block-mini-cart__drawer .components-modal__content { background: var(--paper); }
.wc-block-mini-cart__drawer .wc-block-mini-cart__title { font-family: var(--display); font-weight: 400; }
.wc-block-mini-cart__footer-actions .wc-block-components-button.outlined { background: transparent !important; color: var(--cocoa) !important; box-shadow: inset 0 0 0 1px currentColor; }
.wc-block-components-sale-badge { border-radius: 0; border-color: var(--moss); color: var(--moss); background: var(--paper); }
.wp-block-woocommerce-product-collection-no-results { padding-block: 64px; text-align: center; }

/* ---------- footer ---------- */
.mamo-footer { padding-block: 72px 40px; margin-top: 0; }
.mamo-footer a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .mamo-footer a:hover { text-decoration: underline; text-underline-offset: .25em; } }
.mamo-footer .mamo-fhead { font-family: var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--sand); margin-bottom: 16px; }
.mamo-footer .mamo-flist, .mamo-footer .mamo-social { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.mamo-footer .mamo-social .is-placeholder { opacity: .55; }
.mamo-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-rule); color: var(--sand); }
.mamo-legal p { margin: 0; }
@media (max-width: 781px) {
	.mamo-footer > .wp-block-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
	.mamo-footer > .wp-block-columns > .wp-block-column:first-child { grid-column: 1 / -1; }
}

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

/* Mini-cart: "View cart" is the secondary action */
.wc-block-mini-cart__footer-cart.wc-block-components-button:not(.is-link) { background: transparent !important; color: var(--cocoa) !important; box-shadow: inset 0 0 0 1px currentColor; }
.wc-block-cart .wc-block-cart__totals-title, .wc-block-cart-items__header { text-transform: none !important; letter-spacing: 0 !important; font-weight: 600; color: var(--taupe); font-size: 13px !important; }
