body {
  width: 100%;
  height: 100%;
}
h1, h2, h3, h4, h5, h6 {
  color: #444;
}
legend {
  padding: 7px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}
label {
  font-size: 12px;
  font-weight: normal;
}
/* Chrome border line */
button:focus {
  outline: none !important;
}
/* container */
#container {
  width: 100%;
  min-height: 100%;
  position: absolute;
  margin-bottom: 300px;
}
/* content */
#content, #column-left, #column-right {
  padding-bottom: 730px;
}
@media (min-width: 576px) {
  #content, #column-left, #column-right {
    padding-bottom: 400px;
  }
}
#alert {
  z-index: 9999;
  position: fixed;
  top: 30%;
  left: 50%;
  width: 400px;
  margin-left: -200px;
}
@media (min-width: 992px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (min-width: 1140px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (min-width: 1320px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
#alert .alert {
  margin-bottom: 15px;
}
#alert .alert-primary {
  box-shadow: 0 0 0 5px rgb(var(--bs-primary-rgb), 0.1);
}
#alert .alert-secondary {
  box-shadow: 0 0 0 5px rgb(var(--bs-secondary-rgb), 0.1);
}
#alert .alert-success {
  box-shadow: 0 0 0 5px rgb(var(--bs-success-rgb), 0.1);
}
#alert .alert-warning {
  box-shadow: 0 0 0 5px rgb(var(--bs-warning-rgb), 0.1);
}
#alert .alert-danger {
  box-shadow: 0 0 0 5px rgb(var(--bs-danger-rgb), 0.1);
}
#alert .alert-info {
  box-shadow: 0 0 0 5px rgb(var(--bs-info-rgb), 0.1);
}
#alert .alert-light {
  box-shadow: 0 0 0 5px rgb(var(--bs-light-rgb), 0.1);
}
#alert .alert-dark {
  box-shadow: 0 0 0 5px rgb(var(--bs-dark-rgb), 0.1);
}
/* top */
#top {
  background-color: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 5px;
}
#top ul.list-inline {
  margin-bottom: 0;
}
#top .list-inline-item > a, #top .list-inline-item .dropdown > a {
  font-size: 1.1em;
  color: var(--bs-gray-600);
  line-height: 40px;
  vertical-align: middle;
  padding: 10px 0px 5px 0px;
}
/* logo */
#logo {
  text-align: center;
  margin: 7px 0 7px 0;
}
#logo img {
  max-width: 200px;
}
@media (min-width: 768px) {
  #logo {
    text-align: left;
  }
}
/* search */
#search {
  margin-bottom: 10px;
}
#search .form-control-lg {
  height: 40px;
  font-size: 12px;
  line-height: 20px;
  padding: 0 10px;
}
#search .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 0.57rem 35px;
  text-shadow: 0 1px 0 #FFF;
}
/* cart */
#cart {
  margin-bottom: 10px;
}
#cart .img-thumbnail {
  min-width: 100px;
}
#cart .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 14px 35px;
}
#cart .dropdown-menu {
  background: #eee;
}
#cart .dropdown-menu li {
  min-width: 300px;
}
@media (max-width: 768px) {
  #cart .dropdown-menu li {
    min-width: 100%;
  }
}
/* menu */
#menu {
  background-color: #229ac8;
  background-image: linear-gradient(to bottom, #23a1d1, #1f90bb);
  background-repeat: repeat-x;
  border: 1px solid #1f90bb;
  border-color: #1f90bb #1f90bb #145e7a;
  min-height: 40px;
  border-radius: 4px;
  padding: 0 1rem;
  margin-bottom: 20px;
}
#menu .navbar-nav > li > a {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 10px 15px 10px 15px;
  background-color: transparent;
}
#menu .navbar-nav > li > a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
#menu .dropdown-menu {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
#menu .dropdown-inner {
  display: flex;
  flex-direction: column;
}
#menu .dropdown-inner ul {
  width: 100%;
  min-width: 200px;
}
@media (min-width: 960px) {
  #menu .dropdown:hover .dropdown-menu {
    display: block;
  }
  #menu .dropdown-inner {
    flex-direction: row;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-2 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -600px;
  }
}
#category {
  float: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
#menu .navbar-toggler i {
  color: #fff;
  border-color: #fff;
  font-size: 0.9em;
}
/* default boostrap changes */
div.required .col-form-label:before, div.required .form-label:before {
  content: "* ";
  color: #F00;
  font-weight: bold;
}
.form-switch-lg {
  font-size: 20px;
  min-height: 30px;
  line-height: 30px;
}
.nav-tabs {
  margin-bottom: 15px;
}
.form-check .form-check-input {
  margin-top: 0.25rem;
}
@media (min-width: 768px) {
  .col-form-label {
    text-align: right;
  }
}
/* footer */
footer {
  border: 1px solid #000000;
  position: absolute;
  bottom: -1px;
  width: 100%;
  padding-top: 30px;
  background-color: #303030;
  border-top: 1px solid #ddd;
  color: #e2e2e2;
}
footer hr {
  border-top: none;
  border-bottom: 1px solid #666;
}
footer a {
  color: #ccc;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
}
footer h5 {
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 10px;
}
/* breadcrumb */
.breadcrumb {
  margin: 0 0 20px 0;
  padding: 8px 0;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background-color: var(--bs-tertiary-bg);
}
.breadcrumb i {
  font-size: 15px;
}
.breadcrumb > li.breadcrumb-item {
  text-shadow: 0 1px 0 #FFF;
  padding: 0 20px;
  position: relative;
  white-space: nowrap;
}
.breadcrumb > li.breadcrumb-item > a {
  text-decoration: none;
}
.breadcrumb > li.breadcrumb-item:after {
  content: "";
  display: block;
  position: absolute;
  top: -3px;
  right: -5px;
  width: 29px;
  height: 29px;
  border-right: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
  transform: rotate(-45deg);
}
.breadcrumb > li.breadcrumb-item + li:before {
  content: "";
  padding: 0;
}
.product-thumb {
  border: 1px solid #ddd;
  position: relative;
  height: 100%;
}
.product-thumb .image {
  text-align: center;
}
.product-thumb .image a:hover {
  opacity: 0.8;
}
.product-thumb .description {
  padding: 15px;
  margin-bottom: 45px;
}
.product-thumb .description h4 {
  font-weight: bold;
}
.product-thumb .button {
  display: flex;
  position: absolute;
  width: 100%;
  bottom: 0;
}
.product-thumb .button button {
  width: 33.33%;
  border: none;
  border-top: 1px solid var(--bs-border-color);
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-gray-600);
  line-height: 38px;
  text-align: center;
}
.product-thumb .button button:hover {
  color: var(--bs-gray-600);
  background-color: #ddd;
  text-decoration: none;
  cursor: pointer;
}
.product-thumb .button button + button {
  border-left: 1px solid var(--bs-border-color);
}
@media (min-width: 960px) {
  .product-list .product-thumb {
    display: flex;
  }
  .product-list .product-thumb .image {
    flex-direction: column;
    margin-bottom: 0px;
  }
  .product-list .product-thumb .content {
    flex-direction: column;
    flex: 75%;
    position: relative;
  }
  .product-list .product-thumb .button {
    border-left: 1px solid #ddd;
    width: calc(100% -  15px);
    margin-left: 15px;
  }
}
.rating .fa-stack {
  width: 20px;
}
.rating .fa-star {
  color: #999;
  font-size: 15px;
}
.rating .fa-star {
  color: #FC0;
  font-size: 15px;
}
.rating .fa-star + .fa-star {
  color: #E69500;
}
/* product list */
.price {
  color: #444;
}
.price-new {
  font-weight: 600;
}
.price-old {
  color: #dc512c;
  text-decoration: line-through;
}
.price-tax {
  color: #999;
  font-size: 12px;
  display: block;
}
/* blog */
.blog-thumb {
  border: 1px solid #ddd;
  margin-bottom: 15px;
}
.blog-thumb h4 {
  font-weight: bold;
}
.blog-thumb .image {
  text-align: center;
  margin-bottom: 15px;
}
.blog-thumb .image a:hover {
  opacity: 0.8;
}
.blog-thumb .description {
  padding: 15px;
}
/* Theme Custom CSS */
#cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 9999;
  opacity: 0.95;
  color: #ecf0f1;
  background: #343a40;
}
#cookie div {
  font-size: 16px;
  color: #FFFFFF;
}


/* =========================================================
   FARMAJAM - PRODUCT CARDS HP STYLE
   Layout globale card prodotto - tema default OpenCart
   ========================================================= */

.product-thumb {
  background: #fff !important;
  border: 1px solid #eaecf0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  transition: box-shadow .18s ease, transform .18s ease !important;
  height: 100% !important;
}

.product-thumb:hover {
  box-shadow: 0 10px 28px rgba(16,24,40,.10) !important;
  transform: translateY(-2px) !important;
}

.product-thumb .image {
  min-height: 150px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 14px 4px !important;
  background: #fff !important;
}

