/*
Theme Name: Majlis
Theme URI: https://seifweb.com
Author: SeifWeb
Author URI: https://seifweb.com
Description: متجر أثاث المجالس والتراث على WooCommerce: جلسات أرضية وكنب عربي، وخشب محفور ونحاس، وسجاد ووسائد بنقشة السدو، وفوانيس وضيافة، ومجالس تُفصَّل على مقاس الغرفة. عربي أولًا ومصمَّم للهاتف. A majlis and heritage furniture store for WooCommerce — floor and sofa majlis, carved wood, brass, Sadu textiles, lanterns and made-to-measure majlis — Arabic first and built for phones.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: majlis
Tags: e-commerce, rtl-language-support, custom-logo, custom-menu
*/

/* ---------- Tokens ---------- */
:root {
	--paper: #fbf7ef;
	--sand: #f3ead9;
	--sand-2: #ebdfc6;
	--card: #fffcf6;
	--line: #e3d6bd;
	--line-2: #d3c19f;
	--ink: #1b1712;
	--ink-2: #4a4036;
	--muted: #6b5f52;
	--indigo: #1e2a44;
	--indigo-2: #2c3b5c;
	--indigo-deep: #151d31;
	--sadu: #9b2c2c;
	--sadu-deep: #7a1f22;
	--brass: #b08d57;
	--brass-ink: #7a5c30;
	--brass-light: #d7bf8f;
	--camel: #b98b55;
	--cream: #efe3cc;
	--on-dark: #f3ead9;
	--on-dark-2: #c8b9a0;
	--ok: #2f6b4a;
	--radius: 6px;
	--radius-lg: 14px;
	--arch: 50% 50% 4px 4px / 22% 22% 4px 4px;
	--shadow: 0 1px 2px rgba(27, 23, 18, .06), 0 16px 36px rgba(27, 23, 18, .1);
	--font: "Markazi Text", "Noto Naskh Arabic", "Times New Roman", serif;
	--display: "El Messiri", "Markazi Text", "Segoe UI", sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--weave-ease: cubic-bezier(.45, .05, .35, 1);
	--gutter: 16px;
	--header-h: 64px;
	--tabbar-h: 64px;
	--fade-dir: to top;
	--lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23b08d57' stroke-opacity='.2' stroke-width='1'%3E%3Cpath d='M18 18h20v20H18zM28 13.9 42.1 28 28 42.1 13.9 28z'/%3E%3Cpath d='M0 28h13.9M42.1 28H56M28 0v13.9M28 42.1V56'/%3E%3C/g%3E%3C/svg%3E");
	--lattice-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23d7bf8f' stroke-opacity='.08' stroke-width='1'%3E%3Cpath d='M18 18h20v20H18zM28 13.9 42.1 28 28 42.1 13.9 28z'/%3E%3Cpath d='M0 28h13.9M42.1 28H56M28 0v13.9M28 42.1V56'/%3E%3C/g%3E%3C/svg%3E");
	--diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpath d='M22 1.5 42.5 22 22 42.5 1.5 22z' fill='%23fffcf6' stroke='%23b08d57' stroke-width='1.2'/%3E%3C/svg%3E");
	--star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M7 7h12v12H7zM13 2.5 23.5 13 13 23.5 2.5 13z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.7; color: var(--ink); background: var(--paper);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
	overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--indigo-2); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.3; margin: 0 0 .5em; font-weight: 600; color: var(--ink); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 3px; }
.site-footer :focus-visible, .util-bar :focus-visible, .hero :focus-visible, .sadu-section :focus-visible, .visit :focus-visible, .drawer-panel :focus-visible, .niche :focus-visible, .tabbar :focus-visible, .toast :focus-visible, .contact-card :focus-visible, .mtm-close :focus-visible, .tile:focus-visible { outline-color: var(--brass-light); }
.hero .search-form :focus-visible { outline-color: var(--indigo); }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; inset-inline-start: 12px; top: 12px; z-index: 100; background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 4px; }
.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { flex: none; }
.muted { color: var(--muted); }
.only-desktop { display: none !important; }

