/* Estilos personalizables */

.main-nav .menu > li.active > a,
.main-nav .menu > li.show > a,
.main-nav .menu > li:hover > a,
.cart-dropdown .btn-remove:hover span,
.product-title a:hover,
.category-wrap a:hover,
.cat-list li a:hover,
.cat-list li a:focus,
.layout-btn.active,
.layout-btn:hover,
.breadcrumb-item.active,
.breadcrumb-item a:hover,
.checkout-progress-bar li.active a,
.checkout-progress-bar li.active + li a:hover,
.btn-remove:hover {
  color: #839a88 !important;
}

.badge-circle,
.inner-icon figure .btn-icon:hover,
.noUi-handle,
.noUi-connect,
.btn-primary,
.btn-primary:hover,
.custom-radio .custom-control-input:checked ~ .custom-control-label:after,
.product-single-qty:hover .btn.btn-down-icon:after,
.product-single-qty:hover .btn.btn-up-icon:after,
.product-single-qty:hover .btn.btn-up-icon:before {
  background-color: #839a88 !important;
}

.inner-icon figure .btn-icon:hover,
.page-item.active .page-link,
.page-item .page-link:focus,
.page-item .page-link:hover,
.btn-primary {
  border-color: #839a88 !important;
}

@media screen and (max-width: 575px) {
  .cart-table-container {
    border-top: 4px solid #839a88 !important;
  }
}

/* Fin Estilos personalizables */

/* Estilos del sitio */

p::selection,
h1::selection,
h2::selection,
h3::selection,
h4::selection,
li::selection,
a::selection,
span::selection,
strong::selection,
input::selection,
label::selection,
img::selection {
  background: black;
  color: white;
}

/* Firefox */
p::-moz-selection,
h1::-moz-selection,
h2::-moz-selection,
h3::-moz-selection,
h4::-moz-selection,
li::-moz-selection,
a::-moz-selection,
span::-moz-selection,
strong::-moz-selection,
input::-moz-selection,
label::-moz-selection,
img::-moz-selection {
  background: black;
  color: white;
}

#home-categorias {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

#scroll-top.fixed:hover {
  color: white !important;
  opacity: 0.8;
}

.product-single-qty .btn.btn-up-icon:after:hover {
  background: #000000 !important;
}

.cart-table-container .btn-shop:hover,
.cart-table-container .btn-sm:hover,
.cart-summary .btn-update-total:hover,
.btn-gray:hover {
  background-color: #000000 !important;
}

.btn-gray:hover {
  border-color: #000000;
}

#seccion-categorias {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.btn-primary:hover {
  opacity: 0.8;
}

.main-nav .menu > li.active > a,
.main-nav .menu > li > a:hover {
  border-top-color: transparent !important;
}

.total div {
  height: 30px !important;
}

.newsletter-popup-content .btn {
  border-radius: 0px !important;
  padding: 0.8rem 1.5rem;
}

#bg-modal-compra {
  background-color: #00000017;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  z-index: 5000;
  display: none;
}
#bg-modal-compra .newsletter-popup {
  position: relative;
  top: 50%;
  margin-top: -188px;
}

.newsletter-popup .btn-remove {
  position: absolute;
  right: 10px;
  top: 10px;
}

@media screen and (max-width: 767px) {
  .newsletter-popup-content .btn {
    border-radius: 0px !important;
    padding: 0.8rem 1.5rem;
  }

  .newsletter-popup-content {
    max-width: 320px;
  }
}

@media screen and (max-width: 575px) {
  .banner img {
    min-height: 400px;
  }

  .contact-widget {
    margin-bottom: 1.3rem;
  }
}

@media screen and (max-width: 400px) {
  .newsletter-popup-content div {
    flex-direction: column;
  }

  #bg-modal-compra .newsletter-popup {
    margin-top: -196.5px;
  }

  .newsletter-popup-content div a {
    margin-bottom: 1rem;
  }
}

.category-slide, .home-slide {
  height: 80vh;
}

@media screen and (max-width: 430px) {
  .home-slide {
    max-height: 200px;
    margin-top: -10px;
  }
  img.slide-bg {
    object-fit: contain;
    height: auto;
  }
}

@media screen and (max-width: 820px) {
  .category-slide, .home-slide {
    height: 35vh;
  }

  img.slide-bg {
    object-fit: contain;
    height: auto;
  }
}

/* Estilos para alertas - Tamaños homogéneos */
.alert {
    font-size: 15px !important;
    line-height: 1.5;
    padding: 12px 18px;
}

.alert h4,
.alert h5 {
    font-size: 16px !important;
    font-weight: 600;
    margin-bottom: 8px;
}

.alert p,
.alert ul,
.alert li {
    font-size: 15px !important;
    line-height: 1.5;
}

.alert ul {
    margin-bottom: 0;
    padding-left: 20px;
}

