/*
 * Wills Family Farm: black, white and gold storefront styling.
 * Written for the Astra theme + WooCommerce (classic and block cart/checkout).
 * Disable with: add_filter( 'wff_cut_sheet_load_theme_styles', '__return_false' );
 */

/* ---------- palette ---------- */
:root {
	--wff-black: #0b0b0b;
	--wff-ink: #151515;
	--wff-gold: #C9A961;
	--wff-gold-bright: #D4AF6A;
	--wff-gold-deep: #8a6d1d;
	--wff-cream: #faf8f3;
	--wff-line: #e4dfd2;
	--wff-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
	--wff-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Astra's global colours (set on body so they beat Astra's :root values). */
body {
	--ast-global-color-0: #8a6d1d;  /* links / accent */
	--ast-global-color-1: #C9A961;  /* hover */
	--ast-global-color-2: #0b0b0b;  /* headings */
	--ast-global-color-3: #2b2b2b;  /* body text */
	--ast-global-color-4: #faf8f3;  /* light background */
	--ast-global-color-5: #ffffff;  /* background */
	--ast-global-color-6: #e4dfd2;  /* borders */
	--ast-global-color-7: #0b0b0b;
	--ast-global-color-8: #0b0b0b;
}

/* ---------- typography ---------- */
body, button, input, select, textarea {
	font-family: var(--wff-sans);
}
body { color: #2b2b2b; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6,
.entry-title, .woocommerce-loop-product__title, .product_title,
.widget-title, .woocommerce div.product .woocommerce-tabs ul.tabs li a {
	font-family: var(--wff-serif);
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--wff-black);
}
h1, .entry-title, .product_title { font-weight: 700; line-height: 1.1; }

a { color: var(--wff-gold-deep); text-underline-offset: 3px; }
a:hover, a:focus { color: var(--wff-gold); }