/* ---------- Buttons ---------- */
.btn, .button, button.button, a.button, input[type="submit"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: 3px;
	font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.2; letter-spacing: 0; text-align: center;
	cursor: pointer; transition: background .2s, color .2s, border-color .2s, opacity .2s;
	background: var(--indigo); color: #fff; text-decoration: none;
}
.btn .icon { width: 19px; height: 19px; }
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--indigo-2); color: #fff; }
.btn-dark { background: var(--indigo); color: #fff; }
.btn-brass { background: var(--brass-light); color: var(--indigo); border-color: var(--brass-light); }
.btn-brass:hover { background: #e6d3ab; border-color: #e6d3ab; color: var(--indigo); }
.btn-line { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-line:hover { background: var(--indigo); color: #fff; }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(215, 191, 143, .7); }
.btn-ghost:hover { background: rgba(243, 234, 217, .12); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce button.single_add_to_cart_button { background: var(--indigo); color: #fff; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce button.single_add_to_cart_button:hover { background: var(--indigo-2); color: #fff; }
/* WooCommerce paints disabled buttons in its own purple: keep the brand colour. */
.woocommerce button.button.alt.disabled, .woocommerce button.button.alt:disabled, .woocommerce button.button.alt:disabled[disabled],
.woocommerce button.button.alt.disabled:hover, .woocommerce div.product form.cart .button.disabled {
	background: var(--indigo) !important; color: #fff !important; opacity: .5; cursor: not-allowed;
}
.icon-btn { display: inline-grid; place-items: center; position: relative; width: 44px; height: 44px; border-radius: 50%; background: transparent; border: 0; cursor: pointer; color: var(--indigo); }
.icon-btn:hover { background: var(--sand); color: var(--indigo); }
.lang-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 36px; padding: 0 10px; margin-inline-end: 2px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--card); color: var(--indigo); font-family: var(--display); font-size: 14px; font-weight: 600; line-height: 1; }
.lang-btn:hover { border-color: var(--indigo); color: var(--indigo); }
.lang-btn[lang="en"] { letter-spacing: .06em; }
.lang-link .icon, .lang-foot .icon { width: 18px; height: 18px; }
.lang-foot { display: inline-flex; align-items: center; gap: 6px; }
.link-more { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-family: var(--display); font-weight: 600; font-size: 16px; white-space: nowrap; color: var(--indigo); }
.link-more .icon { width: 19px; height: 19px; transition: transform .25s var(--ease); }
.link-more:hover .icon { transform: translateX(-4px); }
[dir="ltr"] .link-more .icon { transform: scaleX(-1); }
[dir="ltr"] .link-more:hover .icon { transform: scaleX(-1) translateX(-4px); }
.link-light { color: var(--brass-light); }
.link-light:hover { color: #fff; }

/* ---------- Ornaments: eyebrow, brass rule ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--brass-ink); margin-bottom: 6px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg); background: var(--sadu); }
.eyebrow-light { color: var(--brass-light); }
.eyebrow-light::before { background: var(--brass-light); }
.mjl-rule { display: flex; align-items: center; gap: 10px; width: 132px; max-width: 100%; color: var(--brass); margin: 12px 0 16px; }
.mjl-rule::before, .mjl-rule::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.mjl-rule > span { width: 8px; height: 8px; flex: none; border: 1px solid currentColor; transform: rotate(45deg); }

/* ---------- Demo notice ---------- */
.demo-bar { background: var(--sand-2); color: var(--ink); font-size: 15.5px; border-bottom: 1px solid var(--line-2); }
.demo-bar-inner { display: flex; align-items: center; gap: 4px 14px; min-height: 40px; padding-block: 4px; }
.demo-bar p { margin: 0; flex: 1; min-width: 0; line-height: 1.45; }
.demo-bar a { color: var(--indigo); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.demo-bar-close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.demo-bar-close:hover { background: rgba(27, 23, 18, .08); }
.demo-bar-close .icon { width: 18px; height: 18px; }

/* ---------- Showroom line ---------- */
.util-bar { background: var(--indigo-deep); color: var(--on-dark-2); font-size: 15px; }
.util-row { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 36px; }
.util-note, .util-visit { display: inline-flex; align-items: center; gap: 8px; margin: 0; line-height: 1.3; min-width: 0; }
.util-note span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.util-bar .icon { width: 17px; height: 17px; color: var(--brass-light); }
.util-visit { color: var(--on-dark); display: none; }
.util-visit:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 247, 239, .96); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); }
.site-header::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(176, 141, 87, 0), var(--brass) 18%, var(--brass) 82%, rgba(176, 141, 87, 0)); pointer-events: none; }
.site-header::before { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; transform: rotate(45deg); background: var(--paper); border: 1px solid var(--brass); z-index: 1; pointer-events: none; }
.site-header.is-scrolled { box-shadow: 0 8px 26px rgba(27, 23, 18, .08); }
.admin-bar .site-header { top: 46px; }
.header-row { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--indigo); min-width: 0; }
.brand:hover { color: var(--indigo); }
.brand-logo { max-height: 44px; width: auto; }
.brand-mark { width: 30px; height: 34px; flex: none; color: currentColor; }
.brand-mark .mark-finial { fill: var(--brass); }
.brand-words { display: grid; line-height: 1; min-width: 0; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.05; white-space: nowrap; }
html[lang^="en"] .brand-name { text-transform: uppercase; letter-spacing: .2em; font-size: 20px; }
.brand-tag { display: none; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.header-actions { display: flex; align-items: center; margin-inline-start: auto; }
.majlis-cart-count { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--sadu); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-family: var(--display); }
.majlis-cart-count.is-empty { display: none; }
.header-search { border-top: 1px solid var(--line); padding-block: 14px; background: var(--paper); }
.nav-list, .drawer-list { list-style: none; margin: 0; padding: 0; }
.main-nav { flex: 1; min-width: 0; display: flex; justify-content: center; }
.main-nav .nav-list { display: flex; gap: 2px; }
.main-nav .nav-list > li { position: relative; }
.main-nav .nav-list a { position: relative; display: block; padding: 10px 14px; font-family: var(--display); font-weight: 500; font-size: 16.5px; color: var(--ink-2); white-space: nowrap; }
.main-nav .nav-list a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--indigo); }
.main-nav .nav-list > li > a::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px; background: var(--sadu); transform: rotate(45deg) scale(0); transition: transform .2s var(--ease); }
.main-nav .nav-list > li:hover > a::after, .main-nav .current-menu-item > a::after, .main-nav .current-menu-ancestor > a::after { transform: rotate(45deg) scale(1); }
.main-nav .menu-item-has-children > a { padding-inline-end: 28px; }
.main-nav .menu-item-has-children > a::before { content: ""; position: absolute; inset-inline-end: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.main-nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; inset-inline-start: 0; min-width: 240px; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--brass); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; z-index: 5; }
.main-nav .sub-menu a { border-radius: 3px; padding: 9px 12px; }
.main-nav .sub-menu a::after { display: none; }
.main-nav .sub-menu a:hover { background: var(--sand); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

/* ---------- Search form ---------- */
.search-form { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line-2); border-radius: 4px; padding: 5px; padding-inline-start: 14px; max-width: 640px; margin-inline: auto; color: var(--ink); }
.search-form:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 2px var(--indigo); }
.search-form .icon { color: var(--brass-ink); width: 21px; height: 21px; }
.search-form input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 4px; outline: none; font-size: 18px; text-overflow: ellipsis; color: var(--ink); }
.search-form input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
.search-form .btn { min-height: 44px; padding: 0 20px; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(21, 29, 49, .55); opacity: 0; transition: opacity .28s; }
.drawer-panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(88vw, 380px); background: var(--indigo) var(--lattice-dark); color: var(--on-dark); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .28s var(--ease); padding-bottom: env(safe-area-inset-bottom); overflow: hidden; }
[dir="ltr"] .drawer-panel { transform: translateX(100%); }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); border-bottom: 1px solid rgba(215, 191, 143, .2); }
.drawer-head .brand { color: #fff; }
.drawer-head .brand-mark .mark-finial { fill: var(--brass-light); }
.drawer-head .icon-btn { color: var(--on-dark); }
.drawer-head .icon-btn:hover { background: rgba(243, 234, 217, .1); color: #fff; }
.drawer-list { flex: 1; overflow: auto; padding: 6px var(--gutter); }
.drawer-list a { display: block; padding: 13px 2px; border-bottom: 1px solid rgba(215, 191, 143, .16); font-family: var(--display); font-weight: 500; font-size: 19px; color: var(--on-dark); }
.drawer-list a:hover { color: var(--brass-light); }
.drawer-list .sub-menu { list-style: none; padding-inline-start: 16px; margin: 0; }
.drawer-list .sub-menu a { font-size: 16.5px; color: var(--on-dark-2); padding-block: 10px; }
.drawer-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 16px var(--gutter); border-top: 1px solid rgba(215, 191, 143, .2); }
.drawer-foot > :first-child, .drawer-foot > :last-child { grid-column: 1 / -1; }
.drawer-foot .btn { padding-inline: 12px; }
.drawer-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--brass-light); font-family: var(--display); font-weight: 600; }
.drawer-wa .icon { width: 20px; height: 20px; }

