:root{
  --primary-color: #D8BFC6;
  --secondary-color: #725B6D;
  --background: #D2C6B9;
}

body {
  font-family: sans-serif;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));  
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  /* Centrado horizontal */
  align-items: center;
  /* Centrado vertical */
}

main {
  max-width: 1200px;
  /* Ancho máximo del contenido */
  width: 100%;
  padding: 2rem;
  border-radius: 12px;
}


h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #D8BFC6;

}

h3 {
  text-align: center;
  font-size: 1 rem;
  margin-bottom: 1rem;
  color: #61414a;
}

.text-start {
  text-align: justify;
  font-size: 1.2 rem;
  margin-bottom: 1rem;
  color: #000000;
}

.btn-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;  
}

.btn-container .btn-right {
  position: fixed;
  background-color: #ffffff;
  border: 2px solid #444;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.3s;
  z-index: 999;
}

.cart-button-container button:hover {
  background-color: #f1e7e7;
}



.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #f9f9f9;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
  text-align: center;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: scale(1.02);
}


.product-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.product-card h3 {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
}

.product-card p {
  margin: 0.5rem 0;
  font-size: 1rem;
  font-weight: bold;
  color: #555;
}

.product-card input[type="number"] {
  width: 60px;
  padding: 0.3rem;
  margin-right: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  text-align: center;
}

.product-card button {
  background-color: #d19c97;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.product-card button:hover {
  background-color: #b9857d;
}


.essence-select {
  width: 100%;
  padding: 6px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 0.9em;
}








.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  color: black;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

#cart-items {
  color: black;
}

.modal-content {
  background: white;
  margin: 10% auto;
  padding: 2rem;
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}


#cart-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px 0;
}

#cart-items li button {
  margin-left: 10px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
}



/*********/
.cart-controls {
  display: flex;
  align-items: center;
  justify-content: center; /* Centra los hijos horizontalmente */
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.qty-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #000;
  border-radius: 5px;
  overflow: hidden;
}

.qty-btn {
  background-color: #f0f0f0;
  border: none;
  padding: 3px 3px;
  font-size: 1.1rem;
  cursor: pointer;  
}

.qty-btn:hover {
  background-color: #ddd;
}

.qty-wrapper input[type="number"] {
  width: 40px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 1rem;
}


/* Logo flotante section Starts */
    .btn-logo {
        position: fixed;
        width: 40px;
        height: 40px;
        top: 27px;
        
        left: 7px;
        background: transparent;
        z-index: 5000;
    }

    .img-responsive3 {
        width: 50px;
        top: 175px;
        left: 5px;
    }

    @media only screen and (min-width:320px) and (max-width:768px) {
        .btn-logo {
            width: 55px;
        }
    }
/* Logo flotante section Ends */

/* top section starts*/
#top {
    width: 50px;
    height: 50px;
    background: rgb(187, 187, 187);
    color: #A04000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    position: fixed;    
    right: 10px;
    bottom: 10px;
    border-radius: 50px;
    cursor: pointer;
    display: none;}

html{
    scroll-behavior: smooth;}
/* top section ends*/