/*
Theme Name: eRedCap
Theme URI: https://eredcap.com
Author: Peter Green
Author URI: https://petergreen.xyz
Description: eRedCap - The global authority on 3GPP Release 18 enhanced RedCap. LTE Cat-1 replacement, mass IoT and M2M cellular connectivity.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: eredcap
Tags: iot, 5g, redcap, cellular, technical
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --er-navy:          #0a1f3c;
    --er-navy-deep:     #060f1e;
    --er-navy-mid:      #1a3358;
    --er-slate:         #2a4a6b;
    --er-emerald:       #00a878;
    --er-emerald-light: #00c994;
    --er-emerald-dark:  #007d59;
    --er-emerald-glow:  rgba(0,168,120,0.12);
    --er-white:         #ffffff;
    --er-off-white:     #f4f8fc;
    --er-text:          #1a2332;
    --er-text-muted:    #546e8a;
    --er-text-light:    #8aa4be;
    --er-border:        #d8e6f0;
    --er-border-light:  #eaf2f8;
    --er-card-bg:       #ffffff;
    --er-section-bg:    #f4f8fc;

    --er-radius:        6px;
    --er-radius-lg:     12px;
    --er-shadow:        0 2px 12px rgba(10,31,60,0.08);
    --er-shadow-md:     0 4px 24px rgba(10,31,60,0.12);
    --er-shadow-lg:     0 8px 40px rgba(10,31,60,0.16);

    --er-header-h:      72px;
    --er-content-w:     1160px;
    --er-content-mid:   860px;

    --er-font-head:     'Syne', sans-serif;
    --er-font-body:     'Inter', sans-serif;

    --er-transition:    0.2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--er-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--er-text);
    background: var(--er-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--er-emerald-dark); text-decoration: none; transition: color var(--er-transition); }
a:hover { color: var(--er-emerald); }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--er-font-head);
    font-weight: 700;
    color: var(--er-navy);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.4em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; margin-bottom: 1.2em; }
li { margin-bottom: 0.4em; }

strong { font-weight: 600; color: var(--er-navy); }
em { font-style: italic; }

blockquote {
    border-left: 4px solid var(--er-emerald);
    padding: 16px 24px;
    margin: 2em 0;
    background: var(--er-emerald-glow);
    border-radius: 0 var(--er-radius) var(--er-radius) 0;
    font-size: 1.05rem;
    color: var(--er-navy-mid);
}

code {
    font-family: 'Fira Code', 'Consolas', monospace;
    background: var(--er-section-bg);
    border: 1px solid var(--er-border);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--er-navy);
}

pre {
    background: var(--er-navy-deep);
    color: #e0e8f0;
    padding: 20px 24px;
    border-radius: var(--er-radius);
    overflow-x: auto;
    margin: 1.5em 0;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: 0.9rem;
}

hr {
    border: none;
    border-top: 1px solid var(--er-border);
    margin: 2.5em 0;
}

table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
th { background: var(--er-navy); color: var(--er-white); padding: 10px 16px; text-align: left; font-family: var(--er-font-head); font-size: 0.85rem; letter-spacing: 0.03em; }
td { padding: 10px 16px; border-bottom: 1px solid var(--er-border); font-size: 0.95rem; }
tr:hover td { background: var(--er-off-white); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.er-container {
    max-width: var(--er-content-w);
    margin: 0 auto;
    padding: 0 24px;
}

.er-container--mid {
    max-width: var(--er-content-mid);
    margin: 0 auto;
    padding: 0 24px;
}

.er-section { padding: 72px 0; }
.er-section--sm { padding: 48px 0; }
.er-section--lg { padding: 96px 0; }

.er-section--alt { background: var(--er-section-bg); }
.er-section--dark { background: var(--er-navy); color: var(--er-white); }
.er-section--dark h1,
.er-section--dark h2,
.er-section--dark h3 { color: var(--er-white); }

.er-grid { display: grid; gap: 28px; }
.er-grid--2 { grid-template-columns: repeat(2, 1fr); }
.er-grid--3 { grid-template-columns: repeat(3, 1fr); }
.er-grid--4 { grid-template-columns: repeat(4, 1fr); }

.er-flex { display: flex; align-items: center; gap: 16px; }

.er-text-center { text-align: center; }
.er-text-muted { color: var(--er-text-muted); }

/* Section heading */
.er-section-head { margin-bottom: 48px; }
.er-section-head--center { text-align: center; }
.er-section-label {
    display: inline-block;
    background: var(--er-emerald);
    color: var(--er-white);
    font-family: var(--er-font-head);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 3px;
    margin-bottom: 14px;
}
.er-section-label--outline {
    background: transparent;
    border: 1px solid var(--er-emerald);
    color: var(--er-emerald);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.er-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--er-radius);
    font-family: var(--er-font-head);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--er-transition);
    text-decoration: none;
    line-height: 1;
}

