/*
Theme Name: Food Factory Tech
Theme URI: https://foodfactorytech.co.uk
Author: Food Factory Tech Ltd
Author URI: https://foodfactorytech.co.uk
Description: WooCommerce storefront for Food Factory Tech Ltd - UK commercial catering equipment supplier. Converted from the original Shopify theme. Dark, high-contrast design with an AJAX cart drawer powered by the WooCommerce Store API.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fft
WC requires at least: 7.0
WC tested up to: 8.9
Tags: e-commerce, catering, custom-colors, custom-menu, featured-images
*/

/*
 * The full design lives in assets/css/theme.css and assets/css/tailwind.css,
 * both enqueued from functions.php. This file only carries the theme header
 * required by WordPress, plus a couple of WooCommerce-page utilities.
 */

/* WooCommerce notices inherit the site's dark palette */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: #E63012;
  background: #1a1a1a;
  color: #e5e7eb;
  border-radius: 12px;
  margin: 0 0 24px;
  list-style: none;
}
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a { color: #E63012; }

/* Map WordPress paginate_links() (.page-numbers) onto the theme's .page-btn look */
.pagination ul.page-numbers {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.pagination .page-numbers {
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; border: 1px solid rgba(255,255,255,0.1);
  color: #9ca3af; transition: all 0.2s; text-decoration: none;
}
.pagination a.page-numbers:hover { border-color: rgba(230,48,18,0.4); color: #ffffff; }
.pagination .page-numbers.current { background: #E63012; border-color: #E63012; color: #ffffff; }

/* Header product search */
.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; padding: 8px 12px; width: 240px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.nav-search:focus-within { border-color: #E63012; box-shadow: 0 0 0 3px rgba(230,48,18,0.15); }
.nav-search-icon { color: #9ca3af; flex-shrink: 0; }
.nav-search-input,
.mobile-search .nav-search-input {
  -webkit-appearance: none; appearance: none;
  background: transparent !important; border: none; outline: none; box-shadow: none;
  color: #ffffff !important; font-size: 13px; width: 100%; font-family: inherit; padding: 0; margin: 0;
}
.nav-search-input::placeholder,
.mobile-search .nav-search-input::placeholder { color: #9ca3af; opacity: 1; }
.nav-search-input::-webkit-search-decoration,
.nav-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mobile-search { margin-bottom: 12px; }
.mobile-search .nav-search-input {
  background: #1a1a1a !important; border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; padding: 12px 14px; box-sizing: border-box;
}
@media (max-width: 1100px) { .nav-search { display: none; } }

/* Native WooCommerce add-to-cart form fallback (variable products) */
.fft-native-atc { margin: 24px 0; }
.fft-native-atc .quantity input.qty {
  width: 72px; padding: 12px; background: #1a1a1a; color: #fff;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; margin-right: 12px;
}
.fft-native-atc table.variations { width: 100%; margin-bottom: 16px; }
.fft-native-atc table.variations td,
.fft-native-atc table.variations th { padding: 6px 0; color: #e5e7eb; }
.fft-native-atc select {
  width: 100%; padding: 12px; background: #1a1a1a; color: #fff;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 10px;
}
.fft-native-atc .button,
.fft-native-atc button.single_add_to_cart_button {
  background: #E63012; color: #fff; border: none; border-radius: 10px;
  padding: 14px 28px; font-weight: 700; cursor: pointer; margin-top: 12px;
}
.fft-native-atc .button:hover { opacity: 0.9; }
