/*
 EVELLMAX V4 / Site-wide staging design foundation (OpenCart 3 + Journal 3)
 Version 2026-09-30. Scoped to html.evx-v4-active; no logic, order, stock, ERP,
 customer pricing or payment changes. Tested syntactically, NOT browser-approved.
*/
html.evx-v4-active {
  --evx4-navy: #182a3a;
  --evx4-blue: #0a4786;
  --evx4-blue-dark: #07355f;
  --evx4-stone: #f7f6f3;
  --evx4-soft: #eef2f5;
  --evx4-white: #fff;
  --evx4-line: #e0e5e8;
  --evx4-muted: #566576;
  --evx4-max: 1420px;
  --evx4-radius: 14px;
  --evx4-shadow: 0 14px 45px rgba(17, 38, 53, .09);
  scroll-behavior: smooth;
}
html.evx-v4-active body,
html.evx-v4-active .site-wrapper {
  background: var(--evx4-white);
  color: var(--evx4-navy);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html.evx-v4-active .site-wrapper *,
html.evx-v4-active .mobile-container * { min-width: 0; }
html.evx-v4-active .site-wrapper img { max-width: 100%; }
html.evx-v4-active :is(a, button, select, input, textarea):focus-visible {
  outline: 3px solid #79b8ea !important;
  outline-offset: 3px;
}
html.evx-v4-active :is(.title, .name, .page-title, .module-title, .banner-text, .refine-name) {
  overflow-wrap: anywhere;
  hyphens: auto;
}
html.evx-v4-active .site-wrapper .container {
  width: min(var(--evx4-max), calc(100% - 64px));
  max-width: var(--evx4-max);
  padding-inline: 0;
}
html.evx-v4-active .site-wrapper a { transition: color .18s ease; }
/* Global header, navigation and search: retain original Journal interactions. */
html.evx-v4-active .site-wrapper > header {
  background: #fff;
  box-shadow: 0 6px 30px rgba(18, 40, 58, .08);
  border-bottom: 1px solid var(--evx4-line);
}
html.evx-v4-active .site-wrapper > header .top-bar { min-height: 32px; }
html.evx-v4-active .site-wrapper > header .mid-bar { min-height: 82px; }
html.evx-v4-active .site-wrapper > header #logo img {
  width: auto;
  max-width: 210px;
  max-height: 59px;
  object-fit: contain;
}
html.evx-v4-active .site-wrapper > header .desktop-main-menu-wrapper .j-menu > li > a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  padding-inline: clamp(9px, 1.2vw, 21px) !important;
  white-space: nowrap;
  overflow-wrap: normal;
}
html.evx-v4-active .site-wrapper > header .desktop-main-menu-wrapper .j-menu > li > a:hover,
html.evx-v4-active .site-wrapper > header .desktop-main-menu-wrapper .j-menu > li > a:focus-visible { color: var(--evx4-blue) !important; }
html.evx-v4-active .site-wrapper > header .desktop-main-menu-wrapper .dropdown-menu {
  background: #fff;
  border: 1px solid var(--evx4-line);
  box-shadow: 0 24px 52px rgba(15, 33, 51, .13);
  border-radius: 0 0 var(--evx4-radius) var(--evx4-radius);
}
html.evx-v4-active .site-wrapper > header :is(input[type='search'], input[name='search']) {
  border-radius: 10px;
  background: var(--evx4-stone);
  border-color: var(--evx4-line);
}
/* Global rhythm, page headings, breadcrumbs and shared controls. */
html.evx-v4-active .site-wrapper .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  padding-block: 17px;
  font-size: 12px;
  letter-spacing: .015em;
}
html.evx-v4-active .site-wrapper .page-title,
html.evx-v4-active .site-wrapper .module-title {
  color: var(--evx4-navy);
  letter-spacing: -.036em;
  line-height: 1.18;
  font-weight: 680;
}
html.evx-v4-active .site-wrapper .page-title { font-size: clamp(29px, 3vw, 46px); }
html.evx-v4-active .site-wrapper .module-title { font-size: clamp(24px, 2.4vw, 36px); }
html.evx-v4-active .site-wrapper :is(.btn-primary, .btn-cart, #button-cart, .btn-checkout) {
  border-radius: 8px;
  font-weight: 700;
  min-height: 46px;
  transition: transform .15s ease, background-color .15s ease;
}
html.evx-v4-active .site-wrapper .btn-primary { background: var(--evx4-blue); border-color: var(--evx4-blue); }
html.evx-v4-active .site-wrapper .btn-primary:hover { background: var(--evx4-blue-dark); border-color: var(--evx4-blue-dark); }
html.evx-v4-active .site-wrapper :is(.form-control, select, textarea) {
  border-radius: 8px;
  max-width: 100%;
  border-color: #d9e0e7;
}
/* Homepage: existing Journal modules remain LIVE; V4 only changes their presentation. */
html.evx-v4-active body.common-home .site-wrapper .module-title { margin-block: 12px 24px; }
html.evx-v4-active body.common-home .site-wrapper :is(.module-banners, .module-products, .module-manufacturers, .module-categories) {
  margin-block: clamp(24px, 3vw, 58px);
}
html.evx-v4-active body.common-home .site-wrapper .module-banners :is(.banner, .banner-item) {
  position: relative;
  overflow: hidden;
  border-radius: var(--evx4-radius);
}
html.evx-v4-active body.common-home .site-wrapper .module-banners :is(.banner, .banner-item) img {
  width: 100%;
  height: auto;
  transition: transform .6s ease;
}
html.evx-v4-active body.common-home .site-wrapper .module-banners :is(.banner, .banner-item):hover img { transform: scale(1.027); }
/* Categories and technical product listings. */
html.evx-v4-active .site-wrapper .category-description {
  border: 1px solid var(--evx4-line);
  background: var(--evx4-stone);
  border-radius: var(--evx4-radius);
  padding: clamp(20px, 3vw, 42px);
  margin-bottom: 34px;
}
html.evx-v4-active .site-wrapper .category-description .category-image {
  max-height: 360px;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
}
html.evx-v4-active .site-wrapper .refine-categories { margin-block: 24px 34px; }
html.evx-v4-active .site-wrapper .refine-categories .refine-item a {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--evx4-line);
  border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
