/*
Theme Name: 8-Digit PC Storefront
Theme URI: https://8digitpc.co.za/
Author: 8-Digit PC Technologies
Description: A responsive WooCommerce storefront for 8-Digit PC Technologies, with a two-tier catalogue header, promotional home page, branded customer account screens and supplier-feed compatibility.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eightdigit
Tags: e-commerce, custom-logo, custom-menu, featured-images, full-width-template, translation-ready
*/

:root {
  --ed-primary: #087fc1;
  --ed-primary-2: #147df5;
  --ed-purple: #4a12b8;
  --ed-ink: #10131a;
  --ed-dark: #080b11;
  --ed-muted: #667085;
  --ed-line: #dee2e7;
  --ed-bg: #f6f7f9;
  --ed-white: #fff;
  --ed-danger: #d9111f;
  --ed-radius: 8px;
  --ed-shadow: 0 4px 14px rgba(16,24,40,.09);
  --ed-content: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ed-bg);
  color: var(--ed-ink);
  font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ed-primary); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, [type="submit"] { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(20,125,245,.3); outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ed-container { width: min(var(--ed-content), calc(100% - 48px)); margin-inline: auto; }
.ed-main { min-height: 50vh; }

/* Header */
.ed-site-header { position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 4px rgba(0,0,0,.1); }
.admin-bar .ed-site-header { top: 32px; }
.ed-header-top { background: #090b10; color: #fff; }
.ed-header-main { height: 104px; display: grid; grid-template-columns: 275px minmax(360px, 620px) 1fr; align-items: center; gap: 38px; }
.ed-brand { display: inline-flex; align-items: center; width: 260px; height: 82px; }
.ed-brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.ed-search { display: flex; height: 44px; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.16); }
.ed-search select { width: 94px; border: 0; padding: 0 13px; background: #dadada; color: #202020; }
.ed-search input { min-width: 0; flex: 1; border: 0; padding: 0 16px; color: #111; background: #fff; }
.ed-search input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--ed-primary); }
.ed-search button { width: 50px; border: 0; background: var(--ed-primary); color: #fff; display: grid; place-items: center; transition: .25s ease; }
.ed-search button:hover { background: var(--ed-purple); }
.ed-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; white-space: nowrap; }
.ed-action { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.ed-action:hover { color: #fff; }
.ed-action-icon { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--ed-primary); display: grid; place-items: center; transition: .25s ease; }
.ed-action:hover .ed-action-icon { background: var(--ed-purple); transform: translateY(-1px); }
.ed-action-label { font-size: 14px; }
.ed-action-label strong { display: block; color: var(--ed-primary-2); font-size: 13px; font-weight: 600; }
.ed-count { position: absolute; top: -7px; right: -7px; min-width: 23px; height: 23px; border-radius: 20px; border: 2px solid #fff; background: var(--ed-purple); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.ed-header-nav { background: #f6f7f9; color: #171717; }
.ed-header-nav .ed-search { display: none; }
.ed-nav-row { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.ed-nav-left, .ed-nav-right, .ed-primary-menu { display: flex; align-items: center; gap: 28px; }
.ed-departments { position: relative; }
.ed-departments-button { display: inline-flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 22px 0; font-weight: 500; }
.ed-departments-menu { position: absolute; z-index: 30; top: calc(100% - 1px); left: 0; width: 300px; background: #fff; border: 1px solid var(--ed-line); border-top: 3px solid var(--ed-primary); box-shadow: 0 14px 35px rgba(16,24,40,.15); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s ease; }
.ed-departments:hover .ed-departments-menu, .ed-departments:focus-within .ed-departments-menu, .ed-departments.is-open .ed-departments-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ed-departments-menu a { display: flex; justify-content: space-between; padding: 10px 17px; font-size: 14px; border-bottom: 1px solid #f0f1f3; }
.ed-departments-menu a:last-child { border: 0; }
.ed-departments-menu a:hover { background: rgba(8,127,193,.07); padding-left: 21px; }
.ed-primary-menu, .ed-primary-menu ul { list-style: none; margin: 0; padding: 0; }
.ed-primary-menu a { font-size: 15px; }
.ed-primary-menu a:hover { color: var(--ed-primary); }
.ed-special-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 22px; border-radius: 5px; border: 1px solid var(--ed-danger); background: var(--ed-danger); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.ed-special-button:hover { background: #fff; color: var(--ed-danger); }
.ed-mobile-toggle { display: none; border: 0; background: transparent; color: #fff; padding: 8px; }
.ed-mobile-drawer { display: none; }

/* Universal elements */
.ed-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 9px 24px; border: 1px solid var(--ed-primary) !important; border-radius: 6px !important; background: var(--ed-primary) !important; color: #fff !important; font-weight: 600 !important; font-size: 14px !important; line-height: 1.2 !important; transition: .25s ease;
}
.ed-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover { background: #fff !important; color: var(--ed-primary) !important; }
.ed-btn--white { background: #fff !important; border-color: #fff !important; color: #10131a !important; }
.ed-btn--white:hover { background: transparent !important; color: #fff !important; }
.ed-btn--outline { background: transparent !important; color: var(--ed-primary) !important; }
.ed-btn--outline:hover { background: var(--ed-primary) !important; color: #fff !important; }
.ed-section { padding: 58px 0; }
.ed-section--white { background: #fff; }
.ed-section--tight { padding: 38px 0; }
.ed-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.ed-kicker { display: block; color: var(--ed-primary); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 5px; }
.ed-title { margin: 0; color: #12151b; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.18; font-weight: 650; }
.ed-subtitle { margin: 7px 0 0; color: var(--ed-muted); }
.ed-link-arrow { color: var(--ed-primary); font-weight: 600; white-space: nowrap; }
.ed-empty { padding: 25px; border: 1px dashed #bac3cf; border-radius: 8px; background: #fff; text-align: center; color: var(--ed-muted); }

/* Home hero */
.ed-hero { position: relative; min-height: 390px; overflow: hidden; background: #060910; color: #fff; }
.ed-hero-slide { min-height: 390px; display: none; background: #070a11 center/cover no-repeat; }
.ed-hero-slide.is-active { display: block; }
.ed-hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,5,10,.88) 0%, rgba(2,5,10,.76) 34%, rgba(2,5,10,.1) 67%, rgba(2,5,10,.08)); pointer-events: none; }
.ed-hero-content { position: relative; z-index: 2; min-height: 390px; display: flex; align-items: center; }
.ed-hero-copy { max-width: 660px; padding: 46px 0; }
.ed-hero-kicker { display: inline-flex; align-items: center; gap: 9px; color: #8dcaff; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ed-hero-kicker::before { content: ""; width: 28px; height: 2px; background: #8dcaff; }
.ed-hero h1 { margin: 13px 0 16px; max-width: 630px; font-size: clamp(38px, 4.4vw, 67px); line-height: 1.03; letter-spacing: -.04em; }
.ed-hero h1 span { color: #31a5ff; }
.ed-hero p { max-width: 560px; margin: 0 0 27px; color: #d3d9e5; font-size: 17px; }
.ed-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.ed-hero-dots { position: absolute; z-index: 5; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.ed-hero-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); }
.ed-hero-dot.is-active { width: 28px; border-radius: 10px; background: var(--ed-primary-2); }
.ed-trustbar { background: #fff; border-bottom: 1px solid var(--ed-line); }
.ed-trust-grid { min-height: 82px; display: grid; grid-template-columns: repeat(4,1fr); }
.ed-trust-item { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 16px 22px; border-right: 1px solid var(--ed-line); }
.ed-trust-item:last-child { border: 0; }
.ed-trust-icon { color: var(--ed-primary); }
.ed-trust-item strong { display: block; font-size: 14px; }
.ed-trust-item small { display: block; color: var(--ed-muted); font-size: 12px; }

/* Categories and promotions */
.ed-category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.ed-category-card { background: #fff; border: 1px solid var(--ed-line); border-radius: 8px; overflow: hidden; text-align: center; transition: .25s ease; }
.ed-category-card:hover { transform: translateY(-4px); border-color: rgba(8,127,193,.5); box-shadow: var(--ed-shadow); }
.ed-category-image { display: block; aspect-ratio: 1.16; overflow: hidden; background: #f4f7fc; }
.ed-category-image img { width: 100%; height: 100%; object-fit: cover; transition: .3s ease; }
.ed-category-card:hover img { transform: scale(1.035); }
.ed-category-name { display: block; min-height: 61px; padding: 18px 10px; color: #20242c; font-weight: 600; font-size: 14px; }
.ed-promo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ed-promo { position: relative; min-height: 190px; overflow: hidden; border-radius: 8px; padding: 28px; color: #fff; background: linear-gradient(135deg, #0f8adb, #074a8a); isolation: isolate; }
.ed-promo:nth-child(2) { background: linear-gradient(135deg, #5014b8, #231068); }
.ed-promo:nth-child(3) { background: linear-gradient(135deg, #171c25, #343f51); }
.ed-promo:nth-child(4) { background: linear-gradient(135deg, #075d79, #0ea1c2); }
.ed-promo::after { content: ""; position: absolute; z-index: -1; width: 160px; height: 160px; right: -38px; bottom: -50px; border: 28px solid rgba(255,255,255,.12); border-radius: 50%; }
.ed-promo small { opacity: .8; text-transform: uppercase; letter-spacing: .1em; }
.ed-promo h3 { margin: 8px 0 20px; max-width: 200px; font-size: 22px; line-height: 1.2; }
.ed-promo a { font-weight: 600; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.6); }
.ed-promo a:hover { color: #fff; }

/* Product cards */
.ed-product-grid, .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; margin: 0 !important; }
ul.ed-product-grid { padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.ed-product-card, .ed-product-grid > li.product, .woocommerce ul.products li.product { position: relative; width: auto !important; margin: 0 !important; float: none !important; overflow: hidden; background: #fff; border: 1px solid var(--ed-line); border-radius: 8px; padding: 0 0 18px !important; transition: .25s ease; }
.ed-product-card:hover, .ed-product-grid > li.product:hover, .woocommerce ul.products li.product:hover { border-color: rgba(8,127,193,.55); box-shadow: 4px 4px 12px rgba(0,0,0,.12); transform: translateY(-3px); }
.ed-product-image, .ed-product-grid > li.product a img, .woocommerce ul.products li.product a img { width: 100% !important; aspect-ratio: 1.16; object-fit: contain; margin: 0 0 14px !important; padding: 18px; background: #fff; }
.ed-product-body { padding: 0 18px; }
.ed-product-cat { color: var(--ed-primary); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ed-product-card h3, .ed-product-grid > li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 44px; margin: 6px 0 10px; padding: 0 !important; color: #20242c; font-size: 15px !important; line-height: 1.45; font-weight: 600; }
.ed-product-grid > li.product .woocommerce-loop-product__link, .woocommerce ul.products li.product .woocommerce-loop-product__link { display: block; padding: 0 18px; }
.ed-product-grid > li.product .woocommerce-loop-product__link img, .woocommerce ul.products li.product .woocommerce-loop-product__link img { width: calc(100% + 36px) !important; max-width: none; margin-left: -18px !important; }
.ed-product-price, .ed-product-grid > li.product .price, .woocommerce ul.products li.product .price { display: block; margin: 0 0 14px; color: #0d1117 !important; font-size: 17px !important; font-weight: 700 !important; }
.ed-product-price del, .ed-product-grid > li.product .price del, .woocommerce ul.products li.product .price del { color: #8a94a3; font-size: 12px; font-weight: 400; }
.ed-product-grid > li.product .button, .woocommerce ul.products li.product .button { margin: 0 18px !important; }
.woocommerce span.onsale { min-width: auto; min-height: auto; line-height: 1; padding: 8px 11px; margin: 12px !important; border-radius: 5px; background: var(--ed-danger); font-size: 11px; }
.ed-product-badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 6px 9px; border-radius: 4px; background: var(--ed-danger); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.ed-stock { display: flex; align-items: center; gap: 6px; color: #26834b; font-size: 12px; }
.ed-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #35b76a; }
.ed-demo-product .ed-product-image { display: grid; place-items: center; background: linear-gradient(145deg,#f8faff,#e9f0fa); }
.ed-demo-product .ed-product-image img { width: 68%; height: 68%; object-fit: contain; padding: 0; }

/* Brand rail */
.ed-brand-rail { display: grid; grid-template-columns: repeat(6,1fr); border: 1px solid var(--ed-line); border-radius: 8px; overflow: hidden; background: #fff; }
.ed-brand-name { min-height: 88px; display: grid; place-items: center; padding: 15px; border-right: 1px solid var(--ed-line); color: #454b55; font-size: 19px; font-weight: 750; letter-spacing: -.03em; }
.ed-brand-name:last-child { border: 0; }

/* General content / Woo */
.ed-content-shell { width: min(var(--ed-content),calc(100% - 48px)); margin: 26px auto 55px; padding: 30px; background: #fff; border: 1px solid var(--ed-line); border-radius: 5px; }
.ed-page-header { padding: 34px 0; background: #eef2f7; border-bottom: 1px solid var(--ed-line); }
.ed-page-header h1 { margin: 0; font-size: 32px; }
.ed-breadcrumbs { margin-top: 7px; color: var(--ed-muted); font-size: 13px; }
.woocommerce .woocommerce-breadcrumb { margin: 0 0 18px; color: var(--ed-muted); }
.woocommerce .woocommerce-result-count { color: var(--ed-muted); }
.woocommerce .woocommerce-ordering select { padding: 10px 36px 10px 12px; border: 1px solid var(--ed-line); border-radius: 6px; background: #fff; }
.woocommerce div.product { display: flow-root; }
.woocommerce div.product div.images img { border: 1px solid var(--ed-line); border-radius: 7px; }
.woocommerce div.product .product_title { font-size: clamp(27px,3vw,39px); line-height: 1.2; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ed-primary); font-size: 25px; font-weight: 700; }
.woocommerce div.product form.cart .button { min-height: 48px; }
.woocommerce .quantity .qty { min-height: 46px; border: 1px solid var(--ed-line); border-radius: 5px; }
.woocommerce-tabs { padding-top: 24px; }
.woocommerce table.shop_table { border-color: var(--ed-line); border-collapse: collapse; }
.woocommerce table.shop_table th { background: #f5f7fa; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 14px; border-color: var(--ed-line); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce .select2-container .select2-selection--single { min-height: 44px; border: 1px solid #c2c2c2; border-radius: 7px; padding: 9px 13px; background: #fff; }
.woocommerce form .form-row textarea { min-height: 120px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--ed-primary); outline: 0; box-shadow: 0 0 0 3px rgba(8,127,193,.1); }
.woocommerce-error, .woocommerce-info, .woocommerce-message { border-top-color: var(--ed-primary); background: #f4f8fc; }
.woocommerce-info::before, .woocommerce-message::before { color: var(--ed-primary); }
.woocommerce-account .woocommerce-MyAccount-navigation { width: 24%; }
.woocommerce-account .woocommerce-MyAccount-content { width: 73%; }
.woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; border: 1px solid var(--ed-line); border-radius: 7px; overflow: hidden; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 12px 15px; border-bottom: 1px solid var(--ed-line); }
.woocommerce-MyAccount-navigation li:last-child a { border: 0; }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--ed-primary); color: #fff; }

/* Account login */
.ed-account-wrap { width: min(var(--ed-content),calc(100% - 48px)); margin: 24px auto; padding: 48px; background: #fff; border: 1px solid var(--ed-line); }
.ed-account-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.ed-account-art { min-height: 420px; }
.ed-account-art img { width: 100%; height: 420px; object-fit: contain; border-radius: 8px; }
.ed-account-panel h1 { margin: 0 0 22px; color: var(--ed-primary); font-size: 27px; font-weight: 650; text-transform: uppercase; }
.ed-field { margin-bottom: 18px; }
.ed-field-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.ed-field label { display: block; margin-bottom: 7px; font-size: 14px; }
.ed-field input[type="text"], .ed-field input[type="email"], .ed-field input[type="password"] { width: 100%; min-height: 46px; border: 1px solid #c2c2c2; border-radius: 8px; padding: 10px 15px; background: #fff; }
.ed-field input:focus { outline: 0; border-color: var(--ed-primary); box-shadow: 0 0 0 3px rgba(8,127,193,.1); }
.ed-password-wrap { position: relative; }
.ed-password-wrap input { padding-right: 50px !important; }
.ed-password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: #56606e; display: grid; place-items: center; }
.ed-account-meta { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 5px 0 18px; font-size: 13px; }
.ed-account-meta a { color: var(--ed-primary); font-weight: 600; }
.ed-account-submit { width: 100%; }
.ed-account-register { margin-top: 17px; font-size: 14px; }
.ed-account-register a { color: var(--ed-primary); font-weight: 650; }
.ed-account-note { padding: 11px 13px; margin-bottom: 16px; border-left: 3px solid var(--ed-primary); background: #f0f8fd; color: #415165; font-size: 13px; }
.ed-register-panel { padding: 28px; border-radius: 8px; background: #f6f8fb; border: 1px solid var(--ed-line); }
.ed-register-panel h2 { margin: 0 0 8px; font-size: 22px; }
.ed-register-panel p { color: var(--ed-muted); }

/* Footer */
.ed-footer { background: #0a0d13; color: #fff; }
.ed-footer-main { padding: 56px 0 38px; display: grid; grid-template-columns: 1.45fr .8fr .8fr 1.2fr; gap: 54px; }
.ed-footer-logo { width: 250px; height: 74px; object-fit: contain; object-position: left center; }
.ed-footer-about { margin: 18px 0 20px; max-width: 430px; color: #adb6c4; font-size: 13px; }
.ed-footer h3 { margin: 6px 0 17px; font-size: 16px; text-transform: uppercase; letter-spacing: .03em; }
.ed-footer-links { list-style: none; margin: 0; padding: 0; }
.ed-footer-links li { margin-bottom: 10px; }
.ed-footer-links a { color: #c5ccd6; font-size: 13px; }
.ed-footer-links a:hover { color: #4bb6ff; }
.ed-newsletter { display: flex; height: 44px; margin-top: 16px; }
.ed-newsletter input { min-width: 0; flex: 1; border: 0; border-radius: 5px 0 0 5px; padding: 0 13px; }
.ed-newsletter button { width: 48px; border: 0; border-radius: 0 5px 5px 0; background: var(--ed-primary); color: #fff; }
.ed-footer-contact { margin-top: 16px; color: #c5ccd6; font-size: 13px; }
.ed-footer-contact div { display: flex; gap: 9px; margin: 9px 0; }
.ed-footer-bottom { border-top: 1px solid #232a35; }
.ed-footer-bottom-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #8993a1; font-size: 12px; }
.ed-socials { display: flex; gap: 9px; }
.ed-socials a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #343c49; color: #cbd2dc; }
.ed-socials a:hover { background: var(--ed-primary); border-color: var(--ed-primary); color: #fff; }

/* Icons */
.ed-icon { width: 20px; height: 20px; display: inline-block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ed-icon--fill { fill: currentColor; stroke: none; }

@media (max-width: 1180px) {
  .ed-header-main { grid-template-columns: 220px 1fr auto; gap: 22px; }
  .ed-brand { width: 210px; }
  .ed-action-label { display: none; }
  .ed-primary-menu { gap: 18px; }
  .ed-primary-menu li:nth-last-child(-n+2) { display: none; }
  .ed-category-grid { grid-template-columns: repeat(3,1fr); }
  .ed-promo-grid { grid-template-columns: repeat(2,1fr); }
  .ed-footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
  .ed-footer-main > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .admin-bar .ed-site-header { top: 46px; }
  .ed-container { width: min(100% - 32px,var(--ed-content)); }
  .ed-site-header { position: relative; top: auto; }
  .ed-header-main { height: 76px; grid-template-columns: 1fr auto; }
  .ed-brand { width: 205px; height: 60px; }
  .ed-header-main > .ed-search, .ed-header-actions { display: none; }
  .ed-mobile-toggle { display: block; }
  .ed-header-nav .ed-nav-row { min-height: 66px; }
  .ed-nav-row .ed-nav-left, .ed-nav-row .ed-nav-right { display: none; }
  .ed-header-nav .ed-search { display: flex; width: calc(100% - 58px); }
  .ed-mobile-drawer { display: block; position: fixed; z-index: 1200; inset: 0 0 0 auto; width: min(86vw,380px); padding: 26px; background: #0c1018; color: #fff; transform: translateX(105%); transition: .3s ease; box-shadow: -20px 0 40px rgba(0,0,0,.25); }
  .menu-open .ed-mobile-drawer { transform: translateX(0); }
  .ed-drawer-close { margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #343c48; border-radius: 50%; background: transparent; color: #fff; }
  .ed-mobile-menu { list-style: none; margin: 22px 0; padding: 0; }
  .ed-mobile-menu a { display: block; padding: 13px 4px; border-bottom: 1px solid #252d38; }
  .ed-mobile-account { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ed-mobile-account a { padding: 10px; border: 1px solid #313a48; border-radius: 5px; text-align: center; }
  .ed-hero, .ed-hero-slide, .ed-hero-content { min-height: 430px; }
  .ed-hero-slide { background-position: 61% center; }
  .ed-hero-slide::after { background: linear-gradient(90deg,rgba(2,5,10,.93),rgba(2,5,10,.76) 55%,rgba(2,5,10,.26)); }
  .ed-hero-copy { max-width: 600px; }
  .ed-trust-grid { grid-template-columns: repeat(2,1fr); }
  .ed-trust-item:nth-child(2) { border-right: 0; }
  .ed-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--ed-line); }
  .ed-product-grid, .woocommerce ul.products { grid-template-columns: repeat(2,1fr); }
  .ed-brand-rail { grid-template-columns: repeat(3,1fr); }
  .ed-brand-name:nth-child(3) { border-right: 0; }
  .ed-brand-name:nth-child(-n+3) { border-bottom: 1px solid var(--ed-line); }
  .ed-account-wrap { padding: 28px; }
  .ed-account-grid { grid-template-columns: 1fr; gap: 20px; }
  .ed-account-art { min-height: 300px; }
  .ed-account-art img { height: 300px; }
  .woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { width: 100%; float: none; }
  .woocommerce-account .woocommerce-MyAccount-navigation { margin-bottom: 25px; }
}
@media (max-width: 640px) {
  .ed-container { width: calc(100% - 24px); }
  .ed-header-main { padding-inline: 4px; }
  .ed-brand { width: 180px; }
  .ed-search select { width: 66px; font-size: 12px; }
  .ed-search input { padding: 0 10px; }
  .ed-hero, .ed-hero-slide, .ed-hero-content { min-height: 470px; }
  .ed-hero-slide { background-position: 68% center; }
  .ed-hero-slide::after { background: rgba(3,6,12,.78); }
  .ed-hero h1 { font-size: 40px; }
  .ed-hero p { font-size: 15px; }
  .ed-hero-actions { align-items: stretch; flex-direction: column; max-width: 250px; }
  .ed-trust-grid { grid-template-columns: 1fr; }
  .ed-trust-item { justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--ed-line); }
  .ed-category-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .ed-promo-grid, .ed-product-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .ed-section { padding: 42px 0; }
  .ed-section-head { align-items: start; flex-direction: column; }
  .ed-brand-rail { grid-template-columns: repeat(2,1fr); }
  .ed-brand-name { border-bottom: 1px solid var(--ed-line); }
  .ed-brand-name:nth-child(2n) { border-right: 0; }
  .ed-content-shell { width: calc(100% - 24px); margin-top: 14px; padding: 18px; }
  .ed-account-wrap { width: calc(100% - 24px); margin: 14px auto; padding: 18px; }
  .ed-account-art, .ed-account-art img { height: 230px; min-height: 230px; }
  .ed-account-panel h1 { font-size: 22px; }
  .ed-account-meta { align-items: flex-start; flex-direction: column; }
  .ed-footer-main { grid-template-columns: 1fr; gap: 30px; }
  .ed-footer-main > :last-child { grid-column: auto; }
  .ed-footer-bottom-inner { padding: 18px 0; align-items: flex-start; flex-direction: column; }
}
