/*
Theme Name: Midad
Theme URI: https://seifweb.com
Author: SeifWeb
Author URI: https://seifweb.com
Description: متجر مكتبة وقرطاسية وملفات رقمية على WooCommerce: أدوات مدرسية ومكتبية وفنية، وملفات PDF وقوالب للتحميل المحمي، وخدمات إلكترونية تنجزها المكتبة. عربي أولًا ومصمَّم للهاتف. A stationery and digital library store for WooCommerce — supplies, protected downloads and e-services — Arabic first and built for phones.
Version: 3.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: midad
Tags: e-commerce, rtl-language-support, custom-logo, custom-menu
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #1f1a17;
	--ink-2: #4a423c;
	--muted: #6b625a;
	--line: #e4dace;
	--paper: #f6f1ea;
	--card: #fffdf9;
	--sand: #ede3d4;
	--accent: #2b4aa6;
	--accent-dark: #1f3884;
	--accent-soft: #e4eafa;
	--accent-light: #a9bcff;
	--sale: #b42318;
	--ok: #1e7a4f;
	--footer: #171310;
	--radius: 12px;
	--shadow: 0 1px 2px rgba(31, 26, 23, .06), 0 10px 30px rgba(31, 26, 23, .08);
	--font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
	--display: "Readex Pro", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
	--gutter: 16px;
	--header-h: 60px;
	--tabbar-h: 62px;
}

/* ---------- 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: 16px; 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));
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.3; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.site-footer :focus-visible, .ticker :focus-visible, .demo-bar :focus-visible, .cta-demo :focus-visible, .hero :focus-visible, .banner-card :focus-visible, .toast :focus-visible { outline-color: #fff; }
.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(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.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: 8px;
	min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
	font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: 0; text-align: center;
	cursor: pointer; transition: background .2s, color .2s, border-color .2s, opacity .2s;
	background: var(--ink); color: #fff; text-decoration: none;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--accent); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-accent, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce button.single_add_to_cart_button { background: var(--accent); color: #fff; }
.btn-accent:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce button.single_add_to_cart_button:hover { background: var(--accent-dark); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
/* 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(--accent) !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: 999px; background: transparent; border: 0; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--sand); color: var(--ink); }
.lang-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 34px; padding: 0 10px; margin-inline-end: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1; }
.lang-btn:hover { border-color: var(--ink); color: var(--ink); }
.lang-btn[lang="en"] { letter-spacing: .04em; }
.lang-link .icon, .lang-foot .icon { width: 18px; height: 18px; }
.lang-foot { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Demo notice ---------- */
.demo-bar { background: var(--accent-dark); color: #fff; font-size: 13px; }
.demo-bar-inner { display: flex; align-items: center; gap: 6px 14px; min-height: 40px; padding-block: 4px; }
.demo-bar p { margin: 0; flex: 1; min-width: 0; line-height: 1.5; }
.demo-bar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.demo-bar a:hover { color: var(--accent-light); }
.demo-bar-close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.demo-bar-close:hover { background: rgba(255, 255, 255, .14); }
.demo-bar-close .icon { width: 18px; height: 18px; }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: #eee6dc; font-size: 12.5px; overflow: hidden; white-space: nowrap; }
.ticker-track { display: flex; width: max-content; animation: midad-tick 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; }
.ticker-item { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 26px; }
.ticker-item .icon { width: 16px; height: 16px; color: var(--accent-light); }
@keyframes midad-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .ticker-track { animation-name: midad-tick-rtl; }
@keyframes midad-tick-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 253, 249, .94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(31, 26, 23, .07); }
.admin-bar .site-header { top: 46px; }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; min-height: var(--header-h); }
.header-row > .icon-btn:first-child { justify-self: start; }
.brand { display: inline-flex; align-items: center; gap: 8px; justify-self: center; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { max-height: 40px; width: auto; }
.brand-mark { width: 30px; height: 30px; flex: none; color: var(--accent); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1; white-space: nowrap; }
html[lang^="en"] .brand-name { text-transform: uppercase; letter-spacing: .12em; font-size: 20px; }
.header-actions { display: flex; align-items: center; justify-self: end; }
.midad-cart-count { position: absolute; top: 5px; inset-inline-end: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; font-family: var(--font); }
.midad-cart-count.is-empty { display: none; }
.header-search { border-top: 1px solid var(--line); padding-block: 12px; }
.nav-list, .drawer-list { list-style: none; margin: 0; padding: 0; }
.main-nav .nav-list { display: flex; gap: 2px; }
.main-nav .nav-list > li { position: relative; }
.main-nav .nav-list a { display: block; padding: 10px 13px; font-weight: 500; font-size: 15px; 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(--ink); }
.main-nav .nav-list > li > a { position: relative; }
.main-nav .nav-list > li > a::after { content: ""; position: absolute; inset-inline: 13px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.main-nav .nav-list > li:hover > a::after, .main-nav .current-menu-item > a::after, .main-nav .current-menu-ancestor > a::after { transform: scaleX(1); }
.main-nav .menu-item-has-children > a { padding-inline-end: 26px; }
.main-nav .menu-item-has-children > a::before { content: ""; position: absolute; inset-inline-end: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.6px solid currentColor; border-bottom: 1.6px 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: 230px; background: var(--card); border: 1px solid var(--line); border-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: 8px; 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); border-radius: 999px; padding: 5px; padding-inline-start: 16px; max-width: 640px; margin-inline: auto; }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.search-form .icon { color: var(--muted); width: 20px; height: 20px; }
.search-form input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 4px; outline: none; font-size: 16px; text-overflow: ellipsis; }
.search-form .btn { min-height: 42px; padding: 0 18px; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(31, 26, 23, .45); opacity: 0; transition: opacity .25s; }
.drawer-panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(86vw, 360px); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; padding-bottom: env(safe-area-inset-bottom); }
[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 var(--line); }
.drawer-list { flex: 1; overflow: auto; padding: 8px var(--gutter); }
.drawer-list a { display: block; padding: 14px 2px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 500; font-size: 17px; }
.drawer-list .sub-menu { list-style: none; padding-inline-start: 14px; margin: 0; }
.drawer-list .sub-menu a { font-size: 15px; color: var(--ink-2); padding-block: 11px; }
.drawer-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 16px var(--gutter); border-top: 1px solid var(--line); }
.drawer-foot > :first-child { grid-column: 1 / -1; }
.drawer-foot .btn { padding-inline: 12px; }