.er-btn--primary {
    background: var(--er-emerald);
    color: var(--er-white);
    border-color: var(--er-emerald);
}
.er-btn--primary:hover {
    background: var(--er-emerald-dark);
    border-color: var(--er-emerald-dark);
    color: var(--er-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,168,120,0.3);
}

.er-btn--outline {
    background: transparent;
    color: var(--er-emerald);
    border-color: var(--er-emerald);
}
.er-btn--outline:hover {
    background: var(--er-emerald);
    color: var(--er-white);
    transform: translateY(-1px);
}

.er-btn--white {
    background: var(--er-white);
    color: var(--er-navy);
    border-color: var(--er-white);
}
.er-btn--white:hover {
    background: var(--er-off-white);
    color: var(--er-navy);
    transform: translateY(-1px);
}

.er-btn--sm { padding: 8px 18px; font-size: 0.82rem; }
.er-btn--lg { padding: 14px 32px; font-size: 0.95rem; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.er-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #f5f8fb;
    height: var(--er-header-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--er-border);
    box-shadow: 0 1px 12px rgba(10,31,60,0.06);
}

.er-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--er-content-w);
    margin: 0 auto;
    padding: 0 24px;
    gap: 32px;
}

/* Logo */
.er-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.er-logo__mark {
    width: 36px;
    height: 36px;
    background: var(--er-emerald);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--er-font-head);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--er-white);
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.er-logo__text {
    font-family: var(--er-font-head);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--er-navy);
    letter-spacing: -0.02em;
}

.er-logo__text span {
    color: var(--er-emerald);
}

.er-logo img {
    max-height: 36px;
    width: auto;
}

/* ============================================================
   NAVIGATION (Desktop mega menu)
   ============================================================ */
.er-nav {
    display: flex;
    align-items: center;
    flex: 1;
}

.er-nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2px;
}

.er-nav__item {
    position: relative;
}

.er-nav__link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-family: var(--er-font-head);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--er-navy);
    text-decoration: none;
    border-radius: var(--er-radius);
    transition: all var(--er-transition);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.er-nav__link:hover,
.er-nav__item--active > .er-nav__link {
    color: var(--er-emerald-dark);
    background: rgba(0,168,120,0.07);
}

.er-nav__item--has-dropdown > .er-nav__link::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 2px;
    transition: transform var(--er-transition);
    opacity: 0.5;
}

.er-nav__item--has-dropdown:hover > .er-nav__link::after {
    transform: rotate(180deg);
}

/* Dropdown panel */
.er-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--er-white);
    border-radius: var(--er-radius-lg);
    box-shadow: var(--er-shadow-lg);
    border: 1px solid var(--er-border);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 200;
}

.er-nav__item--has-dropdown:hover .er-dropdown,
.er-nav__item--has-dropdown.er-open .er-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.er-dropdown__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.er-dropdown__list a {
    display: block;
    padding: 10px 20px;
    font-size: 0.87rem;
    color: var(--er-text);
    font-weight: 500;
    transition: all var(--er-transition);
    border-left: 3px solid transparent;
}

.er-dropdown__list a:hover {
    background: var(--er-section-bg);
    color: var(--er-emerald-dark);
    border-left-color: var(--er-emerald);
}

.er-dropdown__list li + li {
    border-top: 1px solid var(--er-border-light);
}

/* Mega dropdown (6+ child pages) */
.er-dropdown--mega {
    min-width: 600px;
    padding: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.er-nav__item--has-dropdown:hover .er-dropdown--mega,
.er-nav__item--has-dropdown.er-open .er-dropdown--mega {
    transform: translateX(-50%) translateY(0);
}

.er-dropdown--mega .er-dropdown__list {
    padding: 0;
}

.er-dropdown--mega .er-dropdown__section-title {
    font-family: var(--er-font-head);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--er-text-muted);
    padding: 4px 20px 8px;
}

/* Header actions */
.er-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Mobile hamburger */
.er-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: background var(--er-transition);
}

.er-hamburger:hover { background: rgba(10,31,60,0.06); }

.er-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--er-navy);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.er-hamburger.er-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.er-hamburger.er-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.er-hamburger.er-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   MOBILE NAV
   ============================================================ */
.er-mobile-nav {
    display: none;
    position: fixed;
    top: var(--er-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--er-navy-deep);
    z-index: 999;
    overflow-y: auto;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.er-mobile-nav.er-open {
    transform: translateX(0);
}

.er-mobile-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.er-mobile-nav__item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.er-mobile-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-family: var(--er-font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--er-white);
    text-decoration: none;
}

.er-mobile-nav__toggle {
    background: none;
    border: none;
    color: var(--er-text-light);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1.2rem;
    transition: transform var(--er-transition);
}

