/* ==========================================================================
   THEME BASE - comproorosiracusa.it
   Struttura e componenti comuni ai temi aurum / fides / terra.
   I colori e i caratteri arrivano da theme.css (variabili --hx-*).
   Caricato dopo stylesheet.css, moduli e responsive.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */
*, *:before, *:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  background: var(--hx-bg);
  color: var(--hx-ink);
  font-family: var(--hx-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, td, th, input, textarea, select, a {
  font-size: 15px;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a, a:visited, a b {
  color: var(--hx-accent);
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  color: var(--hx-accent-2);
  text-decoration: none;
}

p {
  margin: 0 0 16px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--hx-ink);
  font-family: var(--hx-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 14px;
}

h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 21px; }
h4 { font-size: 17px; }

small { font-size: 13px; }

hr {
  border: 0;
  border-top: 1px solid var(--hx-line);
  margin: 18px 0;
}

::selection {
  background: var(--hx-accent);
  color: var(--hx-on-accent);
}

/* --------------------------------------------------------------------------
   2. Layout OpenCart
   -------------------------------------------------------------------------- */
#container {
  width: 100%;
  margin: 0 auto;
  text-align: left;
  background: var(--hx-bg);
}

#contentwrapper {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 10px;
  display: block;
}

#contentwrapper:after {
  content: "";
  display: block;
  clear: both;
}

#contentwrapper #content {
  min-height: 400px;
  margin-bottom: 30px;
}

#column-left {
  float: left;
  width: 240px;
}

#column-right {
  float: right;
  width: 240px;
}

#contentwrapper #column-left + #content {
  margin-left: 270px;
}

#contentwrapper #column-right + #content {
  margin-right: 270px;
}

#contentwrapper #column-left + #column-right + #content {
  margin-left: 270px;
  margin-right: 270px;
}

#content img,
.category-info img,
.box-content img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   3. Topbar
   -------------------------------------------------------------------------- */
.hx-topbar {
  background: var(--hx-topbar-bg);
  color: var(--hx-topbar-ink);
  font-size: 12.5px;
  letter-spacing: .02em;
  border-bottom: 1px solid var(--hx-topbar-line);
}

.hx-topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 38px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 24px;
}

.hx-topbar-item {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.hx-topbar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--hx-accent);
  flex: 0 0 auto;
}

.hx-topbar-right {
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
#header {
  position: relative;
  z-index: 99;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: var(--hx-header-bg);
  border-bottom: 1px solid var(--hx-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hx-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 26px;
  min-height: 92px;
}

#header #logo {
  position: static;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  line-height: 0;
}

#header #logo img {
  max-width: 188px;
  height: auto;
  display: block;
}

#logo {
  position: static;
}

#header .hx-header-tools {
  margin-left: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

#header #welcome {
  position: static;
  display: none;
  font-size: 12px;
  color: var(--hx-muted);
  text-align: right;
  line-height: 1.4;
}

#header #welcome a {
  color: var(--hx-accent);
}

#header #search {
  position: relative;
  top: auto;
  right: auto;
  width: 280px;
  min-width: 0;
  margin: 0;
  float: none;
}

#header #search input {
  width: 100%;
  height: 44px;
  padding: 0 46px 0 18px;
  margin: 0;
  color: var(--hx-ink);
  background: var(--hx-surface-2);
  border: 1px solid var(--hx-line);
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  -webkit-transition: border-color .2s ease, background .2s ease;
  transition: border-color .2s ease, background .2s ease;
}

#header #search input:focus {
  border-color: var(--hx-accent);
  background: var(--hx-surface);
}

#header #search input::-webkit-input-placeholder { color: var(--hx-muted); }
#header #search input::-moz-placeholder { color: var(--hx-muted); }
#header #search input:-ms-input-placeholder { color: var(--hx-muted); }

#header .button-search {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  padding: 0;
  background: transparent var(--hx-search-icon) no-repeat center center;
  background-size: 16px 16px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: .55;
  -webkit-transition: opacity .2s ease, background-color .2s ease;
  transition: opacity .2s ease, background-color .2s ease;
}

#header .button-search:hover {
  opacity: 1;
  background-color: var(--hx-accent);
}

/* Link account / lista desideri */
#header .links {
  position: static;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  float: none;
}

#header .links a {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  float: none;
  margin: 0;
  padding: 0 10px;
  height: 40px;
  border: 0;
  color: var(--hx-muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  -webkit-transition: color .2s ease, background .2s ease;
  transition: color .2s ease, background .2s ease;
}

#header .links a:hover {
  color: var(--hx-accent);
  background: var(--hx-surface-2);
}

#header .links a + a {
  border-left: 0;
  margin-left: 0;
}

/* Nasconde i link duplicati: home, carrello, cassa (restano nel footer) */
#header .links a[href*="common/home"],
#header .links a[href*="checkout/cart"],
#header .links a[href*="checkout/checkout"] {
  display: none;
}

/* --------------------------------------------------------------------------
   5. Carrello (modulo)
   -------------------------------------------------------------------------- */
#header #cart {
  position: relative;
  top: auto;
  right: auto;
  min-width: 0;
  margin: 0;
  z-index: 9;
}

#header #cart .heading {
  float: none;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 0;
  padding: 0 16px 0 42px;
  height: 44px;
  background: var(--hx-accent) var(--hx-cart-icon) no-repeat 16px 50%;
  background-size: 18px 18px;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

#header #cart .heading a {
  color: var(--hx-on-accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

#header #cart .heading a span {
  background: transparent;
  padding: 0;
  color: inherit;
}

#header #cart .heading:hover {
  -webkit-filter: brightness(1.08);
  filter: brightness(1.08);
}

#header #cart .content {
  clear: both;
  display: none;
  position: absolute;
  right: 0;
  top: -webkit-calc(100% + 12px);
  top: calc(100% + 12px);
  width: 330px;
  max-width: -webkit-calc(100vw - 32px);
  max-width: calc(100vw - 32px);
  min-height: 0;
  padding: 14px;
  background: var(--hx-surface);
  color: var(--hx-ink);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  -webkit-box-shadow: 0 22px 50px rgba(0, 0, 0, .22);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .22);
  text-align: left;
}

#header #cart.active .content {
  display: block;
}

#header #cart .mini-cart-info table {
  width: 100%;
  border-collapse: collapse;
}

#header #cart .mini-cart-info td {
  padding: 7px 4px;
  border-bottom: 1px solid var(--hx-line);
  vertical-align: middle;
  font-size: 13px;
  color: var(--hx-ink);
}

#header #cart .mini-cart-info .image img {
  width: 44px;
  height: 44px;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 8px;
}

#header #cart .mini-cart-info .name a {
  color: var(--hx-ink);
  font-weight: 600;
}

#header #cart .mini-cart-info .quantity,
#header #cart .mini-cart-info .total {
  text-align: right;
  white-space: nowrap;
}

#header #cart .mini-cart-info .remove img {
  cursor: pointer;
  opacity: .55;
}

#header #cart .mini-cart-info .remove img:hover {
  opacity: 1;
}