.product-thumb .image a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.product-thumb .image img {
  max-height: 150px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

.product-thumb .content,
.product-thumb .caption {
  padding: 14px !important;
}

.product-thumb h4,
.product-thumb h4 a,
.product-thumb .name,
.product-thumb .name a {
  font-size: 15px !important;
  line-height: 1.32 !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin: 0 0 8px !important;
  text-decoration: none !important;
}

.product-thumb h4 a:hover,
.product-thumb .name a:hover {
  color: #0b5ed7 !important;
}

.product-thumb p,
.product-thumb .description p {
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: #667085 !important;
  text-transform: none !important;
  margin: 8px 0 10px !important;
}

.product-thumb .price {
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #202939 !important;
  margin: 8px 0 12px !important;
}

.product-thumb .price-new {
  color: #202939 !important;
  font-weight: 800 !important;
}

.product-thumb .price-old {
  color: #98a2b3 !important;
  font-size: 13px !important;
  text-decoration: line-through !important;
  font-weight: 500 !important;
  margin-left: 6px !important;
}

.product-thumb .button-group {
  display: flex !important;
  border-top: 0 !important;
  gap: 8px !important;
  padding: 0 14px 14px !important;
  background: transparent !important;
}

.product-thumb .button-group button:first-child {
  flex: 1 1 auto !important;
  border-radius: 12px !important;
  background: #263445 !important;
  color: #fff !important;
  border: 0 !important;
  padding: 10px 12px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-transform: none !important;
  box-shadow: none !important;
}

.product-thumb .button-group button:first-child:hover {
  background: #1f2937 !important;
  color: #fff !important;
}

.product-thumb .button-group button:not(:first-child) {
  display: none !important;
}

.product-thumb .button-group button:first-child i {
  display: none !important;
}

.product-thumb .button-group button:first-child span {
  display: inline !important;
}

/* Migliora spaziatura griglia prodotti */
.product-layout,
.row-cols-1 > .col,
.row-cols-sm-2 > .col,
.row-cols-md-3 > .col,
.row-cols-lg-4 > .col {
  margin-bottom: 18px !important;
}

@media(max-width: 575px) {
  .product-thumb .image {
    min-height: 135px !important;
  }

  .product-thumb .image img {
    max-height: 135px !important;
  }

  .product-thumb h4,
  .product-thumb h4 a,
  .product-thumb .name,
  .product-thumb .name a {
    font-size: 14px !important;
  }

  .product-thumb .price {
    font-size: 17px !important;
  }
}

/* =========================================================
   FINE FARMAJAM - PRODUCT CARDS HP STYLE
   ========================================================= */


/* =========================================================
   FARMAJAM - PRODUCT CARDS HP STYLE V2
   Più simile al modulo HP Banner
   ========================================================= */

/* card */
.product-thumb {
  background: #fff !important;
  border: 1px solid #eaecf0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  transition: box-shadow .18s ease, transform .18s ease !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.product-thumb:hover {
  box-shadow: 0 10px 28px rgba(16,24,40,.10) !important;
  transform: translateY(-2px) !important;
}

/* immagine */
.product-thumb .image {
  min-height: 170px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px 18px 6px !important;
  background: #fff !important;
}

.product-thumb .image a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.product-thumb .image img {
  max-height: 160px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

/* contenuto */
.product-thumb .content,
.product-thumb .caption {
  padding: 14px 14px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

/* titolo */
.product-thumb h4,
.product-thumb h4 a,
.product-thumb .name,
.product-thumb .name a {
  font-size: 15px !important;
  line-height: 1.32 !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin: 0 0 10px !important;
  text-decoration: none !important;
}

/* attenzione:
   se il nome prodotto è SALVATO IN MAIUSCOLO nel DB,
   il CSS non può trasformarlo davvero in minuscolo/titolo.
*/
.product-thumb h4 a:hover,
.product-thumb .name a:hover {
  color: #0b5ed7 !important;
}

/* NASCONDI DESCRIZIONE per renderlo come HP banner */
.product-thumb p,
.product-thumb .description p,
.product-thumb .caption p {
  display: none !important;
}

/* prezzo */
.product-thumb .price {
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #202939 !important;
  margin: 8px 0 14px !important;
}

.product-thumb .price-new {
  color: #202939 !important;
  font-weight: 800 !important;
}

.product-thumb .price-old {
  color: #98a2b3 !important;
  font-size: 13px !important;
  text-decoration: line-through !important;
  font-weight: 500 !important;
  margin-left: 6px !important;
}

/* bottoni */
.product-thumb .button-group {
  display: flex !important;
  border-top: 0 !important;
  gap: 0 !important;
  padding: 0 14px 14px !important;
  background: transparent !important;
  margin-top: auto !important;
}

/* primo bottone = Aggiungi pieno */
.product-thumb .button-group button:first-child,
.product-thumb .button-group a:first-child {
  flex: 1 1 auto !important;
  width: 100% !important;
  border-radius: 12px !important;
  background: #263445 !important;
  color: #fff !important;
  border: 0 !important;
  padding: 12px 14px !important;
  font-weight: 700 !important;
  font-size: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.product-thumb .button-group button:first-child:hover,
.product-thumb .button-group a:first-child:hover {
  background: #1f2937 !important;
  color: #fff !important;
}

.product-thumb .button-group button:first-child i,
.product-thumb .button-group a:first-child i,
.product-thumb .button-group button:first-child span,
.product-thumb .button-group a:first-child span {
  display: none !important;
}

/* scritta finta "Aggiungi" */
.product-thumb .button-group button:first-child::after,
.product-thumb .button-group a:first-child::after {
  content: "Aggiungi";
  font-size: 14px !important;
  line-height: 1 !important;
  color: #fff !important;
  font-weight: 700 !important;
}

/* nascondi wishlist / compare */
.product-thumb .button-group button:not(:first-child),
.product-thumb .button-group a:not(:first-child) {
  display: none !important;
}

/* margini griglia */
.product-layout,
.row-cols-1 > .col,
.row-cols-sm-2 > .col,
.row-cols-md-3 > .col,
.row-cols-lg-4 > .col {
  margin-bottom: 18px !important;
}

@media(max-width: 575px) {
  .product-thumb .image {
    min-height: 140px !important;
  }

  .product-thumb .image img {
    max-height: 135px !important;
  }

  .product-thumb h4,
  .product-thumb h4 a,
  .product-thumb .name,
  .product-thumb .name a {
    font-size: 14px !important;
  }

  .product-thumb .price {
    font-size: 17px !important;
  }
}

/* =========================================================
   FINE FARMAJAM - PRODUCT CARDS HP STYLE V2
   ========================================================= */


/* =========================================================
   FARMAJAM - GLOBAL PRODUCT THUMB TEMPLATE HP STYLE
   ========================================================= */

.product-thumb.fj-global-card {
  background: #fff !important;
  border: 1px solid #eaecf0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  transition: box-shadow .18s ease, transform .18s ease !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.product-thumb.fj-global-card:hover {
  box-shadow: 0 10px 28px rgba(16,24,40,.10) !important;
  transform: translateY(-2px) !important;
}

.product-thumb.fj-global-card .fj-card-image {
  min-height: 170px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px 18px 6px !important;
  background: #fff !important;
}

.product-thumb.fj-global-card .fj-card-image a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.product-thumb.fj-global-card .fj-card-image img {
  max-height: 160px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

.product-thumb.fj-global-card .fj-card-content {
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.product-thumb.fj-global-card .fj-card-description {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.product-thumb.fj-global-card .fj-card-title {
  margin: 0 0 12px !important;
  min-height: 42px !important;
}

.product-thumb.fj-global-card .fj-card-title a {
  font-size: 15px !important;
  line-height: 1.32 !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
}

.product-thumb.fj-global-card .fj-card-title a:hover {
  color: #0b5ed7 !important;
}

.product-thumb.fj-global-card .fj-card-price {
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #202939 !important;
  margin: auto 0 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.product-thumb.fj-global-card .price-new {
  color: #202939 !important;
  font-weight: 800 !important;
}

.product-thumb.fj-global-card .price-old {
  color: #98a2b3 !important;
  font-size: 13px !important;
  text-decoration: line-through !important;
  font-weight: 500 !important;
}

.product-thumb.fj-global-card .fj-tax-label {
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
  color: #667085 !important;
}

.product-thumb.fj-global-card form {
  margin: 0 !important;
  padding: 0 !important;
}

.product-thumb.fj-global-card .fj-card-actions {
  display: flex !important;
  border-top: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.product-thumb.fj-global-card .fj-card-cart {
  width: 100% !important;
  border-radius: 12px !important;
  background: #263445 !important;
  color: #fff !important;
  border: 0 !important;
  padding: 12px 14px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-transform: none !important;
  box-shadow: none !important;
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.product-thumb.fj-global-card .fj-card-cart:hover {
  background: #1f2937 !important;
  color: #fff !important;
}

.product-thumb.fj-global-card .fj-card-cart span {
  display: inline !important;
}

@media(max-width: 575px) {
  .product-thumb.fj-global-card .fj-card-image {
    min-height: 140px !important;
  }

  .product-thumb.fj-global-card .fj-card-image img {
    max-height: 135px !important;
  }

  .product-thumb.fj-global-card .fj-card-title a {
    font-size: 14px !important;
  }

  .product-thumb.fj-global-card .fj-card-price {
    font-size: 17px !important;
  }
}

/* =========================================================
   FINE FARMAJAM - GLOBAL PRODUCT THUMB TEMPLATE HP STYLE
   ========================================================= */


/* =========================================================
   FARMAJAM - FIX GLOBAL CARD BUTTON
   Rimuove doppio Aggiungi e sistema click carrello
   ========================================================= */

.product-thumb.fj-global-card .button-group button:first-child::after,
.product-thumb.fj-global-card .button-group a:first-child::after,
.product-thumb .button-group button:first-child::after,
.product-thumb .button-group a:first-child::after {
  content: none !important;
  display: none !important;
}

.product-thumb.fj-global-card .fj-card-cart {
  width: 100% !important;
  border-radius: 12px !important;
  background: #263445 !important;
  color: #fff !important;
  border: 0 !important;
  padding: 12px 14px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.product-thumb.fj-global-card .fj-card-cart span {
  display: inline !important;
  font-size: 14px !important;
  color: #fff !important;
}

.product-thumb.fj-global-card .fj-card-actions button:not(.fj-card-cart),
.product-thumb.fj-global-card .fj-card-actions a:not(.fj-card-cart) {
  display: none !important;
}

/* =========================================================
   FINE FARMAJAM - FIX GLOBAL CARD BUTTON
   ========================================================= */


/* =========================================================
   FARMAJAM - PRODUCT PAGE PREMIUM LIGHT
   Miglioramento scheda prodotto - tema default OpenCart
   ========================================================= */

/* Titolo pagina prodotto */
#product-info h1,
.product-info h1,
h1 {
  color: #2f3542;
}

/* Layout immagine prodotto */
#product-info .image,
#product-product .image,
.product-page .image {
  background: #fff !important;
}

/* Box immagine principale prodotto */
#product-info .image img,
#product-product .image img {
  max-height: 520px;
  object-fit: contain;
}

/* Area immagine prodotto */
#product-product .image,
#product-info .image {
  border: 1px solid #eaecf0 !important;
  border-radius: 18px !important;
  background: #fff !important;
  padding: 28px !important;
  box-shadow: 0 8px 26px rgba(16,24,40,.05) !important;
}

/* Colonna informazioni prodotto */
#product-info {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 8px 26px rgba(16,24,40,.05);
}

/* Titolo prodotto */
#product-info h1 {
  font-size: 32px !important;
  line-height: 1.15 !important;
  font-weight: 750 !important;
  color: #2f3542 !important;
  margin: 0 0 18px !important;
  text-transform: none !important;
  letter-spacing: -0.3px !important;
}

/* Dati prodotto: marca, codice, disponibilità */
#product-info ul.list-unstyled {
  margin: 0 0 20px !important;
  padding: 0 !important;
}

#product-info ul.list-unstyled li {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #4b5563 !important;
  margin-bottom: 3px !important;
}

#product-info ul.list-unstyled li a {
  color: #0b84b8 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

/* Prezzo prodotto */
#product-info .price,
#product-info h2,
#product-info ul.list-unstyled + ul.list-unstyled li h2 {
  font-size: 34px !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
  color: #202939 !important;
  margin: 18px 0 8px !important;
}

/* IVA esclusa piccola */
#product-info li,
#product-info .price-tax {
  color: #667085;
}

/* Pulsanti wishlist / compare */
#product-info button[formaction*="wishlist"],
#product-info button[formaction*="compare"] {
  border-radius: 12px !important;
  border: 1px solid #eaecf0 !important;
  background: #f8fafc !important;
  color: #111827 !important;
  width: 54px !important;
  height: 48px !important;
}

#product-info button[formaction*="wishlist"]:hover,
#product-info button[formaction*="compare"]:hover {
  background: #eef2f7 !important;
}

/* Blocco quantità + carrello */
#product-info #button-cart,
#button-cart {
  background: #263445 !important;
  border: 0 !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 14px 24px !important;
  min-height: 54px !important;
  font-size: 16px !important;
  font-weight: 750 !important;
  box-shadow: none !important;
  text-transform: none !important;
}

