/*
 * Dimitris Coffee design system (prototype "dx-css", rebuilt).
 * - Colours live only in the token blocks below (light, [data-theme="dark"], prefers-color-scheme).
 * - Direction comes from <html dir>: logical properties only, so EN (LTR) and AR (RTL) mirror.
 * - The theme puts class "dx" on <body>; component class names match the prototype markup.
 */

/* Readex Pro (SIL OFL, see ../fonts/readex/OFL.txt) for Latin; Arabic glyphs use Loew Next Arabic from fonts.css. */
@font-face {
	font-family: 'Readex Pro';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('../fonts/readex/readex-pro-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Readex Pro';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('../fonts/readex/readex-pro-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- TOKENS: light (default) ---------- */
:root {
	color-scheme: light dark;
	--dm-font: 'Loew Next Arabic', 'Readex Pro', system-ui, Tahoma, sans-serif;
	--dm-x: 1; /* +1 in LTR, -1 in RTL: sign for horizontal transforms */

	--dm-bg: #FFFFFF;          /* page */
	--dm-card: #FFFFFF;        /* boxes, inputs, drawer, header icons */
	--dm-surface: #F6F6F7;     /* steps, fields, drawer progress */
	--dm-subtle: #F1F1F2;      /* .dx-sa sections, product image wells, tags */
	--dm-text: #000000;
	--dm-text-2: #3A3A3C;
	--dm-muted: #5C5C5E;
	--dm-placeholder: #6E6E73;
	--dm-border: #E1E2E3;
	--dm-accent: #FF0F29;      /* brand red: fills, icons, rules; text only on dark */
	--dm-on-accent: #000000;   /* text on red (white on red is 3.9:1, fails AA) */
	--dm-accent-ink: #FF0F29;  /* red as small text on inverse bands */
	--dm-ok: #2E9E5B;          /* status hues: same in both modes, readable as borders on either ground */
	--dm-warn: #C98A1F;
	--dm-kicker: #000000;      /* .dx-k / FAQ "+" on light grounds */
	--dm-focus: #2F6FEB;

	--dm-btn-bg: #000000;      /* primary (.dx-red, .dx-dark, .dx-add, cart icon) */
	--dm-btn-text: #FFFFFF;
	--dm-btn-hover-bg: #FF0F29;
	--dm-btn-hover-text: #000000;
	--dm-btn-dark-hover: #333333;
	--dm-btn-white-bg: #FFFFFF;
	--dm-btn-white-text: #000000;

	--dm-inverse-bg: #000000;  /* .dx-bk bands, announcement, footer */
	--dm-inverse-raised: #232323;
	--dm-inverse-text: #FFFFFF;
	--dm-inverse-text-2: #D0D0D4;
	--dm-inverse-muted: #C7C7CC;
	--dm-inverse-faint: #A8A8AD;
	--dm-inverse-border: #2A2A2A;
	--dm-band-edge: transparent; /* hairline around bands (visible in dark) */

	--dm-meter-0: #E1E2E3;
	--dm-meter-1: #BCBEC0;
	--dm-meter-2: #8E9092;
	--dm-meter-3: #5E6062;
	--dm-meter-4: #2E2F30;
	--dm-meter-5: #000000;
	--dm-hover-rule: #BCBEC0;

	--dm-pay-bg: #FFFFFF;
	--dm-pay-text: #111111;
	--dm-wa-bg: #000000;
	--dm-wa-ring: #FFFFFF;
	--dm-photo-text: #FFFFFF;  /* text over photos */
	--dm-photo-shade: rgba(0, 0, 0, .72);
	--dm-header-bg: rgba(255, 255, 255, .97);
	--dm-overlay: rgba(0, 0, 0, .4);
	--dm-shadow: rgba(0, 0, 0, .2);
	--dm-shadow-soft: rgba(0, 0, 0, .06);
	--dm-img-filter: none;     /* black-on-transparent artwork (.dx-tz) */
}
[dir="rtl"] { --dm-x: -1; }
[data-theme="light"] { color-scheme: light; }

/* ---------- TOKENS: dark (explicit choice) ---------- */
[data-theme="dark"] {
	color-scheme: dark;
	--dm-bg: #0E0E0F;
	--dm-card: #18181A;
	--dm-surface: #141416;
	--dm-subtle: #161619;
	--dm-text: #F2F2F3;
	--dm-text-2: #C9C9CE;
	--dm-muted: #A1A1A7;
	--dm-placeholder: #8E8E94;
	--dm-border: #2E2E33;
	--dm-kicker: #F2F2F3;
	--dm-focus: #6B9BFF;
	--dm-btn-bg: #F2F2F3;
	--dm-btn-text: #000000;
	--dm-btn-dark-hover: #D4D4D8;
	--dm-inverse-bg: #242428;
	--dm-accent-ink: #FF4757;
	--dm-inverse-raised: #2E2E33;
	--dm-inverse-text: #FFFFFF;
	--dm-inverse-border: #3A3A40;
	--dm-band-edge: #34343A;
	--dm-meter-0: #2E2E33;
	--dm-meter-1: #55555B;
	--dm-meter-2: #7C7C83;
	--dm-meter-3: #A4A4AA;
	--dm-meter-4: #CBCBD0;
	--dm-meter-5: #F2F2F3;
	--dm-hover-rule: #55555B;
	--dm-header-bg: rgba(14, 14, 15, .94);
	--dm-overlay: rgba(0, 0, 0, .64);
	--dm-shadow: rgba(0, 0, 0, .6);
	--dm-shadow-soft: rgba(0, 0, 0, .4);
	--dm-img-filter: invert(1);
}

/* ---------- TOKENS: dark (system preference, no explicit choice) — keep in sync with the block above ---------- */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--dm-bg: #0E0E0F;
		--dm-card: #18181A;
		--dm-surface: #141416;
		--dm-subtle: #161619;
		--dm-text: #F2F2F3;
		--dm-text-2: #C9C9CE;
		--dm-muted: #A1A1A7;
		--dm-placeholder: #8E8E94;
		--dm-border: #2E2E33;
		--dm-kicker: #F2F2F3;
		--dm-focus: #6B9BFF;
		--dm-btn-bg: #F2F2F3;
		--dm-btn-text: #000000;
		--dm-btn-dark-hover: #D4D4D8;
		--dm-inverse-bg: #242428;
		--dm-accent-ink: #FF4757;
		--dm-inverse-raised: #2E2E33;
		--dm-inverse-text: #FFFFFF;
		--dm-inverse-border: #3A3A40;
		--dm-band-edge: #34343A;
		--dm-meter-0: #2E2E33;
		--dm-meter-1: #55555B;
		--dm-meter-2: #7C7C83;
		--dm-meter-3: #A4A4AA;
		--dm-meter-4: #CBCBD0;
		--dm-meter-5: #F2F2F3;
		--dm-hover-rule: #55555B;
		--dm-header-bg: rgba(14, 14, 15, .94);
		--dm-overlay: rgba(0, 0, 0, .64);
		--dm-shadow: rgba(0, 0, 0, .6);
		--dm-shadow-soft: rgba(0, 0, 0, .4);
		--dm-img-filter: invert(1);
	}
}

/* Swap artwork per mode: <img class="dx-on-light"> + <img class="dx-on-dark"> (e.g. header logo).
   Doubled class (.dx-on-x.dx-on-x) outranks `.dx img { display: block }`. */
.dx-on-dark.dx-on-dark { display: none; }
[data-theme="dark"] .dx-on-dark.dx-on-dark { display: revert; }
[data-theme="dark"] .dx-on-light.dx-on-light { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .dx-on-dark.dx-on-dark { display: revert; }
	:root:not([data-theme="light"]) .dx-on-light.dx-on-light { display: none; }
}

/* ---------- BASE ---------- */
:root { background: var(--dm-bg); }
.dx { background: var(--dm-bg); color: var(--dm-text); font-family: var(--dm-font); line-height: 1.65; font-size: 16px; text-align: start; -webkit-font-smoothing: antialiased; }
body.dx { margin: 0; }
:is(.dx-hd, .dx-dr) button { margin: 0; max-width: none; }
.dm-main { overflow-x: clip; }
.dx * { box-sizing: border-box; }
.dx h1, .dx h2, .dx h3, .dx h4 { color: inherit; margin: 0; line-height: 1.3; font-weight: 700; }
.dx p, .dx ul, .dx ol, .dx figure, .dx blockquote { margin: 0; padding: 0; }
.dx ul, .dx ol { list-style: none; }
.dx blockquote { border: 0; font-style: normal; quotes: none; }
.dx a { color: inherit; text-decoration: none; }
.dx img { max-width: 100%; display: block; height: auto; }
.dx button, .dx select, .dx input, .dx textarea { font: inherit; color: inherit; }
.dx button { box-shadow: none; text-shadow: none; }
.dx svg { width: 20px; height: 20px; flex: none; }
.dx :focus-visible { outline: 3px solid var(--dm-focus); outline-offset: 2px; }
.dx ::placeholder { color: var(--dm-placeholder); opacity: 1; }
[dir="ltr"] .dx-flip { scale: -1 1; } /* prototype arrows are drawn for RTL */
.dx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dx-hide { display: none !important; }
@media (prefers-reduced-motion: reduce) {
	.dx *, .dx *::before, .dx *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------- LAYOUT ---------- */
.dx-w { max-width: 1280px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 32px); }
/* Round origin flag (dm_origin_flag()); the ring keeps white flag parts visible on light tiles. */
.dx .dm-flag { width: 28px; height: 28px; border-radius: 50%; flex: none; object-fit: cover; box-shadow: 0 0 0 1px var(--dm-border); }
.dx .dm-flag--star { object-fit: contain; padding: 5px; background: var(--dm-card); }
/* Wide screens get a wider column (1280px left ~385px empty each side at 2000px); edge to edge looked stretched. Below 1400px nothing changes. */
@media (min-width: 1400px) {
	.dx-w { max-width: 1600px; padding-inline: clamp(32px, 3vw, 56px); }
}
.dx-sec { padding-block: clamp(44px, 6vw, 76px); }
.dx-wh { background: var(--dm-card); border-block: 1px solid var(--dm-border); }
.dx-sa { background: var(--dm-subtle); }
.dx-bk { background: var(--dm-inverse-bg); color: var(--dm-inverse-text); border-block: 1px solid var(--dm-band-edge); }
.dx-bk a { color: var(--dm-inverse-text); }
.dx-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.dx-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.dx-g3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dx-g4 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.dx-split { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); align-items: center; }
.dx-split > * { flex: 1 1 420px; min-width: 0; }
.dx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-block-end: 24px; }
@media (max-width: 600px) {
	.dx-split > * { flex-basis: 100%; }
	.dx-h1 br { display: none; }
}