#header #cart .checkout {
  margin-top: 12px;
  text-align: right;
  color: var(--hx-muted);
  font-size: 13px;
}

#header #cart .checkout a {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  background: var(--hx-accent);
  color: var(--hx-on-accent);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

#header #cart .empty {
  padding: 12px 4px;
  color: var(--hx-muted);
  text-align: center;
}

/* Lingua / valuta */
#header #language,
#header #currency {
  position: static;
  width: auto;
  margin: 0;
  color: var(--hx-muted);
  line-height: 1.4;
  font-size: 12px;
}

#header #currency a {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--hx-line);
  border-radius: 999px;
  color: var(--hx-muted);
  text-decoration: none;
}

#header #currency a:hover {
  border-color: var(--hx-accent);
  color: var(--hx-accent);
}

/* --------------------------------------------------------------------------
   6. Navigazione
   -------------------------------------------------------------------------- */
#menu-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  background: var(--hx-surface-2);
  border: 1px solid var(--hx-line);
  border-radius: 12px;
  cursor: pointer;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
}

#menu-toggle .menu-toggle-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--hx-ink);
  border-radius: 2px;
  -webkit-transition: background .2s ease;
  transition: background .2s ease;
}

#menu-toggle .menu-toggle-icon:before,
#menu-toggle .menu-toggle-icon:after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--hx-ink);
  border-radius: 2px;
  -webkit-transition: -webkit-transform .25s ease, top .25s ease;
  transition: transform .25s ease, top .25s ease;
}

#menu-toggle .menu-toggle-icon:before { top: -6px; }
#menu-toggle .menu-toggle-icon:after { top: 6px; }

#menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: transparent; }
#menu-toggle[aria-expanded="true"] .menu-toggle-icon:before {
  top: 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
#menu-toggle[aria-expanded="true"] .menu-toggle-icon:after {
  top: 0;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#menu-toggle .menu-toggle-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#menu {
  position: relative;
  z-index: 90;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: var(--hx-nav-bg);
  border-bottom: 1px solid var(--hx-nav-line);
}

#menu ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 24px;
  max-width: 1180px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

#menu > ul > li {
  position: relative;
  float: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

#menu > ul > li > a {
  position: relative;
  display: block;
  padding: 17px 20px;
  color: var(--hx-nav-ink);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  -webkit-transition: color .2s ease;
  transition: color .2s ease;
}

#menu > ul > li > a:after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 9px;
  height: 2px;
  background: var(--hx-accent-2);
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: center;
  transform-origin: center;
  -webkit-transition: -webkit-transform .22s ease;
  transition: transform .22s ease;
}

#menu > ul > li:hover > a,
#menu > ul > li > a:hover,
#menu > ul > li.active > a {
  color: var(--hx-nav-ink-hover);
}

#menu > ul > li:hover > a:after,
#menu > ul > li > a:hover:after {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

/* Sottomenu desktop */
#menu > ul > li > div {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  min-width: 210px;
  margin: 0;
  padding: 10px;
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: 12px;
  -webkit-box-shadow: 0 20px 44px rgba(0, 0, 0, .22);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .22);
  text-align: left;
}

#menu > ul > li:hover > div {
  display: block;
}

#menu > ul > li > div > ul {
  display: block;
  margin: 0;
  padding: 0;
  max-width: none;
}

#menu > ul > li > div > ul > li {
  display: block;
  float: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

#menu > ul > li > div > ul > li > a {
  display: block;
  padding: 8px 12px;
  color: var(--hx-ink);
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 7px;
  text-decoration: none;
}

#menu > ul > li > div > ul > li > a:hover {
  background: var(--hx-surface-2);
  color: var(--hx-accent);
}

.submenu-toggle {
  display: none;
}

/* --------------------------------------------------------------------------
   7. Tipografia di sezione / componenti home
   -------------------------------------------------------------------------- */
.hx-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.hx-main {
  display: block;
}

.hx-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--hx-accent);
  font-family: var(--hx-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hx-section-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 30px;
}

.hx-section-head h2 {
  margin: 0;
  font-size: 32px;
}

.hx-link {
  color: var(--hx-accent);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.hx-link:hover {
  color: var(--hx-accent-2);
}

/* Toggle ricerca (solo mobile) */
.hx-search-btn {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--hx-surface-2);
  border: 1px solid var(--hx-line);
  border-radius: 10px;
  color: var(--hx-ink);
  cursor: pointer;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.hx-search-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Bottoni */
.hx-btn,
.button,
input.button,
a.button {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  margin: 0;
  background: var(--hx-accent);
  color: var(--hx-on-accent) !important;
  border: 1px solid var(--hx-accent);
  border-radius: 999px;
  font-family: var(--hx-sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  -webkit-transition: background .2s ease, color .2s ease, border-color .2s ease, -webkit-transform .2s ease;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.hx-btn:hover,
.button:hover,
input.button:hover,
a.button:hover {
  background: var(--hx-accent-2);
  border-color: var(--hx-accent-2);
  color: var(--hx-on-accent-2) !important;
  text-decoration: none;
}

.hx-btn-ghost {
  background: transparent;
  color: var(--hx-ink) !important;
  border-color: var(--hx-line-strong);
}

.hx-btn-ghost:hover {
  background: var(--hx-surface-2);
  border-color: var(--hx-accent);
  color: var(--hx-accent) !important;
}

.hx-btn-outline {
  background: transparent;
  color: var(--hx-accent) !important;
  border-color: var(--hx-accent);
}

.hx-btn-outline:hover {
  background: var(--hx-accent);
  color: var(--hx-on-accent) !important;
}

/* Campi form */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
  background: var(--hx-surface);
  color: var(--hx-ink);
  border: 1px solid var(--hx-line);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--hx-sans);
  font-size: 14px;
  outline: none;
  -webkit-transition: border-color .2s ease, box-shadow .2s ease;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: var(--hx-accent);
  box-shadow: 0 0 0 3px var(--hx-focus);
}

select {
  padding-right: 36px;
}

label {
  color: var(--hx-ink);
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   8. Home: hero
   -------------------------------------------------------------------------- */
.hx-hero {
  position: relative;
  overflow: hidden;
  background: var(--hx-hero-bg);
  color: var(--hx-hero-ink);
  border-bottom: 1px solid var(--hx-line);
}

.hx-hero:before {
  content: "";
  position: absolute;
  top: -160px;
  right: -140px;
  width: 520px;
  height: 520px;
  background: -webkit-radial-gradient(circle, var(--hx-hero-glow) 0%, transparent 68%);
  background: radial-gradient(circle, var(--hx-hero-glow) 0%, transparent 68%);
  pointer-events: none;
}

.hx-hero:after {
  content: "";
  position: absolute;
  left: -180px;
  bottom: -220px;
  width: 480px;
  height: 480px;
  background: -webkit-radial-gradient(circle, var(--hx-hero-glow-2) 0%, transparent 70%);
  background: radial-gradient(circle, var(--hx-hero-glow-2) 0%, transparent 70%);
  pointer-events: none;
}

.hx-hero-inner {
  position: relative;
  z-index: 2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 50px;
  padding-top: 66px;
  padding-bottom: 72px;
}

.hx-hero-copy {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 52%;
  flex: 1 1 52%;
  min-width: 0;
}

.hx-hero-copy h1 {
  margin: 0 0 20px;
  color: var(--hx-hero-ink);
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -.01em;
}

.hx-hero-copy h1 em {
  color: var(--hx-accent-2);
  font-style: italic;
}

.hx-hero-copy p {
  max-width: 500px;
  margin: 0 0 28px;
  color: var(--hx-hero-muted);
  font-size: 16px;
  line-height: 1.7;
}

.hx-hero-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 12px;
}

.hx-hero-rating {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--hx-hero-muted);
  font-size: 13px;
}

