/*
 * wm-theme.css — Webmarket 2026 redesign (theme_webmarket_v2).
 * Ported from the client's design handoff (wm-theme.css + design-system tokens).
 * Loaded after webmarket-tokens.css / webmarket-components.css so it wins.
 *
 * Light is the default; dark follows the theme's existing switch, body[theme="dark"],
 * so pages not yet redesigned flip together with the new components.
 * New components use wm-* class names only, so nothing here restyles legacy markup by accident.
 */

/* ── Tokens: light ─────────────────────────────────────────────── */
:root {
    --font-sans: "Inter", "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    /* Numbers (prices, countdowns, counters) use Inter with equal-width digits: JetBrains Mono, the design-system
       choice, draws a dot inside every zero. */
    --font-mono: "Inter", "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --color-primary: #fe6a00;
    --color-primary-hover: #e55f00;
    --color-ring: rgba(254, 106, 0, .30);

    --surface-subtle: #f3f4f6;
    --surface-base: #fff;
    --surface-card: #fff;
    --surface-muted: #f3f4f6;
    --surface-band: #e9ebef;

    --text-primary: #262626;
    --text-secondary: #525252;
    --text-tertiary: #a3a3a3;

    --border-subtle: #f1f1f1;
    --border-default: #e2e8f0;
    --border-strong: #cbd5e1;

    --color-secondary: #fff4eb;
    --color-secondary-hover: #fee1cc;
    --color-secondary-foreground: #fe6a00;

    --hdr-bg: #fff;
    --hdr-fg: #262626;
    --hdr-sub: #525252;
    --hdr-border: #e8e8e8;
    --hdr-btn-bg: #eef0f2;
    --hdr-btn-fg: #262626;
    --search-bg: #fff;
    --search-fg: #262626;
    --logo-color: #1d1d1d;

    /* one colour = one job */
    --wm-cta: #fe6a00;
    --wm-cta-fg: #fff;
    --wm-badge: #dc2626;
    --wm-badge-fg: #fff;

    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, .08), 0 1px 2px -1px rgba(15, 23, 42, .06);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, .10), 0 4px 6px -4px rgba(15, 23, 42, .06);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, .12), 0 8px 10px -6px rgba(15, 23, 42, .08);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    --wm-header-h: 132px;
    --wm-ico-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2 3h2l2.6 12.4a2 2 0 0 0 2 1.6h9.8a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E");
}

/* ── Tokens: dark ──────────────────────────────────────────────── */
body[theme="dark"] {
    --surface-subtle: #141414;
    --surface-base: #1e1e1e;
    --surface-card: #1e1e1e;
    --surface-muted: #2a2a2a;
    --surface-band: #0b0b0b;

    --text-primary: #f1f1f1;
    --text-secondary: #b5b5b5;
    --text-tertiary: #8a8a8a;

    /* Lighter than the cards so every card/section edge reads on the dark page. */
    --border-subtle: #3d3d3d;
    --border-default: #4a4a4a;
    --border-strong: #5a5a5a;

    --color-secondary: rgba(254, 106, 0, .16);
    --color-secondary-hover: rgba(254, 106, 0, .26);
    --color-secondary-foreground: #fe9a4d;

    --hdr-bg: #1d1d1d;
    --hdr-fg: #fff;
    --hdr-sub: rgba(255, 255, 255, .78);
    --hdr-border: #2a2a2a;
    --hdr-btn-bg: rgba(255, 255, 255, .12);
    --hdr-btn-fg: #fff;
    --search-bg: #2b2b2b;
    --search-fg: #f1f1f1;
    --logo-color: #fff;
}

/* ── Layout helpers ────────────────────────────────────────────── */
.wm-container { max-width: 1600px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wm-container { padding: 0 14px; } }

.wm-noscroll { scrollbar-width: none; -ms-overflow-style: none; }
.wm-noscroll::-webkit-scrollbar { display: none; }

@media (max-width: 1024px) { .wm-hide-tablet { display: none !important; } }
@media (max-width: 640px) { .wm-hide-mobile { display: none !important; } }
.wm-only-mobile { display: none !important; }
@media (max-width: 640px) { .wm-only-mobile { display: flex !important; } }
.wm-only-tabletdown { display: none !important; }
@media (max-width: 1024px) { .wm-only-tabletdown { display: flex !important; } }
.wm-tabletdown-block { display: none; }
@media (max-width: 1024px) { .wm-tabletdown-block { display: block; } }

.wm-icon { display: block; flex-shrink: 0; }

/* ── Buttons ───────────────────────────────────────────────────── */
.wm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px;
    font-family: var(--font-sans); font-size: 14px; font-weight: 600; line-height: 1;
    white-space: nowrap; cursor: pointer; text-decoration: none;
    transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.wm-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--color-ring); }
.wm-btn-cta { background: var(--wm-cta); color: var(--wm-cta-fg); }
.wm-btn-cta:hover, .wm-btn-cta:focus { background: var(--color-primary-hover); color: var(--wm-cta-fg); }
.wm-btn-soft { background: var(--hdr-btn-bg); color: var(--hdr-btn-fg); }
.wm-btn-soft:hover { color: var(--hdr-btn-fg); filter: brightness(.97); }
.wm-btn-block { width: 100%; }

/* ── Logo: the company logo uploaded in admin (_wm-logo partial) ── */
.wm-logo { display: block; width: auto; height: 34px; max-width: 170px; object-fit: contain; object-position: left center; }
[dir="rtl"] .wm-logo { object-position: right center; }
.wm-logo-mob { display: none; }
@media (max-width: 640px) { .wm-logo-web { display: none; } .wm-logo-mob { display: block; height: 30px; max-width: 140px; } }

/* ── Top bar: phone · announcement ("|"-separated, rotating) · become a vendor — like the current Webmarket theme ── */
.wm-topbar { background: var(--primary-light, #fff4eb); color: var(--text-primary); font-family: var(--font-sans); font-size: 14px; }
.wm-topbar-row { display: flex; align-items: center; gap: 16px; min-height: 38px; }
.wm-topbar-phone, .wm-topbar-link { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; color: var(--text-primary); text-decoration: none; white-space: nowrap; }
.wm-topbar-phone { direction: ltr; }
.wm-topbar-phone .wm-icon { color: var(--color-primary); }
.wm-topbar-phone:hover, .wm-topbar-link:hover { color: var(--color-primary); }
.wm-topbar .wm-announce-track { flex: 1; min-width: 0; font-weight: 600; }
@media (max-width: 767px) {
    /* As in the current theme: the announcement gets its own row, phone and vendor link share the next one. */
    .wm-topbar-row { flex-wrap: wrap; row-gap: 0; justify-content: space-between; padding-block: 2px; font-size: 13px; }
    .wm-topbar .wm-announce-track { order: -1; flex: 0 0 100%; border-bottom: 1px solid rgba(0, 0, 0, .08); }
    body[theme="dark"] .wm-topbar .wm-announce-track { border-bottom-color: rgba(255, 255, 255, .08); }
    .wm-topbar-phone, .wm-topbar-link { min-height: 32px; }
}
.wm-announce-track { position: relative; height: 34px; overflow: hidden; }
.wm-announce-track:empty { visibility: hidden; }
.wm-announce-item {
    position: absolute; inset: 0 8px; display: flex; align-items: center; justify-content: center; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0; transform: translateY(100%); transition: transform .5s ease, opacity .5s ease;
}
.wm-announce-item.is-active { opacity: 1; transform: none; }
.wm-announce-item.is-leaving { opacity: 0; transform: translateY(-100%); }

/* ── Header ────────────────────────────────────────────────────── */
.wm-header { position: sticky; top: 0; z-index: 1030; font-family: var(--font-sans); }
.wm-header a { text-decoration: none; }
.wm-hdr-top { background: var(--hdr-bg); color: var(--hdr-fg); }
.wm-hdr-row { display: flex; align-items: center; gap: 16px; height: 68px; }
.wm-hdr-burger {
    background: none; border: 0; color: var(--hdr-fg); cursor: pointer; padding: 4px;
    align-items: center; flex-shrink: 0;
}
.wm-hdr-logo { display: flex; align-items: center; flex-shrink: 0; }
.wm-hdr-spacer { flex: 1; }

.wm-hdr-actions { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; color: var(--hdr-fg); }
.wm-hdr-action {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: var(--hdr-fg); background: none; border: 0; padding: 0; cursor: pointer;
    font-family: var(--font-sans);
}
.wm-hdr-action:hover { color: var(--color-primary); }
.wm-hdr-action-label { font-size: 11px; line-height: 1.2; color: var(--hdr-sub); white-space: nowrap; }
.wm-badge {
    position: absolute; top: -5px; inset-inline-end: 2px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 9px; background: var(--wm-badge); color: var(--wm-badge-fg);
    font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
}
.wm-badge:empty, .wm-badge[data-count="0"] { display: none; }

/* light/dark switch */
.wm-theme-toggle {
    width: 54px; height: 28px; border-radius: 14px; border: 0; padding: 3px; cursor: pointer;
    display: flex; align-items: center; flex-shrink: 0; background: #fcd34d; transition: background .25s;
}
.wm-theme-toggle-knob {
    width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #d97706;
    display: grid; place-items: center; transition: transform .25s var(--ease-out);
}
.wm-theme-toggle .wm-ico-moon { display: none; }
body[theme="dark"] .wm-theme-toggle { background: #3a3a3a; }
body[theme="dark"] .wm-theme-toggle-knob { color: #1d1d1d; transform: translateX(26px); }
[dir="rtl"] body[theme="dark"] .wm-theme-toggle-knob, body[theme="dark"][dir="rtl"] .wm-theme-toggle-knob { transform: translateX(-26px); }
body[theme="dark"] .wm-theme-toggle .wm-ico-sun { display: none; }
body[theme="dark"] .wm-theme-toggle .wm-ico-moon { display: block; }

/* account */
.wm-hdr-signin { height: 42px; padding: 0 22px; border-radius: 9px; flex-shrink: 0; }
.wm-hdr-avatar {
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; padding: 0;
    border: 2px solid var(--color-primary); background: var(--surface-muted); cursor: pointer;
}
.wm-hdr-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* search */
.wm-search { position: relative; flex: 1; max-width: 820px; }
.wm-search-form {
    position: relative; z-index: 2; display: flex; align-items: stretch; height: 44px;
    background: var(--search-bg); border: 2px solid var(--color-primary); border-radius: 10px;
}
.wm-search-scope { position: relative; display: flex; }
.wm-search-scope > button {
    display: flex; align-items: center; gap: 6px; height: 100%; max-width: 190px;
    border: 0; border-inline-end: 1px solid var(--hdr-border); background: none; padding: 0 14px;
    color: var(--hdr-sub); font-family: var(--font-sans); font-size: 14px; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wm-search-scope > button::after {
    content: ""; flex-shrink: 0; width: 7px; height: 7px; margin-top: -3px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.wm-search-scope .dropdown-menu { max-height: 360px; overflow-y: auto; }
.wm-search-input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0 14px;
    font-family: var(--font-sans); font-size: 15px; color: var(--search-fg);
}
.wm-search-input::placeholder { color: var(--text-tertiary); }
.wm-search-input::-webkit-search-cancel-button { display: none; }
.wm-search-submit {
    width: 56px; flex-shrink: 0; border: 0; margin: -2px; margin-inline-start: 0;
    border-start-end-radius: 10px; border-end-end-radius: 10px;
    background: var(--color-primary); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.wm-search-submit:hover { background: var(--color-primary-hover); }
.wm-search-mobile { padding-bottom: 12px; }
.wm-search-mobile .wm-search { max-width: none; }
.wm-search-mobile .wm-search-form { height: 42px; }
.wm-search-mobile .wm-search-submit { width: 50px; }

/* suggestion panel — filled by the existing /searched-products ajax */
.wm-search-results {
    position: absolute; inset-inline: 0; top: calc(100% + 10px); z-index: 3;
    display: none; max-height: calc(100vh - 160px); overflow-y: auto; padding: 8px;
    background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 16px;
    box-shadow: var(--shadow-xl);
}
/* custom.js shows the box with an inline display:block and empties it when the query is cleared */
.wm-search-results:empty { display: none !important; }
.wm-sr-empty { padding: 16px; font-size: 14px; color: var(--text-secondary); }
.wm-sr-title {
    padding: 10px 8px 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
    color: var(--text-tertiary); text-transform: uppercase;
}
.wm-sr-item {
    display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: var(--text-primary);
}
.wm-sr-item:hover { background: var(--surface-muted); color: var(--text-primary); }
.wm-sr-thumb {
    width: 44px; height: 44px; border-radius: 9px; overflow: hidden; flex-shrink: 0; background: var(--surface-muted);
}
.wm-sr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wm-sr-name {
    flex: 1; min-width: 0; font-size: 14px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wm-sr-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; white-space: nowrap; }

/* category strip */
.wm-hdr-nav { background: var(--hdr-bg); color: var(--hdr-fg); border-bottom: 1px solid var(--hdr-border); }
.wm-hdr-nav-row { display: flex; align-items: center; gap: 22px; height: 64px; font-size: 14px; }
.wm-hdr-cats { display: flex; align-items: center; gap: 22px; min-width: 0; overflow-x: auto; }
.wm-hdr-cat {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0; max-width: 150px;
    color: var(--text-secondary); font-weight: 600;
}
.wm-hdr-cat:hover, .wm-hdr-cat.is-active { color: var(--color-primary); }
.wm-hdr-cat.is-active { font-weight: 700; }
.wm-hdr-cat-img {
    display: grid; place-items: center; width: 40px; height: 40px; padding: 5px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--surface-muted);
}
.wm-hdr-cat-img img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
body[theme="dark"] .wm-hdr-cat-img img { mix-blend-mode: normal; }
.wm-hdr-cat-hits { background: var(--color-secondary); color: var(--color-primary); }
/* design: names wrap onto two short lines instead of being cut off */
.wm-hdr-cat-name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.1; font-size: 13px; }
.wm-hdr-prefs { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.wm-pref-btn {
    display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 0; border-radius: 9px;
    background: none; color: var(--text-primary); font-family: var(--font-sans); font-size: 14px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
}
.wm-pref-btn:hover { background: var(--surface-muted); }
.wm-pref-btn img { width: 20px; height: auto; border-radius: 2px; }
.wm-pref-btn::after {
    content: ""; width: 6px; height: 6px; margin-top: -3px; margin-inline-start: 2px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}

/* dropdowns opened from the header (language, currency, search scope, account) */
.wm-menu.dropdown-menu {
    min-width: 12rem; padding: 6px; border: 1px solid var(--border-subtle); border-radius: 12px;
    background: var(--surface-card); box-shadow: var(--shadow-lg); font-family: var(--font-sans);
}
.wm-menu.dropdown-menu a, .wm-menu.dropdown-menu .dropdown-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
    font-size: 14px; color: var(--text-primary); background: none;
}
.wm-menu.dropdown-menu a:hover, .wm-menu.dropdown-menu .dropdown-item:hover { background: var(--surface-muted); color: var(--text-primary); }
.wm-menu.dropdown-menu img { width: 20px; height: auto; }

/* mega-menu */
.wm-mega { position: absolute; inset-inline: 0; top: 100%; z-index: 2; display: none; }
.wm-mega.is-open { display: block; }
.wm-mega-scrim { position: fixed; inset: 0; top: var(--wm-header-h); background: rgba(15, 23, 42, .5); }
.wm-mega-panel {
    position: relative; display: flex; min-height: 480px; max-height: calc(100vh - var(--wm-header-h) - 24px);
    background: var(--surface-card); border-radius: 0 0 16px 16px; box-shadow: var(--shadow-xl); overflow: hidden;
}
.wm-mega-list {
    width: 328px; flex-shrink: 0; padding: 12px; overflow-y: auto;
    border-inline-end: 1px solid var(--border-subtle); background: var(--surface-base);
}
.wm-mega-cat {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
    color: var(--text-primary); font-size: 14px; font-weight: 500;
}
.wm-mega-cat.is-active, .wm-mega-cat:hover { color: var(--color-primary); background: var(--surface-muted); }
.wm-mega-cat-icon { width: 22px; height: 22px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.wm-mega-cat-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wm-mega-cat-name { flex: 1; min-width: 0; }
.wm-mega-cat .wm-chev { opacity: .5; }
[dir="rtl"] .wm-chev { transform: scaleX(-1); }
.wm-mega-body { flex: 1; min-width: 0; padding: 26px 36px; overflow-y: auto; }
.wm-mega-pane { display: none; }
.wm-mega-pane.is-active { display: block; }
.wm-mega-pane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.wm-mega-pane-title { margin: 0; font-size: 24px; font-weight: 600; color: var(--text-primary); }
.wm-mega-pane-all { font-size: 14px; font-weight: 600; color: var(--color-primary); white-space: nowrap; }
.wm-mega-subs { columns: 3; column-gap: 36px; }
.wm-mega-sub { break-inside: avoid; margin-bottom: 18px; }
.wm-mega-sub > a { display: block; width: fit-content; font-size: 15px; color: var(--text-secondary); }
.wm-mega-sub > a:hover, .wm-mega-subsub a:hover { color: var(--color-primary); }
.wm-mega-subsub { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.wm-mega-subsub a { font-size: 13px; color: var(--text-tertiary); }

/* mobile drawer */
.wm-drawer { position: fixed; inset: 0; z-index: 1060; display: none; }
.wm-drawer.is-open { display: block; }
.wm-drawer-scrim { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.wm-drawer-panel {
    position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 300px; max-width: 86vw;
    display: flex; flex-direction: column; overflow-y: auto;
    background: var(--surface-card); box-shadow: var(--shadow-xl);
}
.wm-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 18px 14px; border-bottom: 1px solid var(--border-subtle);
}
.wm-drawer-title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.wm-drawer-close { background: none; border: 0; color: var(--text-secondary); cursor: pointer; padding: 0; display: flex; }
.wm-drawer-list { padding: 8px; }
.wm-drawer-cat { border-radius: 10px; }
.wm-drawer-cat > summary {
    display: flex; align-items: center; gap: 14px; padding: 13px 14px; list-style: none; cursor: pointer;
    color: var(--text-primary); font-size: 15px; font-weight: 500;
}
.wm-drawer-cat > summary::-webkit-details-marker { display: none; }
.wm-drawer-cat > summary .wm-chev { opacity: .4; transition: transform .2s; }
.wm-drawer-cat[open] > summary .wm-chev { transform: rotate(90deg); }
.wm-drawer-cat > a { display: flex; align-items: center; gap: 14px; padding: 13px 14px; color: var(--text-primary); font-size: 15px; font-weight: 500; }
.wm-drawer-subs { display: flex; flex-direction: column; padding: 0 14px 8px 50px; }
[dir="rtl"] .wm-drawer-subs { padding: 0 50px 8px 14px; }
.wm-drawer-subs a { padding: 8px 0; font-size: 14px; color: var(--text-secondary); }
.wm-drawer-foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 12px; }
.wm-drawer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-secondary); }
.wm-drawer-link { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* cart trigger: legacy _cart partial (refreshed by updateNavCart), restyled to the design */
.wm-hdr-cart > .dropdown > a {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--hdr-fg);
}
.wm-hdr-cart > .dropdown > a:hover { color: var(--color-primary); }
.wm-hdr-cart > .dropdown > a > .bi { display: none; }
.wm-hdr-cart > .dropdown > a::before {
    content: ""; width: 23px; height: 23px; background: currentColor;
    -webkit-mask: var(--wm-ico-cart) center / contain no-repeat; mask: var(--wm-ico-cart) center / contain no-repeat;
}
.wm-hdr-cart > .dropdown > a::after {
    content: attr(data-label); font-size: 11px; line-height: 1.2; color: var(--hdr-sub);
}
@media (max-width: 1024px) { .wm-hdr-cart > .dropdown > a::after { display: none; } }
.wm-hdr-cart > .dropdown > a > .count {
    position: absolute; top: -5px; inset-inline-end: -2px; inset-inline-start: auto; min-width: 17px; height: 17px; width: auto;
    padding: 0 4px; border-radius: 9px; background: var(--wm-badge); color: var(--wm-badge-fg);
    font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; transform: none;
}
.wm-hdr-cart > .dropdown > a > .count:empty, .wm-hdr-cart > .dropdown > a > .count[data-count="0"] { display: none; }
.wm-hdr-cart .dropdown-menu {
    border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-card);
    box-shadow: var(--shadow-xl); padding: 12px;
}

/* ── Footer ────────────────────────────────────────────────────── */
.wm-footer {
    margin-top: 60px; background: var(--hdr-bg); color: var(--hdr-fg);
    border-top: 1px solid var(--hdr-border); font-family: var(--font-sans);
}
.wm-footer a { text-decoration: none; }
.wm-foot-inner { padding-top: 48px; padding-bottom: 40px; }
.wm-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 1024px) { .wm-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .wm-foot-grid { grid-template-columns: 1fr; } }
.wm-foot-brand .wm-logo { height: 36px; max-width: 180px; margin-bottom: 16px; }
.wm-foot-about { margin: 0 0 18px; max-width: 300px; font-size: 13px; line-height: 1.6; color: var(--hdr-sub); }
.wm-foot-contact { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; font-size: 13px; }
.wm-foot-contact a { color: var(--hdr-fg); font-weight: 600; }
.wm-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.wm-social {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: var(--hdr-btn-bg); color: var(--hdr-fg); font-size: 16px;
}
.wm-social:hover { background: var(--color-primary); color: #fff; }
.wm-social svg path { fill: currentColor; }
.wm-foot-title { margin-bottom: 16px; font-size: 14px; font-weight: 700; color: var(--hdr-fg); }
.wm-foot-links { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; list-style: none; }
.wm-foot-links a, .wm-foot-links button {
    padding: 0; border: 0; background: none; font-family: var(--font-sans); font-size: 13px;
    color: var(--hdr-sub); text-align: start; cursor: pointer;
}
.wm-foot-links a:hover, .wm-foot-links button:hover { color: var(--color-primary); }
.wm-foot-apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.wm-foot-apps img { height: 40px; width: auto; }
.wm-newsletter { margin-top: 24px; }
.wm-newsletter-text { margin: 0 0 10px; font-size: 13px; color: var(--hdr-sub); }
.wm-newsletter-form { display: flex; gap: 8px; }
.wm-input {
    flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--border-default); border-radius: 10px;
    background: var(--surface-base); color: var(--text-primary); font-family: var(--font-sans); font-size: 14px; outline: 0;
}
.wm-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-ring); }
.wm-input::placeholder { color: var(--text-tertiary); }
.wm-foot-bottom {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hdr-border);
}
.wm-foot-copy { font-size: 12px; color: var(--text-tertiary); }
.wm-foot-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.wm-foot-legal a { font-size: 12px; color: var(--text-tertiary); }
.wm-foot-legal a:hover { color: var(--color-primary); }