/* ---------- Sadu weave ---------- */
.sadu { --u: 1; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.sadu-row { position: relative; height: calc(var(--h) * var(--u)); background-repeat: repeat-x; background-size: auto 100%; background-position: center; }
.r-line-camel { background-image: linear-gradient(to bottom, #1b1712 0 16%, var(--camel) 16% 84%, #1b1712 84%); }
.r-line-red { background-image: linear-gradient(to bottom, var(--sadu) 0 28%, var(--cream) 28% 40%, var(--sadu) 40% 60%, var(--cream) 60% 72%, var(--sadu) 72%); }
.r-teeth { background-color: var(--cream); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Crect width='16' height='10' fill='%23efe3cc'/%3E%3Cpath d='M0 10 8 0l8 10z' fill='%231b1712'/%3E%3C/svg%3E"); }
.r-teeth-down { background-color: var(--cream); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Crect width='16' height='10' fill='%23efe3cc'/%3E%3Cpath d='M0 0h16L8 10z' fill='%239b2c2c'/%3E%3C/svg%3E"); }
.r-eye { background-color: #1b1712; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Crect width='24' height='16' fill='%231b1712'/%3E%3Cpath d='M12 1 23 8 12 15 1 8z' fill='%239b2c2c'/%3E%3Cpath d='M12 4.5 17.5 8 12 11.5 6.5 8z' fill='%23efe3cc'/%3E%3Cpath d='M12 6.6 14.2 8 12 9.4 9.8 8z' fill='%231b1712'/%3E%3Cpath d='M0 4 4 8 0 12zM24 4 20 8 24 12z' fill='%23b98b55'/%3E%3C/svg%3E"); }
.r-zigzag { background-color: var(--indigo); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Crect width='16' height='10' fill='%231e2a44'/%3E%3Cpath d='M0 8 4 2 8 8 12 2 16 8' fill='none' stroke='%23efe3cc' stroke-width='2'/%3E%3C/svg%3E"); }
.r-grains { background-color: var(--sadu); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Crect width='8' height='8' fill='%239b2c2c'/%3E%3Cpath d='M1 1h2v2H1zM5 5h2v2H5z' fill='%23efe3cc'/%3E%3C/svg%3E"); }
/* The loom's bare warp covers each row until the weft is woven in; a brass shuttle carries it across. */
.sadu-cover { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(239, 227, 204, .3) 0 1px, rgba(239, 227, 204, 0) 1px 6px), #241d16; transform: scaleX(0); transform-origin: 0 50%; }
[dir="ltr"] .sadu-cover { transform-origin: 100% 50%; }
.sadu-edge { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.sadu-shuttle { position: absolute; top: 50%; inset-inline-start: 0; width: 32px; height: 10px; margin-top: -5px; margin-inline-start: -16px; border-radius: 50%; background: linear-gradient(180deg, #f0dcae, #a37d47 70%, #7d5d31); box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
/* The weft thread trails behind the shuttle, over the part already woven. */
.sadu-shuttle::after { content: ""; position: absolute; top: 50%; inset-inline-end: 100%; width: 64px; height: 1px; background: linear-gradient(to right, rgba(239, 227, 204, .85), rgba(239, 227, 204, 0)); }
[dir="ltr"] .sadu-shuttle::after { background: linear-gradient(to left, rgba(239, 227, 204, .85), rgba(239, 227, 204, 0)); }
@keyframes mjl-unweave { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes mjl-shuttle-rtl { 0% { opacity: 0; transform: translateX(0); } 7%, 93% { opacity: 1; } 100% { opacity: 0; transform: translateX(-100%); } }
@keyframes mjl-shuttle-ltr { 0% { opacity: 0; transform: translateX(0); } 7%, 93% { opacity: 1; } 100% { opacity: 0; transform: translateX(100%); } }
/* Under the hero: weaves itself as the page opens (no script needed). */
.sadu--strip .sadu-cover { animation: mjl-unweave 1.05s var(--weave-ease) calc(.45s + var(--i) * .5s) both; }
.sadu--strip .sadu-edge { animation: mjl-shuttle-rtl 1.05s var(--weave-ease) calc(.45s + var(--i) * .5s) both; }
[dir="ltr"] .sadu--strip .sadu-edge { animation-name: mjl-shuttle-ltr; }
/* The large band: covered while the script waits for it to scroll into view, then woven row by row. */
html.mjl-anim .sadu--band:not(.is-woven) .sadu-cover { transform: scaleX(1); }
.sadu--band.is-woven .sadu-cover { animation: mjl-unweave .95s var(--weave-ease) calc(var(--i) * .42s) both; }
.sadu--band.is-woven .sadu-edge { animation: mjl-shuttle-rtl .95s var(--weave-ease) calc(var(--i) * .42s) both; }
[dir="ltr"] .sadu--band.is-woven .sadu-edge { animation-name: mjl-shuttle-ltr; }
.sadu--band { --u: 1.2; box-shadow: 0 -1px 0 rgba(215, 191, 143, .35), 0 1px 0 rgba(215, 191, 143, .35); }

/* ---------- Home: hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--on-dark); overflow: hidden; background: var(--indigo-deep); }
.hero-photo, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: center 30%; filter: saturate(.9) contrast(1.04) sepia(.06); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(21, 29, 49, .96) 0%, rgba(21, 29, 49, .78) 40%, rgba(21, 29, 49, .2) 72%, rgba(21, 29, 49, .4) 100%); pointer-events: none; }
/* Sunlight through a mashrabiya: soft star-shaped patches drifting slowly over the room. */
.hero-sun { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; mix-blend-mode: screen; opacity: .5;
	-webkit-mask-image: radial-gradient(ellipse 75% 46% at 50% 22%, #000 0%, rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, 0) 80%);
	mask-image: radial-gradient(ellipse 75% 46% at 50% 22%, #000 0%, rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, 0) 80%); }
.hero-sun-beams { position: absolute; top: -35%; left: -35%; width: 170%; height: 170%; transform: rotate(-14deg) skewX(-18deg) translate3d(0, 0, 0); animation: mjl-sun 48s ease-in-out infinite alternate; will-change: transform; }
.hero-sun.is-paused .hero-sun-beams, .lanterns.is-paused .lantern-glow { animation-play-state: paused; }
@keyframes mjl-sun { from { transform: rotate(-14deg) skewX(-18deg) translate3d(-5%, -2%, 0); } to { transform: rotate(-14deg) skewX(-18deg) translate3d(6%, 4%, 0); } }
.hero-inner { position: relative; z-index: 3; display: flex; align-items: flex-end; min-height: 600px; min-height: min(92svh, 780px); padding-block: 56px 78px; }
.hero-text { max-width: 640px; min-width: 0; }
.hero-title { font-size: clamp(40px, 11vw, 80px); font-weight: 700; line-height: 1.2; margin: 6px 0 14px; color: #fff; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-title span { display: block; color: var(--brass-light); }
.hero-lead { font-size: 19.5px; line-height: 1.65; color: rgba(243, 234, 217, .92); max-width: 540px; margin-bottom: 18px; }
.hero-search { max-width: 540px; margin-bottom: 14px; }
.hero-search .search-form { margin: 0; background: rgba(255, 252, 246, .97); border-color: transparent; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn { flex: 1 1 150px; }
.sadu--strip { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; }

/* ---------- Home: promises ribbon ---------- */
.ribbon { background: var(--paper); border-bottom: 1px solid var(--line); }
.ribbon-row { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding-block: 20px; }
.ribbon li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ribbon li .icon { width: 46px; height: 46px; padding: 12px; color: var(--indigo); background: var(--diamond) center / contain no-repeat; }
.ribbon li span { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; font-size: 15.5px; line-height: 1.35; color: var(--muted); }
.ribbon li strong { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding-block: 52px; }
.section-follow { padding-top: 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head > div { min-width: 0; }
.section-head h2 { font-size: clamp(29px, 7vw, 46px); line-height: 1.25; margin: 0; }
.section-head h2 span, .sadu-intro h2 span, .craft-head h2 span, .visit-text h2 span { color: var(--brass-ink); }
.section-head.is-center { flex-direction: column; align-items: center; text-align: center; }
.section-head.is-center .mjl-rule { margin-inline: auto; }
.section-lead { color: var(--ink-2); max-width: 680px; margin: 0; font-size: 19px; }
.section-head h2:has(span) { margin-bottom: 4px; }
.section-head h2 span { display: block; }

/* Made to measure */
.tailor { background: var(--sand) var(--lattice); border-block: 1px solid var(--line); }
.mtm-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; }
.mtm-figure { margin: 0; padding: 14px 14px 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); min-width: 0; }
.mtm-figure figcaption { font-size: 15.5px; color: var(--muted); text-align: center; line-height: 1.5; margin-top: 4px; }
.plan { display: block; width: 100%; height: auto; font-family: var(--display); }
.plan-floor { fill: #fffaf0; }
.plan-walls { fill: none; stroke: var(--indigo); stroke-width: 3; }
.plan-rug { fill: #f1e2c5; stroke: var(--sadu); stroke-width: 1.2; }
.plan-rug-border { fill: none; stroke: var(--sadu); stroke-width: 1; stroke-dasharray: 3 3; }
.plan-tray { fill: #e3c995; stroke: var(--brass-ink); stroke-width: 1; }
.plan-tray-in { fill: none; stroke: var(--brass-ink); stroke-width: .8; }
.plan-window { fill: var(--paper); stroke: var(--indigo); stroke-width: 1.2; }
.plan-window-lattice { fill: var(--brass); }
.plan-door-gap { stroke: #fffaf0; stroke-width: 5; }
.plan-door { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 4 3; }
.plan-back { fill: var(--indigo); }
.plan-cushion { fill: #ead8b4; stroke: var(--indigo); stroke-width: 1; }
.plan-cushion.is-corner { fill: var(--camel); }
.plan-mark { fill: var(--sadu); }
.plan-dim path { fill: none; stroke: var(--brass-ink); stroke-width: 1; }
.plan-label-bg { fill: var(--paper); stroke: var(--brass); stroke-width: .8; }
.plan-dim text { fill: var(--ink); font-size: 15px; font-weight: 600; text-anchor: middle; }
.plan-stamp circle { fill: rgba(155, 44, 44, .06); stroke: var(--sadu); stroke-width: 1.4; }
.plan-stamp .plan-stamp-in { fill: none; stroke-width: .9; stroke-dasharray: 2 2; }
.plan-stamp text { fill: var(--sadu); font-size: 11.5px; font-weight: 700; text-anchor: middle; }
.plan-seat, .plan-dim, .plan-stamp { transform-box: fill-box; transform-origin: center; }
html.mjl-anim .plan:not(.is-drawn) .plan-seat { opacity: 0; transform: scale(.55); }
html.mjl-anim .plan:not(.is-drawn) .plan-dim { opacity: 0; }
html.mjl-anim .plan:not(.is-drawn) .plan-stamp { opacity: 0; transform: scale(1.6); }
.plan.is-drawn .plan-seat { transition: opacity .4s ease, transform .55s cubic-bezier(.3, 1.45, .5, 1); transition-delay: calc(.45s + var(--i) * .15s); }
.plan.is-drawn .plan-dim { transition: opacity .6s ease .15s; }
.plan.is-drawn .plan-stamp { transition: opacity .3s ease 2.5s, transform .5s cubic-bezier(.3, 1.5, .5, 1) 2.5s; }
.steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.step { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.step-num { width: 46px; height: 46px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--indigo); background: var(--diamond) center / contain no-repeat; }
.step-body { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.step-title { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--ink); line-height: 1.35; }
.step-title .icon { width: 22px; height: 22px; color: var(--brass-ink); }
.step-text { color: var(--ink-2); font-size: 17.5px; line-height: 1.6; margin-top: 2px; }
.mtm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.mtm-actions .btn { flex: 1 1 200px; }
.mtm-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 16.5px; color: var(--ink-2); line-height: 1.55; }
.mtm-note .icon { width: 22px; height: 22px; color: var(--brass-ink); margin-top: 2px; }
.mtm-note span { min-width: 0; }

/* Categories: a bento of photo tiles */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; gap: 12px; }
.tile { position: relative; display: block; overflow: hidden; isolation: isolate; border-radius: var(--radius); background: var(--indigo); color: #fff; min-width: 0; }
.tile:hover { color: #fff; }
.tile-1 { grid-column: 1 / -1; grid-row: span 2; }
.tile-2 { grid-row: span 2; border-radius: 50% 50% var(--radius) var(--radius) / 70px 70px var(--radius) var(--radius); }
.tile-img { position: absolute; inset: 0; display: grid; place-items: center; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) sepia(.08) contrast(1.03); transition: transform .8s var(--ease); }
.tile-img .brand-mark { width: 56px; height: 64px; color: var(--brass-light); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(21, 29, 49, .9) 0%, rgba(21, 29, 49, .4) 42%, rgba(21, 29, 49, 0) 72%); pointer-events: none; }
.tile-text { position: absolute; inset-inline: 14px 60px; bottom: 12px; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.tile-name { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.3; color: #fff; }
.tile-1 .tile-name { font-size: 27px; }
.tile-count { font-size: 15px; color: var(--on-dark-2); }
.tile-go { position: absolute; inset-inline-end: 12px; bottom: 12px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(215, 191, 143, .75); border-radius: 50%; color: var(--brass-light); background: rgba(21, 29, 49, .35); }
.tile-go .icon { width: 19px; height: 19px; }
[dir="ltr"] .tile-go .icon { transform: scaleX(-1); }

/* The Sadu band */
.sadu-section { background: var(--indigo) var(--lattice-dark); color: var(--on-dark); padding-block: 54px 40px; }
.sadu-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 48px; margin-bottom: 30px; }
.sadu-intro h2 { color: #fff; font-size: clamp(30px, 7.4vw, 50px); line-height: 1.25; margin: 0; }
.sadu-intro h2 span { display: block; color: var(--brass-light); }
.sadu-intro p { color: var(--on-dark-2); font-size: 19px; max-width: 620px; margin-bottom: 8px; }
.sadu-legend { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.sadu-legend li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.sadu-legend li > span:last-child { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; font-size: 15.5px; line-height: 1.45; color: var(--on-dark-2); }
.sadu-legend strong { font-family: var(--display); font-weight: 600; font-size: 17px; color: #fff; }
.sadu-swatch { flex: none; width: 46px; height: 26px; border-radius: 2px; background-repeat: repeat-x; background-size: auto 100%; box-shadow: 0 0 0 1px rgba(215, 191, 143, .45); margin-top: 3px; }

/* New collection: a horizontal rail of cards */
.rail-nav { display: none; gap: 8px; }
.rail-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--indigo); cursor: pointer; transition: background .2s, color .2s; }
.rail-btn:hover { background: var(--indigo); color: #fff; }
.rail-btn .icon { width: 20px; height: 20px; }
[dir="rtl"] .rail-btn.is-prev .icon, [dir="ltr"] .rail-btn.is-next .icon { transform: scaleX(-1); }
.rail-products { margin-inline: calc(var(--gutter) * -1); }
.rail-products .woocommerce ul.products, .rail-products ul.products {
	grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 74%; gap: 14px !important;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
	padding: 4px var(--gutter) 16px !important; scrollbar-width: thin; scrollbar-color: var(--brass) transparent;
}
.rail-products ul.products li.product { scroll-snap-align: start; }

/* Best sellers beside the season's piece in an arched niche */
.best-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.best-list ul.products, .best-list .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.niche { position: relative; display: flex; flex-direction: column; background: var(--indigo) var(--lattice-dark); color: var(--on-dark); border-radius: var(--radius-lg); padding: 16px; overflow: hidden; min-width: 0; }
.niche-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 50% 50% 6px 6px / 34% 34% 6px 6px; background: var(--indigo-2); }
.niche-media::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(215, 191, 143, .85); border-radius: 50% 50% 3px 3px / 34% 34% 3px 3px; pointer-events: none; }
.niche-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) sepia(.06); transition: transform .8s var(--ease); }
.niche:hover .niche-media img { transform: scale(1.04); }
.niche-text { padding: 18px 4px 4px; }
.niche-title { font-size: clamp(25px, 6vw, 32px); margin: 2px 0 6px; color: #fff; }
.niche-title a { color: #fff; }
.niche-title a:hover { color: var(--brass-light); }
.niche-price { font-family: var(--font); font-size: 24px; font-weight: 600; color: var(--brass-light); margin: 0 0 8px; }
.niche-price del { color: var(--on-dark-2); font-size: 18px; font-weight: 400; }
.niche-price ins { color: #fff; text-decoration: none; }
.niche-desc { color: var(--on-dark-2); font-size: 18px; margin-bottom: 16px; }
.niche .btn-dark { background: var(--brass-light); color: var(--indigo); }
.niche .btn-dark:hover { background: #e6d3ab; color: var(--indigo); }

/* Craft story */
.craft { background: var(--sand); padding-block: 56px 40px; border-top: 1px solid var(--line); }
.craft-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.craft-head h2 { font-size: clamp(29px, 7vw, 46px); line-height: 1.25; margin: 0; }
.craft-head h2 span { display: block; }
.craft-media { display: none; }
.chapter { position: relative; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line-2); min-width: 0; }
.chapter-img { margin: 0 0 14px; }
.chapter-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 50% 50% 4px 4px / 18% 18% 4px 4px; filter: saturate(.9) sepia(.06) contrast(1.03); }
.chapter-num { display: block; font-family: var(--display); font-size: 46px; font-weight: 700; line-height: 1; color: var(--brass); opacity: .75; }
.chapter h3 { font-size: 30px; margin: 4px 0 8px; }
.chapter p { font-size: 19px; color: var(--ink-2); max-width: 540px; }
.chapter-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chapter-facts li { padding: 3px 12px; border: 1px solid var(--brass); border-radius: 2px; font-size: 16px; color: var(--ink-2); background: var(--card); }

/* Showroom under its lanterns */
.visit { position: relative; overflow: hidden; background: var(--indigo) var(--lattice-dark); color: var(--on-dark); padding-block: 148px 56px; }
.lanterns { position: absolute; top: 0; inset-inline-end: 3%; width: min(72vw, 400px); height: auto; pointer-events: none; z-index: 0; }
.lantern-chain { stroke: var(--brass); stroke-width: 1.2; stroke-dasharray: 2 2.5; fill: none; }
.lantern-metal { fill: url(#mjl-lamp-brass); }
.lantern-body { fill: #5b4325; stroke: var(--brass); stroke-width: 1.3; }
.lantern-light { fill: #ffd98f; }
.lantern-glow { fill: url(#mjl-lamp-glow); opacity: .9; }
html.mjl-anim .lanterns:not(.is-lit) .lantern-glow { opacity: 0; }
html.mjl-anim .lanterns:not(.is-lit) .lantern-light { opacity: .2; }
.lanterns.is-lit .lantern-glow { transition: opacity 1.3s ease calc(.2s + var(--i) * .5s); animation: mjl-breathe 5s ease-in-out calc(2.8s + var(--i) * .8s) infinite alternate; }
.lanterns.is-lit .lantern-light { transition: opacity .6s ease calc(.2s + var(--i) * .5s); }
@keyframes mjl-breathe { from { opacity: .9; } to { opacity: .55; } }
.visit-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: center; }
.visit-img { margin: 0; min-width: 0; }
.visit-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); filter: saturate(.92) sepia(.06); }
.visit-text { min-width: 0; }
.visit-text h2 { color: #fff; font-size: clamp(29px, 7vw, 46px); line-height: 1.25; margin: 0 0 12px; }
.visit-text h2 span { display: block; color: var(--brass-light); }
.visit-text p { color: var(--on-dark-2); font-size: 19px; max-width: 560px; }
.visit-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.visit-list li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.visit-list .icon { width: 21px; height: 21px; color: var(--brass-light); margin-top: 3px; }
.visit-list a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.visit-actions .btn { flex: 1 1 160px; }

/* Lattice fade: a photo that dissolves into mashrabiya stars at one edge. */
.lattice-fade img {
	-webkit-mask-image: linear-gradient(var(--fade-dir), #000 58%, rgba(0, 0, 0, 0) 94%), var(--star-mask);
	-webkit-mask-size: 100% 100%, 26px 26px;
	-webkit-mask-repeat: no-repeat, repeat;
	mask-image: linear-gradient(var(--fade-dir), #000 58%, rgba(0, 0, 0, 0) 94%), var(--star-mask);
	mask-size: 100% 100%, 26px 26px;
	mask-repeat: no-repeat, repeat;
	mask-composite: add;
}

/* Demo CTA */
.cta-demo { padding-block: 44px; }
.cta-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; padding: 26px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--sand) var(--lattice); }
.cta-card h2 { font-size: clamp(24px, 6vw, 32px); margin-bottom: 8px; }
.cta-card p { color: var(--ink-2); margin: 0; max-width: 680px; }

/* Reveal on scroll (only when the script runs and motion is welcome) */
html.mjl-anim [data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.mjl-anim [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); }

/* ---------- Product cards (WooCommerce) ---------- */
.woocommerce ul.products, .woocommerce-page ul.products { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; margin: 0 !important; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important; clear: none !important; position: relative; display: flex; flex-direction: column; min-width: 0;
	padding: 8px 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-align: start; color: var(--ink); transition: box-shadow .3s, border-color .3s;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: var(--ink); text-decoration: none; }
.woocommerce ul.products li.product a img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--arch); margin: 0 0 12px; background: var(--sand); filter: saturate(.92) sepia(.06) contrast(1.02); }
.card-cat { display: block; font-family: var(--display); font-size: 14px; font-weight: 500; color: var(--brass-ink); margin: 0 4px 2px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.45; padding: 0; margin: 0 4px 4px; color: var(--ink); }
.card-dims { display: flex; align-items: center; gap: 6px; margin: 0 4px 4px; font-size: 15.5px; line-height: 1.4; color: var(--muted); min-width: 0; }
.card-dims .icon { width: 16px; height: 16px; color: var(--brass-ink); }
.card-dims span { min-width: 0; overflow-wrap: anywhere; }
.woocommerce ul.products li.product .price { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-height: 44px; margin: auto 4px 0; padding-inline-end: 52px; font-family: var(--font); font-weight: 600; font-size: 19px; line-height: 1.2; color: var(--ink); }
.woocommerce ul.products li.product .price del { color: var(--muted); font-weight: 400; font-size: 15.5px; opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--sadu); }
.card-badges { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: calc(100% - 28px); pointer-events: none; }
.woocommerce .card-badges .onsale, .woocommerce ul.products li.product .card-badges .onsale {
	position: static; margin: 0; min-width: 0; min-height: 0; padding: 2px 10px; line-height: 1.6; border-radius: 2px;
	background: var(--sadu); color: #fff; font-family: var(--display); font-size: 13px; font-weight: 700; direction: ltr;
}
.mtm-badge { display: inline-block; padding: 1px 9px; border-radius: 2px; background: rgba(255, 252, 246, .95); border: 1px solid var(--brass); color: var(--indigo); font-family: var(--display); font-size: 13px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.quick-add {
	position: absolute; bottom: 12px; inset-inline-end: 12px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--indigo); color: var(--on-dark); transition: background .2s, color .2s, transform .15s, opacity .2s;
}
.quick-add .icon { width: 20px; height: 20px; }
.quick-add:hover { background: var(--brass-light); color: var(--indigo); }
.quick-add:active { transform: scale(.94); }
.quick-add.loading { opacity: .6; pointer-events: none; }
.quick-add.added { background: var(--ok); color: #fff; }
.quick-add.loading::after, .quick-add.added::after { display: none !important; }
.woocommerce ul.products li.product a.added_to_cart { display: none; }
.woocommerce .star-rating { display: none; }

/* ---------- Shop page ---------- */
.shop-wrap { padding-block: 16px 60px; }
.shop-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: center; margin: 4px 0 22px; padding: 22px; background: var(--sand) var(--lattice); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.shop-head-text { min-width: 0; }
.shop-head-title { font-size: clamp(31px, 7.4vw, 50px); line-height: 1.2; margin: 2px 0 0; }
.shop-head .mjl-rule { margin-block: 10px 12px; }
.shop-head-desc { color: var(--ink-2); font-size: 18.5px; max-width: 640px; }
.shop-head-desc p:last-child { margin: 0; }
.shop-head-img { margin: 0; min-width: 0; }
.shop-head-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); filter: saturate(.92) sepia(.06); }
.woocommerce-products-header { margin-bottom: 6px; }
.woocommerce-products-header__title.page-title { font-size: clamp(28px, 7vw, 42px); margin: 4px 0 10px; }
.term-description { color: var(--ink-2); font-size: 18px; max-width: 760px; }
.breadcrumb, .woocommerce .woocommerce-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: 15.5px; color: var(--muted); margin: 0 0 8px; }
.breadcrumb a, .woocommerce .woocommerce-breadcrumb a { color: var(--ink-2); }
.breadcrumb .sep { display: inline-block; width: 6px; height: 6px; margin-inline: 10px; border: 1px solid var(--brass); transform: rotate(45deg); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; margin-bottom: 8px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: none; display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 3px; font-family: var(--display); font-size: 16px; font-weight: 500; color: var(--ink-2); }
.chip:hover { color: var(--indigo); background: var(--sand); }
.chip.is-active { background: var(--indigo); color: #fff; }
.woocommerce .woocommerce-result-count { margin: 6px 0 14px; font-size: 16px; color: var(--muted); float: none; }
.woocommerce .woocommerce-ordering { float: none; margin: 0 0 16px; }
.woocommerce .woocommerce-ordering select {
	appearance: none; -webkit-appearance: none; min-height: 46px; padding: 0 16px; padding-inline-end: 40px; border: 1px solid var(--line-2); border-radius: 3px;
	background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a5c30' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center / 18px; font-size: 17px; cursor: pointer; width: 100%;
}
[dir="ltr"] .woocommerce .woocommerce-ordering select { background-position: right 14px center; }
.woocommerce nav.woocommerce-pagination { margin-top: 34px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; flex-wrap: wrap; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 46px; height: 46px; display: grid; place-items: center; border-radius: 3px; border: 1px solid var(--line-2); background: var(--card); padding: 0 10px; font-family: var(--display); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-noreviews, p.no-comments { border: 1px solid var(--line) !important; border-radius: var(--radius); background: var(--card) !important; color: var(--ink) !important; padding: 14px 18px !important; margin: 0 0 18px !important; list-style: none; }
.woocommerce-message { border-color: #bcd8c6 !important; background: #f2f8f3 !important; }
.woocommerce-error { border-color: #e9c1bd !important; background: #fdf3f2 !important; }
.woocommerce-info::before, .woocommerce-message::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button, .woocommerce-info .button { float: none !important; min-height: 42px; margin-inline-start: 12px; }

/* ---------- Single product ---------- */
.woocommerce div.product { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 6px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; min-width: 0; }
.woocommerce div.product div.images { position: relative; }
.woocommerce div.product div.images .flex-viewport, .woocommerce div.product div.images > .woocommerce-product-gallery__wrapper { border-radius: 50% 50% var(--radius) var(--radius) / 20% 20% var(--radius) var(--radius); overflow: hidden; background: var(--sand); }
.woocommerce div.product div.images img { background: var(--sand); filter: saturate(.94) sepia(.05); }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 66px !important; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: 4px; opacity: .6; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active { opacity: 1; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { top: auto; bottom: 14px; background: rgba(255, 252, 246, .95); border-radius: 50%; }
[dir="rtl"] .woocommerce div.product div.images .woocommerce-product-gallery__trigger { left: 14px; right: auto; }
.woocommerce div.product span.onsale { position: absolute; top: 14px; bottom: auto; z-index: 3; margin: 0; min-width: 0; min-height: 0; padding: 3px 12px; line-height: 1.6; border-radius: 2px; background: var(--sadu); color: #fff; font-family: var(--display); font-size: 14px; font-weight: 700; direction: ltr; }
[dir="rtl"] .woocommerce div.product span.onsale { right: 14px; left: auto; }
[dir="ltr"] .woocommerce div.product span.onsale { left: 14px; right: auto; }
.summary-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px; font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--brass-ink); }
.summary-kicker::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--sadu); }
.woocommerce div.product .product_title { font-size: clamp(28px, 6.6vw, 42px); line-height: 1.3; margin-bottom: 8px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-family: var(--font); font-size: 27px; font-weight: 600; display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 8px; }
.woocommerce div.product p.price del, .woocommerce div.product span.price del { color: var(--muted); font-size: 19px; font-weight: 400; opacity: 1; }
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins { color: var(--sadu); text-decoration: none; }
.summary-facts { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fact { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--card); font-size: 16px; line-height: 1.4; color: var(--ink-2); min-width: 0; }
.fact .icon { width: 18px; height: 18px; color: var(--brass-ink); }
.fact.is-made { border-color: var(--indigo); color: var(--indigo); }
.woocommerce-product-details__short-description { color: var(--ink-2); font-size: 19px; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 18px 0; }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { display: none; }
.woocommerce div.product form.cart.variations_form { display: block; position: relative; }
.woocommerce div.product form.cart .variations { width: 100%; margin-bottom: 12px; border: 0; }
.woocommerce div.product form.cart .variations tr { display: block; margin-bottom: 8px; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: start; line-height: 1.5; }
.woocommerce div.product form.cart .variations label { font-family: var(--display); font-weight: 600; font-size: 16px; }
.woocommerce div.product form.cart .variations td.value { position: relative; margin: 8px 0 4px; }
.woocommerce div.product form.cart .variations select { min-height: 46px; border: 1px solid var(--line-2); border-radius: 3px; padding: 0 14px; width: 100%; background: var(--card); }
.woocommerce div.product form.cart .variations select.is-replaced { position: absolute !important; top: 0; inset-inline-start: 0; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.option-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.option-btn { display: inline-flex; align-items: center; gap: 9px; min-width: 56px; min-height: 46px; padding: 0 16px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--card); font-family: var(--display); font-weight: 600; font-size: 15.5px; cursor: pointer; transition: .15s; color: var(--ink); }
.option-btn:hover { border-color: var(--indigo); }
.option-btn[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.option-btn:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.swatch-dot { width: 18px; height: 18px; flex: none; transform: rotate(45deg) scale(.82); border-radius: 2px; background: var(--dot, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.option-btn[aria-pressed="true"] .swatch-dot { box-shadow: 0 0 0 2px var(--brass-light); }
form.cart.needs-option .option-buttons { animation: mjl-shake .4s; }
form.cart.needs-option .variations label { color: var(--sadu); }
@keyframes mjl-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.woocommerce div.product form.cart .reset_variations { font-size: 15px; color: var(--muted); display: inline-block; margin-top: 8px; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.woocommerce div.product .woocommerce-variation-price { margin-bottom: 10px; }
.woocommerce .quantity .qty { width: 92px; min-height: 52px; border: 1px solid var(--line-2); border-radius: 3px; text-align: center; background: var(--card); font-weight: 600; font-size: 18px; }
.woocommerce div.product form.cart .button { flex: 1 1 200px; min-height: 52px; font-size: 17px; }
.tailor-note { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; margin: 0 0 18px; padding: 16px; border-radius: var(--radius); background: var(--sand) var(--lattice); border: 1px solid var(--line); border-inline-start: 3px solid var(--brass); }
.tailor-note-art { width: 50px; height: 50px; display: grid; place-items: center; color: var(--indigo); background: var(--diamond) center / contain no-repeat; }
.tailor-note-art .icon { width: 22px; height: 22px; }
.tailor-note p { margin: 0 0 10px; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.tailor-note .tailor-note-title { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); margin-bottom: 2px; }
.tailor-note-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.promise { list-style: none; padding: 14px 0; margin: 0 0 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; border-block: 1px solid var(--line-2); }
.promise li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.promise li span { min-width: 0; }
.promise .icon { color: var(--brass-ink); width: 21px; height: 21px; margin-top: 2px; }
.spec-card { margin: 0 0 18px; padding: 18px 18px 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.spec-title { font-size: 21px; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--brass); }
.woocommerce table.shop_attributes { border: 0; margin: 0; width: 100%; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px dashed var(--line-2); background: transparent !important; padding: 10px 0; font-style: normal; text-align: start; vertical-align: top; line-height: 1.55; }
.woocommerce table.shop_attributes tr:last-child th, .woocommerce table.shop_attributes tr:last-child td { border-bottom: 0; }
.woocommerce table.shop_attributes th { width: 36%; padding-inline-end: 12px; font-family: var(--display); font-weight: 500; font-size: 15.5px; color: var(--muted); }
.woocommerce table.shop_attributes td { font-size: 17px; color: var(--ink); }
.woocommerce table.shop_attributes td p { margin: 0; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 10px; min-width: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 22px; padding: 0; margin: 0 0 16px; border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { position: relative; border: 0; background: none; border-radius: 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 0; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; display: block; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--brass); }
.woocommerce div.product .woocommerce-tabs .panel { padding: 0; margin: 0; background: none; border: 0; max-width: 820px; font-size: 18.5px; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce div.product .woocommerce-tabs .panel h3 { font-size: 21px; margin-top: 1.2em; }
.woocommerce div.product .woocommerce-tabs .panel ul, .woocommerce div.product .woocommerce-tabs .panel ol { padding-inline-start: 1.3em; }
.woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; margin-top: 24px; min-width: 0; }
.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { font-size: 26px; margin-bottom: 16px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid var(--line-2); border-radius: 4px; background: var(--card); padding: 12px 14px; min-height: 50px; font-size: 17px; }
.woocommerce form .form-row label { font-weight: 500; }

/* Phone buy bar */
.buybar { position: fixed; inset-inline: 0; bottom: 0; z-index: 46; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 247, 239, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--brass); box-shadow: 0 -8px 24px rgba(27, 23, 18, .08); }
.buybar-info { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); line-height: 1.35; }
.buybar-name { font-family: var(--display); font-size: 14.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-price { font-weight: 700; font-size: 18px; }
.buybar-price del { color: var(--muted); font-weight: 400; font-size: 14px; }
.buybar-price ins { text-decoration: none; color: var(--sadu); }
.buybar .btn { flex: 0 0 auto; min-height: 48px; padding: 0 22px; }
body.single-product .tabbar { display: none; }
body.single-product { padding-bottom: 84px; }

/* Toast */
.toast { position: fixed; z-index: 70; inset-inline: 16px; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); margin-inline: auto; max-width: 440px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-radius: var(--radius); background: var(--indigo); color: #fff; font-family: var(--display); font-weight: 500; box-shadow: var(--shadow); border-inline-start: 3px solid var(--brass-light); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.toast.is-on { opacity: 1; transform: none; }
.toast a { color: var(--brass-light); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
body.single-product .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }

/* ---------- Pages, cart, checkout, account ---------- */
.page-wrap { padding-bottom: 56px; }
.page-head { background: var(--sand) var(--lattice); border-bottom: 1px solid var(--line); padding: 22px 0 18px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(31px, 7.4vw, 50px); line-height: 1.25; margin: 4px 0 0; }
.page-head .mjl-rule { margin-bottom: 4px; }
.page-head.is-compact { padding: 16px 0 12px; margin-bottom: 22px; }
.page-head.is-compact h1 { font-size: clamp(28px, 6.4vw, 40px); }
.page-lead { color: var(--ink-2); max-width: 700px; font-size: 19px; margin: 8px 0 0; }
.page-body { min-width: 0; }
.narrow { max-width: 860px; }
.page-wrap.narrow, .container.narrow { margin-inline: auto; }
.entry { font-size: 18.5px; min-width: 0; }
.entry > :first-child { margin-top: 0; }
.entry h2 { font-size: 26px; margin-top: 1.4em; display: flex; align-items: center; gap: 10px; }
.entry h2::before { content: ""; width: 8px; height: 8px; flex: none; transform: rotate(45deg); background: var(--brass); }
.entry h3 { font-size: 21px; margin-top: 1.2em; }
.entry ul, .entry ol { padding-inline-start: 1.3em; }
.entry li { margin-bottom: .35em; }
:where(.page-wrap:not(.is-store-page)) .entry a:where(:not(.button):not(.btn):not(.wc-block-components-button)) { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brass); }
.is-store-page .entry a:where(:not(.button):not(.btn):not([class*="wc-block"])) { text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-MyAccount-content a:where(:not(.button)) { color: var(--indigo); }
.entry ul.products { padding: 0; }
.entry ul.products li { margin-bottom: 0; }
.entry ul.products a { color: var(--ink); text-decoration: none !important; }
.entry ul.products h2::before { display: none; }
.entry ul.products .quick-add, .entry ul.products .quick-add:hover { text-decoration: none; }
.entry ul.products .quick-add { color: var(--on-dark); }
.entry ul.products .quick-add:hover { color: var(--indigo); }
.entry ul.products .quick-add.added { color: #fff; }
.entry figure { margin: 0 0 1.4em; max-width: 100%; overflow-x: auto; }
.entry table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.entry th, .entry td { padding: 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.entry th { background: var(--sand); font-family: var(--display); font-weight: 600; }
.credits-table { font-size: 16px; }
.credits-table small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.store-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; margin: 0 0 20px; border: 1px solid var(--line); border-inline-start: 3px solid var(--brass); border-radius: var(--radius); background: var(--card); font-size: 17px; color: var(--ink-2); line-height: 1.65; }
.store-note span { min-width: 0; }
.store-note .icon { color: var(--brass-ink); width: 22px; height: 22px; margin-top: 3px; }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { background: var(--indigo) !important; color: #fff !important; border-radius: 3px !important; min-height: 52px; font-family: var(--display); font-weight: 600; }
.wc-block-components-button:not(.is-link):hover { background: var(--indigo-2) !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-block-components-textarea, .wc-blocks-components-select .wc-blocks-components-select__select { border-radius: 4px !important; border-color: var(--line-2) !important; }
.wc-block-components-product-name { font-family: var(--display); font-weight: 600; color: var(--ink) !important; }
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); border-collapse: separate; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-top-color: var(--line); padding: 12px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 6px; overflow-x: auto; }
.woocommerce-account .woocommerce-MyAccount-navigation li { position: relative; flex: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--card); white-space: nowrap; font-family: var(--display); font-size: 16px; text-decoration: none; color: inherit; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; min-width: 0; }
.woocommerce-account .woocommerce::before, .woocommerce-account .woocommerce::after { display: none; }
.woocommerce form.login, .woocommerce form.register { border: 1px solid var(--line) !important; border-radius: var(--radius) !important; background: var(--card); padding: 22px !important; margin: 0 0 18px !important; }
.order-next { margin: 0 0 24px; padding: 18px; border: 1px solid var(--line); border-inline-start: 3px solid var(--brass); border-radius: var(--radius); background: var(--card); }
.order-next h2 { font-size: 22px; margin: 0 0 10px; }
.order-next ol { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.order-next li { display: flex; gap: 10px; align-items: flex-start; }
.order-next li span { min-width: 0; }
.order-next .icon { color: var(--brass-ink); width: 22px; height: 22px; margin-top: 3px; }
.empty-state { text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; padding-top: 40px; }
.empty-niche { position: relative; display: grid; place-items: center; width: 150px; height: 180px; margin-bottom: 6px; border: 1px solid var(--brass); border-radius: 50% 50% 4px 4px / 36% 36% 4px 4px; background: var(--sand) var(--lattice); color: var(--indigo); }
.empty-niche .brand-mark { width: 54px; height: 62px; }
.empty-niche > span { position: absolute; bottom: -14px; padding: 0 10px; background: var(--paper); font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--brass-ink); }
.empty-state h1 { font-size: clamp(28px, 7vw, 40px); }
.empty-state .search-form { width: 100%; }
.post-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.post-card img, .post-cover img { border-radius: var(--radius); margin-bottom: 10px; }
.mtm-page .tailor.is-page { padding-top: 0; background: none; border: 0; }
.mtm-close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding: 20px; border-radius: var(--radius-lg); background: var(--indigo) var(--lattice-dark); color: var(--on-dark); }
.mtm-close p { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 600; color: #fff; }
.mtm-close .btn-dark { background: var(--brass-light); color: var(--indigo); }
.mtm-close .btn-dark:hover { background: #e6d3ab; color: var(--indigo); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.contact-card { padding: 22px; border-radius: var(--radius-lg); background: var(--indigo) var(--lattice-dark); color: var(--on-dark); min-width: 0; }
.contact-card .brand { color: #fff; margin-bottom: 16px; }
.contact-card .brand-mark .mark-finial { fill: var(--brass-light); }
.contact-card ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.contact-card li { display: flex; gap: 12px; align-items: flex-start; }
.contact-card li > span { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; overflow-wrap: anywhere; }
.contact-card strong { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--on-dark-2); }
.contact-card .icon { color: var(--brass-light); width: 22px; height: 22px; margin-top: 3px; }
.contact-card a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-card a.btn { text-decoration: none; color: var(--indigo); }
.contact-card .contact-hint { margin: 14px 0 0; font-size: 16px; color: var(--on-dark-2); }
.contact-form { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
.swst-contact { display: block !important; margin: 0 !important; color: var(--ink); }
.swst-contact .swst-contact-form { padding: 0 !important; border: 0 !important; background: none !important; }
.swst-contact .swst-contact-details { display: none !important; }
.swst-contact h2 { margin-top: 0 !important; font-size: 24px !important; font-family: var(--display) !important; }
.swst-contact h2::before { display: none; }
.swst-contact .swst-intro { color: var(--muted) !important; }
.swst-contact input:not([type=hidden]), .swst-contact textarea { background: #fff !important; border-color: var(--line-2) !important; border-radius: 4px !important; font-size: 17px !important; }
.swst-contact .swst-submit { font-family: var(--display) !important; background: var(--indigo) !important; color: #fff !important; border-radius: 3px !important; }
.swst-contact .swst-trap { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo) var(--lattice-dark); color: var(--on-dark-2); font-size: 17px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--brass-light); }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark .mark-finial { fill: var(--brass-light); }
.site-footer .brand-tag { display: block; color: var(--on-dark-2); }
.site-footer .btn-brass { color: var(--indigo); }
.site-footer .btn-brass:hover { color: var(--indigo); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; padding-block: 40px 30px; }
.footer-brand, .footer-visit { grid-column: 1 / -1; min-width: 0; }
.footer-brand p { margin: 14px 0 16px; max-width: 400px; color: var(--on-dark-2); }
.footer-col { min-width: 0; }
.footer-title { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 18px; font-weight: 600; color: #fff; margin: 0 0 12px; }
.footer-title::before { content: ""; width: 6px; height: 6px; flex: none; transform: rotate(45deg); background: var(--brass-light); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.footer-links li { min-width: 0; }
.footer-visit ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.footer-visit li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.footer-visit .icon { width: 19px; height: 19px; margin-top: 4px; color: var(--brass-light); }
.socials { display: flex; gap: 8px; }
.socials a { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(215, 191, 143, .4); }
.socials a:hover { background: rgba(215, 191, 143, .15); }
.socials .icon { width: 19px; height: 19px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; border-top: 1px solid rgba(215, 191, 143, .22); padding-block: 16px; font-size: 15.5px; color: var(--on-dark-2); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.site-footer .footer-legal a { color: var(--on-dark); }
.pay-badge { display: inline-flex; align-items: center; gap: 6px; }
.pay-badge .icon { width: 19px; height: 19px; color: var(--brass-light); }

/* ---------- Phone tab bar ---------- */
.tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--indigo); border-top: 1px solid rgba(215, 191, 143, .35); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 9px 0 7px; font-family: var(--display); font-size: 12.5px; font-weight: 500; color: var(--on-dark-2); background: none; border: 0; cursor: pointer; min-width: 0; }
.tabbar a:hover, .tabbar button:hover { color: #fff; }
.tabbar .icon { width: 23px; height: 23px; }
.tabbar [aria-current="page"] { color: var(--brass-light); }
.tabbar [aria-current="page"]::before { content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; transform: rotate(45deg); background: var(--brass-light); }
.tab-icon { position: relative; display: inline-grid; }
.tabbar .majlis-cart-count { top: -6px; inset-inline-end: -11px; }

/* ---------- Larger screens ---------- */
@media (max-width: 599px) {
	.card-badges { top: 12px; inset-inline-start: 12px; max-width: calc(100% - 24px); }
	.mtm-badge, .woocommerce .card-badges .onsale { font-size: 12px; padding: 0 7px; }
	.demo-bar { font-size: 14.5px; }
	.demo-bar-inner { flex-wrap: wrap; }
	.woocommerce ul.products li.product .price { font-size: 17.5px; padding-inline-end: 48px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 16px; }
	.card-dims { font-size: 14.5px; }
	.quick-add { bottom: 10px; inset-inline-end: 8px; }
}

@media (min-width: 480px) {
	.brand-tag { display: block; }
}

@media (min-width: 600px) {
	:root { --gutter: 24px; }
	.util-row { justify-content: space-between; }
	.util-visit { display: inline-flex; }
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 18px; }
	.hero-actions .btn { flex: 0 0 auto; }
	.ribbon-row { gap: 18px 24px; }
	.bento { grid-auto-rows: 170px; }
	.tile-2 { border-radius: 50% 50% var(--radius) var(--radius) / 90px 90px var(--radius) var(--radius); }
	.sadu--band { --u: 1.7; }
	.sadu--strip { --u: 1.2; }
	.rail-products ul.products { grid-auto-columns: 42%; }
	.woocommerce .woocommerce-ordering select { width: auto; }
	.shop-wrap .woocommerce-result-count { float: right !important; }
	[dir="rtl"] .shop-wrap .woocommerce-ordering { float: left !important; }
	[dir="ltr"] .shop-wrap .woocommerce-result-count { float: left !important; }
	[dir="ltr"] .shop-wrap .woocommerce-ordering { float: right !important; }
	.shop-wrap ul.products { clear: both; }
	.sadu-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.cta-card { padding: 32px; }
	.footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-visit { grid-column: auto; }
}

@media (min-width: 760px) {
	:root { --fade-dir: to right; }
	[dir="ltr"] { --fade-dir: to left; }
	.hero::after { background: linear-gradient(to left, rgba(21, 29, 49, .95) 0%, rgba(21, 29, 49, .74) 40%, rgba(21, 29, 49, .16) 74%, rgba(21, 29, 49, .3) 100%), linear-gradient(to top, rgba(21, 29, 49, .55), rgba(21, 29, 49, 0) 30%); }
	[dir="ltr"] .hero::after { background: linear-gradient(to right, rgba(21, 29, 49, .95) 0%, rgba(21, 29, 49, .74) 40%, rgba(21, 29, 49, .16) 74%, rgba(21, 29, 49, .3) 100%), linear-gradient(to top, rgba(21, 29, 49, .55), rgba(21, 29, 49, 0) 30%); }
	.hero-sun { -webkit-mask-image: radial-gradient(ellipse 46% 70% at 24% 46%, #000 0%, rgba(0, 0, 0, .55) 52%, rgba(0, 0, 0, 0) 82%); mask-image: radial-gradient(ellipse 46% 70% at 24% 46%, #000 0%, rgba(0, 0, 0, .55) 52%, rgba(0, 0, 0, 0) 82%); }
	[dir="ltr"] .hero-sun { -webkit-mask-image: radial-gradient(ellipse 46% 70% at 76% 46%, #000 0%, rgba(0, 0, 0, .55) 52%, rgba(0, 0, 0, 0) 82%); mask-image: radial-gradient(ellipse 46% 70% at 76% 46%, #000 0%, rgba(0, 0, 0, .55) 52%, rgba(0, 0, 0, 0) 82%); }
	.hero-img { object-position: center; }
	.hero-inner { align-items: center; min-height: min(84vh, 760px); padding-block: 80px 110px; }
	.contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 28px; }
	.contact-card, .contact-form { padding: 30px; }
	.shop-head.has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); padding: 28px; gap: 28px; }
	.visit-img { --fade-dir: to left; }
	[dir="ltr"] .visit-img { --fade-dir: to right; }
}

@media (min-width: 960px) {
	.section { padding-block: 88px; }
	.section-follow { padding-top: 16px; }
	.section-head { margin-bottom: 32px; }
	.ribbon-row { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 24px; }
	.mtm-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; }
	.mtm-figure { padding: 22px 22px 14px; }
	.bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 16px; }
	.tile-1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
	.tile-2 { grid-column: 3; grid-row: 1 / span 2; border-radius: 50% 50% var(--radius) var(--radius) / 110px 110px var(--radius) var(--radius); }
	.tile-3 { grid-column: 4; grid-row: 1; }
	.tile-4 { grid-column: 4; grid-row: 2; }
	.tile-5 { grid-column: 1 / span 2; grid-row: 3; }
	.tile-6 { grid-column: 3 / span 2; grid-row: 3; }
	.tile-1 .tile-name { font-size: 34px; }
	.tile-name { font-size: 22px; }
	.sadu-section { padding-block: 84px 56px; }
	.sadu-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; margin-bottom: 44px; }
	.sadu--band { --u: 2.2; }
	.sadu--strip { --u: 1.35; }
	.rail-nav { display: flex; }
	.rail-products { margin-inline: 0; }
	.rail-products ul.products { grid-auto-columns: calc((100% - 3 * 20px) / 3.4); gap: 20px !important; padding-inline: 0 !important; scroll-padding-inline: 0; }
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
	.best-grid.has-niche { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 32px; align-items: stretch; }
	.niche { padding: 22px; }
	.niche-media { aspect-ratio: auto; flex: 1; min-height: 340px; }
	.craft { padding-block: 88px 40px; }
	.craft-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; row-gap: 0; }
	.craft-head { grid-column: 1 / -1; margin-bottom: 8px; }
	.craft-media { display: block; position: sticky; top: calc(var(--header-h) + 40px); grid-column: 2; grid-row: 2; align-self: start; height: min(74vh, 640px); margin: 12px 12px 48px; }
	.craft-chapters { grid-column: 1; grid-row: 2; }
	.craft-fig { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
	.craft-fig.is-active { opacity: 1; }
	.craft-fig img { width: 100%; height: 100%; object-fit: cover; border-radius: 50% 50% 6px 6px / 24% 24% 6px 6px; filter: saturate(.9) sepia(.06) contrast(1.03); }
	.craft-frame { position: absolute; inset: -12px; border: 1px solid var(--brass); border-radius: 50% 50% 10px 10px / 25% 25% 10px 10px; pointer-events: none; }
	.chapter { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; border: 0; margin: 0; padding: 0; }
	.chapter-img { display: none; }
	.craft-chapters .link-more { margin-bottom: 40px; }
	.visit { padding-block: 220px 96px; }
	.lanterns { width: min(30vw, 390px); inset-inline-end: 7%; }
	.visit-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; }
	.cta-card { grid-template-columns: minmax(0, 1fr) auto; padding: 36px 40px; }
	.woocommerce div.product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 60px; align-items: start; margin-top: 14px; }
	.woocommerce div.product div.images::before { content: ""; position: absolute; inset: -12px; border: 1px solid var(--brass); border-radius: 50% 50% 10px 10px / 21% 21% 10px 10px; pointer-events: none; }
	.woocommerce div.product div.summary { position: sticky; top: calc(var(--header-h) + 24px); }
	.footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.3fr); gap: 40px; padding-block: 56px 40px; }
	.footer-brand { grid-column: auto; }
	.woocommerce-account .woocommerce { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; }
	.woocommerce-account .woocommerce-MyAccount-navigation ul { display: grid; grid-template-columns: minmax(0, 1fr); }
	.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	.page-head { padding: 34px 0 26px; }
}

@media (min-width: 960px) and (hover: hover) {
	.woocommerce ul.products li.product:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
	.tile:hover .tile-img img { transform: scale(1.05); }
}

/* The header becomes the desktop one when the menu fits. */
@media (min-width: 1024px) {
	:root { --header-h: 78px; }
	body, body.single-product { padding-bottom: 0; }
	.only-mobile { display: none !important; }
	.main-nav.only-desktop { display: flex !important; }
	.icon-btn.only-desktop { display: inline-grid !important; }
	.admin-bar .site-header { top: 32px; }
	.header-actions { margin-inline-start: 0; }
	.brand-name { font-size: 30px; }
	.toast, body.single-product .toast { bottom: 24px; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
	.main-nav .nav-list a { padding-inline: 10px; font-size: 15.5px; }
	.main-nav .menu-item-has-children > a { padding-inline-end: 24px; }
	.main-nav .menu-item-has-children > a::before { inset-inline-end: 9px; }
	.brand-tag { display: none; }
}

@media (max-width: 1023px) {
	.header-actions .icon-btn { width: 42px; }
	.header-actions .lang-btn { min-width: 38px; padding: 0 8px; margin-inline-end: 0; }
}

@media (max-width: 380px) {
	.brand-name { font-size: 24px; }
	.brand-mark { width: 26px; height: 30px; }
	html[lang^="en"] .brand-name { font-size: 17px; letter-spacing: .12em; }
	.header-actions .icon-btn { width: 40px; }
	.hero-title { font-size: 37px; }
	.ribbon li .icon { width: 40px; height: 40px; padding: 10px; }
}

/* Touch screens: every control is at least 44px. */
@media (pointer: coarse) {
	.lang-btn { height: 44px; min-width: 44px; }
	.chip, .link-more, .woocommerce-account .woocommerce-MyAccount-navigation li a { min-height: 44px; }
	.demo-bar-close { width: 44px; height: 44px; }
	.footer-links a, .footer-legal a, .demo-bar a, .breadcrumb a, .footer-visit li a { display: inline-flex; align-items: center; min-height: 44px; }
	.util-visit { min-height: 44px; } /* no display here: the link stays hidden below 600px */
	.footer-links { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.sadu-cover { transform: scaleX(0) !important; }
	.sadu-edge { opacity: 0 !important; }
	[data-reveal] { opacity: 1 !important; transform: none !important; }
	.plan-seat, .plan-dim, .plan-stamp { opacity: 1 !important; transform: none !important; }
	.lantern-glow { opacity: .85 !important; }
	.lantern-light { opacity: 1 !important; }
	.tile:hover .tile-img img, .niche:hover .niche-media img { transform: none !important; }
}

/* English pages: the headline fits. */
html[lang^="en"] .hero-title { font-size: clamp(36px, 9.4vw, 64px); line-height: 1.12; }
@media (min-width: 760px) {
	html[lang^="en"] .hero-text { max-width: 720px; }
}
html[lang^="en"] .section-head h2, html[lang^="en"] .sadu-intro h2, html[lang^="en"] .craft-head h2, html[lang^="en"] .visit-text h2 { line-height: 1.15; }
