/* ==========================================================================
   MDT Store — main stylesheet
   Calm palette from the MDT ERP design tokens. Direction-agnostic: every
   horizontal rule uses CSS logical properties, so RTL (Arabic) and LTR
   (English) share one stylesheet.
   ========================================================================== */

:root {
	--mdt-primary: #007880;
	--mdt-primary-soft: #E0FAF8;
	--mdt-accent: #F47B20;
	--mdt-dark: #0D2137;

	--mdt-primary-strong: color-mix(in srgb, var(--mdt-primary) 80%, #000);
	--mdt-primary-tint: color-mix(in srgb, var(--mdt-primary) 10%, #fff);
	--mdt-text: var(--mdt-dark);
	--mdt-muted: #51606F;
	--mdt-line: #E2E9ED;
	--mdt-bg: #F6F9FA;
	--mdt-surface: #FFFFFF;
	--mdt-success: #127A4E;
	--mdt-danger: #B42318;

	--mdt-radius-sm: 10px;
	--mdt-radius: 14px;
	--mdt-radius-lg: 22px;
	--mdt-shadow-sm: 0 1px 2px rgba(13, 33, 55, .06);
	--mdt-shadow: 0 10px 30px -12px rgba(13, 33, 55, .16);
	--mdt-shadow-lg: 0 28px 60px -24px rgba(13, 33, 55, .30);

	--mdt-font: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--mdt-container: 1280px;
	--mdt-gutter: clamp(16px, 4vw, 32px);
	--mdt-ease: cubic-bezier(.22, .61, .36, 1);
	--mdt-bottom-nav: 0px;
}

:lang(ar) {
	--mdt-font: "IBM Plex Sans Arabic", "Inter", system-ui, Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	font-family: var(--mdt-font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--mdt-text);
	background: var(--mdt-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	padding-bottom: var(--mdt-bottom-nav);
}

body.mdt-lock { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
svg.mdt-icon { flex: none; display: inline-block; vertical-align: middle; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	line-height: 1.3;
	font-weight: 700;
	color: var(--mdt-dark);
	letter-spacing: -.01em;
}
:lang(ar) :is(h1, h2, h3, h4, h5, h6) { letter-spacing: 0; line-height: 1.45; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a {
	color: var(--mdt-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
	transition: color .2s var(--mdt-ease);
}
a:hover { color: var(--mdt-primary-strong); }

:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--mdt-primary) 55%, #fff);
	outline-offset: 2px;
	border-radius: 6px;
}

::selection { background: var(--mdt-primary-soft); color: var(--mdt-dark); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	inset-block-start: 12px;
	inset-inline-start: 12px;
	z-index: 1000;
	width: auto; height: auto;
	clip: auto;
	padding: 12px 18px;
	background: var(--mdt-dark);
	color: #fff;
	border-radius: var(--mdt-radius-sm);
}

.mdt-container {
	width: 100%;
	max-width: calc(var(--mdt-container) + var(--mdt-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--mdt-gutter);
}

[dir="rtl"] .mdt-flip-rtl { transform: scaleX(-1); }
[dir="ltr"] .mdt-flip-ltr { transform: scaleX(-1); }

[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.mdt-btn,
.button,
button.button,
input[type="submit"],
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 46px;
	padding: .7em 1.4em;
	border: 1px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	background: var(--mdt-primary);
	color: #fff;
	transition: background-color .2s var(--mdt-ease), color .2s var(--mdt-ease), box-shadow .2s var(--mdt-ease), transform .2s var(--mdt-ease);
}
.mdt-btn:hover,
.button:hover,
input[type="submit"]:hover,
.wp-element-button:hover {
	background: var(--mdt-primary-strong);
	color: #fff;
	box-shadow: 0 8px 20px -10px var(--mdt-primary);
}
.mdt-btn:active { transform: translateY(1px); }
.mdt-btn-lg { min-height: 54px; padding-inline: 1.8em; font-size: 1rem; }
.mdt-btn-block { width: 100%; }
.mdt-btn-ghost {
	background: transparent;
	color: var(--mdt-dark);
	border-color: var(--mdt-line);
}
.mdt-btn-ghost:hover { background: var(--mdt-surface); color: var(--mdt-primary); border-color: var(--mdt-primary); box-shadow: none; }
.mdt-btn-light { background: #fff; color: var(--mdt-dark); }
.mdt-btn-light:hover { background: var(--mdt-primary-soft); color: var(--mdt-dark); }
.button:disabled,
.button.disabled,
.mdt-btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

.mdt-icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--mdt-dark);
	cursor: pointer;
	transition: background-color .2s var(--mdt-ease), color .2s var(--mdt-ease);
}
.mdt-icon-btn:hover { background: var(--mdt-primary-tint); color: var(--mdt-primary); }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="date"], select, textarea,
.select2-container--default .select2-selection--single {
	width: 100%;
	min-height: 48px;
	padding: .7em 1em;
	font: inherit;
	font-size: 1rem;
	color: var(--mdt-text);
	background: var(--mdt-surface);
	border: 1px solid var(--mdt-line);
	border-radius: var(--mdt-radius-sm);
	transition: border-color .2s var(--mdt-ease), box-shadow .2s var(--mdt-ease);
	appearance: none;
}
textarea { min-height: 120px; resize: vertical; }
select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2351606F' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1em center;
	padding-inline-end: 2.6em;
}
[dir="rtl"] select { background-position: left 1em center; }
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--mdt-primary);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--mdt-primary) 16%, transparent);
}
input[type="tel"], input[type="email"], input[type="url"] { direction: ltr; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { text-align: right; }
label { font-weight: 500; font-size: .95rem; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--mdt-primary); width: 1.1em; height: 1.1em; }