.er-mobile-nav__toggle.er-open {
    transform: rotate(180deg);
    color: var(--er-emerald);
}

.er-mobile-nav__sub {
    list-style: none;
    padding: 0 0 12px 16px;
    margin: 0;
    display: none;
}

.er-mobile-nav__sub.er-open { display: block; }

.er-mobile-nav__sub a {
    display: block;
    padding: 10px 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.er-mobile-nav__sub a:hover { color: var(--er-emerald-light); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.er-breadcrumb {
    background: var(--er-section-bg);
    border-bottom: 1px solid var(--er-border);
    padding: 10px 0;
    font-size: 0.8rem;
    color: var(--er-text-muted);
}

.er-breadcrumb__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: var(--er-content-w);
    margin: 0 auto;
    padding: 0 24px;
}

.er-breadcrumb a { color: var(--er-text-muted); }
.er-breadcrumb a:hover { color: var(--er-emerald); }
.er-breadcrumb__sep { color: var(--er-border); }
.er-breadcrumb__current { color: var(--er-navy); font-weight: 600; }

/* ============================================================
   HERO - PAGE / POST
   ============================================================ */
.er-page-hero {
    background: linear-gradient(135deg, var(--er-navy) 0%, var(--er-navy-deep) 100%);
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
}

.er-page-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 500px; height: 500px;
    background: radial-gradient(circle at 80% 20%, rgba(0,168,120,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.er-page-hero__inner {
    position: relative;
    z-index: 1;
}

.er-page-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,168,120,0.15);
    border: 1px solid rgba(0,168,120,0.3);
    color: var(--er-emerald-light);
    font-family: var(--er-font-head);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.er-page-hero__title {
    color: var(--er-white) !important;
    margin-bottom: 16px;
    max-width: 800px;
}

.er-page-hero__excerpt {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.72);
    max-width: 640px;
    line-height: 1.65;
    margin-bottom: 0;
}

/* Post meta in hero */
.er-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.er-post-meta__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}

.er-post-meta__item svg {
    width: 14px; height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.er-post-meta a {
    color: var(--er-emerald-light);
    font-weight: 600;
}

.er-post-meta a:hover { color: var(--er-white); }

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.er-hero {
    background: linear-gradient(145deg, var(--er-navy-deep) 0%, var(--er-navy) 50%, #0d2a4a 100%);
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
}

.er-hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0,168,120,0.1) 0%, transparent 65%);
    pointer-events: none;
}

.er-hero::after {
    content: '';
    position: absolute;
    bottom: -50px; left: 5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,100,200,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.er-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.er-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,168,120,0.12);
    border: 1px solid rgba(0,168,120,0.25);
    color: var(--er-emerald-light);
    font-family: var(--er-font-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.er-hero__label-dot {
    width: 6px; height: 6px;
    background: var(--er-emerald);
    border-radius: 50%;
    animation: er-pulse 2s infinite;
}

@keyframes er-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.er-hero__title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--er-white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.er-hero__title em {
    font-style: normal;
    color: var(--er-emerald-light);
}

.er-hero__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.er-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Spec panel in hero */
.er-hero__specs {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--er-radius-lg);
    padding: 32px;
    backdrop-filter: blur(4px);
}

.er-hero__specs-title {
    font-family: var(--er-font-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--er-text-light);
    margin-bottom: 20px;
}

.er-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.er-spec-row:last-child { border-bottom: none; }

.er-spec-row__label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}

.er-spec-row__value {
    font-family: var(--er-font-head);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--er-emerald-light);
}

/* Stats strip */
.er-stats-strip {
    background: var(--er-navy-mid);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
}

.er-stats-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 16px;
    flex-wrap: wrap;
    max-width: var(--er-content-w);
    margin: 0 auto;
    padding: 0 24px;
}

.er-stat {
    text-align: center;
    padding: 0 16px;
}

.er-stat__number {
    font-family: var(--er-font-head);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--er-emerald-light);
    letter-spacing: -0.03em;
    display: block;
    line-height: 1;
}

.er-stat__label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    display: block;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ============================================================
   CARDS
   ============================================================ */
.er-card {
    background: var(--er-card-bg);
    border-radius: var(--er-radius-lg);
    border: 1px solid var(--er-border);
    overflow: hidden;
    transition: all 0.25s ease;
}

.er-card:hover {
    box-shadow: var(--er-shadow-md);
    transform: translateY(-3px);
    border-color: var(--er-emerald);
}

.er-card--flat { transform: none !important; box-shadow: none !important; }
.er-card--flat:hover { border-color: var(--er-emerald); }

.er-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--er-section-bg);
}

.er-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.er-card:hover .er-card__image img { transform: scale(1.04); }

.er-card__body { padding: 24px; }

