/*
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
*/





/* Bulk quantity UI: inline layout + auto width */
.fh-bulk-quantity,
.fh-bulk-quantity-fallback {
  display: flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--nectar-accent-color);
  border-radius: 14px;
}

.fh-bulk-quantity select.fh-bulk-qty,
.fh-bulk-quantity-fallback select.fh-bulk-qty {
  /* Slightly larger than widest option; JS will fine-tune */
  min-width: 80px; /* enough for "22,0" + padding */
}

.fh-qty-suffix {
  white-space: nowrap;
  font-size: .95em;
}

/* Label for bulk quantity */
.fh-qty-label { font-weight: 600; }

/* Small inline suffix next to names/prices */
.fh-price-suffix {
  margin-left: .25rem;
  font-size: .9em;
  opacity: .8;
}

/* Checkout: make product-info full width in review table */
.woocommerce-checkout-review-order-table .product-info { width: 100% !important; }
.woocommerce-checkout-review-order-table .product-info .inner h4 { margin: 0 0 6px; }

/* Modern checkout field styles */
.woocommerce-checkout .form-row { margin-bottom: 14px; }
.woocommerce-checkout .form-row label { font-weight: 600; margin-bottom: 6px; display: block; }
.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
  outline: none;
  border-color: var(--nectar-accent-color, #2b6cb0);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nectar-accent-color, #2b6cb0) 20%, transparent);
}
.woocommerce-checkout select { appearance: none; background-image: none; }
.woocommerce-checkout textarea { min-height: 120px; resize: vertical; }

/* Checkbox/radio accent */
.woocommerce-checkout input[type="checkbox"],
.woocommerce-checkout input[type="radio"] {
  accent-color: var(--nectar-accent-color, #2b6cb0);
}

/* Our custom delivery block spacing */
.fh-checkout-delivery-fields { margin-top: 18px; }
.fh-checkout-delivery-fields h3 { margin: 0 0 10px; }

/* Make email field stand out */
.woocommerce-checkout .fh-email-highlight {
  background: color-mix(in srgb, var(--nectar-accent-color, #2b6cb0) 3%, #fff);
  border: 1px solid var(--nectar-accent-color, #2b6cb0);
  border-radius: 14px;
  padding: 14px !important;
}
.woocommerce-checkout .fh-email-highlight .input-text {
  background: color-mix(in srgb, var(--nectar-accent-color, #2b6cb0) 6%, #fff);
  border-color: var(--nectar-accent-color, #2b6cb0);
}
.woocommerce-checkout .fh-email-highlight label { color: var(--nectar-accent-color, #2b6cb0); }

/* Shop archive: list layout */
.products.products-list {
  display: block;
  margin: 0;
}

.products.products-list > li {
  list-style: none;
  display: flex;
  flex-direction: column;
  width: 100% !important;
  margin: 0 0 28px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.products.products-list > li:hover {
  border-color: color-mix(in srgb, var(--nectar-accent-color, #2b6cb0) 45%, #e2e8f0);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.products.products-list > li > a {
  display: block;
}

.products.products-list .fh-product-list {
  display: flex;
  gap: 26px;
  align-items: stretch;
  padding: 24px;
}

.products.products-list .fh-product-list__media {
  flex: 0 0 260px;
  max-width: 260px;
}

.products.products-list .fh-product-list__media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.products.products-list .fh-product-list__summary {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
}

.products.products-list .fh-product-list__title {
  flex: 1 1 auto;
  min-width: 0;
}

.products.products-list .fh-product-list__title .woocommerce-loop-product__title {
  margin: 0;
}

.products.products-list .fh-product-list__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0;
}

.products.products-list .fh-product-list__meta .price {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.products.products-list .fh-product-list__meta .star-rating {
  margin: 0;
}

.products.products-list .button {
  margin: 0 24px 24px;
  align-self: flex-start;
}

.fh-price-on-request-button {
  pointer-events: none;
  cursor: default;
  opacity: 0.85;
}

.single-product .fh-price-on-request-button {
  width: 100%;
  text-align: center;
}

.fh-price-on-request-widgets {
  margin-top: 20px;
  padding: 24px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 247, 255, 0.95), rgba(230, 240, 255, 0.98));
  border: 1px solid rgba(79, 128, 255, 0.25);
  box-shadow: 0 10px 24px rgba(79, 128, 255, 0.12);
}

.fh-price-on-request-widgets .widget-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.fh-price-on-request-widgets p:last-child {
  margin-bottom: 0;
}

.single-product .woocommerce-tabs .fh-price-on-request {
  display: none !important;
}

@media (max-width: 1024px) {
  .products.products-list .fh-product-list {
    flex-direction: column;
  }

  .products.products-list .fh-product-list__media,
  .products.products-list .fh-product-list__summary {
    max-width: none;
    width: 100%;
  }

  .products.products-list .fh-product-list__summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .products.products-list .button {
    margin: 0 24px 24px;
  }
}
