/* ==========================================================
   GRID PRODOTTI
   ========================================================== */
/* ==========================================================
   GRID PRODOTTI - NO HOMEPAGE
   ========================================================== */
.woocommerce .products.row,
.woocommerce-page .products.row,
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

@media (max-width: 1024px) {

  .woocommerce .products.row,
  .woocommerce-page .products.row,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }
}

@media (max-width: 767px) {

  .woocommerce .products.row,
  .woocommerce-page .products.row,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce .products.row>.product,
.woocommerce-page .products.row>.product {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
  list-style: none !important;
}

/* ==========================================================
   CARD
   ========================================================== */

.kd-vehicle-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kd-vehicle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* ==========================================================
   IMMAGINE
   ========================================================== */

.kd-vehicle-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9e9e9;
}

.kd-vehicle-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================
   CONTENUTO
   ========================================================== */

.kd-vehicle-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 20px;
}

.kd-vehicle-card-brand {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7f7f7f;
  font-weight: 500;
}

.kd-vehicle-card-title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 800;
  color: #1f1f1f;
}

.kd-vehicle-card-version {
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.35;
  color: #4d4d4d;
  font-weight: 400;
}

/* ==========================================================
   PREZZI
   ========================================================== */

.kd-vehicle-card-price {
  margin-top: auto;
  margin-bottom: 18px;
}

.kd-vehicle-card-price-old {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  color: #555555;
  text-decoration: line-through;
}

.kd-vehicle-card-price-current {
  font-size: 21px;
  line-height: 1.1;
  font-weight: 800;
  color: #111111;
}

.kd-vehicle-card-price-current.is-sale {
  color: #e1261c;
}

/* ==========================================================
   DIVISORE
   ========================================================== */

.kd-vehicle-card-divider {
  height: 1px;
  width: 100%;
  background: #dadada;
  margin: 0 0 16px;
}

/* ==========================================================
   SPECS
   ========================================================== */

.kd-vehicle-card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.kd-vehicle-card-spec {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: #3b3b3b;
}

.kd-vehicle-card-spec span:last-child {
  min-width: 0;
  word-break: break-word;
}

/* ==========================================================
   ICONE
   ========================================================== */

.kd-vehicle-card-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kd-vehicle-card-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  opacity: 0.78;
}

/* ==========================================================
   PULIZIA STILI TEMA
   ========================================================== */

.woocommerce ul.products li.product a.kd-vehicle-card,
.woocommerce ul.products li.product a.kd-vehicle-card:hover,
.woocommerce ul.products li.product a.kd-vehicle-card:focus {
  text-decoration: none !important;
  color: inherit !important;
}

.woocommerce ul.products li.product.kd-vehicle-card-wrap img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* nascondi eventuali elementi standard residui */
.woocommerce ul.products li.product .price:not(.kd-vehicle-card-price-current):not(.kd-vehicle-card-price-old),
.woocommerce ul.products li.product .category,
.woocommerce ul.products li.product .name {
  display: none;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1024px) {
  .kd-vehicle-card-content {
    padding: 20px 18px 18px;
  }

  .kd-vehicle-card-title {
    font-size: 20px;
  }

  .kd-vehicle-card-version {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .kd-vehicle-card-price {
    margin-bottom: 16px;
  }

  .kd-vehicle-card-price-old {
    font-size: 17px;
  }

  .kd-vehicle-card-price-current {
    font-size: 19px;
  }

  .kd-vehicle-card-spec {
    font-size: 13px;
  }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {
  .kd-vehicle-card {
    border-radius: 20px;
  }

  .kd-vehicle-card-content {
    padding: 16px 14px 16px;
  }

  .kd-vehicle-card-brand {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .kd-vehicle-card-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .kd-vehicle-card-version {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .kd-vehicle-card-price {
    margin-bottom: 14px;
  }

  .kd-vehicle-card-price-old {
    font-size: 15px;
  }

  .kd-vehicle-card-price-current {
    font-size: 17px;
  }

  .kd-vehicle-card-divider {
    margin-bottom: 14px;
  }

  .kd-vehicle-card-specs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .kd-vehicle-card-spec {
    font-size: 13px;
  }
}
