/*
Theme Name: HealthFit Food
Theme URI: https://healthfitfood.com/
Author: HealthFit Food
Description: Retail + domestic wholesale seafood theme. Light "fresh market" look with the official HealthFit logo. Single design system, zero per-page style drift.
Version: 2.1.0
License: GNU GPLv2 or later
Text Domain: healthfit
*/

/* ============================================================
   DESIGN TOKENS — light/fresh scheme (single source of truth).
   ============================================================ */
:root {
	--bg-ocean:  #f6f9fb;   /* page background            */
	--bg-slate:  #ffffff;   /* cards / raised surfaces     */
	--bg-ink:    #0c1628;   /* deep navy — kept for accents */
	--surface:   #eef4f3;   /* subtle fills / placeholders */
	--surface-2: #eef4f3;
	--teal:      #0fb5a6;   /* primary accent (teal-green) */
	--blue:      #2f80ed;   /* secondary accent            */
	--gold:      #ff7a59;   /* highlight (coral)           */
	--text:      #0c1628;   /* primary text / headings     */
	--white:     #ffffff;
	--muted:     #5c6b7d;   /* secondary text              */
	--dim:       #8a97a6;   /* tertiary / labels           */
	--line:      #e6eef0;   /* borders                     */
	--brand-grad: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
	--font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--radius: 14px;
	--radius-sm: 9px;
	--container: 1200px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--shadow: 0 18px 45px rgba(12,22,40,.10);
}

/* ============================================================ RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
	background: var(--bg-ocean);
	color: var(--text);
	font-family: var(--font);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
ul { list-style: none; }

/* ============================================================ LAYOUT */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 52px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.eyebrow {
	display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .18em;
	text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.text-grad {
	background: var(--brand-grad); -webkit-background-clip: text;
	background-clip: text; -webkit-text-fill-color: transparent;
}

/* ============================================================ BUTTONS */
.btn {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	font-family: var(--font); font-weight: 600; font-size: .98rem;
	padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand-grad); color: var(--white); box-shadow: 0 10px 24px rgba(15,181,166,.28); }
.btn--primary:hover { color: var(--white); box-shadow: 0 16px 34px rgba(15,181,166,.36); }
.btn--ghost { background: var(--white); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ============================================================ HEADER / NAV */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.9); backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--muted); font-weight: 500; font-size: .96rem; }
.nav a:hover, .nav .current-menu-item > a { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-link { position: relative; color: var(--text); font-weight: 600; }
.cart-link .count {
	position: absolute; top: -8px; right: -12px; background: var(--teal); color: var(--white);
	font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px;
	display: grid; place-items: center; padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ============================================================ HERO */
.hero { position: relative; padding: 120px 0 100px; text-align: center; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(60% 55% at 50% 0%, rgba(15,181,166,.10), transparent 70%),
		radial-gradient(50% 50% at 85% 30%, rgba(47,128,237,.09), transparent 70%);
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin: 22px auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================ CARD / PRODUCT */
.card {
	background: var(--bg-slate); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow);
	transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(15,181,166,.5); }
.card__media { aspect-ratio: 4/3; background: var(--surface); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px; }
.card__body h3 { font-size: 1.15rem; }
.card__body p { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.price { color: var(--teal); font-weight: 700; font-size: 1.15rem; margin-top: 12px; display: block; }

.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 200px;
	display: flex; align-items: flex-end; padding: 22px; border: 1px solid var(--line);
	background: var(--white); box-shadow: var(--shadow); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.cat-tile h3 { font-size: 1.3rem; }
.cat-tile:hover { border-color: rgba(15,181,166,.5); transform: translateY(-4px); }

/* ============================================================ B2B / QUOTE BAND */
.band { background: var(--surface-2); border-block: 1px solid var(--line); }
.band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }

/* ============================================================ FORMS */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 7px; color: var(--muted); }
.form input, .form select, .form textarea {
	width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
	background: var(--white); border: 1px solid var(--line); color: var(--text); font-family: var(--font); font-size: 1rem;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,181,166,.12); }
.form textarea { min-height: 130px; resize: vertical; }
.notice-ok { background: rgba(15,181,166,.10); border: 1px solid var(--teal); color: var(--text); padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; }

/* ============================================================ FOOTER (light) */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 64px 0 30px; }
.site-footer .brand img { height: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--muted); font-size: .95rem; }
.site-footer a:hover { color: var(--teal); }
.site-footer p { color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px; color: var(--dim); font-size: .88rem; text-align: center; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: all .25s var(--ease); }
.footer-social a:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.footer-legal a { color: var(--dim); font-size: .85rem; }
.footer-legal a:hover { color: var(--teal); }

/* ============================================================ WOOCOMMERCE OVERRIDES */
.woocommerce, .woocommerce-page { color: var(--text); }
.woocommerce .page-title, .woocommerce h1, .woocommerce h2 { color: var(--text); }
/* Force our grid over WooCommerce's default float/percentage-width layout. */
.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 0 !important; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important; clear: none !important;
	display: flex !important; flex-direction: column;
	background: var(--white); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden; padding: 0 0 18px; text-align: left; box-shadow: var(--shadow);
	transition: transform .3s var(--ease), border-color .3s var(--ease); }
.woocommerce ul.products li.product:hover { transform: translateY(-6px); border-color: rgba(15,181,166,.5); }
.woocommerce ul.products li.product a img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; margin: 0 0 14px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 18px; font-size: 1.1rem; color: var(--text); }
.woocommerce ul.products li.product .price { padding: 0 18px; color: var(--teal) !important; }
.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	display: inline-block; width: auto; align-self: flex-start; white-space: nowrap;
	background: var(--brand-grad); color: var(--white); border-radius: 999px; font-weight: 600; padding: 11px 22px; margin: 12px 18px 0; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .button.alt { background: var(--brand-grad); color: var(--white); opacity: .92; }
.woocommerce div.product .product_title { color: var(--text); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--teal); }
.woocommerce .quantity input.qty { background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.woocommerce table.shop_table, .woocommerce-cart table.cart, .woocommerce table.shop_table th, .woocommerce table.shop_table td {
	background: var(--white); color: var(--text); border-color: var(--line); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.select2-container .select2-selection { background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.woocommerce-message, .woocommerce-info { background: var(--surface-2); border-top-color: var(--teal); color: var(--text); }
.woocommerce .woocommerce-message::before, .woocommerce-info::before { color: var(--teal); }
.woocommerce #respond input#submit, .woocommerce-cart .wc-proceed-to-checkout a.checkout-button { background: var(--brand-grad); color: var(--white); }

/* ============================================================ RESPONSIVE */
@media (max-width: 980px) {
	.grid--3, .grid--4, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
	.band-grid, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 680px) {
	.nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
		background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 0; display: none; box-shadow: var(--shadow); }
	.nav.open { display: flex; }
	.nav a { padding: 14px 24px; width: 100%; }
	.nav-toggle { display: block; }
	.grid--3, .grid--4, .woocommerce ul.products, .form .row { grid-template-columns: 1fr !important; }
	.section { padding: 60px 0; }
}