.er-card__label {
    display: inline-block;
    background: var(--er-emerald-glow);
    color: var(--er-emerald-dark);
    border: 1px solid rgba(0,168,120,0.2);
    font-family: var(--er-font-head);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.er-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--er-navy);
    margin-bottom: 10px;
    line-height: 1.35;
    transition: color var(--er-transition);
}

a.er-card:hover .er-card__title,
.er-card a:hover .er-card__title { color: var(--er-emerald-dark); }

.er-card__excerpt {
    font-size: 0.88rem;
    color: var(--er-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.er-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--er-border-light);
    font-size: 0.78rem;
    color: var(--er-text-light);
}

.er-card__date { font-weight: 500; }

.er-card__read-more {
    color: var(--er-emerald-dark);
    font-weight: 600;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--er-transition);
}

.er-card:hover .er-card__read-more { gap: 8px; }

/* Featured post card */
.er-card--featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column: 1 / -1;
}

.er-card--featured .er-card__image {
    aspect-ratio: auto;
    min-height: 280px;
}

.er-card--featured .er-card__body {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.er-card--featured .er-card__title {
    font-size: 1.3rem;
    margin-bottom: 14px;
}

/* ============================================================
   POST LAYOUT
   ============================================================ */
.er-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
    padding: 56px 0 56px;
}

/* Article content */
.er-article-content {
    min-width: 0;
}

.er-article-content h2 {
    font-size: 1.55rem;
    margin: 2.2em 0 0.7em;
    padding-top: 0.5em;
    border-top: 1px solid var(--er-border-light);
}

.er-article-content h2:first-child { border-top: none; margin-top: 0; }

.er-article-content h3 {
    font-size: 1.2rem;
    margin: 1.8em 0 0.6em;
    color: var(--er-navy-mid);
}

.er-article-content h4 {
    margin: 1.4em 0 0.5em;
    color: var(--er-navy-mid);
}

.er-article-content p { font-size: 1rem; line-height: 1.78; color: var(--er-text); }

.er-article-content a {
    color: var(--er-emerald-dark);
    text-decoration: underline;
    text-decoration-color: rgba(0,125,89,0.3);
    text-underline-offset: 3px;
}

.er-article-content a:hover {
    text-decoration-color: var(--er-emerald);
}

.er-article-content ul li,
.er-article-content ol li { font-size: 1rem; line-height: 1.75; }

/* Sidebar */
.er-sidebar {
    position: sticky;
    top: calc(var(--er-header-h) + 16px);
    max-height: calc(100vh - var(--er-header-h) - 32px);
    overflow-y: auto;
}

.er-sidebar__widget {
    background: var(--er-white);
    border: 1px solid var(--er-border);
    border-radius: var(--er-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.er-sidebar__widget-title {
    font-family: var(--er-font-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--er-text-muted);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--er-emerald);
    display: inline-block;
}

/* TOC */
.er-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.er-toc__list a {
    display: block;
    padding: 7px 0;
    font-size: 0.85rem;
    color: var(--er-text-muted);
    border-bottom: 1px solid var(--er-border-light);
    font-weight: 500;
    transition: all var(--er-transition);
}

.er-toc__list a:hover {
    color: var(--er-emerald-dark);
    padding-left: 6px;
}

.er-toc__list a.er-toc__active {
    color: var(--er-emerald-dark);
    font-weight: 600;
}

.er-toc__list li:last-child a { border-bottom: none; }

/* Related posts */
.er-related-post {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--er-border-light);
}

.er-related-post:last-child { border-bottom: none; padding-bottom: 0; }

.er-related-post__thumb {
    width: 64px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--er-section-bg);
}

.er-related-post__thumb img { width: 100%; height: 100%; object-fit: cover; }

.er-related-post__title {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--er-navy);
    line-height: 1.35;
    transition: color var(--er-transition);
}

.er-related-post:hover .er-related-post__title { color: var(--er-emerald-dark); }

.er-related-post__date { font-size: 0.75rem; color: var(--er-text-light); margin-top: 4px; }

/* Author box */
.er-author-box {
    background: linear-gradient(135deg, var(--er-navy) 0%, var(--er-navy-mid) 100%);
    border-radius: var(--er-radius-lg);
    padding: 28px 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 48px;
    border-top: 4px solid var(--er-emerald);
}

.er-author-box__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--er-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--er-font-head);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--er-white);
    flex-shrink: 0;
    overflow: hidden;
}

.er-author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }

.er-author-box__name {
    font-family: var(--er-font-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--er-white);
    margin-bottom: 4px;
}