.hx-hero-rating .stars {
  color: var(--hx-accent-2);
  letter-spacing: 2px;
  font-size: 15px;
}

.hx-hero-rating strong {
  color: var(--hx-hero-ink);
}

.hx-hero-visual {
  position: relative;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 44%;
  flex: 1 1 44%;
  min-width: 0;
}

.hx-hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--hx-hero-frame-line);
  background: var(--hx-surface);
  -webkit-box-shadow: var(--hx-hero-shadow);
  box-shadow: var(--hx-hero-shadow);
}

.hx-hero-frame img {
  display: block;
  width: 100%;
  height: 380px;
  -o-object-fit: cover;
  object-fit: cover;
}

.hx-float-card {
  position: absolute;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--hx-float-bg);
  color: var(--hx-float-ink);
  border: 1px solid var(--hx-line);
  border-radius: 12px;
  -webkit-box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
  font-size: 12px;
  line-height: 1.35;
}

.hx-float-card b {
  display: block;
  font-size: 13px;
}

.hx-float-card small {
  color: var(--hx-muted);
  font-size: 11.5px;
}

.hx-float-card--top {
  top: 22px;
  left: -26px;
}

.hx-float-card--bottom {
  right: -18px;
  bottom: 26px;
}

.hx-float-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hx-accent-2);
  box-shadow: 0 0 0 4px var(--hx-focus);
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   9. Home: striscia di fiducia
   -------------------------------------------------------------------------- */
.hx-trust {
  background: var(--hx-surface);
  border-bottom: 1px solid var(--hx-line);
}

.hx-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.hx-trust-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 14px;
  padding: 24px 22px;
  border-left: 1px solid var(--hx-line);
}

.hx-trust-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.hx-trust-item svg {
  width: 26px;
  height: 26px;
  fill: var(--hx-accent);
  flex: 0 0 auto;
}

.hx-trust-item b {
  display: block;
  color: var(--hx-ink);
  font-size: 13.5px;
}

