/* CSS Document */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap");

:root {
  --colore-principale: #ca674e; /* colore richiesto */
  --colore-secondario: #fafafa; /* colore di sfondo */
  --colore-testo: #333; /* colore del testo */
  --colore-testo-secondario: #777; /* colore del testo secondario */
  --colore-preferito: red; /* colore per il cuore preferito */
  --colore-badge: red; /* colore per il badge del carrello */
  --colore-bianco: #fff;
  --colore-grigiochiaro: #ccc;
}

/* Applicazione del font al body */
* {
  font-family: "Roboto Condensed", sans-serif;

  margin: 0;
  padding: 0;
  box-sizing: border-box;

  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+ */
  user-select: none; /* Standard */
}

/* Stili per la sezione di descrizione categoria */
.category-description {
  width: 100%;
  background-color: var(--colore-bianco);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  height: 100px;
  overflow: auto;
}

.category-description h2 {
  color: var(--colore-principale);
  font-size: 1.4rem;
  /* margin-bottom: 8px; */
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  text-align: center;
}

.category-description p {
  color: var(--colore-testo-secondario);
  font-size: 1rem;
  line-height: 1.4;
}

.gost {
  display: none !important;
}
/* Abilita la selezione per input e per elementi con classe .trueselect */
input,
.trueselect {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

html {
  height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: var(--colore-testo);
  background-color: var(--colore-secondario);
  overflow-x: hidden;
  position: relative;
  height: calc(100% - 60px);
  height: 100%;
  overflow: hidden;
}
/* HEADER FISSO CON EFFETTO SHRINK */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--colore-principale);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  padding: 0px 15px;
  color: #fff;
  height: 60px; /* altezza fissa per semplificare */
}
header.shrink {
  padding: 5px 20px;
  height: 50px;
}
.logo {
  height: 50px;
  transition: height 0.3s ease;
}
header.shrink .logo {
  height: 30px;
}

/* Stile per il contenitore header-left con titolo e stato connessione */
.header-left {
  display: flex;
  flex-direction: row;
}
.header-right {
    width: 100%;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: flex-end;
}

.header-right > div {
    position: relative;
    margin-left: 11px;
}

div#cartIcon {
    font-size: 1.2em;
}

/* MENU (SELECT NEGOZIO + FILTRA) */
nav {
  display: flex;
  align-items: center;
}
.shop-select {
  background-color: #fff;
  color: var(--colore-testo);
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  margin-right: 15px;
  font-size: 0.9rem;
}
.filter-container {
}
.filter-link {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}
.filter-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background-color: var(--colore-bianco);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 10px;
  border-radius: 5px;
}
.filter-dropdown li {
  margin: 5px 0;
}
.filter-dropdown a {
  text-decoration: none;
  color: var(--colore-testo);
  font-weight: normal;
}
.filter-container:hover .filter-dropdown {
  display: block;
}
/* CONTENITORE DEL CATALOGO (MASONRY RESPONSIVE) */
.catalog-container {
  /* Spazio sufficiente per header e footer fissi */
  padding: 10px;
  width: 100%;
  display: grid;
  grid-gap: 10px;
  margin-top: 60px; /* per non sovrapporre l'header */
  /* margin-bottom: 70px; */ /* per non sovrapporre il footer */
}
/* 2 colonne su smartphone, 4 su tablet, 6 su desktop ampi */
@media (max-width: 600px) {
  .catalog-container {
    /* grid-template-columns: repeat(2, 1fr); */
  }
}
@media (min-width: 601px) and (max-width: 1024px) {
  .catalog-container {
    /* grid-template-columns: repeat(4, 1fr); */
  }
}
@media (min-width: 1025px) {
  .catalog-container {
    /* grid-template-columns: repeat(6, 1fr); */
  }
}
/* CARD PRODOTTO */
.product-card {
  position: relative;
  background-color: var(--colore-bianco);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 10px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-in-out;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-2px);
}
/* IMMAGINE */
.product-card img {
  width: 100%;
  height: auto;
  max-width: 200px;
  object-fit: cover;
  border-radius: 5px;
  /* o width: 100% se ÃƒÆ’Ã‚Â¨ contenuto in un wrapper con larghezza definita */
  aspect-ratio: 1/1;
  object-fit: contain; /* adatta l'immagine al quadrato tagliando le parti in eccesso */
  border-radius: 5px;
}
.product-info {
  width: 100%;
  text-align: center;
  margin-top: 10px;
}
.product-ean {
  font-size: 0.8rem;
  color: var(--colore-testo-secondario);
}
.product-title {
  font-size: 0.85rem;
  font-weight: 900;
  margin: 5px 0;
  text-align: left;
}
.product-box {
  font-size: 0.9rem;
  color: #555;
  display: flex;
}
.product-price {
  margin-top: 5px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  margin-bottom: 5px;
}
.product-price del {
  color: var(--colore-testo-secondario);
  font-size: 0.9rem;
  margin-right: 5px;
}
.product-price span {
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 5px;
}
/* CUORICINO PREFERITI */
.fav-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--colore-testo-secondario);
}
.fav-heart:hover {
  color: var(--colore-preferito);
}
/* PULSANTI + E - */
.quantity-controls {
  /* margin-top: 10px; */
  /* display: flex; */
  justify-content: center;
  /* align-items: center; */
  position: absolute;
  /* background: blue; */
  width: 100%;
  height: 100%;
  top: 0;
}
.quantity-controls button {
  width: 50%;
  height: 100%;
  border: none;
  background-color: #f2f2f200;
  cursor: pointer;
  font-size: 1.2rem;
}
.quantity-controls .qty {
  width: 40px;
  top: 22%;
}
img.logo-login {
    max-width: 198px;
    margin: auto;
}