/* ---------- Top bar ---------- */
.mdt-topbar {
	background: var(--mdt-dark);
	color: rgba(255, 255, 255, .88);
	font-size: .85rem;
}
.mdt-topbar a { color: #fff; text-decoration: none; }
.mdt-topbar a:hover { color: var(--mdt-primary-soft); }
.mdt-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.mdt-topbar-text { display: flex; align-items: center; gap: 8px; margin: 0; }
.mdt-topbar-text svg { color: var(--mdt-primary-soft); }
.mdt-topbar-end { display: flex; align-items: center; gap: 20px; }
.mdt-topbar-phone { display: inline-flex; align-items: center; gap: 6px; }

.mdt-lang { display: inline-flex; align-items: center; gap: 10px; }
.mdt-lang a, .mdt-lang span { text-decoration: none; font-weight: 500; }
.mdt-lang .is-current { opacity: .6; }

/* ---------- Header ---------- */
.mdt-header {
	position: relative;
	z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--mdt-line);
	transition: box-shadow .25s var(--mdt-ease);
}
.mdt-sticky-header .mdt-header { position: sticky; top: 0; }
.admin-bar.mdt-sticky-header .mdt-header { top: 32px; }
.mdt-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(13, 33, 55, .35); }

.mdt-header-inner {
	display: flex;
	align-items: center;
	gap: clamp(12px, 2vw, 28px);
	min-height: 76px;
}
.mdt-brand { flex: none; }
.mdt-brand img, .mdt-drawer-head img, .mdt-footer-about img { max-height: 48px; width: auto; }
.mdt-logo-text {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--mdt-dark);
	text-decoration: none;
	letter-spacing: -.02em;
}
.mdt-header-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.mdt-menu-toggle, .mdt-search-toggle { display: none; }

.mdt-cart-count {
	position: absolute;
	inset-block-start: 2px;
	inset-inline-end: 0;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--mdt-accent);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	border: 2px solid #fff;
	box-sizing: content-box;
}
.mdt-cart-count.is-empty { display: none; }