.hx-trust-item small {
  display: block;
  color: var(--hx-muted);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   10. Home: categorie
   -------------------------------------------------------------------------- */
.hx-section {
  padding: 68px 0;
}

.hx-section--tight {
  padding-top: 54px;
}

.hx-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.hx-cat {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 172px;
  padding: 20px;
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  color: var(--hx-ink);
  text-decoration: none;
  -webkit-transition: border-color .25s ease, -webkit-transform .25s ease, box-shadow .25s ease;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.hx-cat:hover {
  border-color: var(--hx-accent);
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
  -webkit-box-shadow: 0 18px 36px rgba(0, 0, 0, .12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .12);
  color: var(--hx-ink);
}

.hx-cat-img {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  opacity: .9;
}

.hx-cat-img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.hx-cat-ico {
  display: block;
  margin-bottom: 34px;
  color: var(--hx-accent);
  font-size: 26px;
  line-height: 1;
}

.hx-cat b {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 3px;
  color: var(--hx-ink);
  font-family: var(--hx-serif);
  font-size: 19px;
}

.hx-cat small {
  position: relative;
  z-index: 2;
  display: block;
  color: var(--hx-muted);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   11. Moduli in home + prodotti (yaslider)
   -------------------------------------------------------------------------- */
.hx-modules {
  display: block;
}

/* I box HTML (es. quotazione) restano allineati al contenitore */
.hx-modules > .box {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 8px;
}

/* Yaslider trasformato in griglia di schede */
.hx-products {
  padding: 60px 0;
  background: var(--hx-surface);
  border-top: 1px solid var(--hx-line);
  border-bottom: 1px solid var(--hx-line);
}

.yaslider {
  position: relative;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0;
  z-index: 1;
  overflow: visible;
}

.yaslider .ys-heading,
.ys-heading {
  display: none;
}

.yaslider-box {
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.yaslider .ys-slide {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  margin: 0;
  padding: 0 0 18px;
  background: var(--hx-card-bg);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  overflow: hidden;
  float: none;
  -webkit-transition: border-color .25s ease, -webkit-transform .25s ease, box-shadow .25s ease;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.yaslider .ys-slide:hover {
  border-color: var(--hx-accent);
  -webkit-transform: translateY(-5px);
  transform: translateY(-5px);
  -webkit-box-shadow: 0 20px 42px rgba(0, 0, 0, .14);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .14);
}

.yaslider .ys-p-image {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0;
  background: var(--hx-product-media);
  overflow: hidden;
}

.yaslider .ys-p-image a {
  display: block;
}

.yaslider .ys-p-image img {
  display: block;
  width: 100% !important;
  height: 240px !important;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-transition: -webkit-transform .4s ease;
  transition: transform .4s ease;
}

.yaslider .ys-slide:hover .ys-p-image img {
  -webkit-transform: scale(1.045);
  transform: scale(1.045);
}

.yaslider .ys-p-name,
.yaslider .ys-p-price,
.yaslider .ys-p-rating,
.yaslider .ys-p-buy,
.yaslider .ys-p-details {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 16px;
  text-align: left;
  background: none !important;
  border: 0;
}

.yaslider .ys-p-name {
  padding-top: 16px;
  min-height: 48px;
}

.yaslider .ys-p-name a {
  display: block;
  color: var(--hx-ink);
  font-family: var(--hx-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.yaslider .ys-p-name a:hover {
  color: var(--hx-accent);
}

.yaslider .ys-p-price {
  padding-top: 6px;
  color: var(--hx-accent);
  font-size: 16px;
  font-weight: 700;
}

.yaslider .ys-p-price-old {
  color: var(--hx-muted);
  font-size: 13px;
  font-weight: 400;
  text-decoration: line-through;
}

.yaslider .ys-p-price-new {
  color: var(--hx-accent);
}

.yaslider .ys-p-rating {
  padding-top: 6px;
}

.yaslider .ys-p-rating img {
  width: auto;
  height: 13px;
}

.yaslider .ys-p-buy,
.yaslider .ys-p-details {
  padding-top: 12px;
}

.yaslider .ys-p-buy a,
.yaslider .ys-p-details a {
  display: block;
  width: 100%;
  height: auto;
  padding: 10px 10px;
  background: var(--hx-accent);
  color: var(--hx-on-accent);
  border: 1px solid var(--hx-accent);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  -webkit-transition: background .2s ease, color .2s ease;
  transition: background .2s ease, color .2s ease;
}

.yaslider .ys-p-details {
  padding-top: 8px;
}

.yaslider .ys-p-details a {
  background: transparent;
  color: var(--hx-accent);
  border-color: var(--hx-accent);
}

.yaslider .ys-p-buy a:hover,
.yaslider .ys-p-details a:hover {
  background: var(--hx-accent-2);
  border-color: var(--hx-accent-2);
  color: var(--hx-on-accent-2);
}

.yaslider .ys-larr,
.yaslider .ys-rarr,
.yaslider .ys-badge {
  display: none !important;
}

/* --------------------------------------------------------------------------
   12. Modulo quotazione (HTML con stili inline)
   -------------------------------------------------------------------------- */
.hx-modules > .box,
.hx-modules .box {
  margin: 0 auto;
}

.box {
  margin-bottom: 24px;
  background: transparent;
}

.box-heading,
.box .box-heading {
  margin: 0 0 16px;
  padding: 0 0 10px;
  background: none;
  border-bottom: 1px solid var(--hx-line);
  color: var(--hx-ink);
  font-family: var(--hx-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: none;
  text-transform: none;
}

.box-content,
.box .box-content {
  background: transparent;
  padding: 0;
  color: var(--hx-ink);
}

/* Titolo vuoto del modulo quotazione */
.hx-modules > .box > .box-heading {
  display: none;
}

/* Contenitore del modulo quotazione */
#content .box-content > div[style*="height:190px"],
.hx-modules .box-content > div[style*="height:190px"] {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 18px;
  height: auto !important;
  padding: 0;
}

#content .box-content > div[style*="height:190px"] > h2,
.hx-modules .box-content > div[style*="height:190px"] > h2 {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  margin: 0;
  color: var(--hx-ink);
  font-family: var(--hx-serif);
  font-size: 30px;
}

#content .box-content > div[style*="height:190px"] > hr,
.hx-modules .box-content > div[style*="height:190px"] > hr {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  margin: 0 0 6px;
  border-top: 1px solid var(--hx-line);
}

#content .box-content > div[style*="height:190px"] > div,
.hx-modules .box-content > div[style*="height:190px"] > div {
  float: none !important;
  width: auto !important;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 300px;
  flex: 1 1 300px;
  min-width: 0;
  padding-right: 0 !important;
}

/* Schede interne della quotazione */
#content .box-content > div[style*="height:190px"] > div > div,
.hx-modules .box-content > div[style*="height:190px"] > div > div {
  height: auto !important;
  min-height: 178px;
  padding: 20px !important;
  background: var(--hx-surface-2) !important;
  border: 1px solid var(--hx-line) !important;
  border-radius: var(--hx-radius) !important;
}

#content .box-content > div[style*="height:190px"] h2,
#content .box-content > div[style*="height:190px"] h3,
.hx-modules .box-content > div[style*="height:190px"] h2,
.hx-modules .box-content > div[style*="height:190px"] h3 {
  color: var(--hx-ink) !important;
  font-family: var(--hx-serif);
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 6px !important;
  padding: 0 !important;
}

#content .box-content > div[style*="height:190px"] h2[style*="db0909"],
.hx-modules .box-content > div[style*="height:190px"] h2[style*="db0909"] {
  color: var(--hx-accent) !important;
}

#content .box-content > div[style*="height:190px"] p,
#content .box-content > div[style*="height:190px"] div,
.hx-modules .box-content > div[style*="height:190px"] p,
.hx-modules .box-content > div[style*="height:190px"] div {
  color: var(--hx-ink);
}

#content .box-content > div[style*="height:190px"] p[style*="75px"],
.hx-modules .box-content > div[style*="height:190px"] p[style*="75px"],
#content .box-content > div[style*="height:190px"] div[style*="75px"],
.hx-modules .box-content > div[style*="height:190px"] div[style*="75px"] {
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

#content .box-content > div[style*="height:190px"] form,
.hx-modules .box-content > div[style*="height:190px"] form {
  display: block;
}

#content .box-content > div[style*="height:190px"] form h1,
.hx-modules .box-content > div[style*="height:190px"] form h1 {
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: var(--hx-accent) !important;
  font-family: var(--hx-serif);
  font-size: 17px !important;
  font-weight: 600;
}

#content .box-content > div[style*="height:190px"] input[type="text"],
#content .box-content > div[style*="height:190px"] input[type="submit"],
#content .box-content > div[style*="height:190px"] select,
.hx-modules .box-content > div[style*="height:190px"] input[type="text"],
.hx-modules .box-content > div[style*="height:190px"] input[type="submit"],
.hx-modules .box-content > div[style*="height:190px"] select {
  display: inline-block;
  width: auto !important;
  margin: 3px 4px 3px 0 !important;
  padding: 7px 9px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  vertical-align: middle !important;
  background: var(--hx-surface) !important;
  color: var(--hx-ink) !important;
  border: 1px solid var(--hx-line) !important;
  border-radius: 8px !important;
}

#content .box-content > div[style*="height:190px"] input[type="submit"],
.hx-modules .box-content > div[style*="height:190px"] input[type="submit"] {
  background: var(--hx-accent) !important;
  color: var(--hx-on-accent) !important;
  border-color: var(--hx-accent) !important;
  font-weight: 700;
  cursor: pointer;
}

#content .box-content > div[style*="height:190px"] iframe,
.hx-modules .box-content > div[style*="height:190px"] iframe {
  display: block;
  /* Il contenuto di valutazione.php e' largo 260px: l'iframe deve
     combaciare, altrimenti la quotazione appare spostata a sinistra
     dentro un riquadro bianco piu' largo. */
  width: 260px !important;
  max-width: 100% !important;
  height: 165px !important;
  margin: 0 auto !important;
  background: var(--hx-surface) !important;
  border: 0 !important;
  border-radius: 10px !important;
}

/* --------------------------------------------------------------------------
   13. Carosello marchi
   -------------------------------------------------------------------------- */
#carousel0,
.jcarousel-skin-opencart {
  position: relative;
}

#carousel0 {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px 34px;
}

.jcarousel-skin-opencart .jcarousel-container {
  background: none;
  border: 0;
  margin: 0;
}

.jcarousel-skin-opencart .jcarousel-clip-horizontal {
  width: 100%;
}

.jcarousel-skin-opencart .jcarousel-item {
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: 14px;
  margin: 0 6px;
  padding: 10px;
  -webkit-transition: border-color .2s ease, background .2s ease;
  transition: border-color .2s ease, background .2s ease;
}

.jcarousel-skin-opencart .jcarousel-item:hover {
  border-color: var(--hx-accent);
}

.jcarousel-skin-opencart .jcarousel-item img {
  max-width: 100%;
  height: auto;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  opacity: .62;
  -webkit-transition: opacity .2s ease, -webkit-filter .2s ease;
  transition: opacity .2s ease, filter .2s ease;
}

.jcarousel-skin-opencart .jcarousel-item:hover img {
  -webkit-filter: grayscale(0);
  filter: grayscale(0);
  opacity: 1;
}

.jcarousel-skin-opencart .jcarousel-next-horizontal,
.jcarousel-skin-opencart .jcarousel-prev-horizontal {
  top: 50%;
  margin-top: -18px;
  width: 36px;
  height: 36px;
  background-color: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   14. Slideshow (altre pagine)
   -------------------------------------------------------------------------- */
.slideshow {
  position: relative;
  margin: 0 0 24px;
  border-radius: var(--hx-radius);
  overflow: hidden;
}

.slideshow .nivoSlider {
  width: 100% !important;
  height: auto !important;
  background: var(--hx-surface-2);
  border-radius: var(--hx-radius);
  overflow: hidden;
}

.slideshow .nivoSlider img {
  max-width: 100%;
  height: auto;
}

/* In home lo slideshow storico è sostituito dall'hero */
body.hx-home .hx-modules .slideshow {
  display: none;
}

/* --------------------------------------------------------------------------
   15. Home: banner e negozi
   -------------------------------------------------------------------------- */
.hx-banner {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
}

.hx-banner-card {
  position: relative;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  min-height: 280px;
  padding: 46px;
  background: var(--hx-banner-bg);
  border-radius: 22px;
  color: var(--hx-banner-ink);
}

.hx-banner-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: -webkit-linear-gradient(90deg, var(--hx-banner-overlay) 0%, transparent 76%);
  background: linear-gradient(90deg, var(--hx-banner-overlay) 0%, transparent 76%);
  z-index: 1;
}

.hx-banner-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.hx-banner-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.hx-banner-copy h2 {
  margin: 0 0 18px;
  color: var(--hx-banner-ink);
  font-size: 32px;
}

.hx-banner-copy .hx-eyebrow {
  color: var(--hx-accent-2);
}

.hx-stores {
  padding: 76px 0;
}

.hx-stores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.hx-stores-copy h2 {
  font-size: 34px;
}

.hx-stores-copy p {
  max-width: 440px;
  color: var(--hx-muted);
}

.hx-store-card {
  padding: 28px;
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: 20px;
  -webkit-box-shadow: var(--hx-card-shadow);
  box-shadow: var(--hx-card-shadow);
}

.hx-store-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hx-line);
  font-size: 14px;
}

.hx-store-row:last-child {
  border-bottom: 0;
}

.hx-store-row span {
  color: var(--hx-muted);
  white-space: nowrap;
}

.hx-store-row b {
  color: var(--hx-ink);
  text-align: right;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   16. Pagine interne: breadcrumb, titoli, box
   -------------------------------------------------------------------------- */
.breadcrumb {
  margin: 0 0 22px;
  padding: 0;
  color: var(--hx-muted);
  font-size: 12.5px;
  background: none;
  border: 0;
}

.breadcrumb a {
  color: var(--hx-muted);
}

.breadcrumb a:hover {
  color: var(--hx-accent);
}

#content h1 {
  margin: 0 0 22px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--hx-line);
  color: var(--hx-ink);
  font-size: 36px;
  font-weight: 600;
}

.category-info {
  margin-bottom: 26px;
  padding: 22px;
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
}

.category-info .image {
  float: left;
  margin: 0 22px 10px 0;
}

.category-info .image img {
  border-radius: 12px;
  max-width: 180px;
}

/* Box colonne */
#column-left .box,
#column-right .box {
  margin-bottom: 20px;
  padding: 18px;
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
}

#column-left .box-heading,
#column-right .box-heading {
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--hx-line);
  font-size: 16px;
}

#column-left .box-content ul,
#column-right .box-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#column-left .box-content ul li,
#column-right .box-content ul li {
  padding: 7px 0;
  border-bottom: 1px solid var(--hx-line);
}