.content_logo {
    display: flex;
    position: absolute;
    top: -109px;
    width: 100%;
    right: 0;
    justify-content: center;
}
/* FOOTER FISSO */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--colore-bianco);
  text-align: center;
  padding: 5px 10px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  height: 50px;
  align-content: center;
}
footer .footer-left {
  display: flex;
  align-items: center;
  width: 100%;
}
footer .footer-left input[type=\"text\"] {
  padding: 5px;
  border: 1px solid var(--colore-grigiochiaro);
  border-radius: 3px;
}
footer .footer-right {
  display: flex;
  align-items: center;
}
footer .icon-btn {
  margin-left: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--colore-testo);
  font-size: 1.1rem;
  position: relative;
  display: flex;
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background-color: var(--colore-badge);
  color: var(--colore-bianco);
  font-size: 0.7rem;
  padding: 2px 5px;
  border-radius: 25px;
}
/* Testi footer icone esempio */
.icon-btn .icon-text {
  margin-left: 5px;
}
.remove-transition {
  transition: transform 0.4s, filter 0.4s;
  transform: scale(0.9);
  filter: blur(2px);
}
.quantity-controls .check {
  display: none; /* Di default nascosta */
  margin-left: 5px;
  background-color: #8bc34a;
  border: none;
  color: var(--colore-bianco);
  padding: 5px 8px;
  border-radius: 3px;
  cursor: pointer;
}

.cart-badge.animate-cart-badge {
  animation: cartBadgeJump 0.3s ease-in-out;
}

@keyframes cartBadgeJump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.product-card.animate-minus-card {
  transition: transform 0.3s, opacity 0.3s;
  transform: scale(0.95);
  opacity: 0.8;
}

/* Contenitore per i prodotti */
.catalog-container,
.negozio-container {
  padding: 10px;
  height: calc(100% - 49px);
  overflow-y: auto;
  /* border: 1px solid #ff0000; */
  position: relative;
  padding-bottom: 65px;
}
/* Spinner infinite scroll */
.loading-spinner {
  text-align: center;
  padding: 10px;
  font-size: 1.2em;
  display: none;
}
/* Blocchi contenenti le card */
.block {
  margin-bottom: 3px;
  transition: background-color 0.3s;
  /* Imposta un'altezza minima per simulare lo spazio che il blocco occuperebbe */
  min-height: 300px;
}
/* Layout grid per il contenuto di ogni blocco */
.block-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 3px;
}