/* ---------- Main navigation ---------- */
.mdt-nav { border-top: 1px solid var(--mdt-line); }
.mdt-menu, .mdt-nav .menu, .mdt-nav > .mdt-container > div > ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mdt-nav li { position: relative; list-style: none; }
.mdt-nav a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 14px 14px;
	color: var(--mdt-dark);
	font-weight: 500;
	font-size: .95rem;
	text-decoration: none;
	border-radius: var(--mdt-radius-sm);
}
.mdt-nav a:hover,
.mdt-nav .current-menu-item > a,
.mdt-nav .current-menu-ancestor > a { color: var(--mdt-primary); }
.mdt-nav .menu-item-has-children > a::after {
	content: "";
	width: 7px; height: 7px;
	border-inline-end: 1.6px solid currentColor;
	border-block-end: 1.6px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	opacity: .6;
}
.mdt-nav .sub-menu {
	position: absolute;
	inset-block-start: 100%;
	inset-inline-start: 0;
	z-index: 60;
	min-width: 240px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--mdt-surface);
	border: 1px solid var(--mdt-line);
	border-radius: var(--mdt-radius);
	box-shadow: var(--mdt-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s var(--mdt-ease), transform .2s var(--mdt-ease), visibility .2s;
}
.mdt-nav .sub-menu .sub-menu { inset-block-start: -8px; inset-inline-start: 100%; }
.mdt-nav li:hover > .sub-menu,
.mdt-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mdt-nav .sub-menu a { padding: 10px 12px; }
.mdt-nav .sub-menu a:hover { background: var(--mdt-primary-tint); }

/* ---------- Search ---------- */
.mdt-search {
	position: relative;
	flex: 1 1 auto;
	max-width: 560px;
	display: flex;
	align-items: center;
}
.mdt-search input[type="search"] {
	min-height: 48px;
	padding-inline: 46px 96px;
	border-radius: 999px;
	background: var(--mdt-bg);
	border-color: transparent;
}
.mdt-search input[type="search"]:focus { background: #fff; border-color: var(--mdt-primary); }
.mdt-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.mdt-search-icon { position: absolute; inset-inline-start: 16px; color: var(--mdt-muted); pointer-events: none; }
.mdt-search-submit {
	position: absolute;
	inset-inline-end: 5px;
	min-height: 38px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--mdt-primary);
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: .9rem;
	cursor: pointer;
}
.mdt-search-submit:hover { background: var(--mdt-primary-strong); }
.mdt-search-results {
	position: absolute;
	inset-block-start: calc(100% + 8px);
	inset-inline: 0;
	z-index: 70;
	max-height: min(70vh, 520px);
	overflow-y: auto;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--mdt-line);
	border-radius: var(--mdt-radius);
	box-shadow: var(--mdt-shadow-lg);
}
.mdt-search-results a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: var(--mdt-radius-sm);
	color: var(--mdt-dark);
	text-decoration: none;
}
.mdt-search-results a:hover, .mdt-search-results a[aria-selected="true"] { background: var(--mdt-primary-tint); }
.mdt-search-results img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: var(--mdt-bg); }
.mdt-search-results .mdt-sr-title { display: block; font-weight: 600; font-size: .95rem; line-height: 1.4; }
.mdt-search-results .mdt-sr-price { font-size: .88rem; color: var(--mdt-primary); }
.mdt-search-results .mdt-sr-price del { color: var(--mdt-muted); margin-inline-end: 6px; }
.mdt-search-results .mdt-sr-all { justify-content: center; font-weight: 600; color: var(--mdt-primary); border-top: 1px solid var(--mdt-line); border-radius: 0; margin-top: 4px; }
.mdt-search-results .mdt-sr-empty { padding: 14px; margin: 0; color: var(--mdt-muted); text-align: center; }

/* ---------- Drawers ---------- */
.mdt-backdrop {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(13, 33, 55, .45);
	backdrop-filter: blur(2px);
	animation: mdt-fade .2s var(--mdt-ease);
}
.mdt-drawer {
	position: fixed;
	z-index: 100;
	display: flex;
	flex-direction: column;
	background: var(--mdt-surface);
	box-shadow: var(--mdt-shadow-lg);
}
.mdt-drawer:focus { outline: none; }
.mdt-drawer-start, .mdt-drawer-end {
	inset-block: 0;
	width: min(400px, 92vw);
}
.mdt-drawer-start { inset-inline-start: 0; animation: mdt-slide-start .3s var(--mdt-ease); }
.mdt-drawer-end { inset-inline-end: 0; animation: mdt-slide-end .3s var(--mdt-ease); }
.mdt-drawer-top { inset-inline: 0; inset-block-start: 0; padding-block: 14px; animation: mdt-slide-top .25s var(--mdt-ease); }
.mdt-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--mdt-line);
	font-size: 1.05rem;
}
.mdt-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 18px; overscroll-behavior: contain; }
.mdt-search-panel-inner { display: flex; align-items: center; gap: 10px; }
.mdt-search-panel-inner .mdt-search { max-width: none; }

