.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /*padding: 1rem;*/
}

.product-item img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 👈 esto va aquí */
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}

.product-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.product-name {
    /*margin: 0.75rem 0;*/
    text-align: center;
    font-size: 1rem;
    color: #333;
    padding: 10px;
}

.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /*margin-top: 1rem;*/
}

.price {
    height: 30px;
    width: 95px;
    margin: 0 auto;
    /*background: var(--color-primary);*/
    color: var(--color-primary);
    border-radius: 30px;
    font-size: 18px;
    font-weight: 800;
    padding: 10px 10px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}


.price-placeholder {
    width: 50px; /* mismo ancho que el bot贸n key-add */
    height: 50px;
}

.key-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    /*height: 50px;*/
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .product-item {
    align-items: center; /* opcional si quieres centrar todo */
  }

  .product-name {
    text-align: center;
    padding: 10px;
  }

  .price-container {
    flex-direction: row;  /* 👈 se mantiene horizontal */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 300px; /* ajusta si lo necesitas más ancho */
  }

  .price {
    flex: 1;
    max-width: 100px;
    text-align: center;
  }

  .key-add-btn {
    width: 50px;
  }

  .price-placeholder {
    width: 50px;
  }
}

/*.key-add {*/
/*    width: 24px;*/
/*    height: 24px;*/
/*}*/