#column-left .box-content ul li:last-child,
#column-right .box-content ul li:last-child {
  border-bottom: 0;
}

#column-left .box-content ul li a,
#column-right .box-content ul li a {
  color: var(--hx-ink);
  text-decoration: none;
}

#column-left .box-content ul li a:hover,
#column-right .box-content ul li a:hover {
  color: var(--hx-accent);
}

/* Filtri elenco prodotti */
.product-filter {
  margin: 0 0 18px;
  padding: 12px 16px;
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: 12px;
  color: var(--hx-muted);
  font-size: 13px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 14px;
}

.product-filter b {
  color: var(--hx-ink);
  font-weight: 600;
}

.product-filter select {
  padding: 7px 30px 7px 10px;
  font-size: 13px;
}

.product-filter .display img {
  opacity: .7;
  cursor: pointer;
}

.product-compare {
  margin: 0 0 16px;
  font-size: 13px;
}

/* Elenco / griglia prodotti */
.product-list > div,
.product-grid > div {
  position: relative;
  background: var(--hx-card-bg);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  overflow: hidden;
  text-align: left;
  -webkit-transition: border-color .25s ease, -webkit-transform .25s ease, box-shadow .25s ease;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.product-list > div:hover,
.product-grid > div:hover {
  border-color: var(--hx-accent);
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
  -webkit-box-shadow: 0 18px 36px rgba(0, 0, 0, .12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .12);
}

.product-list > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
}

.product-list .image {
  float: none;
  width: 150px;
  flex: 0 0 auto;
  margin: 0 22px 0 0;
}

.product-list .image img {
  border-radius: 10px;
  width: 100%;
  height: 130px;
  -o-object-fit: cover;
  object-fit: cover;
  padding: 0;
}

.product-list .name {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 240px;
  flex: 1 1 240px;
  min-width: 0;
}

.product-list .name a {
  color: var(--hx-ink);
  font-family: var(--hx-serif);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.product-list .name a:hover {
  color: var(--hx-accent);
}

.product-list .description {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 100%;
  flex: 1 1 100%;
  margin: 10px 0 0;
  color: var(--hx-muted);
  font-size: 13px;
}

.product-list .price,
.product-grid .price {
  color: var(--hx-accent);
  font-size: 16px;
  font-weight: 700;
}

.product-list .price {
  margin-left: 12px;
  white-space: nowrap;
  float: none;
  height: auto;
  text-align: left;
}

.product-list .cart {
  float: none;
  margin-bottom: 0;
  padding: 0;
}

.product-list .wishlist a,
.product-list .compare a {
  float: none;
  margin: 0;
  padding-left: 0;
  background: none;
}

.product-list .left {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 100%;
  flex: 1 1 100%;
  min-width: 0;
}

.product-list .price-old,
.product-grid .price-old {
  color: var(--hx-muted);
  font-size: 13px;
  font-weight: 400;
  text-decoration: line-through;
}

.product-list .price-new,
.product-grid .price-new {
  color: var(--hx-accent);
}

.product-list .rating,
.product-grid .rating {
  margin-top: 5px;
}

.product-list .rating img,
.product-grid .rating img {
  width: auto;
  height: 13px;
}

.product-list .cart,
.product-list .wishlist,
.product-list .compare,
.product-grid .cart,
.product-grid .wishlist,
.product-grid .compare {
  margin-top: 8px;
  font-size: 12px;
}

.product-list .cart input,
.product-grid .cart input {
  min-height: 36px;
  padding: 0 16px;
  font-size: 12px;
}

.product-list .wishlist a,
.product-list .compare a,
.product-grid .wishlist a,
.product-grid .compare a {
  color: var(--hx-muted);
}

.product-list .wishlist a:hover,
.product-list .compare a:hover,
.product-grid .wishlist a:hover,
.product-grid .compare a:hover {
  color: var(--hx-accent);
}

.product-list .wishlist img,
.product-list .compare img,
.product-grid .wishlist img,
.product-grid .compare img {
  display: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  overflow: visible;
}

.product-grid > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  width: auto;
  margin: 0;
  padding-bottom: 16px;
}

