/* =============================================================================
   AETHERIUM ENERGY – DESIGN LAYER  (v3.0.0)
   Loads AFTER storefront.css. It does three things:
     1. defines ONE set of brand tokens (replacing the Elementor/Astra-inherited
        fallbacks that made the palette change from page to page);
     2. fixes the mobile problems (70px side padding, 100vw hack, fixed heights,
        9–11px type, icon-only buttons, invisible text);
     3. gives WooCommerce pages (shop, product, cart, checkout, account) the same look.
   Brand values come from your Additional CSS and screenshots
   (#151C13 / #202B1F / #5FBF3A / #E8A93C / #FFFBF2) – nothing new was invented.
   ============================================================================= */

:root {
  --ae-ink: #151C13;          /* deep green-black: headings, dark sections */
  --ae-ink-2: #202B1F;        /* dark surfaces */
  --ae-line-dark: #2B382A;
  --ae-green: #5FBF3A;        /* brand green: accents ON DARK, large UI */
  --ae-green-600: #4A9A2E;
  --ae-green-700: #2F7A1B;    /* brand green for TEXT on light (5:1 on white) */
  --ae-amber: #E8A93C;
  --ae-cream: #FFFBF2;
  --ae-bg: #F2F5EE;
  --ae-surface: #FFFFFF;
  --ae-muted: #566453;
  --ae-border: #D7DFD0;
  --ae-danger: #B42318;
  --ae-success: #2F7A1B;
  --ae-warning: #9A6700;
  --ae-r-sm: 8px; --ae-r-md: 12px; --ae-r-lg: 16px; --ae-r-xl: 24px;
  --ae-shadow-sm: 0 1px 2px rgba(21,28,19,.06);
  --ae-shadow-md: 0 10px 28px rgba(21,28,19,.10);
  --ae-shell-max: 1240px;
  --ae-gutter: clamp(16px, 4vw, 48px);
  --ae-touch: 44px;
  --ae-focus: 0 0 0 3px rgba(95,191,58,.55);
}

/* ---- 1. Scope tokens: every plugin section uses the SAME palette -------------- */
.aetherium-home, .ae-header, .ae-footer, .ae-page-wrap, .ae-contact-layout, .ae-topbar {
  --ae-primary: var(--ae-ink);
  --ae-accent: var(--ae-green);
  --ae-muted: #566453;
  --ae-line: var(--ae-border);
  --ae-soft: var(--ae-bg);
  --ae-ink: #151C13;
  color: var(--ae-ink);
}