#product-info #button-cart:hover,
#button-cart:hover {
  background: #1f2937 !important;
  color: #fff !important;
}

/* Input quantità */
#product-info input[name="quantity"] {
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  min-height: 54px !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-shadow: none !important;
}

/* Label quantità */
#product-info .input-group-text,
#product-info label {
  font-weight: 650 !important;
  color: #374151 !important;
}

/* Box vantaggi prodotto */
#product-info::after {
  content: "✓ Pagamenti sicuri    ✓ Spedizione rapida    ✓ Assistenza Farmajam";
  display: block;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #eaecf0;
  color: #374151;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

/* Tabs descrizione */
.nav-tabs {
  border-bottom: 1px solid #eaecf0 !important;
  margin-top: 28px !important;
}

.nav-tabs .nav-link,
.nav-tabs li a {
  border-radius: 12px 12px 0 0 !important;
  color: #374151 !important;
  font-weight: 700 !important;
  padding: 12px 18px !important;
}

.nav-tabs .nav-link.active,
.nav-tabs li.active a {
  background: #fff !important;
  border-color: #eaecf0 #eaecf0 #fff !important;
  color: #202939 !important;
}

/* Descrizione prodotto */
.tab-content {
  background: #fff !important;
  border: 1px solid #eaecf0 !important;
  border-top: 0 !important;
  border-radius: 0 0 18px 18px !important;
  padding: 24px !important;
}

.tab-content h2,
.tab-content h3 {
  color: #2f3542 !important;
  font-weight: 800 !important;
  text-transform: none !important;
}

.tab-content p,
.tab-content li {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #4b5563 !important;
}

/* Responsive */
@media(max-width: 991px) {
  #product-info {
    margin-top: 22px;
  }

  #product-info h1 {
    font-size: 26px !important;
  }

  #product-info .price,
  #product-info h2 {
    font-size: 30px !important;
  }
}

@media(max-width: 575px) {
  #product-info {
    padding: 18px;
  }

  #product-product .image,
  #product-info .image {
    padding: 18px !important;
  }

  #product-info h1 {
    font-size: 23px !important;
  }

  #button-cart {
    width: 100% !important;
  }

  #product-info::after {
    font-size: 12px;
  }
}

/* =========================================================
   FINE FARMAJAM - PRODUCT PAGE PREMIUM LIGHT
   ========================================================= */


/* =========================================================
   FARMAJAM - LOGO MINISTERO SALUTE PAGINA PRODOTTO
   ========================================================= */

.farmajam-ministero-logo {
  margin-top: 18px;
  max-width: 360px;
}

.farmajam-ministero-logo a {
  display: block;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .18s ease, transform .18s ease;
}

.farmajam-ministero-logo a:hover {
  box-shadow: 0 10px 28px rgba(16,24,40,.10);
  transform: translateY(-2px);
}

.farmajam-ministero-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  padding: 8px;
}

@media(max-width: 575px) {
  .farmajam-ministero-logo {
    max-width: 100%;
  }

  .farmajam-ministero-logo img {
    max-height: 150px;
  }
}

/* =========================================================
   FINE FARMAJAM - LOGO MINISTERO SALUTE PAGINA PRODOTTO
   ========================================================= */


/* =========================================================
   FARMAJAM - FIX LOGO MINISTERO SOTTO CARRELLO
   ========================================================= */

#product-info .farmajam-ministero-logo {
  display: block !important;
  clear: both !important;
  width: 100% !important;
  max-width: 210px !important;
  margin-top: 16px !important;
  margin-left: 0 !important;
}

#product-info .farmajam-ministero-logo a {
  display: block !important;
  border: 1px solid #d7ead7 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: box-shadow .18s ease, transform .18s ease !important;
}

#product-info .farmajam-ministero-logo a:hover {
  box-shadow: 0 8px 20px rgba(16,24,40,.08) !important;
  transform: translateY(-1px) !important;
}

#product-info .farmajam-ministero-logo img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 120px !important;
  object-fit: contain !important;
  padding: 4px !important;
}

@media(max-width: 575px) {
  #product-info .farmajam-ministero-logo {
    max-width: 180px !important;
  }

  #product-info .farmajam-ministero-logo img {
    max-height: 105px !important;
  }
}

/* =========================================================
   FINE FARMAJAM - FIX LOGO MINISTERO SOTTO CARRELLO
   ========================================================= */


/* =========================================================
   FARMAJAM - LOGO MINISTERO SOTTO FORM CARRELLO
   ========================================================= */

#product-info .farmajam-ministero-logo {
  display: block !important;
  width: 100% !important;
  max-width: 170px !important;
  margin: 14px 0 0 0 !important;
  clear: both !important;
}

#product-info .farmajam-ministero-logo a {
  display: block !important;
  width: 100% !important;
  border: 1px solid #d7ead7 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: none !important;
}

#product-info .farmajam-ministero-logo img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 95px !important;
  object-fit: contain !important;
  padding: 3px !important;
}

@media(max-width: 575px) {
  #product-info .farmajam-ministero-logo {
    max-width: 150px !important;
  }

  #product-info .farmajam-ministero-logo img {
    max-height: 85px !important;
  }
}

/* =========================================================
   FINE FARMAJAM - LOGO MINISTERO SOTTO FORM CARRELLO
   ========================================================= */


/* =========================================================
   FARMAJAM - FOOTER RESTYLING
   ========================================================= */

.fj-footer {
  margin-top: 50px;
  background: #fff;
  border-top: 5px solid #75b9d3;
  color: #6b7280;
}

.fj-footer-main {
  padding: 55px 0 60px;
}

.fj-footer-logo {
  max-width: 230px;
  height: auto;
  margin-bottom: 24px;
}

.fj-footer-contacts,
.fj-footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fj-footer-contacts li {
  margin-bottom: 14px;
  font-size: 15px;
  color: #8a8f98;
}

.fj-footer-contacts i {
  width: 22px;
  color: #f59f45;
}

.fj-footer a {
  color: #6b7280;
  text-decoration: none;
}

.fj-footer a:hover {
  color: #0b84b8;
}

.fj-footer h5 {
  font-size: 25px;
  line-height: 1.2;
  color: #3855a6;
  font-weight: 800;
  margin: 0 0 26px;
}

.fj-footer-links li {
  margin-bottom: 12px;
  font-size: 16px;
}

.fj-footer-social h5 {
  margin-bottom: 18px;
}

.fj-footer-ministero {
  display: block;
  width: 130px;
  border: 1px solid #d7ead7;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 18px;
}

.fj-footer-ministero img {
  display: block;
  width: 100%;
  height: auto;
  padding: 3px;
}

.fj-footer-social-icons {
  display: flex;
  gap: 14px;
  align-items: center;
}

.fj-footer-social-icons a {
  width: 36px;
  height: 36px;
  border: 1px solid #eaecf0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3855a6;
  font-size: 20px;
}

.fj-footer-bottom {
  background: #75b9d3;
  color: #fff;
  padding: 22px 0;
}

.fj-footer-legal p {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.45;
}

.fj-footer-legal a {
  color: #fff;
  text-decoration: underline;
}

@media(max-width: 767px) {
  .fj-footer-main {
    padding: 35px 0;
  }

  .fj-footer h5 {
    font-size: 21px;
    margin-top: 24px;
  }

  .fj-footer-logo {
    max-width: 190px;
  }

  .fj-footer-links li,
  .fj-footer-contacts li {
    font-size: 14px;
  }
}

/* =========================================================
   FINE FARMAJAM - FOOTER RESTYLING
   ========================================================= */


/* =========================================================
   FARMAJAM - FIX FOOTER OVERLAP + HOVER LINK
   ========================================================= */

/* Evita che il footer salga sopra moduli/prodotti */
.fj-footer {
  clear: both !important;
  position: relative !important;
  z-index: 1 !important;
  margin-top: 90px !important;
}

/* Forza chiusura corretta dei contenitori prodotto prima del footer */
#content::after,
.container::after,
.row::after {
  content: "";
  display: table;
  clear: both;
}

/* Dà respiro all'ultima sezione prodotti prima del footer */
#content {
  padding-bottom: 45px !important;
}

#content .product-thumb,
#content .fj-global-card {
  margin-bottom: 28px !important;
}

/* Link footer sempre leggibili */
.fj-footer a,
.fj-footer-links a,
.fj-footer-contacts a,
.fj-footer-social a {
  color: #6b7280 !important;
  text-decoration: none !important;
}

/* Hover footer: blu, non bianco */
.fj-footer a:hover,
.fj-footer-links a:hover,
.fj-footer-contacts a:hover,
.fj-footer-social a:hover {
  color: #0b84b8 !important;
  text-decoration: none !important;
}

/* Titoli footer */
.fj-footer h5 {
  color: #3855a6 !important;
}

/* Link della fascia legale in basso */
.fj-footer-bottom a {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.fj-footer-bottom a:hover {
  color: #eef8ff !important;
}

/* Spazio extra se l'ultima sezione è un modulo prodotti */
#content > h3:last-of-type,
#content > .row:last-child,
#content > .swiper:last-child,
#content > .carousel:last-child {
  margin-bottom: 70px !important;
}

/* =========================================================
   FINE FARMAJAM - FIX FOOTER OVERLAP + HOVER LINK
   ========================================================= */


/* =========================================================
   FARMAJAM - HEADER RESTYLING
   ========================================================= */

.fj-top-promo {
  background: #cbe6f2;
  color: #3855a6;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .4px;
  text-align: center;
  padding: 8px 0;
  text-transform: uppercase;
}

.fj-header-service {
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  color: #6b7280;
  font-size: 14px;
}

.fj-header-service-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
}

.fj-service-left,
.fj-service-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.fj-service-left strong {
  color: #0b84b8;
  font-weight: 800;
}

.fj-header-service a {
  color: #6b7280 !important;
  text-decoration: none !important;
  font-weight: 500;
}

.fj-header-service a:hover {
  color: #0b84b8 !important;
}

.fj-header-service i {
  color: #f59f45;
  margin-right: 4px;
}

header img[alt*="Farma"],
#logo img,
header .img-fluid {
  max-height: 105px;
  width: auto;
}

header {
  background: #fff;
}

header .container {
  padding-top: 20px;
  padding-bottom: 18px;
}

#search,
header #search {
  max-width: 560px;
  margin: 0 auto;
}

#search input,
header #search input {
  min-height: 48px;
  border: 2px solid #7dadca !important;
  border-radius: 8px 0 0 8px !important;
  font-size: 15px;
  box-shadow: none !important;
}