/* ---------- TYPE ---------- */
.dx-k { color: var(--dm-kicker); font-size: 13px; font-weight: 600; margin-block-end: 6px; display: block; }
.dx-k::before { content: ""; display: inline-block; width: 13px; height: 13px; background: url(../img/dimitris-star.png) center / contain no-repeat; margin-inline-end: 6px; vertical-align: -1px; }
.dx-bk .dx-k { color: var(--dm-accent-ink); }
.dx-h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.18; }
.dx-h2 { font-size: clamp(26px, 2.8vw, 38px); }
.dx-lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--dm-text-2); max-width: 560px; }
.dx-bk .dx-lead { color: var(--dm-inverse-text-2); }
.dx-more { font-weight: 600; font-size: 14px; border-block-end: 1.5px solid currentColor; padding-block-end: 2px; }
.dx-tag { display: inline-block; background: var(--dm-subtle); color: var(--dm-kicker); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.dx-tag::before, .dx-rib.r::before { content: ""; display: inline-block; width: 10px; height: 10px; background: url(../img/dimitris-star.png) center / contain no-repeat; margin-inline-end: 5px; vertical-align: -1px; }
.dx-bc { font-size: 13px; color: var(--dm-muted); padding-block-start: 18px; }
.dx-bc a:hover { color: var(--dm-kicker); }

/* ---------- BUTTONS ---------- */
.dx-btn { margin: 0; width: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s; white-space: nowrap; }
.dx-btn:active { transform: scale(.98); }
.dx-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
/* .dx-red is the primary CTA: black, red on hover (brand 2026). */
.dx .dx-red, .dx .dx-dark, .dx .dx-add { background: var(--dm-btn-bg); color: var(--dm-btn-text); }
.dx .dx-red:hover, .dx .dx-add:hover { background: var(--dm-btn-hover-bg); color: var(--dm-btn-hover-text); }
.dx .dx-dark:hover { background: var(--dm-btn-dark-hover); }
.dx .dx-white { background: var(--dm-btn-white-bg); color: var(--dm-btn-white-text); }
.dx .dx-out { border-color: currentColor; background: transparent; color: inherit; }
/* On black bands the primary turns red. */
.dx .dx-bk .dx-red { background: var(--dm-accent); color: var(--dm-on-accent); }
.dx .dx-bk .dx-red:hover { background: var(--dm-inverse-text); color: var(--dm-on-accent); }
.dx-add { border: 0; border-radius: 999px; min-height: 44px; padding: 0 18px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.dx-add[disabled] { opacity: .6; }

/* ---------- ANNOUNCEMENT + HEADER ---------- */
.dx-ann { background: var(--dm-inverse-bg); color: var(--dm-inverse-text); font-size: 13px; padding: 9px 16px; display: flex; justify-content: center; gap: 4px 26px; flex-wrap: wrap; text-align: center; border-block-end: 1px solid var(--dm-band-edge); }
.dx-ann a { color: var(--dm-accent-ink); font-weight: 600; }
.dx-hd { position: sticky; top: 0; z-index: 60; background: var(--dm-header-bg); backdrop-filter: blur(8px); border-block-end: 1px solid var(--dm-border); transition: box-shadow .2s; }
.dx-hd.is-stuck { box-shadow: 0 6px 20px var(--dm-shadow-soft); }
.admin-bar .dx-hd { top: 32px; }
.dx-hdi { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.dx-logo { display: flex; flex: none; }
.dx-logo img { height: 50px; width: auto; }
.dx-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--dm-btn-bg); color: var(--dm-btn-text); padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.dx-skip:focus { top: 12px; }
.dx-nav { display: flex; gap: 20px; flex: 1; font-size: 14.5px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding: 4px 0; }
.dx-nav::-webkit-scrollbar { display: none; }
.dx-nav a { padding: 6px 0; border-block-end: 2px solid transparent; }
.dx-nav a:hover { color: var(--dm-text); border-color: var(--dm-hover-rule); }
.dx-nav a.on, .dx-nav a[aria-current] { color: var(--dm-text); font-weight: 600; border-color: var(--dm-accent); }
.dx-new { background: var(--dm-accent); color: var(--dm-on-accent); font-size: 10px; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-inline-start: 4px; }
.dx-tools { display: flex; align-items: center; gap: 8px; }
.dx-search { display: flex; align-items: center; gap: 6px; background: var(--dm-card); border: 1px solid var(--dm-border); border-radius: 999px; padding: 0 14px; height: 44px; }
.dx .dx-search input:focus-visible { outline: 0; }
.dx-search:focus-within { outline: 3px solid var(--dm-focus); outline-offset: 2px; }
.dx-search input { border: 0; outline: 0; background: transparent; font-size: 14px; padding: 0; margin: 0; box-shadow: none; height: 40px; }
.dx-ic { margin: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--dm-card); color: var(--dm-text); border: 1px solid var(--dm-border); display: grid; place-items: center; position: relative; cursor: pointer; padding: 0; flex: none; }
.dx .dx-ic svg { width: 19px; height: 19px; }
.dx .dx-cart { background: var(--dm-btn-bg); border-color: var(--dm-btn-bg); color: var(--dm-btn-text); }
.dx-badge[data-count="0"] { display: none; }
.dx-badge { position: absolute; top: -4px; inset-inline-end: -4px; background: var(--dm-accent); color: var(--dm-on-accent); font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; border: 2px solid var(--dm-surface); padding: 0 4px; line-height: 1; }
.dx-sbtn, .dx .dx-mbtn { display: none; }
.dx .dx-lang { width: auto; padding-inline: 12px; border-radius: 999px; display: inline-flex; gap: 6px; font-size: 14px; font-weight: 600; }
.dx .dx-lang svg { width: 17px; height: 17px; }
.dx-theme[aria-pressed="true"] { color: var(--dm-accent-ink); }
/* Checkout: logo, "Secure checkout", "Back to cart" only. */
.dx-hd--checkout { position: relative; }
.dx-hd--checkout .dx-hdi { justify-content: space-between; column-gap: 16px; }
.dx-secure { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.dx-secure svg { color: var(--dm-accent); }
/* Search is an icon (dropdown row) at every width: the 1280px header never fits nav + inline field. */
.dx-hdi { flex-wrap: wrap; column-gap: 18px; row-gap: 0; }
.dx-search { display: none; order: 4; flex: 1 0 100%; margin-block-end: 12px; }
.dx-search.show { display: flex; }
.dx-search input { width: 100%; }
.dx .dx-sbtn { display: grid; }
@media (max-width: 960px) {
	.dx-hdi { gap: 8px; min-height: 64px; }
	.dx-nav, .dx .dx-tools > .dx-lang, .dx .dx-tools > .dx-theme { display: none; }
	.dx .dx-mbtn { display: grid; }
	.dx-logo { margin-inline-end: auto; }
	.dx-logo img { height: 42px; }
}
@media (max-width: 782px) {
	.admin-bar .dx-hd { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .dx-hd { top: 0; } /* the admin bar scrolls away here */
}

/* ---------- BOXES, MEDIA, TILES ---------- */
.dx-box { background: var(--dm-card); border: 1px solid var(--dm-border); border-radius: 22px; padding: clamp(18px, 2.4vw, 28px); }
.dx-ph { border-radius: 24px; overflow: hidden; background: var(--dm-subtle); }
.dx-ph img { width: 100%; height: 100%; object-fit: cover; }
.dx .dx-tile { position: relative; display: flex; align-items: flex-end; min-height: 260px; border-radius: 24px; overflow: hidden; color: var(--dm-photo-text); padding: 20px; }
.dx-tile * { color: var(--dm-photo-text); }
.dx-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dx-tile:hover img { transform: scale(1.05); }
.dx-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--dm-photo-shade), transparent 60%); }
.dx-tile span { position: relative; z-index: 1; }
.dx-tile b { display: block; font-size: 20px; }