/* scroll-to-top */
.wm-totop {
    position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 1020;
    width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center;
    background: var(--color-primary); color: #fff; cursor: pointer; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.wm-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 640px) { .wm-totop { bottom: 88px; inset-inline-end: 16px; width: 46px; height: 46px; } }

/* ── Mobile bottom nav (≤640px) ────────────────────────────────── */
.wm-mnav {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 1040; height: 64px; align-items: stretch;
    background: var(--hdr-bg); border-top: 1px solid var(--hdr-border); font-family: var(--font-sans);
    padding-bottom: env(safe-area-inset-bottom);
}
.wm-mnav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--hdr-sub); text-decoration: none; background: none; border: 0; padding: 0; font-family: var(--font-sans);
}
.wm-mnav-item.is-active, .wm-mnav-item:hover { color: var(--color-primary); }
.wm-mnav-icon { position: relative; display: flex; }
.wm-mnav-icon .wm-badge { top: -6px; inset-inline-end: -9px; min-width: 16px; height: 16px; line-height: 16px; }
.wm-mnav-label { font-size: 11px; font-weight: 500; }
@media (max-width: 640px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* WhatsApp bubble (legacy markup): sits in the scroll-to-top slot and moves above it once that shows
   (main.js adds .active at the same 400px scroll point). */
.social-chat-icons { inset-inline-end: 28px; inset-block-end: 24px; }
.social-chat-icons.active { inset-block-end: 88px; }
@media (max-width: 640px) {
    .social-chat-icons { inset-inline-end: 20px; inset-block-end: 88px; }
    .social-chat-icons.active { inset-block-end: 144px; }
}

/* ── Product card ──────────────────────────────────────────────── */
.wm-card {
    position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; cursor: pointer;
    border-radius: 14px; border: 1px solid var(--border-subtle); background: var(--surface-card);
    box-shadow: var(--shadow-sm); font-family: var(--font-sans); text-align: start;
    transition: box-shadow .2s, transform .2s var(--ease-out);
}
.wm-card:hover { box-shadow: var(--shadow-lg); }
.wm-card-media { position: relative; }
.wm-card-gallery {
    display: flex; aspect-ratio: 1; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--surface-subtle);
}
.wm-card-gallery img {
    flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; user-select: none;
}
.wm-card-dots { position: absolute; inset-inline: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.wm-card-dot {
    width: 6px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .6);
    box-shadow: 0 0 4px rgba(0, 0, 0, .3); transition: width .25s var(--ease-out), background .25s;
}
.wm-card-dot.is-active { width: 16px; background: #fff; }
.wm-card-badge {
    position: absolute; inset-inline-start: 12px; top: 12px; z-index: 2; padding: 3px 9px; border-radius: 6px;
    background: var(--color-primary); color: #fff; font-size: 12px; font-weight: 600; line-height: 18px;
}
.wm-card-wish {
    position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 34px; height: 34px;
    display: grid; place-items: center; border: 0; border-radius: 11px; cursor: pointer; color: #737373;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(4px); box-shadow: var(--shadow-sm);
}
.wm-card-wish svg { fill: none; }
.wm-card-wish:hover, .wm-card-wish.wishlist_icon_active { color: var(--color-primary); }
/* custom.css paints .wishlist_icon_active as an orange button with !important; the design keeps the button white */
.wm-card-wish.wishlist_icon_active { background-color: rgba(255, 255, 255, .92) !important; color: var(--color-primary) !important; }
.wm-card-wish.wishlist_icon_active svg { fill: currentColor; }
.wm-card-soldout {
    position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 8px 12px;
    background: rgba(15, 23, 42, .72); color: #fff; font-size: 12px; font-weight: 600; text-align: center;
}
.wm-card .product-gift-badge { inset-block-end: auto; top: 46px; inset-inline-start: 12px; }
.wm-card-timer {
    position: absolute; inset-inline-start: 10px; bottom: 26px; z-index: 2; gap: 2px; padding: 4px 8px; border-radius: 8px;
    background: rgba(15, 23, 42, .78); color: #fff; pointer-events: none;
}
.wm-card-timer .wm-countdown-box { min-width: 0; height: auto; padding: 0; background: none; color: #fff; font-size: 12px; font-weight: 700; }
.wm-card-timer .wm-countdown-sep { font-size: 12px; font-weight: 700; }
.wm-card-timer svg { margin-inline-end: 3px; }
.wm-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px; }
.wm-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.wm-price-now { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 700; color: var(--text-primary); }
.wm-price-was { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-tertiary); text-decoration: line-through; }
.wm-card-title {
    margin: 0; min-height: 40px; font-size: 14px; line-height: 20px; color: var(--text-primary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wm-card-title:hover { color: var(--text-primary); }
.wm-card-meta { display: flex; align-items: center; gap: 6px; min-height: 18px; font-size: 12px; color: var(--text-tertiary); }
.wm-card-rating { display: inline-flex; align-items: center; gap: 3px; }
.wm-card-rating b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; color: var(--text-primary); }
.wm-card-shop { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-card-cta { margin-top: auto; }
@media (max-width: 640px) {
    .wm-card-body { padding: 10px; gap: 8px; }
    .wm-price-now { font-size: 16px; }
    .wm-card-cta .wm-btn { height: 36px; font-size: 13px; padding: 0 10px; }
}

/* Legacy chrome replaced by the redesign */
.settings-sidebar, .back-to-top { display: none !important; }

/* ══ Page sections (homepage and reused on other pages) ══════════ */
.wm-page { padding-top: 16px; padding-bottom: 24px; font-family: var(--font-sans); color: var(--text-primary); }
.wm-page a { text-decoration: none; }
.wm-section { margin-top: 48px; }
.wm-section-sm { margin-top: 16px; }
@media (max-width: 640px) { .wm-section { margin-top: 32px; } }
.wm-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.wm-section-title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--text-primary); }
@media (max-width: 640px) { .wm-section-title { font-size: 20px; } }
.wm-section-sub { margin: 4px 0 0; font-size: 14px; color: var(--text-tertiary); }
.wm-section-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.wm-see-all { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--color-primary); white-space: nowrap; }
.wm-see-all:hover { color: var(--color-primary-hover); }
.wm-arrows { display: flex; gap: 6px; }
@media (max-width: 640px) { .wm-arrows { display: none; } }
.wm-arrow {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-default); background: var(--surface-card);
    color: var(--text-primary); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.wm-arrow:hover { border-color: var(--color-primary); color: var(--color-primary); }
[dir="rtl"] .wm-arrow svg, [dir="rtl"] .wm-see-all svg { transform: scaleX(-1); }

/* full-bleed band (alternate surface) */
.wm-band {
    margin-inline: -24px; padding: 32px 24px; background: var(--surface-band);
    border-image: linear-gradient(var(--surface-band) 0 0) fill 0 // 0 100vmax;
}
@media (max-width: 640px) { .wm-band { margin-inline: -14px; padding: 24px 14px; } }

/* horizontal rail */
.wm-rail { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scroll-behavior: smooth; }
.wm-rail > * { flex: 0 0 248px; scroll-snap-align: start; }
@media (max-width: 640px) { .wm-rail { gap: 10px; } .wm-rail > * { flex-basis: 46%; } }

