/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

.shop-container{
  padding-top: calc(100vw * 0.05);
  padding-bottom: calc(100vw * 0.05); 
}

.shop-content{
  padding-left: 30px;
  padding-top: 20px;
}

.product-table-row {
  display: grid;
  grid-template-columns: 120px 2fr .8fr;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  align-items: center;
}

@media (max-width: 768px) {
  .product-table-row {
    grid-template-columns: 1fr; /* Cambia a una sola columna */
    padding: 12px;
  }

  .shop-content{
    padding-left: 0;
  }

  .product-table-row > * {
    margin-bottom: 8px;
  }

  .product-table-row > *:last-child {
    margin-bottom: 0;
  }
}

.product-table-row:nth-child(even) {
  background-color: #fcfcfc;
}

.product-table-header {
  font-weight: bold;
  background-color: #f1f1f1;
}

.product-image img {
  max-width: 100px;
  height: auto;
}

.product-part p, .product-brand p{
  font-size: .8em;
}

.product-name{
  display: flex;
  flex-direction: column;
}

.product-name span{
  color: black;
  font-size: .8em;
}

.product-action span{
  color: black;
  font-size: 1em;
  display: block;
  padding-bottom: 10px;
}

.product-name a {
  color: #003366;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-action .button,
.product-action button {
  background-color: #003366!important;
  color: #fff;
  padding: 10px 40px!important;
  border: none;
  border-radius: 0!important;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  font-weight: 600!important;
}

.product-action .button:hover,
.product-action button:hover {
  background-color: #00529b;
}

.product-action-inner {
  display: flex;
  gap: 10px;
  align-items: center;
}

.qty-input {
  width: 60px!important;
  padding: 5px!important;
  text-align: center;
  line-height: 20px!important;
  border: 1px solid #ccc!important;
  background-color: white!important;
  border-radius: 0px!important;
}

.ajax-add-to-cart {
  background-color: #003366;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.ajax-add-to-cart:hover {
  background-color: #00529b;
}


/* Estado base */
.ajax-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #003366; /* color por defecto */
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: none;
}

/* Cuando se muestra */
.ajax-toast.show {
  display: block!important;
  opacity: 1;
}

/* Éxito */
.ajax-toast.success {
  background-color: #2e7d32; /* verde */
}

/* Error */
.ajax-toast.error {
  background-color: #c62828; /* rojo */
}

.woocommerce-ordering{
  display: flex!important;
  align-items: center;
}

.woocommerce-ordering span{
  font-size: .8em;
  padding-right: 8px;
}

.woocommerce-ordering,
.woocommerce-result-count {
  right: 0!important;
  bottom: 0!important;
  position: relative!important;
  float: none!important;
  display: inline-block;
}

.woocommerce-result-count {
  font-weight: 600;
  colum
}

.woocommerce-ordering select {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 0px!important;
  background-color:white!important;
}

.controls{
  display: flex;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .controls{
    flex-direction: column;
  }
}

.custom-pagination {
  text-align: center;
}

.woocommerce-pagination{
  margin-top: 0!important;
}




.custom-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
  font-size: 14px;
}

.custom-pagination a,
.custom-pagination span {
  font-size: 1em;
  color: #003366;
  text-decoration: none;
}

.custom-pagination .page-total{
  color:#555;
}

.custom-pagination .next-page,
.custom-pagination .prev-page{
  transform: translateY(2px);}

.custom-pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

.page-selector-form {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.page-selector-form select {
  font-size: 14px;
  background: white;
  padding: 4px 10px;
  border: 1px solid #ccc;
  border-radius: 0px!important;
}


.product-details a:not(.remove){
  font-size: 1.3em!important;
  color:#003366!important;
}

.style_slide_in_click .cart_list .product-meta a:hover:not(.remove){
  background:none!important;
  color:red;
}


.single-product div.product h1.product_title, .nectar-shop-header .page-title {
    font-size: 2em !important;
    margin-bottom: 25px;
}

.woocommerce div.product_meta {
  margin-bottom: 40px;
}

.request-quote-text{
  font-weight: 600;
  color:black;
}


.woocommerce-page .nectar-prod-wrap button.single_add_to_cart_button {
    flex: none;
    width: 250px;
}

/* SIN RESULTADOS */
.woocommerce .no-results-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

.no-result-title{
  margin-bottom: 10px;
}

.woocommerce .no-results-box,
.woocommerce .no-results-help{
  border: 1px solid #ccc;
  padding: 20px;
}

.woocommerce .no-results-box {
    flex: 1 1 50%;
    min-width: 300px;

}

.woocommerce .no-results-help {
    flex: 1 1 40%;
    min-width: 200px;
}

.woocommerce .no-results-box li {
    padding: 5px 0;
}

.woocommerce .no-results-help a {
    color: #0056b3;
    text-decoration: none;
}

.back-button{
  display: inline-block;
  background-color: #002f59;
  padding: 10px 30px;
  color:white;
}

.back-button:hover{
  color:white;
  opacity: .85;
}