.er-author-box__role {
    font-size: 0.78rem;
    color: var(--er-emerald-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.er-author-box__bio {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================================
   INFO BOXES
   ============================================================ */
.er-infobox {
    border-radius: var(--er-radius);
    padding: 20px 24px;
    margin: 2em 0;
    border-left: 4px solid;
    display: flex;
    gap: 14px;
}

.er-infobox__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.er-infobox__content p:last-child { margin-bottom: 0; }

.er-infobox--info {
    background: #edf4ff;
    border-color: #3b82f6;
}

.er-infobox--tip {
    background: var(--er-emerald-glow);
    border-color: var(--er-emerald);
}

.er-infobox--warning {
    background: #fff7ed;
    border-color: #f59e0b;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.er-comparison {
    overflow-x: auto;
    margin: 2em 0;
}

.er-comparison table {
    min-width: 560px;
}

.er-comparison th:first-child { background: var(--er-navy-deep); }

.er-comparison td:first-child {
    font-weight: 600;
    color: var(--er-navy);
    background: var(--er-off-white);
}

.er-comparison .er-check { color: var(--er-emerald); font-weight: 700; }
.er-comparison .er-cross { color: #ef4444; }

/* ============================================================
   TAXONOMY / CATEGORY PAGES
   ============================================================ */
.er-archive-header {
    background: linear-gradient(135deg, var(--er-navy) 0%, var(--er-navy-deep) 100%);
    padding: 56px 0 48px;
}

.er-archive-header__label {
    font-family: var(--er-font-head);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--er-emerald-light);
    margin-bottom: 10px;
}

.er-archive-header__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--er-white);
    margin-bottom: 12px;
}

.er-archive-header__desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    max-width: 560px;
    margin-bottom: 0;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.er-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--er-border);
}

.er-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--er-radius);
    font-family: var(--er-font-head);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--er-text-muted);
    border: 1px solid var(--er-border);
    text-decoration: none;
    transition: all var(--er-transition);
}

.er-pagination .page-numbers:hover {
    border-color: var(--er-emerald);
    color: var(--er-emerald-dark);
}

.er-pagination .current {
    background: var(--er-emerald);
    border-color: var(--er-emerald);
    color: var(--er-white);
}

/* ============================================================
   CTA BLOCKS
   ============================================================ */
.er-cta-strip {
    background: linear-gradient(135deg, var(--er-navy) 0%, var(--er-navy-mid) 100%);
    border-radius: var(--er-radius-lg);
    padding: 48px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-left: 5px solid var(--er-emerald);
}

.er-cta-strip__title {
    color: var(--er-white);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.er-cta-strip__sub {
    color: rgba(255,255,255,0.65);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ============================================================
   HOMEPAGE: TOPIC EXPLORER
   ============================================================ */
.er-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.er-topic-card {
    background: var(--er-white);
    border: 1px solid var(--er-border);
    border-radius: var(--er-radius-lg);
    padding: 28px 24px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: block;
    position: relative;
    overflow: hidden;
}

.er-topic-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--er-emerald);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.er-topic-card:hover {
    border-color: var(--er-emerald);
    box-shadow: var(--er-shadow-md);
    transform: translateY(-3px);
}

.er-topic-card:hover::before { transform: scaleX(1); }

.er-topic-card__icon {
    width: 44px; height: 44px;
    background: var(--er-emerald-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--er-emerald);
}

.er-topic-card__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

.er-topic-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--er-navy);
    margin-bottom: 8px;
}

.er-topic-card__desc {
    font-size: 0.83rem;
    color: var(--er-text-muted);
    line-height: 1.55;
    margin-bottom: 14px;
}

.er-topic-card__count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--er-emerald-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.er-footer {
    background: var(--er-navy-deep);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 64px 0 0;
    margin-top: 0;
}

.er-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.er-footer__brand-desc {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
    margin-top: 16px;
    margin-bottom: 20px;
}

.er-footer__links-title {
    font-family: var(--er-font-head);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 16px;
}

.er-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.er-footer__links li + li { margin-top: 10px; }

.er-footer__links a {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color var(--er-transition);
}

.er-footer__links a:hover { color: var(--er-emerald-light); }

.er-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    flex-wrap: wrap;
    gap: 12px;
}

.er-footer__bottom a {
    color: rgba(255,255,255,0.4);
    margin-left: 16px;
}

.er-footer__bottom a:hover { color: var(--er-emerald-light); }

/* Related sites cluster */
.er-cluster-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.er-cluster-link {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all var(--er-transition);
    font-family: var(--er-font-head);
}

.er-cluster-link:hover {
    background: rgba(0,168,120,0.12);
    border-color: rgba(0,168,120,0.25);
    color: var(--er-emerald-light);
}

/* ============================================================
   ENQUIRY FORMS (Lead Generation)
   ============================================================ */
.erf-wrap {
    background: var(--er-white);
    border: 1px solid var(--er-border);
    border-radius: var(--er-radius-lg);
    overflow: hidden;
}

.erf-wrap--product {
    border-color: rgba(0,168,120,0.25);
    border-top: 3px solid var(--er-emerald);
}