/* hero */
/* design "gigantic banner": one full-width slider, 380 / 320 / 200px tall (admin hint: 1600 x 400 px) */
.wm-carousel { position: relative; border-radius: 20px; overflow: hidden; background: var(--surface-muted); box-shadow: var(--shadow-sm); }
.wm-banner { height: 380px; }
@media (max-width: 1024px) { .wm-banner { height: 320px; } }
@media (max-width: 640px) { .wm-carousel { border-radius: 14px; } .wm-banner { height: 200px; } }
/* text slide: banner Title / Sub title / Button text on a panel in its Background colour, image on the right */
.wm-slide {
    display: flex !important; color: var(--slide-fg); text-decoration: none;
    background: linear-gradient(120deg, color-mix(in srgb, var(--slide-bg) 35%, #120a06) 0%, var(--slide-bg) 100%);
}
.wm-slide:hover { color: var(--slide-fg); }
.wm-slide-copy { flex: 1; min-width: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: clamp(24px, 4vw, 56px) 88px; }
.wm-slide-title { font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; line-height: 1.06; text-wrap: pretty; }
.wm-slide-sub { font-size: clamp(14px, 1.6vw, 20px); line-height: 1.35; opacity: .85; }
.wm-slide-cta {
    display: inline-flex; align-items: center; gap: 8px; height: 48px; margin-top: 12px; padding: 0 24px; border-radius: 10px;
    background: var(--wm-cta); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: background .15s;
}
.wm-slide:hover .wm-slide-cta { background: var(--color-primary-hover); }
.wm-slide-media { position: relative; width: 46%; flex-shrink: 0; overflow: hidden; }
.wm-slide-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
    .wm-slide-media { display: none; }
    .wm-slide-copy { gap: 6px; padding: 20px 22px; }
    .wm-slide-cta { height: 38px; margin-top: 6px; padding: 0 16px; font-size: 14px; }
}
.wm-carousel-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.wm-carousel-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: block; }
.wm-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wm-carousel-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .9); color: #1c2430; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md);
}
.wm-carousel-nav.is-prev { inset-inline-start: 18px; }
.wm-carousel-nav.is-next { inset-inline-end: 18px; }
[dir="rtl"] .wm-carousel-nav svg { transform: scaleX(-1); }
@media (max-width: 640px) { .wm-carousel-nav { display: none; } }
.wm-carousel-dots { position: absolute; inset-inline: 0; bottom: 18px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.wm-carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .25s var(--ease-out), background .25s; }
.wm-carousel-dot.is-active { width: 26px; background: #fff; }
@media (max-width: 640px) { .wm-carousel-dots { bottom: 10px; } }

/* coupons ("Happy club") */
.wm-coupons { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 20px; background: var(--color-secondary); overflow: hidden; }
.wm-coupons-title { margin: 0; font-size: 20px; font-weight: 700; color: var(--color-secondary-foreground); }
.wm-coupons-text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.wm-coupon-list { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; }
.wm-coupons.is-strip .wm-coupon-list { flex-direction: row; overflow-x: auto; overflow-y: visible; }
.wm-coupons.is-strip .wm-coupon { flex: 0 0 240px; }
.wm-coupon {
    position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; cursor: pointer;
    border: 1px dashed var(--color-primary); border-radius: 12px; background: var(--surface-card);
}
.wm-coupon-value { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.wm-coupon-for { font-size: 12px; color: var(--text-tertiary); }
.wm-coupon-for a { color: var(--text-secondary); font-weight: 600; }
.wm-coupon-code { align-self: flex-start; margin-top: 2px; padding: 2px 8px; border-radius: 6px; background: var(--color-secondary); color: var(--color-secondary-foreground); font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 700; }

/* category pills + tiles */
.wm-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1024px) { .wm-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wm-pills { gap: 10px; } }
.wm-pill { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-sm); color: var(--text-primary); transition: box-shadow .2s; min-width: 0; }
.wm-pill:hover { box-shadow: var(--shadow-lg); color: var(--text-primary); }
.wm-pill-img { width: 104px; height: 104px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: var(--surface-muted); }
.wm-pill-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .wm-pill { gap: 10px; padding: 8px; } .wm-pill-img { width: 52px; height: 52px; border-radius: 10px; } }
.wm-pill-name { min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 640px) { .wm-pill-name { font-size: 14px; } }
.wm-pill-count { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--text-tertiary); }
/* Category rail: 8 tiles visible on desktop, 5 on tablets, 3 and a peek on phones. */
.wm-rail.wm-tiles > * { flex-basis: calc((100% - 7 * 16px) / 8); }
@media (max-width: 1024px) { .wm-rail.wm-tiles > * { flex-basis: calc((100% - 4 * 16px) / 5); } }
@media (max-width: 640px) { .wm-rail.wm-tiles > * { flex-basis: 28%; } }
.wm-tile { display: flex; flex-direction: column; gap: 10px; color: var(--text-primary); min-width: 0; }
.wm-tile:hover { color: var(--color-primary); }
.wm-tile-img { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--surface-card); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-out); }
.wm-tile:hover .wm-tile-img { transform: translateY(-2px); }
.wm-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wm-tile-img.is-icon { display: grid; place-items: center; color: var(--color-primary); }
.wm-tile-name { font-size: 14px; font-weight: 500; text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
@media (max-width: 640px) { .wm-tile-name { font-size: 12px; } }

/* flash-deal band */
.wm-flash {
    position: relative; margin-inline: -24px; padding: 28px 24px 32px; color: #fff; overflow: hidden;
    background: linear-gradient(120deg, #7a1f00 0%, #c2410c 52%, #fe6a00 100%);
}
.wm-flash::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .10) 0 14px, transparent 14px 30px);
}
@media (max-width: 640px) { .wm-flash { margin-inline: -14px; padding: 22px 14px 24px; } }
.wm-flash > * { position: relative; }
.wm-flash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.wm-flash-title-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wm-flash-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 24px; font-weight: 800; color: #fff; }
@media (max-width: 640px) { .wm-flash-title { font-size: 20px; } }
.wm-flash-all { display: flex; align-items: center; gap: 4px; padding-inline-start: 14px; border-inline-start: 1px solid rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .92); font-size: 14px; font-weight: 600; }
.wm-flash-all:hover { color: #fff; }
.wm-countdown { display: flex; align-items: center; gap: 6px; }
.wm-countdown-box {
    min-width: 46px; height: 46px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px;
    background: #fff; color: #1d1d1d; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 800;
}
.wm-countdown-sep { font-size: 20px; font-weight: 800; }
.wm-countdown [data-unit="d"]:not(.is-on), .wm-countdown [data-unit="d"]:not(.is-on) + .wm-countdown-sep { display: none; }
@media (max-width: 640px) { .wm-countdown-box { min-width: 38px; height: 38px; font-size: 16px; } }
.wm-flash .wm-rail > * { flex-basis: 230px; }
@media (max-width: 640px) { .wm-flash .wm-rail > * { flex-basis: 44%; } }
.wm-flash .wm-arrow { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .15); color: #fff; }
.wm-fcard { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 14px; background: var(--surface-card); box-shadow: var(--shadow-md); color: var(--text-primary); }
.wm-fcard:hover { color: var(--text-primary); }
.wm-fcard-img { position: relative; aspect-ratio: 1; background: var(--surface-muted); }
.wm-fcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wm-fcard-off { position: absolute; inset-inline-start: 10px; top: 10px; padding: 3px 8px; border-radius: 6px; background: var(--wm-badge); color: #fff; font-size: 12px; font-weight: 700; }
.wm-fcard-body { display: flex; flex-direction: column; gap: 7px; padding: 12px; }
.wm-fcard-title { height: 36px; font-size: 13px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wm-fcard-rating { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-tertiary); min-height: 16px; }
.wm-fcard-rating b { color: var(--text-primary); }
.wm-fcard-was { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-tertiary); text-decoration: line-through; min-height: 18px; }
.wm-fcard-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 800; }
@media (max-width: 640px) { .wm-fcard-price { font-size: 17px; } }

/* stores */
.wm-store {
    display: flex; flex-direction: column; overflow: hidden; height: 100%; border-radius: 16px;
    background: var(--surface-card); box-shadow: var(--shadow-sm); color: var(--text-primary);
}
.wm-store:hover { color: var(--text-primary); box-shadow: var(--shadow-lg); }
.wm-store-cover { height: 62px; background: linear-gradient(120deg, #c2410c, #fe6a00); }
.wm-store-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wm-store-body { display: flex; flex-direction: column; flex: 1; margin-top: -26px; padding: 0 16px 16px; }
.wm-store-logo { position: relative; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; border: 3px solid var(--surface-card); background: var(--surface-muted); box-shadow: var(--shadow-sm); }
.wm-store-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wm-store-name { display: flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 16px; font-weight: 700; min-width: 0; }
.wm-store-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-store-meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12.5px; color: var(--text-tertiary); }
.wm-store-rating { display: inline-flex; align-items: center; gap: 3px; color: #f59e0b; font-weight: 700; }
.wm-store-flag { align-self: flex-start; margin-top: 8px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--surface-muted); color: var(--text-secondary); }
.wm-store-flag.is-coupon { background: var(--color-secondary); color: var(--color-secondary-foreground); font-family: var(--font-mono); font-variant-numeric: tabular-nums; cursor: copy; }
.wm-store-visit {
    display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; margin-top: auto;
    border: 1px solid var(--border-default); border-radius: 10px; font-size: 13px; font-weight: 600;
}
.wm-store-spacer { flex: 1; min-height: 13px; }
.wm-store:hover .wm-store-visit { border-color: var(--color-primary); color: var(--color-primary); }
.wm-rail.is-stores > * { flex-basis: 232px; }
@media (max-width: 640px) { .wm-rail.is-stores > * { flex-basis: 70%; } }

/* best-deals grid */
.wm-tabs { display: flex; gap: 6px; margin-bottom: 20px; padding-bottom: 2px; border-bottom: 1px solid var(--border-subtle); overflow-x: auto; }
.wm-tab {
    height: 40px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -3px; background: none; cursor: pointer;
    font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--text-secondary); white-space: nowrap;
}
.wm-tab:hover { color: var(--text-primary); }
.wm-tab.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.wm-tab-pane { display: none; }
.wm-tab-pane.is-active { display: block; }
.wm-grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1280px) { .wm-grid5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .wm-grid5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wm-grid5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.wm-ad {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 368px; height: 100%;
    padding: 22px; border-radius: 14px; overflow: hidden; background: #1d1d1d; color: #fff; box-shadow: var(--shadow-sm);
}
.wm-ad:hover { color: #fff; }
.wm-ad > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wm-ad-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 15%, rgba(0, 0, 0, .88) 72%); }
.wm-ad-tag { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; padding: 4px 9px; border-radius: 6px; background: rgba(255, 255, 255, .85); color: #1c2430; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.wm-ad-body { position: relative; z-index: 2; display: block; }
.wm-ad-eyebrow { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .85); }
.wm-ad-headline { margin-bottom: 10px; font-size: 22px; font-weight: 800; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wm-ad-price { margin-bottom: 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wm-ad-price b { font-size: 22px; }
.wm-ad-price del { font-size: 14px; color: rgba(255, 255, 255, .7); }
.wm-ad-cta { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; background: var(--wm-cta); color: var(--wm-cta-fg); font-size: 13px; font-weight: 700; }
@media (max-width: 640px) { .wm-ad { min-height: 280px; padding: 14px; } .wm-ad-headline { font-size: 17px; } }
.wm-more { display: flex; justify-content: center; margin-top: 32px; }
.wm-btn-outline { height: 50px; padding: 0 32px; border: 1px solid var(--border-default); border-radius: 12px; background: var(--surface-card); color: var(--text-primary); font-size: 15px; }
.wm-btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* order again */
.wm-order { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 14px; border-radius: 14px; background: var(--surface-card); box-shadow: var(--shadow-sm); }
.wm-order-head { display: flex; justify-content: space-between; gap: 8px; }
.wm-order-status { font-size: 12px; font-weight: 700; color: var(--color-primary); }
.wm-order-date { font-size: 12px; color: var(--text-tertiary); }
.wm-order-thumbs { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; background: var(--surface-muted); }
.wm-order-thumbs img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--surface-card); }
.wm-order-more { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.wm-order-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.wm-order-meta a { color: var(--text-secondary); }
.wm-order-meta b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-primary); }
.wm-rail.is-orders > * { flex-basis: 280px; }
@media (max-width: 640px) { .wm-rail.is-orders > * { flex-basis: 80%; } }

/* wide banner */
.wm-wide-banner { display: block; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.wm-wide-banner img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .wm-wide-banner { border-radius: 14px; } }

/* ══ Product listing (category / search / offers) ════════════════ */
.wm-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--text-tertiary); }
.wm-crumbs a { color: var(--text-tertiary); }
.wm-crumbs a:hover { color: var(--color-primary); }
.wm-crumbs [aria-current] { color: var(--text-secondary); }
.wm-page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.wm-page-title { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.15; color: var(--text-primary); }
@media (max-width: 640px) { .wm-page-title { font-size: 24px; } }
.wm-page-count { font-size: 14px; color: var(--text-tertiary); }

.wm-catalog { display: grid; grid-template-columns: 298px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1024px) { .wm-catalog { grid-template-columns: minmax(0, 1fr); } }

/* filter panel: sticky sidebar on desktop, slide-in drawer on tablet/mobile */
.wm-filters { position: sticky; top: calc(var(--wm-header-h) + 16px); }
.wm-filters-panel {
    display: flex; flex-direction: column; max-height: calc(100vh - var(--wm-header-h) - 32px);
    background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.wm-filters-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 0; }
.wm-filters-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.wm-filters-body { flex: 1; overflow-y: auto; padding: 18px 20px 20px; scrollbar-width: thin; }
.wm-filters-foot { display: none; }
.wm-link-btn { padding: 0; border: 0; background: none; font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--color-primary); cursor: pointer; }
.wm-link-btn:hover { color: var(--color-primary-hover); }
.wm-filters-close { display: none; }
.wm-filters-open-btn {
    align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--border-default); border-radius: 10px;
    background: var(--surface-card); color: var(--text-primary); font-family: var(--font-sans); font-size: 14px; font-weight: 600; cursor: pointer;
}
.wm-filters-scrim { display: none; }
@media (max-width: 1024px) {
    .wm-filters { position: fixed; inset: 0; z-index: 1060; display: none; }
    .wm-filters.is-open { display: block; }
    .wm-filters-scrim { display: block; position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
    .wm-filters-panel {
        position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 340px; max-width: 90vw; max-height: none;
        border: 0; border-radius: 0; box-shadow: var(--shadow-xl);
    }
    .wm-filters-head { padding: 18px; border-bottom: 1px solid var(--border-subtle); }
    .wm-filters-close { display: flex; padding: 0; border: 0; background: none; color: var(--text-secondary); cursor: pointer; }
    .wm-filters-foot { display: flex; gap: 10px; padding: 16px; border-top: 1px solid var(--border-subtle); }
    .wm-filters-foot .wm-btn { flex: 1; height: 44px; }
}

.wm-filter-group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border-subtle); }
.wm-filter-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.wm-filter-title { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--text-primary); }
.wm-filter-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wm-filter-list.is-clamped { max-height: 330px; overflow: hidden; }
.wm-filter-list ul { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 0; padding: 0; padding-inline-start: 26px; list-style: none; }
.wm-filter-more { margin-top: 12px; }
.wm-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-primary); min-width: 0; }
.wm-check-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wm-check-row .wm-check { flex: 1; }
.wm-check-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wm-check-count { flex-shrink: 0; font-size: 12px; color: var(--text-tertiary); }
.wm-check input[type="checkbox"], .wm-check input[type="radio"] {
    appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 18px; height: 18px; margin: 0;
    border: 1.5px solid var(--border-strong); border-radius: 5px; background: var(--surface-base); cursor: pointer;
    display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.wm-check input[type="radio"] { border-radius: 50%; }
.wm-check input:checked { background: var(--color-primary); border-color: var(--color-primary); }
/* style.css positions a legacy tick image absolutely in ::after; reset it and draw ours */
.wm-check input[type="checkbox"]:checked::after {
    content: ""; position: static; inset: auto; inline-size: 5px; block-size: 9px; width: 5px; height: 9px; margin-top: -2px;
    background: none; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.wm-check input[type="radio"]:checked::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.wm-check input:focus-visible { box-shadow: 0 0 0 3px var(--color-ring); outline: none; }
.wm-stars { display: inline-flex; gap: 1px; color: #f59e0b; }
.wm-stars .is-off { color: var(--border-strong); }
.wm-select {
    width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: 10px;
    background: var(--surface-base); color: var(--text-primary); font-family: var(--font-sans); font-size: 14px;
}
.wm-price-fields { display: flex; align-items: stretch; gap: 10px; }
.wm-price-field { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--surface-base); }
.wm-price-field:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-ring); }
.wm-price-field label { display: block; font-size: 10px; color: var(--text-tertiary); }
.wm-price-field input {
    width: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--text-primary);
    font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; -moz-appearance: textfield;
}
.wm-price-field input::-webkit-outer-spin-button, .wm-price-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wm-price-go { flex-shrink: 0; width: 44px; padding: 0; border-radius: 9px; }
/* legacy dual-thumb slider (script in _filter-product-price) */
.wm-filter-group #price_range_slider { position: relative; width: auto; height: 4px; margin: 22px 9px 4px; border-radius: 2px; background: var(--border-default); }
[dir="rtl"] .wm-filter-group #price_range_slider { right: auto; }
.wm-filter-group #price_range_slider::after { content: none; }
.wm-filter-group #price_range_slider .slider-range { position: absolute; top: 0; height: 100%; border-radius: 2px; background: var(--color-primary); }
.wm-filter-group #price_range_slider .slider-thumb {
    position: absolute; top: 50%; width: 18px; height: 18px; margin-inline-start: -9px; transform: translateY(-50%);
    border: 3px solid var(--color-primary); border-radius: 50%; background: #fff; cursor: grab; box-shadow: var(--shadow-sm);
}

/* results toolbar */
.wm-results-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.wm-results-count { font-size: 14px; color: var(--text-tertiary); }
.wm-results-top { margin-bottom: 12px; }
.wm-sort { display: flex; gap: 6px; margin-bottom: 20px; padding-bottom: 2px; border-bottom: 1px solid var(--border-subtle); overflow-x: auto; }
.wm-sort label { position: relative; margin: 0; flex-shrink: 0; }
.wm-sort input { position: absolute; opacity: 0; pointer-events: none; }
.wm-sort span {
    display: block; height: 40px; line-height: 40px; padding: 0 14px; margin-bottom: -3px; border-bottom: 2px solid transparent;
    font-size: 14px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; cursor: pointer;
}
.wm-sort span:hover { color: var(--text-primary); }
.wm-sort input:checked + span { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.wm-sort input:focus-visible + span { box-shadow: 0 0 0 3px var(--color-ring); border-radius: 6px; }

/* active filter chips (_selected_filter_tags, re-rendered by ajax) */
.wm-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.wm-chips:empty { display: none; }
.wm-chip {
    display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 8px 0 13px; border: 1px solid var(--border-default);
    border-radius: 30px; background: var(--surface-card); color: var(--text-primary); font-family: var(--font-sans); font-size: 13px; font-weight: 500; cursor: pointer;
}
[dir="rtl"] .wm-chip { padding: 0 13px 0 8px; }
.wm-chip:hover { border-color: var(--color-primary); }
.wm-chip svg { color: var(--text-tertiary); }

.wm-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1280px) { .wm-grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wm-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.wm-catalog-wide .wm-grid4 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.wm-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 50px 20px; }
.wm-empty-icon { width: 84px; height: 84px; margin-bottom: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-muted); color: var(--text-tertiary); }
.wm-empty-title { margin-bottom: 8px; font-size: 20px; font-weight: 700; color: var(--text-primary); }
.wm-empty-text { margin-bottom: 20px; font-size: 14px; color: var(--text-tertiary); }