.mdt-mobile-menu, .mdt-mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.mdt-mobile-menu a {
	display: block;
	padding: 13px 4px;
	color: var(--mdt-dark);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid var(--mdt-line);
}
.mdt-mobile-menu .sub-menu a { padding-inline-start: 18px; font-weight: 400; color: var(--mdt-muted); }
.mdt-drawer-extra { display: grid; gap: 18px; margin-top: 22px; }

@keyframes mdt-fade { from { opacity: 0; } }
@keyframes mdt-slide-start { from { transform: translateX(-100%); } }
@keyframes mdt-slide-end { from { transform: translateX(100%); } }
[dir="rtl"] .mdt-drawer-start { animation-name: mdt-slide-end; }
[dir="rtl"] .mdt-drawer-end { animation-name: mdt-slide-start; }
@keyframes mdt-slide-top { from { transform: translateY(-100%); } }

/* ---------- Sections ---------- */
.mdt-section { padding-block: clamp(36px, 6vw, 72px); }
.mdt-section-tight { padding-block: 0 clamp(24px, 4vw, 40px); }
.mdt-section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: clamp(18px, 3vw, 28px);
}
.mdt-section-title { margin: 0; }
.mdt-link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mdt-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--mdt-primary-soft);
	color: var(--mdt-primary-strong);
	font-size: .85rem;
	font-weight: 600;
}

/* ---------- Hero ---------- */
.mdt-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(40px, 7vw, 96px);
	background:
		radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--mdt-primary) 14%, transparent) 0%, transparent 60%),
		radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, var(--mdt-accent) 9%, transparent) 0%, transparent 60%),
		linear-gradient(180deg, #fff 0%, var(--mdt-bg) 100%);
}
.mdt-hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(28px, 5vw, 64px); }
.mdt-hero-title { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); line-height: 1.15; margin-bottom: 18px; }
:lang(ar) .mdt-hero-title { line-height: 1.35; }
.mdt-hero-text { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--mdt-muted); max-width: 54ch; margin-bottom: 28px; }
.mdt-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mdt-hero-media { position: relative; }
.mdt-hero-img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: var(--mdt-radius-lg);
	box-shadow: var(--mdt-shadow-lg);
}
.mdt-hero-art { position: relative; aspect-ratio: 5 / 4; }
.mdt-hero-art span { position: absolute; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; animation: mdt-float 12s ease-in-out infinite; }
.mdt-hero-art span:nth-child(1) { inset: 6% 16% 22% 8%; background: linear-gradient(135deg, var(--mdt-primary), color-mix(in srgb, var(--mdt-primary) 40%, var(--mdt-dark))); opacity: .9; }
.mdt-hero-art span:nth-child(2) { inset: 48% 4% 4% 46%; background: var(--mdt-primary-soft); animation-delay: -4s; }
.mdt-hero-art span:nth-child(3) { inset: 4% 4% 66% 64%; background: color-mix(in srgb, var(--mdt-accent) 75%, #fff); animation-delay: -8s; }
@keyframes mdt-float { 50% { transform: translate(0, -10px) rotate(3deg); } }

/* ---------- Feature list ---------- */
.mdt-features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mdt-feature {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	background: var(--mdt-surface);
	border: 1px solid var(--mdt-line);
	border-radius: var(--mdt-radius);
}
.mdt-feature-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--mdt-primary-soft);
	color: var(--mdt-primary-strong);
}
.mdt-feature-text { display: grid; line-height: 1.45; }
.mdt-feature-text strong { font-size: .98rem; }
.mdt-feature-text span { font-size: .86rem; color: var(--mdt-muted); }