.erf-wrap--sidebar {
    border-top: 3px solid var(--er-emerald);
}

.erf-head {
    background: var(--er-section-bg);
    padding: 18px 22px;
    border-bottom: 1px solid var(--er-border);
}

.erf-head__title {
    font-family: var(--er-font-head);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--er-navy);
    margin-bottom: 3px;
}

.erf-head__sub {
    font-size: 0.78rem;
    color: var(--er-text-muted);
    margin: 0;
    line-height: 1.45;
}

.erf-form { padding: 20px 22px; }

.erf-row { display: flex; gap: 12px; margin-bottom: 14px; }
.erf-row--2 > .erf-field { flex: 1; min-width: 0; }

.erf-field { margin-bottom: 14px; }
.erf-row .erf-field { margin-bottom: 0; }

.erf-label {
    display: block;
    font-family: var(--er-font-head);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--er-navy);
    margin-bottom: 5px;
    letter-spacing: 0.02em;
}

.erf-req { color: #ef4444; }

.erf-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--er-border);
    border-radius: var(--er-radius);
    font-family: var(--er-font-body);
    font-size: 0.87rem;
    color: var(--er-text);
    background: var(--er-white);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.erf-input:focus {
    border-color: var(--er-emerald);
    box-shadow: 0 0 0 3px rgba(0,168,120,0.1);
}

.erf-input::placeholder { color: var(--er-text-light); }
.erf-input.erf-error { border-color: #ef4444; }
.erf-textarea { resize: vertical; min-height: 100px; }
.erf-select {
    cursor: pointer;
    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='%23546e8a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}

.erf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.erf-privacy {
    font-size: 0.72rem;
    color: var(--er-text-light);
    margin: 0;
    flex: 1;
}

.erf-privacy a { color: var(--er-text-muted); }

.erf-submit { flex-shrink: 0; }

/* Success state */
.erf-success {
    padding: 28px 22px;
    text-align: center;
}

.erf-success__icon {
    width: 48px; height: 48px;
    background: var(--er-emerald);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 14px;
}

.erf-success__msg {
    font-size: 0.9rem;
    color: var(--er-text-muted);
    margin: 0;
}

.erf-success__msg strong { color: var(--er-navy); }

/* Compact footer strip form */
.erf-wrap--footer {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--er-radius-lg);
}

.erf-wrap--footer .erf-form { padding: 20px; }

.erf-wrap--footer .erf-label { color: rgba(255,255,255,0.7); }

.erf-wrap--footer .erf-input {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
}

.erf-wrap--footer .erf-input:focus {
    border-color: var(--er-emerald);
    background: rgba(255,255,255,0.1);
}

.erf-wrap--footer .erf-input::placeholder { color: rgba(255,255,255,0.35); }
.erf-wrap--footer .erf-privacy { color: rgba(255,255,255,0.35); }
.erf-wrap--footer .erf-privacy a { color: rgba(255,255,255,0.4); }

@media (max-width: 540px) {
    .erf-row--2 { flex-direction: column; gap: 0; }
    .erf-row--2 .erf-field { margin-bottom: 14px; }
    .erf-footer { flex-direction: column; align-items: stretch; }
    .erf-submit { width: 100%; justify-content: center; }
}

/* ============================================================
   SINGLE PRODUCT LAYOUT
   ============================================================ */
.er-product-main {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 56px;
    align-items: start;
    margin-bottom: 64px;
}

.er-product-images {
    position: sticky;
    top: calc(var(--er-header-h) + 16px);
}

.er-product-panel {
    /* panel is naturally sticky via parent grid */
}

.er-product-description {
    padding-top: 48px;
    border-top: 1px solid var(--er-border);
}

/* Short description in purchase panel */
.er-product-short-desc {
    font-size: 0.9rem;
    color: var(--er-text-muted);
    line-height: 1.65;
}

.er-product-short-desc p {
    margin-bottom: 0.8em;
    font-size: 0.9rem;
    color: var(--er-text-muted);
}

.er-product-short-desc p:last-child { margin-bottom: 0; }

/* Key features list in short desc */
.er-product-short-desc ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.er-product-short-desc ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--er-text);
    font-weight: 500;
    line-height: 1.4;
    padding: 7px 10px;
    background: var(--er-section-bg);
    border-radius: 4px;
    border-left: 3px solid var(--er-emerald);
}

.er-product-short-desc ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--er-emerald);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

/* Product content - badge classes used in product descriptions */
/* Product badge row */
.er-prod-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}
    align-items: center;
    background: rgba(0,168,120,0.1);
    border: 1px solid rgba(0,168,120,0.25);
    color: #007d59;
    font-family: var(--er-font-head);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    margin-right: 6px;
    margin-bottom: 6px;
}
.er-prod-badge--navy { background: rgba(10,31,60,0.07); border-color: rgba(10,31,60,0.15); color: var(--er-navy); }
.er-prod-badge--amber { background: #fff7ed; border-color: #f59e0b; color: #b45309; }

/* Key specs grid in product body */
.er-prod-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 1.5em 0;
}