/* pagination (radio inputs named "page", submitted by product-view.js) */
.wm-pages { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; padding: 0; list-style: none; }
.wm-pages label { margin: 0; }
.wm-pages input { position: absolute; opacity: 0; pointer-events: none; }
.wm-page-btn {
    min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--border-default); border-radius: 10px;
    background: var(--surface-card); color: var(--text-primary); font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; cursor: pointer;
}
.wm-page-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.wm-pages .is-current .wm-page-btn { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.wm-pages .is-disabled .wm-page-btn { opacity: .4; cursor: default; pointer-events: none; }
.wm-pages .is-gap .wm-page-btn { border-color: transparent; background: none; cursor: default; }
[dir="rtl"] .wm-page-btn svg { transform: scaleX(-1); }

/* ══ Product page ═════════════════════════════════════════════════ */
.wm-btn-lg { height: 48px; font-size: 15px; border-radius: 12px; }
.wm-btn-dark { background: #1d1d1d; color: #fff; }
.wm-btn-dark:hover, .wm-btn-dark:focus { background: #000; color: #fff; }
body[theme="dark"] .wm-btn-dark { background: #f1f1f1; color: #1d1d1d; }
.wm-btn:disabled { opacity: .5; cursor: not-allowed; }
.wm-panel { padding: 24px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-sm); }
@media (max-width: 640px) { .wm-panel { padding: 16px; } }

.wm-pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 1280px) { .wm-pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .wm-buybox { grid-column: 2; } .wm-pdp-info { grid-column: 2; } .wm-pdp-gallery { grid-row: span 2; } }
@media (max-width: 900px) { .wm-pdp { grid-template-columns: minmax(0, 1fr); gap: 20px; } .wm-buybox, .wm-pdp-info { grid-column: auto; } .wm-pdp-gallery { grid-row: auto; } }
.wm-pdp-form { display: contents; }

/* gallery */
.wm-pdp-gallery { position: sticky; top: calc(var(--wm-header-h) + 16px); min-width: 0; }
@media (max-width: 900px) { .wm-pdp-gallery { position: static; } }
.wm-pdp-main {
    position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 18px; border: 1px solid var(--border-subtle); background: var(--surface-card);
}
.wm-pdp-main .swiper-wrapper, .wm-pdp-main .swiper-slide, .wm-pdp-main .easyzoom, .wm-pdp-main .easyzoom > a { height: 100%; }
.wm-pdp-main .easyzoom > a { display: block; }
.wm-pdp-main .swiper-slide img, .wm-pdp-single { width: 100%; height: 100%; object-fit: contain; display: block; }
.wm-pdp-badge { left: 16px; top: 16px; inset-inline-start: 16px; font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 8px; z-index: 3; }
.wm-pdp-wish { top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 12px; z-index: 3; }
.wm-pdp-preview {
    position: absolute; inset-inline: 0; bottom: 0; z-index: 3; padding: 10px; border: 0; background: rgba(15, 23, 42, .72);
    color: #fff; font-family: var(--font-sans); font-size: 14px; font-weight: 600; cursor: pointer;
}
.wm-pdp-thumbs { position: relative; margin-top: 12px; padding: 0 2px; }
.wm-pdp-thumbs .swiper-slide {
    width: 72px !important; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid var(--border-subtle);
    background: var(--surface-card); cursor: pointer; opacity: .75;
}
.wm-pdp-thumbs .swiper-slide-thumb-active { border-color: var(--color-primary); opacity: 1; }
.wm-pdp-thumbs .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.wm-pdp-thumbs .swiper-button-next, .wm-pdp-thumbs .swiper-button-prev {
    width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--surface-card); box-shadow: var(--shadow-md); color: var(--text-primary);
}
.wm-pdp-thumbs .swiper-button-next::after, .wm-pdp-thumbs .swiper-button-prev::after { font-size: 12px; font-weight: 700; }
.wm-pdp-thumbs .swiper-button-disabled, .wm-pdp-thumbs .swiper-button-lock { opacity: 0 !important; pointer-events: none; }
.wm-pdp-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--text-tertiary); }
.wm-pdp-share > span { margin-inline-end: 4px; }
.wm-pdp-share .wm-social { width: 34px; height: 34px; font-size: 14px; background: var(--surface-card); border: 1px solid var(--border-subtle); color: var(--text-secondary); }
.wm-pdp-share .compare_list_icon_active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
/* custom.css gives .share_btn margin:auto and !important brand colours */
.wm-pdp-share .share_btn {
    margin: 0; border: 1px solid var(--border-subtle) !important; background-color: var(--surface-card) !important; color: var(--text-secondary) !important;
}
.wm-pdp-share .share_btn:hover { background-color: var(--color-primary) !important; border-color: var(--color-primary) !important; color: #fff !important; }

/* info column */
.wm-pdp-info { min-width: 0; }
.wm-pdp-title { margin: 0 0 12px; font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--text-primary); overflow-wrap: anywhere; }
@media (max-width: 640px) { .wm-pdp-title { font-size: 20px; } }
.wm-pdp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 22px; font-size: 13px; color: var(--text-tertiary); }
.wm-pdp-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--text-tertiary); }
.wm-pdp-rating b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-primary); }
.wm-pdp-rating:hover span { color: var(--color-primary); }
.wm-stock { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: #16a34a; }
.wm-stock.is-out { color: var(--wm-badge); }
.wm-pdp-facts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; font-size: 14px; }
.wm-pdp-facts span { color: var(--text-tertiary); margin-inline-end: 8px; }
.wm-pdp-facts a { color: var(--color-primary); margin-inline-end: 8px; }
.wm-option { margin-bottom: 22px; }
.wm-option-title { margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--text-primary); }
.wm-swatches, .wm-chips-select { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
/* custom.css sizes .color_variants with !important radius/border and an outline for the active one */
.wm-swatches label > span.color_variants {
    width: 40px; height: 40px; max-width: none; padding: 4px; border-radius: 50% !important; border: 2px solid var(--border-default) !important;
    outline: none; cursor: pointer; background: var(--surface-card) !important; display: grid; place-items: center; transition: border-color .15s;
}
.wm-swatches label > span.color_variants::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.wm-swatches label > span.color_variant_active, .wm-swatches label input:checked ~ span.color_variants { border-color: var(--color-primary) !important; outline: none; background: var(--surface-card) !important; }
.wm-chips-select label > span {
    min-height: 40px; padding: 0 16px; border: 1.5px solid var(--border-default); border-radius: 10px; background: var(--surface-card);
    color: var(--text-primary); font-family: var(--font-sans); font-size: 14px; font-weight: 600; text-transform: none;
}
.wm-chips-select label > span:hover { border-color: var(--text-tertiary); }
.wm-chips-select label input:checked ~ span { border-color: var(--color-primary); background: var(--color-secondary); color: var(--color-secondary-foreground); }

/* gift + services partials (legacy markup) */
.wm-pdp-info .product-gift-box, .wm-pdp-info .product-services-box {
    margin-bottom: 22px !important; padding: 16px 18px !important; border: 1px solid var(--border-subtle) !important; border-radius: 14px !important;
    background: var(--surface-card); color: var(--text-primary);
}
.wm-pdp-info .product-gift-box .text-dark { color: var(--text-primary) !important; }
.wm-pdp-info .product-service-chip { border-radius: 10px !important; border-color: var(--border-default) !important; color: var(--text-primary) !important; background: var(--surface-card) !important; font-size: 13px; }
.wm-pdp-info .product-service-chip.active { border-color: var(--color-primary) !important; background: var(--color-secondary) !important; color: var(--color-secondary-foreground) !important; }

/* buy box */
.wm-buybox { position: sticky; top: calc(var(--wm-header-h) + 16px); min-width: 0; }
@media (max-width: 900px) { .wm-buybox { position: static; } }
.wm-buybox-card { padding: 22px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-sm); }
.wm-buybox-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.wm-buybox-price .discounted-unit-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 32px !important; font-weight: 800 !important; color: var(--text-primary) !important; line-height: 1.1; }
.wm-buybox-price .product-total-unit-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 17px !important; font-weight: 500 !important; color: var(--text-tertiary) !important; opacity: 1 !important; }
@media (max-width: 640px) { .wm-buybox-price .discounted-unit-price { font-size: 26px !important; } }
.wm-save { display: inline-flex; margin-top: 8px; padding: 4px 10px; border-radius: 8px; background: var(--color-secondary); color: var(--color-secondary-foreground); font-size: 13px; font-weight: 700; }
.wm-qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 14px; font-size: 14px; color: var(--text-secondary); }
.wm-qty { display: flex; align-items: center; height: 40px; border: 1px solid var(--border-default); border-radius: 10px; overflow: hidden; background: var(--surface-base); }
.wm-qty-btn { width: 38px; height: 100%; display: grid; place-items: center; border: 0 !important; border-radius: 0 !important; font-size: 18px; color: var(--text-primary); cursor: pointer; user-select: none; }
.wm-qty-btn:hover { background: var(--surface-muted); }
.wm-qty-btn[disabled] { opacity: .35; pointer-events: none; }
.wm-qty-input { width: 46px; height: 100%; border: 0; outline: 0; background: none; text-align: center; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 700; color: var(--text-primary); }
.wm-total-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 16px; border-radius: 12px; background: var(--surface-muted); font-size: 14px; color: var(--text-secondary); }
.wm-total-row b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 18px; color: var(--text-primary); }
.wm-buy-actions { display: flex; flex-direction: column; gap: 10px; }
.wm-buy-actions.d-flex { flex-direction: column !important; }
.wm-buy-actions .wm-btn { width: 100%; }
.wm-notice { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(220, 38, 38, .1); color: var(--wm-badge); font-size: 13px; font-weight: 600; }
.wm-seller { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-subtle); }
.wm-seller-main { display: flex; align-items: center; gap: 10px; color: var(--text-primary); }
.wm-seller-main:hover { color: var(--text-primary); }
.wm-seller-main:hover .wm-seller-name { color: var(--color-primary); }
.wm-seller-logo { width: 42px; height: 42px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--surface-muted); border: 1px solid var(--border-subtle); }
.wm-seller-logo img { width: 100%; height: 100%; object-fit: cover; }
.wm-seller-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wm-seller-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-seller-sub { font-size: 12px; color: var(--text-tertiary); }
.wm-seller-main .wm-chev { color: var(--text-tertiary); }

/* description */
.wm-pdp-details { padding: 20px 22px; border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--surface-card); }
.wm-pdp-details-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--text-primary); }
.wm-pdp-details .details-content-wrap { overflow: hidden; color: var(--text-secondary); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.wm-pdp-details .details-content-wrap.custom-height { height: var(--height, 280px); }
.wm-pdp-details .rich-editor-html-content > :first-child { margin-top: 0; }
.wm-pdp-details .rich-editor-html-content p:empty,
.wm-pdp-details .rich-editor-html-content p:has(> br:only-child),
.wm-pdp-details .rich-editor-html-content p:has(> span:only-child > br:only-child) { display: none; }
.wm-pdp-details .rich-editor-html-content :is(p, li, div) { font-size: inherit !important; line-height: inherit !important; }
.wm-pdp-details .rich-editor-html-content p { margin: 0 0 10px !important; }
/* Descriptions are often pasted from other sites with inline colours/fonts (dark text even in dark mode) */
.wm-pdp-details .rich-editor-html-content :is(p, span, li, strong, b, em, div, br, font) {
    color: inherit !important; font-family: inherit !important; background-color: transparent !important;
}
.wm-pdp-details .rich-editor-html-content span { font-size: inherit !important; }
.wm-pdp-details .rich-editor-html-content :is(strong, b) { color: var(--text-primary) !important; }
.wm-pdp-details .rich-editor-html-content img { max-width: 100%; height: auto; border-radius: 10px; }
.wm-pdp-details .rich-editor-html-content table { width: 100%; border-collapse: collapse; }
.wm-pdp-details .rich-editor-html-content td, .wm-pdp-details .rich-editor-html-content th { padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); }
.wm-video { position: relative; aspect-ratio: 16 / 9; max-width: 720px; margin: 0 auto 20px; border-radius: 14px; overflow: hidden; }
.wm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wm-more-inline { display: flex; justify-content: center; margin-top: 16px; }
.wm-more-inline .wm-btn-outline { height: 44px; font-size: 14px; }

/* reviews */
.wm-reviews { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .wm-reviews { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.wm-rating-box { text-align: center; }
.wm-rating-big { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 48px; font-weight: 800; line-height: 1; color: var(--text-primary); }
.wm-rating-box > .wm-stars { margin: 10px 0 6px; justify-content: center; }
.wm-rating-count { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border-subtle); font-size: 13px; color: var(--text-tertiary); }
.wm-histogram { display: flex; flex-direction: column; gap: 9px; }
.wm-histogram-row { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-secondary); }
.wm-histogram-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-muted); overflow: hidden; }
.wm-histogram-bar span { display: block; height: 100%; border-radius: 4px; background: #f59e0b; }
.wm-histogram-pct { width: 38px; text-align: end; font-size: 12px; color: var(--text-tertiary); }
.wm-reviews .details-content-wrap { overflow: hidden; }
.wm-reviews .details-content-wrap.custom-height { height: 520px; }
.wm-review-list { display: flex; flex-direction: column; gap: 16px; }
.wm-review { padding: 20px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-sm); }
.wm-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wm-review-avatar {
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center;
    background: var(--surface-muted); color: var(--color-primary); font-weight: 700;
}
.wm-review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wm-review-who { min-width: 0; }
.wm-review-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.wm-review-sub { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--text-tertiary); }
.wm-review-body { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-secondary); overflow-wrap: anywhere; }
.wm-review-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wm-review-photos img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.wm-review-reply { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-muted); }
.wm-review-reply-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--text-primary); }
.wm-review-reply-head span + span { font-weight: 400; color: var(--text-tertiary); }
.wm-review-reply-body { font-size: 13px; color: var(--text-secondary); }

/* ══ Cart & checkout ══════════════════════════════════════════════ */
.wm-checkout-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 22px; }
/* Steps end where the main column ends (.wm-cart: 1fr | 380px summary, 28px gap). */
@media (min-width: 1025px) { .wm-checkout-head { padding-inline-end: calc(380px + 28px); } }
.wm-checkout-head .wm-page-title small { font-size: 20px; font-weight: 500; color: var(--text-tertiary); }
.wm-steps { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; color: var(--text-tertiary); }
ol.wm-steps > li { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; } /* ol.: outranks style.css ol li:not(:last-child) margin */
.wm-steps li + li::before { content: ""; width: 28px; height: 2px; border-radius: 1px; background: var(--border-default); }
.wm-steps a { color: inherit; }
.wm-step-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-default); font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; }
.wm-steps .is-done { color: var(--text-secondary); }
.wm-steps .is-done .wm-step-num { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.wm-steps .is-done + li::before, .wm-steps .is-current::before { background: var(--color-primary); }
.wm-steps .is-current { color: var(--text-primary); }
.wm-steps .is-current .wm-step-num { border-color: var(--color-primary); color: var(--color-primary); }
@media (max-width: 640px) { .wm-steps .wm-step-label { display: none; } .wm-steps .is-current .wm-step-label { display: inline; } }

.wm-cart { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
@media (max-width: 1024px) { .wm-cart { grid-template-columns: minmax(0, 1fr); } }
.wm-cart-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* shop group */
.wm-cart-group { padding: 6px 18px 18px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-sm); }
@media (max-width: 640px) { .wm-cart-group { padding: 4px 12px 12px; } }
.wm-cart-group-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.wm-cart-shop { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; min-width: 0; font-size: 15px; font-weight: 700; color: var(--text-primary); }
.wm-cart-shop > .wm-check, .wm-cart-shop > svg { flex-shrink: 0; }
.wm-cart-shop a { color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-cart-shop a:hover { color: var(--color-primary); }
.wm-cart-warn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: rgba(220, 38, 38, .1); color: var(--wm-badge); font-size: 12px; font-weight: 600; }
.wm-cart-ship-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-tertiary); }
.wm-cart-group .wm-check input { width: 20px; height: 20px; }