@media (max-width: 400px) {
  .block-content {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
/* Placeholder: mantiene lo spazio quando il blocco ÃƒÆ’Ã‚Â¨ scaricato */
.placeholder {
  background: #efefef;
}
span.ean-value {
  font-size: 0.7em;
  text-align: left;
  width: 100%;
  display: block;
  padding: 4px;
  padding-right: 1px;
  padding-bottom: 0px;
  padding-left: 1px;
}
.product-disp {
  position: absolute;
  top: 5px;
  font-size: 0.7em;
  color: chocolate;
  right: 0px;
  display: none;
}

.info {
  position: relative;
}

span.pezzi {
  background: #98d4d4;
  padding: 3px;
  border-radius: 5px;
  padding-right: 10px;
  padding-left: 10px;
  text-align: center;
  display: block;
  width: auto;
  margin: auto;
  color: #000000;
  font-size: 1em;
  font-weight: 400;
}
span.promo-block {
  font-weight: 500;
}

.minusplus {
  display: flex;
  align-content: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  align-items: center;
  padding: 10px;
}
.imagelayer {
  width: 100%;
  position: relative;
  max-width: 200px;
}

.counter_cart {
  text-align: center;
  border: solid 2px var(--colore-bianco);
  position: absolute;
  font-size: 28px;
  border-radius: 37px;
  text-align: center;
  background: #e80d0d;
  color: var(--colore-bianco);
  height: 45px;
  min-width: 45px;
  display: flex !important;
  align-content: center;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  padding: 13px;
  z-index: 3;
}

.wrap_counter_cart {
  width: 100%;
  height: auto;
  max-width: 200px;
  object-fit: cover;
  border-radius: 5px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 5px;
  position: absolute;
  background: #00000040;
  top: 0;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(1px);
}

.minusplus .minus,
.minusplus .plus {
  position: relative;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden; /* assicura che l'overlay non esca dai limiti */
}

/* Crea un overlay che contiene il gradiente */
.minusplus .minus::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(270deg, #ffffff00, var(--colore-bianco));
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none; /* assicura che l'overlay non blocchi i click */
}

/* Al tap (stato attivo) l'overlay diventa visibile */
.minusplus .minus:active::after {
  opacity: 1;
}

/* Crea un overlay che contiene il gradiente */
.minusplus .plus::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ffffff00, var(--colore-bianco));
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none; /* assicura che l'overlay non blocchi i click */
}

/* Al tap (stato attivo) l'overlay diventa visibile */
.minusplus .plus:active::after {
  opacity: 1;
}
.flexInfo {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#progressBarContainer {
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background: #000000c9;
  display: flex;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  align-content: center;
  align-items: center;
  padding: 20%;
  backdrop-filter: blur(1px) grayscale(1);
}

#progressBarWRAP {
  background-color: #efefef;
  width: 100%;
  height: 101px;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgb(0 0 0 / 30%);
  display: flex;
  align-items: center;
  padding: 40px;
}
#progressBar {
  height: 20px;
  width: 0%;
  background: var(--colore-principale);
  position: relative;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.39, 0.58, 0.57, 1);
}

div#progressBar_BG {
  /* width: 100%; */
  position: absolute;
  background: #cecece;
  height: 20px;
  left: 0;
  right: 0;
  margin-right: 40px;
  margin-left: 40px;
  z-index: 0;
}

div#progressBarWRAP > div {
  border-radius: 35px;
}

/* Layout compatto per filtri */
.filter-panel {
  display: flex;
  flex-direction: column;
  padding: 10px;
  margin-bottom: 15px;
  padding-right: 5px;
}

.filter-toggle {
  display: flex;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #ccc;
  margin-right: 10px;
  height: 42px;
}

.toggle-button {
  border: none;
  background: #eee;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 16px;
  display: block;
}

.toggle-button.active {
  background: #ca674e;
  color: white;
  display: none;
}

.filter-content {
  flex: 1;
  position: relative;
  width: 100%;
}

.filter-container {
  display: none;
  width: 100%;
  position: relative;
  /* display: flex; */
}

.filter-container.active {
  display: block;
}

.filter-search,
.filter-select-advanced {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  height: 43px;
}

.filter-reset {
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  margin-left: 10px;
  font-size: 0.8em;
  height: 22px;
  position: absolute;
  right: 28px;
  width: 22px;
}