/* ---------- Home: hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: #2a2420; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 14, 12, .9) 0%, rgba(18, 14, 12, .6) 48%, rgba(18, 14, 12, .12) 78%); }
.hero-inner { position: relative; z-index: 1; min-height: 540px; min-height: min(78svh, 660px); display: flex; align-items: flex-end; padding-block: 36px 32px; }
.hero-text { max-width: 560px; min-width: 0; }
.hero-title { font-size: clamp(46px, 14vw, 92px); font-weight: 700; line-height: 1.04; margin-bottom: 16px; text-shadow: 0 2px 22px rgba(0, 0, 0, .25); }
.hero-title span { display: block; }
.hero-title .is-ink { color: var(--accent-light); }
.hero p { font-size: 16px; color: rgba(255, 255, 255, .92); max-width: 460px; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn { flex: 1 1 140px; }
.eyebrow { display: inline-block; font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.eyebrow.light { color: #dfe6ff; }

/* Perks strip */
.perks { border-bottom: 1px solid var(--line); background: var(--card); }
.perks-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-block: 14px; scrollbar-width: none; }
.perks-row::-webkit-scrollbar { display: none; }
.perk { position: relative; flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--paper); }
.perk .icon { width: 22px; height: 22px; color: var(--accent); }
.perk span { display: grid; line-height: 1.4; font-size: 12px; color: var(--muted); white-space: nowrap; }
.perk strong { font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--ink); }

/* Sections */
.section { padding-block: 40px; }
.section-tight { padding-bottom: 8px; }
.section-follow { padding-top: 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head > div { min-width: 0; }
.section-head h2 { font-size: 22px; margin: 0; }
.section-head .eyebrow { margin-bottom: 4px; }
.section-lead { color: var(--ink-2); max-width: 720px; margin: -4px 0 20px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--ink); }
.link-more .icon { width: 18px; height: 18px; }
[dir="ltr"] .link-more .icon { transform: scaleX(-1); }