/* cart line */
.wm-cart-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.wm-cart-item:last-of-type { border-bottom: 0; }
.wm-cart-item > .wm-check { align-self: flex-start; padding-top: 4px; }
.wm-cart-thumb { position: relative; flex-shrink: 0; width: 104px; height: 104px; border-radius: 12px; overflow: hidden; background: var(--surface-muted); border: 1px solid var(--border-subtle); }
.wm-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wm-cart-thumb.is-off img { opacity: .45; }
.wm-cart-thumb-flag { position: absolute; inset-inline: 0; bottom: 0; padding: 4px; background: rgba(15, 23, 42, .75); color: #fff; font-size: 11px; font-weight: 600; text-align: center; }
@media (max-width: 640px) { .wm-cart-item { gap: 10px; } .wm-cart-thumb { width: 76px; height: 76px; } }
.wm-cart-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wm-cart-name { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wm-cart-name:hover { color: var(--color-primary); }
.wm-cart-meta { font-size: 13px; color: var(--text-tertiary); }
.wm-cart-oos { font-size: 13px; font-weight: 700; color: var(--wm-badge); }
.wm-cart-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 8px; }
.wm-cart-qty { height: 36px; }
.wm-cart-qty .wm-qty-btn { width: 34px; }
.wm-cart-qty .wm-qty-btn img { width: 16px; height: 16px; }
.wm-cart-qty .wm-qty-input { width: 36px; font-size: 14px; }
.wm-cart-remove { padding: 0; border: 0; background: none; font-family: var(--font-sans); font-size: 13px; color: var(--text-tertiary); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.wm-cart-remove:hover { color: var(--wm-badge); }
.wm-cart-price { flex-shrink: 0; text-align: end; }
.wm-cart-price b { display: block; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 800; color: var(--text-primary); white-space: nowrap; }
.wm-cart-price del { display: block; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-tertiary); white-space: nowrap; }
.wm-cart-price span { display: block; margin-top: 2px; font-size: 12px; color: var(--text-tertiary); white-space: nowrap; }
@media (max-width: 640px) {
    .wm-cart-item { flex-wrap: wrap; }
    .wm-cart-price { width: 100%; display: flex; align-items: baseline; gap: 8px; padding-inline-start: 116px; text-align: start; }
    .wm-cart-price b { font-size: 16px; }
}

/* service / gift sub-lines */
.wm-cart-sub { display: flex; align-items: center; gap: 12px; margin: -6px 0 10px; padding: 10px 12px; margin-inline-start: 36px; border-radius: 12px; background: var(--surface-muted); font-size: 13px; }
.wm-cart-sub-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--surface-card); color: var(--color-primary); }
.wm-cart-sub-icon img { width: 100%; height: 100%; object-fit: cover; }
.wm-cart-sub-body { flex: 1; min-width: 0; }
.wm-cart-sub-name { font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-cart-sub-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; padding: 1px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--color-secondary); color: var(--color-secondary-foreground); }
.wm-cart-sub-tag.is-gift { background: rgba(22, 163, 74, .14); color: #16a34a; }
.wm-cart-sub-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
@media (max-width: 640px) { .wm-cart-sub { margin-inline-start: 0; } }

/* free-delivery progress */
.wm-free-delivery { max-width: none; /* custom.css caps .free-delivery-area at 400px */ margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-muted); }
.wm-free-delivery-text { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; font-size: 13px; color: var(--text-secondary); }
.wm-free-delivery-text b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--color-primary); }
.wm-free-delivery.is-earned .wm-free-delivery-text { color: #16a34a; font-weight: 600; }
.wm-free-delivery-bar { height: 6px; border-radius: 3px; background: var(--border-default); overflow: hidden; }
.wm-free-delivery-bar span { display: block; height: 100%; border-radius: 3px; background: var(--color-primary); transition: width .3s; }
.wm-free-delivery.is-earned .wm-free-delivery-bar span { background: #16a34a; }

.wm-cart-note label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.wm-cart-note label span { font-weight: 400; color: var(--text-tertiary); }
.wm-textarea { width: 100%; min-height: 96px; padding: 12px 14px; border: 1px solid var(--border-default); border-radius: 12px; background: var(--surface-base); color: var(--text-primary); font-family: var(--font-sans); font-size: 14px; line-height: 1.5; resize: vertical; outline: 0; }
.wm-textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-ring); }
.wm-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--color-primary); }
.wm-back-link:hover { color: var(--color-primary-hover); }
[dir="rtl"] .wm-back-link svg { transform: scaleX(-1); }

/* order summary (shared by cart, shipping details, payment) */
.wm-summary { position: sticky; top: calc(var(--wm-header-h) + 16px); width: auto !important; max-width: none !important; padding: 0 !important; }
@media (max-width: 1024px) { .wm-summary { position: static; } }
.wm-summary-card { padding: 22px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-sm); color: var(--text-primary); font-family: var(--font-sans); }
.wm-summary-title { margin: 0 0 18px; font-size: 18px; font-weight: 700; }
.wm-summary-notice { margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; background: var(--color-secondary); color: var(--color-secondary-foreground); font-size: 13px; font-weight: 600; }
.wm-summary-rows { display: flex; flex-direction: column; gap: 13px; font-size: 14px; }
.wm-summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wm-summary-row > span:first-child { color: var(--text-secondary); }
.wm-summary-row > :last-child { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; text-align: end; }
.wm-summary-row .is-minus { color: var(--color-primary); }
.wm-summary-row .wm-muted { font-family: var(--font-sans); font-size: 12px; font-weight: 400; color: var(--text-tertiary); }
.wm-pill-ok { display: inline-flex; margin-inline-start: 6px; padding: 1px 8px; border-radius: 6px; background: rgba(22, 163, 74, .14); color: #16a34a; font-size: 11px; font-weight: 700; }
.wm-coupon-form { display: flex; gap: 8px; margin: 18px 0 4px; }
.wm-coupon-form .wm-input { height: 42px; }
.wm-coupon-form .wm-btn { height: 42px; }
.wm-summary-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.wm-summary-total > span { font-size: 16px; font-weight: 700; }
.wm-summary-total > span small { font-size: 12px; font-weight: 400; color: var(--text-tertiary); }
.wm-summary-total b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 800; }
.wm-summary-terms { display: flex; gap: 10px; margin-bottom: 14px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; cursor: pointer; }
.wm-summary-terms a { color: var(--color-primary); font-weight: 600; }
.wm-summary-cta { width: 100%; height: 50px; font-size: 15px; border-radius: 12px; }
.wm-summary-cta.custom-disabled, .wm-summary-cta:disabled { opacity: .5; pointer-events: none; }
.wm-summary-foot { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; font-size: 12px; color: var(--text-tertiary); }
.wm-summary .wm-free-delivery { margin: 0 0 14px; }

/* shipping-details & payment pages: legacy form markup, restyled inside the new frame */
.wm-checkout-panel { padding: 24px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-sm); color: var(--text-primary); }
@media (max-width: 640px) { .wm-checkout-panel { padding: 16px; } }
.wm-checkout-panel h5, .wm-checkout-panel h6 { color: var(--text-primary); }
.wm-checkout-panel .form-control, .wm-checkout-panel .form-select, .wm-checkout-panel .select2-selection {
    min-height: 44px; border: 1px solid var(--border-default) !important; border-radius: 10px !important;
    background-color: var(--surface-base) !important; color: var(--text-primary) !important; font-family: var(--font-sans); font-size: 14px;
}
.wm-checkout-panel .form-control:focus, .wm-checkout-panel .form-select:focus { border-color: var(--color-primary) !important; box-shadow: 0 0 0 3px var(--color-ring) !important; }
.wm-checkout-panel label, .wm-checkout-panel .form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.wm-checkout-panel .card { border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--surface-card); }
.wm-checkout-panel .bg-light { background: var(--surface-muted) !important; }
.wm-checkout-panel .nav-tabs { gap: 8px; border: 0; padding: 4px; border-radius: 12px; background: var(--surface-muted); }
.wm-checkout-panel .nav-tabs .nav-link { border: 0 !important; border-radius: 9px !important; color: var(--text-secondary); font-weight: 600; }
.wm-checkout-panel .nav-tabs .nav-link.active { background: var(--surface-card) !important; color: var(--color-primary) !important; box-shadow: var(--shadow-sm); }
.wm-checkout-panel .btn-primary { background: var(--wm-cta); border-color: var(--wm-cta); border-radius: 10px; font-weight: 600; }
.wm-checkout-panel .btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.wm-checkout-panel .btn-outline-primary { border-radius: 10px; font-weight: 600; }
.wm-checkout-panel .payment-method {
    min-height: 64px; border: 1.5px solid var(--border-default) !important; border-radius: 14px !important; background: var(--surface-card) !important;
    color: var(--text-primary) !important; font-weight: 600; transition: border-color .15s, box-shadow .15s;
}
.wm-checkout-panel .payment-method:hover { border-color: var(--color-primary) !important; box-shadow: 0 0 0 3px var(--color-ring); }
.wm-checkout-panel .option-select-btn label input:checked ~ .payment-method,
.wm-checkout-panel .payment-method.border-selected { border-color: var(--color-primary) !important; background: var(--color-secondary) !important; }

/* ══ Account area (.wm-account on every page that includes _profile-aside) ═════════════════ */
.wm-account { padding: 24px 0 48px; font-family: var(--font-sans); color: var(--text-primary); }
.wm-account > .container { max-width: 1600px; padding: 0 24px; }
@media (max-width: 640px) { .wm-account { padding-top: 16px; } .wm-account > .container { padding: 0 14px; } }
.wm-account > .container > .row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; margin: 0; align-items: start; }
.wm-account > .container > .row > * { width: auto; max-width: none; padding: 0; margin: 0; min-width: 0; }
@media (max-width: 900px) { .wm-account > .container > .row { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

.wm-acct-nav {
    position: sticky; top: calc(var(--wm-header-h) + 16px); padding: 8px; border: 1px solid var(--border-subtle); border-radius: 16px;
    background: var(--surface-card); box-shadow: var(--shadow-sm);
}
.wm-acct-who { display: flex; align-items: center; gap: 12px; padding: 14px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border-subtle); }
.wm-acct-avatar {
    width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center;
    background: var(--color-secondary); color: var(--color-secondary-foreground); font-size: 14px; font-weight: 700;
}
.wm-acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wm-acct-who-text { min-width: 0; }
.wm-acct-name { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-acct-sub { font-size: 12px; color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-acct-links { display: flex; flex-direction: column; gap: 2px; }
.wm-acct-link {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
    color: var(--text-secondary); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.wm-acct-link:hover { background: var(--surface-muted); color: var(--text-primary); }
.wm-acct-link.is-active { background: var(--color-secondary); color: var(--color-secondary-foreground); font-weight: 700; }
.wm-acct-link.is-danger:hover { color: var(--wm-badge); }
.wm-acct-foot { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-subtle); }
@media (max-width: 900px) {
    .wm-acct-nav { position: static; padding: 6px; }
    .wm-acct-who { padding: 8px 10px; margin-bottom: 6px; }
    .wm-acct-links { flex-direction: row; overflow-x: auto; gap: 4px; }
    .wm-acct-link { padding: 8px 12px; }
    .wm-acct-foot { display: none; }
}

/* page title row used by rebuilt account pages */
.wm-acct-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.wm-acct-title { margin: 0; font-size: 28px; font-weight: 700; color: var(--text-primary); }
@media (max-width: 640px) { .wm-acct-title { font-size: 22px; } }

/* legacy account content, restyled in place */
.wm-account .card { border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-sm); color: var(--text-primary); }
.wm-account .card .card { box-shadow: none; border-radius: 12px; }
.wm-account .card-header, .wm-account .card-footer { background: transparent; border-color: var(--border-subtle); }
.wm-account h1, .wm-account h2, .wm-account h3, .wm-account h4, .wm-account h5, .wm-account h6 { color: var(--text-primary); font-family: var(--font-sans); }
.wm-account .text-muted { color: var(--text-tertiary) !important; }
.wm-account .text-primary { color: var(--color-primary) !important; }
.wm-account .bg-light, .wm-account .bg-section, .wm-account .table-light { background: var(--surface-muted) !important; }
.wm-account .table { --bs-table-bg: transparent; color: var(--text-primary); font-size: 14px; }
.wm-account .table thead th { border: 0; background: var(--surface-muted); color: var(--text-secondary); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 12px 14px; }
.wm-account .table thead th:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
.wm-account .table thead th:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }
.wm-account .table td { padding: 14px; border-color: var(--border-subtle); vertical-align: middle; }
.wm-account .btn { border-radius: 10px; font-weight: 600; font-family: var(--font-sans); }
.wm-account .btn-primary { background: var(--wm-cta); border-color: var(--wm-cta); color: #fff; }
.wm-account .btn-primary:hover, .wm-account .btn-primary:focus { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.wm-account .btn-outline-primary { border-color: var(--border-default); color: var(--text-primary); background: var(--surface-card); }
.wm-account .btn-outline-primary:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--surface-card); }
.wm-account .form-control, .wm-account .form-select {
    min-height: 44px; border: 1px solid var(--border-default); border-radius: 10px; background-color: var(--surface-base); color: var(--text-primary); font-size: 14px;
}
.wm-account .form-control:focus, .wm-account .form-select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-ring); }
.wm-account label, .wm-account .form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.wm-account .badge { border-radius: 8px; font-weight: 700; padding: 5px 10px; }
.wm-account .nav-tabs, .wm-account .nav--tabs { border: 0; gap: 6px; }
.wm-account .nav-tabs .nav-link { border: 0; border-radius: 10px; color: var(--text-secondary); font-weight: 600; }
.wm-account .nav-tabs .nav-link.active { background: var(--color-secondary); color: var(--color-secondary-foreground); }
.wm-account .pagination { gap: 6px; }
.wm-account .page-link { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border-default); border-radius: 10px !important; background: var(--surface-card); color: var(--text-primary); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wm-account .page-item.active .page-link { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* order list */
.wm-orders { display: flex; flex-direction: column; gap: 16px; }
.wm-order-card { border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s; }
.wm-order-card:hover { box-shadow: var(--shadow-lg); }
.wm-order-card-main { display: block; padding: 20px 20px 16px; color: var(--text-primary); text-decoration: none; }
.wm-order-card-main:hover { color: var(--text-primary); }
.wm-order-card-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.wm-order-card-date { font-size: 16px; font-weight: 700; }
.wm-order-card-id { margin-top: 2px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text-tertiary); }
.wm-order-card-statuses { display: flex; align-items: center; gap: 8px; }
.wm-order-card-pay { font-size: 12px; font-weight: 600; color: var(--text-tertiary); text-transform: capitalize; }
.wm-order-card-pay.is-unpaid { color: var(--wm-badge); }
.wm-order-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.wm-order-card-thumbs { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wm-order-card-thumbs img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface-muted); border: 1px solid var(--border-subtle); }
.wm-order-card-more { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-muted); font-size: 13px; font-weight: 700; color: var(--text-secondary); }
@media (max-width: 640px) { .wm-order-card-thumbs img, .wm-order-card-more { width: 46px; height: 46px; } .wm-order-card-thumbs img:nth-child(n+4) { display: none; } }
.wm-order-card-total { text-align: end; flex-shrink: 0; }
.wm-order-card-total span { display: block; font-size: 12px; color: var(--text-tertiary); }
.wm-order-card-total b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 700; }
.wm-order-card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--border-subtle); background: var(--surface-base); }
.wm-order-card-shop { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.wm-order-card-shop img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; border: 1px solid var(--border-subtle); }
.wm-order-card-actions { display: flex; gap: 8px; }
.wm-order-card-actions .wm-btn { height: 36px; padding: 0 14px; font-size: 13px; }
@media (max-width: 640px) { .wm-order-card-actions { width: 100%; } .wm-order-card-actions .wm-btn { flex: 1; } }
.wm-acct-pagination { margin-top: 20px; display: flex; justify-content: center; }