.filter-counter {
  background-color: #b5553e;
  padding: 5px 10px;
  border-radius: 15px;
  /* margin-top: 5px; */
  font-size: 0.6em;
  padding-right: 15px;
  display: inline-block;
  color: white;
  /* align-self: flex-start; */
}

/* Modifica stile per il counter quando ÃƒÂ¨ all'interno del titolo della descrizione categoria */
.category-description h2 .filter-counter {
  /* font-size: 0.6em; */
  /* background-color: #b5553e; */
  /* color: #ffffff; */
  padding: 3px 10px;
  /* border-radius: 15px; */
  /* margin-left: 10px; */
  /* height: auto; */
  /* vertical-align: middle; */
  font-weight: 400;
  margin-top: 2px;
}

#searchFilter {
  width: 100%;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #c3c3c3;
  background-color: #eaeaea;
  color: var(--colore-principale);
  font-size: 1em;
  font-weight: 400;
  /* margin-bottom: 15px; */
  padding-left: 35px;
}

#searchFilter::placeholder {
  color: #a3a3a3;
}

#searchFilter:focus {
  outline: none;
  /* border: 2px solid #ff9f87; */
  background-color: #5b5b5b;
  color: var(--lt-color-gray-100);
}
span.icon-cerca {
    position: absolute;
    top: 6px;
    left: 6px;
}
/* Stili per la vista ad albero delle categorie */
.categories-tree-container {
  width: 100%;
  margin-top: 10px;
  padding: 0;
}

.categories-tree-container h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
  padding-left: 5px;
  font-weight: 600;
}
h3.titlecat {
  display: flex;
  align-content: center;
  align-items: flex-end;
  justify-content: space-between;
  display: none;
}
.categories-tree {
  /* max-height: calc(100vh - 250px); */
  overflow-y: auto;
  /* padding: 5px; */
  margin-bottom: 15px;
  border-radius: 4px;
  background-color: #f9f9f9;
  /* border: 1px solid #eaeaea; */
}

.categories-tree .category-item {
  border-radius: 4px;
  /* margin-bottom: 5px; */
  cursor: pointer;
  transition: background-color 0.2s;
}

.categories-tree .category-item .category-name {
  padding: 7px 9px;
  font-weight: bold;
}

.categories-tree .subcategories {
  padding-left: 13px;
  margin-bottom: 5px;
}

.categories-tree .subcategory-item {
  padding: 6px 4px;
  margin-bottom: 0px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.categories-tree .category-item:hover,
.categories-tree .subcategory-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.categories-tree .category-item.active,
.categories-tree .subcategory-item.active {
  background-color: rgba(202, 103, 78, 0.15);
  color: var(--colore-principale);
}

.categories-tree .category-item.promo {
  color: #e74c3c;
  font-weight: bold;
}

.categories-tree .category-item.promo.active {
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

/* Stili per il menu laterale */

.panellslide {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
  width: 350px;
  flex-direction: column;
}

.menu-panel.open {
  /* right: 0; */
}

.menu-panel.fullscreen {
  width: 100%;
  right: -100%;
}

.menu-panel.fullscreen.open {
  right: 0;
}

.menu-header {

}

.menu-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.menu-content {
  padding: 15px;
  overflow-y: auto;
  max-height: calc(100vh - 70px); /* header height + padding */
  padding-bottom: 50px;
  padding: 10px 0;
}

.menu-items {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.menu-items li {
  margin-bottom: 12px;
}

.menu-items li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.menu-items li a:hover {
  background-color: #f5f5f5;
}

body.menu-open {
  overflow: hidden;
}

/* Pulsante menu */
.menu-button-container {
  display: flex;
  align-items: center;
}

.menu-button {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px 10px;
}

.headpannel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background-color: #ca674e;
  color: #fff;
  border-bottom: 1px solid #e0e0e0;
  height: 61px;
}

/* Stili per le card dei negozi */
.negozio-container {
  display: flex;
  gap: 20px;
  padding: 20px;
  margin-top: 60px;
  padding-top: 31px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  align-content: flex-start;
  padding-bottom: 159px;
}

.shop-card {
  width: 280px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.shop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.shop-image {
  width: 100%;
  height: 100px;
  overflow: hidden;
  position: relative;
}

.shop-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  padding: 11px;
}

.shop-card:hover .shop-image img {
  transform: scale(1.05);
}

.shop-info {
  padding: 15px;
}

.shop-info h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #575757;
}

.shop-info p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.no-shops {
  text-align: center;
  width: 100%;
  padding: 30px;
  font-size: 18px;
  color: #666;
}

/* Stile per l'header logo cliccabile */
header h1 {
  cursor: pointer;
}
.category-description {
  height: 100px;
  overflow: auto;
  margin-bottom: 12px;
  padding: 15px;
  background-color: rgb(249, 249, 249);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Stili per la pagina di login integrata */
.login-container-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--colore-principale);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  background-color: var(--colore-bianco);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  position: relative;
  margin: 13px;
  box-sizing: content-box;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
  /* opacity: 0; */
  height: 63px;
}