/* Visible keyboard focus everywhere inside our components */
.aetherium-home a:focus-visible, .aetherium-home button:focus-visible,
.ae-header a:focus-visible, .ae-header button:focus-visible, .ae-header input:focus-visible,
.ae-footer a:focus-visible, .ae-page-wrap a:focus-visible, .ae-page-wrap button:focus-visible {
  outline: 2px solid var(--ae-green-700); outline-offset: 2px; box-shadow: var(--ae-focus); border-radius: 6px;
}
.ae-hero a:focus-visible, .ae-capability a:focus-visible, .ae-cta a:focus-visible,
.ae-footer a:focus-visible, .ae-page-hero a:focus-visible { outline-color: #fff; }

/* ---- 2. Homepage layout: one centred container, no 100vw tricks ---------------- */
.aetherium-home {
  max-width: calc(var(--ae-shell-max) + 2 * var(--ae-gutter));
  margin-inline: auto;
  padding-inline: var(--ae-gutter);
  overflow-x: clip; overflow: visible;   /* clip sideways bleed only */
}
/* storefront.css forces "padding:0 70px; margin:50px 0 !important" on these – undone here */
.aetherium-home .ae-trust-strip, .aetherium-home .ae-section, .aetherium-home .ae-image-industries,
.aetherium-home .ae-products-section, .aetherium-home .ae-capability, .aetherium-home .ae-network {
  margin: clamp(36px, 6vw, 72px) 0 !important;
  padding-left: 0 !important; padding-right: 0 !important;
}
.aetherium-home .ae-section, .aetherium-home .ae-image-industries, .aetherium-home .ae-products-section {
  padding-top: 0 !important; padding-bottom: 0 !important;
}
.aetherium-home h2 { color: var(--ae-ink); font-size: clamp(28px, 4vw, 48px); line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 0; }
.aetherium-home h2 em { color: var(--ae-green-700); font-style: normal; }
.ae-kicker { color: var(--ae-green-700) !important; font-size: 12px !important; letter-spacing: .14em; }

/* Hero */
.aetherium-home .ae-hero {
  margin-top: clamp(16px, 3vw, 32px); min-height: 0; background: var(--ae-ink);
  border-radius: var(--ae-r-xl); padding: clamp(28px, 5vw, 72px) !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px);
}
.ae-hero h1 { font-size: clamp(34px, 5.2vw, 68px); line-height: 1.06; margin: 18px 0; }
.ae-hero h1 em, .ae-hero .ae-eyebrow { color: var(--ae-green); }
.ae-hero-copy > p { font-size: clamp(15px, 1.4vw, 18px); color: rgba(255,255,255,.82); }
.ae-hero-proof { font-size: 13px; color: rgba(255,255,255,.85); }
.ae-hero-visual { min-height: 0; }
.ae-hero-product {
  position: relative; z-index: 2; display: block; width: min(100%, 420px); aspect-ratio: 1 / 1;
  background: #fff; border-radius: var(--ae-r-lg); padding: clamp(14px, 3vw, 28px);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.ae-hero-product-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ae-orbit { max-width: 80%; }

/* Buttons – one system, 44px minimum touch height */
.ae-btn { min-height: var(--ae-touch); font-size: 14px; border-radius: var(--ae-r-sm); }
.ae-btn-primary { background: var(--ae-green); color: var(--ae-ink) !important; }
.ae-btn-primary:hover { background: #7ad553; }
.ae-btn-outline { color: var(--ae-ink) !important; border: 1.5px solid var(--ae-ink); background: transparent; }
.ae-btn-outline:hover { background: var(--ae-ink); color: #fff !important; }
.ae-btn-ghost { border-color: rgba(255,255,255,.5); }

/* Trust strip */
.ae-trust-strip { border: 1px solid var(--ae-border); border-radius: var(--ae-r-md); background: var(--ae-surface); padding: 8px; }
.ae-trust-strip strong { color: var(--ae-green-700); font-size: 13px; }
.ae-trust-strip span { font-size: 14px; }

/* Section headings: copy sits on the heading's baseline instead of floating */
.ae-heading-row { align-items: flex-end; margin-bottom: clamp(20px, 3vw, 32px); }
.ae-heading-row > p { margin: 0; max-width: 420px; font-size: 15px; color: var(--ae-muted); }
.ae-heading-row h2 { margin-bottom: 0; }
.ae-intro-copy p { font-size: 16px; }

/* Industry cards: photo on top, dark caption below (same look you have live) */
.ae-image-industry { display: flex; flex-direction: column; min-height: 0 !important; background: var(--ae-ink-2); border-radius: var(--ae-r-md); isolation: auto; }
.ae-image-industry:after { content: none !important; }
.ae-image-industry img { position: static; inset: auto; z-index: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ae-image-industry > span { position: static; padding: 16px 18px 20px; gap: 4px; }
.ae-image-industry b { font-size: 16px; color: var(--ae-green); }
.ae-image-industry small { font-size: 13px; color: rgba(255,255,255,.8); }

/* Capability + CTA = dark panels with light text (replaces the !important colour patches) */
.aetherium-home .ae-capability { background: var(--ae-ink); border-radius: var(--ae-r-xl); padding: clamp(24px, 5vw, 64px) !important; }
.ae-capability h2, .ae-capability-copy > h2 { color: #fff !important; }
.ae-capability h2 em { color: var(--ae-green); }
.ae-capability .ae-kicker { color: var(--ae-green) !important; }
.ae-capability-copy > p { color: rgba(255,255,255,.82) !important; font-size: 16px; }
.ae-capability li { color: #fff; font-size: 15px; }
.ae-capability-visual { background: var(--ae-ink-2); }
.ae-cta { background: var(--ae-ink); border-radius: var(--ae-r-xl); }
.ae-cta h2 { color: #fff; } .ae-cta h2 em { color: var(--ae-green); }
.ae-cta p { color: rgba(255,255,255,.82); font-size: 16px; }
.ae-network h2 em { color: var(--ae-green-700); }
.ae-location-card:hover { background: var(--ae-green-700); color: #fff; }
.ae-location-card:hover strong, .ae-location-card:hover small, .ae-location-card:hover span { color: #fff; }

/* ---- 3. Product cards (homepage .ae-product-card AND shop/archive li.product) --- */
.ae-product-grid { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.ae-product-card, body .woocommerce ul.products li.product {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--ae-surface); border: 1px solid var(--ae-border); border-radius: var(--ae-r-md);
  box-shadow: var(--ae-shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ae-product-card:hover, body .woocommerce ul.products li.product:hover {
  border-color: var(--ae-green-600); box-shadow: var(--ae-shadow-md); transform: translateY(-3px);
}
/* Image panel: white (your photos have white backgrounds), square, never cropped */
.ae-product-image, body .woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; height: auto !important; aspect-ratio: 1 / 1; padding: 16px; background: #fff;
  border-bottom: 1px solid var(--ae-border); overflow: hidden; box-sizing: border-box;
}
.ae-product-image img, body .woocommerce ul.products li.product .astra-shop-thumbnail-wrap img,
body .woocommerce ul.products li.product a img {
  width: 100% !important; height: 100% !important; max-width: 100%; max-height: 100%;
  object-fit: contain !important; object-position: center; margin: 0 !important; padding: 0; background: transparent; border-radius: 0;
}
body .woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-loop-product__link { width: 100%; height: 100%; padding: 0; display: flex; align-items: center; justify-content: center; }
.ae-product-info, body .woocommerce ul.products li.product .astra-shop-summary-wrap {
  display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 16px; background: var(--ae-surface) !important; border-radius: 0;
}
.ae-product-type, body .woocommerce ul.products li.product .ast-woo-product-category {
  align-self: flex-start; width: fit-content; margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ae-green-700);
}
.ae-product-info h3, body .woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0; min-height: 0; font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--ae-ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.ae-product-info h3 a { color: var(--ae-ink); text-decoration: none; }
.ae-product-info h3 a:hover { color: var(--ae-green-700); }
.ae-product-bottom { margin-top: auto; flex-direction: column; align-items: stretch; gap: 12px; padding-top: 4px; }
.ae-product-price, .ae-product-price .amount, body .woocommerce ul.products li.product .price, body .woocommerce ul.products li.product .price .amount {
  font-size: 18px; font-weight: 800; color: var(--ae-ink); min-height: 0; margin: 0;
}
.ae-product-price del, .ae-product-price del .amount, body .woocommerce ul.products li.product .price del, body .woocommerce ul.products li.product .price del .amount { color: var(--ae-muted); font-size: 14px; font-weight: 500; opacity: 1; }
.ae-product-price ins, body .woocommerce ul.products li.product .price ins { text-decoration: none; }
.ae-add-link, body .woocommerce ul.products li.product .button, body .woocommerce ul.products li.product a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: var(--ae-touch);
  padding: 10px 14px; border: 0; border-radius: var(--ae-r-sm); background: var(--ae-ink); color: #fff !important;
  font-size: 14px; font-weight: 700; line-height: 1.2; text-align: center; white-space: normal; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s; margin-top: 0; align-self: stretch;
}
.ae-add-link:hover, body .woocommerce ul.products li.product .button:hover { background: var(--ae-green); color: var(--ae-ink) !important; }
.ae-add-link svg { width: 16px; height: 16px; }
.ae-add-link.loading { opacity: .7; pointer-events: none; }
.added_to_cart { display: block; text-align: center; padding: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--ae-green-700) !important; background: none !important; width: auto !important; min-height: 0 !important; }
.ae-badge, body .woocommerce span.onsale, body .woocommerce ul.products li.product .onsale, body .woocommerce ul.products li.product .ast-onsale-card {
  position: absolute; top: 12px; left: 12px; right: auto; z-index: 3; min-width: 0; min-height: 0; margin: 0;
  padding: 5px 11px; border-radius: 999px; background: var(--ae-amber); color: var(--ae-ink); font-size: 12px; font-weight: 800; line-height: 1.2;
}
.ae-badge-out { background: #fff; color: var(--ae-muted); border: 1px solid var(--ae-border); }

/* Shop archive grid: replaces BOTH your 3-column rule and the plugin's 4-column rule */
body .woocommerce ul.products, body .woocommerce ul.products[class*="columns-"] {
  display: grid !important; gap: 20px; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)) !important;
}
body .woocommerce ul.products::before, body .woocommerce ul.products::after { display: none !important; }
body .woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
.woocommerce-result-count { color: var(--ae-muted); font-size: 14px; }
.woocommerce-ordering select, .woocommerce .woocommerce-ordering select {
  min-height: var(--ae-touch); padding: 8px 36px 8px 12px; border: 1px solid var(--ae-border); border-radius: var(--ae-r-sm); background-color: #fff; color: var(--ae-ink); font-size: 14px; max-width: 100%;
}
.woocommerce-breadcrumb, .ast-breadcrumbs-wrapper { font-size: 13px; color: var(--ae-muted); }
.woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; border: 0; }
.woocommerce-pagination ul.page-numbers li { border: 0; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span {
  display: inline-flex; align-items: center; justify-content: center; min-width: var(--ae-touch); min-height: var(--ae-touch);
  border: 1px solid var(--ae-border); border-radius: var(--ae-r-sm); background: #fff; color: var(--ae-ink); font-weight: 600;
}
.woocommerce-pagination .page-numbers .current, .woocommerce-pagination .page-numbers a:hover { background: var(--ae-ink); border-color: var(--ae-ink); color: #fff; }

/* Sidebar filter widgets (WooCommerce price filter + layered nav) */
.widget_price_filter .ui-slider .ui-slider-range, .widget_price_filter .ui-slider .ui-slider-handle { background: var(--ae-green-700); }
.widget_price_filter .price_slider_amount .button, .widget_layered_nav_filters a { min-height: var(--ae-touch); }
.woocommerce-widget-layered-nav-list li a, .widget_product_categories li a { display: inline-block; padding: 8px 0; color: var(--ae-ink); }
.woocommerce-widget-layered-nav-list li.chosen a, .widget_product_categories li.current-cat > a { color: var(--ae-green-700); font-weight: 700; }

/* ---- 4. Single product -------------------------------------------------------- */
.woocommerce div.product .product_title { font-size: clamp(24px, 3.4vw, 36px); color: var(--ae-ink); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ae-ink); font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.woocommerce div.product p.price del { color: var(--ae-muted); font-weight: 500; }
.woocommerce div.product .stock { color: var(--ae-success); font-weight: 700; }
.woocommerce div.product .out-of-stock { color: var(--ae-danger); }
.woocommerce div.product div.images { background: #fff; border: 1px solid var(--ae-border); border-radius: var(--ae-r-md); padding: 12px; box-sizing: border-box; }
.woocommerce div.product div.images img { height: auto; object-fit: contain; border-radius: var(--ae-r-sm); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 20px 0; }
.woocommerce div.product form.cart .quantity .qty { width: 84px; min-height: 48px; text-align: center; font-size: 16px; border: 1px solid var(--ae-border); border-radius: var(--ae-r-sm); }
.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1 1 200px; min-height: 48px; background: var(--ae-ink); color: #fff; font-size: 16px; font-weight: 700; border-radius: var(--ae-r-sm); }
.woocommerce div.product form.cart .single_add_to_cart_button:hover { background: var(--ae-green); color: var(--ae-ink); }
.woocommerce div.product form.cart .variations, .woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { display: block; width: 100%; padding: 0; text-align: left; }
.woocommerce div.product form.cart .variations select { width: 100%; min-height: 48px; font-size: 16px; border: 1px solid var(--ae-border); border-radius: var(--ae-r-sm); }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; border: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; border: 1px solid var(--ae-border); border-radius: 999px; background: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 10px 18px; min-height: 0; font-weight: 600; color: var(--ae-ink); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--ae-ink); border-color: var(--ae-ink); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce table.shop_attributes { width: 100%; border: 1px solid var(--ae-border); border-radius: var(--ae-r-sm); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.woocommerce table.shop_attributes th { width: 34%; background: var(--ae-bg); color: var(--ae-ink); }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--ae-border); }
.woocommerce table.shop_attributes tr:last-child th, .woocommerce table.shop_attributes tr:last-child td { border-bottom: 0; }
.related.products > h2, .upsells.products > h2 { font-size: clamp(22px, 3vw, 30px); }

/* ---- 5. Notices, forms, buttons (all WooCommerce pages) ----------------------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice { border-radius: var(--ae-r-sm); font-size: 15px; }
.woocommerce-message { border-top-color: var(--ae-green-700); } .woocommerce-message::before { color: var(--ae-green-700); }
.woocommerce-info { border-top-color: var(--ae-ink); } .woocommerce-info::before { color: var(--ae-ink); }
.woocommerce-error { border-top-color: var(--ae-danger); } .woocommerce-error::before { color: var(--ae-danger); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text, .woocommerce .select2-container .select2-selection--single {
  min-height: 48px; padding: 10px 14px; font-size: 16px; /* 16px stops iOS zooming into fields */
  border: 1px solid #A9B7A2; border-radius: var(--ae-r-sm); background: #fff; color: var(--ae-ink); box-sizing: border-box; max-width: 100%;
}
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 28px; padding-left: 0; }
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus, .woocommerce form .form-row select:focus { outline: 0; border-color: var(--ae-green-700); box-shadow: var(--ae-focus); }
.woocommerce form .form-row label { font-weight: 600; font-size: 14px; color: var(--ae-ink); margin-bottom: 6px; }
.woocommerce form .form-row.woocommerce-invalid input.input-text, .woocommerce form .form-row.woocommerce-invalid select { border-color: var(--ae-danger); }
.woocommerce form .form-row.woocommerce-invalid label { color: var(--ae-danger); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  min-height: var(--ae-touch); border-radius: var(--ae-r-sm); font-weight: 700;
}
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #place_order { background: var(--ae-ink); color: #fff; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce #place_order:hover { background: var(--ae-green); color: var(--ae-ink); }
.woocommerce button.button:disabled, .woocommerce button.button.disabled, .woocommerce a.button.disabled { opacity: .5; cursor: not-allowed; }

/* ---- 6. Cart ------------------------------------------------------------------- */
.woocommerce-cart table.cart, .woocommerce table.shop_table { border: 1px solid var(--ae-border); border-radius: var(--ae-r-md); border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; }
.woocommerce table.shop_table th { background: var(--ae-bg); color: var(--ae-ink); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 14px 16px; }
.woocommerce-cart table.cart img { width: 80px; height: 80px; object-fit: contain; background: #fff; border-radius: var(--ae-r-sm); }
.woocommerce-cart table.cart td.product-name a { color: var(--ae-ink); font-weight: 600; }
.woocommerce-cart table.cart a.remove { color: var(--ae-danger) !important; width: var(--ae-touch); height: var(--ae-touch); line-height: var(--ae-touch); font-size: 24px; }
.woocommerce-cart table.cart a.remove:hover { background: var(--ae-danger); color: #fff !important; }
.woocommerce .quantity .qty { min-height: 44px; width: 76px; font-size: 16px; border: 1px solid #A9B7A2; border-radius: var(--ae-r-sm); }
.woocommerce-cart .cart-collaterals .cart_totals { width: 100%; float: none; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { min-height: 52px; display: flex; align-items: center; justify-content: center; background: var(--ae-ink); color: #fff; font-size: 16px; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: var(--ae-green); color: var(--ae-ink); }
.woocommerce .cart-empty, .woocommerce-cart .cart-empty { text-align: center; padding: 40px 16px; }

/* ---- 7. Checkout --------------------------------------------------------------- */
.woocommerce-checkout h3, .woocommerce-checkout #order_review_heading { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 16px; }
.woocommerce-checkout #payment { background: var(--ae-bg); border: 1px solid var(--ae-border); border-radius: var(--ae-r-md); }
.woocommerce-checkout #payment ul.payment_methods { padding: 12px 16px; border-bottom: 1px solid var(--ae-border); }
.woocommerce-checkout #payment div.payment_box { background: #fff; color: var(--ae-ink); border-radius: var(--ae-r-sm); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce-checkout #payment div.form-row { padding: 16px; }
.woocommerce-checkout #place_order { width: 100%; min-height: 54px; font-size: 17px; float: none; }
.woocommerce-checkout .woocommerce-checkout-review-order-table { background: #fff; }
/* WooCommerce Blocks versions of cart/checkout */
.wc-block-components-button:not(.is-link) { min-height: var(--ae-touch); border-radius: var(--ae-r-sm); background: var(--ae-ink); color: #fff; font-weight: 700; }
.wc-block-components-button:not(.is-link):hover { background: var(--ae-green); color: var(--ae-ink); }
.wc-block-components-text-input input, .wc-block-components-select .wc-block-components-select__select { min-height: 48px; font-size: 16px; }

/* ---- 8. My Account -------------------------------------------------------------- */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.woocommerce-MyAccount-navigation li a { display: flex; align-items: center; min-height: var(--ae-touch); padding: 10px 16px; border: 1px solid var(--ae-border); border-radius: var(--ae-r-sm); background: #fff; color: var(--ae-ink); font-weight: 600; text-decoration: none; }
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation li a:hover { background: var(--ae-ink); border-color: var(--ae-ink); color: #fff; }
.woocommerce-account .u-columns .u-column1, .woocommerce-account .u-columns .u-column2 { background: #fff; border: 1px solid var(--ae-border); border-radius: var(--ae-r-md); padding: 24px; box-sizing: border-box; }

/* ---- 9. Header & navigation ------------------------------------------------------- */
.ae-topbar { background: var(--ae-ink); color: rgba(255,255,255,.88); font-size: 13px; }
.ae-topbar a { color: #fff; }
.ae-header { position: sticky; top: 0; z-index: 999; background: var(--ae-cream); border-bottom: 1px solid var(--ae-border); box-shadow: none; }
.ae-header-inner { min-height: 76px; gap: 16px; }
.ae-site-logo { max-width: 200px; max-height: 52px; width: auto; height: auto; }
.ae-nav a, .ae-nav-trigger { font-size: 14px; font-weight: 600; color: var(--ae-ink); }
.ae-nav-trigger { padding: 28px 0; min-height: var(--ae-touch); }
.ae-nav a:hover, .ae-nav-trigger:hover { color: var(--ae-green-700); }
.ae-dropdown { background: var(--ae-surface); border-top: 1px solid var(--ae-border); box-shadow: 0 24px 40px rgba(21,28,19,.14); }
.ae-dropdown-intro small { color: var(--ae-green-700); font-size: 11px; }
.ae-dropdown-intro p { font-size: 14px; color: var(--ae-muted); }
.ae-dropdown-links a { min-height: var(--ae-touch); font-size: 15px; color: var(--ae-ink); }
.ae-dropdown-links a:hover { background: var(--ae-bg); color: var(--ae-green-700); }
.ae-nav .ae-nav-contact { background: var(--ae-ink); color: #fff !important; border-radius: var(--ae-r-sm); padding: 12px 18px; }
.ae-nav .ae-nav-contact:hover { background: var(--ae-green); color: var(--ae-ink) !important; }
.ae-header-cart { display: inline-flex; align-items: center; gap: 8px; min-height: var(--ae-touch); padding: 0 12px; border: 1px solid var(--ae-border); border-radius: 999px; background: #fff; color: var(--ae-ink); }
.ae-header-cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ae-header-cart .ae-cart-count, .ae-header-cart span { min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--ae-green); color: var(--ae-ink); font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; box-sizing: border-box; }
.ae-header-cart-m, .ae-nav-search { display: none; }
.ae-menu-toggle { min-width: var(--ae-touch); min-height: var(--ae-touch); }
.ae-menu-toggle span { background: var(--ae-ink); }

@media (max-width: 900px) {
  .ae-header-inner { min-height: 64px; }
  .ae-header-cart-m { display: inline-flex; margin-left: auto; }
  .ae-menu-toggle { display: block; margin-left: 0; }
  .ae-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); overflow-y: auto; overscroll-behavior: contain;
    padding: 12px var(--ae-gutter) 24px; background: var(--ae-cream); border-top: 1px solid var(--ae-border); box-shadow: 0 20px 30px rgba(21,28,19,.16); }
  .ae-nav.is-open { display: flex; }
  .ae-nav > .ae-header-cart { display: none; }          /* cart lives in the bar on mobile */
  .ae-nav-search { display: flex; gap: 8px; padding: 6px 0 12px; }
  .ae-nav-search input[type=search] { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; font-size: 16px; border: 1px solid #A9B7A2; border-radius: var(--ae-r-sm); background: #fff; }
  .ae-nav-search button { min-height: 48px; padding: 0 16px; border: 0; border-radius: var(--ae-r-sm); background: var(--ae-ink); color: #fff; font-weight: 700; }
  .ae-nav a.ae-nav-home { padding: 14px 0; border-bottom: 1px solid var(--ae-border); }
  .ae-nav-trigger { padding: 14px 0; font-size: 15px; }
  .ae-dropdown-links a { font-size: 15px; padding: 12px 10px; }
  .ae-nav .ae-nav-contact { justify-content: center; margin: 14px 0 0; }
  html.ae-nav-open, html.ae-nav-open body { overflow: hidden; }
}

/* ---- 10. Inner pages & footer ------------------------------------------------------ */
.ae-page-wrap, .site-main.ae-page-wrap { width: auto !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
.ae-page-hero { background: var(--ae-ink); }
.ae-page-hero p { font-size: clamp(15px, 1.4vw, 18px); color: rgba(255,255,255,.85); }
.ae-breadcrumb { font-size: 12px; color: rgba(255,255,255,.8); }
.ae-info-card h3 { color: var(--ae-ink) !important; font-size: 17px; }
.ae-info-index { color: var(--ae-green-700); font-size: 12px; }
.ae-faq-answer, .ae-page-content-copy p { font-size: 15px; color: var(--ae-muted); }
.ae-page-cta { background: var(--ae-ink); } .ae-page-cta p { color: rgba(255,255,255,.82); font-size: 15px; }
.ae-contact-form label { font-size: 14px; }
.ae-contact-form input:not([type=checkbox]), .ae-contact-form select, .ae-contact-form textarea { min-height: 48px; font-size: 16px; border-color: #A9B7A2; }
.ae-contact-form .ae-consent { font-size: 13px; color: var(--ae-muted); }
.ae-contact-form .ae-btn { background: var(--ae-ink); color: #fff!important; }
.ae-contact-form .ae-btn:hover { background: var(--ae-green); color: var(--ae-ink); }
.ae-contact-detail small { font-size: 12px; color: var(--ae-green-700); }
.ae-contact-detail span, .ae-contact-detail a { font-size: 15px; color: var(--ae-muted); }

.ae-footer { background: var(--ae-ink); color: rgba(255,255,255,.82); width: auto !important; max-width: 100% !important; margin: 0 !important; text-align: left; }
.ae-footer .ae-site-logo { background: var(--ae-cream); padding: 8px 12px; border-radius: var(--ae-r-sm); max-width: 220px; }
.ae-footer-brand > p { font-size: 14px; color: rgba(255,255,255,.75); }
.ae-footer-cert { font-size: 12px; color: rgba(255,255,255,.65); }
.ae-footer-col h3, .ae-footer-contact h3 { font-size: 14px; letter-spacing: .04em; }
.ae-footer-col a, .ae-footer-contact > a:not(.ae-footer-cta) { font-size: 14px; color: rgba(255,255,255,.78); padding: 4px 0; margin: 4px 0; min-height: 0; }
.ae-footer-contact p { font-size: 14px; color: rgba(255,255,255,.78); }
.ae-footer-cta { min-height: var(--ae-touch); align-items: center; font-size: 14px; }
.ae-network-footer-inner span { font-size: 12px; }
.ae-network-footer-inner strong { font-size: 13px; }
.ae-footer-bottom { font-size: 13px; color: rgba(255,255,255,.7); }

/* ---- 11. Responsive ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .ae-image-industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .aetherium-home .ae-hero { grid-template-columns: 1fr; }
  .ae-hero-visual { order: -1; }                     /* product first on small screens */
  .ae-hero-product { width: min(100%, 320px); }
  .ae-hero h1 { font-size: clamp(32px, 8vw, 46px); }
  .ae-heading-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  .ae-heading-row > p { max-width: none; }
  .aetherium-home .ae-capability, .ae-intro, .ae-network { grid-template-columns: 1fr; }
  .ae-cta { flex-direction: column; align-items: flex-start; }
  .ae-page-cta { flex-direction: column; align-items: flex-start; }
  .woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: 100%; }
}
@media (max-width: 600px) {
  .ae-product-grid, body .woocommerce ul.products, body .woocommerce ul.products[class*="columns-"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px;
  }
  .ae-product-image, body .woocommerce ul.products li.product .astra-shop-thumbnail-wrap { padding: 10px; }
  .ae-product-info, body .woocommerce ul.products li.product .astra-shop-summary-wrap { padding: 12px; gap: 6px; }
  .ae-product-info h3, body .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; -webkit-line-clamp: 3; }
  .ae-product-price, .ae-product-price .amount, body .woocommerce ul.products li.product .price { font-size: 16px; }
  .ae-add-link, body .woocommerce ul.products li.product .button { font-size: 13px; padding: 10px 8px; }
  .ae-add-link svg { display: none; }
  .ae-hero-proof { gap: 8px 14px; }
  .ae-floating-card, .ae-hero-number { display: none; }
  .ae-orbit { display: none; }
  .ae-trust-strip { grid-template-columns: 1fr 1fr; }
  .ae-trust-strip > div { border-right: 0 !important; border-bottom: 0 !important; justify-content: flex-start; }
  .ae-image-industry-grid { gap: 10px; }
  .ae-image-industry b { font-size: 14px; } .ae-image-industry small { font-size: 12px; }
  .ae-image-industry > span { padding: 12px; }
  .ae-hero-actions .ae-btn { flex: 1 1 100%; }
  .ae-location-grid { grid-template-columns: 1fr; } .ae-location-featured { grid-row: auto; }
  .woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 12px; }
  .woocommerce-cart table.cart img { width: 64px; height: 64px; }
  .ae-footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 359px) {
  .ae-product-grid, body .woocommerce ul.products, body .woocommerce ul.products[class*="columns-"] { grid-template-columns: 1fr !important; }
  .ae-image-industry-grid { grid-template-columns: 1fr; }
  .ae-footer-main { grid-template-columns: 1fr; }
  .ae-site-logo { max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .ae-product-card, body .woocommerce ul.products li.product, .ae-btn { transition: none !important; transform: none !important; }
}

/* ---- 12. WooCommerce Product Blocks (your old CSS styled .wc-block-grid__product dark) ---- */
.wc-block-grid__products { gap: 20px; }
.wc-block-grid__product { background: var(--ae-surface); border: 1px solid var(--ae-border) !important; border-radius: var(--ae-r-md); padding: 0 0 16px; overflow: hidden; box-sizing: border-box; }
.wc-block-grid__product-image { aspect-ratio: 1 / 1; padding: 16px; margin: 0; background: #fff; display: flex; align-items: center; justify-content: center; }
.wc-block-grid__product-image img { width: 100%; height: 100%; object-fit: contain; }
.wc-block-grid__product-title, .wc-block-grid__product-price { padding: 0 16px; color: var(--ae-ink); }
.wc-block-grid__product .wp-block-button__link { min-height: var(--ae-touch); background: var(--ae-ink); color: #fff; border-radius: var(--ae-r-sm); }

/* ---- 13. Narrow-phone header: logo, cart and menu button must always fit (320px) ---- */
.ae-brand { flex: 0 1 auto; min-width: 0; }
.ae-brand .ae-site-logo { max-width: 100%; }
@media (max-width: 600px) {
  .ae-header-inner { gap: 8px; }
  .ae-site-logo { max-width: 160px; max-height: 44px; }
  .ae-header-cart-m { padding: 0 10px; }
  .ae-menu-toggle { padding: 8px 4px; }
}
@media (max-width: 359px) {
  .ae-site-logo { max-width: 112px; }
  .ae-header-cart-m { padding: 0 8px; gap: 6px; }
}

/* ---- 14. Minimum readable text (storefront.css used 8–11px on phones) ---- */
.ae-hero-proof span { font-size: 13px; }
.ae-eyebrow { font-size: 12px; }
.ae-blueprint > span, .ae-blueprint > small, .ae-blueprint-measure span { font-size: 11px; }
.ae-blueprint-measure b { font-size: 12px; }

/* Real product photo in the hero replaces the decorative floating cards */
.ae-hero-product ~ .ae-floating-card, .ae-hero-product ~ .ae-hero-number { display: none; }

@media (max-width: 900px) {
  .ae-nav .ae-dropdown { background: transparent; box-shadow: none; border-top: 0; padding: 4px 0 10px; }
  .ae-nav .ae-dropdown-links a { border-radius: var(--ae-r-sm); }
}

/* ---- 15. Page headings and body text on WooCommerce pages (don't rely on theme greys) ---- */
body.woocommerce-page .site-main, body.woocommerce-page .entry-content { color: var(--ae-ink); }
body.woocommerce-page .page-title, body.woocommerce-page .entry-title, .woocommerce-checkout h3,
#order_review_heading, .cart_totals h2, .related.products > h2, .upsells.products > h2 { color: var(--ae-ink); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { color: var(--ae-ink); }
.woocommerce-info a, .woocommerce-message a:not(.button), .woocommerce-error a { color: var(--ae-green-700); font-weight: 600; text-decoration: underline; }
.woocommerce-breadcrumb a { color: var(--ae-green-700); }

/* =============================================================================
   16. HOMEPAGE HERO SLIDER (v3.1.0)
   Full-bleed banner slider that replaces the single hero box. It cancels the
   homepage side gutter (--ae-page-pad) so it touches both screen edges, while the
   text inside still lines up with the page content.
   ============================================================================= */
.aetherium-home .ae-slider {
  --ae-slide-pad: var(--ae-page-pad, var(--ae-gutter, 24px));
  position: relative; isolation: isolate; overflow: hidden; background: var(--ae-ink); color: #fff;
  margin: calc(-1 * clamp(16px, 2.5vw, 32px)) calc(-1 * var(--ae-slide-pad)) 0 !important;
  padding: 0 !important;
}
.ae-slides { display: grid; }
.ae-slide {
  grid-area: 1 / 1; position: relative; display: flex; align-items: center; overflow: hidden;
  min-height: clamp(520px, 74vh, 720px);
  padding: clamp(56px, 7vw, 96px) max(calc(var(--ae-slide-pad) + 56px), calc((100% - 1400px) / 2));
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s;
}
.ae-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; z-index: 1; }

/* backgrounds */
.ae-slide-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .16; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 42px 42px; -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent);
}
.ae-slide-bg { position: absolute; inset: 0; z-index: -2; }
.ae-slide-bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transform: scale(1.04); transition: transform 2s ease-out; }
.ae-slide.is-active .ae-slide-bg img { transform: scale(1.12); }
.ae-slide-photo:before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(21,28,19,.94) 0%, rgba(21,28,19,.78) 38%, rgba(21,28,19,.25) 75%, rgba(21,28,19,.1) 100%);
}
.ae-slide-main { background: radial-gradient(circle at 78% 40%, #203320 0%, var(--ae-ink) 62%); }

/* content */
.ae-slide-inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.ae-slide-inner.ae-has-visual { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.ae-slide-copy { max-width: 660px; min-width: 0; }
.aetherium-home .ae-slide .ae-eyebrow { color: rgba(255,255,255,.85); font-size: 12px; }
.aetherium-home .ae-slide h1, .aetherium-home .ae-slide h2 {
  color: #fff !important; font-size: clamp(34px, 5vw, 64px); line-height: 1.06 !important; letter-spacing: -.03em; margin: 18px 0;
}
.aetherium-home .ae-slide h1 em, .aetherium-home .ae-slide h2 em { color: var(--ae-green) !important; font-style: normal; }
.aetherium-home .ae-slide .ae-slide-copy > p { color: rgba(255,255,255,.88) !important; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7; max-width: 560px; margin: 0; }
.ae-slide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.ae-slide-actions .ae-btn { text-decoration: none !important; }
.aetherium-home .ae-slide .ae-hero-proof { margin-top: 28px; color: rgba(255,255,255,.88) !important; }
.ae-slide-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ae-slide-list li { position: relative; padding-left: 22px; color: #fff; font-size: 15px; font-weight: 600; }
.ae-slide-list li:before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--ae-green); }
.ae-slide-visual { display: flex; justify-content: center; align-items: center; min-width: 0; }
.ae-slide-visual .ae-hero-product { width: min(100%, 400px); }

/* arrows – round, on both edges like the reference banner */
.aetherium-home .ae-slider-btn {
  position: absolute; top: 50%; z-index: 5; width: 48px; height: 48px; margin-top: -24px; padding: 0;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
  background: rgba(21,28,19,.45); color: #fff; cursor: pointer; backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s, transform .2s;
}
.ae-slider-prev { left: clamp(10px, 2vw, 28px); }
.ae-slider-next { right: clamp(10px, 2vw, 28px); }
.aetherium-home .ae-slider-btn:hover { background: var(--ae-green); border-color: var(--ae-green); color: var(--ae-ink); }
.aetherium-home .ae-slider-btn svg, .aetherium-home .ae-slider-pause svg { width: 22px; height: 22px; stroke-width: 2.2; }

/* dots + pause */
.ae-slider-bar { position: absolute; left: 0; right: 0; bottom: clamp(14px, 2.4vw, 28px); z-index: 5; display: flex; align-items: center; justify-content: center; gap: 14px; }
.ae-slider-bar { pointer-events: none; }                 /* bar spans full width: only its buttons take clicks, arrows stay clickable */
.ae-slider-dots, .ae-slider-pause { pointer-events: auto; }
.ae-slider-dots { display: flex; align-items: center; gap: 8px; }
.aetherium-home .ae-slider-dots button {
  width: 10px; height: 10px; min-height: 0; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s;
}
.aetherium-home .ae-slider-dots button.is-active { width: 30px; background: var(--ae-green); }
.aetherium-home .ae-slider-pause {
  width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(21,28,19,.45); color: #fff; cursor: pointer;
}
.aetherium-home .ae-slider-pause svg { width: 14px; height: 14px; }
.ae-slider-pause .ae-i-play { display: none; }
.ae-slider-pause[aria-pressed="true"] .ae-i-play { display: block; }
.ae-slider-pause[aria-pressed="true"] .ae-i-pause { display: none; }
.aetherium-home .ae-slider button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 1024px) {
  .ae-slide { padding-inline: max(calc(var(--ae-slide-pad) + 40px), calc((100% - 1400px) / 2)); }
  .ae-slide-inner.ae-has-visual { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .ae-slide-visual .ae-hero-product { width: min(100%, 300px); }
}
@media (max-width: 767px) {
  .ae-slide { min-height: 0; padding: 44px var(--ae-slide-pad) 92px; align-items: flex-start; }
  .ae-slide-inner.ae-has-visual { grid-template-columns: minmax(0, 1fr); }
  .ae-slide-visual { display: none; }                     /* phones: copy first, keeps the slider short */
  .ae-slide-photo:before { background: linear-gradient(180deg, rgba(21,28,19,.9), rgba(21,28,19,.72)); }
  .aetherium-home .ae-slide h1, .aetherium-home .ae-slide h2 { font-size: clamp(32px, 9vw, 44px); }
  .ae-slide-actions .ae-btn { flex: 1 1 100%; }
  .aetherium-home .ae-slider-btn { top: auto; bottom: 14px; margin-top: 0; width: 40px; height: 40px; }
  .ae-slider-prev { left: var(--ae-slide-pad); }
  .ae-slider-next { right: var(--ae-slide-pad); }
  .ae-slider-bar { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ae-slide, .ae-slide.is-active { transition: none !important; }
  .ae-slide-bg img, .ae-slide.is-active .ae-slide-bg img { transform: none !important; transition: none !important; }
}