#search button,
header #search button {
  min-height: 48px;
  border-radius: 0 8px 8px 0 !important;
  background: #fff !important;
  border: 2px solid #7dadca !important;
  border-left: 0 !important;
  color: #e88644 !important;
  font-size: 20px;
}

#header-cart button,
header #cart button,
header .btn-inverse {
  background: #202939 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  min-height: 48px;
  font-weight: 700;
  box-shadow: none !important;
}

#header-cart button:hover,
header #cart button:hover,
header .btn-inverse:hover {
  background: #1f2937 !important;
}

#menu,
nav.navbar,
.navbar {
  background: linear-gradient(90deg, #3855a6 0%, #23a6d5 100%) !important;
  border: 0 !important;
  border-radius: 6px !important;
  min-height: 56px;
}

#menu .navbar-nav > li > a,
.navbar .nav-link,
.navbar a {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14px;
  text-transform: none;
  letter-spacing: .2px;
}

#menu .navbar-nav > li > a:hover,
.navbar .nav-link:hover,
.navbar a:hover {
  color: #ffe0b8 !important;
  background: rgba(255,255,255,.08) !important;
}

#menu .navbar-nav > li.active > a,
.navbar .active > a,
.navbar .active > .nav-link {
  color: #ffe0b8 !important;
}

.breadcrumb {
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
}

@media(max-width: 991px) {
  .fj-header-service-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  header .container {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  #search,
  header #search {
    margin-top: 14px;
    max-width: 100%;
  }

  header img[alt*="Farma"],
  #logo img {
    max-height: 82px;
  }
}

@media(max-width: 575px) {
  .fj-top-promo {
    font-size: 12px;
    padding: 7px 10px;
  }

  .fj-service-left,
  .fj-service-right {
    gap: 8px;
    font-size: 12px;
  }

  .fj-service-right {
    display: none;
  }

  #search input,
  header #search input,
  #search button,
  header #search button {
    min-height: 44px;
  }
}

/* =========================================================
   FINE FARMAJAM - HEADER RESTYLING
   ========================================================= */


/* =========================================================
   FARMAJAM - HEADER FIX DEFINITIVO
   Nasconde topbar vecchia, centra logo, migliora menu
   ========================================================= */

/* Nasconde la vecchia barra OpenCart: telefono, account, wishlist, checkout */
#top,
nav#top,
#top-bar,
.header-top,
.top-bar {
  display: none !important;
}

/* Evita doppie righe inutili sopra header */
.fj-header-service + nav#top,
.fj-header-service + #top {
  display: none !important;
}

/* Header principale più ordinato */
header {
  background: #fff !important;
  padding: 0 !important;
}

header .container {
  padding-top: 26px !important;
  padding-bottom: 24px !important;
}

/* Riga logo / ricerca / carrello */
header .row {
  align-items: center !important;
}

/* Logo centrato nella sua area */
#logo {
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

#logo img,
header img[alt*="Farma"] {
  display: block !important;
  margin: 0 auto !important;
  max-height: 92px !important;
  width: auto !important;
}

/* Ricerca più moderna */
#search {
  max-width: 560px !important;
  margin: 0 auto !important;
}

#search input {
  height: 50px !important;
  border: 1px solid #d7e1ec !important;
  border-right: 0 !important;
  border-radius: 8px 0 0 8px !important;
  font-size: 15px !important;
  box-shadow: none !important;
  background: #fff !important;
}

#search button {
  height: 50px !important;
  min-width: 56px !important;
  border: 1px solid #d7e1ec !important;
  border-left: 0 !important;
  border-radius: 0 8px 8px 0 !important;
  background: #fff !important;
  color: #1f2937 !important;
  box-shadow: none !important;
}

/* Carrello header */
#header-cart,
#cart {
  text-align: right !important;
}

#header-cart button,
#cart button,
header .btn-inverse {
  min-height: 50px !important;
  background: #202939 !important;
  color: #fff !important;
  border-radius: 8px !important;
  border: 0 !important;
  font-weight: 700 !important;
  padding: 0 24px !important;
  box-shadow: none !important;
}

#header-cart button:hover,
#cart button:hover,
header .btn-inverse:hover {
  background: #111827 !important;
}

/* Barra promo superiore */
.fj-top-promo {
  background: #cbe6f2 !important;
  color: #3855a6 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: .4px !important;
  text-align: center !important;
  padding: 8px 0 !important;
  text-transform: uppercase !important;
}

/* Barra assistenza */
.fj-header-service {
  background: #fff !important;
  border-bottom: 1px solid #eef2f7 !important;
  color: #6b7280 !important;
  font-size: 14px !important;
}

.fj-header-service-inner {
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

.fj-service-left,
.fj-service-right {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.fj-service-left strong {
  color: #0b84b8 !important;
  font-weight: 800 !important;
}

.fj-header-service a {
  color: #6b7280 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

.fj-header-service a:hover {
  color: #0b84b8 !important;
}

.fj-header-service i {
  color: #f59f45 !important;
  margin-right: 4px !important;
}

/* Menu categorie stile FarmaJam */
#menu,
nav.navbar,
.navbar {
  background: linear-gradient(90deg, #3855a6 0%, #18a6d4 100%) !important;
  border: 0 !important;
  border-radius: 6px !important;
  min-height: 58px !important;
  padding: 0 !important;
  margin-bottom: 22px !important;
}

/* Container menu */
#menu .container,
.navbar .container {
  display: flex !important;
  justify-content: center !important;
}

/* Lista menu centrata e ordinata */
#menu .navbar-nav,
.navbar .navbar-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  width: 100% !important;
}

/* Voci menu */
#menu .navbar-nav > li > a,
.navbar .navbar-nav > li > a,
.navbar .nav-link,
.navbar a {
  color: #fff !important;
  font-weight: 750 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: .15px !important;
  padding: 18px 16px !important;
  border-right: 1px solid rgba(255,255,255,.18) !important;
  background: transparent !important;
}

/* Hover menu */
#menu .navbar-nav > li > a:hover,
.navbar .navbar-nav > li > a:hover,
.navbar .nav-link:hover,
.navbar a:hover {
  color: #ffe0b8 !important;
  background: rgba(255,255,255,.10) !important;
}

/* Voce attiva o evidenziata */
#menu .navbar-nav > li.active > a,
.navbar .active > a,
.navbar .active > .nav-link {
  color: #ffe0b8 !important;
  background: rgba(255,255,255,.08) !important;
}

/* Dropdown menu leggibile */
#menu .dropdown-menu,
.navbar .dropdown-menu {
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 34px rgba(16,24,40,.12) !important;
  padding: 10px !important;
}

#menu .dropdown-menu a,
.navbar .dropdown-menu a {
  color: #1f2937 !important;
  background: #fff !important;
  border-right: 0 !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
}

#menu .dropdown-menu a:hover,
.navbar .dropdown-menu a:hover {
  color: #0b84b8 !important;
  background: #f3f8fb !important;
}

/* Breadcrumb più leggero */
.breadcrumb {
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
}

/* Mobile */
@media(max-width: 991px) {
  .fj-header-service-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 10px 0 !important;
  }

  header .container {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  #logo {
    margin-bottom: 14px !important;
  }

  #logo img,
  header img[alt*="Farma"] {
    max-height: 78px !important;
  }

  #search {
    max-width: 100% !important;
    margin-bottom: 14px !important;
  }

  #header-cart,
  #cart {
    text-align: center !important;
  }

  #header-cart button,
  #cart button {
    width: 100% !important;
  }

  #menu .navbar-nav,
  .navbar .navbar-nav {
    justify-content: flex-start !important;
  }

  #menu .navbar-nav > li > a,
  .navbar .navbar-nav > li > a,
  .navbar .nav-link,
  .navbar a {
    padding: 13px 14px !important;
    border-right: 0 !important;
  }
}

@media(max-width: 575px) {
  .fj-top-promo {
    font-size: 12px !important;
    padding: 7px 10px !important;
  }

  .fj-service-left {
    gap: 8px !important;
    font-size: 12px !important;
  }

  .fj-service-right {
    display: none !important;
  }

  #logo img,
  header img[alt*="Farma"] {
    max-height: 68px !important;
  }
}

/* =========================================================
   FINE FARMAJAM - HEADER FIX DEFINITIVO
   ========================================================= */


/* =========================================================
   FARMAJAM - HEADER HOME FINAL REFINEMENT
   ========================================================= */

/* Header più compatto */
header .container {
  padding-top: 18px !important;
  padding-bottom: 16px !important;
}

/* Logo leggermente più presente */
#logo img,
header img[alt*="Farma"] {
  max-height: 100px !important;
}

/* Ricerca più elegante */
#search input {
  border-color: #d9e3ec !important;
  background: #fff !important;
}

#search button {
  border-color: #d9e3ec !important;
}

/* Menu più raffinato */
#menu,
nav.navbar,
.navbar {
  box-shadow: 0 10px 28px rgba(16,24,40,.08) !important;
  overflow: hidden !important;
}

#menu .navbar-nav > li > a,
.navbar .navbar-nav > li > a,
.navbar .nav-link,
.navbar a {
  border-right: 1px solid rgba(255,255,255,.12) !important;
  padding: 17px 15px !important;
}

#menu .navbar-nav > li:last-child > a,
.navbar .navbar-nav > li:last-child > a {
  border-right: 0 !important;
}

/* Box slideshow/home banner più pulito */
#slideshow0,
.swiper,
.carousel {
  border-radius: 18px !important;
  overflow: hidden !important;
}

#slideshow0 img,
.swiper img,
.carousel img {
  border-radius: 14px !important;
}

/* Riduce effetto cornice troppo grande sui banner */
#content .swiper,
#content .carousel {
  background: #fff !important;
  box-shadow: 0 8px 26px rgba(16,24,40,.05) !important;
}

/* Titoli sezioni home più professionali */
#content h3,
#content h2 {
  color: #2f3542 !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  margin-top: 28px !important;
  margin-bottom: 18px !important;
}

/* Più respiro sotto il menu */
#menu,
nav.navbar,
.navbar {
  margin-bottom: 26px !important;
}

/* =========================================================
   FINE FARMAJAM - HEADER HOME FINAL REFINEMENT
   ========================================================= */


/* =========================================================
   FARMAJAM - HEADER HOME FINAL REFINEMENT
   Rifinitura header, menu e home
   ========================================================= */

/* Header più compatto */
header .container {
  padding-top: 18px !important;
  padding-bottom: 16px !important;
}

/* Logo leggermente più presente */
#logo img,
header img[alt*="Farma"] {
  max-height: 100px !important;
}

/* Ricerca più elegante */
#search input {
  border-color: #d9e3ec !important;
  background: #fff !important;
}

#search button {
  border-color: #d9e3ec !important;
}

/* Menu più raffinato */
#menu,
nav.navbar,
.navbar {
  box-shadow: 0 10px 28px rgba(16,24,40,.08) !important;
  overflow: hidden !important;
  margin-bottom: 26px !important;
}