.login-header h2 {
  color: var(--colore-principale);
  margin-bottom: 5px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid var(--colore-grigiochiaro);
  border-radius: 4px;
  box-sizing: border-box;
  font-weight: 400;
}

.login-form button {
  background-color: var(--colore-principale);
  color: var(--colore-bianco);
  padding: 14px 20px;
  margin: 15px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  transition: background-color 0.3s;
}

.login-form button:hover {
  background-color: #b55741;
}

.remember-me {
  margin: 15px 0;
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 10px;
}

.error-message {
  background-color: #ffeeee;
  color: #e80000;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
}

/* Pulsante di logout */
.user-controls {
  display: flex;
  align-items: center;
}

.logout-button {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--colore-bianco);
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.logout-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Stili per il toast di notifica */
.toast-notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  z-index: 9999;
  font-size: 14px;
  max-width: 90%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}
.toast-notification.visible {
  opacity: 1;
}

/* Stili per l'indicatore di connessione */
.connection-status, #cartIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  /* margin-left: 10px; */
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}
.connection-status-icon {
  font-size: 18px;
}
.status-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 14px;
  height: 14px;
  background-color: red;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}
.status-badge.hidden {
  display: none;
}

/* Colori stati */
.status-online {
  background-color: rgb(163 255 0 / 62%);
}
.status-offline {
  background-color: rgb(255 0 0 / 83%);
}
.status-update {
  background-color: rgb(255 165 0 / 82%);
}

