.carousel-item img {
  height: 400px; 
  object-fit: cover;
}

.carousel-caption button {
  background-color: #0d6efd;   
  color: white;                 
  border: none;                 
  border-radius: 50px;          
  padding: 10px 25px;           
  font-size: 1rem;              
  cursor: pointer;              
  transition: background-color 0.3s ease; 
}

.carousel-caption button:hover {
  background-color: #084298;   
}

.cont3{
  display: flex;          
  justify-content: center; 
  align-items: center;     
  gap: 20px;               
  padding: 20px;           
  background-color: #f8f9fa; 
  height: auto;
}

.image-wrapper {
  position: relative;  /* importante para que el texto se superponga */
  width: 48%;
}

.image-wrapper img{
  width: 100%;
  height: auto;
  border-radius: 10px;     
  box-shadow: 0 2px 6px rgba(0,0,0,0.2); 
}

.image-text {
  position: absolute;
  bottom: 10%;           /* distancia desde la parte inferior */
  left: 10%;             /* distancia desde la izquierda */
  color: white;          
  background-color: rgba(0,0,0,0); 
  padding: 10px;
  border-radius: 5px;
}

.cont3 button {
  background-color: #0d6efd;   
  color: white;                 
  border: none;                 
  border-radius: 50px;          
  padding: 10px 25px;           
  font-size: 1rem;              
  cursor: pointer;              
  transition: background-color 0.3s ease; 
}

.cont3 button:hover {
  background-color: #084298;   
}


.cont4{
	display: flex;
	justify-content: center; 
  align-items: center; 
}

.card-img-top {
  height: 220px;       /* ajusta el tamaño fijo de las imágenes */
  object-fit: cover;   /* recorta sin deformar */
}

.cont4 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  padding: 20px;
}

.card {
  width: 100%;
  max-width: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 350px; /* 🔧 puedes subir o bajar este valor */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 200px; /* más espacio para mostrar bien la foto */
  object-fit: contain; /* 👈 muestra toda la imagen sin recortarla */
  background-color: #f8f9fa; /* fondo gris claro si hay transparencia */
  padding: 10px;

}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  padding: 15px;
  text-align: center;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-text {
  font-size: 14px;
  margin-bottom: 10px;
}

.btn {
  margin-top: auto;
  align-self: center;
}

.categorias {
  display: flex;
  flex-wrap: wrap;           /* permite varias filas */
  justify-content: center;   /* centra todo horizontalmente */
  gap: 30px;                 /* espacio entre categorías */
  padding: 30px;
}

.categoria {
  display: flex;
  flex-direction: column;    /* imagen arriba, texto abajo */
  align-items: center;
  text-align: center;
  width: 120px;              /* ancho fijo para todos */
  cursor: pointer;
  transition: transform 0.2s ease;
}

.categoria:hover {
  transform: scale(1.05);    /* efecto al pasar el mouse */
}

.categoria img {
  width: 100px;
  height: 100px;
  border-radius: 50%;        /* hace las imágenes circulares */
  object-fit: cover;         /* recorta sin deformar */
  background-color: #f2f2f2; /* fondo suave */
  padding: 10px;
}

.categoria p {
  margin-top: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

/* ==========================
   DETALLE DE PRODUCTO MODERNO
   ========================== */

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #f5f7fa, #e9eff5);
}

.product-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 2.5rem;
  margin-top: 2rem;
  transition: all 0.4s ease;
  animation: fadeIn 0.6s ease-in-out;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  transition: all 0.5s ease;
}

.product-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 10px;
}

.product-category {
  color: #6c757d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.product-description {
  line-height: 1.7;
  color: #555;
  font-size: 1rem;
  margin-top: 1rem;
}

.product-price {
  font-size: 2rem;
  color: #00a65a;
  font-weight: 700;
  margin-top: 1.5rem;
}

