/* ----------  Variables rápidas  ---------- */
:root {
  --baru-rose: #902b55;
  --baru-rose-light: #f0c9d3;
  --baru-gray: #666;
  --baru-border: #e5e5e5;
}

/* ----------  Grid base  ---------- */
.baru-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  justify-items: center;
}

/* ----------  Card  ---------- */
.baru-product-wrapper {
  max-width: 350px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--baru-border);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .3s;
	justify-content: space-between;
}
.baru-product-wrapper:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

/* ----------  Image  ---------- */
.baru-product-image-container {
  height: 225px;
  background: #f8f8f8;
  overflow: hidden;
  position: relative;
}
.baru-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.baru-product-wrapper:hover .baru-product-image {
  transform: scale(1.05);
}

/* ----------  Badges  ---------- */
.baru-product-wrapper .badge {
  position: absolute;
}
.badge-sin-gluten {
  top: 10px;
  left: 10px;
}
.badge-vegano {
  top: 10px;
  right: 10px;
}
.badge-nuevo {
  bottom: 10px;
  left: 10px;
}
.badge img {
  max-height: 20px;
  width: auto;
}

/* ----------  Title  ---------- */
.baru-product-title {
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  margin: 15px 10px 5px;
  line-height: 1.2;
  color: var(--baru-rose);
	min-height: 65px !important;
}
.baru-product-title a {
  color: inherit;
  text-decoration: none;
}

/* ----------  Content  ---------- */
.baru-product-content {
  padding: 0 15px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ----------  Variation selects  ---------- */
.baru-product-variation-selector {
  width: 100%;
  padding: 8px;
  border: 2px solid var(--baru-rose);
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  color: var(--baru-rose);
	margin-bottom: 10px;
}

/* ----------  Quantity  ---------- */
.baru-quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--baru-border);
  border-radius: 10px;
  overflow: hidden;
  width: 108px;
  height: 36px;
	margin-left: 5px;
	margin-top: 10px;
	margin-left: auto;   /* cambia de 5px a auto */
  margin-right: auto;  /* añadir */
}

.baru-quantity-button {
  width: 36px;
  height: 36px;
  border: none;
  background: #f8f8f8;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}
.baru-quantity-button:hover {
  background: #ebebeb;
}
.baru-quantity-input {
  width: 50px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--baru-border);
  border-right: 1px solid var(--baru-border);
  text-align: center;
  font-weight: 600;
  pointer-events: none;
}

/* ----------  Price  ---------- */
.baru-product-price,
.baru-variation-price {
  font-size: 18px;
  font-weight: 700;
  margin: 5px 0;
	text-align: center;
}
.baru-product-price del {
  font-weight: 400;
  color: #777;
}
.baru-product-price ins {
  text-decoration: none;
  color: #e63946;
}

/* ----------  Add to cart button  ---------- */
.baru-product-add-to-cart {
  width: 100%;
  padding: 10px;
  background: var(--baru-rose);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.baru-product-add-to-cart:hover {
  background: #000;
}
.baru-product-add-to-cart:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ----------  Success  ---------- */
.baru-add-success-message {
  display: none;
  color: green;
  font-size: 14px;
  margin-top: 5px;
}

.baru-atc-form {
	text-align: center;
	margin: auto;
}

/* ----------  Responsive  ---------- */
@media (max-width: 1200px) {
  .baru-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .baru-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .baru-products-grid {
    grid-template-columns: 1 fr;
    overflow-x: hidden;
  }
}

/* Grid de productos dirigidos: 2 columnas en desktop */
.baru-products-grid.baru-dir-2 {
  grid-template-columns: repeat(2, 1 fr);
}

/* Mantener tu comportamiento responsive existente */
@media (max-width: 1200px) {
  .baru-products-grid.baru-dir-2 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}
@media (max-width: 768px) {
  .baru-products-grid.baru-dir-2 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}
@media (max-width: 480px) {
  .baru-products-grid.baru-dir-2 {
    grid-template-columns: 1fr;
  }
}

.baru-products-grid.baru-dir-2 { grid-template-columns: repeat(2, 1fr); }

.woocommerce-Price-amount.amount {
	margin-top: 0px !important;
	margin-bottom: 0px !important;
	padding-top: 0px !important;
	padding-bottom: 0px !important;
	font-size: 20px !important
}


.baru-unidades-count {
    text-align: center;
    font-size: 16px;
    color: #000;
    margin-top: 00px;
	  margin-left: -5px;
    margin-bottom: 10;
    display: block;
    width: 100%;
    font-weight: bold;
}