/* ==========================================================================
   Dezzies Mount - shared design system  (assets/css/dm.css)

   One stylesheet for the header, menu, footer and the new pages. Everything new
   is prefixed .dm- so it cannot clash with older pages, which still bring their
   own inline CSS. The older variable names (--primary, --glass ...) are kept at
   the bottom of :root so those pages keep working, but now point at this palette.

   Direction: a dark workshop with ONE action colour (signal cyan). The photos are
   the brightest things on the page. Product facts (sizes, prices) sit on a
   "plaster wall" band, set as small gallery labels - the one memorable device.

   Contrast checked on the dark ground: --dm-paper 17:1, --dm-dust 9.5:1,
   --dm-dim 6:1; on plaster: --dm-charcoal 13:1, --dm-charcoal-2 7:1.
   ========================================================================== */

:root {
    /* Ground and surfaces */
    --dm-night: #08090c;
    --dm-board: #0f1218;
    --dm-mat: #161a22;
    --dm-line: rgba(255, 255, 255, 0.10);
    --dm-line-strong: rgba(255, 255, 255, 0.22);

    /* Text on dark */
    --dm-paper: #f3f4f6;
    --dm-dust: #b3b9c6;
    --dm-dim: #8d94a4;

    /* The one action colour */
    --dm-signal: #00d4ff;
    --dm-signal-hover: #4de3ff;
    --dm-signal-ink: #021015;
    --dm-signal-wash: rgba(0, 212, 255, 0.12);

    /* The wall (light bands - same plaster as the visualizer) */
    --dm-plaster: #ece7df;
    --dm-plaster-deep: #e0d9ce;
    --dm-charcoal: #1c1a17;
    --dm-charcoal-2: #4a443c;
    --dm-wall-line: rgba(28, 26, 23, 0.16);

    /* Functional colour only */
    --dm-star: #f5b84b;
    --dm-ok: #4ade80;
    --dm-whatsapp: #25d366;

    /* Type */
    --dm-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
    --dm-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Space (4px base) and shape */
    --dm-gutter: clamp(16px, 4vw, 32px);
    --dm-radius: 10px;
    --dm-radius-sm: 6px;
    --dm-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dm-header-h: 60px;

    /* ---- Older variable names, mapped onto the palette above ---- */
    --primary: var(--dm-signal);
    --primary-dark: #00b8d4;
    --secondary: #38bdf8;
    --accent: #0891b2;
    --dark: var(--dm-board);
    --darker: var(--dm-night);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: var(--dm-line);
    --text: #ffffff;
    --text-muted: var(--dm-dust);
    --whatsapp: var(--dm-whatsapp);
    --whatsapp-dark: #128c7e;
    --phone: #34b7f1;
    --email: #ea4335;
    --blog-color: #e94560;
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--dm-header-h) + 12px); }

body {
    margin: 0;
    font-family: var(--dm-body);
    background: var(--dm-night);
    color: var(--dm-paper);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--dm-signal); outline-offset: 3px; }

.dm-sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.dm-skip {
    position: absolute; left: 12px; top: -60px; z-index: 10001;
    background: var(--dm-signal); color: var(--dm-signal-ink);
    padding: 10px 16px; border-radius: var(--dm-radius-sm); font-weight: 600; text-decoration: none;
}
.dm-skip:focus { top: 12px; }

.dm-container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--dm-gutter); }

/* ---------- Buttons ---------- */
.dm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px;
    font: 600 1rem/1 var(--dm-body); text-decoration: none; text-align: center;
    border-radius: var(--dm-radius); border: 1.5px solid transparent; cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--dm-ease);
}
.dm-btn:active { transform: translateY(1px); }
.dm-btn--primary { background: var(--dm-signal); color: var(--dm-signal-ink); }
.dm-btn--primary:hover { background: var(--dm-signal-hover); }
.dm-btn--ghost { background: transparent; color: var(--dm-paper); border-color: var(--dm-line-strong); }
.dm-btn--ghost:hover { border-color: var(--dm-paper); }
.dm-btn--ghost i { color: var(--dm-whatsapp); }
.dm-btn--on-wall { background: var(--dm-charcoal); color: var(--dm-plaster); }
.dm-btn--on-wall:hover { background: #000; }
.dm-btn--block { width: 100%; }
.dm-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.dm-header {
    position: sticky; top: 0; z-index: 9999;
    background: rgba(8, 9, 12, 0.94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--dm-line);
}
.dm-bar {
    display: flex; align-items: center; gap: 12px;
    height: var(--dm-header-h);
}
.dm-logo {
    display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
    font: 700 1.2rem/1 var(--dm-display); letter-spacing: -0.01em;
    color: var(--dm-paper); text-decoration: none; white-space: nowrap;
}
/* A frame inside a frame - the shop's product, drawn in two borders */
.dm-logo-mark {
    width: 26px; height: 26px; flex: none; position: relative;
    border: 2px solid var(--dm-signal); border-radius: 3px;
}
.dm-logo-mark::after {
    content: ""; position: absolute; inset: 4px;
    background: var(--dm-signal); border-radius: 1px;
}

.dm-nav { display: none; align-items: center; gap: 4px; }
.dm-nav a {
    color: var(--dm-dust); text-decoration: none; font-size: 0.95rem; font-weight: 500;
    padding: 8px 12px; border-radius: var(--dm-radius-sm);
    transition: color .2s, background-color .2s;
}
.dm-nav a:hover, .dm-nav a[aria-current="page"] { color: var(--dm-paper); background: rgba(255, 255, 255, 0.06); }

.dm-actions { display: flex; align-items: center; gap: 6px; }
.dm-iconbtn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--dm-radius);
    background: transparent; border: 0; color: var(--dm-paper); font-size: 1.1rem;
    cursor: pointer; text-decoration: none; transition: background-color .2s;
}
.dm-iconbtn:hover { background: rgba(255, 255, 255, 0.08); }
.dm-iconbtn .fa-whatsapp { color: var(--dm-whatsapp); font-size: 1.25rem; }