html.evx-v4-active .site-wrapper .refine-categories .refine-item a:hover {
  border-color: #a5bdd4;
  box-shadow: var(--evx4-shadow);
}
html.evx-v4-active .site-wrapper .refine-categories .refine-item img { max-height: 190px; width: 100%; object-fit: contain; }
html.evx-v4-active .site-wrapper .refine-name { color: var(--evx4-navy); font-weight: 700; line-height: 1.4; }
html.evx-v4-active .site-wrapper .products-filter {
  background: var(--evx4-stone);
  border: 1px solid var(--evx4-line);
  border-radius: 11px;
  padding: 13px 18px;
  margin-block: 18px 24px;
}
html.evx-v4-active .site-wrapper .products-filter .select-group { flex-wrap: wrap; }
html.evx-v4-active .site-wrapper :is(.main-products, .module-products) .product-layout { display: flex; }
html.evx-v4-active .site-wrapper :is(.main-products, .module-products) .product-layout > .product-thumb {
  width: 100%;
  border: 1px solid var(--evx4-line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(24, 45, 65, .025);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
html.evx-v4-active .site-wrapper :is(.main-products, .module-products) .product-layout > .product-thumb:hover {
  border-color: #b9c9d9;
  box-shadow: var(--evx4-shadow);
  transform: translateY(-2px);
}
html.evx-v4-active .site-wrapper .product-thumb .image { background: #fff; }
html.evx-v4-active .site-wrapper .product-thumb .image img { object-fit: contain; max-width: 100%; }
html.evx-v4-active .site-wrapper .product-thumb .caption { padding: 15px; }
html.evx-v4-active .site-wrapper .product-thumb .name a { font-weight: 660; color: var(--evx4-navy); line-height: 1.45; }
html.evx-v4-active .site-wrapper .product-thumb .name a:hover { color: var(--evx4-blue); }
html.evx-v4-active .site-wrapper .product-thumb .price { font-weight: 750; color: var(--evx4-navy); }
html.evx-v4-active .site-wrapper .pagination-results { padding-block: 22px; }
/* Product detail: preserve image slider, option controls, stock and add-to-cart JS. */
html.evx-v4-active #product-product .product-left .product-image {
  border: 1px solid var(--evx4-line);
  border-radius: var(--evx4-radius);
  background: #fff;
  overflow: hidden;
}
html.evx-v4-active #product-product .product-image .swiper-slide img {
  width: 100%; height: auto; object-fit: contain;
}
html.evx-v4-active #product-product .product-right {
  padding-inline: clamp(0px, 2vw, 32px);
}
html.evx-v4-active #product-product .product-right .page-title { font-size: clamp(29px, 2.8vw, 44px); }
html.evx-v4-active #product-product :is(.product-stats, .product-price, .product-options) { margin-block: 15px; }
html.evx-v4-active #product-product :is(.product-options select, .product-options input) { max-width: 100%; }
html.evx-v4-active #product-product .product-blocks { overflow-wrap: anywhere; }
/* Search including empty-result treatment. Does not assert SKU search exists. */
html.evx-v4-active #product-search .search-form {
  background: var(--evx4-stone);
  border: 1px solid var(--evx4-line);
  border-radius: var(--evx4-radius);
  padding: clamp(17px, 2.6vw, 32px);
}
html.evx-v4-active #product-search #input-search { min-height: 50px; }
/* Cart, Journal quick checkout / native checkout: UI only; no script overrides. */
html.evx-v4-active #checkout-cart .cart-table,
html.evx-v4-active #checkout-cart .table-responsive,
html.evx-v4-active #checkout-checkout .panel-default,
html.evx-v4-active .quick-checkout-wrapper .section-body,
html.evx-v4-active #journal3-checkout .section-body {
  border: 1px solid var(--evx4-line);
  border-radius: 12px;
  background: #fff;
}
html.evx-v4-active #checkout-cart .table > thead > tr > th {
  background: var(--evx4-stone);
  color: var(--evx4-navy);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .055em;
}
html.evx-v4-active #checkout-cart .table td,
html.evx-v4-active #checkout-cart .table th { padding: 14px; vertical-align: middle; }
html.evx-v4-active #checkout-checkout .panel-heading {
  background: var(--evx4-stone);
  border-radius: 11px 11px 0 0;
  padding: 16px 20px;
}
html.evx-v4-active #checkout-checkout .panel-body { padding: clamp(15px, 2vw, 28px); }
html.evx-v4-active :is(#checkout-cart, #checkout-checkout, #journal3-checkout) :is(.form-control, select) { min-height: 43px; }
/* Account, login, information and contact templates. */
html.evx-v4-active #account-account :is(.my-account, .my-orders, .my-cards, .my-affiliates, .my-newsletter),
html.evx-v4-active #account-login .well,
html.evx-v4-active #information-contact .our-location,
html.evx-v4-active #information-information #content > .content {
  background: #fff;
  border: 1px solid var(--evx4-line);
  border-radius: 12px;
  padding: clamp(18px, 2vw, 29px);
  margin-bottom: 22px;
  box-shadow: 0 6px 18px rgba(23, 40, 55, .035);
}
html.evx-v4-active #account-account .account-list li { padding-block: 8px; }
html.evx-v4-active #information-contact textarea { min-height: 145px; }
/* Global footer / legal, same across all OpenCart routes. */
html.evx-v4-active .site-wrapper > footer {
  background: var(--evx4-navy);
  color: #edf2f5;
  padding-top: 28px;
}
html.evx-v4-active .site-wrapper > footer :is(h2, h3, h4, .title) { color: #fff; }
html.evx-v4-active .site-wrapper > footer a { color: #d5e1eb; }
html.evx-v4-active .site-wrapper > footer a:hover { color: #fff; }
/* Mobile: don't interfere with native menu overlays, product swiper or payment frames. */
@media (max-width: 1024px) {
  html.evx-v4-active .site-wrapper .container { width: calc(100% - 38px); }
  html.evx-v4-active .site-wrapper > header .desktop-main-menu-wrapper .j-menu > li > a { padding-inline: 8px !important; }
  html.evx-v4-active #product-product .product-right { padding-inline: 0; }
}
@media (max-width: 767px) {
  html.evx-v4-active .site-wrapper .container { width: calc(100% - 28px); }
  html.evx-v4-active .site-wrapper .breadcrumb { padding-block: 11px; }
  html.evx-v4-active .site-wrapper .page-title { font-size: clamp(25px, 6.2vw, 33px); }
  html.evx-v4-active .site-wrapper .module-title { font-size: clamp(24px, 5.6vw, 30px); }
  html.evx-v4-active .site-wrapper .category-description { padding: 17px; }
  html.evx-v4-active .site-wrapper .product-thumb .caption { padding: 11px; }
  html.evx-v4-active .site-wrapper .products-filter { padding: 11px; }
  html.evx-v4-active .site-wrapper #checkout-cart .table-responsive { overflow-x: auto; }
  html.evx-v4-active .mobile-container :is(.j-menu a, .j-menu span) { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html.evx-v4-active,
  html.evx-v4-active .site-wrapper *,
  html.evx-v4-active .site-wrapper *::before,
  html.evx-v4-active .site-wrapper *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