/* ---------- Categories ---------- */
.mdt-categories {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mdt-category {
	display: grid;
	gap: 4px;
	padding: 14px 14px 18px;
	height: 100%;
	background: var(--mdt-surface);
	border: 1px solid var(--mdt-line);
	border-radius: var(--mdt-radius-lg);
	color: var(--mdt-dark);
	text-decoration: none;
	text-align: center;
	transition: transform .3s var(--mdt-ease), box-shadow .3s var(--mdt-ease), border-color .3s var(--mdt-ease);
}
.mdt-category:hover { transform: translateY(-4px); box-shadow: var(--mdt-shadow); border-color: transparent; color: var(--mdt-dark); }
.mdt-category-media {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	margin-bottom: 10px;
	overflow: hidden;
	border-radius: var(--mdt-radius);
	background: var(--mdt-primary-tint);
	color: var(--mdt-primary);
}
.mdt-category-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--mdt-ease); }
.mdt-category:hover .mdt-category-media img { transform: scale(1.05); }
.mdt-category-name { font-weight: 600; }
.mdt-category-count { font-size: .85rem; color: var(--mdt-muted); }

/* ---------- Promo ---------- */
.mdt-promo {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: 24px;
	overflow: hidden;
	padding: clamp(28px, 5vw, 56px);
	border-radius: var(--mdt-radius-lg);
	background:
		radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--mdt-primary) 70%, transparent), transparent 70%),
		var(--mdt-dark);
	color: rgba(255, 255, 255, .86);
}
.mdt-promo.has-image { grid-template-columns: 1.2fr .8fr; }
.mdt-promo-title { color: #fff; }
.mdt-promo-copy { max-width: 60ch; }
.mdt-promo-media img { width: 100%; border-radius: var(--mdt-radius); aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Post cards ---------- */
.mdt-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mdt-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--mdt-surface);
	border: 1px solid var(--mdt-line);
	border-radius: var(--mdt-radius-lg);
	transition: transform .3s var(--mdt-ease), box-shadow .3s var(--mdt-ease);
}
.mdt-card:hover { transform: translateY(-3px); box-shadow: var(--mdt-shadow); }
.mdt-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mdt-primary-tint); }
.mdt-card-media img { width: 100%; height: 100%; object-fit: cover; }
.mdt-card-placeholder { display: grid; place-items: center; height: 100%; color: var(--mdt-primary); }
.mdt-card-body { padding: 18px 20px 22px; }
.mdt-card-title { font-size: 1.1rem; margin-bottom: 8px; }
.mdt-card-title a { color: var(--mdt-dark); text-decoration: none; }
.mdt-card-title a:hover { color: var(--mdt-primary); }
.mdt-card-excerpt { color: var(--mdt-muted); font-size: .95rem; margin: 0; }
.mdt-post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--mdt-muted); margin-bottom: 8px; }

/* ---------- Breadcrumbs & page header ---------- */
.mdt-breadcrumb { margin-block: 20px 8px; font-size: .88rem; color: var(--mdt-muted); }
.mdt-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mdt-breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.mdt-breadcrumb li + li::before { content: "/"; opacity: .45; }
.mdt-breadcrumb a { color: var(--mdt-muted); text-decoration: none; }
.mdt-breadcrumb a:hover { color: var(--mdt-primary); }

.mdt-page, .mdt-archive, .mdt-single, .mdt-404 { padding-bottom: clamp(40px, 6vw, 80px); }
.mdt-page-header { margin-block: 12px 28px; }
.mdt-page-title { margin: 0; }
.mdt-page-intro { margin-top: 10px; color: var(--mdt-muted); max-width: 70ch; }