/* Departments rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 38%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 6px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.collection { position: relative; scroll-snap-align: start; display: grid; gap: 8px; text-align: center; color: var(--ink); min-width: 0; }
.collection-img { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.collection-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.collection-img .brand-mark { width: 44px; height: 44px; }
.collection:hover .collection-img img { transform: scale(1.05); }
.collection-name { font-family: var(--display); font-weight: 600; font-size: 14.5px; line-height: 1.4; }

/* Banner */
.banner { padding-block: 8px 0; }
.banner-card { position: relative; border-radius: 18px; overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; background: #3b332d; color: #fff; }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.banner-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(22, 18, 15, .9) 0%, rgba(22, 18, 15, .55) 55%, rgba(22, 18, 15, .15) 100%); }
.banner-text { position: relative; z-index: 2; padding: 24px; max-width: 540px; min-width: 0; }
.banner-text h2 { font-size: clamp(24px, 6vw, 40px); margin-bottom: 10px; }
.banner-text p { color: rgba(255, 255, 255, .9); margin-bottom: 18px; }

/* Files: the three steps */
.section-digital { background: var(--card); border-block: 1px solid var(--line); margin-top: 40px; }
.steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; counter-reset: none; }
.steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-weight: 500; font-size: 14.5px; min-width: 0; }
.step-num { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 700; font-size: 15px; }

/* Story */
.story { background: var(--sand); padding-block: 44px; margin-top: 16px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; }
.story-img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 18px; }
.story-text h2 { font-size: clamp(24px, 6vw, 36px); }
.story-text p { color: var(--ink-2); max-width: 540px; }