/* Stili per l'overlay di installazione PWA */
.pwa-install-overlay {
  position: fixed;
  bottom: 49px;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pwa-install-container {
  width: 100%;
  background-color: #3d3d3d;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-content: center;
  align-items: center;
}

.pwa-install-container h2 {
  color: var(--colore-principale);
  margin: 0;
  font-size: 18px;
}

.pwa-install-container p {
  margin-bottom: 15px;
  line-height: 1.5;
  font-size: 16px;
  color: #ffffff;
}

.pwa-install-actions {
  display: flex;
  justify-content: center;
  /* margin-top: 25px; */
  align-content: center;
  align-items: center;
}

.button-primary,
.button-secondary {
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin: 0 10px;
  transition: background-color 0.2s;
}

.button-primary {
  background-color: var(--colore-principale);
  color: white;
}

.button-secondary {
  background-color: #e0e0e0;
  color: #333;
}

.button-primary:hover {
  background-color: #b55a43;
}

.button-secondary:hover {
  background-color: #d0d0d0;
}

.installation-instructions p {
  margin: 8px 0;
  padding-left: 10px;
}

/* Stili per i pulsanti speciali dell'overlay PWA */
.info-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #313131;
  color: var(--colore-principale);
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.info-button:hover {
  background-color: #b55a43;
}

.how-to-button {
  background-color: var(--colore-principale);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.how-to-button:hover {
  background-color: #b55a43;
}

/* Popup istruzioni installazione PWA */
.pwa-instructions-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(61 61 61 / 81%);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pwa-instructions-content {
  background-color: #3d3d3d;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  color: white;
}

.pwa-instructions-content h3 {
  color: var(--colore-principale);
  margin-top: 0;
}

.pwa-instructions-content p {
  margin: 8px 0;
}

.pwa-instructions-content button {
  margin-top: 15px;
}

/* Stili per la select dei negozi con immagini */
.shop-select-container {
  margin: 10px 0;
  padding: 0 10px;
}

.shop-select-container h3 {
  margin-bottom: 8px;
}

.shop-select-wrapper {
  position: relative;
  width: 100%;
  height: 40px;
  margin-bottom: 15px;
}

.shop-select {
  width: 100%;
  height: 100%;
  z-index: 2;
  margin: 0;
  padding: 0;
}

/* Stili per select personalizzata con immagini */
.shop-select-custom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

.shop-select-selected {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #a5533f;
  background-color: #cc7762;
  color: #ffffff;
  cursor: pointer;
  position: relative;
}

.shop-select-selected::after {
  content: '\25BE';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  pointer-events: none;
}

.shop-select-dropdown {
  display: none;
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  margin-top: 2px;
}

.shop-option {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.shop-option:hover {
  background-color: #f5f5f5;
}

.shop-option-img {
  width: auto;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 8px;
}

.shop-option-text {
  /* color: #333; */
  font-weight: normal;
}

/* Classi per icone SVG */
.icon-svg {
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
}

.icon-white {
  filter: brightness(0) invert(1); /* Rende l'icona bianca */
}

.icon-svg.small {
  width: 16px;
  height: 16px;
}

.icon-svg.large {
  width: 32px;
  height: 32px;
}

.menu-button .icon-svg,
.close-btn .icon-svg {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.connection-status-icon .icon-svg {
  width: 20px;
  height: 20px;
}

/* Centraggio icone nei contenitori */
.connection-status-icon,
.icon-btn.cart-icon,
.menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

img.logo-index {
    height: 34px;
    padding-left: 6px;
}

.header-left h1 {
    display: flex;
    margin-bottom: 2px;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}
    /* Overlay fixed full-screen */
    #browser-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.8);
      z-index: 9999;
      align-content: center;
      justify-content: center;
      align-items: center;
      bottom: 0px;
      display: none;
    }
    #browser-overlay__content {
      position: absolute;
      background: #fff;
      padding: 1.5rem;
      max-width: 600px;
      text-align: center;
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      align-content: center;
      justify-content: center;
      align-items: center;
      min-width: 200px;
      margin-left: 10px;
      margin-right: 10px;
    }
    #browser-overlay__content h2 {
      margin-top: 0;
      font-size: 1.25rem;
    }
    #browser-overlay__content img {
      width: 48px;
      height: 48px;
      vertical-align: middle;
      /* margin-right: 0.5rem; */
      margin-top: 12px;
    }
    #browser-overlay__content button {
      margin-top: 1rem;
      padding: 0.75rem 1.5rem;
      font-size: 1rem;
      cursor: pointer;
    }

    .contentInfoDisp li {
      display: flow;
      margin-bottom: 6px;
  }

.version_service-worker {
    position: absolute;
    bottom: -12px;
    letter-spacing: -1px;
    width: 191px;
    text-align: right;
    font-size: .8em;
    color: #ca6951;
}



button#closeScannerBtn {
  border-radius: 50px;
  border: none;
  background-color: var(--colore-principale);
  color: #fff;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  position: absolute;
  right: 11px;
  z-index: 1;
  opacity: 1;
  z-index: 100;
  font-size: 1.2em;
}

button#closeScannerBtn:hover {
  background: #000000;
}

.scanner-fullscreen-overlay {
  height: auto;
  overflow-y: auto;
}

div#scannerContainer {}

div#eanScannerOverlay {
  overflow-y: scroll;
}

#eanScannerOverlay .scanner-container {
  height: 200px;
}
.PrevNextCat {
  overflow: auto;
  margin-bottom: 37px;
  padding: 15px;
  background-color: rgb(249, 249, 249);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0px 5px rgba(0, 0, 0, 0.1);
}
.btnClassic {
  background-color: var(--colore-principale);
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1rem;
  height: calc(1.5em + 1rem + 2px);
  flex-shrink: 0;
  outline: none;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: opacity 0.15s ease-in-out;
}