.er-prod-spec {
    background: var(--er-section-bg);
    border: 1px solid var(--er-border);
    border-radius: 6px;
    padding: 14px 16px;
    border-top: 3px solid var(--er-emerald);
}

.er-prod-spec__value {
    font-family: var(--er-font-head);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--er-navy);
    line-height: 1.2;
    display: block;
}

.er-prod-spec__label {
    font-size: 0.72rem;
    color: var(--er-text-muted);
    margin-top: 4px;
    display: block;
}

/* Product CTA panel in body */
.er-prod-cta {
    background: linear-gradient(135deg, var(--er-navy) 0%, var(--er-navy-mid) 100%);
    border-radius: var(--er-radius-lg);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 2em 0;
    border-left: 4px solid var(--er-emerald);
}

.er-prod-cta p { color: rgba(255,255,255,0.75); font-size: 0.88rem; margin: 0; }
.er-prod-cta strong { color: var(--er-white); display: block; font-family: var(--er-font-head); margin-bottom: 4px; font-size: 0.95rem; }

/* Comparison cols in product body */
.er-prod-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 1.5em 0;
}
.er-prod-compare-col {
    background: var(--er-section-bg);
    border: 1px solid var(--er-border);
    border-radius: 8px;
    padding: 20px;
}
.er-prod-compare-col--active {
    background: rgba(0,168,120,0.06);
    border-color: rgba(0,168,120,0.3);
}
.er-prod-compare-col__title {
    font-family: var(--er-font-head);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--er-navy);
    margin-bottom: 12px;
}
.er-prod-compare-col--active .er-prod-compare-col__title { color: #007d59; }

/* Responsive */
@media (max-width: 1000px) {
    .er-product-main { grid-template-columns: 1fr; gap: 36px; }
    .er-product-images { position: static; }
    .er-prod-specs { grid-template-columns: repeat(2, 1fr); }
    .er-prod-compare { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .er-prod-specs { grid-template-columns: 1fr 1fr; }
    .er-prod-cta { flex-direction: column; }
}

/* Remove WooCommerce default layout */
.woocommerce-page .woocommerce { max-width: 100%; }
.woocommerce .col2-set,
.woocommerce-page .col2-set { width: 100%; }

/* Ordering dropdown */
.woocommerce-ordering select {
    border: 1.5px solid var(--er-border);
    border-radius: var(--er-radius);
    padding: 8px 32px 8px 12px;
    font-family: var(--er-font-body);
    font-size: 0.85rem;
    color: var(--er-text);
    background: var(--er-white);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    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='%23546e8a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.woocommerce-ordering select:focus {
    border-color: var(--er-emerald);
    box-shadow: 0 0 0 3px rgba(0,168,120,0.1);
}

/* Results count */
.woocommerce-result-count {
    font-size: 0.85rem;
    color: var(--er-text-muted);
    margin: 0;
}

/* Product card badges */
.er-product__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--er-font-head);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    z-index: 1;
}
.er-product__badge--sale  { background: var(--er-emerald); color: #fff; }
.er-product__badge--stock { background: #ef4444; color: #fff; }

/* Product price */
.er-product__price .price,
.er-product__price del,
.er-product__price ins {
    font-family: var(--er-font-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--er-navy);
}
.er-product__price del {
    color: var(--er-text-light);
    font-size: 0.85rem;
    font-weight: 400;
    text-decoration: line-through;
}
.er-product__price ins {
    color: var(--er-emerald-dark);
    text-decoration: none;
}

/* Add to cart button in card */
.er-card .button.add_to_cart_button,
.er-card a.add_to_cart_button {
    background: var(--er-emerald) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--er-radius) !important;
    font-family: var(--er-font-head) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 7px 14px !important;
    cursor: pointer !important;
    transition: background var(--er-transition) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
}
.er-card .button.add_to_cart_button:hover,
.er-card a.add_to_cart_button:hover {
    background: var(--er-emerald-dark) !important;
    color: #fff !important;
}

/* Single product add to cart */
.woocommerce .single_add_to_cart_button,
.woocommerce button.single_add_to_cart_button {
    background: var(--er-emerald) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--er-radius) !important;
    font-family: var(--er-font-head) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    padding: 13px 28px !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: background var(--er-transition) !important;
    letter-spacing: 0.01em !important;
}
.woocommerce .single_add_to_cart_button:hover {
    background: var(--er-emerald-dark) !important;
}