/* Voci menu meno “a tabella” */
#menu .navbar-nav > li > a,
.navbar .navbar-nav > li > a,
.navbar .nav-link,
.navbar a {
  border-right: 1px solid rgba(255,255,255,.12) !important;
  padding: 17px 15px !important;
}

#menu .navbar-nav > li:last-child > a,
.navbar .navbar-nav > li:last-child > a {
  border-right: 0 !important;
}

/* Slideshow/home banner più pulito */
#slideshow0,
.swiper,
.carousel {
  border-radius: 18px !important;
  overflow: hidden !important;
}

#slideshow0 img,
.swiper img,
.carousel img {
  border-radius: 14px !important;
}

/* Riduce effetto cornice troppo grande sui banner */
#content .swiper,
#content .carousel {
  background: #fff !important;
  box-shadow: 0 8px 26px rgba(16,24,40,.05) !important;
}

/* Titoli sezioni home più professionali */
#content h3,
#content h2 {
  color: #2f3542 !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  margin-top: 28px !important;
  margin-bottom: 18px !important;
}

/* Più respiro sotto il menu */
#menu,
nav.navbar,
.navbar {
  margin-bottom: 26px !important;
}

/* Migliora allineamento blocco header desktop */
@media(min-width: 992px) {
  header .row {
    display: flex !important;
    align-items: center !important;
  }

  #logo {
    justify-content: flex-start !important;
  }

  #header-cart,
  #cart {
    display: flex !important;
    justify-content: flex-end !important;
  }
}

/* Mobile più ordinato */
@media(max-width: 767px) {
  header .container {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  #logo {
    justify-content: center !important;
    margin-bottom: 12px !important;
  }

  #logo img,
  header img[alt*="Farma"] {
    max-height: 72px !important;
  }

  #search {
    margin-bottom: 12px !important;
  }

  #menu,
  nav.navbar,
  .navbar {
    border-radius: 0 !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
  }
}

/* =========================================================
   FINE FARMAJAM - HEADER HOME FINAL REFINEMENT
   ========================================================= */


/* =========================================================
   FARMAJAM - FIX DROPDOWN MENU TAGLIATO
   ========================================================= */

/* Permette ai sottomenu di uscire dal contenitore */
#menu,
nav.navbar,
.navbar,
#menu .container,
.navbar .container,
#menu .navbar-collapse,
.navbar .navbar-collapse,
#menu .navbar-nav,
.navbar .navbar-nav,
#menu .dropdown,
.navbar .dropdown {
  overflow: visible !important;
}

/* Mantiene il menu sopra il contenuto pagina */
#menu,
nav.navbar,
.navbar {
  position: relative !important;
  z-index: 999 !important;
}

/* Dropdown sopra breadcrumb e contenuto */
#menu .dropdown-menu,
.navbar .dropdown-menu {
  display: none;
  position: absolute !important;
  z-index: 9999 !important;
  min-width: 260px !important;
  max-width: 360px !important;
  white-space: normal !important;
  overflow: visible !important;
}

/* Mostra dropdown su hover */
#menu .dropdown:hover > .dropdown-menu,
.navbar .dropdown:hover > .dropdown-menu,
#menu li:hover > .dropdown-menu,
.navbar li:hover > .dropdown-menu {
  display: block !important;
}

/* Stile dropdown */
#menu .dropdown-menu,
.navbar .dropdown-menu {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 34px rgba(16,24,40,.16) !important;
  padding: 10px !important;
  margin-top: 0 !important;
}

/* Link dentro dropdown leggibili */
#menu .dropdown-menu a,
.navbar .dropdown-menu a {
  display: block !important;
  color: #1f2937 !important;
  background: #fff !important;
  border-right: 0 !important;
  padding: 11px 14px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
}

#menu .dropdown-menu a:hover,
.navbar .dropdown-menu a:hover {
  color: #0b84b8 !important;
  background: #f3f8fb !important;
}

/* Evita che breadcrumb/contenuto coprano il menu */
.breadcrumb,
#content,
main,
.container {
  position: relative;
}

.breadcrumb,
#content,
main {
  z-index: 1;
}

/* =========================================================
   FINE FARMAJAM - FIX DROPDOWN MENU TAGLIATO
   ========================================================= */


/* =========================================================
   FARMAJAM - FIX POSIZIONE SOTTOMENU HEADER
   ========================================================= */

/* Ogni voce menu diventa riferimento per il proprio dropdown */
#menu .navbar-nav > li,
.navbar .navbar-nav > li {
  position: relative !important;
}

/* Dropdown agganciato alla voce, non al bordo pagina */
#menu .navbar-nav > li > .dropdown-menu,
.navbar .navbar-nav > li > .dropdown-menu {
  left: 0 !important;
  right: auto !important;
  top: 100% !important;
  transform: none !important;
  margin-top: 0 !important;
  min-width: 280px !important;
  max-width: 560px !important;
}

/* Se il menu è molto largo, lo mantiene ordinato */
#menu .dropdown-menu,
.navbar .dropdown-menu {
  width: auto !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 34px rgba(16,24,40,.16) !important;
  padding: 10px !important;
  z-index: 99999 !important;
}

/* Dropdown a colonne più ordinato */
#menu .dropdown-menu .dropdown-inner,
.navbar .dropdown-menu .dropdown-inner {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  gap: 0 12px !important;
  min-width: 420px !important;
}