/* status pill used by rebuilt account pages */
.wm-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--surface-muted); color: var(--text-secondary); }
.wm-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wm-status.is-progress { background: var(--color-secondary); color: var(--color-secondary-foreground); }
.wm-status.is-success { background: rgba(22, 163, 74, .14); color: #16a34a; }
.wm-status.is-danger { background: rgba(220, 38, 38, .12); color: var(--wm-badge); }
.wm-status.is-info { background: rgba(14, 165, 233, .14); color: #0284c7; }

/* ══ Information pages ════════════════════════════════════════════ */
.wm-doc-tabs { display: flex; gap: 8px; margin-bottom: 28px; overflow-x: auto; }
.wm-doc-tab { flex-shrink: 0; height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid var(--border-default); border-radius: 999px; background: var(--surface-card); color: var(--text-secondary); font-size: 14px; font-weight: 600; white-space: nowrap; }
.wm-doc-tab:hover { color: var(--text-primary); border-color: var(--text-tertiary); }
.wm-doc-tab.is-active { border-color: var(--color-primary); background: var(--color-secondary); color: var(--color-secondary-foreground); }
.wm-doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.wm-doc.is-single { grid-template-columns: minmax(0, 1fr); max-width: 960px; margin: 0 auto; }
@media (max-width: 1024px) { .wm-doc { grid-template-columns: minmax(0, 1fr); } .wm-doc-toc { display: none !important; } }
.wm-doc-toc { position: sticky; top: calc(var(--wm-header-h) + 16px); display: flex; flex-direction: column; gap: 2px; }
.wm-doc-toc-title { padding: 0 12px 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); }
.wm-doc-toc a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text-secondary); line-height: 1.35; }
.wm-doc-toc a:hover, .wm-doc-toc a.is-active { background: var(--surface-muted); color: var(--text-primary); }
.wm-doc-article { padding: 48px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-sm); min-width: 0; }
@media (max-width: 640px) { .wm-doc-article { padding: 22px 18px; } }
.wm-doc-banner { margin: -16px -16px 28px; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 1; background: var(--surface-muted); }
.wm-doc-banner img { width: 100%; height: 100%; object-fit: cover; }
.wm-doc-title { margin: 0 0 8px; font-size: 40px; font-weight: 700; line-height: 1.2; color: var(--text-primary); }
@media (max-width: 640px) { .wm-doc-title { font-size: 28px; } }
.wm-doc-updated { margin: 0 0 28px; font-size: 14px; color: var(--text-tertiary); }
.wm-prose { font-size: 16px; line-height: 1.65; color: var(--text-secondary); overflow-wrap: anywhere; }
.wm-prose :is(h1, h2, h3, h4) { color: var(--text-primary) !important; font-weight: 700; line-height: 1.3; scroll-margin-top: calc(var(--wm-header-h) + 24px); }
.wm-prose h2 { margin: 32px 0 14px; padding-top: 24px; border-top: 1px solid var(--border-subtle); font-size: 24px; }
.wm-prose h3 { margin: 24px 0 10px; font-size: 19px; }
.wm-prose p { margin: 0 0 14px; }
.wm-prose a { color: var(--color-primary); }
.wm-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.wm-prose ul, .wm-prose ol { padding-inline-start: 22px; margin: 0 0 14px; }
.wm-prose p:has(> br:only-child), .wm-prose p:empty { display: none; }
.wm-prose :is(p, span, li, strong, b, em, div, font) { color: inherit !important; font-family: inherit !important; background-color: transparent !important; }
.wm-prose span { font-size: inherit !important; }
.wm-prose :is(strong, b) { color: var(--text-primary) !important; }
.wm-doc-help { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 40px; padding: 22px 24px; border-radius: 12px; background: var(--surface-band); font-size: 14px; color: var(--text-secondary); }
.wm-doc-help a { font-weight: 600; color: var(--color-primary); }

/* help / FAQ */
.wm-help-hero { padding: 48px 32px; border-radius: 20px; background: #232f3e; color: #fff; text-align: center; }
@media (max-width: 640px) { .wm-help-hero { padding: 32px 18px; border-radius: 14px; } }
.wm-help-hero h1 { margin: 0 0 10px; font-size: 40px; font-weight: 800; color: #fff; }
@media (max-width: 640px) { .wm-help-hero h1 { font-size: 28px; } }
.wm-help-hero p { margin: 0 0 24px; font-size: 15px; color: rgba(255, 255, 255, .72); }
.wm-help-search { display: flex; align-items: stretch; max-width: 620px; height: 52px; margin: 0 auto; border-radius: 13px; overflow: hidden; background: #fff; }
.wm-help-search span { display: grid; place-items: center; padding: 0 14px; color: #9ca3af; }
.wm-help-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-family: var(--font-sans); font-size: 16px; color: #1c2430; background: #fff; }
.wm-help-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 32px; }
@media (max-width: 1024px) { .wm-help-body { grid-template-columns: minmax(0, 1fr); } }
.wm-faq { display: flex; flex-direction: column; gap: 12px; }
.wm-faq-item { border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--surface-card); box-shadow: var(--shadow-sm); overflow: hidden; }
.wm-faq-item > summary { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--text-primary); }
.wm-faq-item > summary::-webkit-details-marker { display: none; }
.wm-faq-item > summary span { flex: 1; }
.wm-faq-item > summary svg { flex-shrink: 0; color: var(--text-tertiary); transition: transform .2s; }
.wm-faq-item[open] > summary svg { transform: rotate(180deg); }
.wm-faq-answer { padding: 0 20px 20px; font-size: 14px; line-height: 1.6; color: var(--text-secondary); white-space: pre-line; }
.wm-faq-empty { padding: 32px; text-align: center; color: var(--text-tertiary); }
.wm-help-aside { position: sticky; top: calc(var(--wm-header-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 1024px) { .wm-help-aside { position: static; } }
.wm-help-card-title { margin-bottom: 6px; font-size: 17px; font-weight: 700; color: var(--text-primary); }
.wm-help-card-sub { margin-bottom: 18px; font-size: 13px; color: var(--text-tertiary); }
.wm-contact-links { display: flex; flex-direction: column; gap: 10px; }
.wm-contact-link { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--surface-base); color: var(--text-primary); }
.wm-contact-link:hover { border-color: var(--color-primary); color: var(--text-primary); }
.wm-contact-link-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--color-secondary); color: var(--color-secondary-foreground); }
.wm-contact-link-text { flex: 1; min-width: 0; }
.wm-contact-link-text b { display: block; font-size: 14px; font-weight: 600; }
.wm-contact-link-text span { display: block; font-size: 12px; color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-promo-card { padding: 22px; border-radius: 16px; background: linear-gradient(135deg, #fe6a00, #ff9a3d); color: #fff; }
.wm-promo-card-title { margin-bottom: 6px; font-size: 16px; font-weight: 800; }
.wm-promo-card-text { margin-bottom: 16px; font-size: 13px; opacity: .92; }
.wm-promo-card .wm-btn { background: #fff; color: #fe6a00; }

/* contact page */
.wm-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
@media (max-width: 900px) { .wm-contact-grid { grid-template-columns: minmax(0, 1fr); } }
.wm-contact-tile { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-sm); color: var(--text-primary); min-width: 0; }
.wm-contact-tile b { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--text-tertiary); }
.wm-contact-tile span, .wm-contact-tile a { display: block; font-size: 15px; font-weight: 600; color: var(--text-primary); overflow-wrap: anywhere; }
.wm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
@media (max-width: 640px) { .wm-form-grid { grid-template-columns: minmax(0, 1fr); } }
.wm-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.wm-field .wm-input, .wm-field .wm-textarea { width: 100%; height: 46px; }
.wm-field .wm-textarea { height: auto; }
.wm-field .iti { width: 100%; }
.wm-field-full { grid-column: 1 / -1; }
.wm-form-actions { display: flex; justify-content: flex-end; margin-top: 18px; }

/* guest order tracking */
.wm-track-hero { max-width: 760px; margin: 0 auto; text-align: center; }
.wm-track-hero .wm-empty-icon { margin: 0 auto 16px; }
.wm-track-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-top: 24px; text-align: start; }
.wm-track-form .wm-btn { height: 46px; }
@media (max-width: 640px) { .wm-track-form { grid-template-columns: minmax(0, 1fr); } }

/* ══ Brands & stores directories ═══════════════════════════════════ */
.wm-dir-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wm-dir-search { display: flex; height: 42px; min-width: 260px; border: 1px solid var(--border-default); border-radius: 10px; overflow: hidden; background: var(--surface-base); }
.wm-dir-search:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-ring); }
.wm-dir-search input { flex: 1; min-width: 0; padding: 0 12px; border: 0; outline: 0; background: none; color: var(--text-primary); font-family: var(--font-sans); font-size: 14px; }
.wm-dir-search button { width: 44px; border: 0; background: var(--color-primary); color: #fff; display: grid; place-items: center; cursor: pointer; }
@media (max-width: 640px) { .wm-dir-search { min-width: 0; width: 100%; } .wm-dir-tools { width: 100%; } }
.wm-brandgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1280px) { .wm-brandgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .wm-brandgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .wm-brandgrid { grid-template-columns: minmax(0, 1fr); } }
.wm-brand { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-sm); color: var(--text-primary); min-width: 0; transition: box-shadow .2s; }
.wm-brand:hover { color: var(--text-primary); box-shadow: var(--shadow-lg); }
.wm-brand-logo { width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--border-subtle); display: grid; place-items: center; }
.wm-brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.wm-brand-text { flex: 1; min-width: 0; }
.wm-brand-name { display: block; font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-brand-sub { display: block; margin-top: 3px; font-size: 12px; color: var(--text-tertiary); }
.wm-brand .wm-chev { color: var(--text-tertiary); flex-shrink: 0; }
.wm-storegrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1280px) { .wm-storegrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .wm-storegrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wm-storegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* store page header */
.wm-shop-banner { border-radius: 20px; overflow: hidden; aspect-ratio: 5 / 1; background: linear-gradient(120deg, #c2410c, #fe6a00); box-shadow: var(--shadow-sm); }
.wm-shop-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .wm-shop-banner { aspect-ratio: 3 / 1; border-radius: 14px; } }
.wm-shop-card {
    position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; margin: -40px 24px 0; padding: 20px 22px;
    border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-md);
}
@media (max-width: 640px) { .wm-shop-card { margin: -24px 8px 0; padding: 16px; gap: 14px; } }
.wm-shop-id { display: flex; align-items: center; gap: 16px; flex: 1 1 320px; min-width: 0; }
.wm-shop-logo { position: relative; width: 84px; height: 84px; flex-shrink: 0; border-radius: 18px; overflow: hidden; border: 3px solid var(--surface-card); background: #fff; box-shadow: var(--shadow-sm); }
.wm-shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.wm-shop-logo-flag { position: absolute; inset-inline: 0; bottom: 0; padding: 2px; background: rgba(15, 23, 42, .78); color: #fff; font-size: 10px; font-weight: 700; text-align: center; }
@media (max-width: 640px) { .wm-shop-logo { width: 64px; height: 64px; border-radius: 14px; } }
.wm-shop-name { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 24px; font-weight: 800; color: var(--text-primary); overflow-wrap: anywhere; }
@media (max-width: 640px) { .wm-shop-name { font-size: 19px; } }
.wm-shop-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--text-tertiary); }
.wm-shop-meta b { color: var(--text-primary); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wm-shop-stats { display: flex; gap: 12px; }
.wm-shop-stat { min-width: 110px; padding: 10px 14px; border-radius: 12px; background: var(--surface-muted); text-align: center; }
.wm-shop-stat b { display: block; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 800; color: var(--color-primary); }
.wm-shop-stat span { font-size: 12px; color: var(--text-tertiary); }
@media (max-width: 640px) { .wm-shop-stats { width: 100%; } .wm-shop-stat { flex: 1; min-width: 0; } }
.wm-shop-actions .wm-btn { height: 44px; }
@media (max-width: 640px) { .wm-shop-actions { width: 100%; } .wm-shop-actions .wm-btn { width: 100%; } }
.wm-shop-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.wm-flash-page { margin-top: 0; border-radius: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.wm-flash-page .wm-flash-head { margin: 0; flex: 1 1 420px; }
.wm-flash-page .wm-dir-search { border-color: transparent; }

/* sticky add-to-cart bar (product/_product-details-sticky); show/hide (.active) comes from style.css */
.wm-sticky.product-details-sticky {
    z-index: 1030; padding: 12px 0; border-radius: 20px 20px 0 0; border-top: 1px solid var(--border-subtle);
    background: var(--surface-card) !important; color: var(--text-primary); box-shadow: 0 -10px 30px rgba(15, 23, 42, .1); font-family: var(--font-sans);
}
.wm-sticky-toggle {
    position: absolute; top: -17px; left: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin-left: -17px; padding: 0;
    border: 1px solid var(--border-subtle); border-radius: 50%; background: var(--surface-card); color: var(--text-primary); box-shadow: var(--shadow-md); cursor: pointer; transition: rotate .2s;
}
.wm-sticky-top { padding: 4px 0 4px; margin-bottom: 12px; border-bottom: 1px solid var(--border-subtle); }
.wm-sticky-top .wm-option { margin-bottom: 14px; }
.wm-sticky-top .wm-option-title span { font-weight: 500; color: var(--text-tertiary); }
.wm-sticky-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wm-sticky-product { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.wm-sticky-thumb { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: var(--surface-muted); }
.wm-sticky-info { min-width: 0; }
.wm-sticky-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.wm-sticky-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 2px; }
.wm-sticky-price .discounted-unit-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 18px !important; font-weight: 800 !important; color: var(--text-primary) !important; }
.wm-sticky-price .product-total-unit-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px !important; color: var(--text-tertiary) !important; }
.wm-sticky-price .wm-save { margin: 0; padding: 2px 8px; font-size: 12px; }
.wm-sticky-variant { font-size: 12px; color: var(--text-tertiary); }
.wm-sticky-variant:empty { display: none; }
.wm-sticky-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.wm-sticky-buy, .wm-sticky-buy.d-flex { display: flex; gap: 10px; }
.wm-sticky-buy .wm-btn { min-width: 150px; }
.wm-sticky-notice { margin: 0; }
@media (max-width: 900px) {
    .wm-sticky-buy .wm-btn { min-width: 0; padding: 0 16px; }
}
@media (max-width: 640px) {
    .wm-sticky.product-details-sticky { bottom: calc(64px + env(safe-area-inset-bottom)) !important; padding: 14px 0 12px; }
    .wm-sticky-bottom { flex-direction: column; align-items: stretch; gap: 10px; }
    .wm-sticky-thumb { width: 44px; height: 44px; }
    .wm-sticky-actions { gap: 8px; }
    .wm-sticky-actions .wm-qty { flex-shrink: 0; }
    .wm-sticky-buttons { flex: 1; min-width: 0; }
    .wm-sticky-buy .wm-btn { flex: 1; height: 44px; font-size: 14px; }
}
/* the bar covers the floating buttons' corner while it is open */
body:has(.wm-sticky.active) .social-chat-icons { inset-block-end: calc(var(--wm-sticky-h, 96px) + 20px); }

/* ── Auth modals (login / register) ────────────────────────────── */
.wm-auth-dialog { max-width: 920px; padding: 0 16px; margin-inline: auto; }
.wm-auth.modal-content {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); overflow: hidden;
    border: 0; border-radius: 24px; background: var(--surface-card); color: var(--text-primary); font-family: var(--font-sans); box-shadow: var(--shadow-xl);
}
.wm-auth-aside { display: flex; flex-direction: column; gap: 24px; padding: 40px; background: var(--surface-band); color: var(--text-secondary); }
.wm-auth-logo .wm-logo { height: 32px; }
.wm-auth-mosaic { display: grid; grid-template-columns: repeat(4, 56px); gap: 8px; margin-top: auto; }
.wm-auth-tile { width: 56px; height: 56px; padding: 6px; border-radius: 12px; overflow: hidden; background: var(--surface-card); opacity: .85; }
.wm-auth-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wm-auth-aside-title { margin: 0 0 8px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--text-primary); }
.wm-auth-aside-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-tertiary); }
.wm-auth-perks { display: flex; flex-direction: column; gap: 16px; margin: 0 0 auto; padding: 0; list-style: none; }
.wm-auth-perks li { display: flex; align-items: center; gap: 12px; }
.wm-auth-perk-icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: var(--surface-card); color: var(--color-primary); }
.wm-auth-perks b { display: block; font-size: 14px; font-weight: 500; color: var(--text-primary); }
.wm-auth-perks small { display: block; font-size: 12px; color: var(--text-tertiary); }