.product-grid .image {
  display: block;
  margin: 0;
}

.product-grid .image img {
  width: 100%;
  height: 220px;
  -o-object-fit: cover;
  object-fit: cover;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.product-grid .name,
.product-grid .price,
.product-grid .rating,
.product-grid .cart,
.product-grid .wishlist,
.product-grid .compare,
.product-grid .description {
  padding: 0 16px;
}

.product-grid .name {
  padding-top: 14px;
}

.product-grid .name a {
  color: var(--hx-ink);
  font-family: var(--hx-serif);
  font-size: 16px;
  font-weight: 600;
}

.product-grid .name a:hover {
  color: var(--hx-accent);
}

.product-grid .cart {
  display: block;
}

.product-grid .wishlist,
.product-grid .compare {
  display: block;
}

/* --------------------------------------------------------------------------
   17. Scheda prodotto
   -------------------------------------------------------------------------- */
.product-info {
  position: relative;
  margin-bottom: 30px;
}

.product-info > .left {
  float: left;
  width: 46%;
  margin: 0 3% 20px 0;
}

.product-info > .right {
  float: right;
  width: 51%;
  margin: 0 0 20px;
}

.product-info .image {
  position: relative;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  text-align: center;
}

.product-info .image img {
  border-radius: 10px;
}

.product-info .image-additional {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px;
}

.product-info .image-additional a {
  display: block;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border: 1px solid var(--hx-line);
  border-radius: 10px;
}

.product-info .image-additional img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.product-info h1 {
  font-size: 34px;
}

.product-info .description {
  margin-bottom: 16px;
  color: var(--hx-muted);
}

.product-info .description span {
  color: var(--hx-ink);
}

.product-info .price {
  margin-bottom: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--hx-line);
  border-bottom: 1px solid var(--hx-line);
  color: var(--hx-accent);
  font-size: 28px;
  font-weight: 700;
}

.product-info .price-old {
  color: var(--hx-muted);
  font-size: 18px;
  font-weight: 400;
  text-decoration: line-through;
}

.product-info .price-new {
  color: var(--hx-accent);
}

.product-info .price-tax {
  color: var(--hx-muted);
  font-size: 12px;
  font-weight: 400;
}

.product-info .reward {
  margin-bottom: 14px;
  color: var(--hx-muted);
  font-size: 13px;
}

.product-info .discount,
.product-info .special {
  margin: 10px 0;
  padding: 12px;
  background: var(--hx-surface-2);
  border-radius: 10px;
  font-size: 13px;
}

.product-info .option {
  margin-bottom: 12px;
}

.product-info .option b {
  color: var(--hx-ink);
  font-weight: 600;
}

.product-info .cart {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: 14px;
}

.product-info .cart > div:first-child {
  color: var(--hx-muted);
  font-size: 13px;
}

.product-info .cart input[type="text"] {
  width: 74px;
  text-align: center;
}

.product-info .cart #button-cart {
  min-height: 46px;
}

.product-info .minimum {
  margin: 8px 0;
  color: var(--hx-muted);
  font-size: 12px;
}

.product-info .tags {
  margin-top: 16px;
}

.product-info .tags a {
  display: inline-block;
  margin: 0 5px 5px 0;
  padding: 4px 12px;
  background: var(--hx-surface-2);
  border: 1px solid var(--hx-line);
  border-radius: 999px;
  color: var(--hx-muted);
  font-size: 12px;
  text-decoration: none;
}

.product-info .tags a:hover {
  border-color: var(--hx-accent);
  color: var(--hx-accent);
}

/* Tabs */
#tabs,
.htabs {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--hx-line);
  background: none;
  clear: both;
}

#tabs a,
.htabs a {
  display: inline-block;
  float: none;
  margin: 0 8px 0 0;
  padding: 12px 18px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--hx-muted);
  font-family: var(--hx-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}

#tabs a:hover,
.htabs a:hover {
  color: var(--hx-ink);
}

#tabs a.selected,
.htabs a.selected {
  background: none;
  color: var(--hx-accent);
  border-bottom-color: var(--hx-accent);
}

.tab-content {
  padding: 22px 0;
  color: var(--hx-ink);
}

/* Recensioni */
.review-list .author,
.review-list .rating {
  color: var(--hx-muted);
  font-size: 12.5px;
}

#review-title,
.review-list .text {
  color: var(--hx-ink);
}

/* Prodotti correlati */
.box-product {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}

.box-product > div {
  width: auto;
  margin: 0;
  padding: 0 0 14px;
  background: var(--hx-card-bg);
  border: 1px solid var(--hx-line);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  -webkit-transition: border-color .25s ease, -webkit-transform .25s ease;
  transition: border-color .25s ease, transform .25s ease;
}

.box-product > div:hover {
  border-color: var(--hx-accent);
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
}

.box-product .image img {
  width: 100%;
  height: 160px;
  -o-object-fit: cover;
  object-fit: cover;
  padding: 0;
}

.box-product .name,
.box-product .price,
.box-product .rating {
  padding: 0 12px;
}

.box-product .name {
  padding-top: 10px;
}

.box-product .name a {
  color: var(--hx-ink);
  font-family: var(--hx-serif);
  font-size: 14px;
  font-weight: 600;
}

.box-product .price {
  color: var(--hx-accent);
  font-size: 14px;
  font-weight: 700;
}

.box-product .cart {
  display: none;
}

/* --------------------------------------------------------------------------
   18. Contenuti, tabelle, account, checkout
   -------------------------------------------------------------------------- */
#content .content {
  overflow: visible;
  margin-bottom: 18px;
  padding: 20px;
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
}

#content .content ul,
#content .content ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

#content .content li {
  margin-bottom: 6px;
}

.content h2,
.content h3 {
  color: var(--hx-ink);
}

table.form {
  width: 100%;
  border-collapse: collapse;
}

table.form td {
  padding: 7px 6px;
  vertical-align: middle;
  color: var(--hx-ink);
}

table.form td:first-child {
  width: 180px;
  color: var(--hx-muted);
}

table.list,
table.radio,
table.flat,
.cart-info table,
.checkout-product table,
.order-list table {
  width: 100%;
  border-collapse: collapse;
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: 12px;
  overflow: hidden;
}

