/* =============================================
   ELECTROWAY DARK — MAIN STYLESHEET (v2)
   ============================================= */

/* --- Tokens --- */
:root {
    /* Colour-blind friendly palette: blue + orange carry meaning (never red vs green),
       every pairing also differs strongly in lightness, and soft gradient fades */
    /* Page fades light blue → dark blue (see body); cards stay white; hero keeps its black fade */
    /* "Midnight & Ice": dark black → blue frame (header, banners, footer) around a soft
       cool-grey content area with white cards. Light-vs-dark carries the structure, so it
       reads well with colour blindness; blue = action, orange = deals. */
    --bg: #07112a;
    /* Every page uses the homepage banner's black → blue fade as its background */
    --page-fade: linear-gradient(115deg, #000000 0%, #07112a 35%, #0c2a63 70%, #1f5fc4 100%);
    --bg-elev: #e3e9f1;
    --surface: #ffffff;
    --surface-2: #f3f5f9;
    --surface-3: #dfe4ec;
    --line: #dde2ea;
    --line-strong: #aeb8c7;

    --text: #0a0f1a;
    --text-2: #2a3446;
    --text-3: #4f5b6e;

    --navy: #000000;
    --accent: #0055d4;
    --accent-bright: #4da3ff;
    --accent-strong: #0044aa;
    --accent-soft: rgba(0, 85, 212, 0.08);
    --accent-glow: rgba(0, 85, 212, 0.22);
    --orange: #c24a00;
    --orange-deep: #c24a00;
    --orange-strong: #a33d00;
    --success: #0b6b33;
    --danger: #a31d14;
    --star: #e08e00;

    --gradient: linear-gradient(135deg, #2b86ff 0%, #0046b8 100%);
    --gradient-orange: linear-gradient(135deg, #ff8a1f 0%, #c94a00 100%);
    /* One combined black → blue fade, shared by banner, top bar, ticker, promo cards, CTA and footer */
    --fade-dark: linear-gradient(115deg, #000000 0%, #07112a 35%, #0c2a63 70%, #1f5fc4 100%);
    --fade-light: #ffffff;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 18px 40px -16px rgba(10, 15, 26, 0.22);
    --shadow-glow: 0 22px 44px -16px rgba(10, 15, 26, 0.3);
    --ease: cubic-bezier(.16, 1, .3, 1);

    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --header-h: 72px;
}

/* --- Reset / base --- */
*, *::before, *::after { box-sizing: border-box; }
/* The page fade lives on <html> so the decorative layers below can sit between it and the
   content (a body background would paint over them). Space below a short page stays black. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #000 var(--page-fade) no-repeat; }
body {
    margin: 0;
    color: var(--text-2);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Animated circuit-board background (canvas drawn by main.js), fixed behind all content */
#ew-tech-bg { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    color: var(--text);
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
}
/* Keep the theme's heading font even if a plugin prints its own heading font later in the page
   (live site: "Radios Tools" outputs h1-h6 { font-family: Jost }). Slightly stronger selector; class-based
   heading rules (e.g. .feature-card h3, .hero__title) still take priority. */
html body :is(h1, h2, h3, h4, h5, h6) { font-family: var(--font-heading); font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent-bright); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
    clip: auto; width: auto; height: auto; margin: 0;
    top: 8px; left: 8px; z-index: 1000;
    padding: 10px 16px; background: var(--accent); color: #fff; border-radius: var(--radius-sm);
}
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }

.ew-icon { flex-shrink: 0; }

/* --- Buttons --- */
.btn, .button, button.button, input.button, a.button, .wp-element-button,
.woocommerce-button, button[type="submit"]:not(.icon-btn):not(.ew-atc-btn):not(.btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-body);
    font-size: .925rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover, .button:hover, .wp-element-button:hover,
button[type="submit"]:not(.icon-btn):not(.ew-atc-btn):not(.btn):hover {
    color: #fff;
    background: var(--gradient-orange);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(255, 138, 31, .55);
}
.btn:active { transform: translateY(0); }
.btn .ew-icon { transition: transform .35s var(--ease); }
.btn:hover .ew-icon { transform: translateX(4px); }
.btn--accent { background: var(--gradient-orange); }
.btn--accent:hover { background: var(--gradient); box-shadow: 0 14px 28px -10px rgba(43, 134, 255, .55); }
.btn--ghost { background: transparent; border: 2px solid var(--text); color: var(--text); }
.btn--ghost:hover { background: var(--text); border-color: var(--text); color: var(--bg); box-shadow: none; }
.btn--light { background: rgba(255, 255, 255, .95); color: var(--navy); }
.btn--light:hover { color: var(--navy); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.btn--sm { padding: 8px 16px; font-size: .85rem; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.button:disabled, .button.disabled, .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    transition: background .2s, border-color .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); color: var(--accent); }

.badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px;
    background: var(--orange-deep);
    color: #fff;
    font-size: .7rem; font-weight: 700; line-height: 1;
}
.badge--sale { background: var(--orange-deep); }
.badge--muted { background: var(--surface-3); color: var(--text-2); }
.cart-btn .badge { position: absolute; top: 2px; right: 0; border: 2px solid var(--bg); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 87, 217, .35);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 87, 217, .14), rgba(0, 87, 217, .04));
    color: var(--accent-strong);
    font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow .ew-icon { color: var(--accent); }

.link-arrow {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent); font-weight: 600; font-size: .9rem;
}
.link-arrow .ew-icon { transition: transform .2s var(--ease); }
.link-arrow:hover .ew-icon { transform: translateX(3px); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
}

/* --- Forms --- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="search"], input[type="number"], input[type="url"], input[type="date"],
select, textarea, .input-text {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: .925rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus, .input-text:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
select {
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2366768d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
select option { background: var(--surface); color: var(--text); }
label { display: block; margin-bottom: 6px; color: var(--text-2); font-size: .85rem; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
textarea { resize: vertical; min-height: 120px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: auto; }

/* =============================================
   HEADER
   ============================================= */
.site-header { position: sticky; top: 0; z-index: 100; }

/* Header + menu bar share the black → blue fade, with light text */
.header-main, .nav-bar {
    --text: #ffffff;
    --text-2: #dce6f5;
    --text-3: #b8c7dd;
    --line: rgba(255, 255, 255, .14);
    --line-strong: rgba(255, 255, 255, .3);
    --surface: rgba(255, 255, 255, .08);
    --surface-2: rgba(255, 255, 255, .12);
    --accent: #5aaaff;
}