/* ---------- header ---------- */
.site-header,
.ast-primary-header-bar,
.main-header-bar,
.ast-above-header-bar,
.ast-below-header-bar,
.ast-mobile-header-wrap .ast-mobile-header-content,
#ast-mobile-header .main-header-bar {
	background-color: #000000 !important;
}
.main-header-bar, .ast-primary-header-bar {
	border-bottom: 1px solid var(--wff-gold) !important;
}
.site-title a, .site-title a:hover,
.ast-site-identity .site-title a {
	font-family: var(--wff-serif);
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--wff-gold-bright) !important;
}
.site-description { color: #bdbdbd !important; font-family: var(--wff-sans); letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }
.main-header-menu .menu-link,
.main-header-menu > .menu-item > .menu-link,
.ast-header-break-point .main-header-menu .menu-link,
.ast-builder-menu .main-header-menu .menu-item > .menu-link,
.ast-header-account-wrap a, .ast-site-header-cart a, .ast-cart-menu-wrap .count {
	color: #f2f2f2 !important;
	font-family: var(--wff-sans);
	font-size: .82rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current_page_item > .menu-link,
.ast-builder-menu .main-header-menu .menu-item:hover > .menu-link {
	color: var(--wff-gold-bright) !important;
}
.main-header-menu .sub-menu { background: var(--wff-black) !important; border-top: 2px solid var(--wff-gold); }
.ast-mobile-menu-buttons .menu-toggle, .ast-button-wrap .menu-toggle { color: var(--wff-gold-bright) !important; }
.ast-header-break-point .main-header-bar-navigation { background: var(--wff-black); }

/* Gold-and-black wordmark: keep height in check so the black field
   blends with the header and the layout holds at 390px. Never stretch. */
.site-header .custom-logo-link img,
.site-header .custom-logo,
.ast-site-identity .custom-logo-link img,
.ast-site-identity .custom-logo {
	max-height: 64px;
	width: auto;
	height: auto;
	max-width: min(280px, 70vw);
}
@media (max-width: 921px) {
	.site-header .custom-logo-link img,
	.site-header .custom-logo,
	.ast-site-identity .custom-logo-link img,
	.ast-site-identity .custom-logo {
		max-height: 48px;
		max-width: min(220px, 62vw);
	}
}


/* ---------- buttons ---------- */
.button, button.button, input[type="submit"], input[type="button"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.wp-block-button__link, .wc-block-components-button:not(.is-link),
.ast-button, .ast-custom-button {
	background: var(--wff-black);
	color: var(--wff-gold-bright);
	border: 1px solid var(--wff-black);
	border-radius: 0;
	font-family: var(--wff-sans);
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 14px 28px;
	box-shadow: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.button:hover, button.button:hover, input[type="submit"]:hover, input[type="button"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.wp-block-button__link:hover, .wc-block-components-button:not(.is-link):hover,
.ast-button:hover, .ast-custom-button:hover {
	background: var(--wff-gold);
	color: var(--wff-black);
	border-color: var(--wff-gold);
}
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce #place_order, .single_add_to_cart_button {
	background: var(--wff-gold);
	color: var(--wff-black);
	border-color: var(--wff-gold);
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce #place_order:hover, .single_add_to_cart_button:hover {
	background: var(--wff-black);
	color: var(--wff-gold-bright);
	border-color: var(--wff-black);
}
.woocommerce button.button:disabled, .woocommerce button.button.disabled,
.single_add_to_cart_button.disabled, .single_add_to_cart_button:disabled {
	opacity: .45;
}
.single_add_to_cart_button { width: 100%; padding: 18px 28px; font-size: .95rem; }
.woocommerce div.product form.cart .single_variation_wrap { margin-top: 1rem; }

/* ---------- shop and product pages ---------- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.5rem;
	padding-top: .6em;
}
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price, .woocommerce div.product span.price {
	color: var(--wff-gold-deep);
	font-family: var(--wff-serif);
	font-size: 1.5rem;
	font-weight: 700;
}
.woocommerce ul.products li.product img { border-bottom: 2px solid var(--wff-gold); }
.woocommerce span.onsale {
	background: var(--wff-black);
	color: var(--wff-gold-bright);
	border-radius: 0;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-size: .7rem;
	min-height: 0; min-width: 0; line-height: 1;
	padding: .6em .9em;
}
.woocommerce div.product .product_title { font-size: 2.6rem; margin-bottom: .2em; }
.woocommerce div.product .woocommerce-product-details__short-description { color: #444; margin-bottom: 1.25rem; }
.woocommerce div.product form.cart .variations { margin-bottom: .5rem; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations label {
	font-family: var(--wff-serif);
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--wff-black);
}
.woocommerce div.product form.cart .variations select {
	border: 1px solid #cfc8b6;
	border-radius: 0;
	padding: 12px 14px;
	min-width: 220px;
	background-color: #fff;
}
.woocommerce div.product form.cart .reset_variations { color: var(--wff-gold-deep); font-size: .85rem; }
.woocommerce div.product .woocommerce-variation-price .price { font-size: 1.6rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--wff-gold); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 3px solid var(--wff-gold); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom: 0; }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top-color: var(--wff-gold) !important;
	background: var(--wff-cream);
	color: #222;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--wff-gold-deep) !important; }
.woocommerce-error { border-top-color: #a3261b !important; }
.woocommerce-error::before { color: #a3261b !important; }

/* ---------- forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"],
input[type="search"], textarea, select,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.select2-container--default .select2-selection--single {
	border: 1px solid #cfc8b6;
	border-radius: 0;
	background: #fff;
	color: var(--wff-ink);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="number"]:focus,
input[type="password"]:focus, input[type="search"]:focus, textarea:focus, select:focus,
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus {
	border-color: var(--wff-gold-deep);
	outline: 2px solid var(--wff-gold);
	outline-offset: 0;
	box-shadow: none;
}
.woocommerce form .form-row label { font-weight: 600; color: var(--wff-black); }
.woocommerce form .form-row .required { color: var(--wff-gold-deep); }

/* ---------- cart ---------- */
.woocommerce table.shop_table {
	border: 1px solid var(--wff-line);
	border-radius: 0;
}
.woocommerce table.shop_table th {
	font-family: var(--wff-serif);
	font-size: 1.05rem;
	color: var(--wff-black);
	background: var(--wff-cream);
}
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--wff-line); }
.woocommerce-cart table.cart .product-name a { font-family: var(--wff-serif); font-size: 1.25rem; font-weight: 700; color: var(--wff-black); text-decoration: none; }
.woocommerce a.remove { color: var(--wff-gold-deep) !important; }
.woocommerce a.remove:hover { background: var(--wff-black) !important; color: var(--wff-gold-bright) !important; }
.cart_totals h2, .woocommerce-checkout h3, #order_review_heading {
	font-family: var(--wff-serif);
	font-size: 1.7rem;
	border-bottom: 1px solid var(--wff-gold);
	padding-bottom: .3em;
}

/* Cut sheet summary inside cart / checkout / order tables (classic). */
.woocommerce td.product-name dl.variation,
.woocommerce-checkout-review-order-table dl.variation,
.woocommerce table.shop_table .wc-item-meta {
	margin: .6em 0 0;
	font-size: .82rem;
	line-height: 1.45;
	color: #444;
}
.woocommerce td.product-name dl.variation dt,
.woocommerce-checkout-review-order-table dl.variation dt {
	float: none;
	margin: .7em 0 0;
	font-family: var(--wff-sans);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wff-gold-deep);
	border-bottom: 1px solid var(--wff-line);
}
.woocommerce td.product-name dl.variation dd,
.woocommerce-checkout-review-order-table dl.variation dd { margin: 2px 0 0; }
.woocommerce td.product-name dl.variation dd p,
.woocommerce-checkout-review-order-table dl.variation dd p { margin: 0; }