table.list thead td,
table.radio thead td,
.cart-info thead td,
.checkout-product thead td,
.order-list thead td {
  padding: 12px;
  background: var(--hx-surface-2);
  color: var(--hx-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
  border-bottom: 1px solid var(--hx-line);
}

table.list tbody td,
table.radio tbody td,
.cart-info tbody td,
.checkout-product tbody td,
.order-list tbody td {
  padding: 12px;
  color: var(--hx-ink);
  border-bottom: 1px solid var(--hx-line);
  vertical-align: middle;
}

table.list tbody tr:last-child td,
.cart-info tbody tr:last-child td,
.checkout-product tbody tr:last-child td,
.order-list tbody tr:last-child td {
  border-bottom: 0;
}

table.list tbody td a,
.cart-info tbody td a,
.checkout-product tbody td a {
  color: var(--hx-accent);
}

table.list tbody tr:hover,
.cart-info tbody tr:hover {
  background: var(--hx-surface-2);
}

.cart-info .image img,
.cart-info .cart-info img {
  width: 62px;
  height: 62px;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 8px;
}

.cart-total table {
  width: 100%;
  border-collapse: collapse;
}

.cart-total td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--hx-line);
  color: var(--hx-ink);
}

.cart-total td:last-child {
  text-align: right;
  font-weight: 600;
}

.buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
}

.buttons .left,
.buttons .right {
  float: none;
}

/* Messaggi */
.success,
.warning,
.attention,
.information {
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid var(--hx-line);
  border-radius: 10px;
  font-size: 14px;
  background: var(--hx-surface);
  color: var(--hx-ink);
  text-align: left;
}

.success { border-left: 4px solid #3f9c63; }
.warning,
.attention { border-left: 4px solid #c8553d; }
.information { border-left: 4px solid var(--hx-accent); }

.required {
  color: #c8553d;
  font-weight: 700;
}

/* Paginazione */
.pagination {
  margin: 20px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination a,
.pagination b {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: 8px;
  color: var(--hx-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.pagination b,
.pagination a:hover {
  background: var(--hx-accent);
  border-color: var(--hx-accent);
  color: var(--hx-on-accent);
}

/* Login / registrazione */
.login-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.login-content .left,
.login-content .right {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.login-content h2 {
  font-size: 20px;
}

@media (max-width: 640px) {
  .login-content {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
#footer {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: var(--hx-footer-bg);
  color: var(--hx-footer-ink);
  text-shadow: none;
  box-shadow: none;
}

#footer a {
  color: var(--hx-footer-ink);
  text-decoration: none;
}

#footer a:hover {
  color: var(--hx-accent-2);
}

.hx-footer-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 38px;
}

#footer #info {
  display: none;
}

.hx-foot-brand img {
  display: block;
  width: 160px;
  height: auto;
  margin-bottom: 16px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
}

.hx-foot-brand p {
  max-width: 300px;
  margin: 0 0 14px;
  color: var(--hx-footer-muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.hx-foot-brand .hx-foot-contact {
  display: block;
  margin-bottom: 6px;
  color: var(--hx-footer-ink);
  font-size: 13px;
}

.hx-foot-col h4 {
  margin: 4px 0 14px;
  color: var(--hx-footer-heading);
  font-family: var(--hx-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hx-foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hx-foot-col li {
  margin-bottom: 8px;
  font-size: 13.5px;
}

.hx-foot-col a {
  color: var(--hx-footer-muted);
}

.hx-foot-col a:hover {
  color: var(--hx-accent-2);
}

.hx-footer-bottom {
  border-top: 1px solid var(--hx-footer-line);
}

.hx-footer-bottom-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 10px;
  color: var(--hx-footer-muted);
  font-size: 12px;
}

.hx-foot-social {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
}

.hx-foot-social a {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hx-footer-line);
  border-radius: 50%;
  color: var(--hx-footer-ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.hx-foot-social a:hover {
  background: var(--hx-accent);
  border-color: var(--hx-accent);
  color: var(--hx-on-accent);
}

#powered,
#social {
  display: none !important;
}

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hx-hero-copy h1 { font-size: 44px; }
  .hx-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .yaslider-box { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hx-footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
  .hx-foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  #contentwrapper {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hx-header-inner {
    padding: 14px 18px;
    min-height: 76px;
    gap: 14px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  #header #logo img {
    max-width: 150px;
  }

  #header .hx-header-tools {
    gap: 10px;
  }

  #header #search {
    width: 220px;
  }

  #header #welcome {
    display: none;
  }

  #header #language,
  #header #currency {
    display: none;
  }

  #menu-toggle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  #header #logo {
    -ms-flex-order: 0;
    order: 0;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
  }

  #header .hx-header-tools {
    -ms-flex-order: 1;
    order: 1;
    margin-left: auto;
  }

  #header .hx-header-tools > * {
    -ms-flex-order: 0 !important;
    order: 0 !important;
  }

  #menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--hx-surface);
    border-bottom: 1px solid var(--hx-line);
    -webkit-box-shadow: 0 24px 48px rgba(0, 0, 0, .20);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .20);
  }

  #menu.open {
    display: block;
  }

  #menu ul {
    display: block;
    max-width: none;
    padding: 10px 18px 16px;
  }

  #menu > ul > li {
    display: block;
    border-bottom: 1px solid var(--hx-line);
  }

  #menu > ul > li:last-child {
    border-bottom: 0;
  }

  #menu > ul > li > a {
    padding: 13px 40px 13px 4px;
    color: var(--hx-ink);
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
  }

  #menu > ul > li > a:after {
    display: none;
  }

  #menu > ul > li > div {
    display: none !important;
    position: static;
    margin: 0 0 10px;
    padding: 0 0 0 14px;
    background: none;
    border: 0;
    border-left: 1px solid var(--hx-line);
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
  }

  #menu > ul > li.submenu-open > div {
    display: block !important;
  }

  #menu > ul > li > div > ul {
    padding: 0;
  }

  #menu > ul > li > div > ul > li > a {
    padding: 8px 4px;
    font-size: 13px;
  }

  #menu > ul > li.has-children > a {
    padding-right: 42px;
  }

  .submenu-toggle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: absolute;
    top: 6px;
    right: 0;
    width: 38px;
    height: 38px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: var(--hx-accent);
    font-size: 18px;
    cursor: pointer;
  }

  #menu > ul > li {
    position: relative;
  }

  #column-left,
  #column-right {
    float: none;
    width: 100%;
    margin: 0 0 20px;
  }

  #contentwrapper #column-left + #content,
  #contentwrapper #column-right + #content,
  #contentwrapper #column-left + #column-right + #content {
    margin-left: 0;
    margin-right: 0;
  }

  .hx-hero-inner {
    gap: 30px;
    padding-top: 50px;
    padding-bottom: 54px;
  }

  .hx-hero-copy h1 {
    font-size: 40px;
  }

  .hx-hero-frame img {
    height: 320px;
  }

  .hx-float-card--top { left: 8px; }
  .hx-float-card--bottom { right: 8px; }

  .hx-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hx-trust-item {
    padding: 18px;
    border-left: 0;
    border-bottom: 1px solid var(--hx-line);
  }

  .hx-trust-item:nth-child(odd) { padding-left: 0; }
  .hx-trust-item:last-child { border-bottom: 0; }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .box-product {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Quotazione: una scheda per riga per evitare il 2+1 disallineato */
  #content .box-content > div[style*="height:190px"] > div,
  .hx-modules .box-content > div[style*="height:190px"] > div {
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
  }

  .hx-stores-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hx-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .hx-foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .hx-hero-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
  }

  .hx-hero-copy {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
  }

  .hx-hero-copy h1 {
    font-size: 36px;
  }

  .hx-hero-visual {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .hx-hero-frame img {
    height: 300px;
  }

  .hx-banner-card {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    min-height: 0;
    padding: 30px;
  }

  .hx-banner-media {
    position: relative;
    width: 100%;
    height: 190px;
    margin-bottom: 22px;
    border-radius: 14px;
  }

  .hx-banner-card:before {
    display: none;
  }

  .hx-banner-copy {
    max-width: none;
  }

  .hx-banner-copy h2 {
    font-size: 26px;
  }

  .hx-section {
    padding: 46px 0;
  }

  .hx-section-head {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 22px;
  }

  .hx-section-head h2 {
    font-size: 26px;
  }

  .hx-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .yaslider-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-list .image {
    width: 110px;
    margin-right: 14px;
  }

  .product-list .image img {
    height: 100px;
  }

  .product-info > .left,
  .product-info > .right {
    float: none;
    width: 100%;
    margin: 0 0 20px;
  }

  .product-info h1 {
    font-size: 28px;
  }

  #header #cart .heading {
    padding: 0 14px 0 38px;
  }

  #header #cart .heading a {
    font-size: 0;
  }

  #header #cart .heading a span {
    font-size: 12px;
  }

  #header .links {
    display: none;
  }
}