/* Link dentro i sottomenu */
#menu .dropdown-menu a,
.navbar .dropdown-menu a {
  display: block !important;
  color: #1f2937 !important;
  background: #fff !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}

#menu .dropdown-menu a:hover,
.navbar .dropdown-menu a:hover {
  color: #0b84b8 !important;
  background: #f3f8fb !important;
}

/* Le ultime voci del menu aprono verso sinistra per non uscire a destra */
#menu .navbar-nav > li:nth-last-child(-n+3) > .dropdown-menu,
.navbar .navbar-nav > li:nth-last-child(-n+3) > .dropdown-menu {
  left: auto !important;
  right: 0 !important;
}

/* Evita dropdown troppo larghi su schermi piccoli */
@media(max-width: 991px) {
  #menu .dropdown-menu,
  .navbar .dropdown-menu {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    margin-top: 6px !important;
  }

  #menu .dropdown-menu .dropdown-inner,
  .navbar .dropdown-menu .dropdown-inner {
    display: block !important;
    min-width: 0 !important;
  }
}

/* =========================================================
   FINE FARMAJAM - FIX POSIZIONE SOTTOMENU HEADER
   ========================================================= */


/* =========================================================
   FARMAJAM - MENU FULL WIDTH
   Menu categorie a tutta larghezza
   ========================================================= */

/* Il menu esce dalla larghezza del container e prende tutta la viewport */
#menu,
nav.navbar,
.navbar {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-radius: 0 !important;
  box-shadow: 0 10px 28px rgba(16,24,40,.08) !important;
}

/* Mantiene le voci centrate dentro una larghezza ordinata */
#menu .container,
.navbar .container {
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Menu più pieno e ordinato */
#menu .navbar-nav,
.navbar .navbar-nav {
  width: 100% !important;
  justify-content: center !important;
}

/* Voci menu più distribuite */
#menu .navbar-nav > li > a,
.navbar .navbar-nav > li > a,
.navbar .nav-link {
  padding-left: 18px !important;
  padding-right: 18px !important;
}

/* Evita scroll orizzontale causato dal 100vw */
html,
body {
  overflow-x: hidden !important;
}

/* Dropdown sempre sopra il contenuto */
#menu .dropdown-menu,
.navbar .dropdown-menu {
  z-index: 99999 !important;
}

/* Mobile: menu sempre full width ma più compatto */
@media(max-width: 991px) {
  #menu,
  nav.navbar,
  .navbar {
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    width: 100vw !important;
  }

  #menu .container,
  .navbar .container {
    max-width: 100% !important;
  }

  #menu .navbar-nav > li > a,
  .navbar .navbar-nav > li > a,
  .navbar .nav-link {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* =========================================================
   FINE FARMAJAM - MENU FULL WIDTH
   ========================================================= */


/* =========================================================
   FARMAJAM - MENU SOLO 8 CATEGORIE + ALTRO
   ========================================================= */

#menu .fj-menu-more,
.navbar .fj-menu-more {
  position: relative !important;
}

#menu .fj-menu-more > a,
.navbar .fj-menu-more > a {
  color: #fff !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

#menu .fj-menu-more:hover > .dropdown-menu,
.navbar .fj-menu-more:hover > .dropdown-menu {
  display: block !important;
}

#menu .fj-menu-more-menu,
.navbar .fj-menu-more-menu {
  min-width: 280px !important;
  max-width: 420px !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 34px rgba(16,24,40,.16) !important;
  padding: 10px !important;
  z-index: 99999 !important;
  left: auto !important;
  right: 0 !important;
  top: 100% !important;
}

#menu .fj-menu-more-menu > li,
.navbar .fj-menu-more-menu > li {
  display: block !important;
  width: 100% !important;
  list-style: none !important;
  position: relative !important;
}

#menu .fj-menu-more-menu > li > a,
.navbar .fj-menu-more-menu > li > a {
  display: block !important;
  width: 100% !important;
  color: #1f2937 !important;
  background: #fff !important;
  border-right: 0 !important;
  padding: 11px 14px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}

#menu .fj-menu-more-menu > li > a:hover,
.navbar .fj-menu-more-menu > li > a:hover {
  color: #0b84b8 !important;
  background: #f3f8fb !important;
}

/* Se una voce spostata dentro Altro ha già un suo sottomenu */
#menu .fj-menu-more-menu .dropdown-menu,
.navbar .fj-menu-more-menu .dropdown-menu {
  position: static !important;
  display: block !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 4px 0 4px 12px !important;
  margin: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

#menu .fj-menu-more-menu .dropdown-menu a,
.navbar .fj-menu-more-menu .dropdown-menu a {
  font-size: 13px !important;
  color: #4b5563 !important;
  padding: 8px 10px !important;
}

@media(max-width: 991px) {
  #menu .fj-menu-more-menu,
  .navbar .fj-menu-more-menu {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border-radius: 8px !important;
  }
}

/* =========================================================
   FINE FARMAJAM - MENU SOLO 8 CATEGORIE + ALTRO
   ========================================================= */


/* =========================================================
   FARMAJAM - FIX MENU ALTRE CATEGORIE
   ========================================================= */

/* Nasconde eventuale vecchia voce automatica se rimasta in cache */
#menu .fj-menu-more,
.navbar .fj-menu-more {
  display: none !important;
}

/* Voce nuova: Altre categorie */
#menu .fj-menu-extra,
.navbar .fj-menu-extra {
  position: relative !important;
}

#menu .fj-menu-extra > a,
.navbar .fj-menu-extra > a {
  color: #fff !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

/* Dropdown della voce Altre categorie */
#menu .fj-menu-extra-menu,
.navbar .fj-menu-extra-menu {
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  top: 100% !important;
  min-width: 280px !important;
  max-width: 360px !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 34px rgba(16,24,40,.16) !important;
  padding: 10px !important;
  z-index: 99999 !important;
  display: none !important;
}

/* Mostra solo al passaggio mouse */
#menu .fj-menu-extra:hover > .fj-menu-extra-menu,
.navbar .fj-menu-extra:hover > .fj-menu-extra-menu {
  display: block !important;
}

/* Voci interne semplici, senza ulteriori sottomenu */
#menu .fj-menu-extra-menu > li,
.navbar .fj-menu-extra-menu > li {
  display: block !important;
  width: 100% !important;
  list-style: none !important;
  position: static !important;
}

#menu .fj-menu-extra-menu > li > a,
.navbar .fj-menu-extra-menu > li > a {
  display: block !important;
  width: 100% !important;
  color: #1f2937 !important;
  background: #fff !important;
  border: 0 !important;
  padding: 11px 14px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}

#menu .fj-menu-extra-menu > li > a:hover,
.navbar .fj-menu-extra-menu > li > a:hover {
  color: #0b84b8 !important;
  background: #f3f8fb !important;
}

/* Blocca sottomenu annidati dentro Altre categorie */
#menu .fj-menu-extra-menu .dropdown-menu,
.navbar .fj-menu-extra-menu .dropdown-menu {
  display: none !important;
}

/* Mobile */
@media(max-width: 991px) {
  #menu .fj-menu-extra-menu,
  .navbar .fj-menu-extra-menu {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    margin-top: 6px !important;
  }
}

/* =========================================================
   FINE FARMAJAM - FIX MENU ALTRE CATEGORIE
   ========================================================= */


/* =========================================================
   FARMAJAM - FIX SPAZIO CARD PREZZO / CARRELLO
   ========================================================= */

/* Evita che il prezzo spinga il pulsante troppo in basso */
.product-thumb.fj-global-card .fj-card-description {
  flex: 0 0 auto !important;
}

/* Prezzo più vicino al pulsante */
.product-thumb.fj-global-card .fj-card-price {
  margin: 8px 0 12px !important;
}

/* Contenuto card più compatto */
.product-thumb.fj-global-card .fj-card-content {
  justify-content: flex-start !important;
}

/* Pulsante subito dopo il prezzo */
.product-thumb.fj-global-card form {
  margin-top: 0 !important;
}

/* Bottone con testo più lungo */
.product-thumb.fj-global-card .fj-card-cart {
  min-height: 44px !important;
  padding: 11px 12px !important;
}

.product-thumb.fj-global-card .fj-card-cart span {
  font-size: 13px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

/* Se il vecchio CSS aggiungeva "Aggiungi" con ::after, lo disattiva */
.product-thumb.fj-global-card .fj-card-cart::after,
.product-thumb .button-group button:first-child::after,
.product-thumb .button-group a:first-child::after {
  content: none !important;
  display: none !important;
}

/* =========================================================
   FINE FARMAJAM - FIX SPAZIO CARD PREZZO / CARRELLO
   ========================================================= */

/* =========================================================
   FARMAJAM - CARD PRODOTTO UNIFORMI E PIÙ COMPATTE
   ========================================================= */

/* Card tutte con stessa logica verticale */
.product-thumb.fj-global-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 520px !important;
}

/* Immagine con altezza fissa */
.product-thumb.fj-global-card .fj-card-image {
  height: 180px !important;
  min-height: 180px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.product-thumb.fj-global-card .fj-card-image img {
  max-height: 160px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

/* Corpo card flessibile */
.product-thumb.fj-global-card .fj-card-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: 12px 14px 14px !important;
}

/* Titolo con altezza uniforme */
.product-thumb.fj-global-card .fj-card-title,
.product-thumb.fj-global-card .fj-card-title a {
  display: block !important;
  min-height: 78px !important;
  max-height: 78px !important;
  overflow: hidden !important;
  line-height: 1.28 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 0 0 8px !important;
}

/* Descrizione più compatta e limitata */
.product-thumb.fj-global-card .fj-card-description {
  min-height: 38px !important;
  max-height: 38px !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  line-height: 1.25 !important;
  font-size: 13px !important;
  color: #667085 !important;
  margin: 0 0 6px !important;
  flex: 0 0 auto !important;
}

/* Blocco finale compatto */
.product-thumb.fj-global-card .fj-card-bottom {
  margin-top: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

/* Prezzo più vicino al bottone */
.product-thumb.fj-global-card .fj-card-price {
  margin: 0 0 2px !important;
  font-size: 16px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  color: #202939 !important;
}

.product-thumb.fj-global-card .fj-tax-label {
  margin: 0 0 6px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  color: #667085 !important;
}

/* Form senza spazio extra */
.product-thumb.fj-global-card form {
  margin: 0 !important;
  padding: 0 !important;
}

/* Pulsante più vicino e uniforme */
.product-thumb.fj-global-card .fj-card-actions {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.product-thumb.fj-global-card .fj-card-cart {
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 40px !important;
}

.product-thumb.fj-global-card .fj-card-cart span {
  font-size: 13px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* Se ci sono vecchi moduli con button-group */
.product-thumb .button-group {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Mobile */
@media(max-width: 767px) {
  .product-thumb.fj-global-card {
    min-height: 470px !important;
  }

  .product-thumb.fj-global-card .fj-card-image {
    height: 150px !important;
    min-height: 150px !important;
  }

  .product-thumb.fj-global-card .fj-card-image img {
    max-height: 135px !important;
  }

  .product-thumb.fj-global-card .fj-card-title,
  .product-thumb.fj-global-card .fj-card-title a {
    min-height: 72px !important;
    max-height: 72px !important;
    font-size: 14px !important;
  }
}

/* =========================================================
   FINE FARMAJAM - CARD PRODOTTO UNIFORMI E PIÙ COMPATTE
   ========================================================= */


/* =========================================================
   FARMAJAM - FIX DEFINITIVO CARD PRODOTTO
   Titolo, prezzo e pulsante ordinati
   ========================================================= */

.product-thumb.fj-global-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 430px !important;
  background: #fff !important;
  border: 1px solid #eaecf0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

/* Immagine uniforme */
.product-thumb.fj-global-card .fj-card-image {
  height: 165px !important;
  min-height: 165px !important;
  padding: 16px 16px 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.product-thumb.fj-global-card .fj-card-image a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

.product-thumb.fj-global-card .fj-card-image img {
  max-height: 150px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

/* Contenuto */
.product-thumb.fj-global-card .fj-card-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: 12px 14px 14px !important;
}

/* Titolo: massimo 3 righe, senza tagliare brutalmente */
.product-thumb.fj-global-card .fj-card-title {
  margin: 0 0 10px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  overflow: hidden !important;
}

.product-thumb.fj-global-card .fj-card-title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: 14px !important;
  line-height: 1.32 !important;
  font-weight: 800 !important;
  color: #1f2937 !important;
  text-transform: none !important;
  text-decoration: none !important;
}

/* Nasconde eventuali descrizioni standard */
.product-thumb.fj-global-card p,
.product-thumb.fj-global-card .description,
.product-thumb.fj-global-card .fj-card-description {
  display: none !important;
}

/* Blocco prezzo + bottone sempre in basso ma compatto */
.product-thumb.fj-global-card .fj-card-bottom {
  margin-top: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Prezzo visibile e vicino al bottone */
.product-thumb.fj-global-card .fj-card-price {
  display: block !important;
  margin: 0 0 2px !important;
  font-size: 17px !important;
  line-height: 1.15 !important;
  font-weight: 850 !important;
  color: #202939 !important;
}

.product-thumb.fj-global-card .fj-card-price .price-new {
  color: #202939 !important;
  font-weight: 850 !important;
}

.product-thumb.fj-global-card .fj-card-price .price-old {
  color: #98a2b3 !important;
  font-size: 13px !important;
  text-decoration: line-through !important;
  font-weight: 500 !important;
  margin-left: 6px !important;
}

.product-thumb.fj-global-card .fj-tax-label {
  display: block !important;
  margin: 0 0 8px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  color: #667085 !important;
  font-weight: 500 !important;
}

/* Form e pulsante */
.product-thumb.fj-global-card form {
  margin: 0 !important;
  padding: 0 !important;
}

.product-thumb.fj-global-card .fj-card-actions {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: flex !important;
}

.product-thumb.fj-global-card .fj-card-cart {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 11px !important;
  background: #263445 !important;
  color: #fff !important;
  border: 0 !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.product-thumb.fj-global-card .fj-card-cart:hover {
  background: #1f2937 !important;
  color: #fff !important;
}

.product-thumb.fj-global-card .fj-card-cart span {
  display: inline !important;
  font-size: 13px !important;
  color: #fff !important;
  white-space: nowrap !important;
}

/* Elimina eventuali pseudo-testi vecchi */
.product-thumb.fj-global-card .fj-card-cart::after,
.product-thumb .button-group button:first-child::after,
.product-thumb .button-group a:first-child::after {
  content: none !important;
  display: none !important;
}

/* Mobile */
@media(max-width: 767px) {
  .product-thumb.fj-global-card {
    min-height: 400px !important;
  }

  .product-thumb.fj-global-card .fj-card-image {
    height: 145px !important;
    min-height: 145px !important;
  }

  .product-thumb.fj-global-card .fj-card-image img {
    max-height: 130px !important;
  }

  .product-thumb.fj-global-card .fj-card-title {
    min-height: 54px !important;
    max-height: 54px !important;
  }

  .product-thumb.fj-global-card .fj-card-title a {
    font-size: 13px !important;
  }
}

/* =========================================================
   FINE FARMAJAM - FIX DEFINITIVO CARD PRODOTTO
   ========================================================= */


/* =========================================================
   FARMAJAM - CARD PIÙ COMPATTE SENZA SPAZIO VUOTO
   ========================================================= */

/* Card meno alte */
.product-thumb.fj-global-card {
  min-height: 365px !important;
  height: 100% !important;
}

/* Immagine leggermente più compatta */
.product-thumb.fj-global-card .fj-card-image {
  height: 150px !important;
  min-height: 150px !important;
  padding: 14px 14px 2px !important;
}

.product-thumb.fj-global-card .fj-card-image img {
  max-height: 138px !important;
}

/* Contenuto più stretto */
.product-thumb.fj-global-card .fj-card-content {
  padding: 10px 12px 12px !important;
}

/* Titolo compatto */
.product-thumb.fj-global-card .fj-card-title {
  min-height: 54px !important;
  max-height: 54px !important;
  margin: 0 0 10px !important;
}

.product-thumb.fj-global-card .fj-card-title a {
  font-size: 13px !important;
  line-height: 1.32 !important;
  -webkit-line-clamp: 3 !important;
}

/* NON spingere più prezzo e pulsante in fondo */
.product-thumb.fj-global-card .fj-card-bottom {
  margin-top: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Prezzo subito sotto il titolo */
.product-thumb.fj-global-card .fj-card-price {
  margin: 0 0 1px !important;
  font-size: 17px !important;
  line-height: 1.1 !important;
}

.product-thumb.fj-global-card .fj-tax-label {
  margin: 0 0 8px !important;
  font-size: 11px !important;
}

/* Pulsante vicino al prezzo */
.product-thumb.fj-global-card form {
  margin-top: 0 !important;
}

.product-thumb.fj-global-card .fj-card-cart {
  height: 40px !important;
  min-height: 40px !important;
  line-height: 40px !important;
  border-radius: 10px !important;
}

/* Su mobile ancora più compatto */
@media(max-width: 767px) {
  .product-thumb.fj-global-card {
    min-height: 340px !important;
  }

  .product-thumb.fj-global-card .fj-card-image {
    height: 135px !important;
    min-height: 135px !important;
  }

  .product-thumb.fj-global-card .fj-card-image img {
    max-height: 122px !important;
  }

  .product-thumb.fj-global-card .fj-card-title {
    min-height: 50px !important;
    max-height: 50px !important;
  }
}

/* =========================================================
   FINE FARMAJAM - CARD PIÙ COMPATTE SENZA SPAZIO VUOTO
   ========================================================= */


/* =========================================================
   FARMAJAM - FIX MOBILE TESTO BOTTONE CARRELLO
   ========================================================= */

@media(max-width: 575px) {
  .product-thumb.fj-global-card .fj-card-cart {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    line-height: 42px !important;
    white-space: nowrap !important;
  }

  .product-thumb.fj-global-card .fj-card-cart span {
    display: inline-block !important;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-align: center !important;
  }
}

/* =========================================================
   FINE FARMAJAM - FIX MOBILE TESTO BOTTONE CARRELLO
   ========================================================= */


/* =========================================================
   FARMAJAM - FIX DEFINITIVO TESTO BOTTONE MOBILE
   ========================================================= */

.product-thumb.fj-global-card .fj-card-actions .fj-card-cart {
  font-size: 13px !important;
  color: #ffffff !important;
  text-indent: 0 !important;
  overflow: visible !important;
}

.product-thumb.fj-global-card .fj-card-actions .fj-card-cart span {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 750 !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
}

/* annulla vecchie regole che nascondevano span o icone */
.product-thumb.fj-global-card .button-group button:first-child span,
.product-thumb.fj-global-card .button-group a:first-child span,
.product-thumb.fj-global-card .fj-card-cart span {
  display: inline-flex !important;
}

/* mobile: testo più corto per evitare overflow */
@media(max-width: 575px) {
  .product-thumb.fj-global-card .fj-card-actions .fj-card-cart {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 10px !important;
  }

  .product-thumb.fj-global-card .fj-card-actions .fj-card-cart span {
    font-size: 0 !important;
  }

  .product-thumb.fj-global-card .fj-card-actions .fj-card-cart span::after {
    content: "Aggiungi";
    display: inline-block !important;
    font-size: 14px !important;
    color: #ffffff !important;
    font-weight: 750 !important;
    line-height: 1 !important;
  }
}

/* =========================================================
   FINE FARMAJAM - FIX DEFINITIVO TESTO BOTTONE MOBILE
   ========================================================= */


/* =========================================================
   FARMAJAM - CLICK CATEGORIA PRINCIPALE MENU
   ========================================================= */

@media(min-width: 992px) {
  #menu .navbar-nav > li.dropdown > a,
  nav.navbar .navbar-nav > li.dropdown > a,
  .navbar .navbar-nav > li.dropdown > a {
    cursor: pointer !important;
  }

  #menu .navbar-nav > li.dropdown:hover > .dropdown-menu,
  nav.navbar .navbar-nav > li.dropdown:hover > .dropdown-menu,
  .navbar .navbar-nav > li.dropdown:hover > .dropdown-menu {
    display: block !important;
  }
}

/* =========================================================
   FINE FARMAJAM - CLICK CATEGORIA PRINCIPALE MENU
   ========================================================= */


/* =========================================================
   FARMAJAM - CHECKOUT A STEP
   ========================================================= */

body.fj-checkout-steps-page #content {
  max-width: 1180px !important;
  margin: 0 auto !important;
}

body.fj-checkout-steps-page h1 {
  font-size: 34px !important;
  font-weight: 850 !important;
  color: #202939 !important;
  margin: 18px 0 10px !important;
}

body.fj-checkout-steps-page .fj-checkout-wizard {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 18px !important;
  padding: 16px !important;
  margin: 18px 0 26px !important;
  box-shadow: 0 10px 30px rgba(16,24,40,.06) !important;
}

body.fj-checkout-steps-page .fj-checkout-steps {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
}

body.fj-checkout-steps-page .fj-checkout-steps button {
  border: 1px solid #d9e3ec !important;
  background: #f8fafc !important;
  color: #667085 !important;
  border-radius: 14px !important;
  min-height: 58px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  cursor: pointer !important;
}

body.fj-checkout-steps-page .fj-checkout-steps button span {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #e5e7eb !important;
  color: #202939 !important;
  font-size: 14px !important;
}

body.fj-checkout-steps-page .fj-checkout-steps button.active {
  background: #263445 !important;
  border-color: #263445 !important;
  color: #fff !important;
}

body.fj-checkout-steps-page .fj-checkout-steps button.active span {
  background: #fff !important;
  color: #263445 !important;
}

body.fj-checkout-steps-page .fj-checkout-steps button.done {
  background: #eaf7fb !important;
  border-color: #b9dfec !important;
  color: #0b84b8 !important;
}

body.fj-checkout-steps-page .fj-checkout-steps button.done span {
  background: #0b84b8 !important;
  color: #fff !important;
}

/* Nasconde scelta registra/ospite */
body.fj-checkout-steps-page .fj-hide-account-choice {
  display: none !important;
}

/* Step visibility */
body.fj-checkout-step-1 .fj-step-shipping,
body.fj-checkout-step-1 .fj-step-payment {
  display: none !important;
}

body.fj-checkout-step-2 .fj-step-customer,
body.fj-checkout-step-2 .fj-step-payment {
  display: none !important;
}

body.fj-checkout-step-3 .fj-step-customer,
body.fj-checkout-step-3 .fj-step-shipping {
  display: none !important;
}

/* Layout quando è a step: colonna unica più chiara */
body.fj-checkout-steps-page #content > .row {
  display: block !important;
}

body.fj-checkout-steps-page #content > .row > [class*="col"] {
  width: 100% !important;
  max-width: 100% !important;
}

/* Titoli sezioni */
body.fj-checkout-steps-page h2,
body.fj-checkout-steps-page h3,
body.fj-checkout-steps-page legend {
  font-size: 25px !important;
  font-weight: 850 !important;
  color: #202939 !important;
  margin: 22px 0 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #e5e7eb !important;
}

/* Card interna dei blocchi */
body.fj-checkout-steps-page .fj-step-customer,
body.fj-checkout-steps-page .fj-step-shipping,
body.fj-checkout-steps-page .fj-step-payment {
  max-width: 920px !important;
}

/* Campi */
body.fj-checkout-steps-page input.form-control,
body.fj-checkout-steps-page select.form-select,
body.fj-checkout-steps-page select.form-control,
body.fj-checkout-steps-page textarea.form-control {
  min-height: 48px !important;
  border: 1px solid #d9e3ec !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-size: 14px !important;
}

body.fj-checkout-steps-page input.form-control:focus,
body.fj-checkout-steps-page select.form-select:focus,
body.fj-checkout-steps-page select.form-control:focus,
body.fj-checkout-steps-page textarea.form-control:focus {
  border-color: #0b84b8 !important;
  box-shadow: 0 0 0 3px rgba(11,132,184,.10) !important;
}

body.fj-checkout-steps-page label,
body.fj-checkout-steps-page .form-label {
  font-weight: 700 !important;
  color: #202939 !important;
  font-size: 13px !important;
}

/* Box metodo spedizione/pagamento */
body.fj-checkout-steps-page .input-group {
  max-width: 620px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

body.fj-checkout-steps-page .input-group .btn {
  min-height: 48px !important;
  font-weight: 800 !important;
  border-radius: 0 10px 10px 0 !important;
}

/* Pulsanti step */
body.fj-checkout-steps-page .fj-checkout-step-actions {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px !important;
  max-width: 920px !important;
  margin: 28px 0 40px !important;
  padding-top: 18px !important;
  border-top: 1px solid #e5e7eb !important;
}

body.fj-checkout-steps-page .fj-step-back,
body.fj-checkout-steps-page .fj-step-next {
  min-height: 46px !important;
  border-radius: 11px !important;
  font-weight: 850 !important;
  padding: 10px 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.fj-checkout-steps-page .fj-step-back {
  background: #fff !important;
  border: 1px solid #d9e3ec !important;
  color: #202939 !important;
}

body.fj-checkout-steps-page .fj-step-next {
  background: #263445 !important;
  border: 1px solid #263445 !important;
  color: #fff !important;
  margin-left: auto !important;
}

/* Bottoni OpenCart */
body.fj-checkout-steps-page .btn-primary {
  background: #263445 !important;
  border-color: #263445 !important;
  border-radius: 10px !important;
  font-weight: 850 !important;
  min-height: 44px !important;
}

body.fj-checkout-steps-page .input-group .btn-primary {
  background: #0b84b8 !important;
  border-color: #0b84b8 !important;
}

/* Accettazione termini */
body.fj-checkout-steps-page input[name="agree"] {
  transform: scale(1.18);
}

body.fj-checkout-steps-page a[href*="information"] {
  font-weight: 800 !important;
}

/* Mobile */
@media(max-width: 767px) {
  body.fj-checkout-steps-page #content {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.fj-checkout-steps-page h1 {
    font-size: 27px !important;
  }

  body.fj-checkout-steps-page .fj-checkout-wizard {
    padding: 12px !important;
    border-radius: 15px !important;
  }

  body.fj-checkout-steps-page .fj-checkout-steps {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.fj-checkout-steps-page .fj-checkout-steps button {
    min-height: 48px !important;
    justify-content: flex-start !important;
    padding-left: 14px !important;
  }

  body.fj-checkout-steps-page h2,
  body.fj-checkout-steps-page h3,
  body.fj-checkout-steps-page legend {
    font-size: 21px !important;
  }

  body.fj-checkout-steps-page .fj-checkout-step-actions {
    position: sticky !important;
    bottom: 0 !important;
    background: #fff !important;
    padding: 12px 0 !important;
    z-index: 20 !important;
  }

  body.fj-checkout-steps-page .fj-step-back,
  body.fj-checkout-steps-page .fj-step-next {
    flex: 1 !important;
    padding: 10px 12px !important;
  }
}

/* =========================================================
   FINE FARMAJAM - CHECKOUT A STEP
   ========================================================= */


/* =========================================================
   FARMAJAM - CHECKOUT STEP V2 FIX ACCOUNT/INDIRIZZI
   ========================================================= */

/* Mostra di nuovo Registra account / Acquisto come ospite */
body.fj-checkout-steps-page .fj-hide-account-choice {
  display: block !important;
}

body.fj-checkout-steps-page input[type="radio"][name="account"] {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Step 1 deve includere dati, account, password e indirizzi */
body.fj-checkout-step-1 .fj-step-shipping,
body.fj-checkout-step-1 .fj-step-payment {
  display: none !important;
}

body.fj-checkout-step-1 .fj-step-customer {
  display: block !important;
}

/* Step 2 solo spedizione */
body.fj-checkout-step-2 .fj-step-customer,
body.fj-checkout-step-2 .fj-step-payment {
  display: none !important;
}

body.fj-checkout-step-2 .fj-step-shipping {
  display: block !important;
}

/* Step 3 solo pagamento/conferma */
body.fj-checkout-step-3 .fj-step-customer,
body.fj-checkout-step-3 .fj-step-shipping {
  display: none !important;
}

body.fj-checkout-step-3 .fj-step-payment {
  display: block !important;
}

/* Migliora box radio account */
body.fj-checkout-steps-page input[name="account"] {
  margin-right: 6px !important;
}

body.fj-checkout-steps-page .form-check,
body.fj-checkout-steps-page .radio {
  margin-bottom: 10px !important;
}

/* Titolo step più coerente */
body.fj-checkout-steps-page .fj-checkout-steps button {
  text-align: center !important;
}

/* =========================================================
   FINE FARMAJAM - CHECKOUT STEP V2 FIX ACCOUNT/INDIRIZZI
   ========================================================= */


/* =========================================================
   FARMAJAM - CHECKOUT STEP V3 OVERRIDE
   ========================================================= */

/* V3 usa data-fj-step, quindi annulla i vecchi hide per classi */
body.fj-checkout-steps-v3-page .fj-step-customer,
body.fj-checkout-steps-v3-page .fj-step-shipping,
body.fj-checkout-steps-v3-page .fj-step-payment,
body.fj-checkout-steps-v3-page .fj-hide-account-choice {
  display: initial !important;
}

/* Però se V3 mette display:none inline, deve vincere lui */
body.fj-checkout-steps-v3-page [data-fj-step][style*="display: none"] {
  display: none !important;
}

/* Step wizard resta uguale */
body.fj-checkout-steps-v3-page .fj-checkout-wizard {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 18px !important;
  padding: 16px !important;
  margin: 18px 0 26px !important;
  box-shadow: 0 10px 30px rgba(16,24,40,.06) !important;
}

body.fj-checkout-steps-v3-page .fj-checkout-steps {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
}

body.fj-checkout-steps-v3-page .fj-checkout-steps button {
  border: 1px solid #d9e3ec !important;
  background: #f8fafc !important;
  color: #667085 !important;
  border-radius: 14px !important;
  min-height: 58px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

body.fj-checkout-steps-v3-page .fj-checkout-steps button span {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #e5e7eb !important;
  color: #202939 !important;
}

body.fj-checkout-steps-v3-page .fj-checkout-steps button.active {
  background: #263445 !important;
  border-color: #263445 !important;
  color: #fff !important;
}

body.fj-checkout-steps-v3-page .fj-checkout-steps button.active span {
  background: #fff !important;
  color: #263445 !important;
}

body.fj-checkout-steps-v3-page .fj-checkout-steps button.done {
  background: #eaf7fb !important;
  border-color: #b9dfec !important;
  color: #0b84b8 !important;
}

body.fj-checkout-steps-v3-page .fj-checkout-steps button.done span {
  background: #0b84b8 !important;
  color: #fff !important;
}

body.fj-checkout-steps-v3-page .fj-checkout-step-actions {
  display: flex !important;
  justify-content: space-between !important;
  gap: 14px !important;
  max-width: 920px !important;
  margin: 28px 0 40px !important;
  padding-top: 18px !important;
  border-top: 1px solid #e5e7eb !important;
}

body.fj-checkout-steps-v3-page .fj-step-back,
body.fj-checkout-steps-v3-page .fj-step-next {
  min-height: 46px !important;
  border-radius: 11px !important;
  font-weight: 850 !important;
  padding: 10px 24px !important;
}

body.fj-checkout-steps-v3-page .fj-step-next {
  background: #263445 !important;
  border: 1px solid #263445 !important;
  color: #fff !important;
  margin-left: auto !important;
}

body.fj-checkout-steps-v3-page .fj-step-back {
  background: #fff !important;
  border: 1px solid #d9e3ec !important;
  color: #202939 !important;
}

@media(max-width: 767px) {
  body.fj-checkout-steps-v3-page .fj-checkout-steps {
    grid-template-columns: 1fr !important;
  }

  body.fj-checkout-steps-v3-page .fj-checkout-steps button {
    justify-content: flex-start !important;
    min-height: 48px !important;
  }

  body.fj-checkout-steps-v3-page .fj-checkout-step-actions {
    position: sticky !important;
    bottom: 0 !important;
    background: #fff !important;
    padding: 12px 0 !important;
    z-index: 30 !important;
  }

  body.fj-checkout-steps-v3-page .fj-step-back,
  body.fj-checkout-steps-v3-page .fj-step-next {
    flex: 1 !important;
  }
}

/* =========================================================
   FINE FARMAJAM - CHECKOUT STEP V3 OVERRIDE
   ========================================================= */


/* =========================================================
   FARMAJAM - RESET CHECKOUT STEP ROTTO
   Riporta visibili i blocchi checkout
   ========================================================= */

body[class*="fj-checkout"] .fj-checkout-wizard,
body[class*="fj-checkout"] .fj-checkout-step-actions {
  display: none !important;
}

body[class*="fj-checkout"] [data-fj-step],
body[class*="fj-checkout"] .fj-step-customer,
body[class*="fj-checkout"] .fj-step-shipping,
body[class*="fj-checkout"] .fj-step-payment,
body[class*="fj-checkout"] .fj-hide-account-choice {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body[class*="fj-checkout"] input,
body[class*="fj-checkout"] select,
body[class*="fj-checkout"] textarea,
body[class*="fj-checkout"] button {
  visibility: visible !important;
  opacity: 1 !important;
}

/* =========================================================
   FINE FARMAJAM - RESET CHECKOUT STEP ROTTO
   ========================================================= */


/* =========================================================
   FARMAJAM - CHECKOUT A STEP TEMPLATE
   ========================================================= */

.fj-checkout-template-steps #content {
  max-width: 1220px !important;
  margin: 0 auto !important;
}

.fj-checkout-template-steps h1 {
  font-size: 34px !important;
  font-weight: 850 !important;
  color: #202939 !important;
  margin: 22px 0 10px !important;
}

.fj-checkout-login-text {
  color: #667085 !important;
  font-size: 14px !important;
  margin-bottom: 18px !important;
}

.fj-checkout-stepbar {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 18px !important;
  padding: 16px !important;
  margin: 18px 0 28px !important;
  box-shadow: 0 10px 30px rgba(16,24,40,.06) !important;
}

.fj-step-tab {
  min-height: 58px !important;
  border-radius: 14px !important;
  border: 1px solid #d9e3ec !important;
  background: #f8fafc !important;
  color: #667085 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-weight: 850 !important;
}

.fj-step-tab span {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: #e5e7eb !important;
  color: #202939 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
}

.fj-step-tab.active {
  background: #263445 !important;
  border-color: #263445 !important;
  color: #fff !important;
}

.fj-step-tab.active span {
  background: #fff !important;
  color: #263445 !important;
}

.fj-step-tab.done {
  background: #eaf7fb !important;
  border-color: #b9dfec !important;
  color: #0b84b8 !important;
}

.fj-step-tab.done span {
  background: #0b84b8 !important;
  color: #fff !important;
}

.fj-checkout-step {
  display: none !important;
  max-width: 960px !important;
}

.fj-checkout-step.active {
  display: block !important;
}

.fj-checkout-step h2 {
  font-size: 26px !important;
  font-weight: 850 !important;
  color: #202939 !important;
  margin: 22px 0 18px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.fj-checkout-block {
  background: #fff !important;
  border-radius: 16px !important;
  margin-bottom: 20px !important;
}

/* Campi checkout */
.fj-checkout-template-steps input.form-control,
.fj-checkout-template-steps select.form-select,
.fj-checkout-template-steps select.form-control,
.fj-checkout-template-steps textarea.form-control {
  min-height: 48px !important;
  border: 1px solid #d9e3ec !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-size: 14px !important;
}

.fj-checkout-template-steps input.form-control:focus,
.fj-checkout-template-steps select.form-select:focus,
.fj-checkout-template-steps select.form-control:focus,
.fj-checkout-template-steps textarea.form-control:focus {
  border-color: #0b84b8 !important;
  box-shadow: 0 0 0 3px rgba(11,132,184,.10) !important;
}

.fj-checkout-template-steps label,
.fj-checkout-template-steps .form-label {
  font-weight: 700 !important;
  color: #202939 !important;
  font-size: 13px !important;
}

/* Bottoni interni OpenCart */
.fj-checkout-template-steps .btn-primary {
  background: #263445 !important;
  border-color: #263445 !important;
  border-radius: 10px !important;
  font-weight: 850 !important;
  min-height: 44px !important;
}

.fj-checkout-template-steps .input-group .btn-primary {
  background: #0b84b8 !important;
  border-color: #0b84b8 !important;
}

.fj-step-actions {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px !important;
  max-width: 960px !important;
  margin: 30px 0 46px !important;
  padding-top: 18px !important;
  border-top: 1px solid #e5e7eb !important;
}

.fj-step-back,
.fj-step-next {
  min-height: 46px !important;
  border-radius: 11px !important;
  font-weight: 850 !important;
  padding: 10px 26px !important;
  align-items: center !important;
  justify-content: center !important;
}

.fj-step-back {
  background: #fff !important;
  border: 1px solid #d9e3ec !important;
  color: #202939 !important;
}

.fj-step-next {
  background: #263445 !important;
  border: 1px solid #263445 !important;
  color: #fff !important;
  margin-left: auto !important;
}

/* Rimuove residui dei vecchi esperimenti */
.fj-checkout-template-steps .fj-checkout-wizard,
.fj-checkout-template-steps .fj-checkout-step-actions {
  display: none !important;
}

/* Mobile */
@media(max-width: 767px) {
  .fj-checkout-template-steps #content {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .fj-checkout-template-steps h1 {
    font-size: 28px !important;
  }

  .fj-checkout-stepbar {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }

  .fj-step-tab {
    min-height: 50px !important;
    justify-content: flex-start !important;
    padding-left: 14px !important;
  }

  .fj-checkout-step h2 {
    font-size: 22px !important;
  }

  .fj-step-actions {
    position: sticky !important;
    bottom: 0 !important;
    background: #fff !important;
    z-index: 30 !important;
    padding: 12px 0 !important;
  }

  .fj-step-back,
  .fj-step-next {
    flex: 1 !important;
    padding: 10px 12px !important;
  }
}

/* =========================================================
   FINE FARMAJAM - CHECKOUT A STEP TEMPLATE
   ========================================================= */