.wm-auth-main { position: relative; display: flex; align-items: center; justify-content: center; padding: 48px 40px 32px; }
.wm-auth-close {
    position: absolute; top: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 40px; height: 40px;
    border: 0; border-radius: 50%; background: transparent; color: var(--text-secondary); cursor: pointer; transition: background .15s;
}
.wm-auth-close:hover { background: var(--surface-muted); color: var(--text-primary); }
.wm-auth-card {
    display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 448px;
    padding: 32px; border-radius: 24px; background: var(--surface-subtle); box-shadow: var(--shadow-sm);
}
.wm-auth-tabs { display: flex; padding: 4px; border-radius: 12px; background: var(--surface-muted); }
body[theme="dark"] .wm-auth-tabs { background: var(--surface-base); }
.wm-auth-tab {
    flex: 1; display: grid; place-items: center; height: 40px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
    font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--text-tertiary); transition: background .2s var(--ease-out), color .2s;
}
.wm-auth-tab:hover { color: var(--text-primary); }
.wm-auth-tab.is-active { background: var(--surface-card); color: var(--text-primary); font-weight: 700; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); cursor: default; }
body[theme="dark"] .wm-auth-tab.is-active { background: var(--surface-muted); }
.wm-auth-title { margin: 0 0 8px; font-size: 32px; font-weight: 700; line-height: 1.15; color: var(--text-primary); }
.wm-auth-sub { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.wm-auth-form, .wm-auth-fields { display: flex; flex-direction: column; gap: 16px; }
.wm-auth-form .d-none, .wm-auth-intro .d-none { display: none !important; }
.wm-auth .wm-field-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.wm-auth .wm-field-label, .wm-auth .wm-field label { display: block; margin: 0 0 8px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-secondary); }
.wm-auth .wm-field-head .wm-field-label { margin: 0; }
.wm-auth .wm-field-label small { font-weight: 400; color: var(--text-tertiary); }
.wm-field-link { font-size: 12px; font-weight: 600; color: var(--color-primary); text-decoration: none; }
.wm-field-link:hover { color: var(--color-primary); text-decoration: underline; }
.wm-auth .form-control {
    width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--border-default); border-radius: 12px; box-shadow: none;
    background: var(--surface-base); color: var(--text-primary); font-family: var(--font-sans); font-size: 16px;
    transition: border-color .15s, box-shadow .15s;
}
.wm-auth .form-control::placeholder { color: var(--text-tertiary); }
.wm-auth .form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-ring); outline: 0; }
.wm-auth input[type="tel"].form-control { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.wm-auth input[type="tel"].form-control::placeholder { font-family: var(--font-sans); letter-spacing: 0; }
.wm-auth .iti { display: block; width: 100%; }
.wm-auth .iti__selected-dial-code { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.wm-auth .iti__country-list { border-radius: 12px; border-color: var(--border-default); background: var(--surface-card); color: var(--text-primary); box-shadow: var(--shadow-lg); }
.wm-pass { position: relative; }
.wm-pass .form-control { padding-inline-end: 48px; }
.wm-pass .togglePassword {
    position: absolute; top: 50%; inset-inline-end: 8px; transform: translateY(-50%); display: grid; place-items: center;
    width: 32px; height: 32px; font-size: 18px; color: var(--text-tertiary); cursor: pointer;
}
.wm-pass .togglePassword:hover { color: var(--text-secondary); }
.wm-auth-remember, .wm-auth-agree { font-size: 13px; color: var(--text-secondary); }
.wm-auth-agree { align-items: flex-start; line-height: 1.45; }
.wm-auth-agree input { margin-top: 1px; }
.wm-auth-agree a { color: var(--color-primary); font-weight: 600; }
.wm-auth-submit { width: 100%; height: 48px; border-radius: 12px; font-size: 16px; font-weight: 700; }
.wm-auth-submit:disabled { opacity: .45; cursor: not-allowed; }
.wm-auth-switch {
    align-self: center; padding: 4px; border: 0; background: none; cursor: pointer;
    font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--color-primary);
}
.wm-auth-switch:hover { text-decoration: underline; }
.wm-auth-or { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--text-tertiary); }
.wm-auth-or::before, .wm-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border-default); }
.wm-auth-socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.wm-auth-social {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 1px solid var(--border-default); border-radius: 12px;
    color: var(--text-secondary); font-size: 14px; font-weight: 500; text-decoration: none; transition: background .15s, border-color .15s;
}
.wm-auth-social:hover { background: var(--surface-card); border-color: var(--border-strong); color: var(--text-primary); }
.wm-auth-terms { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-tertiary); text-align: center; }
.wm-auth-terms a { color: var(--text-secondary); text-decoration: underline; }

.wm-field-hint { margin: 6px 0 0; font-size: 12px; color: var(--text-tertiary); }

/* product quick view (opened by the card's add-to-cart button) */
.wm-qv-dialog { max-width: 960px; padding: 0 16px; margin-inline: auto; }
.wm-qv-content.modal-content { border: 0; border-radius: 24px; background: var(--surface-card); color: var(--text-primary); font-family: var(--font-sans); box-shadow: var(--shadow-xl); }
.wm-qv { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 32px; }
.wm-qv-close { z-index: 5; }
.wm-qv-gallery { min-width: 0; }
.wm-qv-info { min-width: 0; padding-top: 8px; }
.wm-qv-form { display: flex; flex-direction: column; }
.wm-qv-shop { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-tertiary); text-decoration: none; }
.wm-qv-shop:hover { color: var(--color-primary); }
.wm-qv-title { margin: 0 40px 10px 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
.wm-qv-title a { color: var(--text-primary); text-decoration: none; }
.wm-qv-title a:hover { color: var(--color-primary); }
.wm-qv .wm-pdp-meta { margin-bottom: 16px; }
.wm-qv-price { margin-bottom: 20px; }
.wm-qv .wm-option { margin-bottom: 18px; }
.wm-qv .wm-qty-row { margin-top: 4px; }
.wm-qv .wm-buy-actions, .wm-qv .wm-buy-actions.d-flex { flex-direction: row !important; }
.wm-qv .wm-buy-actions .wm-btn { flex: 1; }
.wm-qv .wm-qty-btn .bi { font-size: 16px; line-height: 1; }
.wm-qv-more { display: inline-flex; align-self: center; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--color-primary); text-decoration: none; }
.wm-qv-more:hover { color: var(--color-primary); text-decoration: underline; }
@media (max-width: 900px) {
    .wm-qv-dialog { max-width: 560px; }
    .wm-qv { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 60px 24px 24px; }
    .wm-qv-close { top: 10px; }
    .wm-qv-gallery .wm-pdp-main { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
    .wm-qv-modal .modal-dialog { margin: 0; padding: 0; max-width: none; min-height: 100%; align-items: flex-end; }
    .wm-qv-content.modal-content { border-radius: 24px 24px 0 0; max-height: 92dvh; overflow-y: auto; }
    .wm-qv { padding: 56px 16px calc(20px + env(safe-area-inset-bottom)); }    .wm-qv-title { font-size: 19px; }
}

/* order progress tracker (partials/_wm-order-tracker) */
.wm-tracker { display: grid; grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.wm-tracker li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.wm-tracker li + li::before {
    content: ""; position: absolute; top: 19px; right: 50%; width: calc(100% - 40px); margin-right: 20px; height: 3px; border-radius: 2px; background: var(--border-default);
}
[dir="rtl"] .wm-tracker li + li::before { right: auto; left: 50%; margin-right: 0; margin-left: 20px; }
.wm-tracker li.is-done + li.is-done::before { background: var(--color-primary); }
.wm-tracker-dot {
    position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface-muted); color: var(--text-tertiary); transition: background .2s;
}
.wm-tracker li.is-done .wm-tracker-dot { background: var(--color-primary); color: #fff; }
.wm-tracker li.is-current .wm-tracker-dot { box-shadow: 0 0 0 5px var(--color-ring); }
.wm-tracker li.is-stop .wm-tracker-dot { background: var(--wm-badge); box-shadow: 0 0 0 5px rgba(220, 38, 38, .2); }
.wm-tracker li.is-stop::before { background: var(--wm-badge) !important; }
.wm-tracker-label { max-width: 110px; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--text-tertiary); }
.wm-tracker li.is-done .wm-tracker-label { color: var(--text-primary); }
.wm-tracker li.is-stop .wm-tracker-label { color: var(--wm-badge); }
.wm-tracker-time { margin-top: -4px; font-size: 11px; color: var(--text-tertiary); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wm-track-panel { margin-top: 20px; padding: 28px 16px 24px; }

/* order delivery details (partials/_wm-order-addresses) */
.wm-addr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.wm-addr { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--surface-card); }
.wm-addr-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--color-secondary); color: var(--color-primary); }
.wm-addr b { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.wm-addr p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.wm-addr p strong { color: var(--text-primary); font-weight: 600; }

/* my profile (users-profile/profile/user-profile) — design "Account" + "Addresses" */
.wm-acct-title { margin: 0 0 18px; font-size: 28px; font-weight: 700; color: var(--text-primary); }
.wm-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (max-width: 900px) { .wm-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wm-stat { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-card); color: var(--text-primary); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.wm-stat:hover { border-color: var(--color-primary); color: var(--text-primary); transform: translateY(-1px); }
.wm-stat-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 12px; background: var(--color-secondary); color: var(--color-primary); }
.wm-stat-value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.wm-stat-label { font-size: 13px; color: var(--text-tertiary); }
.wm-acct-card { padding: 24px; margin-bottom: 28px; }
.wm-acct-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.wm-acct-card-head h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text-primary); }
.wm-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
@media (max-width: 640px) { .wm-detail-grid { grid-template-columns: minmax(0, 1fr); } }
.wm-detail-grid > div { padding: 12px 14px; border-radius: 12px; background: var(--surface-muted); min-width: 0; }
.wm-detail-wide { grid-column: 1 / -1; }
.wm-detail-grid dt { margin-bottom: 5px; font-size: 12px; font-weight: 500; color: var(--text-tertiary); }
.wm-detail-grid dd { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; color: var(--text-primary); overflow-wrap: anywhere; }
.wm-verify { display: inline-grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; font-size: 12px; font-weight: 800; }
.wm-verify.is-ok { background: rgba(22, 163, 74, .14); color: #16a34a; }
.wm-verify.is-bad { background: rgba(245, 158, 11, .16); color: #b45309; }
.wm-addr-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .wm-addr-cards { grid-template-columns: minmax(0, 1fr); } }
.wm-addr-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-sm); }
.wm-addr-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.wm-addr-card-head b { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.wm-addr-card-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--surface-muted); color: var(--text-secondary); }
.wm-addr-card-text { display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.wm-addr-card-text strong { color: var(--text-primary); font-weight: 600; }
.wm-addr-card-actions { display: flex; gap: 16px; margin-top: auto; }
.wm-addr-card-actions a { font-size: 14px; font-weight: 600; color: var(--color-primary); text-decoration: none; }
.wm-addr-card-actions a.is-muted { color: var(--text-tertiary); }
.wm-addr-card-actions a:hover { text-decoration: underline; }

/* vendor registration (seller-views/auth/register, legacy markup restyled in place) */
.wm-vendor-reg .create-an-account { border-radius: 24px; background: var(--surface-band) !important; }
.wm-vendor-reg .create-an-account-bg-img { opacity: .25; }
.wm-vendor-reg .create-an-account h2, .wm-vendor-reg .create-an-account h3 { font-weight: 700; color: var(--text-primary); }
.wm-vendor-reg .create-an-account .bg-white { border-radius: 18px !important; background: var(--surface-card) !important; box-shadow: var(--shadow-sm); }
.wm-vendor-reg .create-an-account h4 { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.wm-vendor-reg label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.wm-vendor-reg .form-control, .wm-vendor-reg .form-select {
    min-height: 46px; border: 1px solid var(--border-default); border-radius: 12px; background-color: var(--surface-base); color: var(--text-primary); box-shadow: none;
}
.wm-vendor-reg .form-control:focus, .wm-vendor-reg .form-select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-ring); }
.wm-vendor-reg .btn-primary { height: 46px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--wm-cta); font-weight: 700; }
.wm-vendor-reg .btn-primary:hover { background: var(--color-primary-hover); }
.wm-vendor-reg .section-title { font-size: 32px; font-weight: 700; color: var(--text-primary); }
.wm-vendor-reg .accordion__custom .accordion-item { margin-bottom: 10px; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 14px !important; background: var(--surface-card); box-shadow: var(--shadow-sm); }
.wm-vendor-reg .accordion__custom .accordion-button { padding: 18px 20px; background: var(--surface-card) !important; color: var(--text-primary); font-size: 15px; font-weight: 600; box-shadow: none !important; }
.wm-vendor-reg .accordion__custom .accordion-button:not(.collapsed) { color: var(--color-primary); }
.wm-vendor-reg .accordion__custom .accordion-body { padding: 0 20px 18px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
@media (max-width: 640px) { .wm-vendor-reg .section-title { font-size: 24px; } }

/* all categories (web-views/products/categories) */
.wm-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.wm-catcard { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-sm); }
.wm-catcard-head { display: flex; align-items: center; gap: 14px; color: var(--text-primary); text-decoration: none; }
.wm-catcard-head:hover { color: var(--color-primary); }
.wm-catcard-img { display: grid; place-items: center; width: 60px; height: 60px; flex-shrink: 0; padding: 6px; border-radius: 14px; background: var(--surface-muted); }
.wm-catcard-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
body[theme="dark"] .wm-catcard-img img { mix-blend-mode: normal; }
.wm-catcard-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wm-catcard-name { font-size: 16px; font-weight: 700; line-height: 1.25; }
.wm-catcard-count { font-size: 13px; color: var(--text-tertiary); }
.wm-catcard-subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--border-subtle); list-style: none; }
.wm-catcard-subs a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface-muted); color: var(--text-secondary); font-size: 13px; text-decoration: none; }
.wm-catcard-subs a:hover { background: var(--color-secondary); color: var(--color-secondary-foreground); }
.wm-catcard-subs a.is-more { background: transparent; color: var(--color-primary); font-weight: 600; }