.dm-cart-badge {
    position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--dm-signal); color: var(--dm-signal-ink);
    border-radius: 9px; font: 700 0.7rem/18px var(--dm-body); text-align: center;
}
.dm-cart-badge.hidden { display: none; }

/* Search row (opens from the magnifier on phones, always visible on desktop) */
.dm-search { display: none; padding: 0 0 12px; }
.dm-search.is-open { display: block; }
.dm-search form { display: flex; gap: 8px; }
.dm-search input {
    flex: 1; min-width: 0; height: 46px; padding: 0 16px;
    background: var(--dm-mat); color: var(--dm-paper);
    border: 1.5px solid var(--dm-line-strong); border-radius: var(--dm-radius);
    font: 400 1rem var(--dm-body);
}
.dm-search input::placeholder { color: var(--dm-dim); }
.dm-search input:focus { border-color: var(--dm-signal); outline: none; }
.dm-search button { height: 46px; padding: 0 18px; }

@media (min-width: 960px) {
    .dm-nav { display: flex; }
    .dm-menu-btn { display: none; }
}

/* ---------- Offer banner (daily offers) ---------- */
.dm-offer { background: var(--dm-mat); border-bottom: 1px solid var(--dm-line); }
.dm-offer-inner {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding-block: 10px; font-size: 0.92rem;
}
.dm-offer-tag { font-weight: 600; color: var(--dm-signal); }
.dm-offer-title { color: var(--dm-paper); font-weight: 600; }
.dm-offer-price { color: var(--dm-paper); font-variant-numeric: tabular-nums; }
.dm-offer-price s { color: var(--dm-dim); margin-right: 6px; }
.dm-offer-left { color: var(--dm-dust); }
.dm-offer-link { margin-left: auto; color: var(--dm-signal); font-weight: 600; text-decoration: none; white-space: nowrap; }
.dm-offer-link:hover { text-decoration: underline; }
.dm-offer-close {
    background: none; border: 0; color: var(--dm-dim); cursor: pointer;
    width: 32px; height: 32px; border-radius: var(--dm-radius-sm); font-size: 1rem;
}
.dm-offer-close:hover { color: var(--dm-paper); background: rgba(255, 255, 255, 0.08); }

/* ---------- Slide menu + cart (class names are used by the header script) ---------- */
.menu-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
    opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 10000;
}
.menu-overlay.active { opacity: 1; visibility: visible; }

.slide-menu {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
    background: var(--dm-board); border-left: 1px solid var(--dm-line);
    transform: translateX(100%); transition: transform .3s var(--dm-ease);
    z-index: 10001; overflow-y: auto; overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom);
}
.slide-menu.active { transform: translateX(0); }

.menu-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--dm-line);
    font: 700 1.05rem var(--dm-display);
}
.close-menu {
    width: 44px; height: 44px; border: 0; border-radius: var(--dm-radius);
    background: transparent; color: var(--dm-paper); font-size: 1.1rem; cursor: pointer;
}
.close-menu:hover { background: rgba(255, 255, 255, 0.08); }

.slide-menu > a {
    display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 20px;
    color: var(--dm-dust); text-decoration: none; font-size: 1rem;
    transition: background-color .2s, color .2s;
}
.slide-menu > a i { width: 20px; text-align: center; color: var(--dm-dim); }
.slide-menu > a:hover { background: rgba(255, 255, 255, 0.05); color: var(--dm-paper); }
.slide-menu > a:hover i { color: var(--dm-signal); }
.slide-menu .menu-blog-badge {
    margin-left: auto; padding: 2px 8px; border-radius: 10px;
    background: var(--dm-signal-wash); color: var(--dm-signal); font-size: 0.72rem; font-weight: 600;
}
.menu-divider { height: 1px; background: var(--dm-line); margin: 8px 20px; }
.menu-search { padding: 14px 20px 6px; }
.menu-search form { display: flex; gap: 8px; }
.menu-search input {
    flex: 1; min-width: 0; height: 46px; padding: 0 14px;
    background: var(--dm-mat); color: var(--dm-paper);
    border: 1.5px solid var(--dm-line-strong); border-radius: var(--dm-radius); font: 400 1rem var(--dm-body);
}
.menu-search input:focus { border-color: var(--dm-signal); outline: none; }
.menu-search button { width: 46px; height: 46px; border: 0; border-radius: var(--dm-radius); background: var(--dm-signal); color: var(--dm-signal-ink); font-size: 1rem; cursor: pointer; }

