/* ==========================================================================
   Electronix Distributor — child theme of Classic (PrestaShop 1.7.7)
   Light is the default; dark is opt-in via html[data-theme="dark"].
   ========================================================================== */
:root {
  color-scheme: light;
  --ed-bg: #F6F8FB;
  --ed-surface: #FFFFFF;
  --ed-surface-2: #F0F3F8;
  --ed-border: #E3E8F0;
  --ed-border-strong: #CBD3E0;
  --ed-fg: #0A0E1A;
  --ed-muted: #4A5368;
  --ed-subtle: #7A849A;
  --ed-accent: #D54B00;
  --ed-accent-hover: #E85A00;
  --ed-accent-ink: #FFFFFF;
  --ed-highlight: #0A7A8C;
  --ed-success: #0E8E4A;
  --ed-success-soft: #D8F0E2;
  --ed-card-media: linear-gradient(135deg, #F6F8FB 0%, #E8ECF2 100%);
  --ed-logo-filter: none;
  --ed-bar: #0A0E1A;
  --ed-bar-fg: #BCC3D1;
  --ed-display: 'Chakra Petch', 'Inter', system-ui, sans-serif;
  --ed-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ed-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ed-radius: 4px;
  --ed-radius-lg: 10px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ed-bg: #000000;
  --ed-surface: #141414;
  --ed-surface-2: #1C1C1C;
  --ed-border: #262626;
  --ed-border-strong: #3A3A3A;
  --ed-fg: #F2F2F2;
  --ed-muted: #8A8A8A;
  --ed-subtle: #5C5C5C;
  --ed-accent: #FF6A00;
  --ed-accent-hover: #FF8128;
  --ed-accent-ink: #000000;
  --ed-highlight: #4FD1E0;
  --ed-success: #4ADE80;
  --ed-success-soft: #0E2416;
  --ed-card-media: linear-gradient(135deg, #0A0A0A 0%, #161616 100%);
  --ed-logo-filter: invert(1);
  --ed-bar: #000000;
}

/* ---------- Base ---------- */
html, body { overflow-x: clip; }
body, #wrapper, #main { background: var(--ed-bg) !important; color: var(--ed-fg); font-family: var(--ed-body); }
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { color: var(--ed-fg); font-family: var(--ed-display); letter-spacing: -0.01em; text-transform: none; }
p, li, label, .text-muted { color: var(--ed-muted); }
a { color: var(--ed-fg); }
a:hover, a:focus { color: var(--ed-accent); }
#wrapper { padding-top: 0; }
.card, .block-category, .tabs, .card-block, #search_filters, .block-categories,
.cart-grid-body .card, .cart-summary, .dropdown-menu, .modal-content, .product-cover, .images-container .product-images {
  background: var(--ed-surface) !important; color: var(--ed-fg); border-color: var(--ed-border) !important; box-shadow: none !important;
}
.btn-primary, .btn-primary:disabled {
  background: var(--ed-accent) !important; border-color: var(--ed-accent) !important; color: var(--ed-accent-ink) !important;
  font-weight: 700; text-transform: none; border-radius: var(--ed-radius); box-shadow: none;
}
.btn-primary:hover, .btn-primary:focus { background: var(--ed-accent-hover) !important; border-color: var(--ed-accent-hover) !important; }
.btn-secondary, .btn-tertiary { background: var(--ed-surface-2); color: var(--ed-fg); border-color: var(--ed-border); text-transform: none; }
input.form-control, select.form-control, textarea.form-control, .form-control {
  background: var(--ed-surface); color: var(--ed-fg); border-color: var(--ed-border-strong);
}
:focus-visible { outline: 2px solid var(--ed-highlight); outline-offset: 2px; }

/* ---------- Utility bar ---------- */
.ed-utility { background: var(--ed-bar); color: var(--ed-bar-fg); font-size: 12.5px; }
.ed-utility-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.ed-utility-item { display: inline-flex; align-items: center; gap: 8px; color: var(--ed-bar-fg); }
.ed-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 8px #4ADE80; }
@media (max-width: 767px) { .ed-hide-sm { display: none; } }

/* ---------- Header ---------- */
#header { background: var(--ed-surface); color: var(--ed-fg); box-shadow: none; border-bottom: 1px solid var(--ed-border); }
#header .header-nav { background: var(--ed-surface); border-bottom: 1px solid var(--ed-border); max-height: none; }
#header .header-nav, #header .header-nav a, #header .header-nav .material-icons,
#header .header-nav .expand-more, #header .header-nav .language-selector, #header .header-nav .currency-selector,
#header .header-nav #contact-link, #header .header-nav .user-info { color: var(--ed-muted); }
#header .header-nav .blockcart { background: var(--ed-surface-2); }
#header .header-nav .blockcart.active { background: var(--ed-accent); }
#header .header-nav .blockcart.active a, #header .header-nav .blockcart.active .material-icons { color: var(--ed-accent-ink); }
#header .header-nav .right-nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
#header .header-top { background: var(--ed-surface); padding: 10px 0; }
#header .header-top > .container > .row:first-child { display: flex; align-items: center; flex-wrap: wrap; }
#header .header-top .header-top-right { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#_desktop_logo .logo, #_mobile_logo .logo { max-height: 120px; width: auto; filter: var(--ed-logo-filter); }
@media (max-width: 991px) { #_desktop_logo .logo { max-height: 92px; } }
#_mobile_logo .logo { max-height: 64px; }

/* main menu */
.top-menu a[data-depth="0"] {
  font-family: var(--ed-body); font-size: 14px; font-weight: 600; text-transform: none;
  color: var(--ed-muted) !important; padding: 10px 14px; border-radius: var(--ed-radius);
}
.top-menu a[data-depth="0"]:hover { color: var(--ed-fg) !important; background: var(--ed-surface-2); }
.top-menu .sub-menu { background: var(--ed-surface); border: 1px solid var(--ed-border); box-shadow: 0 10px 30px rgba(0,0,0,.08); }

/* search */
#search_widget form input[type=text] {
  background: var(--ed-surface-2); color: var(--ed-fg); border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius); padding: 10px 44px 10px 14px; min-width: 240px;
  font-size: 14px; text-overflow: ellipsis; /* magnifier button sits on the right, so reserve space there */
}
#search_widget form input[type=text]:focus { outline: 2px solid var(--ed-highlight); background: var(--ed-surface); color: var(--ed-fg); }
#search_widget form i { color: var(--ed-subtle); }

/* theme toggle (injected by custom.js) */
.ed-theme-toggle {
  width: 36px; height: 36px; display: inline-grid; place-items: center; margin-right: 6px;
  background: transparent; border: 1px solid var(--ed-border); border-radius: 50%; color: var(--ed-muted); cursor: pointer;
}
.ed-theme-toggle:hover { color: var(--ed-fg); border-color: var(--ed-border-strong); }
.ed-theme-toggle .ed-sun { display: none; }
html[data-theme="dark"] .ed-theme-toggle .ed-sun { display: block; }
html[data-theme="dark"] .ed-theme-toggle .ed-moon { display: none; }

/* breadcrumb */
#wrapper .breadcrumb { background: transparent; padding: 18px 0 6px; font-size: 12.5px; }
#wrapper .breadcrumb li, #wrapper .breadcrumb li a, #wrapper .breadcrumb li::after { color: var(--ed-subtle); }

/* ---------- Homepage ---------- */
.ed-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
#index #carousel, #index .carousel, #index #custom-text, #index .banner { display: none !important; }
.ed-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ed-highlight); margin-bottom: 10px;
}
.ed-hero { background: #000; color: #F2F2F2; position: relative; overflow: hidden; }
.ed-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 75% 60%, rgba(255,106,0,.20), transparent 55%),
              radial-gradient(ellipse at 15% 15%, rgba(79,209,224,.12), transparent 55%);
}
.ed-hero-inner {
  position: relative; max-width: 1280px; margin: 0 auto; padding: 72px 24px 80px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center;
}
@media (max-width: 991px) { .ed-hero-inner { grid-template-columns: 1fr; padding: 48px 20px 56px; gap: 32px; } }
.ed-hero .ed-eyebrow { color: #4FD1E0; }
.ed-hero .ed-eyebrow::before { content: ""; width: 24px; height: 1px; background: #4FD1E0; }
.ed-hero-title {
  font-family: var(--ed-display); font-weight: 700; color: #FFFFFF !important;
  font-size: clamp(34px, 5vw, 62px); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 18px; text-wrap: balance;
}
.ed-hero-title em { font-style: normal; color: #FF6A00; }
.ed-hero-sub { color: #BCC3D1 !important; font-size: 17px; line-height: 1.55; max-width: 52ch; margin: 0 0 26px; }
.ed-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ed-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: var(--ed-radius);
  font-weight: 700; font-size: 15px; text-decoration: none !important; transition: background .16s;
}
.ed-btn-primary { background: #FF6A00; color: #000 !important; }
.ed-btn-primary:hover { background: #FF8128; color: #000 !important; }
.ed-btn-ghost { border: 1px solid #3A3A3A; color: #F2F2F2 !important; }
.ed-btn-ghost:hover { border-color: #666; color: #FFF !important; }
.ed-hero-stats { display: flex; gap: 36px; margin-top: 34px; padding-top: 22px; border-top: 1px solid #262626; flex-wrap: wrap; }
.ed-hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.ed-hero-stats strong { font-family: var(--ed-display); font-size: 22px; color: #FF6A00; }
.ed-hero-stats span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8A8A8A; }
.ed-hero-media { display: grid; place-items: center; }
.ed-hero-media img { width: 100%; max-width: 620px; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }

.ed-brands { background: var(--ed-surface-2); border-bottom: 1px solid var(--ed-border); }
.ed-brands-inner {
  max-width: 1280px; margin: 0 auto; padding: 26px 24px; display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 14px 40px; font-family: var(--ed-display); font-weight: 700; font-size: 17px; color: var(--ed-subtle);
}
.ed-brands-label {
  width: 100%; text-align: center; font-family: var(--ed-body); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ed-muted); font-weight: 700;
}

.ed-section { padding: 56px 0 24px; }
.ed-section-head { margin-bottom: 28px; }
.ed-section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; margin: 0; }
.ed-cats { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
@media (max-width: 991px) { .ed-cats { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } }
@media (max-width: 575px) { .ed-cats { gap: 10px; } .ed-cats .ed-cat:not(.ed-cat-feature) { min-height: 150px; } .ed-cats .ed-cat:not(.ed-cat-feature) { padding: 16px; } .ed-cats .ed-cat:not(.ed-cat-feature) h3 { font-size: 17px; } }
.ed-cat {
  position: relative; overflow: hidden; border-radius: var(--ed-radius-lg); min-height: 190px; padding: 26px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #FFF; text-decoration: none !important;
  border: 1px solid var(--ed-border); background: linear-gradient(135deg, #0A0A0A, #161616);
}
.ed-cat-feature { grid-row: 1 / span 2; min-height: 400px; }
@media (max-width: 991px) { .ed-cat-feature { grid-row: auto; grid-column: 1 / -1; min-height: 300px; } }
.ed-cat-laptops { background: radial-gradient(ellipse at 55% 45%, rgba(255,106,0,.28), transparent 55%), radial-gradient(ellipse at 15% 15%, rgba(79,209,224,.18), transparent 55%), linear-gradient(135deg, #000, #141414); }
.ed-cat-desktops { background: radial-gradient(ellipse at 70% 30%, rgba(79,209,224,.28), transparent 55%), linear-gradient(135deg, #0A0A0A, #1A1F2A); }
.ed-cat-monitors { background: radial-gradient(ellipse at 30% 60%, rgba(255,106,0,.22), transparent 55%), linear-gradient(135deg, #141414, #0A0A0A); }
.ed-cat-components { background: radial-gradient(ellipse at 50% 40%, rgba(139,92,246,.28), transparent 55%), linear-gradient(135deg, #0A0A0A, #1A0F28); }
.ed-cat-accessories { background: radial-gradient(ellipse at 60% 50%, rgba(74,222,128,.18), transparent 55%), linear-gradient(135deg, #0A0A0A, #0F1A14); }
.ed-cat-art { position: absolute; right: -10px; top: 50%; transform: translateY(-55%); width: 58%; max-width: 260px; opacity: .95; pointer-events: none; }
.ed-cat-feature .ed-cat-art { width: 78%; max-width: 560px; right: -30px; transform: translateY(-62%); filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.ed-cat-body { position: relative; z-index: 1; }
.ed-cat-eyebrow { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #4FD1E0; margin-bottom: 6px; }
.ed-cat h3 { color: #FFF !important; font-size: 22px; margin: 0 0 4px; }
.ed-cat-feature h3 { font-size: 32px; }
.ed-cat-sub { font-size: 12.5px; color: #BCC3D1; }
a.ed-cat:hover { transform: translateY(-2px); transition: transform .2s; }

/* featured products module on home */
.ed-home-hook { padding: 40px 0 24px; }
.featured-products .products-section-title, .featured-products h2,
.product-accessories h3, .products-section-title {
  font-family: var(--ed-display); font-size: clamp(24px, 2.6vw, 32px); text-transform: none; text-align: left; color: var(--ed-fg); font-weight: 600;
}
.featured-products .all-product-link {
  float: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  color: var(--ed-accent) !important; font-weight: 700; text-transform: none;
}

/* ---------- Product grid + cards ---------- */
#products .products, .featured-products .products, .product-accessories .products, #js-product-list .products {
  display: grid !important; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 0;
}
.products > .js-product, .products > .product, .products > .product-miniature,
.products .product-miniature { width: auto !important; max-width: none !important; flex: none !important; padding: 0 !important; margin: 0 !important; float: none !important; }
.ed-card {
  background: var(--ed-surface); border: 1px solid var(--ed-border); border-radius: var(--ed-radius-lg);
  overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: border-color .2s, transform .2s;
}
.ed-card:hover { border-color: var(--ed-border-strong); transform: translateY(-2px); }
.ed-card .thumbnail-container { background: var(--ed-card-media) !important; box-shadow: none !important; margin: 0; width: auto; height: auto; position: relative; border-bottom: 1px solid var(--ed-border); }
.ed-card .thumbnail-container:hover .highlighted-informations { display: none; }
.ed-card .product-thumbnail { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 14px; height: auto; }
.ed-card .product-thumbnail img { position: static; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; margin: 0; }
.ed-card-tag {
  position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 100px; font-family: var(--ed-mono);
  font-size: 10.5px; font-weight: 700; background: var(--ed-success-soft); color: var(--ed-success);
}
.ed-card .product-description, .ed-card-body {
  position: static; width: auto; height: auto; background: transparent !important; padding: 16px; text-align: left;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.ed-card-brand { font-family: var(--ed-display); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ed-muted); }
.ed-card .product-title, .ed-card-name { text-align: left; margin: 0; font-family: var(--ed-body); font-size: 14px; font-weight: 600; line-height: 1.35; text-transform: none; }
.ed-card .product-title a { color: var(--ed-fg) !important; }
.ed-card-pn { font-size: 10.5px; color: var(--ed-subtle); }
.ed-card-pn span { font-family: var(--ed-mono); color: var(--ed-muted); }
.ed-card .product-price-and-shipping { text-align: left; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.ed-card .product-price-and-shipping .price { font-family: var(--ed-display); font-size: 20px; font-weight: 700; color: var(--ed-accent); }
.ed-card .product-price-and-shipping .regular-price { font-family: var(--ed-mono); font-size: 12px; color: var(--ed-subtle); text-decoration: line-through; }
.ed-card .discount-product, .ed-card .product-flags { display: none; }
.ed-card-actions { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 10px; align-items: center; }
.ed-card-cart { margin: 0; }
.ed-btn-cart { width: 100%; height: 40px; }
.ed-card-stock {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; border-radius: var(--ed-radius);
  background: var(--ed-surface-2); color: var(--ed-muted); font-size: 13px; font-weight: 600;
}
.ed-btn-quick {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: var(--ed-radius);
  background: var(--ed-surface-2); color: var(--ed-fg) !important; font-size: 13px; font-weight: 500; text-decoration: none !important;
}
.ed-btn-quick:hover { background: var(--ed-border); }

/* ---------- Category page ---------- */
.block-category { border-radius: var(--ed-radius-lg); padding: 24px; margin-bottom: 20px; min-height: 0; }
.block-category h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; text-transform: none; }
.block-category #category-description p, .block-category .block-category-inner { color: var(--ed-muted); }
#js-product-list-top { border-block: 1px solid var(--ed-border); padding: 12px 0; margin-bottom: 20px; }
#js-product-list-top .total-products p, .products-sort-order .select-title { color: var(--ed-muted); }
.products-sort-order .select-title { background: var(--ed-surface); border: 1px solid var(--ed-border); }
#left-column .block-categories, #search_filters { border-radius: var(--ed-radius-lg); border: 1px solid var(--ed-border); }
#left-column .block-categories a, #search_filters .facet-label a, #search_filters .h6, #search_filters .facet-title { color: var(--ed-fg); }
.pagination .page-list { background: transparent; box-shadow: none; }
.pagination .current a { color: var(--ed-accent); }

/* ---------- Product page ---------- */
#product #content { max-width: none; }
.product-cover { border-radius: var(--ed-radius-lg); overflow: hidden; background: var(--ed-card-media) !important; border: 1px solid var(--ed-border); }
.product-cover img { background: transparent; }
.product-cover .layer { background: transparent; }
.images-container .product-images > li.thumb-container .thumb { background: var(--ed-card-media); border-radius: var(--ed-radius); }
.images-container .product-images > li.thumb-container .thumb.selected,
.images-container .product-images > li.thumb-container .thumb:hover { border-color: var(--ed-accent); }
.ed-pp-brand { font-family: var(--ed-display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ed-muted); margin-bottom: 6px; }
#product h1.h1 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; text-transform: none; line-height: 1.2; }
.product-prices .current-price .price, .product-prices .current-price span:first-child { font-family: var(--ed-display); font-size: 36px; font-weight: 700; color: var(--ed-accent); }
.product-prices .product-discount .regular-price { font-family: var(--ed-mono); color: var(--ed-subtle); }
.product-prices .discount { background: var(--ed-success-soft); color: var(--ed-success); border-radius: 100px; font-weight: 700; text-transform: none; }
.product-prices .tax-shipping-delivery-label { color: var(--ed-subtle); }
.ed-spec-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--ed-border); border: 1px solid var(--ed-border); border-radius: var(--ed-radius-lg); overflow: hidden; margin: 18px 0 14px; }
.ed-spec-tile { background: var(--ed-surface); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.ed-spec-label { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ed-subtle); }
.ed-spec-value { font-family: var(--ed-mono); font-size: 13px; font-weight: 700; color: var(--ed-fg); line-height: 1.3; }
.ed-spec-line p { font-family: var(--ed-mono); font-size: 11.5px; line-height: 1.55; color: var(--ed-muted); background: var(--ed-surface-2); border: 1px solid var(--ed-border); border-radius: var(--ed-radius); padding: 10px 12px; }
.ed-pp-pn { font-size: 12px; color: var(--ed-subtle); margin-bottom: 10px; }
.ed-pp-pn span { font-family: var(--ed-mono); color: var(--ed-muted); }
.product-add-to-cart .add-to-cart { height: 48px; padding: 0 24px; }
.product-quantity .qty .input-group { background: var(--ed-surface); color: var(--ed-fg); }
#product-availability { color: var(--ed-muted); }
.tabs { border-radius: var(--ed-radius-lg); border: 1px solid var(--ed-border); }
.tabs .nav-tabs { border-bottom: 1px solid var(--ed-border); }
.tabs .nav-tabs .nav-link { color: var(--ed-muted); text-transform: none; font-weight: 600; }
.tabs .nav-tabs .nav-link.active, .tabs .nav-tabs .nav-link:hover { color: var(--ed-fg); border-bottom: 2px solid var(--ed-accent); background: transparent; }
.product-features > dl.data-sheet dd.value, .product-features > dl.data-sheet dt.name { background: var(--ed-surface-2); color: var(--ed-fg); }
.product-features > dl.data-sheet dd.value:nth-of-type(even), .product-features > dl.data-sheet dt.name:nth-of-type(even) { background: var(--ed-surface); }
.blockreassurance_product, #block-reassurance { background: var(--ed-surface); }
#block-reassurance span, #block-reassurance li { color: var(--ed-muted); }

/* ---------- Footer ---------- */
#footer { background: var(--ed-bar); padding-top: 0; color: var(--ed-bar-fg); }
#footer .container:first-child { padding-block: 26px; }
#footer .block_newsletter { background: transparent; color: var(--ed-bar-fg); }
#footer .block_newsletter p, #footer .block_newsletter #block-newsletter-label { color: #F2F2F2; font-family: var(--ed-display); }
#footer .block_newsletter input[type=email] { background: #141414; color: #F2F2F2; border: 1px solid #262626; }
#footer .block_newsletter .btn-primary { background: #FF6A00 !important; border-color: #FF6A00 !important; color: #000 !important; }
.footer-container { background: var(--ed-bar); box-shadow: none; border-top: 1px solid #1A1D28; padding-top: 40px; }
.footer-container .h3, .footer-container .h4, .footer-container .block-contact-title, .footer-container .links .h3 {
  color: #8A8A8A; font-family: var(--ed-body); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.footer-container li a, .footer-container .block-contact, .footer-container .block-contact a, .footer-container p { color: #BCC3D1 !important; }
.footer-container li a:hover { color: #FFFFFF !important; }
.ed-copyright { display: block; font-size: 12px; color: #6B7280; padding: 18px 0 8px; }

/* ---------- Hardening: beat Classic 1.7.7's absolute-positioned miniature layout ---------- */
.products .ed-card .thumbnail-container,
.product-miniature.ed-card .thumbnail-container { width: auto !important; height: auto !important; margin: 0 !important; box-shadow: none !important; }
.product-miniature.ed-card .thumbnail-container .product-thumbnail { display: grid !important; place-items: center; aspect-ratio: 4 / 3; height: auto !important; padding: 14px; }
.product-miniature.ed-card .thumbnail-container .product-thumbnail img {
  position: static !important; max-width: 100% !important; max-height: 100% !important; width: auto !important; height: auto !important; margin: 0 !important;
}
.product-miniature.ed-card .product-description {
  position: static !important; width: auto !important; height: auto !important; bottom: auto !important; background: transparent !important;
}
.product-miniature.ed-card .product-title { text-align: left !important; }
.product-miniature.ed-card .product-price-and-shipping { text-align: left !important; }

/* ---------- v1.1 fixes ---------- */
/* card actions: keep Quick view on one line */
.ed-btn-quick { white-space: nowrap; }
.ed-card-actions > * { min-width: 0; }
/* homepage section title: Classic forces uppercase via .text-uppercase */
.products-section-title.text-uppercase, .featured-products .products-section-title { text-transform: none !important; text-align: left !important; margin-bottom: 20px; }
/* product flags: restyle, drop the duplicate discount flag (price block already shows Save $X) */
.product-flags li.product-flag {
  background: var(--ed-fg); color: var(--ed-bg); font-family: var(--ed-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; border-radius: 100px; padding: 5px 11px; min-height: 0; min-width: 0; box-shadow: none; margin: 12px 0 0 12px;
}
.product-flags li.product-flag.discount, .product-flags li.product-flag.on-sale, .product-flags li.product-flag.discount-amount, .product-flags li.product-flag.discount-percentage { display: none; }
/* product page: labels, quantity input and touchspin in both themes */
.product-actions .control-label, .product-quantity .control-label, .social-sharing > span, .social-sharing span { color: var(--ed-muted); }
#quantity_wanted, .product-quantity #quantity_wanted { background: var(--ed-surface); color: var(--ed-fg); border: 1px solid var(--ed-border); height: 48px; }
.bootstrap-touchspin .btn-touchspin, .bootstrap-touchspin .input-group-btn-vertical .btn { background: var(--ed-surface-2); border-color: var(--ed-border); color: var(--ed-fg); }
.bootstrap-touchspin .input-group-btn-vertical i { color: var(--ed-fg); }
.social-sharing li { background-color: var(--ed-surface); box-shadow: none; border: 1px solid var(--ed-border); }
html[data-theme="dark"] .social-sharing li { filter: invert(1) hue-rotate(180deg); background-color: #EBEBEB; border-color: #D9D9D9; }
.product-add-to-cart .add-to-cart:disabled, .product-add-to-cart .add-to-cart.disabled { opacity: .45; }
/* product comments module */
.product-comments-additional-info, #product-comments-list-header, #product-comments-list-header .comments-nb { color: var(--ed-fg); }
#empty-product-comment, #product-comments-list { background: var(--ed-surface) !important; border: 1px solid var(--ed-border); border-radius: var(--ed-radius-lg); }
#empty-product-comment .btn-comment, .product-comments-additional-info .btn-comment, .btn-comment, .btn-comment-big {
  background: var(--ed-surface-2) !important; color: var(--ed-fg) !important; border: 1px solid var(--ed-border) !important; box-shadow: none !important; border-radius: var(--ed-radius) !important;
}
#empty-product-comment .btn-comment:hover, .btn-comment:hover { border-color: var(--ed-accent) !important; color: var(--ed-accent) !important; }
#empty-product-comment .btn-comment i, .btn-comment i { color: inherit; }
/* footer: "Your account" heading is a link, keep it in the heading colour */
.footer-container .h3 a, .footer-container .h4 a, .footer-container .myaccount-title a, #footer .myaccount-title a { color: #8A8A8A !important; font-size: 11px; letter-spacing: .12em; }
.footer-container .myaccount-title a:hover { color: #FFFFFF !important; }
/* thumbnails strip */
.js-qv-mask, .product-images { background: transparent; }
.scroll-box-arrows i { color: var(--ed-fg); }
/* mobile header: logo and full-width search */
@media (max-width: 767px) {
  #_mobile_logo .logo, .top-logo .logo, #header .top-logo img { max-height: 56px; width: auto; }
  #header .header-top #search_widget, #header #_mobile_search_widget #search_widget, #search_widget { width: 100%; float: none; min-width: 0; }
  #search_widget form input[type=text] { width: 100%; }
  #header .header-top .container > .row > div, #header .header-top .position-static { width: 100%; }
}
/* mobile catalogue: two cards per row, compact */
@media (max-width: 575px) {
  #products .products, .featured-products .products, .product-accessories .products, #js-product-list .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ed-card .product-thumbnail, .product-miniature.ed-card .thumbnail-container .product-thumbnail { padding: 8px; }
  .ed-card-body, .ed-card .product-description { padding: 10px !important; gap: 4px; }
  .ed-card .product-title, .ed-card-name { font-size: 12.5px; }
  .ed-card .product-price-and-shipping .price { font-size: 16px; }
  .ed-card .product-price-and-shipping .regular-price { font-size: 11px; }
  .ed-card-tag { top: 6px; left: 6px; font-size: 9.5px; padding: 3px 7px; }
  .ed-card-pn { display: none; }
  .ed-card-actions { grid-template-columns: 1fr; }
  .ed-btn-quick { display: none; }
  .ed-btn-cart, .ed-card-stock { height: 36px; font-size: 12px; }
}

/* ---------- v1.2: main menu with all categories ---------- */
#header .top-menu a[data-depth="0"], #header .top-menu a[data-depth="0"].text-uppercase { text-transform: none !important; letter-spacing: 0; }
#_desktop_top_menu .top-menu { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; margin: 0; }
#_desktop_top_menu .top-menu > li { float: none; }
#_desktop_top_menu .top-menu a[data-depth="0"] { font-size: 14px; padding: 9px 12px; white-space: nowrap; }
#_desktop_top_menu .top-menu > li.current > a[data-depth="0"], #_desktop_top_menu .top-menu > li.ed-active > a[data-depth="0"],
#_desktop_top_menu .top-menu > li > a[data-depth="0"]:hover { color: var(--ed-fg) !important; background: var(--ed-surface-2); }
@media (min-width: 768px) {
  #header .header-top > .container > .row > .position-static { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }
  #header .header-top > .container > .row > .position-static > .clearfix { display: none; }
  #header #_desktop_top_menu { flex: 1 1 auto; width: auto; min-width: 0; padding-left: 0; margin: 0; }
  #header .position-static > #search_widget { flex: 0 0 auto; width: auto; min-width: 0; margin: 0; float: none; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  #header .header-top > .container > .row > .position-static { flex-wrap: wrap; row-gap: 8px; }
  #header #_desktop_top_menu { order: 2; flex-basis: 100%; }
  #header .position-static > #search_widget { order: 1; margin-left: auto; }
  #_desktop_top_menu .top-menu { flex-wrap: wrap; }
}
@media (min-width: 1200px) {
  /* fits the longer Spanish labels on one row; wraps instead of sliding under the search box if it ever overflows */
  #_desktop_top_menu .top-menu { flex-wrap: wrap; row-gap: 2px; }
  #_desktop_top_menu .top-menu a[data-depth="0"] { font-size: 13.5px; padding: 8px 9px; }
  #header .position-static > #search_widget form input[type=text] { min-width: 220px; width: 220px; }
}
/* mobile menu drawer */
#mobile_top_menu_wrapper { background: var(--ed-surface); }
#mobile_top_menu_wrapper .top-menu { display: block; }
#mobile_top_menu_wrapper .top-menu a[data-depth="0"] { display: block; padding: 12px 4px; font-size: 15px; }
#mobile_top_menu_wrapper .top-menu a[data-depth="0"] { text-transform: none; color: var(--ed-fg) !important; font-weight: 600; }
#mobile_top_menu_wrapper .top-menu > li { border-bottom: 1px solid var(--ed-border); }
#mobile_top_menu_wrapper .js-top-menu-bottom a, #mobile_top_menu_wrapper .js-top-menu-bottom .expand-more { color: var(--ed-muted); }

/* homepage: all category tiles are now links */
a.ed-cat, a.ed-cat:hover, a.ed-cat:focus { color: #FFF; }

/* empty category ("coming soon") */
#products .page-not-found.ed-empty, .page-not-found.ed-empty {
  max-width: none; width: auto; margin: 0; padding: 40px 32px; text-align: left; box-shadow: none;
  background: var(--ed-surface); border: 1px solid var(--ed-border); border-radius: var(--ed-radius-lg);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
#products .page-not-found.ed-empty h4 { font-family: var(--ed-display); font-size: 26px; font-weight: 700; color: var(--ed-fg); margin: 0; line-height: 1.2; }
#products .page-not-found.ed-empty p { margin: 0 0 8px; color: var(--ed-muted); font-size: 15px; }
#products .page-not-found.ed-empty .ed-eyebrow { margin-bottom: 0; }
#js-product-list-top:empty { display: none; }
/* listing pages without a category header (Deals, New products, Best sales) */
#js-product-list-header { font-family: var(--ed-display); font-size: clamp(26px, 3vw, 36px); font-weight: 700; color: var(--ed-fg); text-transform: none; margin: 4px 0 16px; }

/* ---------- v1.2.3: CMS pages (About us, Terms, Secure payment) - body also has .page-cms, so scope to #content ---------- */
#cms #main .page-header h1 { font-family: var(--ed-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; text-transform: none; color: var(--ed-fg); margin: 6px 0 18px; }
#content.page-content.page-cms {
  background: var(--ed-surface) !important; color: var(--ed-muted); text-align: left;
  border: 1px solid var(--ed-border); border-radius: var(--ed-radius-lg); padding: clamp(22px, 4vw, 44px); box-shadow: none;
}
#content.page-cms > * { max-width: 780px; }
#content.page-cms h2 { font-family: var(--ed-display); font-size: 22px; font-weight: 700; color: var(--ed-fg); margin: 30px 0 10px; text-transform: none; }
#content.page-cms h2:first-child { margin-top: 0; }
#content.page-cms h3, #content.page-cms h4 { font-family: var(--ed-display); font-size: 17px; font-weight: 700; color: var(--ed-fg); margin: 22px 0 8px; text-transform: none; }
#content.page-cms p, #content.page-cms li { font-size: 15.5px; line-height: 1.7; color: var(--ed-muted); text-align: left; }
#content.page-cms ul { list-style: none; padding-left: 0; margin: 4px 0 14px; }
#content.page-cms ul li { list-style: none; position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--ed-border); }
#content.page-cms ul li:last-child { border-bottom: 0; }
#content.page-cms ul li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; border-radius: 2px; background: var(--ed-accent); }
#content.page-cms ol { padding-left: 22px; }
#content.page-cms strong, #content.page-cms b { color: var(--ed-fg); }
#content.page-cms a { color: var(--ed-accent) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#content.page-cms a:hover { color: var(--ed-accent-hover) !important; }

/* ---------- v1.2.7: invite-only store (prices hidden from visitors) ---------- */
.ed-card-signin {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 10px; border-radius: var(--ed-radius);
  background: var(--ed-fg); color: var(--ed-bg) !important; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none !important; line-height: 1.2;
}
.ed-card-signin:hover { background: var(--ed-accent); color: var(--ed-accent-ink) !important; }
.ed-signin-price {
  margin: 16px 0 14px; padding: 18px 20px; border: 1px solid var(--ed-border); border-radius: var(--ed-radius-lg); background: var(--ed-surface);
}
.ed-signin-price p { margin: 0 0 14px; color: var(--ed-muted); font-size: 15px; line-height: 1.55; }
.ed-signin-price .ed-eyebrow { margin-bottom: 6px; }
.ed-signin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ed-btn-outline { border: 1px solid var(--ed-border-strong); color: var(--ed-fg) !important; background: transparent; }
.ed-btn-outline:hover { border-color: var(--ed-accent); color: var(--ed-accent) !important; }
.ed-invite-note { border-radius: var(--ed-radius); }
.ed-invite-login-note { margin: 18px 0 0; text-align: center; color: var(--ed-muted); font-size: 14px; }
@media (max-width: 575px) { .ed-card-signin { height: 36px; font-size: 12px; } }
