/* =====================================================================
   05-componentes.css
   Dropdown, barra de búsqueda, modales, vista rápida, agregar al carrito y login.
   Origen: style.css (líneas 788–946). El orden de carga importa: ver index.html.
   ===================================================================== */

/* - Dropdown
------------------------------------------------------------- */

@media only screen and (max-width: 991px) {
  .navbar-nav .dropdown-menu .dropdown-item {
    border-bottom: 1px solid var(--bs-border-color);
    padding: 8px 0;
  }
  .navbar-nav .dropdown-menu {
    padding: 0;
    border: 0;
  }
}

/* - Search Bar
------------------------------------------------------------- */
.search-box {
  background: var(--light-color);
  width: 100%;
  height: 0px;
  overflow: hidden;
  transition: height 0.3s ease-out;
}

.search-box.active {
  height: 90px;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 120px;
  cursor: pointer;
  z-index: 9;
}

.search-box input.search-input {
  font-size: 1.3em;
  width: 50%;
  height: 30px;
  min-width: 420px;
  padding: 25px;
  border-radius: 80px;
}

.search-box .search-wrap svg {
  width: 22px;
  height: 22px;
}

.search-box svg.search {
  margin-left: -50px;
}

@media only screen and (max-width: 991px) {
  .search-box input.search-input {
    width: 70%;
  }
}

@media only screen and (max-width: 768px) {
  .close-button {
    right: 20px;
  }

  .search-box input.search-input {
    min-width: 300px;
    margin-left: 20px;
  }
}

/* - Modal Structure
/*----------------------------------------------*/

/* - Modal Popup
/*----------------------------------------------*/
.modal-content .modal-close-btn {
  text-align: right;
}

/* - Quick View
/*----------------------------------------------*/
.quantity input {
  pointer-events: none;
  color: var(--dark-color);
  width: 65px;
  height: 50px;
  border: 1px solid var(--gray-color-200);
}

.quantity .qty-number {
  width: 65px;
  height: 50px;
  cursor: pointer;
  border: 1px solid var(--gray-color-200);
  transition: .3s;
}

.quantity .qty-number svg {
  width: 20px;
  height: 20px;
}

.shopify-cart a.out-stock {
  display: none;
}

#modaltoggle .product-details p,
#modaltoggle .summary li {
  font-size: .9em;
}

/* - Add to Cart
/*----------------------------------------------*/
.product-header svg.close {
  width: 20px;
  height: 20px;
}

@media only screen and (max-width: 991px) {
  #modallong .modal-dialog {
    max-width: 790px;
  }
}

@media only screen and (max-width: 575px) {
  #modallong .modal-dialog {
    max-width: 790px;
  }

  #modallong .mini-cart-item .quantity-price {
    flex-wrap: wrap;
  }

  #modallong .quantity-price .price-code {
    width: 100%;
  }

}

/* - Login
/*----------------------------------------------*/
#modallogin .modal-content {
  background: url(../../images/login-bg.jpg)no-repeat;
}

#modallogin .modal-content input.text-input {
  width: 100%;
  height: 50px;
  background: none;
  border: 1px solid var(--gray-color-300);
}

#modallogin .checkbox p,
#modallogin .checkbox p>a {
  font-size: 1em;
  color: var(--dark-gray-color);
}