/* ---------- Entry content ---------- */
.mdt-entry-narrow, .mdt-single .mdt-page-header, .mdt-single .post-navigation, .mdt-single .mdt-comments { max-width: 780px; margin-inline: auto; }
.mdt-page:not(.mdt-page-wide) .mdt-entry { max-width: 860px; }
.mdt-entry-media img { width: 100%; border-radius: var(--mdt-radius-lg); margin-bottom: 28px; }
.mdt-entry-content { font-size: 1.05rem; }
.mdt-entry-content > * + * { margin-top: 1.1em; }
.mdt-entry-content h2, .mdt-entry-content h3 { margin-top: 1.8em; }
.mdt-entry-content img { border-radius: var(--mdt-radius); }
.mdt-entry-content blockquote {
	margin-inline: 0;
	padding: 18px 22px;
	border-inline-start: 4px solid var(--mdt-primary);
	background: var(--mdt-primary-tint);
	border-radius: var(--mdt-radius-sm);
}
.mdt-entry-content table { width: 100%; border-collapse: collapse; }
.mdt-entry-content :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--mdt-line); text-align: start; }
.mdt-tags a { display: inline-block; margin: 4px; padding: 4px 12px; border-radius: 999px; background: var(--mdt-primary-tint); text-decoration: none; font-size: .85rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block: 36px; }
.post-navigation a { display: grid; padding: 16px; border: 1px solid var(--mdt-line); border-radius: var(--mdt-radius); background: #fff; color: var(--mdt-dark); text-decoration: none; font-weight: 600; }
.post-navigation a span { font-size: .82rem; color: var(--mdt-muted); font-weight: 400; }
.post-navigation .nav-next { text-align: end; }

.nav-links, .woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--mdt-line);
	background: #fff;
	color: var(--mdt-dark);
	text-decoration: none;
	font-weight: 600;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--mdt-primary); border-color: var(--mdt-primary); color: #fff; }
.pagination { margin-top: 36px; }

