/*
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
*/

@font-face {
  font-family: 'Barlow Condensed Bold';
  src: url("/wp-content/themes/salient-child/fonts/barlowcondensed-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/** LISTADO DE PRODUCTOS **/

ul.products li.product {
  padding: 2% !important;
}

ul.products li.product {
  background: #e3e3e3;
  border-radius: 12px;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

ul.products li.product:hover {
  box-shadow: 0 8px 28px #333;
}

ul.products li.product .product-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 0.8rem;
  margin: 0.5rem 0 0.2rem;
  color: #333;
  line-height: 2;
  text-align: left;
  min-height: 60px;
}

ul.products li.product .price {
  color: red;
  font-weight: bold;
  margin-top: auto;
}

ul.products li.product .product-add-to-cart a.button {
  background: #033304;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: 0.9rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

ul.products li.product .product-add-to-cart a.button:hover {
  background: #026202;
  color: #fff;
}

.woocommerce ul.products li.product .price ins,
.woocommerce-page ul.products li.product .price ins {
  color: #e60000;
  font-weight: bold;
}

.woocommerce.archive .woocommerce-price-suffix {
  display: none !important;
}

/** WIDGET FILTRO **/

#sidebar {
  padding: 2%;
  border-radius: 8px;
}

#sidebar .header {
  margin-bottom: 1em;
}

#sidebar h3.wp-block-heading {
  font-weight: 600;
  margin-bottom: 0.5em;
}

#sidebar .inner {
  padding: 0 0.5em;
}

#sidebar .wc-block-formatted-money-amount {
  background-color: rgb(170, 170, 170) !important;
  border: 1px solid rgb(153, 151, 151) !important;
  border-radius: 5px;
}

#sidebar .nectar-close-btn {
  color: #333;
}

#sidebar .nectar-close-btn:hover {
  color: #000;
}

.wc-block-price-filter,
.wc-block-attribute-filter {
  margin-bottom: 1.5em;
}

.wc-block-price-filter__amount {
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/** PRODUCTO INTERNO **/

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
  color: #e60000;
  font-weight: bold;
}

.woocommerce div.product .price .woocommerce-price-suffix {
  font-size: 0.8em;
  color: #666;
}

.woocommerce div.product .product_meta .posted_in {
  display: none !important;
}

.wc-block-components-address-form__city input:focus+label,
.wc-block-components-address-form__postcode input:focus+label {
  color: #033304 !important;
}

.wc-block-checkout__add-note textarea {
  color: white !important;
  transition: color 0.3s ease;
  /* opcional, para suavidad */
}

.wc-block-components-textarea {
  background-color: #fff !important;
  border-color: #033304 !important;
}

.wc-block-checkout__add-note textarea:focus {
  color: #033304 !important;
}

.wc-block-checkout__add-note textarea::placeholder {
  color: white !important;
}

/* Badge personalizado para productos sin stock */
.on-sale.out-of-stock-badge {
  color: #fff;
  padding: 0.4em 0.6em;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 99;
  border-radius: 2px;
}

.woocommerce-checkout .container-wrap select,
.woocommerce-checkout input[type="text"].select2-search__field,
.woocommerce-checkout .select2-container .select2-selection {
  background-color: #fff !important;
  border-color: #033304 !important;
  color: #000 !important;
  font-size: 16px;
}


/* NUEVOS ESTILOS */
/* Contenedor general del formulario */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
    background: #fff !important;
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgb(0 0 0 / 0.05);
    margin-bottom: 30px;
}

/* Estilo inputs y selects */
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #333 !important;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* Focus en inputs */
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #5e91f6;
    outline: none;
    box-shadow: 0 0 6px rgba(94, 145, 246, 0.4);
}

/* Labels */
.woocommerce-checkout label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
    color: #222;
}

/* Campos requeridos */
.woocommerce-checkout .required {
    color: #e74c3c;
}

/* Botón de finalizar compra */
.woocommerce-checkout #place_order {
    background-color: #5e91f6;
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.woocommerce-checkout #place_order:hover {
    background-color: #3f66d0;
}

/* Mensajes de error */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    border-radius: 12px;
    padding: 18px 25px;
    font-size: 16px;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgb(0 0 0 / 0.1);
}

/* Contenedores de campos alineados */
.woocommerce-billing-fields__field-wrapper .form-row {
    margin-right: 20px;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .woocommerce-billing-fields__field-wrapper .form-row-first,
    .woocommerce-billing-fields__field-wrapper .form-row-last {
        width: calc(50% - 10px);
        float: left;
    }
}

/* Limpiar floats */
.woocommerce-billing-fields__field-wrapper::after {
    content: "";
    display: table;
    clear: both;
}