.menu-cart-section { padding: 12px 20px 24px; }
.cart-header-mini { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; }
.cart-header-mini .cart-count { color: var(--dm-dust); font-weight: 500; font-size: 0.9rem; }
.cart-items-container { max-height: 38vh; overflow-y: auto; }
.cart-item-mini { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--dm-line); }
.cart-item-mini:last-child { border-bottom: 0; }
.cart-item-mini .item-name { display: block; font-size: 0.92rem; color: var(--dm-paper); }
.cart-item-mini .item-details { display: flex; gap: 8px; font-size: 0.85rem; color: var(--dm-dust); font-variant-numeric: tabular-nums; }
.cart-item-mini .item-price { color: var(--dm-paper); }
.cart-item-mini .item-remove { cursor: pointer; color: var(--dm-dim); padding: 4px; }
.cart-item-mini .item-remove:hover { color: #ff6b6b; }
.cart-empty { color: var(--dm-dust); padding: 14px 0; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.cart-total-section { display: none; margin-top: 12px; }
.cart-total-section .total-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 600; }
.cart-total-section .total-amount { color: var(--dm-signal); font-variant-numeric: tabular-nums; }
.checkout-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
    background: var(--dm-signal); color: var(--dm-signal-ink); border-radius: var(--dm-radius);
    font-weight: 600; text-decoration: none;
}
.checkout-btn:hover { background: var(--dm-signal-hover); }
.clear-cart-btn {
    width: 100%; margin-top: 8px; min-height: 40px; background: transparent; border: 0;
    color: var(--dm-dim); font: 500 0.9rem var(--dm-body); cursor: pointer;
}
.clear-cart-btn:hover { color: #ff6b6b; }

/* Toast (showToast() is used by several pages) */
.toast-notification {
    position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
    display: flex; align-items: center; gap: 12px; max-width: min(92vw, 420px);
    background: var(--dm-mat); color: var(--dm-paper);
    border: 1px solid var(--dm-line-strong); border-radius: var(--dm-radius);
    padding: 12px 16px; opacity: 0; visibility: hidden; z-index: 10002;
    transition: opacity .25s, transform .25s var(--dm-ease), visibility .25s;
}
.toast-notification.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast-notification .toast-icon { color: var(--dm-ok); }
.toast-notification .toast-close { cursor: pointer; color: var(--dm-dim); margin-left: 4px; }

/* ---------- Typography helpers ---------- */
.dm-h1, .dm-h2, .dm-h3 { font-family: var(--dm-display); letter-spacing: -0.02em; }
.dm-h1 { font-size: clamp(2.1rem, 7.2vw, 3.7rem); line-height: 1.04; font-weight: 700; }
.dm-h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); line-height: 1.12; font-weight: 700; }
.dm-h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 600; }
.dm-lead { font-size: clamp(1.05rem, 2.6vw, 1.2rem); line-height: 1.6; color: var(--dm-dust); max-width: 56ch; }
.dm-prose { max-width: 68ch; }
.dm-prose p + p { margin-top: 1em; }
.dm-prose a { color: var(--dm-signal); }

/* ---------- Hero ---------- */
.dm-hero { padding-block: clamp(28px, 6vw, 72px) clamp(32px, 6vw, 80px); }
.dm-hero-grid { display: grid; gap: 28px; align-items: center; }
.dm-hero-copy .dm-lead { margin-top: 18px; }
.dm-hero-copy .dm-btn-row { margin-top: 26px; }

.dm-proof { list-style: none; display: grid; gap: 10px; margin-top: 28px; font-size: 0.95rem; color: var(--dm-dust); }
.dm-proof li { display: flex; align-items: center; gap: 10px; }
.dm-proof i { color: var(--dm-signal); width: 18px; text-align: center; }
.dm-proof strong { color: var(--dm-paper); font-weight: 600; }
.dm-proof .fa-star { color: var(--dm-star); }

/* The hero photo sits on its own plaster-coloured wall panel */
.dm-hero-media {
    position: relative; overflow: hidden; border-radius: var(--dm-radius);
    background: var(--dm-plaster-deep); aspect-ratio: 1 / 1;
}
.dm-hero-media img {
    display: block; width: 100%; height: 100%; object-fit: cover;
    animation: dm-settle .5s var(--dm-ease) both;
}
@keyframes dm-settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (min-width: 880px) {
    .dm-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); }
    .dm-hero-media { aspect-ratio: 4 / 5; }
}