/* compare (users-profile/account-compare-list) — design "Compare" */
.wm-compare-sub { display: flex; align-items: center; gap: 14px; margin: -14px 0 18px; font-size: 14px; color: var(--text-tertiary); }
.wm-compare-sub a { font-weight: 600; color: var(--wm-badge); text-decoration: none; }
.wm-compare-scroll { overflow-x: auto; padding-bottom: 4px; }
.wm-compare { min-width: calc(160px + var(--cols) * 220px); border: 1px solid var(--border-subtle); border-radius: 18px; overflow: hidden; background: var(--surface-card); box-shadow: var(--shadow-sm); }
.wm-compare-row { display: grid; grid-template-columns: 160px repeat(var(--cols), minmax(0, 1fr)); }
.wm-compare-row:nth-child(even):not(.wm-compare-head) { background: var(--surface-subtle); }
.wm-compare-label { display: flex; align-items: center; padding: 14px 18px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.wm-compare-cell { position: relative; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 14px 18px; border-inline-start: 1px solid var(--border-subtle); font-size: 14px; color: var(--text-primary); min-width: 0; }
.wm-compare-head .wm-compare-cell { flex-direction: column; align-items: stretch; flex-wrap: nowrap; padding: 18px; border-bottom: 1px solid var(--border-subtle); }
.wm-compare-head .wm-compare-label { border-bottom: 1px solid var(--border-subtle); }
.wm-compare-remove { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: var(--surface-muted); color: var(--text-secondary); cursor: pointer; }
.wm-compare-remove:hover { color: var(--wm-badge); }
.wm-compare-product { display: block; text-decoration: none; }
.wm-compare-img { display: block; aspect-ratio: 1; margin-bottom: 12px; border-radius: 12px; overflow: hidden; background: var(--surface-muted); }
.wm-compare-img img { width: 100%; height: 100%; object-fit: cover; }
.wm-compare-name { display: -webkit-box; min-height: 38px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--text-primary); }
.wm-compare-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.wm-compare-price .discounted-unit-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 18px !important; font-weight: 800 !important; color: var(--text-primary) !important; }
.wm-compare-price .product-total-unit-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px !important; color: var(--text-tertiary) !important; }
.wm-compare-cell small { color: var(--text-tertiary); }
.wm-compare-more { margin-top: 20px; }
.wm-switch-label { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
/* !important: style.css styles every checkbox (and its :checked::after) */
input.wm-switch { position: relative !important; flex-shrink: 0; width: 44px !important; height: 24px !important; margin: 0 !important; padding: 0 !important; appearance: none !important; -webkit-appearance: none !important; border: 0 !important; border-radius: 12px !important; background: var(--border-default) !important; cursor: pointer; transition: background .2s; }
input.wm-switch::after, input.wm-switch:checked::after { content: "" !important; position: absolute !important; top: 3px !important; left: 3px !important; width: 18px !important; height: 18px !important; border: 0 !important; border-radius: 50% !important; background: #fff !important; box-shadow: var(--shadow-sm); transform: none; transition: transform .2s var(--ease-out); }
input.wm-switch:checked { background: var(--color-primary) !important; }
input.wm-switch:checked::after { transform: translateX(20px) !important; }
@media (max-width: 640px) {
    .wm-compare { min-width: calc(96px + var(--cols) * 190px); }
    .wm-compare-row { grid-template-columns: 96px repeat(var(--cols), minmax(0, 1fr)); }
    .wm-compare-label { padding: 12px; font-size: 12px; }
    .wm-compare-cell { padding: 12px; }
}

/* wallet / loyalty balance hero (design "Wallet") */
.wm-balance {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px 24px; border-radius: 20px;
    background: #232f3e; color: #fff; box-shadow: var(--shadow-md); min-width: 0;
}
.wm-balance-points { background: linear-gradient(135deg, #c2410c, #fe6a00); min-width: 240px; }
.wm-balance-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.wm-balance-value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 34px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.wm-balance .wm-btn { margin-top: 10px; }
body[theme="dark"] .wm-balance:not(.wm-balance-points) { background: #2a2a2a; border: 1px solid var(--border-default); }

/* wishlist (users-profile/account-wishlist) — design "favorites" */
.wm-wish-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.wm-wish-title { margin: 0; font-size: 28px; font-weight: 700; color: var(--text-primary); }
.wm-wish-title span { font-size: 18px; font-weight: 500; color: var(--text-tertiary); }
.wm-wish-title b { font-weight: 500; }
.wm-wish-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wm-wish-actions .wm-btn { height: 44px; }
.wm-wish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .wm-wish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wm-wish-title { font-size: 23px; } }
.wm-wish-pages { margin-top: 20px; }
.wm-wish-empty { padding: 60px 20px 40px; }
.wm-wish-empty .wm-empty-text { max-width: 340px; margin: 0 auto 24px; font-size: 15px; }
.wm-wish-recent { margin-top: 40px; }
.wm-confirm-modal > .wm-empty-icon { margin-bottom: 4px; }

/* chat (users-profile/inbox) — design "Chat" card beside the conversation list */
.wm-chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: calc(100dvh - var(--wm-header-h) - 60px); min-height: 560px; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 18px; background: var(--surface-card); box-shadow: var(--shadow-sm); }
.wm-chat-side { display: flex; flex-direction: column; min-height: 0; border-inline-end: 1px solid var(--border-subtle); }
.wm-chat-side-head { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px 12px; }
.wm-chat-title { margin: 0; font-size: 20px; font-weight: 700; color: var(--text-primary); }
.wm-chat-search { width: 100%; }
.wm-chat-search span { display: grid; place-items: center; width: 44px; color: var(--text-tertiary); }
.wm-chat-tabs { display: flex; gap: 6px; }
.wm-chat-tabs .wm-doc-tab { height: 34px; padding: 0 14px; font-size: 13px; }
.wm-chat-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 8px; }
.wm-chat-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.wm-chat-item:hover { background: var(--surface-muted); }
.wm-chat-item.active { background: var(--color-secondary); }
.wm-chat-avatar { position: relative; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--surface-muted); }
.wm-chat-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wm-chat-avatar-lg { width: 46px; height: 46px; }
.wm-chat-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wm-chat-item-top, .wm-chat-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wm-chat-item-top h6 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.wm-chat-item-top h6.fw-normal { font-weight: 500 !important; }
.wm-chat-item-top small { flex-shrink: 0; font-size: 11px; color: var(--text-tertiary); }
.wm-chat-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text-tertiary); }
.wm-chat-unread { flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px; background: var(--color-primary); color: #fff; font-size: 11px; font-weight: 700; }
.wm-chat-pane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.wm-chat-head { display: flex; align-items: center; gap: 13px; padding: 14px 20px; border-bottom: 1px solid var(--border-subtle); }
.wm-chat-head-text { min-width: 0; }
.wm-chat-head-text h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text-primary); }
.wm-chat-head-text > span { font-size: 12px; font-weight: 600; color: var(--text-tertiary); }
.wm-chat-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; background: var(--surface-subtle); }
/* bubbles (markup from inbox/messages.blade.php) */
.wm-chat .received_msg, .wm-chat .outgoing_msg { max-width: 75%; gap: 4px !important; }
.wm-chat .outgoing_msg { margin-inline-start: auto; align-items: flex-end; }
.wm-chat .received_msg { align-items: flex-start; }
.wm-chat .incoming_msg_img { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.wm-chat .message_text {
    margin: 0 !important; padding: 10px 14px !important; max-width: 100%; border-radius: 16px 16px 16px 4px !important; overflow-wrap: anywhere;
    background: var(--surface-card) !important; border: 1px solid var(--border-subtle); color: var(--text-primary) !important; font-size: 14px; line-height: 1.45; white-space: normal;
}
.wm-chat-head-text h2 { line-height: 1.3 !important; }
/* the inbox is itself a chat: the floating WhatsApp bubble would sit on the send button */
body:has(.wm-chat) .social-chat-icons { display: none !important; }
.wm-chat .outgoing_msg .message_text { border-radius: 16px 16px 4px 16px !important; border-color: transparent; background: var(--color-primary) !important; color: #fff !important; }
.wm-msg-time { font-size: 11px; color: var(--text-tertiary); padding: 0 4px; }
.wm-chat-alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 16px 8px; padding: 10px 12px; border-radius: 12px; background: rgba(245, 158, 11, .14); color: #92400e; font-size: 13px; }
.wm-chat-alert.d-none { display: none !important; }
.wm-chat-alert button { margin-inline-start: auto; border: 0; background: none; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.wm-chat-composer { padding: 10px 16px 14px; border-top: 1px solid var(--border-subtle); background: var(--surface-card); }
.wm-chat-attachments:not(:has(*:not(:empty))) { display: none; }
.wm-chat-attachments { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; overflow-x: auto; }
.wm-chat-composer-row { display: flex; align-items: center; gap: 8px; }
.wm-chat-tool { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; margin: 0; border-radius: 11px; background: var(--surface-muted); color: var(--text-secondary); cursor: pointer; transition: color .15s; }
.wm-chat-tool:hover { color: var(--color-primary); }
.wm-chat-input {
    flex: 1; min-width: 0; height: 46px; max-height: 120px; padding: 12px 18px; resize: none; border: 1px solid var(--border-default); border-radius: 23px;
    background: var(--surface-base); color: var(--text-primary); font-family: var(--font-sans); font-size: 15px; line-height: 1.4; outline: 0;
}
.wm-chat-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-ring); }
.wm-chat-send { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--color-primary); color: #fff; cursor: pointer; }
.wm-chat-send:hover { background: var(--color-primary-hover); }
.wm-chat-empty { margin: auto; }
@media (max-width: 900px) {
    .wm-chat { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: auto; min-height: 0; }
    .wm-chat-side { border-inline-end: 0; border-bottom: 1px solid var(--border-subtle); }
    .wm-chat-list { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 0 12px 12px; }
    .wm-chat-item { flex: 0 0 auto; flex-direction: column; width: 84px; gap: 6px; padding: 8px 4px; text-align: center; }
    .wm-chat-item-body { width: 100%; }
    .wm-chat-item-top { justify-content: center; }
    .wm-chat-item-top small, .wm-chat-preview { display: none; }
    .wm-chat-item-top h6 { font-size: 12px; }
    .wm-chat-item-bottom { position: absolute; }
    .wm-chat-item { position: relative; }
    .wm-chat-unread { position: absolute; top: 4px; right: 14px; }
    .wm-chat-pane { height: 70dvh; min-height: 460px; }
    .wm-chat .received_msg, .wm-chat .outgoing_msg { max-width: 85%; }
}

/* order detail header (users-profile/account-order-details/_order-details-head) */
.wm-order-head { display: flex; flex-direction: column; gap: 20px; }
.wm-order-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wm-order-head-title { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: var(--text-primary); }
.wm-order-head-date { margin: 0; font-size: 13px; color: var(--text-tertiary); }
.wm-order-head .wm-status { font-size: 13px; padding: 6px 12px; }
.wm-order-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.wm-order-facts > div { padding: 12px 14px; border-radius: 12px; background: var(--surface-muted); min-width: 0; }
.wm-order-facts span { display: block; margin-bottom: 4px; font-size: 12px; color: var(--text-tertiary); }
.wm-order-facts b { display: block; font-size: 14px; font-weight: 700; color: var(--text-primary); overflow-wrap: anywhere; }
.wm-order-facts b.is-paid { color: #16a34a; }
.wm-order-facts b.is-unpaid { color: var(--wm-badge); }
.wm-order-code { display: inline-block !important; padding: 1px 10px; border-radius: 8px; background: var(--color-primary); color: #fff !important; letter-spacing: .08em; }
.wm-order-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.wm-order-actions .wm-btn small { font-weight: 500; opacity: .75; }
.wm-order-actions-note { font-size: 12px; color: var(--text-tertiary); }
.wm-order-track { padding: 20px 8px 4px; border-top: 1px solid var(--border-subtle); }
.wm-order-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.wm-order-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
    .wm-order-head-title { font-size: 19px; }
    .wm-order-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wm-order-actions .wm-btn { flex: 1 1 160px; }
}

/* order placed (checkout/complete) — design "Order" page */
.wm-placed { max-width: 760px; padding-top: 40px; padding-bottom: 72px; }
.wm-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wm-placed-head { margin-bottom: 30px; text-align: center; }
.wm-placed-icon { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: var(--color-secondary); color: var(--color-primary); animation: wm-pop .4s var(--ease-out); }
@keyframes wm-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wm-placed-title { margin: 0 0 10px; font-size: 32px; font-weight: 700; line-height: 1.2; }
.wm-placed-sub { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-secondary); }
.wm-placed-sub b { color: var(--text-primary); }
.wm-placed-card { margin-bottom: 18px; padding: 24px; }
.wm-placed-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.wm-placed-card-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.wm-placed-total { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 700; color: var(--color-primary); }
.wm-placed-facts { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.wm-placed-facts span { display: block; margin-bottom: 4px; font-size: 12px; color: var(--text-tertiary); }
.wm-placed-facts b { display: block; font-size: 14px; font-weight: 600; }
.wm-placed-facts p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.wm-placed-pay { text-align: end; }
.wm-placed-pay p { font-size: 12px; font-weight: 600; color: #b45309; }
.wm-placed-pay p.is-paid { color: #16a34a; }
.wm-placed-items { display: flex; flex-direction: column; gap: 13px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--border-subtle); list-style: none; }
.wm-placed-items li { display: flex; align-items: center; gap: 12px; }
.wm-placed-thumb { width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--surface-muted); }
.wm-placed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wm-placed-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.3; }
.wm-placed-name small { font-size: 14px; color: var(--text-tertiary); }
.wm-placed-items b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.wm-placed-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.wm-placed-actions .wm-btn { flex: 1; min-width: 180px; }
@media (max-width: 640px) {
    .wm-placed { padding-top: 24px; }
    .wm-placed-title { font-size: 25px; }
    .wm-placed-card { padding: 18px; }
    .wm-tracker-label { font-size: 11px; }
    .wm-placed-pay { text-align: start; }
}

/* "Is it you?" social-login confirmation */
.wm-confirm-dialog { max-width: 440px; padding: 0 16px; margin-inline: auto; }
.wm-confirm-modal.modal-content {
    position: relative; align-items: center; gap: 12px; padding: 40px 32px 32px; border: 0; border-radius: 24px; text-align: center;
    background: var(--surface-card); color: var(--text-primary); font-family: var(--font-sans); box-shadow: var(--shadow-xl);
}
.wm-confirm-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--surface-muted); }
.wm-confirm-name { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.wm-confirm-modal .wm-auth-title { margin: 8px 0 0; font-size: 26px; }
.wm-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 12px; }
.wm-confirm-actions .wm-btn { height: 48px; border-radius: 12px; font-size: 15px; }

/* full-page auth steps (customer-views/auth/_frame) */
.wm-auth-page { display: flex; justify-content: center; padding-top: 40px; padding-bottom: 64px; }
.wm-auth-card.wm-auth-solo { max-width: 448px; border: 1px solid var(--border-subtle); background: var(--surface-card); box-shadow: var(--shadow-md); }
body[theme="dark"] .wm-auth-card.wm-auth-solo { border-color: var(--border-default); }
.wm-auth-flow { display: flex; flex-direction: column; gap: 24px; }
.wm-auth-steps { display: flex; gap: 8px; }
.wm-auth-steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--border-default); }
.wm-auth-steps span.is-done { background: var(--color-primary); }
.wm-auth-back {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer;
    font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--text-secondary); text-decoration: none;
}
.wm-auth-back:hover { color: var(--text-primary); }
.wm-auth-identity { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.wm-otp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.wm-otp .otp-field {
    width: 100%; height: 64px; padding: 0; border: 1.5px solid var(--border-default); border-radius: 12px; outline: 0;
    background: var(--surface-base); color: var(--text-primary); text-align: center;
    font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 700; caret-color: var(--color-primary);
    transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.wm-otp .otp-field:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-ring); }
.wm-auth-resend { display: flex; justify-content: center; font-size: 14px; color: var(--text-tertiary); }
.wm-auth-resend .verifyCounter { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-secondary); }
.wm-auth-resend .otp-resend-btn:disabled { display: none; }
.wm-auth-resend .resend-otp-custom:not([hidden]):not([style*="display: none"]) + .otp-resend-btn { display: none; }
.wm-auth-done { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.wm-auth-done-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: #15803d; }
body[theme="dark"] .wm-auth-done-icon { background: rgba(34, 197, 94, .15); color: #4ade80; }
.wm-auth-done .wm-auth-title { margin: 0; }

@media (max-width: 900px) {
    .wm-auth-dialog { max-width: 520px; }
    .wm-auth.modal-content { grid-template-columns: minmax(0, 1fr); }
    .wm-auth-aside { display: none; }
}
@media (max-width: 640px) {
    .wm-auth-modal .modal-dialog { margin: 0; padding: 0; max-width: none; min-height: 100%; align-items: stretch; }
    .wm-auth.modal-content { min-height: 100dvh; border-radius: 0; }
    .wm-auth-main { align-items: flex-start; padding: 64px 16px 24px; }
    .wm-auth-card { padding: 24px 16px; border-radius: 20px; }
    .wm-auth-title { font-size: 26px; }
}

/* ── Dark mode: every card/section gets an edge ─────────────────── */
/* These only had a shadow, which disappears on a dark page. An inset outline adds the edge without changing sizes
   and draws over edge-to-edge images. Legacy Bootstrap cards (account pages) get the same border colour. */
body[theme="dark"] :is(.wm-pill, .wm-tile-img, .wm-fcard, .wm-store, .wm-ad, .wm-free-delivery, .wm-detail-grid > div, .wm-catcard-img, .wm-empty-icon) {
    outline: 1px solid var(--border-subtle); outline-offset: -1px;
}
body[theme="dark"] .card { border-color: var(--border-subtle); }
/* Popups: modals (auth, quick view, app download, confirmations…), SweetAlert dialogs, dropdowns, catalog menu, drawer. */
body[theme="dark"] :is(.modal-content, .swal2-popup, .dropdown-menu, .wm-mega-panel) {
    outline: 1px solid var(--border-subtle); outline-offset: -1px;
}
body[theme="dark"] .wm-drawer-panel { border-inline-end: 1px solid var(--border-subtle); }

/* ── Footer on phones ───────────────────────────────────────────── */
.wm-foot-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; border: 0; background: none; font-family: var(--font-sans); text-align: start; cursor: default; pointer-events: none; }
.wm-foot-toggle svg { display: none; }
@media (max-width: 640px) {
    .wm-foot-inner { padding-top: 32px; padding-bottom: 124px; } /* keeps the last lines clear of the floating WhatsApp + back-to-top buttons above the app bar */
    .wm-foot-grid { gap: 0; }
    .wm-foot-brand { display: flex; flex-direction: column; align-items: center; padding-bottom: 24px; text-align: center; }
    .wm-foot-brand .wm-logo { margin-bottom: 12px; }
    .wm-foot-about { margin-bottom: 12px; }
    .wm-foot-contact { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 18px; }
    .wm-socials { justify-content: center; }
    .wm-foot-apps { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 340px; }
    .wm-foot-apps img { width: 100%; height: auto; max-height: 48px; object-fit: contain; }
    .wm-foot-col { border-top: 1px solid var(--hdr-border); }
    .wm-foot-toggle { min-height: 52px; margin: 0; font-size: 15px; cursor: pointer; pointer-events: auto; }
    .wm-foot-toggle svg { display: block; color: var(--hdr-sub); transition: transform .2s var(--ease-out); }
    .wm-foot-col.is-open .wm-foot-toggle svg { transform: rotate(180deg); }
    .wm-foot-col .wm-foot-links { display: none; gap: 14px; padding: 2px 0 18px; }
    .wm-foot-col.is-open .wm-foot-links { display: flex; }
    .wm-foot-links a, .wm-foot-links button { font-size: 14px; }
    .wm-newsletter { margin: 4px 0 0; padding: 18px 0 22px; border-top: 1px solid var(--hdr-border); }
    .wm-newsletter .wm-foot-title { margin-bottom: 6px; font-size: 15px; }
    .wm-foot-bottom { flex-direction: column-reverse; justify-content: center; gap: 14px; margin-top: 0; padding-top: 20px; border-top: 0; text-align: center; }
    .wm-foot-legal { justify-content: center; gap: 8px 16px; }
}