/* Block cart and checkout */
.wc-block-components-product-details { display: block; font-size: .82rem; line-height: 1.45; list-style: none; margin: .5em 0 0; padding: 0; }
.wc-block-components-product-details > span,
.wc-block-components-product-details > li { display: block; margin: .65em 0 0; }
.wc-block-components-product-details > span > span[aria-hidden="true"],
.wc-block-components-product-details > li > span[aria-hidden="true"] { display: none; }
.wc-block-components-product-details__name {
	display: block;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wff-gold-deep);
	border-bottom: 1px solid var(--wff-line);
}
.wc-block-components-product-details__value { display: block; white-space: pre-line; color: #444; margin-top: 2px; }
.wp-block-woocommerce-cart .wc-block-components-product-name,
.wp-block-woocommerce-checkout .wc-block-components-product-name,
.wc-block-components-product-name { font-family: var(--wff-serif); font-size: 1.25rem; font-weight: 700; color: var(--wff-black); }
.wc-block-components-totals-item__value, .wc-block-formatted-money-amount { color: var(--wff-black); }
.wc-block-components-panel__button, .wc-block-components-title, .wc-block-checkout__sidebar .wc-block-components-title {
	font-family: var(--wff-serif);
}
.wc-block-components-checkbox .wc-block-components-checkbox__input:checked,
.wc-block-components-radio-control__input:checked { border-color: var(--wff-gold-deep); }

/* Order received / account order details */
.woocommerce-order-details .wc-item-meta { list-style: none; padding: 0; margin: .6em 0 0; font-size: .85rem; }
.woocommerce-order-details .wc-item-meta li { margin: 0 0 .5em; }
.woocommerce-order-details .wc-item-meta strong { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wff-gold-deep); }
.woocommerce-order-details .wc-item-meta p { display: inline; margin: 0; white-space: pre-line; }
.woocommerce-order-overview { border: 1px solid var(--wff-line); background: var(--wff-cream); padding: 1rem 1.25rem; }