.product-stock {
  color: #555;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Botones */
.product-buttons {
  margin-top: 2rem;
}

.product-buttons .btn {
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #007bff, #0056d6);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056d6, #003c9e);
  box-shadow: 0 6px 16px rgba(0, 86, 214, 0.4);
  transform: translateY(-2px);
}

.btn-outline-secondary {
  border: 2px solid #6c757d;
  color: #333;
}

.btn-outline-secondary:hover {
  background: #f8f9fa;
  border-color: #007bff;
  color: #007bff;
}

/* Animación */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================
   AJUSTES FINALES PARA DETALLE DE PRODUCTO
   ========================== */

/* Botón principal: Agregar al carrito */
.btn-add-to-cart {
    background-color: #8a2be2; /* Morado fuerte */
    border-color: #8a2be2;
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.btn-add-to-cart:hover {
    background-color: #6a0dad; /* Morado oscuro al pasar el mouse */
    border-color: #6a0dad;
    color: white;
}

/* Botón secundario: Realizar compra */
.btn-buy-now {
    background-color: #1c1c1c; /* Negro sólido */
    border-color: #1c1c1c;
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.btn-buy-now:hover {
    background-color: #000000;
    border-color: #000000;
    color: white;
}

/* Estilos para el campo de cantidad (Quantity selector) */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: fit-content;
    margin-bottom: 20px;
}

.quantity-selector input {
    border: none;
    text-align: center;
    width: 60px;
    font-size: 1rem;
    padding: 8px 0;
}

.quantity-selector button {
    border: none;
    background: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: color 0.2s;
}

.quantity-selector button:hover {
    color: #8a2be2;
}

/* Ajustes al acordeón de información */
.accordion-button:not(.collapsed) {
    color: #8a2be2;
    background-color: #f7f2ff;
    border-color: #8a2be2;
}

/* Estilos para la sección de Productos Relacionados */
.related-products-section {
    padding: 60px 0;
    background-color: #f7f7f7;
    text-align: center;
}

.related-products-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1c1c1c;
}

.related-product-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.related-product-card img {
    height: 150px;
    object-fit: contain;
    padding: 15px;
    background-color: white;
    border-radius: 10px 10px 0 0;
}

.related-product-card .card-body {
    text-align: center;
    padding: 15px;
}

.related-product-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    height: 40px;
    overflow: hidden;
}

.related-product-card .card-price {
    font-size: 1.1rem;
    color: #00a65a;
    font-weight: 700;
}


/* ==========================
   AJUSTES GENERALES: Botones de Marca (Morado/Negro)
   ========================== */

/* Botón principal: Agregar al carrito / Pagar */
.btn-add-to-cart, .btn-finalize {
    background-color: #8a2be2; /* Morado fuerte */
    border-color: #8a2be2;
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.btn-add-to-cart:hover, .btn-finalize:hover {
    background-color: #6a0dad; /* Morado oscuro al pasar el mouse */
    border-color: #6a0dad;
    color: white;
}

/* Botón secundario: Realizar compra */
.btn-buy-now {
    background-color: #1c1c1c; /* Negro sólido */
    border-color: #1c1c1c;
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.btn-buy-now:hover {
    background-color: #000000;
    border-color: #000000;
    color: white;
}

/* ==========================
   AJUSTES PARA DETALLE DE PRODUCTO
   ========================== */

/* Estilos para el campo de cantidad (Quantity selector) */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: fit-content;
    margin-bottom: 20px;
}

.quantity-selector input {
    border: none;
    text-align: center;
    width: 60px;
    font-size: 1rem;
    padding: 8px 0;
}

.quantity-selector button {
    border: none;
    background: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: color 0.2s;
}

.quantity-selector button:hover {
    color: #8a2be2;
}

/* Ajustes al acordeón de información */
.accordion-button:not(.collapsed) {
    color: #8a2be2;
    background-color: #f7f2ff;
    border-color: #8a2be2;
}

/* Estilos para la sección de Productos Relacionados */
.related-products-section {
    padding: 60px 0;
    background-color: #f7f7f7;
    text-align: center;
}

.related-product-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* ==========================
   AJUSTES PARA CHECKOUT
   ========================== */
.checkout-container {
    padding-top: 50px;
    padding-bottom: 50px;
}

.checkout-card {
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    background-color: white;
    padding: 30px;
    height: 100%;
}

.order-summary-card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
}