@media (max-width: 640px) {
  body,
  body, td, th, input, textarea, select, a {
    font-size: 14px;
  }

  .hx-topbar {
    display: none;
  }

  .hx-header-inner {
    padding: 12px 14px;
    min-height: 66px;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
  }

  #header #logo img {
    max-width: 116px;
  }

  #header .hx-header-tools {
    gap: 8px;
  }

  #header #search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 10px 14px;
    background: var(--hx-header-bg);
    border-bottom: 1px solid var(--hx-line);
    display: none;
  }

  #header #search.hx-open {
    display: block;
  }

  .hx-search-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  #header #cart .heading {
    width: 42px;
    height: 42px;
    padding: 0;
    background-position: center;
    background-size: 17px 17px;
  }

  #header #cart .heading a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  #menu-toggle {
    width: 42px;
    height: 42px;
  }

  #contentwrapper {
    padding: 22px 14px 6px;
  }

  .hx-wrap {
    padding: 0 14px;
  }

  #content h1,
  .product-info h1 {
    font-size: 26px;
  }

  .hx-hero-inner {
    padding: 34px 0 40px;
    gap: 24px;
  }

  .hx-hero-copy h1 {
    font-size: 31px;
  }

  .hx-hero-copy p {
    font-size: 14.5px;
  }

  .hx-hero-actions .hx-btn {
    width: 100%;
  }

  .hx-hero-frame img {
    height: 260px;
  }

  .hx-float-card {
    display: none;
  }

  .hx-trust-grid {
    grid-template-columns: 1fr;
  }

  .hx-trust-item {
    padding: 14px 0;
  }

  .hx-trust-item svg {
    width: 22px;
    height: 22px;
  }

  .hx-cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hx-cat {
    min-height: 140px;
    padding: 15px;
  }

  .hx-cat-ico {
    margin-bottom: 20px;
    font-size: 22px;
  }

  .hx-cat b {
    font-size: 16px;
  }

  .hx-cat-img {
    width: 74px;
    height: 74px;
    right: -12px;
    bottom: -12px;
  }

  .hx-section {
    padding: 36px 0;
  }

  .hx-products {
    padding: 38px 0;
  }

  .yaslider-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
  }

  .yaslider .ys-slide {
    -ms-flex: 0 0 78%;
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .yaslider .ys-p-image img {
    height: 200px !important;
  }

  #content .box-content > div[style*="height:190px"] > div,
  .hx-modules .box-content > div[style*="height:190px"] > div {
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
  }

  #content .box-content > div[style*="height:190px"] > h2,
  .hx-modules .box-content > div[style*="height:190px"] > h2 {
    font-size: 23px;
  }

  .hx-banner {
    padding: 0 14px;
  }

  .hx-banner-card {
    padding: 20px;
  }

  .hx-banner-media {
    height: 150px;
  }

  .hx-banner-copy h2 {
    font-size: 23px;
  }

  .hx-stores {
    padding: 46px 0;
  }

  .hx-stores-copy h2 {
    font-size: 26px;
  }

  .hx-store-card {
    padding: 20px;
  }

  .hx-store-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 2px;
  }

  .hx-store-row b {
    text-align: left;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .product-grid .image img {
    height: 150px;
  }

  .product-grid .name,
  .product-grid .price,
  .product-grid .rating,
  .product-grid .cart,
  .product-grid .wishlist,
  .product-grid .compare,
  .product-grid .description {
    padding-left: 10px;
    padding-right: 10px;
  }

  .product-grid .name a {
    font-size: 14px;
  }

  .product-list > div {
    padding: 12px;
  }

  .product-list .image {
    width: 90px;
  }

  .product-list .image img {
    height: 80px;
  }

  .product-list .name a {
    font-size: 15px;
  }

  .product-list .price {
    margin-left: 0;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
  }

  .product-filter {
    gap: 8px;
    font-size: 12px;
  }

  .product-filter .display,
  .product-filter .limit,
  .product-filter .sort {
    width: 100%;
  }

  .product-info .cart {
    padding: 12px;
  }

  .product-info .cart > div:first-child {
    width: 100%;
  }

  .product-info .cart #button-cart {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
  }

  .box-product {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .box-product .image img {
    height: 130px;
  }

  #tabs a,
  .htabs a {
    padding: 10px 10px;
    font-size: 11px;
  }

  .buttons {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .buttons .left,
  .buttons .right {
    width: 100%;
  }

  .buttons .button {
    width: 100%;
  }

  .hx-footer-main {
    grid-template-columns: 1fr;
    padding: 36px 14px 26px;
    gap: 24px;
  }

  .hx-footer-bottom-inner {
    padding: 14px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  #carousel0 {
    padding-left: 14px;
    padding-right: 14px;
  }

  .jcarousel-skin-opencart .jcarousel-container-horizontal {
    padding: 0 30px;
  }

  .jcarousel-skin-opencart .jcarousel-item {
    padding: 8px;
  }

  .jcarousel-skin-opencart .jcarousel-item img {
    max-width: 100px;
  }
}

@media (max-width: 380px) {
  .hx-cat-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .box-product {
    grid-template-columns: 1fr;
  }

  .yaslider .ys-slide {
    -ms-flex: 0 0 88%;
    flex: 0 0 88%;
  }
}