/* ---------- Sections ---------- */
.dm-section { padding-block: clamp(40px, 7vw, 88px); }
.dm-section--board { background: var(--dm-board); border-block: 1px solid var(--dm-line); }
.dm-section--wall { background: var(--dm-plaster); color: var(--dm-charcoal); }
.dm-section--wall .dm-lead, .dm-section--wall .dm-muted { color: var(--dm-charcoal-2); }
.dm-section--wall a { color: var(--dm-charcoal); }
.dm-section-head { margin-bottom: clamp(22px, 4vw, 40px); max-width: 62ch; }
.dm-section-head .dm-lead { margin-top: 12px; }
.dm-muted { color: var(--dm-dust); }
.dm-small { font-size: 0.88rem; }

/* ---------- Gallery labels: size + price, set like a museum card ---------- */
.dm-labels { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dm-label {
    display: flex; flex-direction: column; gap: 2px; height: 100%;
    background: #fbf9f5; color: var(--dm-charcoal); text-decoration: none;
    padding: 14px 14px 12px; border: 1px solid var(--dm-wall-line); border-top: 3px solid var(--dm-charcoal);
    border-radius: 2px; box-shadow: 0 1px 0 var(--dm-wall-line);
    transition: transform .2s var(--dm-ease), border-color .2s;
}
a.dm-label:hover { transform: translateY(-2px); border-top-color: #0aa5c8; }
.dm-label-size { font: 700 1.5rem/1.1 var(--dm-display); letter-spacing: -0.01em; }
.dm-label-dims { font-size: 0.85rem; color: var(--dm-charcoal-2); }
.dm-label-price { margin-top: auto; padding-top: 12px; font-size: 0.8rem; color: var(--dm-charcoal-2); }
.dm-label-price b { display: block; font: 700 1.15rem/1.2 var(--dm-body); color: var(--dm-charcoal); font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .dm-labels { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .dm-labels { grid-template-columns: repeat(6, 1fr); } }
.dm-labels--wide { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .dm-labels--wide { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .dm-labels--wide { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Product type tiles ---------- */
.dm-types { list-style: none; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .dm-types { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .dm-types { grid-template-columns: repeat(4, 1fr); } }
.dm-type {
    display: flex; flex-direction: column; height: 100%;
    background: var(--dm-mat); border: 1px solid var(--dm-line); border-radius: var(--dm-radius);
    overflow: hidden; color: inherit; text-decoration: none;
    transition: border-color .2s, transform .2s var(--dm-ease);
}
.dm-type:hover { border-color: var(--dm-line-strong); transform: translateY(-2px); }
.dm-type img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dm-type-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dm-type-body p { color: var(--dm-dust); font-size: 0.92rem; }
.dm-type-from { margin-top: auto; padding-top: 10px; color: var(--dm-paper); font-weight: 600; font-variant-numeric: tabular-nums; }
.dm-type-from small { color: var(--dm-dim); font-weight: 400; }

/* ---------- Options list: name on the left, description on the right, hairlines between ---------- */
.dm-options { list-style: none; border-top: 1px solid var(--dm-line); }
.dm-options > li { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--dm-line); }
.dm-options p { color: var(--dm-dust); max-width: 60ch; }
.dm-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dm-tags li { padding: 4px 12px; border: 1px solid var(--dm-line-strong); border-radius: 999px; font-size: 0.82rem; color: var(--dm-dust); }
@media (min-width: 820px) { .dm-options > li { grid-template-columns: 1fr 1.6fr; gap: 40px; } }

/* ---------- Steps (a real sequence, so numbered) ---------- */
.dm-steps { list-style: none; display: grid; gap: 0; counter-reset: dmstep; }
.dm-steps li {
    position: relative; padding: 18px 0 18px 56px; border-top: 1px solid var(--dm-line);
    counter-increment: dmstep;
}
.dm-steps li:last-child { border-bottom: 1px solid var(--dm-line); }
.dm-steps li::before {
    content: counter(dmstep); position: absolute; left: 0; top: 16px;
    width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--dm-signal);
    display: grid; place-items: center; font: 700 1rem var(--dm-display); color: var(--dm-signal);
}
.dm-steps h3 { font: 600 1.1rem var(--dm-display); }
.dm-steps p { color: var(--dm-dust); margin-top: 4px; max-width: 54ch; }
@media (min-width: 860px) {
    .dm-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
    .dm-steps li { border: 0 !important; padding: 56px 0 0 0; }
    .dm-steps li::before { top: 0; }
    .dm-steps li::after { content: ""; position: absolute; top: 18px; left: 48px; right: -20px; height: 1px; background: var(--dm-line); }
    .dm-steps li:last-child::after { display: none; }
}

/* ---------- Product cards (from the database) ---------- */
.dm-products { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .dm-products { grid-template-columns: repeat(4, 1fr); } }
.dm-product { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.dm-product-img { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--dm-radius); background: var(--dm-mat); }
.dm-product-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dm-product h3 { font: 600 1rem/1.3 var(--dm-body); margin-top: 10px; }
.dm-product-price { color: var(--dm-signal); font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- Reviews ---------- */
.dm-rating { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dm-rating-score { font: 700 clamp(2.4rem, 8vw, 3.4rem)/1 var(--dm-display); }
.dm-stars { color: var(--dm-star); letter-spacing: 2px; }
.dm-reviews { list-style: none; display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 720px) { .dm-reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .dm-reviews { grid-template-columns: repeat(4, 1fr); } }
.dm-review { padding: 18px; background: var(--dm-mat); border: 1px solid var(--dm-line); border-radius: var(--dm-radius); height: 100%; }
.dm-review p { margin: 10px 0; color: var(--dm-paper); font-size: 0.95rem; }
.dm-review footer { color: var(--dm-dust); font-size: 0.85rem; }

/* ---------- Price table (real HTML text, so search engines can read it) ---------- */
.dm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--dm-wall-line); border-radius: var(--dm-radius-sm); background: #fbf9f5; }
.dm-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; color: var(--dm-charcoal); min-width: 420px; }
.dm-table caption { text-align: left; padding: 14px 16px 0; font: 600 1rem var(--dm-display); }
.dm-table th, .dm-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--dm-wall-line); white-space: nowrap; }
.dm-table thead th { font-weight: 600; font-size: 0.82rem; color: var(--dm-charcoal-2); background: var(--dm-plaster-deep); }
.dm-table tbody th { font-weight: 600; }
/* On a phone the table scrolls sideways; keep the style name pinned so each price stays readable */
.dm-table tbody th, .dm-table thead th:first-child { position: sticky; left: 0; z-index: 1; }
.dm-table tbody th { background: #fbf9f5; box-shadow: 1px 0 0 var(--dm-wall-line); }
.dm-table thead th:first-child { background: var(--dm-plaster-deep); box-shadow: 1px 0 0 var(--dm-wall-line); }
.dm-table td.num, .dm-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.dm-table tbody tr:last-child th, .dm-table tbody tr:last-child td { border-bottom: 0; }
.dm-table-note { margin-top: 10px; font-size: 0.85rem; color: var(--dm-charcoal-2); }

/* ---------- FAQ (native details, no script) ---------- */
.dm-faq { border-top: 1px solid var(--dm-line); }
.dm-faq details { border-bottom: 1px solid var(--dm-line); }
.dm-faq summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 0; font: 600 1.05rem/1.35 var(--dm-display);
}
.dm-faq summary::-webkit-details-marker { display: none; }
.dm-faq summary::after { content: "+"; font: 400 1.5rem/1 var(--dm-body); color: var(--dm-signal); flex: none; }
.dm-faq details[open] summary::after { content: "\2212"; }
.dm-faq .dm-faq-a { padding: 0 0 18px; color: var(--dm-dust); max-width: 64ch; }
.dm-section--wall .dm-faq, .dm-section--wall .dm-faq details { border-color: var(--dm-wall-line); }
.dm-section--wall .dm-faq summary::after { color: var(--dm-charcoal); }
.dm-section--wall .dm-faq .dm-faq-a { color: var(--dm-charcoal-2); }

/* ---------- Call to action band ---------- */
.dm-cta { display: grid; gap: 20px; align-items: center; }
.dm-cta .dm-lead { margin-top: 10px; }
@media (min-width: 820px) { .dm-cta { grid-template-columns: 1fr auto; gap: 40px; } }

/* ---------- Breadcrumbs ---------- */
.dm-crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding-block: 16px 0; font-size: 0.85rem; color: var(--dm-dim); }
.dm-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--dm-line-strong); }
.dm-crumbs a { color: var(--dm-dust); text-decoration: none; }
.dm-crumbs a:hover { color: var(--dm-paper); text-decoration: underline; }