/* Toastr notifications - Tamaños balanceados para buena visibilidad */
#toast-container {
    font-size: 18px !important;
    z-index: 999999 !important;
}

#toast-container > div {
    font-size: 18px !important;
    padding: 20px 30px 20px 60px !important;
    min-height: 70px !important;
    width: 400px !important;
    max-width: 90vw !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
}

#toast-container > div.rtl {
    padding: 20px 60px 20px 30px !important;
}

#toast-container .toast-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
}

#toast-container .toast-message {
    font-size: 18px !important;
    line-height: 1.7 !important;
    font-weight: 500 !important;
    word-wrap: break-word !important;
}

#toast-container .toast-close-button {
    font-size: 24px !important;
    font-weight: bold !important;
    opacity: 0.8 !important;
    right: -0.3em !important;
    top: -0.3em !important;
}

#toast-container.toast-top-center > div,
#toast-container.toast-bottom-center > div {
    width: 400px !important;
    max-width: 90vw !important;
}

#toast-container.toast-top-full-width > div,
#toast-container.toast-bottom-full-width > div {
    width: 96% !important;
    max-width: 96% !important;
}

/* Estilos específicos para toast-success en ecommerce - Rectángulo ajustado al contenido */
#toast-container > .toast-success,
#toast-container > div.toast-success {
    font-size: 18px !important;
    padding: 18px 30px 18px 60px !important;
    min-height: 60px !important;
    height: auto !important;
    width: auto !important;
    min-width: 350px !important;
    max-width: 500px !important;
}

#toast-container > .toast-success .toast-message,
#toast-container > div.toast-success .toast-message {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

#toast-container.toast-top-center > .toast-success,
#toast-container.toast-top-center > div.toast-success {
    width: auto !important;
    min-width: 350px !important;
    max-width: 500px !important;
}

/* ============================================
   ESTILOS HOMOGÉNEOS PARA MODALES EN ECOMMERCE
   ============================================ */

/* Títulos de modales - Tamaño y estilo uniforme */
.modal .modal-title,
.modal h5.modal-title,
.modal h2,
.modal h3,
.modal h4 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
}

/* Texto del cuerpo del modal - Tamaño uniforme */
.modal .modal-body,
.modal .modal-body p,
.modal .modal-body span:not(.text-danger):not(.obligatory) {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #555 !important;
}

/* Labels de formularios - Tamaño y estilo uniforme */
.modal .form-group label,
.modal label:not(.form-check-label):not(.custom-control-label) {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Inputs y controles de formulario - Tamaño uniforme */
.modal .form-control,
.modal input[type="text"],
.modal input[type="email"],
.modal input[type="tel"],
.modal input[type="password"],
.modal textarea,
.modal select {
    font-size: 15px !important;
    line-height: 1.5 !important;
    padding: 10px 12px !important;
    color: #333 !important;
}

/* Texto de ayuda y mensajes de error - Tamaño uniforme */
.modal .text-danger,
.modal .text-muted,
.modal .help-block,
.modal small,
.modal .form-text {
    font-size: 13px !important;
    line-height: 1.5 !important;
}

/* Botones en modales - Tamaño de texto uniforme */
.modal .btn,
.modal button.btn {
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    line-height: 1.5 !important;
}

.modal .btn-lg {
    font-size: 16px !important;
    padding: 12px 24px !important;
}

.modal .btn-sm {
    font-size: 14px !important;
    padding: 8px 16px !important;
}

/* Texto en negrita dentro de modales */
.modal b,
.modal strong {
    font-weight: 600 !important;
    font-size: inherit !important;
}

/* Checkboxes y radios - Labels */
.modal .form-check-label,
.modal .custom-control-label,
.modal label input[type="checkbox"] + span,
.modal label input[type="radio"] + span {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #555 !important;
    line-height: 1.5 !important;
}

/* Asteriscos de campos requeridos */
.modal .text-danger:not(.form-text):not(.help-block),
.modal span.text-danger:not(.form-text):not(.help-block) {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Texto centrado en modales */
.modal .text-center,
.modal .text-center p,
.modal .text-center h2,
.modal .text-center h3 {
    font-size: inherit !important;
}

/* Asegurar consistencia en todos los modales de ecommerce */
#bg-modal-perfil .modal-body,
#verifyDataPersons .modal-body,
#bg-modal-login .modal-body,
.newsletter-popup-content {
    font-size: 15px !important;
}

#bg-modal-perfil .modal-title,
#verifyDataPersons .modal-title {
    font-size: 18px !important;
    font-weight: 600 !important;
}

#toast-container .toast-success {
    background-color: #4caf50 !important;
    color: #fff !important;
}

#toast-container .toast-error {
    background-color: #f44336 !important;
    color: #fff !important;
}

#toast-container .toast-info {
    background-color: #2196f3 !important;
    color: #fff !important;
}

#toast-container .toast-warning {
    background-color: #ff9800 !important;
    color: #fff !important;
}


