/* === Comparatore Anteprima (slide-up) === */
.compare-preview {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(83, 129, 87, 0.90) 0%, rgba(0, 0, 0, 0.90) 75.6%);
  box-shadow: 0 -3px 4px 0 rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: transform 0.3s ease-in-out;
  transform: translateY(100%);
}

.compare-preview.visible {
  transform: translateY(0%);
}

.compare-preview-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5% 16px 5%;
  flex-wrap: wrap;
  gap: 10px;
}

.compare-products {
  display: flex;
  gap: 10px;
  flex-grow: 1;
  flex-wrap: wrap;
}

@media screen and (max-width: 1080px) {
  .compare-products {
    width: 100%;
    padding-top: 60px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow-x: scroll;
  }
}

.compare-product {
  position: relative;
  padding: 5px;
  max-width: 125px;
  text-align: center;
  background-color: transparent;
}

@media screen and (max-width: 1080px) {
  .compare-product {
    width: 125px;
    max-width: unset;
    flex: 0 0 auto;
  }
}

.compare-product img {
  background-color: #fff;
  width: 100%;
  height: auto;
}

@media screen and (max-width: 1080px) {
  .compare-product img {
      width: 100%;
  }
}

.compare-product-title {
  margin-top: 4px;
  color: #FFF;
  text-align: center;
  font-family: Oswald;
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.3px;
}

@media screen and (max-width: 1080px) {
  .compare-product-title {
    font-size: 14px;
  }
}

.compare-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 2px;
  border: 1px solid #538157;
  background: linear-gradient(180deg, #538157 0%, #425839 100%);
  position: absolute;
  top: -7px;
  right: -7px;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  font-size: 14px;
}

.compare-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

@media screen and (max-width: 1080px) {
  .compare-actions {
    width: 100%;
  }
}

.compare-actions .btn-primary {
    color: #fff;
    font-family: "Roboto Condensed";
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 5px;
    background: linear-gradient(180deg, #425839 0%, #538157 100%);
    transition: all 1s;
}

.compare-actions .btn-primary:hover {
  background: linear-gradient(180deg, #9acc9f 0%, #425839 100%);
}
 
.compare-actions .btn-secondary {
  color: #FFF;
  text-align: center;
  font-family: "Roboto Condensed";
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  text-transform: uppercase;
  border: none;
  background: transparent;
}

.compare-actions .btn-close,
.compare-modal .btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  border-radius: 2px;
  border: 1px solid #E30613;
  background: #E30613;
  color: #fff;
  font-size: 20px;
  padding: 4px;
}

/* --------------------------------------------------------------------------------------- */
/* === Modale Comparazione === */
.compare-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.compare-modal.hidden {
  display: none;
}

.compare-modal-content {
  background: #fff;
  padding: 20px;
  max-width: 85%;
  max-height: 80vh;
  overflow: auto;
  border-radius: 2px;
  position: relative;
}

.compare-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.compare-modal-header h2 {
  margin: 0;
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -0.6px;
  font-family: 'Outfit';
  font-weight: 500;
  text-transform: uppercase;
}

@media screen and (max-width: 1080px) {
  .compare-modal-header h2 {
    font-size: 28px;
    line-height: 32px;
  }
}

.compare-modal-body {
  margin-top: 20px;
}

/* --------------------------------------------------------------------------------------- */
/* === Checkbox Compara in Card === */
.card-compare {
  margin-top: 10px;
}

.card-compare label,
.compare-detail-box label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #000;
  font-family: "Roboto Condensed";
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 25px;
  margin-bottom: 0;
}

.card-compare input[type="checkbox"],
.compare-detail-box input[type="checkbox"] {
  margin-right: 6px;
}

/* === Checkbox Compara in Dettaglio Prodotto === */
.compare-detail-box {
  border-radius: 10px;
  background: rgba(229, 229, 229, 0.80);
  max-width: 100%;
  padding: 16px 24px;
}