/* ---------- Lists and facts ---------- */
.dm-facts { list-style: none; display: grid; gap: 14px; }
.dm-facts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.dm-facts i { color: var(--dm-signal); margin-top: 4px; }
.dm-section--wall .dm-facts i { color: var(--dm-charcoal); }
.dm-two { display: grid; gap: 32px; }
@media (min-width: 860px) { .dm-two { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ---------- Quote form (corporate page) ---------- */
.dm-form { display: grid; gap: 14px; max-width: 560px; }
.dm-field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.dm-field input, .dm-field textarea, .dm-field select {
    width: 100%; min-height: 48px; padding: 12px 14px; font: 400 1rem var(--dm-body);
    background: #fbf9f5; color: var(--dm-charcoal); border: 1.5px solid var(--dm-wall-line); border-radius: var(--dm-radius-sm);
}
.dm-field textarea { min-height: 120px; resize: vertical; }
.dm-field input:focus, .dm-field textarea:focus, .dm-field select:focus { border-color: var(--dm-charcoal); outline: none; }
.dm-field .dm-hint { margin-top: 6px; font-size: 0.85rem; color: var(--dm-charcoal-2); }
.dm-notice { padding: 14px 16px; border-radius: var(--dm-radius-sm); font-size: 0.95rem; }
.dm-notice--ok { background: #e3f4e6; color: #14532d; border: 1px solid #b7e0be; }
.dm-notice--err { background: #fde8e8; color: #7f1d1d; border: 1px solid #f5bcbc; }

/* ---------- Footer ---------- */
.dm-footer { background: var(--dm-board); border-top: 1px solid var(--dm-line); margin-top: 0; }
.dm-footer-grid { display: grid; gap: 32px; padding-block: 48px 28px; }
@media (min-width: 720px) { .dm-footer-grid { grid-template-columns: 1.1fr 1.2fr 1.1fr; align-items: start; } }
.dm-footer h2 { font: 600 0.95rem var(--dm-display); margin-bottom: 14px; color: var(--dm-paper); }
.dm-footer ul { list-style: none; display: grid; gap: 4px; }
.dm-footer a:not(.dm-btn):not(.dm-logo) { color: var(--dm-dust); text-decoration: none; display: inline-block; padding: 6px 0; }
.dm-footer a:not(.dm-btn):not(.dm-logo):hover { color: var(--dm-paper); text-decoration: underline; }
.dm-footer-brand p { color: var(--dm-dust); max-width: 36ch; margin: 12px 0 18px; }
.dm-footer address { font-style: normal; color: var(--dm-dust); line-height: 1.7; margin: 10px 0; }
.dm-footer-contact li { display: flex; gap: 10px; align-items: center; }
.dm-footer-contact i { width: 18px; text-align: center; color: var(--dm-dim); }
.dm-footer-contact .fa-whatsapp { color: var(--dm-whatsapp); }
.dm-social { display: flex; gap: 10px; margin-top: 16px; }
.dm-footer .dm-social a:not(.dm-btn):not(.dm-logo) {
    width: 46px; height: 46px; display: grid; place-items: center; padding: 0; line-height: 1;
    border: 1px solid var(--dm-line-strong); border-radius: 50%; color: var(--dm-paper); font-size: 1.2rem;
    transition: background-color .2s var(--dm-ease), border-color .2s var(--dm-ease), color .2s var(--dm-ease);
}
.dm-footer .dm-social a:not(.dm-btn):not(.dm-logo):hover { text-decoration: none; color: #fff; }
.dm-footer .dm-social a[aria-label="Facebook"]:hover { background: #1877f2; border-color: #1877f2; }
.dm-footer .dm-social a[aria-label="Instagram"]:hover { background: #d62976; border-color: #d62976; }
.dm-footer .dm-social a[aria-label="TikTok"]:hover { background: #000; border-color: #25f4ee; }
.dm-footer .dm-social a[aria-label="X"]:hover { background: #000; border-color: #fff; }
.dm-footer .dm-social a i { pointer-events: none; }

/* Footer link groups: closed until tapped, so the footer stays short */
.dm-fold { border-bottom: 1px solid var(--dm-line); }
.dm-fold:first-child { border-top: 1px solid var(--dm-line); }
.dm-fold summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; list-style: none; font: 600 0.95rem var(--dm-display); color: var(--dm-paper); }
.dm-fold summary::-webkit-details-marker { display: none; }
.dm-fold summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--dm-dim); border-bottom: 2px solid var(--dm-dim); transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--dm-ease); flex: none; }
.dm-fold[open] summary::after { transform: rotate(-135deg); }
.dm-fold summary:focus-visible { outline: 2px solid var(--dm-signal); outline-offset: 2px; }
.dm-fold ul { padding-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .dm-fold summary::after, .dm-footer .dm-social a { transition: none; } }
.dm-footer-bottom { border-top: 1px solid var(--dm-line); padding-block: 18px; color: var(--dm-dim); font-size: 0.88rem; }

#backToTop {
    position: fixed; right: 16px; bottom: 88px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--dm-mat); color: var(--dm-paper); border: 1px solid var(--dm-line-strong);
    cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 900;
}
#backToTop.show { opacity: 1; visibility: visible; }
@media (min-width: 960px) { #backToTop { bottom: 24px; } }

/* ---------- Phone action dock: the two things a visitor does, always in reach ---------- */
.dm-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
    display: flex; gap: 10px; padding: 10px var(--dm-gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(8, 9, 12, 0.96); border-top: 1px solid var(--dm-line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.dm-dock .dm-btn { flex: 1; min-height: 46px; padding: 0 12px; font-size: 0.95rem; }
body.has-dock { padding-bottom: 72px; }
@media (min-width: 960px) {
    .dm-dock { display: none; }
    body.has-dock { padding-bottom: 0; }
}

/* ---------- Cart ---------- */
.dm-empty { margin-top: 28px; padding: clamp(28px, 6vw, 56px); background: var(--dm-board); border: 1px solid var(--dm-line); border-radius: var(--dm-radius); }
.dm-cart { display: grid; gap: 28px; margin-top: 24px; align-items: start; }
@media (min-width: 900px) { .dm-cart { grid-template-columns: 1fr 360px; gap: 40px; } }
.dm-cart-lines { list-style: none; border-top: 1px solid var(--dm-line); }
.dm-cart-line {
    display: grid; grid-template-columns: 72px 1fr auto; gap: 6px 14px; align-items: center;
    padding: 18px 0; border-bottom: 1px solid var(--dm-line);
}
.dm-cart-img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--dm-radius-sm); background: var(--dm-mat); grid-row: span 2; }
.dm-cart-img--none { display: grid; place-items: center; color: var(--dm-dim); font-size: 1.4rem; }
.dm-cart-name { font: 600 1rem/1.3 var(--dm-body); }
.dm-cart-detail, .dm-cart-unit { color: var(--dm-dust); font-size: 0.88rem; }
.dm-cart-total { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.dm-cart-remove { background: none; border: 0; color: var(--dm-dim); width: 44px; height: 44px; border-radius: var(--dm-radius); cursor: pointer; justify-self: end; }
.dm-cart-remove:hover { color: #ff6b6b; background: rgba(255, 255, 255, 0.06); }
.dm-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--dm-line-strong); border-radius: var(--dm-radius); width: max-content; }
.dm-qty-btn { width: 44px; height: 44px; background: none; border: 0; color: var(--dm-paper); font: 500 1.2rem var(--dm-body); cursor: pointer; border-radius: var(--dm-radius); }
.dm-qty-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.dm-qty-btn:disabled { color: var(--dm-dim); cursor: not-allowed; }
.dm-qty-val { min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) {
    .dm-cart-line { grid-template-columns: 88px 1fr auto 110px 44px; }
    .dm-cart-img { width: 88px; height: 88px; grid-row: auto; }
}
.dm-linkbtn { background: none; border: 0; color: var(--dm-dust); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.dm-linkbtn:hover { color: var(--dm-paper); }
.dm-summary { background: var(--dm-board); border: 1px solid var(--dm-line); border-radius: var(--dm-radius); padding: 22px; position: sticky; top: calc(var(--dm-header-h) + 16px); }
.dm-summary-rows { margin: 16px 0 6px; }
.dm-summary-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--dm-line); }
.dm-summary-rows dt { color: var(--dm-dust); }
.dm-summary-rows dd { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.dm-summary-note { margin-top: 12px; font-size: 0.86rem; color: var(--dm-dust); }

/* ---------- Motion: respect the visitor's setting ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Product list (pages/products.php) ---------- */
.dm-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; margin: 22px 0 28px; padding: 16px; background: var(--dm-board); border: 1px solid var(--dm-line); border-radius: var(--dm-radius); }
.dm-filters label { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--dm-dust); }
.dm-filters select { min-height: 44px; padding: 0 12px; background: var(--dm-mat); color: var(--dm-paper); border: 1px solid var(--dm-line-strong); border-radius: var(--dm-radius-sm); font: inherit; }
.dm-filters select:focus-visible { outline: 2px solid var(--dm-signal); outline-offset: 2px; }
.dm-filters-actions { display: flex; gap: 10px; }
.dm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--dm-board); border: 1px solid var(--dm-line); border-radius: var(--dm-radius); overflow: hidden; transition: border-color .2s var(--dm-ease); }
.product-card:hover { border-color: var(--dm-line-strong); }
.product-images { position: relative; aspect-ratio: 1 / 1; background: var(--dm-mat); overflow: hidden; }
.product-images img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.product-images img.active { opacity: 1; }
.image-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px 10px; background: rgba(8, 9, 12, .6); border-radius: 20px; }
.image-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; }
.image-dots .dot.active { background: var(--dm-signal); }
.product-badge { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 10px; border-radius: 4px; font-size: .72rem; font-weight: 700; color: #fff; }
.product-info { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.product-info h2 { font: 600 1.05rem/1.3 var(--dm-display); letter-spacing: -0.01em; }
.product-info h2 a { color: var(--dm-paper); text-decoration: none; }
.product-info h2 a:hover { color: var(--dm-signal); }
.product-meta { margin-top: 4px; font-size: .82rem; color: var(--dm-dim); }
.variant-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.variant-btn { min-height: 44px; padding: 0 12px; background: transparent; color: var(--dm-dust); border: 1px solid var(--dm-line-strong); border-radius: var(--dm-radius-sm); font: 500 .82rem var(--dm-body); cursor: pointer; }
.variant-btn:hover { color: var(--dm-paper); border-color: var(--dm-paper); }
.variant-btn.active { color: var(--dm-signal-ink); background: var(--dm-signal); border-color: var(--dm-signal); }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.current-price { font: 700 1.25rem var(--dm-body); font-variant-numeric: tabular-nums; }
.old-price { font-size: .85rem; text-decoration: line-through; color: var(--dm-dim); }
.product-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 14px; }
.product-actions .dm-btn:first-child { flex: 1; }
.product-links { display: flex; gap: 14px; margin-top: 10px; font-size: .82rem; }
.product-links a { color: var(--dm-signal); }
.dm-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.dm-pager a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; color: var(--dm-paper); border: 1px solid var(--dm-line-strong); border-radius: var(--dm-radius-sm); text-decoration: none; }
.dm-pager a:hover { border-color: var(--dm-paper); }
.dm-pager a.is-current { background: var(--dm-signal); border-color: var(--dm-signal); color: var(--dm-signal-ink); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .product-images img { transition: none; } }
/* ---------- Free tools (price calculator, photo checker) ---------- */
.dm-tool { display: grid; gap: 28px; }
@media (min-width: 880px) { .dm-tool { grid-template-columns: minmax(280px, 380px) 1fr; align-items: start; } }
.dm-tool-form { max-width: none; }
.dm-field select { width: 100%; min-height: 48px; padding: 0 14px; font: 400 1rem var(--dm-body); background: #fbf9f5; color: var(--dm-charcoal); border: 1.5px solid var(--dm-wall-line); border-radius: var(--dm-radius-sm); }
.dm-field select:focus { border-color: var(--dm-charcoal); outline: none; }
.dm-field input[type="file"] { padding: 10px; }
.dm-result { background: #fbf9f5; border: 1px solid var(--dm-wall-line); border-radius: var(--dm-radius); padding: clamp(18px, 4vw, 28px); color: var(--dm-charcoal); }
.dm-result-label { font-size: .85rem; color: var(--dm-charcoal-2); }
.dm-result-total { font: 700 clamp(2rem, 7vw, 2.8rem)/1.1 var(--dm-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.dm-result-sub { color: var(--dm-charcoal-2); margin-top: 6px; }
.dm-result-note { margin-top: 12px; font-size: .9rem; color: var(--dm-charcoal-2); }
.dm-result .dm-btn-row { margin-top: 18px; }
.dm-result a:not(.dm-btn) { text-decoration: underline; }
.dm-btn--ghost-wall { background: transparent; color: var(--dm-charcoal); border: 1.5px solid var(--dm-charcoal); }
.dm-btn--ghost-wall:hover { background: var(--dm-charcoal); color: var(--dm-plaster); }
.dm-section--wall .dm-btn--on-wall { color: var(--dm-plaster); }
.dm-section--wall .dm-btn--ghost-wall { color: var(--dm-charcoal); }
.dm-section--wall .dm-btn--ghost-wall:hover { color: var(--dm-plaster); }
.dm-tool-dims { font-size: .8rem; font-weight: 400; color: var(--dm-charcoal-2); }
.dm-manual { margin-top: 4px; }
.dm-manual summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; font-size: .92rem; }
.dm-manual-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dm-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.dm-badge--ok { background: #e3f4e6; color: #14532d; }
.dm-badge--fair { background: #fdf3d6; color: #5c4306; }
.dm-badge--warn { background: #fde6cf; color: #7a3a05; }
.dm-badge--bad { background: #fde8e8; color: #7f1d1d; }
.dm-result .dm-table { background: transparent; min-width: 0; color: var(--dm-charcoal); }
.dm-result .dm-table th, .dm-result .dm-table td { color: var(--dm-charcoal); }
.dm-result .dm-table th[scope="row"] { position: static; background: transparent; }
/* ---------- Free tools hub ---------- */
.dm-tools-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.dm-tool-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; background: var(--dm-mat); border: 1px solid var(--dm-line); border-radius: var(--dm-radius); color: var(--dm-paper); text-decoration: none; transition: border-color .2s var(--dm-ease); }
.dm-tool-card:hover { border-color: var(--dm-signal); }
.dm-tool-card > i { font-size: 1.4rem; color: var(--dm-signal); }
.dm-tool-card p { color: var(--dm-dust); font-size: .95rem; }
.dm-tool-go { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--dm-signal); }
/* ---------- Catalogue ---------- */
.dm-cat-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.dm-cat-card { display: flex; flex-direction: column; background: var(--dm-mat); border: 1px solid var(--dm-line); border-radius: var(--dm-radius); overflow: hidden; break-inside: avoid; }
.dm-cat-media { position: relative; aspect-ratio: 4 / 3; background: var(--dm-night); }
.dm-cat-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-cat-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 4px; font-size: .75rem; font-weight: 700; background: var(--dm-signal); color: var(--dm-signal-ink); }
.dm-cat-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px; }
.dm-cat-desc { color: var(--dm-dust); font-size: .92rem; }
.dm-cat-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 6px; margin: 4px 0 6px; }
.dm-cat-prices div { background: var(--dm-night); border: 1px solid var(--dm-line); border-radius: 6px; padding: 6px 4px; text-align: center; }
.dm-cat-prices dt { font-size: .75rem; color: var(--dm-dim); }
.dm-cat-prices dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .92rem; }
.dm-cat-body .dm-btn { margin-top: auto; }
@media print {
    .dm-header, .dm-footer, .dm-dock, .slide-menu, .menu-overlay, .dm-btn-row, .dm-crumbs, .dm-cat-body .dm-btn { display: none !important; }
    body, .dm-section, .dm-section--board, .dm-section--wall { background: #fff !important; color: #000 !important; }
    .dm-cat-card { background: #fff; border-color: #bbb; }
    .dm-cat-prices div { background: #fff; border-color: #bbb; }
    .dm-cat-prices dt, .dm-cat-desc, .dm-lead { color: #333 !important; }
}