/* ---------- PRODUCT CARD ---------- */
.dx-p { position: relative; }
.dx-pi { display: block; background: var(--dm-subtle); aspect-ratio: 1 / 1; position: relative; overflow: hidden; }
.dx-pi img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.dx-p:hover .dx-pi img { transform: scale(1.04); }
.dx-rib { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--dm-card); border: 1px solid var(--dm-border); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.dx-rib.r { border-color: var(--dm-text); }
.dx-pb { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dx-pb h3 { font-size: 17px; line-height: 1.4; }
.dx-notes { font-size: 13.5px; color: var(--dm-text-2); }
.dx-meter { display: flex; gap: 3px; }
.dx-meter i { flex: 1; height: 6px; border-radius: 3px; background: var(--dm-meter-0); }
.dx-meter i.o1 { background: var(--dm-meter-1); }
.dx-meter i.o2 { background: var(--dm-meter-2); }
.dx-meter i.o3 { background: var(--dm-meter-3); }
.dx-meter i.o4 { background: var(--dm-meter-4); }
.dx-meter i.o5 { background: var(--dm-meter-5); }
.dx-pm { display: flex; justify-content: space-between; font-size: 12px; color: var(--dm-muted); }
.dx-sel { width: 100%; height: 44px; border: 1px solid var(--dm-border); border-radius: 12px; background: var(--dm-surface); color: var(--dm-text); padding: 0 12px; font-size: 14px; margin: 0; }
.dx-pf { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-block-start: auto; padding-block-start: 6px; }
.dx-pr { font-size: 19px; font-weight: 700; line-height: 1.2; }
.dx-pr small { font-size: 12px; font-weight: 400; color: var(--dm-muted); }
.dx-subp { display: block; font-size: 12px; color: var(--dm-text-2); font-weight: 500; }

/* ---------- CHIPS, PILLS, QTY, OPTIONS, SPECS, FIELDS ---------- */
.dx-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-block-end: 22px; }
.dx .dx-chip { background: transparent; border: 1.5px solid var(--dm-text); color: var(--dm-text); border-radius: 999px; min-height: 44px; padding: 0 18px; font-size: 14px; cursor: pointer; }
.dx .dx-chip[aria-pressed="true"] { background: var(--dm-text); color: var(--dm-bg); }
.dx-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dx-pills label { position: relative; }
.dx-pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dx-pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--dm-border); background: var(--dm-card); border-radius: 12px; font-size: 14px; cursor: pointer; }
.dx-pills input:checked + span { border-color: var(--dm-text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--dm-text); }
.dx-pills input:focus-visible + span { outline: 3px solid var(--dm-focus); outline-offset: 2px; }
.dx-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--dm-border); border-radius: 999px; background: var(--dm-card); height: 52px; }
.dx-qty button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--dm-text); }
.dx-qty input { width: 42px; text-align: center; border: 0; background: transparent; font-size: 16px; padding: 0; margin: 0; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.dx-qty input::-webkit-inner-spin-button { display: none; }
.dx-opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1.5px solid var(--dm-border); background: var(--dm-card); border-radius: 14px; padding: 12px 14px; cursor: pointer; font-size: 15px; }
.dx-opt:has(input:checked) { border-color: var(--dm-text); }
.dx-opt input { accent-color: var(--dm-text); width: 18px; height: 18px; margin: 0; margin-inline-end: 8px; vertical-align: middle; }
.dx-spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dx-spec div { background: var(--dm-card); border: 1px solid var(--dm-border); border-radius: 14px; padding: 10px 12px; font-size: 12px; color: var(--dm-muted); }
.dx-spec b { display: block; color: var(--dm-text); font-size: 14px; font-weight: 600; }
.dx-field { width: 100%; height: 50px; border: 1px solid var(--dm-border); background: var(--dm-surface); color: var(--dm-text); border-radius: 999px; padding: 0 18px; font-size: 15px; margin: 0; }