/* ---------- Comments ---------- */
.mdt-comments { margin-top: 40px; }
.mdt-comment-list { list-style: none; padding: 0; }
.mdt-comment-list .comment-body { padding: 18px; margin-bottom: 14px; background: #fff; border: 1px solid var(--mdt-line); border-radius: var(--mdt-radius); }
.mdt-comment-list .avatar { border-radius: 50%; float: inline-start; margin-inline-end: 12px; }
.comment-form p { margin-bottom: 14px; }

/* ---------- Footer ---------- */
.mdt-footer { margin-top: clamp(32px, 6vw, 64px); background: var(--mdt-dark); color: rgba(255, 255, 255, .72); }
.mdt-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.mdt-footer a:hover { color: #fff; }
.mdt-footer-highlights { border-bottom: 1px solid rgba(255, 255, 255, .08); padding-block: 28px; }
.mdt-footer .mdt-feature { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); }
.mdt-footer .mdt-feature-text strong { color: #fff; }
.mdt-footer .mdt-feature-text span { color: rgba(255, 255, 255, .6); }
.mdt-footer .mdt-feature-icon { background: color-mix(in srgb, var(--mdt-primary) 30%, transparent); color: var(--mdt-primary-soft); }
.mdt-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 48px; }
.mdt-footer-about p { margin-top: 14px; max-width: 36ch; }
.mdt-footer .mdt-logo-text { color: #fff; }
.mdt-footer-title { font-size: 1rem; color: #fff; margin-bottom: 16px; }
.mdt-footer-menu { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mdt-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
.mdt-footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 18px; }
.mdt-footer-bottom p { margin: 0; }
.mdt-pay-note { display: inline-flex; align-items: center; gap: 8px; }

.mdt-contact { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.mdt-contact li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.mdt-contact svg { margin-top: 2px; color: var(--mdt-primary); }
.mdt-footer .mdt-contact svg { color: var(--mdt-primary-soft); }

.mdt-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.mdt-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--mdt-primary-tint);
	color: var(--mdt-primary);
	transition: background-color .2s var(--mdt-ease), color .2s var(--mdt-ease);
}
.mdt-social a:hover { background: var(--mdt-primary); color: #fff; }
.mdt-footer .mdt-social a { background: rgba(255, 255, 255, .08); color: #fff; }
.mdt-footer .mdt-social a:hover { background: var(--mdt-primary); }

/* ---------- Floating helpers ---------- */
.mdt-whatsapp-float, .mdt-to-top {
	position: fixed;
	z-index: 40;
	inset-inline-end: 18px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	box-shadow: var(--mdt-shadow);
}
.mdt-whatsapp-float {
	inset-block-end: calc(18px + var(--mdt-bottom-nav));
	width: 56px;
	height: 56px;
	background: #1F9D55;
	color: #fff;
	transition: transform .2s var(--mdt-ease);
}
.mdt-whatsapp-float:hover { transform: scale(1.06); color: #fff; }
.mdt-to-top {
	inset-block-end: calc(86px + var(--mdt-bottom-nav));
	width: 44px;
	height: 44px;
	border: 1px solid var(--mdt-line);
	background: #fff;
	color: var(--mdt-dark);
	cursor: pointer;
}

/* ---------- Phone bottom navigation ---------- */
.mdt-bottom-nav { display: none; }

/* ---------- Empty states & 404 ---------- */
.mdt-empty { display: grid; justify-items: center; gap: 10px; max-width: 560px; margin: clamp(32px, 6vw, 72px) auto; text-align: center; }
.mdt-empty .mdt-search { width: 100%; margin-block: 8px; }
.mdt-empty-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--mdt-primary-soft); color: var(--mdt-primary); }
.mdt-404-code { margin: 0; font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; line-height: 1; color: var(--mdt-primary-soft); -webkit-text-stroke: 2px var(--mdt-primary); }

/* ---------- Page builder canvas ---------- */
.mdt-page-builder { min-height: 40vh; }
.mdt-page-builder > .entry-content, .mdt-page-builder > *:not(.elementor) { max-width: none; }

/* ---------- Reveal on scroll ---------- */
.mdt-js [data-mdt-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--mdt-ease), transform .6s var(--mdt-ease); }
.mdt-js [data-mdt-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.mdt-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mdt-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	:root { --mdt-bottom-nav: 64px; }
	.mdt-nav, .mdt-header-inner > .mdt-search, .mdt-account-link, .mdt-topbar-phone { display: none; }
	.mdt-menu-toggle, .mdt-search-toggle { display: inline-grid; }
	.mdt-header-inner { min-height: 64px; gap: 6px; }
	.mdt-brand { margin-inline: auto; }
	.mdt-header-actions { margin-inline-start: 0; }
	.mdt-topbar-inner { justify-content: center; text-align: center; }
	.mdt-topbar .mdt-lang { display: none; }
	.mdt-hero-inner, .mdt-promo.has-image { grid-template-columns: 1fr; }
	.mdt-hero-media { order: -1; }
	.mdt-hero-art { aspect-ratio: 16 / 9; }
	.mdt-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mdt-posts { grid-template-columns: 1fr 1fr; }

	.mdt-bottom-nav {
		position: fixed;
		inset-inline: 0;
		inset-block-end: 0;
		z-index: 45;
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		height: calc(var(--mdt-bottom-nav) + env(safe-area-inset-bottom));
		padding-bottom: env(safe-area-inset-bottom);
		background: rgba(255, 255, 255, .96);
		backdrop-filter: blur(12px);
		border-top: 1px solid var(--mdt-line);
	}
	.mdt-bottom-nav a, .mdt-bottom-nav button {
		display: grid;
		justify-items: center;
		align-content: center;
		gap: 2px;
		padding: 0;
		border: 0;
		background: none;
		font: inherit;
		font-size: .72rem;
		font-weight: 500;
		color: var(--mdt-muted);
		text-decoration: none;
		cursor: pointer;
	}
	.mdt-bottom-nav [aria-current="page"] { color: var(--mdt-primary); }
	.mdt-bottom-cart { position: relative; }
	.mdt-bottom-cart .mdt-cart-count { inset-block-start: -6px; inset-inline-end: -12px; }
	.mdt-cart-link .mdt-cart-count { inset-block-start: 4px; }
}

@media (max-width: 600px) {
	.mdt-features { grid-template-columns: 1fr; gap: 10px; }
	.mdt-feature { padding: 14px; }
	.mdt-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.mdt-posts, .mdt-footer-grid, .post-navigation .nav-links { grid-template-columns: 1fr; }
	.mdt-section-head { align-items: center; }
	.mdt-hero-actions .mdt-btn { flex: 1 1 100%; }
	.mdt-topbar { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.mdt-js [data-mdt-reveal] { opacity: 1; transform: none; }
}

@media print {
	.mdt-topbar, .mdt-header, .mdt-footer, .mdt-bottom-nav, .mdt-whatsapp-float, .mdt-to-top, .mdt-drawer, .mdt-backdrop { display: none !important; }
	body { background: #fff; padding: 0; }
}