/* Quantity input */
.woocommerce .quantity .qty {
    border: 1.5px solid var(--er-border) !important;
    border-radius: var(--er-radius) !important;
    padding: 10px 14px !important;
    font-size: 1rem !important;
    font-family: var(--er-font-body) !important;
    color: var(--er-text) !important;
    width: 80px !important;
    text-align: center !important;
}
.woocommerce .quantity .qty:focus {
    border-color: var(--er-emerald) !important;
    outline: none !important;
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: var(--er-radius) !important;
    font-size: 0.9rem !important;
    margin-bottom: 24px !important;
}
.woocommerce-message { border-top-color: var(--er-emerald) !important; }

/* WooCommerce pagination */
.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    justify-content: center;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--er-radius) !important;
    border: 1px solid var(--er-border) !important;
    font-family: var(--er-font-head) !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--er-text-muted) !important;
    text-decoration: none !important;
    transition: all var(--er-transition) !important;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
    border-color: var(--er-emerald) !important;
    color: var(--er-emerald-dark) !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--er-emerald) !important;
    border-color: var(--er-emerald) !important;
    color: #fff !important;
}

/* Product images */
.woocommerce-product-gallery {
    border-radius: var(--er-radius-lg);
    overflow: hidden;
    position: relative;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image img,
.woocommerce-product-gallery .woocommerce-product-gallery__image a img {
    width: 100%;
    border-radius: var(--er-radius-lg);
    display: block;
}

/* Main image wrapper */
.woocommerce-product-gallery .flex-viewport {
    border-radius: var(--er-radius-lg);
    overflow: hidden;
    border: 1px solid var(--er-border);
    background: var(--er-section-bg);
}

/* Thumbnails */
.woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding: 0;
    list-style: none;
    overflow-x: auto;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 80px;
    width: 80px;
    margin: 0;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    border-radius: var(--er-radius);
    border: 2px solid var(--er-border);
    cursor: pointer;
    transition: border-color var(--er-transition);
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs li img:hover {
    border-color: var(--er-emerald);
}

/* Zoom icon */
.woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 9;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    backdrop-filter: blur(4px);
    transition: background var(--er-transition);
}

.woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
    background: var(--er-white);
}

/* Single product price */
.er-product__price-lg .price,
.er-product__price-lg del,
.er-product__price-lg ins {
    font-family: var(--er-font-head);
    font-weight: 800;
}
.er-product__price-lg ins {
    color: var(--er-emerald-dark);
    text-decoration: none;
}
.er-product__price-lg del {
    color: var(--er-text-light);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Remove default WC breadcrumbs (using theme breadcrumb) */
.woocommerce-breadcrumb { display: none !important; }

/* Remove default WC page title on shop (theme provides it) */
.woocommerce-products-header { display: none !important; }

@media (max-width: 860px) {
    .woocommerce div.product,
    .woocommerce #content div.product { display: block; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.er-mt-0  { margin-top: 0 !important; }
.er-mb-0  { margin-bottom: 0 !important; }

/* Hide WP default title when using hero */
.er-hide-title .entry-title,
.er-hide-title h1.page-title { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
    .er-hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .er-hero__specs { max-width: 480px; }
    .er-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .er-post-layout { grid-template-columns: 1fr; }
    .er-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .er-sidebar .er-sidebar__widget { margin-bottom: 0; }
}

@media (max-width: 860px) {
    :root { --er-header-h: 64px; }
    .er-nav { display: none; }
    .er-hamburger { display: flex; }
    .er-mobile-nav { display: block; }
    .er-grid--3 { grid-template-columns: 1fr 1fr; }
    .er-grid--4 { grid-template-columns: 1fr 1fr; }
    .er-topic-grid { grid-template-columns: 1fr 1fr; }
    .er-cta-strip { flex-direction: column; padding: 36px 32px; text-align: center; }
    .er-card--featured { grid-template-columns: 1fr; }
    .er-stats-strip__inner { justify-content: center; }
}

@media (max-width: 600px) {
    .er-container { padding: 0 16px; }
    .er-container--mid { padding: 0 16px; }
    .er-section { padding: 48px 0; }
    .er-grid--2,
    .er-grid--3,
    .er-grid--4 { grid-template-columns: 1fr; }
    .er-topic-grid { grid-template-columns: 1fr; }
    .er-hero { padding: 64px 0 56px; }
    .er-post-layout { padding: 32px 0 56px; }
    .er-footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .er-sidebar { grid-template-columns: 1fr; }
    .er-author-box { flex-direction: column; }
    .er-stats-strip__inner { gap: 8px; }
    .er-stat { padding: 0 8px; }
}

/* Print */
@media print {
    .er-header, .er-footer, .er-sidebar, .er-mobile-nav { display: none !important; }
    .er-post-layout { grid-template-columns: 1fr; }
    body { font-size: 12pt; color: #000; }
}