/* ---------- TRUST, RATING, FAQ, STEPS ---------- */
.dx-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.dx-trust > div { display: flex; gap: 12px; align-items: center; padding: 20px 8px; }
.dx-ti { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--dm-subtle); color: var(--dm-accent); display: grid; place-items: center; }
.dx .dx-ti svg { width: 21px; height: 21px; }
.dx-trust b { display: block; }
.dx-trust small { font-size: 13px; color: var(--dm-muted); }
.dx-rate { display: inline-flex; align-items: center; gap: 8px; background: var(--dm-card); border: 1px solid var(--dm-border); border-radius: 999px; padding: 6px 14px; font-size: 13px; margin-block-end: 18px; }
.dx-stars { color: var(--dm-accent); letter-spacing: 1px; }
.dx-faq details { background: var(--dm-card); border-radius: 18px; margin-block-end: 10px; border: 1px solid var(--dm-border); }
.dx-faq summary, .dx details.dx-form > summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 12px; }
.dx-faq summary::-webkit-details-marker, .dx details.dx-form > summary::-webkit-details-marker { display: none; }
.dx-faq summary::after, .dx details.dx-form > summary::after { content: "+"; color: var(--dm-kicker); font-size: 22px; line-height: 1; }
.dx-faq details[open] summary::after, .dx details.dx-form[open] > summary::after { content: "\2212"; }
.dx-faq details p { padding: 0 20px 18px; color: var(--dm-text-2); }
.dx details.dx-form { background: var(--dm-surface); border-radius: 18px; margin-block-start: 18px; border: 1px solid var(--dm-border); }
.dx details.dx-form > summary { padding: 16px 20px; font-weight: 700; }
.dx details.dx-form > div { padding: 0 20px 20px; }
.dx-step { background: var(--dm-surface); border-radius: 20px; padding: 20px; }
.dx-num { width: 40px; height: 40px; border-radius: 50%; background: var(--dm-btn-bg); color: var(--dm-btn-text); display: grid; place-items: center; font-weight: 700; margin-block-end: 12px; }