/* Demo CTA */
.cta-demo { background: var(--ink); color: #fff; padding-block: 40px; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; }
.cta-inner h2 { font-size: 24px; }
.cta-inner p { color: #ddd3c8; margin: 0; max-width: 640px; }
.cta-demo .btn-light { color: var(--ink); }

/* ---------- Product grid (WooCommerce) ---------- */
.woocommerce ul.products, .woocommerce-page ul.products { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 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; text-align: start; color: var(--ink); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; 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(--radius); margin: 0 0 10px; background: var(--card); transition: opacity .3s; }
.woocommerce ul.products li.product:hover a img { opacity: .92; }
.card-cat { display: block; font-size: 12px; color: var(--muted); margin-bottom: 1px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font); font-size: 14.5px; font-weight: 500; line-height: 1.5; padding: 0; margin: 0 0 4px; color: var(--ink); }
.woocommerce ul.products li.product .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; color: var(--ink); font-weight: 600; font-size: 15px; margin: 0; }
.woocommerce ul.products li.product .price del { color: var(--muted); font-weight: 400; font-size: 13px; opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--sale); }
.price-unit { font-size: .82em; font-weight: 500; color: var(--muted); }
.card-badges { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; 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: 3px 9px; line-height: 1.6; border-radius: 999px;
	background: var(--sale); color: #fff; font-size: 12px; font-weight: 700; font-family: var(--font); direction: ltr;
}
.kind-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.kind-badge .icon { width: 14px; height: 14px; }
.kind-badge.is-digital { background: var(--accent); color: #fff; }
.kind-badge.is-service { background: #fff; color: var(--ink); box-shadow: 0 1px 6px rgba(31, 26, 23, .14); }
.quick-add {
	position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
	background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 2px 10px rgba(31, 26, 23, .14); transition: background .2s, color .2s, transform .15s, opacity .2s;
}
.quick-add .icon { width: 19px; height: 19px; }
.quick-add:hover { background: var(--ink); color: #fff; }
.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; }
[dir="ltr"] .quick-add.is-link .icon-arrow { transform: scaleX(-1); }
.woocommerce ul.products li.product a.added_to_cart { display: none; }
.woocommerce .star-rating { display: none; }
.grid-3 ul.products li.product a img { aspect-ratio: 4 / 3; }

/* ---------- Shop page ---------- */
.shop-wrap { padding-block: 14px 56px; }
.woocommerce-products-header { margin-bottom: 6px; }
.woocommerce-products-header__title.page-title { font-size: clamp(26px, 7vw, 38px); margin: 4px 0; }
.term-description { color: var(--ink-2); font-size: 15px; max-width: 760px; }
.breadcrumb, .woocommerce .woocommerce-breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.breadcrumb a, .woocommerce .woocommerce-breadcrumb a { color: var(--ink-2); }
.breadcrumb .sep { margin-inline: 6px; opacity: .6; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 6px; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.woocommerce .woocommerce-result-count { margin: 0 0 14px; font-size: 13px; 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: 44px; padding: 0 16px; padding-inline-end: 40px; border: 1px solid var(--line); border-radius: 999px;
	background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a423c' 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: 14px; cursor: pointer; width: 100%;
}
[dir="ltr"] .woocommerce .woocommerce-ordering select { background-position: right 14px center; }
.woocommerce nav.woocommerce-pagination { margin-top: 32px; }
.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: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--card); padding: 0 10px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.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: #bfe3cf !important; background: #f1faf5 !important; }
.woocommerce-error { border-color: #f3c2bd !important; background: #fff5f4 !important; }
.woocommerce-info::before, .woocommerce-message::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button, .woocommerce-info .button { float: none !important; min-height: 40px; margin-inline-start: 12px; }

/* ---------- Single product ---------- */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 4px; }
.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; margin-inline: calc(var(--gutter) * -1) !important; }
.woocommerce div.product div.images img { background: var(--card); }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 8px; margin-top: 8px; padding-inline: var(--gutter); }
.woocommerce div.product div.images .flex-control-thumbs li { width: 64px !important; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: 8px; 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: 12px; background: rgba(255, 255, 255, .95); border-radius: 999px; }
[dir="rtl"] .woocommerce div.product div.images .woocommerce-product-gallery__trigger { left: 12px; right: auto; }
.woocommerce div.product span.onsale { position: absolute; top: 12px; z-index: 3; margin: 0; min-width: 0; min-height: 0; padding: 3px 10px; line-height: 1.6; border-radius: 999px; background: var(--sale); color: #fff; font-size: 13px; font-weight: 700; direction: ltr; }
[dir="rtl"] .woocommerce div.product span.onsale { right: 12px; left: auto; }
[dir="ltr"] .woocommerce div.product span.onsale { left: 12px; right: auto; }
.summary-kicker { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.summary-kicker .icon { width: 16px; height: 16px; }
.summary-kicker.is-digital { color: var(--accent); }
.summary-kicker.is-service { color: var(--ink-2); }
.woocommerce div.product .product_title { font-size: clamp(22px, 6vw, 32px); margin-bottom: 6px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-family: var(--display); font-size: 22px; font-weight: 600; display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; margin-bottom: 10px; }
.woocommerce div.product p.price del, .woocommerce div.product span.price del { color: var(--muted); font-size: 16px; font-weight: 400; opacity: 1; }
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins { color: var(--sale); text-decoration: none; }
.woocommerce-product-details__short-description { color: var(--ink-2); font-size: 15px; }
.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; }
.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-weight: 600; font-size: 14px; }
.woocommerce div.product form.cart .variations td.value { position: relative; margin: 8px 0 4px; }
.woocommerce div.product form.cart .variations select { min-height: 44px; border: 1px solid var(--line); border-radius: 999px; 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: 8px; min-width: 52px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s; }
.option-btn:hover { border-color: var(--ink); }
.option-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.option-btn:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.swatch-dot { width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--dot, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.option-btn[aria-pressed="true"] .swatch-dot { box-shadow: 0 0 0 2px #fff; }
form.cart.needs-option .option-buttons { animation: midad-shake .4s; }
form.cart.needs-option .variations label { color: var(--sale); }
@keyframes midad-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.woocommerce div.product form.cart .reset_variations { font-size: 13px; 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; }
.qty-label { flex: 0 0 100%; font-weight: 600; font-size: 14px; margin-bottom: -4px; }
.woocommerce .quantity .qty { width: 88px; min-height: 52px; border: 1px solid var(--line); border-radius: 999px; text-align: center; background: var(--card); font-weight: 600; }
.woocommerce div.product form.cart .button { flex: 1 1 180px; min-height: 52px; font-size: 16px; }
.promise { list-style: none; padding: 14px 16px; margin: 0 0 18px; display: grid; gap: 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.promise li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; }
.promise li span { min-width: 0; }
.promise .icon { color: var(--accent); width: 21px; height: 21px; margin-top: 1px; }
.promise.is-digital { border-color: #c9d4f3; background: var(--accent-soft); }
.send-files { margin: 0 0 18px; padding: 16px; border-radius: var(--radius); background: var(--sand); font-size: 14.5px; }
.send-files p { margin: 0 0 10px; color: var(--ink-2); }
.send-files .send-files-title { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.send-files-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.send-files-actions .btn { min-width: 0; max-width: 100%; }
.send-files-actions .btn span { overflow: hidden; text-overflow: ellipsis; }
.product_meta { font-size: 13px; color: var(--muted); }
.product_meta a { color: var(--ink-2); font-weight: 500; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 8px; min-width: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 20px; padding: 0; margin: 0 0 14px; border-bottom: 1px solid var(--line); 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-weight: 600; font-size: 15px; 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(--accent); }
.woocommerce div.product .woocommerce-tabs .panel { padding: 0; margin: 0; background: none; border: 0; max-width: 820px; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce div.product .woocommerce-tabs .panel ul, .woocommerce div.product .woocommerce-tabs .panel ol { padding-inline-start: 1.3em; }
.woocommerce table.shop_attributes { border: 0; margin: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--line); background: transparent !important; padding: 10px 0; font-style: normal; text-align: start; }
.woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; margin-top: 20px; min-width: 0; }
.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { font-size: 22px; 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); border-radius: 10px; background: var(--card); padding: 12px 14px; min-height: 48px; font-size: 16px; }
.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(255, 253, 249, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(31, 26, 23, .08); }
.buybar-info { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.buybar-name { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-price { font-weight: 700; font-size: 15px; }
.buybar-price del { color: var(--muted); font-weight: 400; font-size: 12px; }
.buybar-price ins { text-decoration: none; color: var(--sale); }
.buybar .btn { flex: 0 0 auto; min-height: 46px; padding: 0 22px; }
body.single-product .tabbar { display: none; }
body.single-product { padding-bottom: 80px; }

/* 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: 420px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 500; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.toast.is-on { opacity: 1; transform: none; }
.toast a { color: var(--accent-light); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
body.single-product .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }

/* ---------- Pages, cart, checkout, account ---------- */
.page-wrap { padding-block: 20px 56px; }
.page-wrap.narrow { max-width: 820px; }
.page-head h1 { font-size: clamp(26px, 7vw, 38px); margin-top: 4px; }
.page-lead { color: var(--ink-2); max-width: 680px; }
.entry { font-size: 16px; min-width: 0; }
.entry > :first-child { margin-top: 0; }
.entry h2 { font-size: 21px; margin-top: 1.4em; }
.entry h3 { font-size: 18px; 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(--accent); text-decoration: underline; text-underline-offset: 3px; }
.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(--accent); }
.entry ul.products { padding: 0; }
.entry ul.products li { margin-bottom: 0; }
.entry ul.products a { color: var(--ink); text-decoration: none; }
.entry ul.products .quick-add:hover, .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: 14px; }
.credits-table small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.store-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.store-note span { min-width: 0; }
.store-note .icon { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { background: var(--accent) !important; color: #fff !important; border-radius: 999px !important; min-height: 52px; font-family: var(--display); font-weight: 600; }
.wc-block-components-button:not(.is-link):hover { background: var(--accent-dark) !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: 10px !important; border-color: var(--line) !important; }
.wc-block-components-product-name { 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: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); white-space: nowrap; font-size: 14px; text-decoration: none; color: inherit; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--ink); color: #fff; border-color: var(--ink); }
.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 { display: grid; gap: 10px; margin: 0 0 22px; }
.order-next p { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid #c9d4f3; }
.order-next p span { min-width: 0; }
.order-next .icon { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.order-next a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.empty-state { text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; }
.empty-state .big { font-family: var(--display); font-size: 72px; font-weight: 700; color: var(--accent); line-height: 1; }
.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; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.contact-card { padding: 22px; border-radius: 18px; background: var(--ink); color: #eee6dc; min-width: 0; }
.contact-card .brand { color: #fff; margin-bottom: 14px; }
.contact-card .brand-mark { color: var(--accent-light); }
.contact-card ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.contact-card li { display: flex; gap: 12px; align-items: flex-start; }
.contact-card li > span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.contact-card strong { font-family: var(--display); font-weight: 600; font-size: 13px; color: #b9ada0; }
.contact-card .icon { color: var(--accent-light); width: 22px; height: 22px; margin-top: 2px; }
.contact-card a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-card .btn-accent { text-decoration: none; }
.contact-card .contact-hint { margin: 14px 0 0; font-size: 13.5px; color: #cfc4b8; }
.contact-form { padding: 22px; border: 1px solid var(--line); border-radius: 18px; 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: 22px !important; }
.swst-contact .swst-intro { color: var(--muted) !important; }
.swst-contact input:not([type=hidden]), .swst-contact textarea { background: #fff !important; border-color: var(--line) !important; }
.swst-contact .swst-submit { font-family: var(--display) !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(--footer); color: #d9d0c6; padding-top: 40px; font-size: 14px; }
.site-footer a { color: #d9d0c6; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; justify-self: start; }
.site-footer .brand-mark { color: var(--accent-light); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 20px; }
.footer-brand { padding-bottom: 20px; min-width: 0; }
.footer-brand p { margin: 12px 0 16px; color: #b3a79b; max-width: 380px; }
.footer-col { border-top: 1px solid rgba(255, 255, 255, .1); min-width: 0; }
.footer-col summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 4px 0; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 15px; color: #fff; }
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col summary::after { content: "+"; font-size: 20px; font-weight: 400; color: #b3a79b; }
.footer-col[open] summary::after { content: "–"; }
.footer-col ul { list-style: none; margin: 0; padding: 0 0 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.footer-col li { color: #b3a79b; min-width: 0; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-light); }
.socials { display: flex; gap: 8px; }
.socials a { position: relative; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.socials a:hover { background: var(--accent); }
.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(255, 255, 255, .1); padding-block: 16px; font-size: 12.5px; color: #a3978b; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.site-footer .footer-legal a { color: #cfc4b8; }
.pay-badge { display: inline-flex; align-items: center; gap: 6px; }
.pay-badge .icon { width: 18px; height: 18px; }

/* ---------- 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: rgba(255, 253, 249, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; padding: 8px 0 6px; font-size: 11px; font-weight: 500; color: var(--muted); background: none; border: 0; cursor: pointer; min-width: 0; }
.tabbar .icon { width: 22px; height: 22px; }
.tabbar [aria-current="page"] { color: var(--ink); }
.tabbar [aria-current="page"] .icon { color: var(--accent); }
.tab-icon { position: relative; display: inline-grid; }
.tabbar .midad-cart-count { top: -6px; inset-inline-end: -10px; }

/* ---------- Larger screens ---------- */
@media (max-width: 599px) {
	.card-badges { top: 8px; inset-inline-start: 8px; max-width: calc(100% - 64px); }
	.kind-badge .icon { display: none; }
	.kind-badge { padding: 2px 8px; font-size: 11px; white-space: normal; line-height: 1.35; }
	.woocommerce .card-badges .onsale { font-size: 11px; padding: 2px 8px; }
	.demo-bar { font-size: 12px; }
	.demo-bar-inner { flex-wrap: wrap; }
}

@media (min-width: 600px) {
	:root { --gutter: 24px; }
	.rail { grid-auto-columns: 24%; }
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; }
	.hero-actions .btn { flex: 0 0 auto; }
	.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; }
	.banner-card { min-height: 380px; align-items: center; }
	.banner-card::before { background: linear-gradient(to left, rgba(22, 18, 15, .88) 0%, rgba(22, 18, 15, .6) 45%, rgba(22, 18, 15, .1) 80%); }
	[dir="ltr"] .banner-card::before { background: linear-gradient(to right, rgba(22, 18, 15, .88) 0%, rgba(22, 18, 15, .6) 45%, rgba(22, 18, 15, .1) 80%); }
	.banner-text { padding: 40px; }
	.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.woocommerce div.product div.images { margin-inline: 0 !important; }
	.woocommerce div.product div.images img { border-radius: 16px; }
	.woocommerce div.product div.images .flex-control-thumbs { padding-inline: 0; }
}

@media (min-width: 760px) {
	.hero::after { background: linear-gradient(to left, rgba(18, 14, 12, .86) 0%, rgba(18, 14, 12, .62) 42%, rgba(18, 14, 12, .12) 78%); }
	[dir="ltr"] .hero::after { background: linear-gradient(to right, rgba(18, 14, 12, .86) 0%, rgba(18, 14, 12, .62) 42%, rgba(18, 14, 12, .12) 78%); }
	.hero-img { object-position: center; }
	.hero-inner { min-height: min(82vh, 700px); align-items: center; padding-block: 64px; }
	.contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 28px; }
	.contact-card, .contact-form { padding: 30px; }
}

@media (min-width: 960px) {
	.section { padding-block: 64px; }
	.section-tight { padding-bottom: 16px; }
	.section-follow { padding-top: 16px; }
	.section-digital { margin-top: 64px; }
	.section-head { margin-bottom: 22px; }
	.section-head h2 { font-size: 30px; }
	.perks-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; overflow: visible; padding-block: 18px; }
	.perk { justify-content: center; background: transparent; }
	.rail { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; gap: 16px; }
	.collection-name { font-size: 16px; }
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; }
	.grid-3 .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.banner-card { min-height: 440px; }
	.banner-text { padding: 56px; }
	.story { padding-block: 72px; }
	.story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
	.cta-inner { grid-template-columns: minmax(0, 1fr) auto; }
	.woocommerce div.product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 12px; }
	.woocommerce div.product div.summary { position: sticky; top: calc(var(--header-h) + 24px); }
	.footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.3fr); gap: 40px; padding-bottom: 40px; }
	.footer-col { border: 0; }
	.footer-col summary { pointer-events: none; min-height: 0; padding: 0 0 12px; }
	.footer-col summary::after { display: none; }
	.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
	.woocommerce-account .woocommerce-MyAccount-navigation ul { display: grid; }
	.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
}

@media (min-width: 960px) and (hover: hover) {
	.quick-add { opacity: 0; transform: translateY(-4px); }
	.woocommerce ul.products li.product:hover .quick-add, .quick-add:focus-visible, .quick-add.added, .quick-add.loading { opacity: 1; transform: none; }
}

/* The header becomes the desktop one when the menu fits. */
@media (min-width: 1024px) {
	:root { --header-h: 72px; }
	body, body.single-product { padding-bottom: 0; }
	.only-mobile { display: none !important; }
	.main-nav.only-desktop { display: block !important; }
	.icon-btn.only-desktop { display: inline-grid !important; }
	.admin-bar .site-header { top: 32px; }
	.header-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; }
	.brand { justify-self: start; }
	.main-nav { justify-self: center; }
	.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: 14.5px; }
	.main-nav .menu-item-has-children > a { padding-inline-end: 22px; }
	.main-nav .menu-item-has-children > a::before { inset-inline-end: 8px; }
	.main-nav .nav-list > li > a::after { inset-inline: 10px; }
}

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

@media (max-width: 380px) {
	.brand-name { font-size: 22px; }
	.brand-mark { width: 26px; height: 26px; }
	html[lang^="en"] .brand-name { font-size: 17px; letter-spacing: .08em; }
}

/* 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; }
	.quick-add { width: 44px; height: 44px; top: 8px; inset-inline-end: 8px; }
	.demo-bar-close { width: 44px; height: 44px; }
	.footer-col li a, .footer-legal a, .demo-bar a, .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
	.footer-col ul { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.ticker { overflow-x: auto; scrollbar-width: none; }
	.ticker-group[aria-hidden="true"] { display: none; }
	.collection:hover .collection-img img { transform: none; }
}

/* English pages: the headline and the search placeholder fit. */
html[lang^="en"] .hero-title { font-size: clamp(42px, 12vw, 88px); }
@media (min-width: 760px) {
	html[lang^="en"] .hero-text { max-width: 620px; }
}

/* ---------- Visitor stories ---------- */
.stories-sec { margin: 18px 0 34px; }
.stories-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.story-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.story-card h3 { margin: 0 0 6px; font-size: 18px; }
.story-card h3 a { color: inherit; text-decoration: none; }
.story-card h3 a:hover { color: var(--accent); }
.story-card .story-meta { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.story-card .story-text { color: var(--ink-2); }
.story-card .story-text p { margin: 0 0 10px; }
.story-empty { text-align: center; padding: 34px 20px; }
.story-empty .btn { margin-top: 14px; }
.story-note { padding: 12px 16px; border-radius: 12px; margin: 0 0 18px; border: 1px solid var(--line); }
.story-note.is-ok { border-color: #b7d6b7; background: #eef6ee; }
.story-note.is-err { border-color: #e2b8b0; background: #fbf0ee; }
.story-form-wrap { margin: 26px 0 10px; }
.story-form-wrap h2 { margin-top: 0; }
.story-hint { color: var(--muted); margin-top: -4px; }
.story-field { display: grid; gap: 6px; margin: 0 0 14px; }
.story-field label { font-family: var(--display); font-weight: 600; font-size: 14px; }
.story-field input, .story-field textarea { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px 14px; min-height: 48px; font-size: 16px; width: 100%; }
.story-field textarea { min-height: 190px; resize: vertical; }
.story-field input:focus, .story-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.story-hp { 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; }
.stories-pages { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.stories-pages .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--card); color: var(--ink); text-decoration: none; }
.stories-pages .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (min-width: 700px) {
	.stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width: 1000px) {
	.stories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}