#catalog-products .woocommerce-product-item {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 15px;
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 2rem;
  margin-bottom: 15px;
  background: #fff;
  align-items: center;
  position: relative;
  color: #383F45;
}

#catalog-products h3 {
  margin-bottom: 0;
  a{
    color: #383F45;
    text-decoration: none !important;
    font-size: 1.4rem;
    font-weight: 500;
  }
}

#catalog-products .product-code {
  font-size: 0.97rem;
}

#catalog-products .product-detail-row a{
  text-decoration: underline;
  color: #b3b2b3;
}

#catalog-products .btn-whatsapp-container p {
  color: #b3b2b3;
}

#catalog-products .product-deails-right {
  display: flex;
  flex-direction: column;
}

#catalog-products .product-info-container{
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
}

#catalog-products .product-favorite-button{
  position: absolute; 
  top: 2rem; 
  right: 2rem;
  z-index: 10; 
  cursor: pointer;
}


.woocommerce-product-item .product-left,
.woocommerce-product-item .product-center,
.woocommerce-product-item .product-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.woocommerce-product-item .product-left {
  width: calc(100% - 2rem);
  padding: 1rem;
  text-align: center;
}

.woocommerce-product-item .product-center {
  width: calc(50% - .75rem);
  gap: 6px;
  align-items: flex-start;


}

.woocommerce-product-item .product-center h3 {
  margin: 0 0 5px;
  font-size: 18px;
    display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  max-width: 100%;
}

.woocommerce-product-item .product-right {
  width: calc(50% - .75rem);
  align-items: flex-start;
  justify-content: space-between;
}

/* Botón favoritos */
.woocommerce-product-item .product-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 48px;
  height: 48px;
  z-index: 10;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.woocommerce-product-item .product-favorite img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.woocommerce-product-item .product-favorite.active img {
  transform: scale(1.1);
}

/* Precios */
h3 a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 30px;
  line-height: 30px;
  letter-spacing: 0;
  text-decoration: none !important;
  color: #303b92;
}

.price-blue {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 30px;
  color: #303b92;
}

.price-red {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #e30d13;
  margin-left: 10px;
}

/* Botón agregar al carrito */
.product-add-to-cart-row {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
a{text-decoration: none !important;}

.product-add-to-cart-row .button.add_to_cart_button {
  background-color: #34c759 !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 10px 20px;
  border: none;
  transition: all 0.3s ease;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
}

.product-add-to-cart-row .button.add_to_cart_button:hover {
  background-color: #2ead4f !important;
  transform: scale(1.05);
}

/* Marca y tipo */
.marca-tipo {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 8px;
  padding-bottom: 10px;
  width: 100%;
}

.marca-tipo .product-vehicle-brand,
.marca-tipo .product-type {
  color: #fff;
  padding: 2px 15px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 15px;
  line-height: 24px;
}

.marca-tipo .product-vehicle-brand {
  background: #203a8f;
}

.marca-tipo .product-type {
  background: #e30613;
}

.product-card-name {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #303b92 !important;
}

.product-serial-number {
  border-radius: 6px;
  width: 100%;
  text-align: left;
  font-family: "Helvetica Neue", sans-serif;
}

.product-serial-number strong {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #b3b2b3;
}

.serial-value {
  font-size: 14px;
  color: #383F45;
}

/* Botón WhatsApp en productos */
.btn-whatsapp-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.btn-whatsapp-container p {
  margin: 0;
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  display: flex;
  align-items: center;
}

.btn-whatsapp-catalog {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  aspect-ratio: 1 / 1;
  background-color: #34c759;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-whatsapp-catalog img {
  width: 24px;
  height: 24px;
}

.btn-whatsapp-catalog:hover {
  transform: scale(1.1);
}

/* Paginación */
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  width: 100%;
  padding: 0;
  position: relative;
}

.catalog-pagination button {
  min-width: 32px;
  height: 32px;
  border-radius: 3px;
  padding: 6px 10px;
  border: none;
  background-color: #F6F6F6;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-pagination button:hover:not(.active):not(:disabled) {
  background-color: #e0e0e0;
}

.catalog-pagination button.active {
  background-color: #e30d13;
  color: #fff;
  font-weight: 600;
}

.catalog-pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.catalog-pagination .page-prev,
.catalog-pagination .page-next {
  color: #000;
  min-width: 50px;
  min-height: 40px;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
}

.catalog-pagination .page-prev img,
.catalog-pagination .page-next img {
  width: 52px;
  height: 52px;
  display: block;
  transition: opacity 0.2s ease;
}

.catalog-pagination .page-prev {
  left: 0;
}

.catalog-pagination .page-next {
  right: 0;
}

.catalog-pagination .page-prev:disabled img,
.catalog-pagination .page-next:disabled img {
  opacity: 0.3;
}

.catalog-pagination .dots {
  color: #666;
  padding: 0 5px;
  user-select: none;
}

/* Loader */
.catalog-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.catalog-loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #e30d13;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Breadcrumbs */
.main-breadcrumb {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #666;
  margin-bottom: 10px;
}

@media (max-width:768px) {
  .main-breadcrumb{
    margin-top: 2rem;
  }
}

.main-breadcrumb .breadcrumb-item {
  display: inline;
}

.main-breadcrumb .breadcrumb-home {
  color: #999;
  cursor: default;
  transition: color 0.3s ease;
}

.main-breadcrumb .breadcrumb-marca {
  display: inline;
}

/* Cuando hay una marca seleccionada, "Inicio / Catálogo" se vuelve clickeable */
.main-breadcrumb:has(.breadcrumb-marca:not([style*="display: none"])) .breadcrumb-home {
  cursor: pointer;
}

.main-breadcrumb .breadcrumb-home:hover {
  color: #e30d13;
  text-decoration: underline;
}

.main-breadcrumb .breadcrumb-marca-name {
  font-weight: 700;
  color: #303b92;
}

@media (max-width: 1024px) {
  #catalog-products .woocommerce-product-item {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .woocommerce-product-item .product-left{
    width: 100%;
    align-items: center;
  }
  .woocommerce-product-item .product-center{
    width: 100%;
    align-items: flex-start;
  }

   .woocommerce-product-item .product-right{
    align-items: flex-start;
    width: 100%;
  }

  .btn-whatsapp-container{
    width: 100%;
    justify-content: space-between;
  }

  #catalog-products .product-code, #catalog-products h3{
    text-align: left;
  }

  .product-add-to-cart-row .button.add_to_cart_button{
    padding: 20px 30px;
  }

  #catalog-products .product-info-container{
    gap: 1rem;
  }
}