/* ---------- CONTACT FORM 7 ---------- */
.dx .wpcf7 form { display: grid; gap: 12px; }
.dx .wpcf7 p { margin: 0 0 10px; }
.dx .wpcf7 label, .dx .wpcf7 .wpcf7-list-item-label { font-weight: 500; font-size: 14px; display: block; color: inherit; }
.dx .wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]), .dx .wpcf7 textarea, .dx .wpcf7 select { width: 100%; border: 1px solid var(--dm-border); border-radius: 12px; background: var(--dm-card); padding: 12px 14px; color: var(--dm-text); font-size: 15px; }
.dx .wpcf7 textarea { min-height: 120px; }
.dx .wpcf7 input[type=submit] { background: var(--dm-btn-bg); color: var(--dm-btn-text); border: 0; border-radius: 999px; min-height: 48px; padding: 0 30px; font-weight: 600; cursor: pointer; }
.dx .wpcf7 input[type=submit]:hover { background: var(--dm-btn-hover-bg); color: var(--dm-btn-hover-text); }

/* ---------- FOOTER + BANDS ---------- */
.dx-tz { height: 56px; background: url(../img/dimitris-tile-black.png) repeat-x center / auto 56px; border-block-start: 1px solid var(--dm-border); filter: var(--dm-img-filter); }
.dx-burst { background: var(--dm-card); overflow: hidden; border-block: 1px solid var(--dm-border); }
.dx-burst img { display: block; width: 100%; height: clamp(110px, 14vw, 200px); object-fit: cover; object-position: center; }
.dx-ft { background: var(--dm-inverse-bg); color: var(--dm-inverse-text); padding: 52px 0 26px; }
.dx-ft a { color: var(--dm-inverse-muted); }
.dx-ft a:hover { color: var(--dm-inverse-text); }
.dx-fcols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); font-size: 14px; }
.dx-fcols b { display: block; margin-block-end: 12px; font-size: 15px; }
.dx-ft :is(p, li, a, span) { font-size: inherit; line-height: inherit; } /* page CSS styles bare p/li */
.dx .dx-flogo { height: 80px; width: auto; margin-block-end: 14px; }
.dx-fbrand p, .dx-fcontact li { color: var(--dm-inverse-muted); }
.dx-fbrand p { margin-block-end: 12px; }
.dx .dx-iso { height: 46px; width: auto; background: #FFFFFF; border-radius: 6px; padding: 4px; } /* certificate artwork needs white in both modes */
.dx .dx-brandline img { width: 14px; height: 14px; }
.dx-social { gap: 16px; }
.dx-fcols li { margin-block-end: 7px; }
.dx-pay { display: flex; gap: 6px; flex-wrap: wrap; margin-block-start: 12px; }
.dx-pay span { background: var(--dm-pay-bg); color: var(--dm-pay-text); border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 600; }
.dx-brandline { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; border-block-start: 1px solid var(--dm-inverse-border); margin-block-start: 28px; padding-block-start: 18px; font-weight: 700; font-size: 13px; }
.dx-brandline :is(span, a) { display: inline-flex; align-items: center; gap: 8px; direction: ltr; }
.dx .dx-brandline a { color: inherit; text-underline-offset: 4px; }
.dx .dx-brandline a:hover { text-decoration: underline; }
.dx-fb { border-block-start: 1px solid var(--dm-inverse-border); margin-block-start: 34px; padding-block-start: 16px; padding-inline-end: 84px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--dm-inverse-faint); }