/* ---------- footer ---------- */
.site-footer, .site-footer p, .site-footer .ast-footer-copyright, .site-footer .ast-footer-copyright * { color: #cfcfcf; }
.site-footer, .site-footer .ast-builder-grid-row, .site-below-footer-wrap, .site-primary-footer-wrap {
	background: var(--wff-black) !important;
	color: #cfcfcf;
}
.site-footer a, .site-footer .ast-footer-copyright a { color: var(--wff-gold-bright); }
.site-footer a:hover { color: #fff; }
.site-footer { border-top: 2px solid var(--wff-gold); }

/* ---------- small screens ---------- */
@media (max-width: 600px) {
	.woocommerce div.product .product_title { font-size: 2rem; }
	.single_add_to_cart_button { padding: 16px 20px; }
}

/* ---------- WO12 (1.6.14) ---------- */
/* Item 1c: the "View cart" button in the added-to-cart notice gets the Contact page "Send message" colors. */
.woocommerce-message a.button.wc-forward, .woocommerce .woocommerce-message a.button.wc-forward { color: rgb(212, 175, 106) !important; background: rgb(11, 11, 11) !important; }
.woocommerce-message a.button.wc-forward:hover, .woocommerce-message a.button.wc-forward:focus,
.woocommerce .woocommerce-message a.button.wc-forward:hover, .woocommerce .woocommerce-message a.button.wc-forward:focus { color: rgb(11, 11, 11) !important; background: rgb(201, 169, 97) !important; }
/* Item 6c: the header "Order" button, same look as on the homepage, on every page that has it. */
.main-header-menu .wffh4-nav-order { display:flex; align-items:center; }
.main-header-menu .wffh4-nav-order > a { background:#C9A961; color:#121212 !important; border-radius:4px; padding:9px 20px !important; margin-left:10px; line-height:1.2 !important; height:auto !important; min-height:0 !important; font-weight:700; }
.main-header-menu .menu-item.wffh4-nav-order > .menu-link, .main-header-menu .menu-item.wffh4-nav-order > .menu-link:hover, .main-header-menu .menu-item.wffh4-nav-order > .menu-link:focus, .main-header-menu .menu-item.wffh4-nav-order.current-menu-item > .menu-link { color:#121212 !important; }
/* Item 6d: in the phone menu "Order" is the first row: full width, the same height as the other rows, gold with dark words. */
.ast-header-break-point .ast-builder-menu-mobile .main-header-menu .menu-item.wffh4-nav-order { display:block; }
.ast-header-break-point .ast-builder-menu-mobile .main-header-menu .menu-item.wffh4-nav-order > .menu-link,
.ast-header-break-point .ast-builder-menu-mobile .main-header-menu .menu-item.wffh4-nav-order > .menu-link:hover,
.ast-header-break-point .ast-builder-menu-mobile .main-header-menu .menu-item.wffh4-nav-order > .menu-link:focus { background:#C9A961 !important; color:#121212 !important; margin:0 !important; padding:10px 15px !important; line-height:3em !important; border-radius:0 !important; width:100%; box-sizing:border-box; }

/* Item 6e: phone header on screens narrower than 1,040 px. Astra switches its header at 922 px;
   between 922 and 1,039 px this shows Astra's phone header with the same styles it uses below 922 px
   (copied from the live site's Astra header styles and this plugin's own phone header rules). */
@media (min-width: 922px) and (max-width: 1039.98px) {
#ast-desktop-header { display:none !important; }
.ast-header-break-point #ast-mobile-header { display:block !important; }
.ast-mobile-header-stack .main-header-bar .ast-search-menu-icon { display:inline-block; }
.ast-header-break-point.ast-header-custom-item-outside .ast-mobile-header-stack .main-header-bar .ast-search-icon { margin:0; }
.site-title { display:none; }
.site-header .site-description { display:none; }
.ast-builder-grid-row-container.ast-builder-grid-row-tablet-3-firstrow .ast-builder-grid-row > *:first-child,.ast-builder-grid-row-container.ast-builder-grid-row-tablet-3-lastrow .ast-builder-grid-row > *:last-child { grid-column:1 / -1; }
.ast-header-break-point .ast-builder-layout-element[data-section="title_tagline"] { display:flex; }
.ast-header-break-point .ast-builder-menu-1 .menu-item.menu-item-has-children > .ast-menu-toggle { top:0; }
.ast-builder-menu-1 .inline-on-mobile .menu-item.menu-item-has-children > .ast-menu-toggle { right:-15px; }
.ast-builder-menu-1 .menu-item-has-children > .menu-link:after { content:unset; }
.ast-builder-menu-1 .main-header-menu > .menu-item > .sub-menu,.ast-builder-menu-1 .main-header-menu > .menu-item > .astra-full-megamenu-wrapper { margin-top:0; }
.ast-header-break-point .ast-builder-menu-1 { display:flex; }
.ast-builder-grid-row-container.ast-builder-grid-row-tablet-full .ast-builder-grid-row { grid-template-columns:1fr; }
.ast-builder-grid-row-container.ast-builder-grid-row-tablet-3-equal .ast-builder-grid-row { grid-template-columns:repeat( 3,1fr ); }
.ast-mobile-header-wrap .ast-primary-header-bar,.ast-primary-header-bar .site-primary-header-wrap { min-height:100px; }
.ast-header-break-point .ast-primary-header-bar { display:grid; }
.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .menu-link { color:var(--ast-global-color-2);padding-top:10px;padding-bottom:10px;padding-left:15px;padding-right:15px; }
.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .ast-menu-toggle { color:var(--ast-global-color-2); }
.ast-builder-menu-mobile .main-navigation .menu-link:hover, .ast-builder-menu-mobile .main-navigation .main-header-menu > .menu-item:hover > .menu-link, .ast-builder-menu-mobile .main-navigation .inline-on-mobile .ast-menu-toggle:hover, .ast-builder-menu-mobile .main-navigation .inline-on-mobile .main-header-menu > .menu-item:hover > .ast-menu-toggle { color:var(--ast-global-color-2); }
.ast-builder-menu-mobile .main-navigation .ast-menu-toggle:hover, .ast-builder-menu-mobile .main-navigation .main-header-menu > .menu-item:hover > .ast-menu-toggle { color:var(--ast-global-color-2); }
.ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item > .menu-link, .ast-builder-menu-mobile .main-navigation .inline-on-mobile .menu-item.current-menu-item > .ast-menu-toggle, .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-ancestor > .menu-link, .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-ancestor > .ast-menu-toggle { color:var(--ast-global-color-0); }
.ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item > .ast-menu-toggle { color:var(--ast-global-color-0); }
.ast-builder-menu-mobile .main-navigation .menu-item.menu-item-has-children > .ast-menu-toggle { top:10px;right:calc( 15px - 0.907em ); }
.ast-builder-menu-mobile .main-navigation .menu-item-has-children > .menu-link:after { content:unset; }
.ast-header-break-point .ast-builder-menu-mobile .main-navigation { display:block; }
.site-header .custom-logo-link img,.site-header .custom-logo,.ast-site-identity .custom-logo-link img,.ast-site-identity .custom-logo { max-height:48px;max-width:min(220px, 62vw); }
.wffh4-page .custom-logo-link img, .wffh4-page .custom-mobile-logo-link img { max-height:40px !important; width:auto !important; } .wffh4-page .ast-mobile-header-wrap .ast-primary-header-bar, .wffh4-page .ast-mobile-header-wrap .main-header-bar { min-height:58px !important; padding-top:4px; padding-bottom:4px; } .wffh4-page .ast-mobile-header-wrap .site-branding { padding:0 !important; }
}