.topbar { background: var(--fade-dark); font-size: .8rem; --text-2: #dce6f5; --text-3: #b8c7dd; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__group { display: flex; align-items: center; gap: 22px; }
.topbar a, .topbar__promo { display: inline-flex; align-items: center; gap: 7px; color: var(--text-3); }
.topbar a:hover { color: #fff; }
.topbar__promo { color: var(--text-2); }
.topbar__promo .ew-icon { color: #ff8a3d; }

.header-main {
    /* own layer above the menu bar, so the search dropdown isn't covered by it */
    position: relative;
    z-index: 3;
    background: var(--fade-dark);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s;
}
.site-header.scrolled .header-main { box-shadow: 0 6px 24px rgba(15, 35, 70, .08); }
.header-main__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: var(--header-h);
    padding-top: 10px;
    padding-bottom: 10px;
}
.menu-toggle { display: none; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
/* The logo is white line-art, so it sits on a navy tile */
.brand { gap: 12px; }
.brand__mark {
    width: 62px; height: 62px;
    padding: 7px 6px;
    object-fit: contain;
    border-radius: 14px;
    background: var(--navy);
    box-shadow: 0 0 0 1px var(--line-strong);
    transition: transform .5s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__word { font-family: var(--font-heading); font-size: 1.95rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.brand__word span { color: var(--accent); }
.custom-logo { max-height: 56px; width: auto; }

/* Search */
.header-search { position: relative; max-width: 640px; width: 100%; justify-self: center; }
.header-search form {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 5px 5px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    transition: border-color .2s, box-shadow .2s;
}
.header-search form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.header-search form > .ew-icon { color: var(--text-3); }
.header-search input[type="search"] {
    flex: 1; min-width: 0;
    padding: 8px 4px;
    border: 0; background: transparent; box-shadow: none;
}
.header-search input[type="search"]:focus { box-shadow: none; }
.header-search form { background: var(--surface); border-color: var(--line); }
.header-search form:focus-within { border-color: var(--text); box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.header-search form:focus-within { background: var(--surface); }

.header-actions { display: flex; align-items: center; gap: 4px; }

/* Nav bar */
.nav-bar { background: var(--fade-dark); border-bottom: 1px solid var(--line); }
.nav-bar .sub-menu { background: #0c1a3a; }
.nav-bar__inner { display: flex; align-items: center; gap: 10px; min-height: 52px; }.nav-bar__spacer { flex: 1; }
.nav-link {
    position: relative;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 14px 14px;
    color: var(--text-2);
    font-size: .875rem; font-weight: 500;
    white-space: nowrap;
}
.nav-link::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px;
    height: 3px; border-radius: 3px;
    background: var(--gradient);
    transform: scaleX(0); transform-origin: right;
    transition: transform .45s var(--ease);
}
.nav-link:hover, .nav-item:hover > .nav-link { color: var(--text); }
.nav-link:hover::after, .nav-item:hover > .nav-link::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--text); font-weight: 600; }
.nav-link .ew-icon { transition: transform .3s var(--ease); }
.nav-item:hover > .nav-link .ew-icon { transform: rotate(180deg); }
.nav-item { position: relative; }
.sub-menu {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
    min-width: 220px;
    padding: 8px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.sub-menu::before { content: ''; position: absolute; inset: -8px 0 auto; height: 8px; }
.nav-item:hover .sub-menu, .nav-item:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-size: .875rem; }
.sub-menu a:hover { background: var(--surface-2); color: var(--text); }

/* "All Categories" mega menu: the full category tree of electroway.org */
.nav-bar { position: relative; z-index: 2; }
.nav-mega { align-self: stretch; display: flex; align-items: center; margin-right: 12px; }
.nav-mega__btn {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
    border-radius: 10px; border: 1px solid rgba(140, 196, 255, .4);
    background: rgba(43, 134, 255, .2); color: #fff;
    font: inherit; font-size: .875rem; font-weight: 600; white-space: nowrap; cursor: pointer;
    transition: background .2s, border-color .2s;
}
.nav-mega__btn:hover, .nav-mega.is-open .nav-mega__btn { background: rgba(43, 134, 255, .35); border-color: #8cc4ff; }
.nav-mega__btn .ew-icon:last-child { transition: transform .3s var(--ease); }
.nav-mega.is-open .nav-mega__btn .ew-icon:last-child { transform: rotate(180deg); }
.nav-mega__panel {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
    max-height: min(72vh, 660px); overflow-y: auto; overscroll-behavior: contain;
    padding: 36px 0 16px;
    background: #060c1c;   /* solid: nothing behind should show through */

    border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 34px 60px -22px rgba(0, 0, 0, .85);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.nav-mega.is-open .nav-mega__panel, .nav-mega:focus-within .nav-mega__panel { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (pointer: fine) {
    .nav-mega:hover .nav-mega__panel { opacity: 1; visibility: visible; transform: none; }
    .nav-mega:hover .nav-mega__btn .ew-icon:last-child { transform: rotate(180deg); }
}
.nav-mega__grid { columns: 4 230px; column-gap: 48px; }
.nav-mega__col { break-inside: avoid; margin-bottom: 34px; }
.nav-mega__title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #fff; font-weight: 700; font-size: .95rem; }
.nav-mega__title .ew-icon { width: 20px; height: 20px; flex-shrink: 0; color: #8cc4ff; }
.nav-mega__title:hover { color: #8cc4ff; }
.nav-mega__col ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nav-mega__sub { color: #d4dceb; font-size: .875rem; font-weight: 500; }
.nav-mega__sub:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.nav-mega__leaves { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 5px; color: #7f8ea6; font-size: .8rem; line-height: 1.5; }
.nav-mega__leaves a { color: #a9b6cb; }
.nav-mega__leaves a:hover { color: #fff; text-decoration: underline; }
/* narrower desktops: keep the bar on one line */
@media (max-width: 1240px) { .nav-item--cat-3, .nav-item--cat-4 { display: none; } }
@media (max-width: 1080px) { .nav-item--cat-2 { display: none; } }

/* Mobile drawer: every category, folding out like the live site's menu */
.drawer__group summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; }
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__group summary span, .drawer__nav a.drawer__cat span { flex: 1; }
.drawer__group summary:hover { background: var(--surface-2); }
.drawer__group summary > .ew-icon:last-child { width: 16px; height: 16px; color: var(--text-3); transition: transform .3s var(--ease); }
.drawer__group[open] summary > .ew-icon:last-child { transform: rotate(180deg); }
.drawer__sub { display: flex; flex-direction: column; padding: 0 0 8px 44px; }
.drawer__nav .drawer__sub a { padding: 9px 12px; color: var(--text-2); font-size: .92rem; }
.drawer__nav .drawer__sub a.drawer__sub3 { padding-left: 26px; color: var(--text-3); font-size: .86rem; }
.drawer__nav .drawer__sub a.drawer__all { color: var(--accent); font-weight: 600; }

/* Drawer (mobile menu) */
.drawer-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(11, 22, 40, .45);
    backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .3s;
}
.drawer-overlay.open { opacity: 1; }
.drawer {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 201;
    display: flex; flex-direction: column;
    width: min(340px, 88vw);
    background: var(--surface);
    border-right: 1px solid var(--line);
    transform: translateX(-100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head .brand__mark { width: 40px; height: 40px; }
.drawer__head .brand__word { font-size: 1.4rem; }
.drawer__nav { display: flex; flex-direction: column; padding: 12px; }
.drawer__nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; }
.drawer__nav a:hover { background: var(--surface-2); color: var(--accent); }
.drawer__cat .ew-icon { width: 20px; height: 20px; color: var(--accent); }
.drawer__label { padding: 16px 12px 6px; color: var(--text-3); font-size: .72rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.drawer__contact { margin-top: auto; padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__contact a { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: .875rem; }

/* Live search dropdown */
.ew-search-dropdown {
    /* solid light panel with dark text, independent of the dark header's colours */
    --surface: #ffffff;
    --surface-2: #eef3fb;
    --text: #0a0f1a;
    --text-2: #2a3446;
    --text-3: #4f5b6e;
    --line: #dde2ea;
    --line-strong: #aeb8c7;
    --accent: #0055d4;
    color: var(--text);
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50;
    max-height: 70vh; overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.ew-search-dropdown.ew-sd-open { opacity: 1; visibility: visible; transform: none; }
.ew-sd-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--text); border-bottom: 1px solid var(--line); }
.ew-sd-item:hover, .ew-sd-item.ew-active { background: var(--surface-2); color: var(--text); }
.ew-sd-thumb { width: 44px; height: 44px; padding: 2px; border-radius: var(--radius-sm); object-fit: contain; background: #fff; }
.ew-sd-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ew-sd-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 500; }
.ew-sd-price { color: var(--accent); font-size: .8rem; font-weight: 600; }
.ew-sd-price del { margin-right: 4px; color: var(--text-3); font-weight: 400; }
.ew-sd-arrow { color: var(--text-3); font-size: 1.2rem; }
.ew-sd-footer { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: .8rem; }
.ew-sd-count { color: var(--text-3); }
.ew-sd-viewall { font-weight: 600; }
.ew-sd-msg { padding: 16px; color: var(--text-2); font-size: .875rem; }
.ew-hl { background: transparent; color: var(--accent); font-weight: 700; }

/* =============================================
   LAYOUT SECTIONS
   ============================================= */
.section { padding: 72px 0; }
.section--tight { padding: 24px 0; }
.section--flush-top { padding-top: 8px; }
.section--alt { background: transparent; }
.section-head--center > div { max-width: 640px; }

/* Section headings sit directly on the dark page fade, so they use light text */
.section-head {
    --text: #ffffff;
    --text-2: #dce6f5;
    --text-3: #b8c7dd;
    --accent: #5aaaff;
    display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px;
}
.section-head h2 { margin-bottom: 4px; }
.section-head p { margin: 0; color: var(--text-3); }
.section-head--center { justify-content: center; text-align: center; }

.page-hero, .breadcrumb-bar {
    /* titles and breadcrumbs sit on the dark page fade, so they use light text */
    --text: #ffffff;
    --text-2: #dce6f5;
    --text-3: #b8c7dd;
}
.page-hero {
    position: relative;
    padding: 48px 0 44px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    margin-bottom: 40px;
}
.page-hero--compact { padding: 32px 0 30px; }
.page-hero h1 { margin: 10px 0 6px; }
.page-hero p, .page-hero__desc { margin: 0; color: var(--text-3); max-width: 680px; }
.page-hero__desc p { margin: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-3); }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--text-2); }
.breadcrumb-bar { padding: 18px 0; background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .12); }

/* =============================================
   HERO
   ============================================= */
/* Black fade banner: pure black fading to charcoal, white text on top */
.hero {
    --text: #ffffff;
    --text-2: #e2e5ea;
    --text-3: #b3b9c4;
    --line: rgba(255, 255, 255, .2);
    position: relative;
    overflow: hidden;
    padding: 72px 0 88px;
    background:
        radial-gradient(640px 440px at 78% 45%, rgba(255, 255, 255, .10), transparent 70%),
        var(--fade-dark);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    color: var(--text-2);
}
.hero .eyebrow { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; }
.hero .eyebrow .ew-icon { color: #ffb366; }
.hero .btn--primary { background: #fff; color: #000; }
.hero .btn--primary:hover { background: #ffb366; color: #000; box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .6); }

/* Home: one continuous background top to bottom. The hero and header let the
   page background (black → blue fade + animated circuit board) show through instead of
   painting their own; the header becomes dark glass so it stays readable while sticky. */
body.home .hero { background: transparent; border-bottom: 0; }
body.home .header-main,
body.home .nav-bar { background: rgba(2, 7, 20, .74); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
body.home .nav-bar { border-bottom-color: rgba(255, 255, 255, .1); }
.hero .btn--primary::after { background: linear-gradient(100deg, transparent, rgba(0, 0, 0, .1), transparent); }
.hero .btn--ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.hero .btn--ghost:hover { background: #fff; border-color: #fff; color: #000; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
.hero__title { margin: 22px 0 20px; font-family: "Plus Jakarta Sans", var(--font-body); font-size: clamp(2.5rem, 5.4vw, 4.3rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; word-spacing: .06em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; }
.hero__title .hl {
    background: linear-gradient(90deg, #ffd29a 0%, #ff9a3d 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.hero__lead { max-width: 540px; font-size: 1.08rem; color: var(--text-2); }

/* Frosted-glass panel behind the hero headline, text and buttons: the circuit background
   stays visible but blurred, so the words sit on a calm surface */
.hero__content {
    position: relative;
    padding: 40px 44px 44px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .01) 60%), rgba(6, 14, 32, .2);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 28px;
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.hero__content .hero__title { margin-top: 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 40px; }

.hero__visual { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; justify-self: end; }
.hero__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); }
.hero__ring--outer { inset: 3%; animation: ew-spin 80s linear infinite; }
.hero__ring--inner { inset: 14%; border-style: dashed; border-color: rgba(255, 255, 255, .28); animation: ew-spin 60s linear infinite reverse; }
.hero__ring--outer::after {
    content: ''; position: absolute; top: 14.6%; left: 14.6%;
    width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    background: #ffb366; box-shadow: 0 0 0 5px rgba(255, 179, 102, .25);
}
/* Ink orb so the white logo stays visible */
.hero__orb {
    position: absolute; inset: 24%;
    display: grid; place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 28%, #1d4fa8 0%, #0c2a63 45%, var(--navy) 85%);
    box-shadow: 0 40px 80px -20px rgba(2, 8, 25, .6), 0 0 0 1px rgba(255, 255, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
    animation: ew-float 7s ease-in-out infinite;
}
.hero__orb img { width: 64%; animation: ew-pulse 5s ease-in-out infinite; }
.hero__chip {
    /* dark chips inside the black banner use the brighter accent shades */
    --line: #4a5363;
    --text-3: #b3b9c4;
    --accent: #5aaaff;
    --orange: #ff9a3d;
    position: absolute;
    display: flex; align-items: center; gap: 12px;
    max-width: 250px;
    padding: 10px 16px 10px 10px;
    background: rgba(34, 39, 48, .9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    color: var(--text);
    animation: ew-float 6s ease-in-out infinite;
}
.hero__chip:hover { border-color: var(--accent); color: var(--text); }
.hero__chip img { width: 52px; height: 52px; padding: 3px; border-radius: 10px; object-fit: contain; background: #fff; }
.hero__chip > span { display: flex; flex-direction: column; min-width: 0; }
.hero__chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; font-weight: 600; }
.hero__chip em { color: var(--accent); font-size: .82rem; font-style: normal; font-weight: 700; }
.hero__chip em ins { color: var(--orange); }
.hero__chip em del { color: var(--text-3); font-weight: 400; margin-right: 4px; }
.hero__chip em ins { text-decoration: none; }
.hero__chip--1 { top: 6%; left: -6%; }
.hero__chip--2 { bottom: 14%; right: 0; animation-delay: -3s; }
.hero__chip-tag { display: inline-flex; align-items: center; gap: 5px; color: var(--orange); font-size: .66rem; font-weight: 700; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.hero__chip-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255, 140, 50, .2); }

@keyframes ew-spin { to { transform: rotate(360deg); } }
@keyframes ew-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ew-pulse { 0%, 100% { filter: drop-shadow(0 0 6px rgba(47, 155, 255, .35)); } 50% { filter: drop-shadow(0 0 18px rgba(47, 155, 255, .7)); } }

/* Trust strip */

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.cat-card {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 26px 16px 22px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: var(--text);
    overflow: hidden;
    isolation: isolate;
    transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease), color .3s;
}
/* Ink panel that rises from the bottom on hover */
.cat-card::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--gradient);
    transform: translateY(101%);
    transition: transform .55s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--navy); box-shadow: var(--shadow-glow); color: #fff; }
.cat-card:hover::before { transform: translateY(0); }
/* Hexagon "chip" icon: outer ring + filled hexagon that spins a sixth of a turn on hover */
.cat-card__icon {
    position: relative;
    display: grid; place-items: center;
    width: 76px; height: 76px;
    margin-bottom: 16px;
    color: #fff;
    isolation: isolate;
}
.cat-card__icon::before, .cat-card__icon::after {
    content: ''; position: absolute; z-index: -1;
    clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0% 50%);
    transition: transform .7s var(--ease), background .4s;
}
.cat-card__icon::after { inset: 0; background: rgba(0, 85, 212, .16); }
.cat-card__icon::before { inset: 7px; background: var(--gradient); }
.cat-card__icon .ew-icon { width: 30px; height: 30px; transition: transform .7s var(--ease); }
.cat-card:hover .cat-card__icon::before { transform: rotate(60deg); background: var(--gradient-orange); }
.cat-card:hover .cat-card__icon::after { transform: rotate(-30deg) scale(1.08); background: rgba(255, 255, 255, .25); }
.cat-card:hover .cat-card__icon .ew-icon { transform: scale(1.12); }
.cat-card__icon:has(img)::before { background: #fff; }
.cat-card__icon img { position: relative; width: 70%; height: 70%; object-fit: contain; }
.cat-card__name { font-weight: 700; font-size: 1rem; }
.cat-card__count { color: var(--text-3); font-size: .82rem; font-weight: 500; transition: color .3s; }
.cat-card:hover .cat-card__count { color: rgba(255, 255, 255, .8); }

/* =============================================
   PRODUCT CARDS & GRIDS
   ============================================= */
.products-grid, ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-main ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
ul.products::before, ul.products::after { display: none; }
ul.products li.product { margin: 0; padding: 0; width: auto; float: none; }

/* Product card: rounded card with an edge-to-edge white photo tile, a floating quick-add
   button that expands on hover, second photo on hover, and a gradient edge glow */
.product-card {
    position: relative;
    display: flex; flex-direction: column;
    height: 100%;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 2px 8px rgba(10, 15, 26, .06);
    isolation: isolate;
    transition: transform .6s var(--ease), border-color .3s, box-shadow .6s var(--ease);
}
.product-card::before {
    content: ''; position: absolute; inset: -1px; z-index: -1;
    padding: 1px; border-radius: inherit;
    background: linear-gradient(135deg, #8cc4ff, #a46bff 50%, #ffa552);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s;
}
.product-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.product-card:hover::before { opacity: 1; }

/* ---- Interactive hover (mouse only): 3D tilt toward the cursor, a spotlight that
   follows it, a rotating gradient border and a parallax photo. JS sets
   --rx/--ry (tilt), --mx/--my (spotlight position) and --ix/--iy (photo shift). ---- */
@property --ew-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ew-spin { to { --ew-ang: 360deg; } }
.product-card::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    border-radius: inherit; pointer-events: none;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(140, 196, 255, .26), rgba(164, 107, 255, .1) 40%, transparent 65%);
    mix-blend-mode: screen;
    opacity: 0; transition: opacity .4s;
}
@media (hover: hover) and (pointer: fine) {
    .product-card::before { background: conic-gradient(from var(--ew-ang), #8cc4ff, #a46bff, #2fe0d0, #ffa552, #8cc4ff); }
    .product-card:hover::before { animation: ew-spin 3.2s linear infinite; }
    .product-card:hover::after { opacity: 1; }
    .product-card:hover { transform: perspective(900px) translateY(-8px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); }
    .product-card.is-tilting { transition: transform .14s linear, border-color .3s, box-shadow .6s var(--ease); }
    .js .product-card.is-tilting .product-card__media img.is-loaded { transform: translate(var(--ix, 0px), var(--iy, 0px)) scale(1.1); transition: transform .5s var(--ease), opacity .5s ease; }
    .product-card:hover .product-card__quick { animation: ew-pop .5s var(--ease); }
}
@keyframes ew-pop { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
/* touch screens: a quick press-in instead of hover */
@media (hover: none) {
    .product-card:active { transform: scale(.97); transition-duration: .15s; }
}

/* light sweep across the photo tile (played once when a card lands on the home screen) */
.product-card__media::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(140, 196, 255, .55) 48%, rgba(255, 255, 255, .8) 50%, rgba(140, 196, 255, .55) 52%, transparent 70%);
    transform: translateX(-130%);
}
.product-card.ew-shine .product-card__media::after { animation: ew-shine 1.2s var(--ease) forwards; animation-delay: var(--shine-d, 0ms); }
@keyframes ew-shine { to { transform: translateX(130%); } }

/* Product photos have white backgrounds, so the image area is a pure white tile */
.product-card__media { position: relative; aspect-ratio: 1; background: #fff; border-radius: 16px; overflow: hidden; }
.product-card__img-link { position: absolute; inset: 0; display: block; }
.product-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 7%; object-fit: contain; transition: transform 1s var(--ease), opacity .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card.is-sold-out .product-card__media img { filter: grayscale(1) opacity(.5); }
.product-card__alt { opacity: 0; }
.product-card__badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; }
.product-card__badges .badge { height: 24px; padding: 0 9px; font-size: .72rem; }

/* Floating quick-add: round cart button that grows to "Add" on hover */
.product-card__quick.ew-atc-btn, .product-card__quick.ew-view-btn {
    position: absolute; right: 10px; bottom: 10px; z-index: 2;
    height: 44px; min-width: 44px; padding: 0 13px; gap: 0;
    justify-content: center;
    box-shadow: 0 10px 22px -8px rgba(0, 70, 184, .7);
}
.product-card__quick .ew-atc-text {
    max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
    transition: max-width .45s var(--ease), opacity .3s, margin .45s var(--ease);
}
.product-card:hover .product-card__quick .ew-atc-text,
.product-card__quick:focus-visible .ew-atc-text,
.product-card__quick.ew-atc-loading .ew-atc-text,
.product-card__quick.ew-atc-done .ew-atc-text { max-width: 80px; opacity: 1; margin-left: 8px; }
.product-card__quick.ew-view-btn { border: 0; background: #1f2a3d; color: #fff; padding: 0 18px; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .5); }
.product-card__quick.ew-view-btn:hover { background: #2b86ff; color: #fff; }

.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 8px 6px; }
.product-card__cat { color: var(--accent); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.product-card__title { margin: 6px 0 8px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.product-card__title a {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    color: var(--text);
}
.product-card__title a:hover { color: var(--accent); }
.product-card__rating { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--text-3); font-size: .78rem; }
.product-card__rating .star-rating { font-size: 12px; }
.product-card__rating .star-rating span::before { font-size: 12px; }
.product-card__foot { display: flex; align-items: center; margin-top: auto; padding-top: 4px; }
.product-card .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.product-card .price del { display: inline; order: 2; font-family: var(--font-body); font-size: .82rem; letter-spacing: 0; }
.product-card .price ins { order: 1; }

.price { color: var(--text); font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.price del { display: block; color: var(--text-3); font-size: .8rem; font-weight: 500; text-decoration-thickness: 2px; }
.price ins { text-decoration: none; color: var(--orange); }
.price .screen-reader-text { display: none; }

.ew-atc-btn, .ew-view-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: var(--gradient);
    color: #fff;
    font-size: .82rem; font-weight: 700;
    box-shadow: 0 6px 14px -6px rgba(0, 70, 184, .6);
    transition: background .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
}
.ew-atc-btn:hover { background: var(--gradient-orange); color: #fff; box-shadow: 0 10px 20px -8px rgba(255, 138, 31, .55); }
.ew-atc-btn:active { transform: scale(.96); }
.ew-view-btn { border: 2px solid var(--line-strong); background: transparent; color: var(--text-2); box-shadow: none; }
.ew-view-btn:hover { border-color: var(--accent); color: var(--accent); }
.ew-atc-btn.ew-atc-loading { opacity: .7; pointer-events: none; }
.ew-atc-btn.ew-atc-loading .ew-icon { animation: ew-spin 1s linear infinite; }
.ew-atc-btn.ew-atc-done { background: var(--success); border-color: var(--success); color: #fff; }

/* =============================================
   CAPSULE CAROUSEL (home): promo banners as calm, premium dark-glass pills.
   One accent colour per capsule (--acc: the theme's sky blue / cyan / orange) is used
   sparingly: hairline edge, icon, label and the arrow on the button. One capsule shows
   at a time; slides cross-fade with a short horizontal drift. The active dot is a wider
   pill whose white fill is the autoplay timer (shape, not colour, marks it).
   ============================================= */
.promo-capsules__track { display: grid; touch-action: pan-y; }
.promo-capsule {
    --acc: 140, 196, 255;
    grid-area: 1 / 1;
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 36px;
    height: 270px;
    padding: 0 36px 0 36px;
    border-radius: 999px;
    background:
        linear-gradient(100deg, rgba(var(--acc), .14) 0%, rgba(var(--acc), 0) 42%),
        rgba(9, 18, 40, .74);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 60px -32px rgba(0, 0, 0, .85);
    color: #fff;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateX(32px);
    transition: opacity .6s ease, transform .8s var(--ease), visibility 0s .8s;
}
.promo-capsule:hover, .promo-capsule:focus { color: #fff; }
.promo-capsule:focus-visible { outline: 2px solid rgb(var(--acc)); outline-offset: 4px; }
.promo-capsule--drone   { --acc: 140, 196, 255; }   /* sky blue */
.promo-capsule--iot     { --acc: 47, 224, 208; }    /* cyan */
.promo-capsule--arduino { --acc: 255, 165, 82; }    /* orange accent */

.promo-capsule.is-active {
    z-index: 2;
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: none;
    transition: opacity .6s ease .1s, transform .8s var(--ease) .1s, visibility 0s;
}
.promo-capsule.is-leaving {
    z-index: 1;
    visibility: visible; opacity: 0;
    transform: translateX(-32px);
    transition: opacity .5s ease, transform .7s var(--ease), visibility 0s .7s;
}

/* hairline gradient edge: accent on the left, fading to a faint white line */
.promo-capsule::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    border-radius: inherit; padding: 1px;
    background: linear-gradient(100deg, rgba(var(--acc), .85), rgba(var(--acc), .18) 38%, rgba(255, 255, 255, .1) 70%, rgba(var(--acc), .4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}
/* one soft light sweep across the glass each time a capsule arrives */
.promo-capsule::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .07) 50%, transparent 65%);
    transform: translateX(-100%);
}
.promo-capsule.is-active::after { animation: ew-cap-sheen 1.4s var(--ease) .25s both; }
@keyframes ew-cap-sheen { to { transform: translateX(100%); } }

/* accent glow behind the icon, breathing slowly */
.promo-capsule__glow {
    position: absolute; z-index: -1; left: -70px; top: 50%;
    width: 380px; height: 380px; margin-top: -190px; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--acc), .3), transparent 65%);
    animation: ew-cap-breathe 5s ease-in-out infinite alternate;
}
@keyframes ew-cap-breathe { to { transform: scale(1.12); opacity: .75; } }

/* icon: flat line icon in a dark lens with an accent ring and a faint outer ring */
.promo-capsule__icon {
    position: relative; display: grid; place-items: center;
    width: 164px; height: 164px; border-radius: 50%;
    color: rgb(var(--acc));
    background: radial-gradient(circle at 50% 30%, rgba(var(--acc), .2), rgba(var(--acc), .03) 70%), rgba(5, 11, 26, .55);
    box-shadow: inset 0 0 0 1px rgba(var(--acc), .5), inset 0 0 36px rgba(var(--acc), .16), 0 0 46px -12px rgba(var(--acc), .6);
}
.promo-capsule__icon::before {
    content: ''; position: absolute; inset: -12px; border-radius: 50%;
    border: 1px solid rgba(var(--acc), .16);
}
.promo-capsule__icon .ew-icon {
    width: 70px; height: 70px; stroke-width: 1.35;
    filter: drop-shadow(0 0 10px rgba(var(--acc), .55));
    animation: ew-cap-float 4s ease-in-out infinite;
}
@keyframes ew-cap-float { 50% { transform: translateY(-5px); } }

/* type */
.promo-capsule__body { display: block; min-width: 0; }
.promo-capsule__tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: rgb(var(--acc));
}
.promo-capsule__tag::before { content: ''; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.promo-capsule__title {
    margin: 10px 0 8px;
    font-family: var(--font-heading); font-size: 2rem; font-weight: 700; line-height: 1.12; letter-spacing: -.02em;
    color: #fff;
}
.promo-capsule__text { display: block; max-width: 520px; color: #c3cee0; font-size: .95rem; line-height: 1.55; }


/* button: white pill + accent arrow disc */
.promo-capsule__cta {
    display: inline-flex; align-items: center; gap: 12px;
    margin-top: 18px; padding: 6px 6px 6px 22px; border-radius: 999px;
    background: #fff; color: #0a1428;
    font-size: .92rem; font-weight: 600; white-space: nowrap;
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.promo-capsule__cta-icon {
    display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgb(var(--acc)); color: #06101f;
    transition: transform .3s var(--ease);
}
.promo-capsule:hover .promo-capsule__cta { box-shadow: 0 12px 30px -10px rgba(var(--acc), .75); }
.promo-capsule:hover .promo-capsule__cta-icon { transform: translateX(3px); }

/* contents settle in after the capsule arrives (short — slides change every 2.5s) */
.promo-capsule__icon { transition: transform .7s var(--ease), opacity .5s; }
.promo-capsule__tag, .promo-capsule__title, .promo-capsule__text, .promo-capsule__cta { transition: opacity .45s ease, translate .6s var(--ease), box-shadow .3s var(--ease); }
.promo-capsule:not(.is-active) .promo-capsule__icon { transform: scale(.86); opacity: 0; }
.promo-capsule:not(.is-active) :is(.promo-capsule__tag, .promo-capsule__title, .promo-capsule__text, .promo-capsule__cta) { opacity: 0; translate: 0 12px; }
.promo-capsule.is-active .promo-capsule__icon  { transition-delay: .1s; }
.promo-capsule.is-active .promo-capsule__tag   { transition-delay: .18s; }
.promo-capsule.is-active .promo-capsule__title { transition-delay: .24s; }
.promo-capsule.is-active .promo-capsule__text  { transition-delay: .3s; }
.promo-capsule.is-active .promo-capsule__cta   { transition-delay: .36s; }

/* controls: arrows + pill dots */
.promo-capsules__nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.promo-capsules__arrow {
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
    cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.promo-capsules__arrow:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }
.promo-capsules__arrow:active { transform: scale(.92); }
.promo-capsules__arrow--prev .ew-icon { transform: rotate(180deg); }
.promo-capsules__dots { display: flex; }
.promo-capsules__dot { display: inline-flex; align-items: center; height: 44px; padding: 0 5px; background: none; border: 0; cursor: pointer; }
.promo-capsules__dot span {
    position: relative; display: block; overflow: hidden;
    width: 10px; height: 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .28);
    transition: width .5s var(--ease), background .3s;
}
.promo-capsules__dot:hover span { background: rgba(255, 255, 255, .5); }
.promo-capsules__dot.is-active span { width: 44px; }
.promo-capsules__dot span::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: #fff; transform-origin: left; transform: scaleX(0);
}
.promo-capsules__dot.is-active span::after { animation: ew-cap-progress 2.5s linear forwards; }   /* slide interval */
.promo-capsules.is-paused .promo-capsules__dot.is-active span::after,
.promo-capsules:has(:focus-visible) .promo-capsules__dot.is-active span::after { animation-play-state: paused; }
@media (hover: hover) {
    .promo-capsules:hover .promo-capsules__dot.is-active span::after { animation-play-state: paused; }
}
@keyframes ew-cap-progress { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
    .promo-capsules__dot.is-active span::after { animation: none; transform: none; }   /* no autoplay: active dot shown solid */
}

/* product photo on the right: white lens (photos have white backgrounds) with an accent ring */
.promo-capsule__media {
    position: relative; display: grid; place-items: center; flex-shrink: 0;
    width: 196px; height: 196px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 6px rgba(var(--acc), .22), 0 0 0 14px rgba(var(--acc), .08), 0 24px 44px -18px rgba(0, 0, 0, .8);
    overflow: hidden;
    transition: transform .7s var(--ease), opacity .5s;
}
.promo-capsule__media img { width: 100%; height: 100%; object-fit: contain; padding: 4%; scale: 1.12; animation: ew-cap-float 4.5s ease-in-out infinite; }
.promo-capsule:not(.is-active) .promo-capsule__media { transform: translateX(24px) scale(.86); opacity: 0; }
.promo-capsule.is-active .promo-capsule__media { transition-delay: .2s; }
.promo-capsule:hover .promo-capsule__media img { animation-play-state: paused; }

/* tablet: smaller icon and photo */
@media (max-width: 960px) {
    .promo-capsule { column-gap: 22px; height: 250px; padding: 0 30px 0 22px; }
    .promo-capsule__icon { width: 120px; height: 120px; }
    .promo-capsule__icon .ew-icon { width: 52px; height: 52px; }
    .promo-capsule__media { width: 150px; height: 150px; }
    .promo-capsule__title { font-size: 1.45rem; }
    .promo-capsule__text { font-size: .86rem; }
}
/* phone: product photo on the left, then label, title and button (icon + description hidden) */
@media (max-width: 640px) {
    .promo-capsule { grid-template-columns: auto minmax(0, 1fr); height: 196px; column-gap: 16px; padding: 0 30px 0 16px; }
    .promo-capsule__icon { display: none; }
    .promo-capsule__media { order: -1; width: 112px; height: 112px; box-shadow: 0 0 0 4px rgba(var(--acc), .25), 0 16px 30px -14px rgba(0, 0, 0, .8); }
    .promo-capsule__glow { left: -110px; }
    .promo-capsule__tag { font-size: .75rem; letter-spacing: .1em; gap: 8px; }
    .promo-capsule__tag::before { width: 14px; }
    .promo-capsule__title { margin: 6px 0 0; font-size: 1.12rem; line-height: 1.2; }
    .promo-capsule__text { display: none; }
    .promo-capsule__cta { margin-top: 12px; gap: 10px; padding: 4px 4px 4px 16px; font-size: .82rem; }
    .promo-capsule__cta-icon { width: 34px; height: 34px; }
}

/* Store stats inside the "Why Choose ElectroWay" band */
.why-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1040px; margin: 0 auto 40px; }
@media (max-width: 900px) { .why-stats { grid-template-columns: repeat(2, 1fr); max-width: 560px; } }
.why-stats div {
    display: flex; flex-direction: column-reverse; align-items: center;
    padding: 22px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .04);
}
.why-stats dt { color: #fff; font-family: var(--font-heading); font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.why-stats dd { margin: 0 0 8px; color: var(--text-3); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.why-stats div:nth-child(2) dt { color: #ffb366; }

/* Clickable stat boxes: the label's link covers the whole box */
.why-stats div { position: relative; text-align: center; transition: transform .35s var(--ease), border-color .3s, background .3s, box-shadow .35s var(--ease); }
.why-stats__link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: inherit; }
.why-stats__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.why-stats__link .ew-icon { transition: transform .3s var(--ease); }
.why-stats div:hover, .why-stats div:focus-within {
    transform: translateY(-4px);
    border-color: rgba(140, 196, 255, .6);
    background: rgba(140, 196, 255, .08);
    box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .7);
}
.why-stats div:hover .why-stats__link, .why-stats div:focus-within .why-stats__link { color: #fff; }
.why-stats div:hover .why-stats__link .ew-icon { transform: translateX(4px); }
.why-stats__link:focus-visible { outline: none; }
.why-stats div:has(.why-stats__link:focus-visible) { outline: 2px solid #8cc4ff; outline-offset: 3px; }
@media (hover: none) { .why-stats div:active { transform: scale(.97); } }

/* "Find Us on Maps": a map pin in place of a number, with a gentle drop-and-settle */
.why-stats__pin { display: inline-grid; place-items: center; height: 2.6rem; color: #8cc4ff; }
.why-stats__pin .ew-icon { width: 2.4rem; height: 2.4rem; stroke-width: 1.8; filter: drop-shadow(0 6px 10px rgba(77, 163, 255, .45)); animation: ew-pin-bob 2.4s var(--ease) infinite; }
/* "Read Our Blog": an open book (orange, like Happy Customers) that gently rocks */
.why-stats__book { display: inline-grid; place-items: center; height: 2.6rem; color: #ffb366; }
.why-stats__book .ew-icon { width: 2.4rem; height: 2.4rem; stroke-width: 1.8; filter: drop-shadow(0 6px 10px rgba(255, 140, 50, .4)); transform-origin: 50% 90%; animation: ew-book-tilt 3.2s var(--ease) infinite; }
@keyframes ew-book-tilt { 0%, 100% { transform: rotate(0) scale(1); } 30% { transform: rotate(-6deg) scale(1.06); } 55% { transform: rotate(4deg) scale(1.03); } 75% { transform: rotate(0) scale(1); } }
@keyframes ew-pin-bob { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } 60% { transform: translateY(0); } 70% { transform: translateY(-2px); } }

/* "Happy Customers" reviews pop-up: centred glass panel on desktop, bottom sheet on phones */
html.ew-dialog-open { overflow: hidden; }
.ew-reviews {
    --text: #ffffff; --text-2: #d4dceb; --text-3: #aab6ca;
    width: min(760px, calc(100% - 32px)); max-width: none; max-height: min(88vh, 860px);
    margin: auto; padding: 0;
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 26px;
    background: rgba(8, 16, 36, .94);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
    color: var(--text-2);
    overflow: hidden;
}
.ew-reviews[open] { display: flex; animation: ew-dlg-in .45s var(--ease) both; }
.ew-reviews.is-closing { animation: ew-dlg-out .22s ease both; }
.ew-reviews::backdrop { background: rgba(2, 6, 16, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: ew-fade-in .3s ease both; }
@keyframes ew-dlg-in  { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes ew-dlg-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes ew-fade-in { from { opacity: 0; } }

.ew-reviews__panel { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.ew-reviews__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 16px 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ew-reviews__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #8cc4ff; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ew-reviews__eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.ew-reviews__title { margin: 6px 0 0; color: #fff; font-size: 1.6rem; outline: none; }
.ew-reviews__close {
    flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #fff; cursor: pointer;
    transition: background .2s, transform .2s var(--ease);
}
.ew-reviews__close:hover { background: rgba(255, 255, 255, .18); transform: rotate(90deg); }
.ew-reviews__body { overflow-y: auto; overscroll-behavior: contain; padding: 20px 28px 28px; }

/* review cards (shown when a Places API key is configured) */
.ew-reviews__summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 16px; }
.ew-reviews__score { color: #fff; font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.ew-reviews__stars, .ew-review__stars { color: #ffb366; letter-spacing: 2px; }
.ew-reviews__count { color: var(--text-3); font-size: .9rem; }
.ew-reviews__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.ew-review { padding: 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; background: rgba(255, 255, 255, .04); }
.ew-review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ew-review__avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.ew-review__avatar--initial { display: grid; place-items: center; background: #1f5fc4; color: #fff; font-weight: 700; }
.ew-review__name { display: block; color: #fff; font-size: .95rem; }
.ew-review__meta { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: .8rem; }
.ew-review__stars-off { color: rgba(255, 255, 255, .25); }
.ew-review__text { margin: 0; color: var(--text-2); font-size: .9rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.ew-reviews__credit { margin: -8px 0 16px; color: var(--text-3); font-size: .75rem; }
/* Trustindex Google reviews widget */
.ew-reviews__widget { margin: 0 0 20px; min-height: 120px; }
.ew-reviews__widget .ti-widget { max-width: 100%; }
.ew-reviews__admin-note { margin: 0 0 16px; padding: 12px 14px; border: 1px dashed rgba(255, 165, 82, .6); border-radius: 12px; color: #ffd2a8; font-size: .85rem; }
.ew-reviews__admin-note a { color: #fff; text-decoration: underline; }

/* Google Maps listing (rating + review count are on the map's card) */
.ew-reviews__map { position: relative; height: 320px; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.ew-reviews.has-cards .ew-reviews__map { height: 220px; }
.ew-reviews__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ew-reviews__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ew-reviews__actions .btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }

@media (max-width: 640px) {
    /* phone: bottom sheet */
    .ew-reviews { width: 100%; max-height: 90vh; margin: auto 0 0; border-radius: 24px 24px 0 0; border-bottom: 0; }
    .ew-reviews[open] { animation: ew-sheet-in .45s var(--ease) both; }
    .ew-reviews.is-closing { animation: ew-sheet-out .22s ease both; }
    .ew-reviews__head { padding: 18px 16px 14px 20px; }
    .ew-reviews__title { font-size: 1.3rem; }
    .ew-reviews__body { padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); }
    .ew-reviews__list { grid-template-columns: 1fr; }
    .ew-reviews__map, .ew-reviews.has-cards .ew-reviews__map { height: 260px; }
    .ew-reviews__actions .btn { flex: 1 1 100%; justify-content: center; min-height: 48px; }
}
@keyframes ew-sheet-in  { from { transform: translateY(100%); } }
@keyframes ew-sheet-out { to { transform: translateY(100%); } }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .25s, transform .25s var(--ease); }
.feature-card { transition: transform .6s var(--ease), border-color .3s, background .3s; }
.feature-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.feature-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; background: var(--gradient); color: #fff; box-shadow: 0 10px 22px -10px rgba(43, 134, 255, .8); }
.feature-card:nth-child(even) .feature-card__icon { background: var(--gradient-orange); box-shadow: 0 10px 22px -10px rgba(255, 138, 31, .7); }
.feature-card__num { float: right; color: var(--text-3); font-family: var(--font-heading); font-size: .85rem; }
.feature-card h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { margin: 0; color: var(--text-3); font-size: .875rem; }

/* CTA band */
.cta-band {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    padding: 48px;
    --text: #f4f5f7; --text-2: #b9bfcb; --line-strong: rgba(255, 255, 255, .35);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: var(--fade-dark);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
    color: var(--text-2);
    overflow: hidden;
}
.cta-band__text { max-width: 620px; }
.cta-band h2 span { color: var(--accent-bright); }
.cta-band .btn--accent { background: #fff; color: var(--navy); }
.cta-band .btn--accent:hover { background: var(--accent); color: #fff; }
.cta-band .btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.cta-band p { margin: 0; color: var(--text-2); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* =============================================
   SHOP
   ============================================= */
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding-bottom: 72px; }
.shop-sidebar { display: flex; flex-direction: column; gap: 16px; align-self: start; position: sticky; top: calc(var(--header-h) + 64px); }
.sidebar-widget { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.widget-title { margin-bottom: 14px; font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-2); }
.filter-list { list-style: none; display: grid; gap: 2px; }
.filter-list a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-size: .9rem; }
.filter-list a:hover { background: var(--surface-2); color: var(--text); }
.filter-list a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.filter-list .count { min-width: 26px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-3); font-size: .72rem; text-align: center; }
.filter-list--sub { margin: 2px 0 4px 12px; padding-left: 8px; border-left: 1px solid var(--line); }
.filter-list--sub a { font-size: .85rem; padding: 6px 10px; }

.shop-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 10px 10px 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.woocommerce-result-count { flex: 1; margin: 0; color: var(--text-3); font-size: .875rem; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { width: auto; min-width: 210px; padding-top: 9px; padding-bottom: 9px; border-radius: 999px; }
.filters-toggle { display: none; }

.empty-state { padding: 64px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state > .ew-icon { margin: 0 auto 16px; color: var(--text-3); }
.empty-state p { color: var(--text-3); }

/* Pagination */
.woocommerce-pagination, .pagination-wrap { margin-top: 36px; }
.woocommerce-pagination ul.page-numbers, .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; list-style: none; }
.page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text-2); font-weight: 600; }
a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.page-numbers.current { background: var(--gradient); border-color: transparent; color: #fff; }

/* Price filter widget */
.widget_price_filter .price_slider_wrapper { padding-top: 6px; }
.widget_price_filter .price_slider { position: relative; height: 4px; margin: 8px 6px 22px; border-radius: 4px; background: var(--surface-3); }
.widget_price_filter .ui-slider-range { position: absolute; top: 0; height: 100%; border-radius: 4px; background: var(--gradient); }
.widget_price_filter .ui-slider-handle { position: absolute; top: -6px; z-index: 2; width: 16px; height: 16px; margin-left: -8px; border: 3px solid var(--accent); border-radius: 50%; background: #fff; cursor: grab; outline: none; }
.widget_price_filter .price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: .85rem; }
.widget_price_filter .price_slider_amount input { display: none; }
.widget_price_filter .price_slider_amount .button { order: 2; padding: 7px 16px; font-size: .8rem; }
.widget_price_filter .price_label { color: var(--text-2); }
.widget_price_filter .clear { display: none; }

/* =============================================
   SINGLE PRODUCT
   ============================================= */
.sp-page { padding-top: 36px; padding-bottom: 72px; }
.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.sp-gallery { position: sticky; top: calc(var(--header-h) + 64px); }
.sp-main-img { position: relative; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.sp-main-img img { width: 100%; height: 100%; padding: 6%; object-fit: contain; cursor: zoom-in; transition: opacity .16s; }
.ew-img-counter { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--text); font-size: .75rem; font-weight: 600; box-shadow: 0 2px 8px rgba(15, 35, 70, .1); }
.sp-sale-badge { position: absolute; top: 14px; right: 14px; z-index: 2; height: 26px; padding: 0 12px; }
.ew-img-zoom-btn { position: absolute; right: 14px; bottom: 14px; z-index: 2; background: var(--surface); border-color: var(--line); box-shadow: 0 2px 8px rgba(15, 35, 70, .1); }
.sp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.product-thumb { padding: 0; aspect-ratio: 1; border: 3px solid var(--line-strong); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color .2s; }
.product-thumb img { width: 100%; height: 100%; padding: 6%; object-fit: contain; transition: transform .3s var(--ease); }
.product-thumb:hover img { transform: scale(1.06); }
.product-thumb.active { border-color: var(--orange); }

.sp-details { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.sp-cat { display: inline-block; margin-bottom: 10px; color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.sp-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 12px; }
.sp-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sp-review-count { color: var(--text-3); font-size: .85rem; }
.sp-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.sp-price { color: var(--text); font-family: var(--font-heading); font-size: 2.1rem; font-weight: 700; line-height: 1; }
.sp-price del { margin-right: 10px; color: var(--text-3); font-size: 1.3rem; font-weight: 500; }
.sp-price ins { text-decoration: none; color: var(--orange); }
/* Stock status uses icon + text on a solid fill, so it never relies on telling green from red */
.stock-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; color: #fff; font-size: .82rem; font-weight: 700; }
.stock-badge .ew-icon { stroke-width: 3; }
.stock-badge.is-in { background: var(--success); }
.stock-badge.is-out { background: var(--danger); }
.sp-short { color: var(--text-2); }
.sp-short ul { padding-left: 0; list-style: none; display: grid; gap: 6px; }
.sp-short li { position: relative; padding-left: 22px; }
.sp-short li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

.ew-cart-form-wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 24px 0; padding: 4px; border-radius: var(--radius); transition: box-shadow .3s; }
.ew-cart-form-wrap.ew-form-flash { box-shadow: 0 0 0 2px var(--orange); }
.ew-cart-form-wrap form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.ew-cart-form-wrap .stock { display: none; }
.ew-cart-form-wrap .single_add_to_cart_button { min-width: 170px; padding: 14px 26px; }
.ew-buy-now-btn { min-width: 150px; padding: 14px 26px; }
.ew-buy-now-btn.ew-bn-loading { opacity: .7; pointer-events: none; }
.ew-cart-form-wrap table.variations { width: 100%; margin-bottom: 8px; border-collapse: collapse; }
.ew-cart-form-wrap table.variations th, .ew-cart-form-wrap table.variations td { padding: 6px 0; text-align: left; }
.reset_variations { margin-left: 10px; font-size: .8rem; }

.quantity { position: relative; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.quantity .qty { width: 54px; padding: 12px 0; border: 0; border-radius: 0; background: transparent; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.quantity .qty:focus { box-shadow: none; }
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 42px; height: 100%; min-height: 46px; border: 0; background: transparent; color: var(--text-2); font-size: 1.2rem; }
.qty-btn:hover { color: var(--accent); background: var(--surface-3); }

.sp-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 24px; list-style: none; }
.sp-trust li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-2); font-size: .85rem; }
.sp-trust .ew-icon { color: var(--accent); }
.sp-meta { display: grid; gap: 8px; margin: 0 0 20px; font-size: .875rem; }
.sp-meta div { display: flex; gap: 12px; }
.sp-meta dt { min-width: 80px; color: var(--text-3); }
.sp-meta dd { margin: 0; color: var(--text-2); }
.sp-share { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: .85rem; }
.sp-share span { margin-right: 4px; }

/* Tabs */
.sp-tabs { margin-top: 56px; }
.woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 24px; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 10px 20px; border-radius: 999px; color: var(--text-2); font-size: .9rem; font-weight: 600; }
.woocommerce-tabs ul.tabs li a:hover { color: var(--text); }
.woocommerce-tabs ul.tabs li.active a { background: var(--gradient); color: #fff; }
.woocommerce-tabs .panel { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--text-2); }
.woocommerce-tabs .panel > h2:first-child { font-size: 1.4rem; }
.woocommerce-tabs .panel ul { padding-left: 20px; margin-bottom: 1em; }
.woocommerce-tabs .panel h3 { margin-top: 1.4em; font-size: 1.15rem; }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce-product-attributes th { width: 200px; color: var(--text); font-weight: 600; }
.woocommerce-product-attributes td p { margin: 0; }

/* Reviews */
#reviews .commentlist { list-style: none; display: grid; gap: 16px; margin-bottom: 28px; }
#reviews .commentlist li .comment_container { display: flex; gap: 16px; padding: 18px; background: var(--surface-2); border-radius: var(--radius); }
#reviews .commentlist img.avatar { width: 44px; height: 44px; border-radius: 50%; }
#reviews .comment-text { flex: 1; }
#reviews .comment-text .star-rating { float: right; }
#reviews .comment-text .meta { margin-bottom: 6px; color: var(--text-3); font-size: .85rem; }
#reviews .comment-text .meta strong { color: var(--text); }
#reviews .comment-text .description p { margin: 0; }
#review_form_wrapper { margin-top: 12px; }
#reply-title { display: block; margin-bottom: 12px; color: var(--text); font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; }
.comment-form > p { margin-bottom: 16px; }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form-cookies-consent label { margin: 0; }

.star-rating { position: relative; display: inline-block; width: 5.6em; height: 1.1em; font-size: 14px; line-height: 1.1; overflow: hidden; }
.star-rating::before { content: '★★★★★'; position: absolute; top: 0; left: 0; color: var(--surface-3); letter-spacing: .12em; }
.star-rating span { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; font-size: 0; }
.star-rating span::before { content: '★★★★★'; position: absolute; top: 0; left: 0; color: var(--star); font-size: 14px; letter-spacing: .12em; }
p.stars { margin: 4px 0 0; }
p.stars span { display: inline-flex; gap: 2px; }
p.stars a { position: relative; width: 26px; height: 26px; font-size: 0; text-decoration: none; }
p.stars a::before { content: '★'; position: absolute; inset: 0; color: var(--surface-3); font-size: 24px; line-height: 26px; transition: color .15s; }
p.stars:hover a::before, p.stars.selected a::before { color: var(--star); }
p.stars span:hover a:hover ~ a::before, p.stars.selected a.active ~ a::before { color: var(--surface-3); }

.sp-related { margin-top: 72px; }

/* Lightbox */
.ew-lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(11, 22, 40, .9); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.ew-lightbox.ew-lb-open { opacity: 1; visibility: visible; }
.ew-lb-img-wrap { max-width: min(90vw, 900px); max-height: 85vh; }
.ew-lb-img-wrap img { max-height: 85vh; width: auto; border-radius: var(--radius); transition: opacity .14s; }
.ew-lb-close, .ew-lb-prev, .ew-lb-next { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.8rem; line-height: 1; }
.ew-lb-close:hover, .ew-lb-prev:hover, .ew-lb-next:hover { border-color: var(--accent); color: var(--accent); }
.ew-lb-close { top: 20px; right: 20px; }
.ew-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.ew-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.ew-lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--text-2); font-size: .85rem; }

/* =============================================
   PAGES (about, contact, prose, posts)
   ============================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual img { border-radius: var(--radius-lg); }
.about-visual__orb {
    display: grid; place-items: center;
    aspect-ratio: 1; max-width: 460px; margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, #1a4a8c 0%, #0f2a55 45%, var(--navy) 80%);
    box-shadow: 0 30px 70px rgba(0, 70, 170, .28), 0 0 0 12px rgba(0, 136, 230, .07);
}
.about-visual__orb img { width: 62%; filter: drop-shadow(0 0 24px rgba(0, 170, 255, .7)); }
.about-content { padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-content h2 { margin: 16px 0; }
.about-content h2 span { color: var(--accent); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.stats-row div { display: flex; flex-direction: column-reverse; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stats-row dt { color: var(--accent); font-family: var(--font-heading); font-size: 2rem; font-weight: 700; line-height: 1; }
.stats-row dd { margin: 0 0 6px; color: var(--text-3); font-size: .8rem; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: .875rem; }
.contact-list .ew-icon { margin-top: 2px; color: var(--accent); }
.contact-list a { color: var(--text-2); }
.contact-list a:hover { color: var(--accent); }
.contact-list--lg { gap: 20px; margin: 20px 0 24px; }
.contact-list--lg li { font-size: .925rem; }
.contact-list--lg strong { display: block; color: var(--text); }
.map-container { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-container iframe { display: block; width: 100%; height: 240px; border: 0; }

/* Contact page: white text on glass, same palette as cart / checkout / account */
.contact-page, .about-page, .legal-page, .blog-page {
    --text: #ffffff;
    --text-2: #e6ecf6;
    --text-3: #bccadf;
    --line: rgba(255, 255, 255, .18);
    --line-strong: rgba(255, 255, 255, .38);
    --surface: rgba(14, 26, 54, .78);
    --surface-2: rgba(255, 255, 255, .1);
    --accent: #8cc4ff;
    --accent-soft: rgba(140, 196, 255, .16);
    --orange: #ffa552;
    color: var(--text-2);
}
.contact-page .card {
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -34px rgba(0, 0, 0, .8);
}
.contact-page h3 { margin: 6px 0 0; color: var(--text); font-size: 1.5rem; }
.contact-page .contact-form h3 { margin-bottom: 22px; }
.contact-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.contact-eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.contact-page .contact-list li { align-items: center; }
.contact-list__icon {
    flex-shrink: 0; display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(140, 196, 255, .35);
    color: var(--accent);
}
.contact-list__icon .ew-icon { margin: 0; }
.contact-page .contact-list a { color: var(--text-2); text-decoration: underline; text-decoration-color: rgba(140, 196, 255, .5); text-underline-offset: 3px; }
.contact-page .contact-list a:hover { color: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
:is(.contact-page, .about-page) .btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
:is(.contact-page, .about-page) .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.contact-social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.contact-social > span { margin-right: 4px; color: var(--text-3); font-size: .85rem; }
.contact-social__link { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-size: .85rem; font-weight: 500; transition: background .2s, border-color .2s; }
.contact-social__link:hover { background: var(--accent-soft); border-color: var(--accent); color: #fff; }
.contact-page .map-container { border-color: var(--line); }
.contact-page .map-container iframe { height: 260px; }
@media (max-width: 640px) {
    .contact-actions .btn { flex: 1 1 100%; justify-content: center; }
    .contact-social__link { padding: 10px 14px; }
}




/* Parts Assistant chat (home, its own section above the capsule banners) */
.section--assistant .ew-assistant { margin-top: 0; }
.section--assistant { padding-bottom: 24px; }
.ew-assistant {
    position: relative;
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: stretch;
    margin-top: 48px; padding: 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(77, 163, 255, .14), rgba(14, 26, 54, .78) 45%), rgba(9, 18, 40, .72);
    border: 1px solid rgba(140, 196, 255, .28);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 34px 70px -36px rgba(0, 0, 0, .9);
}
.ew-assistant__intro { display: flex; flex-direction: column; justify-content: center; }
.ew-assistant__badge {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 165, 82, .14); border: 1px solid rgba(255, 165, 82, .45);
    color: #ffc58f; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.ew-assistant__intro h3 { margin: 16px 0 10px; color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; }
.ew-assistant__intro p { margin: 0 0 22px; color: #d4dceb; line-height: 1.65; }
.ew-assistant__try { display: block; margin-bottom: 10px; color: #8cc4ff; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ew-assistant__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ew-assistant__chip {
    min-height: 40px; padding: 8px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .24);
    color: #fff; font: inherit; font-size: .86rem; cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.ew-assistant__chip:hover { background: rgba(140, 196, 255, .14); border-color: #8cc4ff; transform: translateY(-1px); }

.ew-assistant__chat {
    display: flex; flex-direction: column; min-height: 0; height: 520px;
    border-radius: 22px; overflow: hidden;
    background: rgba(4, 10, 24, .7); border: 1px solid rgba(255, 255, 255, .14);
}
.ew-assistant__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); }
.ew-assistant__head strong { display: block; color: #fff; font-size: .98rem; }
.ew-assistant__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(145deg, #2b86ff, #0046b8); color: #fff; box-shadow: 0 8px 18px -8px rgba(43, 134, 255, .8); }
.ew-assistant__status { display: inline-flex; align-items: center; gap: 6px; color: #aab6ca; font-size: .78rem; }
.ew-assistant__status > span { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: ew-online 2s infinite; }
@keyframes ew-online { 70% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

.ew-assistant__log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding: 18px; scrollbar-width: thin; }
.ew-assistant__log:focus-visible { outline: 2px solid #8cc4ff; outline-offset: -2px; }
.ew-msg { display: flex; flex-direction: column; max-width: 92%; animation: ew-msg-in .35s var(--ease) both; }
.ew-msg--user { align-self: flex-end; align-items: flex-end; }
.ew-msg--bot  { align-self: flex-start; }
@keyframes ew-msg-in { from { opacity: 0; transform: translateY(8px); } }
.ew-msg__bubble { padding: 11px 15px; border-radius: 18px; font-size: .92rem; line-height: 1.55; }
.ew-msg__bubble p { margin: 0; }
.ew-msg__bubble p + p { margin-top: 4px; }
.ew-msg--bot .ew-msg__bubble  { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #e6ecf6; border-bottom-left-radius: 6px; }
.ew-msg--user .ew-msg__bubble { background: linear-gradient(145deg, #2b86ff, #0057d9); color: #fff; border-bottom-right-radius: 6px; }
.ew-msg__cartlink { display: inline-block; margin-top: 8px; color: #8cc4ff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* typing indicator */
.ew-msg--typing .ew-msg__bubble { display: inline-flex; gap: 5px; padding: 14px 16px; }
.ew-msg--typing .ew-msg__bubble span { width: 7px; height: 7px; border-radius: 50%; background: #8cc4ff; animation: ew-typing 1.2s infinite ease-in-out; }
.ew-msg--typing .ew-msg__bubble span:nth-child(2) { animation-delay: .15s; }
.ew-msg--typing .ew-msg__bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes ew-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

/* product cards in the chat */
.ew-msg__products { display: grid; gap: 8px; margin-top: 10px; width: 100%; }
.ew-pcard { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.ew-pcard__img { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; background: #fff; overflow: hidden; }
.ew-pcard__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ew-pcard__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ew-pcard__name { color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.3; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ew-pcard__name:hover { color: #8cc4ff; text-decoration: underline; }
.ew-pcard__price { color: #ffb366; font-family: var(--font-heading); font-weight: 700; font-size: .95rem; }
.ew-pcard__price del { color: #aab6ca; font-family: var(--font-body); font-weight: 400; font-size: .78rem; }
.ew-pcard__stock { color: #ff9b9b; font-size: .75rem; }
.ew-pcard.is-out .ew-pcard__img img { filter: grayscale(1) opacity(.6); }
.ew-pcard__add {
    min-width: 64px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 0;
    background: #2b86ff; color: #fff; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none;
    transition: background .2s, transform .2s var(--ease);
}
.ew-pcard__add:hover { background: #4d9bff; color: #fff; }
.ew-pcard__add:active { transform: scale(.95); }
.ew-pcard__add--view { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); }
.ew-pcard__add.is-loading { opacity: .6; cursor: progress; }
.ew-pcard__add.is-added { background: #15803d; cursor: default; }   /* green + "Added ✓" text: not colour alone */
.ew-msg__addall {
    margin-top: 10px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0;
    background: linear-gradient(145deg, #ff9a3d, #e5701a); color: #1a0d02; font: inherit; font-weight: 700; cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s;
}
.ew-msg__addall:hover { box-shadow: 0 10px 24px -10px rgba(255, 154, 61, .8); transform: translateY(-1px); }
.ew-msg__addall.is-added { background: #15803d; color: #fff; }

.ew-assistant__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); }
.ew-assistant__form input {
    flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 16px;   /* 16px: no zoom on iPhone */
}
.ew-assistant__form input::placeholder { color: #9fb0c8; }
.ew-assistant__form input:focus { border-color: #8cc4ff; box-shadow: 0 0 0 3px rgba(140, 196, 255, .22); outline: none; }
.ew-assistant__form button {
    flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0;
    padding: 0; background: linear-gradient(145deg, #2b86ff, #0046b8); color: #fff; cursor: pointer;
    transition: transform .2s var(--ease), opacity .2s;
}
.ew-assistant__form button:hover { transform: scale(1.06); background: linear-gradient(145deg, #4d9bff, #0057d9); border-color: transparent; color: #fff; }
.ew-assistant__form button:disabled { opacity: .5; cursor: progress; }

@media (max-width: 960px) {
    .ew-assistant { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px; }
}
@media (max-width: 640px) {
    .ew-assistant { margin-top: 32px; padding: 18px 14px; border-radius: 22px; }
    .ew-assistant__chat { height: 480px; border-radius: 18px; }
    .ew-assistant__log { padding: 14px 12px; }
    .ew-msg { max-width: 100%; }
    .ew-pcard { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; }
    .ew-pcard__img { width: 48px; height: 48px; }
}
/* Empty cart: animated cart + floating parts, message, actions, category shortcuts */
.ew-empty-cart { display: flex; flex-direction: column; align-items: center; max-width: 640px; margin: 0 auto; padding: 28px 8px 12px; text-align: center; }
.ew-empty-cart__art { position: relative; display: grid; place-items: center; width: 200px; height: 200px; margin-bottom: 8px; }
.ew-empty-cart__ring {
    position: absolute; inset: 22px; border-radius: 50%;
    border: 1px solid rgba(140, 196, 255, .35);
    background: radial-gradient(circle at 50% 40%, rgba(77, 163, 255, .22), rgba(77, 163, 255, .04) 65%, transparent 70%);
    animation: ew-ec-pulse 3.2s ease-in-out infinite;
}
.ew-empty-cart__ring--2 { inset: 0; border-style: dashed; border-color: rgba(140, 196, 255, .22); background: none; animation: ew-ec-spin 26s linear infinite; }
.ew-empty-cart__icon {
    position: relative; display: grid; place-items: center;
    width: 96px; height: 96px; border-radius: 50%;
    background: linear-gradient(145deg, #2b86ff, #0046b8);
    box-shadow: 0 18px 40px -12px rgba(43, 134, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
    color: #fff;
    animation: ew-ec-float 4s ease-in-out infinite;
}
.ew-empty-cart__icon .ew-icon { width: 46px; height: 46px; }
.ew-empty-cart__chip {
    position: absolute; display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(14, 26, 54, .92); border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .8);
    animation: ew-ec-bob 3.6s ease-in-out infinite;
}
.ew-empty-cart__chip--1 { top: 18px; left: 10px; color: #8cc4ff; }
.ew-empty-cart__chip--2 { top: 34px; right: 4px; color: #2fe0d0; animation-delay: -1.2s; }
.ew-empty-cart__chip--3 { bottom: 16px; left: 30px; color: #ffa552; animation-delay: -2.4s; }
@keyframes ew-ec-pulse { 50% { transform: scale(1.06); opacity: .75; } }
@keyframes ew-ec-spin  { to { transform: rotate(360deg); } }
@keyframes ew-ec-float { 50% { transform: translateY(-6px); } }
@keyframes ew-ec-bob   { 50% { transform: translateY(-8px) rotate(-6deg); } }

.ew-empty-cart__title { margin: 6px 0 10px; color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.ew-empty-cart__text { max-width: 520px; margin: 0 0 24px; color: var(--text-2, #e6ecf6); line-height: 1.7; }
.ew-empty-cart__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ew-empty-cart__actions .btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.ew-empty-cart__actions .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ew-empty-cart__cats { width: 100%; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.ew-empty-cart__cats-title { display: block; margin-bottom: 14px; color: #8cc4ff; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ew-empty-cart__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ew-empty-cart__cat {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: #fff !important; font-size: .9rem; font-weight: 500; text-decoration: none !important;
    transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.ew-empty-cart__cat .ew-icon { color: #8cc4ff; }
.ew-empty-cart__cat:hover { background: rgba(140, 196, 255, .14); border-color: #8cc4ff; transform: translateY(-2px); }

/* Trending products under the cart: only while the cart block shows its empty state */
.ew-cart-picks { display: none; padding-top: 0; }
body:has(.wp-block-woocommerce-cart:not(.is-loading) .wp-block-woocommerce-empty-cart-block) .ew-cart-picks { display: block; }

@media (max-width: 640px) {
    .ew-empty-cart { padding-top: 12px; }
    .ew-empty-cart__art { width: 170px; height: 170px; }
    .ew-empty-cart__icon { width: 84px; height: 84px; }
    .ew-empty-cart__actions .btn { flex: 1 1 100%; justify-content: center; }
}
/* Legal pages (Privacy Policy): sticky contents list + glass reading card */
.legal-updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px !important; color: var(--text-3); font-size: .9rem; }
.legal-updated .ew-icon { color: var(--accent); }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1120px; }
.legal-toc {
    position: sticky; top: calc(var(--header-h, 80px) + 24px);
    padding: 22px 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.legal-toc__title { display: block; margin: 0 6px 10px; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.legal-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
    display: flex; gap: 10px; padding: 9px 10px; border-radius: 10px;
    color: var(--text-2); font-size: .9rem; line-height: 1.35; text-decoration: none;
    transition: background .2s, color .2s;
}
.legal-toc a::before { content: counter(toc, decimal-leading-zero); flex-shrink: 0; color: var(--text-3); font-variant-numeric: tabular-nums; }
.legal-toc a:hover { background: var(--surface-2); color: #fff; }
.legal-toc a.is-current { background: var(--accent-soft); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }   /* bar + fill, not colour alone */
.legal-toc a.is-current::before { color: var(--accent); }

.legal-card {
    padding: 40px 44px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -34px rgba(0, 0, 0, .8);
    color: var(--text-2); font-size: 1rem; line-height: 1.8;
}
.legal-card .legal-intro { margin: 0 0 8px; padding: 18px 20px; border-radius: var(--radius); background: var(--accent-soft); color: var(--text); font-size: 1.04rem; }
.legal-card h2 {
    scroll-margin-top: calc(var(--header-h, 80px) + 24px);
    margin: 2em 0 .6em; padding-top: 1.4em; border-top: 1px solid var(--line);
    color: var(--text); font-size: 1.4rem; line-height: 1.3;
}
.legal-card h3 { margin: 1.4em 0 .4em; color: var(--text); font-size: 1.08rem; }
.legal-card p { margin: 0 0 1em; }
.legal-card strong { color: var(--text); font-weight: 600; }
.legal-card a { color: var(--accent); }
.legal-card a:hover { color: #fff; }
.legal-card ul { margin: 0 0 1.2em; padding: 0; list-style: none; display: grid; gap: 10px; }
.legal-card ul li { position: relative; padding-left: 22px; }
.legal-card ul li::before { content: ''; position: absolute; left: 2px; top: .68em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.legal-card .legal-contact { gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.legal-card .legal-contact li { padding-left: 0; }
.legal-card .legal-contact li::before { display: none; }

@media (max-width: 960px) {
    .legal-layout { grid-template-columns: minmax(0, 1fr); }
    .legal-toc { position: static; }
    .legal-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
}
@media (max-width: 640px) {
    .legal-toc { padding: 16px 12px; }
    .legal-toc ol { grid-template-columns: minmax(0, 1fr); }
    .legal-toc a { min-height: 44px; align-items: center; }
    .legal-card { padding: 24px 18px; font-size: .95rem; }
    .legal-card h2 { font-size: 1.2rem; }
}
/* About page: glass cards on the page background (palette shared with .contact-page above) */
.about-page .page-hero p { max-width: 720px; color: var(--text-2); }
.about-page .about-content {
    background: var(--surface); border-color: var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -34px rgba(0, 0, 0, .8);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.about-page .about-content h2 { margin: 10px 0 16px; color: var(--text); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; }
.about-page .about-content p { color: var(--text-2); line-height: 1.7; }
.about-page .about-content strong { color: var(--text); font-weight: 600; }
.about-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.about-eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.about-page .stats-row div { background: var(--surface-2); border-color: var(--line); }
.about-page .stats-row dt { color: #fff; }
.about-page .stats-row div:nth-child(2) dt { color: #ffb366; }
.stats-row__text { font-size: 1.3rem !important; line-height: 1.25 !important; white-space: normal !important; }
.about-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.about-page .section-head h2 { color: var(--text); }
.about-page .section-head p { color: var(--text-2); }

/* What we sell: linked category cards */
.about-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.about-offer, .about-card, .about-why__item, .about-visit, .about-faq__item {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.about-offer {
    display: flex; flex-direction: column; gap: 10px; padding: 26px;
    color: var(--text-2);
    transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
}
.about-offer:hover { transform: translateY(-4px); border-color: rgba(140, 196, 255, .55); box-shadow: 0 24px 46px -24px rgba(0, 0, 0, .8); color: var(--text-2); }
.about-offer h3 { margin: 6px 0 0; color: var(--text); font-size: 1.12rem; }
.about-offer p { margin: 0; font-size: .92rem; line-height: 1.6; }
.about-offer__icon, .about-card__icon, .about-why__icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(140, 196, 255, .35);
    color: var(--accent);
}
.about-offer__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--accent); font-size: .88rem; font-weight: 600; }
.about-offer__more .ew-icon { transition: transform .3s var(--ease); }
.about-offer:hover .about-offer__more .ew-icon { transform: translateX(4px); }

/* Students & schools */
.about-audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.about-card { padding: 30px; }
.about-card h3 { margin: 16px 0 14px; color: var(--text); font-size: 1.3rem; }
.about-checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.about-checks li { display: flex; gap: 10px; color: var(--text-2); font-size: .95rem; line-height: 1.55; }
.about-checks .ew-icon { flex-shrink: 0; margin-top: 3px; color: #7ee0a8; }

/* Why ElectroWay */
.about-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.about-why__item { display: flex; gap: 16px; padding: 22px; }
.about-why__item h3 { margin: 2px 0 6px; color: var(--text); font-size: 1.02rem; }
.about-why__item p { margin: 0; color: var(--text-2); font-size: .9rem; line-height: 1.6; }

/* Visit us */
.about-visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; padding: 30px; }
.about-visit h2 { margin: 8px 0 0; color: var(--text); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.about-visit__map { margin: 0; }
.about-visit__map iframe { height: 340px; }

/* FAQ accordion (native details/summary: works without JavaScript) */
.about-faq { display: grid; gap: 12px; }
.about-faq__item { padding: 0 22px; }
.about-faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 60px; padding: 16px 0;
    color: var(--text); font-weight: 600; cursor: pointer; list-style: none;
}
.about-faq__item summary::-webkit-details-marker { display: none; }
.about-faq__toggle { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); }
.about-faq__toggle::before, .about-faq__toggle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--accent); transition: transform .3s var(--ease); }
.about-faq__toggle::after { transform: rotate(90deg); }
.about-faq__item[open] .about-faq__toggle::after { transform: rotate(0deg); }   /* plus becomes minus: shape, not colour */
.about-faq__item p { margin: 0; padding: 0 0 20px; color: var(--text-2); line-height: 1.7; }
.about-faq__item[open] { border-color: rgba(140, 196, 255, .45); }

@media (max-width: 960px) {
    .about-offers, .about-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-audience, .about-visit { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .about-offers, .about-why { grid-template-columns: minmax(0, 1fr); }
    .about-offer, .about-card, .about-visit { padding: 22px 18px; }
    .about-why__item { padding: 18px; }
    .about-visit__map iframe { height: 260px; }
    .about-ctas .btn, .about-visit .contact-actions .btn { flex: 1 1 100%; justify-content: center; }
    .stats-row__text { font-size: 1rem !important; }
    .about-faq__item { padding: 0 16px; }
}

.prose { color: var(--text-2); line-height: 1.8; }
.prose a, .woocommerce-tabs .panel a, .sp-meta dd a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1em; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 3px solid var(--accent); color: var(--text); }
.prose__hero { margin: 0 0 24px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { padding: 0; overflow: hidden; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 24px; }
.post-card__date { color: var(--text-3); font-size: .8rem; }
.post-card h2 { margin: 6px 0 10px; font-size: 1.3rem; }
.post-card h2 a { color: var(--text); }

/* Blog listing + single post: glass cards on the page background (palette shared with .contact-page) */
.blog-page .page-hero p { max-width: 680px; color: var(--text-2); }
.blog-page .card {
    background: var(--surface); border-color: var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -34px rgba(0, 0, 0, .8);
}
.blog-page .post-card { padding: 0; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .3s; }
.blog-page .post-card:hover, .blog-page .post-card:focus-within { transform: translateY(-4px); border-color: rgba(140, 196, 255, .6); }
.blog-page .post-card__media { display: block; overflow: hidden; }
.blog-page .post-card__media img { transition: transform .6s var(--ease); }
.blog-page .post-card:hover .post-card__media img { transform: scale(1.04); }
.blog-page .post-card__body { display: flex; flex-direction: column; flex: 1; }
.blog-page .post-card__body p { color: var(--text-2); }
.blog-page .post-card .link-arrow { margin-top: auto; color: var(--accent); }
.blog-page .post-card h2 a:hover { color: var(--accent); }
.blog-page .prose { color: var(--text-2); }
.blog-page .prose :is(h1, h2, h3, h4, strong) { color: var(--text); }
.blog-page .prose a { color: var(--accent); }
.blog-page .prose :is(table, th, td) { border-color: var(--line); }
.blog-page .page-numbers { color: var(--text-2); }
@media (max-width: 640px) {
    .post-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .post-card__body { padding: 18px; }
    .blog-page .prose.card { padding: 20px 16px; }
}

.error-404 { padding: 100px 0; text-align: center; }
.error-404 .container { max-width: 720px; padding: 48px 32px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.error-404__code { font-family: var(--font-heading); font-size: clamp(6rem, 18vw, 11rem); font-weight: 700; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-404__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* =============================================
   WOOCOMMERCE GENERAL (notices, tables, account, blocks)
   ============================================= */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, .cart-empty {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    margin: 0 0 20px; padding: 14px 18px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    color: var(--text-2);
}
.woocommerce-message { border-left-color: var(--success); }
.woocommerce-error { border-left-color: var(--danger); flex-direction: column; align-items: flex-start; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; padding: 8px 16px; font-size: .8rem; }

.wc-page { color: var(--text-2); }
/* Cart / checkout blocks sit directly on the page, so give them a white card */
.wc-page { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Homepage + All Products (shop, category, product search) + product details: see-through glass
   with white text (product photos keep a white tile, like the cart thumbnails) */
body.home .cat-card,
body.home .product-card,
.shop-layout,
.sp-page,
.ew-cart-picks {
    --text: #ffffff;
    --text-2: #e6ecf6;
    --text-3: #bccadf;
    --line: rgba(255, 255, 255, .18);
    --line-strong: rgba(255, 255, 255, .38);
    --surface: rgba(14, 26, 54, .78);
    --surface-2: rgba(255, 255, 255, .1);
    --surface-3: rgba(255, 255, 255, .2);
    --accent: #8cc4ff;
    --orange: #ffa552;
    box-shadow: none;
}
.shop-layout .product-card, .shop-layout .sidebar-widget, .shop-layout .shop-toolbar, .sp-page .product-card { box-shadow: none; }
body.home .cat-card:hover, body.home .product-card:hover,
.shop-layout .product-card:hover, .sp-page .product-card:hover, .ew-cart-picks .product-card:hover { border-color: rgba(255, 255, 255, .38); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6); }
.shop-layout select option, .sp-page select option { background: #0b1530; color: #fff; }
/* Product details: the photo counter and zoom button sit on the white photo, so they stay solid dark */
.sp-page .ew-img-counter, .sp-page .ew-img-zoom-btn { background: #1f2a3d; border-color: transparent; color: #fff; }
.sp-page .ew-img-zoom-btn:hover { background: #2b86ff; color: #fff; }
/* Product details: empty review stars need to show on the dark glass */
.sp-page p.stars a::before, .sp-page .star-rating::before { color: rgba(255, 255, 255, .3); }
/* No results: the bar would be empty on desktop (on phones it still holds the Filters button) */
.shop-toolbar--empty { display: none; }
@media (max-width: 960px) { .shop-toolbar--empty { display: flex; } }
/* "Sold out" sits on the white photo tile, so it needs a solid dark pill */
body.home .product-card .badge--muted,
.shop-layout .badge--muted,
.sp-page .badge--muted { background: #1f2a3d; color: #fff; }
.shop-layout .widget_price_filter .ui-slider-handle { border-color: #8cc4ff; }
body.home .cat-card__icon::after { background: rgba(255, 255, 255, .14); }

/* Cart & checkout: transparent over the page fade, with white text */
body.woocommerce-cart .wc-page,
body.woocommerce-checkout .wc-page {
    --text: #ffffff;
    --text-2: #e6ecf6;
    --text-3: #bccadf;
    --line: rgba(255, 255, 255, .18);
    --line-strong: rgba(255, 255, 255, .38);
    --surface: rgba(14, 26, 54, .78);
    --surface-2: rgba(255, 255, 255, .1);
    --surface-3: rgba(255, 255, 255, .2);
    --accent: #8cc4ff;
    --orange: #ffa552;
    /* light dark tint so the moving circuit background doesn't run behind prices and fields */
    padding: 28px;
    background: rgba(8, 16, 34, .55);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: none;
    color: var(--text-2);
}
/* Account pages (login / create account / lost password / logged-in area): same white-on-glass
   palette as cart & checkout; the panels themselves are the glass cards, the wrapper stays clear */
body.woocommerce-account .wc-page {
    --text: #ffffff;
    --text-2: #e6ecf6;
    --text-3: #bccadf;
    --line: rgba(255, 255, 255, .18);
    --line-strong: rgba(255, 255, 255, .38);
    --surface: rgba(14, 26, 54, .78);
    --surface-2: rgba(255, 255, 255, .1);
    --surface-3: rgba(255, 255, 255, .2);
    --accent: #8cc4ff;
    --accent-soft: rgba(140, 196, 255, .16);
    --orange: #ffa552;
    padding-top: 0; padding-bottom: 0; background: transparent; border: 0; box-shadow: none;   /* keeps the container's side padding */
    color: var(--text-2);
}
body.woocommerce-account .wc-page :is(h1, h2, h3, h4, legend, strong) { color: var(--text); }
body.woocommerce-account .wc-page a:not(.button):not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
body.woocommerce-account .wc-page a:not(.button):not(.btn):hover { color: #fff; }
body.woocommerce-account .wc-page .woocommerce-MyAccount-navigation a { text-decoration: none; color: var(--text-2); }
body.woocommerce-account .wc-page .woocommerce-MyAccount-navigation .is-active a { color: var(--accent); }
body.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword, .woocommerce-MyAccount-content, .woocommerce-MyAccount-navigation ul) {
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -34px rgba(0, 0, 0, .8);
}
body.woocommerce-account .wc-page .woocommerce-error,
body.woocommerce-account .wc-page .woocommerce-message,
body.woocommerce-account .wc-page .woocommerce-info { color: #fff; }

body.woocommerce-cart .wc-page :is(h1, h2, h3, h4, a:not(.wp-element-button):not(.button)),
body.woocommerce-checkout .wc-page :is(h1, h2, h3, h4) { color: var(--text); }
body.woocommerce-cart .wc-page a:not(.wp-element-button):not(.button):hover { color: var(--accent); }
/* Panels inside the blocks get a light glass tint so sections stay distinct */
.woocommerce-cart .wp-block-woocommerce-cart-totals-block,
.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block {
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.woocommerce-cart .wc-block-cart-item__image img,
.woocommerce-checkout .wc-block-components-order-summary-item__image img { background: #fff; border-radius: 10px; }
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-radio-control__input,
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-checkbox__input[type="checkbox"] { background: transparent; border-color: rgba(255, 255, 255, .7) !important; }
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-radio-control__input:checked::before { background: #fff; }
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-checkbox__input[type="checkbox"]:checked { background: #2b86ff !important; border-color: #2b86ff !important; }
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-checkbox__mark { fill: #fff; }
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-product-price__value.is-discounted { color: #ffa552; }
:is(.woocommerce-cart, .woocommerce-checkout) select option { background: #0b1530; color: #fff; }
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-sidebar-layout .wc-block-components-main,
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-item,
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-product-metadata,
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-formatted-money-amount { color: inherit; }
.shop_table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shop_table th, .shop_table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.shop_table th { color: var(--text); font-weight: 600; }
.shop_table tr:last-child td { border-bottom: 0; }

.woocommerce-account .wc-page > .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.woocommerce-MyAccount-navigation ul { list-style: none; display: grid; gap: 4px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; }
.woocommerce-MyAccount-navigation a:hover { background: var(--surface-2); color: var(--text); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--accent-soft); color: var(--accent); }
.woocommerce-MyAccount-content { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* Logged-out login/register */
.woocommerce-account:not(.logged-in) .wc-page > .woocommerce { display: block; max-width: 1100px; margin: 0 auto; }
.u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
/* Separate Log in / Create account pages: one centred glass card each */
.ew-auth { display: grid; justify-items: center; }
.ew-auth__card {
    width: 100%; max-width: 480px;
    padding: 32px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -34px rgba(0, 0, 0, .8);
}
.ew-auth--register .ew-auth__card { max-width: 760px; }
body.woocommerce-account .ew-auth .woocommerce-form-login,
body.woocommerce-account .ew-auth .woocommerce-form-register { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ew-auth__lead { margin: 0 0 20px; color: var(--text-2); }
.ew-auth__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.ew-auth__submit { width: 100%; justify-content: center; }
.ew-auth__switch {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px;
    margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line);
    color: var(--text-2);
}
.ew-auth__switch .btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; text-decoration: none; }
.ew-auth__switch .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* Create account: two-column field grid (names, city/province, postcode/phone side by side) */
.woocommerce-form-register { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.woocommerce-form-register > * { grid-column: 1 / -1; }
.woocommerce-form-register > .form-row-first { grid-column: 1; }
.woocommerce-form-register > .form-row-last  { grid-column: 2; }
.woocommerce-form-register .form-row { margin: 0 0 16px; }
.woocommerce-form-register .woocommerce-input-wrapper { display: block; }
.woocommerce-form-register .optional { color: var(--text-3); font-weight: 400; }
.woocommerce-form-register #billing_country_field strong { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font-weight: 500; }
.ew-register__intro { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text-2); font-size: .9rem; }
.woocommerce-form-register .woocommerce-privacy-policy-text { font-size: .82rem; color: var(--text-3); }
.woocommerce-form-register .woocommerce-form-register__submit,
.woocommerce-form-login .woocommerce-form-login__submit { min-height: 48px; padding: 12px 28px; }
.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword, form.checkout_coupon {
    padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.woocommerce-form-row, .form-row-wide { margin-bottom: 16px; }
.woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; margin: 0 12px 0 0; }
.woocommerce-LostPassword { margin-top: 12px; font-size: .875rem; }
.required { color: var(--orange); text-decoration: none; border: 0; }
.show-password-input { display: none; }

/* WooCommerce blocks (cart & checkout) — dark inputs to match the black fade */
.wc-block-components-text-input input, .wc-block-components-text-input input[type],
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-textarea {
    background: var(--surface-2) !important;
    border-color: var(--line-strong) !important;
    color: var(--text) !important;
}
.wc-block-components-text-input label, .wc-blocks-components-select__label,
.wc-block-components-combobox .wc-block-components-combobox-control label { color: var(--text-3) !important; }
.wc-blocks-components-select__container { background: var(--surface-2) !important; }
.wc-block-components-totals-wrapper, .wc-block-cart-items, .wc-block-cart-items td, .wc-block-cart-items th { border-color: var(--line) !important; }
.wc-block-components-quantity-selector { border-color: var(--line-strong) !important; }
.wc-block-components-quantity-selector input, .wc-block-components-quantity-selector button { color: var(--text) !important; background: transparent !important; }
.wc-block-components-order-summary-item__quantity { background: var(--surface-3) !important; color: var(--text) !important; border-color: var(--line) !important; box-shadow: none !important; }
.wc-block-cart .wc-block-cart__totals-title, .wc-block-components-title, .wc-block-components-checkout-step__title { font-family: var(--font-heading); }
.wc-block-components-product-name { color: var(--text) !important; }
.wc-block-checkout__actions .wc-block-components-button, .wc-block-cart__submit-button { border-radius: 999px !important; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    --text: #ffffff;
    --text-2: #e2e5ea;
    --text-3: #b3b9c4;
    --line: #2c323d;
    --line-strong: #4a5363;
    --surface: #1a1e25;
    --accent: #5aaaff;
    --accent-soft: rgba(90, 170, 255, .14);
    margin-top: 0;
    background: var(--fade-dark);
}
.site-footer .brand__mark { background: transparent; box-shadow: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-col h4 { margin-bottom: 18px; font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text); }
.footer-brand p { margin: 18px 0 20px; color: var(--text-3); font-size: .875rem; max-width: 320px; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social-link { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text-2); transition: all .2s; }
.social-link:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: var(--text-3); font-size: .875rem; }
.footer-links a:hover { color: var(--accent); }
.footer-newsletter-title { margin-top: 28px; }
.footer-note { margin-bottom: 10px; color: var(--text-3); font-size: .8rem; }
.newsletter-form { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.newsletter-form input { flex: 1; min-width: 0; padding: 8px 12px; border: 0; background: transparent; }
.newsletter-form input:focus { box-shadow: none; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.footer-bottom p { margin: 0; color: var(--text-3); font-size: .8rem; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.payment-icons span { padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text-2); font-size: .72rem; font-weight: 600; }

.back-to-top {
    position: fixed; right: 27px; bottom: 96px; z-index: 90;
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border: 0; border-radius: 50%;
    background: var(--gradient); color: #fff;
    box-shadow: var(--shadow-glow);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }

/* Floating WhatsApp button: pops in, pulses two rings, nudges every few seconds, label on hover */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 95;
    display: grid; place-items: center;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 12px 28px -6px rgba(37, 211, 102, .65), 0 0 0 3px rgba(255, 255, 255, .9);
    animation: wa-pop .7s var(--ease) .8s both, wa-nudge 7s ease-in-out 3s infinite;
    transition: scale .3s var(--ease), box-shadow .3s;
}
.wa-float:hover, .wa-float:focus-visible { color: #fff; scale: 1.1; box-shadow: 0 16px 34px -6px rgba(37, 211, 102, .8), 0 0 0 3px #fff; }
.wa-float__icon { position: relative; z-index: 1; }
.wa-float__ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: wa-ring 2.4s ease-out infinite;
    pointer-events: none;
}
.wa-float__ring--2 { animation-delay: 1.2s; }
.wa-float__label {
    position: absolute; right: calc(100% + 14px); top: 50%;
    display: flex; flex-direction: column;
    padding: 9px 16px;
    border-radius: 12px;
    background: #fff;
    color: var(--text-2);
    font-size: .78rem; line-height: 1.3; white-space: nowrap;
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden;
    transform: translate(10px, -50%);
    transition: opacity .3s, transform .4s var(--ease), visibility .3s;
}
.wa-float__label strong { color: var(--text); font-size: .9rem; }
.wa-float__label::after {
    content: ''; position: absolute; right: -6px; top: 50%;
    width: 12px; height: 12px; margin-top: -6px;
    background: #fff; transform: rotate(45deg);
}
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { opacity: 1; visibility: visible; transform: translate(0, -50%); }

@keyframes wa-pop { from { opacity: 0; transform: scale(0) rotate(-90deg); } }
@keyframes wa-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
@keyframes wa-nudge {
    0%, 86%, 100% { transform: rotate(0); }
    88% { transform: rotate(-14deg) scale(1.08); }
    90% { transform: rotate(12deg) scale(1.08); }
    92% { transform: rotate(-8deg); }
    94% { transform: rotate(5deg); }
}

/* Toasts */
#ew-toast-container { --text: #f1f5fb; --surface: var(--navy); --line-strong: #2a4069; position: fixed; left: 50%; bottom: 24px; z-index: 400; display: grid; gap: 10px; transform: translateX(-50%); pointer-events: none; }
.ew-toast { padding: 12px 20px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .9rem; font-weight: 500; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease); }
.ew-toast-show { opacity: 1; transform: none; }
.ew-toast-success { border-color: rgba(34, 197, 94, .5); }
.ew-toast-error { border-color: rgba(240, 68, 56, .6); }

/* Dark band section (contrast break between light sections) */
.section--dark {
    --text: #ffffff;
    --text-2: #d4dceb;
    --text-3: #aab6ca;
    --line: rgba(255, 255, 255, .14);
    --line-strong: rgba(255, 255, 255, .26);
    --surface: rgba(14, 26, 54, .72);
    background: transparent;
    color: var(--text-2);
}
.section--dark .feature-card:hover { background: rgba(255, 255, 255, .06); }


/* Hero entrance (runs once on page load) */
.hero-anim { opacity: 0; transform: translateY(22px); animation: ew-rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
.hero__title .line > span { transform: translateY(105%); animation: ew-line 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
.hero__visual.hero-anim { transform: scale(.94); animation-name: ew-zoom; animation-duration: 1.4s; }
@keyframes ew-rise { to { opacity: 1; transform: none; } }
@keyframes ew-line { to { transform: none; } }
@keyframes ew-zoom { to { opacity: 1; transform: none; } }

/* Scroll reveal */
.ew-reveal { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.ew-reveal.ew-up { transform: translateY(32px); }
.ew-reveal.ew-in { opacity: 1; transform: none; }

/* Section headings unmask upward */
.section-head.ew-reveal h2 { clip-path: inset(0 0 100% 0); transform: translateY(.4em); transition: clip-path 1s var(--ease), transform 1s var(--ease); }
.section-head.ew-in h2 { clip-path: inset(0 0 -10% 0); transform: none; }

/* Product images settle in as cards reveal */
.product-card.ew-reveal .product-card__media img { transform: scale(1.14); }
.product-card.ew-in .product-card__media img { transform: scale(1); transition: transform 1.4s var(--ease), opacity .6s; }

/* Home screen: product cards flip up out of the board — rise + 3D tilt-back + focus pull */
body.home .product-card.ew-reveal.ew-up {
    transform: perspective(900px) translateY(56px) rotateX(16deg) scale(.94);
    transform-origin: 50% 100%;
    filter: blur(5px);
    transition: opacity .9s var(--ease), transform 1.2s var(--ease), filter .9s var(--ease);
}
body.home .product-card.ew-reveal.ew-in { transform: none; filter: none; }
@media (max-width: 640px) {
    /* phones: same motion, minus the blur (cheaper to paint) */
    body.home .product-card.ew-reveal.ew-up { filter: none; transform: perspective(700px) translateY(40px) rotateX(12deg) scale(.95); }
}

/* Images fade in once loaded (only when JS is running) */
.js .product-card__media img, .js .sp-main-img img { opacity: 0; transition: opacity .6s ease, transform 1s var(--ease); }
.js .product-card__media img.is-loaded, .js .sp-main-img img.is-loaded { opacity: 1; }
/* second photo: hidden until the card is hovered (more specific than the fade-in rule above) */
.js .product-card .product-card__media img.product-card__alt { opacity: 0; }
.js .product-card.has-alt:hover .product-card__media img.product-card__alt.is-loaded { opacity: 1; }
.js .product-card.has-alt:hover .product-card__media img.is-loaded:first-child { opacity: 0; }

/* Header hides on scroll down, returns on scroll up */
.site-header { transition: transform .5s var(--ease); view-transition-name: site-header; }
.site-header.is-hidden { transform: translateY(-100%); }

/* Scroll progress line */
.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; z-index: 400;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    pointer-events: none;
}

/* Shine sweep on main buttons */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after, .btn--accent::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; z-index: -1;
    width: 60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: translateX(-130%) skewX(-12deg);
}
.btn--primary:hover::after, .btn--accent:hover::after { transform: translateX(260%) skewX(-12deg); transition: transform .9s var(--ease); }

/* Hero depth: mouse-driven offsets (set by JS as --mx / --my, range -1..1) */
.hero__visual { --mx: 0; --my: 0; }
.hero__orb { translate: calc(var(--mx) * 10px) calc(var(--my) * 10px); transition: translate .8s var(--ease); }
.hero__ring--inner { translate: calc(var(--mx) * -6px) calc(var(--my) * -6px); transition: translate .8s var(--ease); }
.hero__chip { transition: translate .9s var(--ease), border-color .2s; }
.hero__chip--1 { translate: calc(var(--mx) * 26px) calc(var(--my) * 18px); }
.hero__chip--2 { translate: calc(var(--mx) * -22px) calc(var(--my) * 24px); }

/* Fly-to-cart clone + badge bump */
.ew-fly { position: fixed; z-index: 500; border-radius: 14px; object-fit: cover; pointer-events: none; box-shadow: var(--shadow); }
.ew-cart-count.bump { animation: ew-bump .6s var(--ease); }
@keyframes ew-bump { 0% { transform: scale(1); } 35% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* Cross-page transitions (supported browsers) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: ew-vt-out .28s ease both; }
::view-transition-new(root) { animation: ew-vt-in .45s var(--ease) both; }
@keyframes ew-vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes ew-vt-in { from { opacity: 0; transform: translateY(12px); } }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1180px) {
    .products-grid, ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shop-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero__chip--1 { left: 0; }
    .hero__chip--2 { right: 0; }
}

@media (max-width: 960px) {
    :root { --header-h: 64px; }
    .menu-toggle { display: inline-grid; }
    .header-main__inner { grid-template-columns: auto 1fr auto; gap: 8px; padding-bottom: 12px; padding-top: 10px; }
    .site-logo { justify-self: start; }
    .header-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
    .nav-bar { display: none; }
    .brand__word { font-size: 1.6rem; }
    .brand__mark { width: 50px; height: 50px; }

    .hero { padding: 48px 0 56px; }
    .hero__inner { grid-template-columns: 1fr; gap: 24px; }
    .hero__visual { max-width: 420px; justify-self: center; order: -1; }
    .hero__content { text-align: center; }
    .hero__lead { margin-left: auto; margin-right: auto; }
    .hero__ctas { justify-content: center; }

    .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 28px; }

    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; display: none; }
    .shop-sidebar.open { display: flex; }
    .filters-toggle { display: inline-flex; }
    .shop-toolbar { flex-wrap: wrap; }

    .sp-layout { grid-template-columns: 1fr; gap: 28px; }
    .sp-gallery { position: static; }

    .about-grid, .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .about-content { padding: 24px; overflow-wrap: anywhere; }
    .woocommerce-account .wc-page > .woocommerce, .u-columns.col2-set { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 14px; }
    .container { padding: 0 16px; }
    .section { padding: 52px 0; }
    .hide-sm { display: none !important; }
    .topbar__group { gap: 14px; }
    .topbar__inner { justify-content: space-between; }
    .header-search .btn { display: none; }

    .hero__content { padding: 26px 20px 28px; border-radius: 22px; }
    .hero__chip { max-width: 190px; padding: 8px 12px 8px 8px; }
    .hero__chip img { width: 40px; height: 40px; }

    .section-head { flex-direction: column; align-items: flex-start; }
    .section-head--center { align-items: center; }
    .products-grid, ul.products, .shop-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-card__body { padding: 12px; }
    .product-card__title { font-size: .875rem; }
    .product-card .price { font-size: 1.1rem; }
    .product-card__quick.ew-atc-btn { height: 40px; min-width: 40px; padding: 0 11px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cat-card { padding: 20px 12px 18px; }
    .features-grid { grid-template-columns: 1fr; }
    .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
    .wa-float__icon { width: 28px; height: 28px; }
    .back-to-top { right: 20px; bottom: 84px; }
    .why-stats { gap: 8px; }
    .why-stats div { padding: 16px 8px; }
    .why-stats dt { font-size: 1.8rem; }
    .why-stats dd { font-size: .72rem; letter-spacing: .05em; line-height: 1.3; }
    .why-stats__link { flex-wrap: wrap; gap: 2px 4px; }
    .why-stats__pin { height: 1.8rem; }
    .why-stats__pin .ew-icon { width: 1.8rem; height: 1.8rem; }
    .why-stats__book { height: 1.8rem; }
    .why-stats__book .ew-icon { width: 1.8rem; height: 1.8rem; }
    .stats-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .stats-row div { padding: 12px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .card { padding: 22px; }
    .sp-trust { grid-template-columns: 1fr; }
    .woocommerce-tabs .panel { padding: 20px; }
    .woocommerce-tabs ul.tabs { border-radius: var(--radius); }
    .woocommerce-ordering select { min-width: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    /* phones: readable small labels, comfortable panels */
    .product-card__cat { display: block; font-size: .75rem; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* cart: WooCommerce's sticky checkout bar — dark glass, and lift the floating buttons above it */
    .wc-block-cart__submit-container--sticky { background: rgba(5, 12, 28, .92) !important; border-top: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
    .wc-block-cart__submit-container--sticky::before { display: none !important; }
    body.woocommerce-cart:has(.wc-block-cart__submit-container--sticky) .wa-float { bottom: 92px; }
    body.woocommerce-cart:has(.wc-block-cart__submit-container--sticky) .back-to-top { bottom: 160px; }
    .stats-row dt { font-size: 1.5rem; white-space: nowrap; }
    .stats-row dd { font-size: .78rem; }
    /* product page: quantity on its own row, Add to cart + Buy Now full width, thumb-sized */
    .ew-cart-form-wrap, .ew-cart-form-wrap form.cart { display: grid; grid-template-columns: 1fr; width: 100%; }
    .ew-cart-form-wrap form.cart .quantity { justify-self: start; }
    .ew-cart-form-wrap .single_add_to_cart_button, .ew-buy-now-btn { width: 100%; min-width: 0; min-height: 50px; justify-content: center; }
    .wc-page, body.woocommerce-cart .wc-page, body.woocommerce-checkout .wc-page { padding: 16px; border-radius: var(--radius); }
    .woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register { padding: 20px; }
    .ew-auth__card { padding: 22px 18px; }
    .woocommerce-form-register > .form-row-first, .woocommerce-form-register > .form-row-last { grid-column: 1 / -1; }
    .woocommerce-form-register > #billing_first_name_field { grid-column: 1; }
    .woocommerce-form-register > #billing_last_name_field { grid-column: 2; }
    .woocommerce-form-register { column-gap: 12px; }
    .page-hero h1, .sp-title { overflow-wrap: anywhere; }
}

/* Touch screens: every tap target at least ~44px, no hover-only behaviour */
@media (pointer: coarse), (max-width: 640px) {
    .social-link { width: 44px; height: 44px; }
    .link-arrow { padding: 10px 0; margin: -10px 0; }
    .filters-toggle, .btn--sm { min-height: 44px; }
    .wc-block-cart-item__remove-link { min-width: 44px; min-height: 44px; display: inline-flex !important; align-items: center; }
    .woocommerce-form__input-checkbox, #rememberme { width: 20px; height: 20px; }
    .woocommerce-form-login__rememberme { min-height: 44px; }
    .sp-cat, .sp-review-count, .lost_password a, .wc-block-components-checkout-return-to-cart-button { display: inline-block; padding: 10px 0; }
    .wc-block-components-checkbox__input, .wc-block-components-radio-control__input { min-width: 24px; min-height: 24px; }
    .product-card__alt { display: none; }   /* second-photo swap is a hover effect */
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
    .scroll-progress { display: none; }
}

/* Contact Form 7 (live site's contact form) inside the glass Contact card */
.ew-cf7 .wpcf7-form p { margin: 0 0 16px; }
.ew-cf7 label { display: block; color: var(--text-2); font-size: .85rem; font-weight: 500; }
.ew-cf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.ew-cf7 textarea { min-height: 140px; }
.ew-cf7 .wpcf7-submit {
    width: 100%; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px;
    background: var(--gradient); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.ew-cf7 .wpcf7-submit:hover { background: var(--gradient-orange); }
.ew-cf7 .wpcf7-not-valid-tip { margin-top: 6px; color: #ffb3b3; font-size: .82rem; }
.ew-cf7 .wpcf7-response-output { margin: 12px 0 0 !important; padding: 12px 14px !important; border-radius: 12px; color: #fff; }
.ew-cf7 .wpcf7-spinner { margin: 8px auto 0; display: block; }

/* Mailchimp for WP newsletter form in the footer */
.newsletter-form--mc4wp .mc4wp-form-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter-form--mc4wp .mc4wp-form-fields p { margin: 0; }
.newsletter-form--mc4wp .mc4wp-form-fields p:first-child { flex: 1 1 180px; }
.newsletter-form--mc4wp label { display: block; font-size: 0; }   /* hide label text; the field has a placeholder */
.newsletter-form--mc4wp input[type="email"] { width: 100%; font-size: .925rem; }
.newsletter-form--mc4wp input[type="submit"] {
    min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px;
    background: var(--gradient); color: #fff; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer;
}
.newsletter-form--mc4wp .mc4wp-response { margin-top: 8px; font-size: .85rem; color: var(--text-2); }