/* ---------- FLOATING: WhatsApp, mobile bar ---------- */
.dx .dx-wa { position: fixed; inset-inline-end: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: var(--dm-wa-bg); color: var(--dm-inverse-text); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--dm-wa-ring), 0 8px 22px var(--dm-shadow); z-index: 70; }
.dx .dx-wa svg { width: 30px; height: 30px; }
.dx .dx-wa { transition: opacity .2s, transform .2s, visibility .2s; }
.dx .dx-wa.is-away { opacity: 0; transform: scale(.6); visibility: hidden; } /* set by dm-chrome.js */
.dx-mbar { display: none; }
@media (max-width: 760px) {
	.dx-mbar { display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 65; background: var(--dm-card); border-block-start: 1px solid var(--dm-border); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 10px; align-items: center; }
	.dx-mbar .dx-btn { flex: 1; }
	.dx:has(.dx-mbar) .dx-wa { bottom: 86px; }
}

/* ---------- CART DRAWER + TOAST ---------- */
/* Drawer + menu sit above the cookie bar (.gdpr-privacy-bar, z 9999999); the grind picker (10000000) is closed before they open. */
html.dx-lock { overflow: hidden; }
.dx-ov[hidden], .dx-dr[hidden] { display: none; }
.dx-ov { position: fixed; inset: 0; background: var(--dm-overlay); z-index: 10000001; opacity: 0; pointer-events: none; transition: opacity .2s; }
.dx-ov.open { opacity: 1; pointer-events: auto; }
.dx-dr { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100%); background: var(--dm-card); color: var(--dm-text); z-index: 10000002; transform: translateX(calc(var(--dm-x) * 105%)); transition: transform .25s; display: flex; flex-direction: column; box-shadow: 0 0 40px var(--dm-shadow); }
.dx-dr.open { transform: none; }
.admin-bar .dx-dr { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .dx-dr { top: 0; }
}
.dx-drh { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-block-end: 1px solid var(--dm-border); font-weight: 700; font-size: 17px; }
.dx-prog { padding: 14px 18px; background: var(--dm-surface); font-size: 13.5px; border-block-end: 1px solid var(--dm-border); }
.dx-bar { height: 8px; background: var(--dm-meter-0); border-radius: 4px; margin-block-start: 8px; overflow: hidden; }
.dx-bar i { display: block; height: 100%; background: var(--dm-accent); border-radius: 4px; transition: width .3s; }
.dx-items { flex: 1; overflow: auto; }
.dx-it { display: flex; gap: 12px; padding: 14px 18px; border-block-end: 1px solid var(--dm-border); align-items: flex-start; transition: opacity .2s; }
.dx-it.is-busy { opacity: .55; }
.dx-it.is-removing { display: none; }
.dx-it__img { flex: none; }
.dx-it img { width: 64px; height: 64px; object-fit: contain; background: var(--dm-subtle); border-radius: 12px; }
.dx-it__body { flex: 1; min-width: 0; font-size: 14px; line-height: 1.45; display: grid; gap: 2px; }
.dx-it__name { font-weight: 600; }
.dx-it small { display: block; color: var(--dm-muted); font-size: 12px; }
.dx-it__row { display: flex; align-items: center; gap: 12px; margin-block-start: 6px; }
.dx-it__total { flex: none; font-size: 14px; white-space: nowrap; }
.dx-qty--sm { height: 36px; }
.dx .dx-qty--sm button { width: 34px; height: 34px; padding: 0; font-size: 18px; line-height: 1; }
.dx-qty--sm button[disabled] { opacity: .35; cursor: default; }
.dx-qty output { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.dx .dx-rm { color: var(--dm-muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; }
.dx .dx-rm:hover { color: var(--dm-text); }
.dx-dr .dm-minicart { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dx-empty { padding: 28px 18px; display: grid; gap: 14px; justify-items: start; color: var(--dm-muted); }
.dx-drf { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--dm-border); display: grid; gap: 10px; }
.dx-sub { display: flex; justify-content: space-between; font-weight: 700; transition: opacity .2s; }
.dx-dr.is-updating .dx-sub { opacity: .45; }
.dm-minicart__meter { padding: 10px 18px; font-size: 12px; color: var(--dm-muted); border-block-start: 1px solid var(--dm-border); }
.dm-minicart__meter-bar { display: block; height: 6px; background: var(--dm-meter-0); border-radius: 3px; margin-block-start: 6px; overflow: hidden; }
.dm-minicart__meter-fill { display: block; height: 100%; background: var(--dm-text); }
.dm-minicart__meter.is-over .dm-minicart__meter-fill { background: var(--dm-accent); }
/* Menu sheet (≤ 960px): same panel, from the inline-start edge. */
.dx-dr.dx-mn { inset-inline-end: auto; inset-inline-start: 0; transform: translateX(calc(var(--dm-x) * -105%)); }
.dx-dr.dx-mn.open { transform: none; }
.dx-mnav { flex: 1; overflow: auto; padding-block: 6px; }
.dx-mnav a { display: flex; align-items: center; min-height: 52px; padding: 0 18px; font-size: 17px; border-block-end: 1px solid var(--dm-border); }
.dx-mnav a[aria-current] { font-weight: 700; box-shadow: inset calc(var(--dm-x) * 3px) 0 0 var(--dm-accent); }
.dx-mtools { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--dm-border); }
.dx-mtools .dx-btn svg { width: 18px; height: 18px; }
.dx-toast { position: fixed; bottom: 24px; inset-inline: 0; margin-inline: auto; width: fit-content; max-width: calc(100% - 32px); transform: translateY(calc(100% + 40px)); background: var(--dm-btn-bg); color: var(--dm-btn-text); padding: 12px 22px; border-radius: 999px; font-size: 14px; z-index: 100001; transition: transform .25s; box-shadow: 0 8px 22px var(--dm-shadow); }
.dx-toast.show { transform: none; }
