/*
Theme Name: Wine With Leigh — Noir
Theme URI: https://winewithleigh.com
Author: Leigh
Description: A classic luxury-cellar block theme for Wine With Leigh — near-black, deep gold and warm white EB Garamond, designed around the site's own content, fonts and imagery. WooCommerce compatible.
Version: 1.0.4
Requires at least: 6.4
Tested up to: 6.8
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: winewithleigh-noir
Tags: e-commerce, blog, one-column, custom-colors, custom-logo, editor-style, block-styles, full-site-editing
*/

/* Fine detail that goes beyond theme.json */

.wp-block-navigation a {
	letter-spacing: .28em;
	text-transform: uppercase;
	font-size: .72rem;
}

.wp-block-site-title a {
	text-decoration: none;
}

.wwl-keyline {
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--gold), transparent);
}

.wwl-kicker {
	color: var(--wp--preset--color--gold);
	font-family: var(--wp--preset--font-family--josefin-sans);
	font-size: .7rem;
	letter-spacing: .42em;
	text-transform: uppercase;
}

.wwl-orn {
	color: var(--wp--preset--color--gold);
	text-align: center;
	font-size: 1.15rem;
}

.wp-block-button__link {
	letter-spacing: .28em;
	text-transform: uppercase;
	font-size: .72rem;
	border-radius: 2px;
	padding: 15px 34px 13px;
}

.wp-block-post-title a { text-decoration: none; }
.wp-block-post-title a:hover { color: var(--wp--preset--color--wine); }

.wp-block-quote {
	border-left: 2px solid var(--wp--preset--color--gold);
	font-style: italic;
	font-size: 1.3rem;
}

/* Reusable "at a glance" info card -- used on the Contact page */
.wwl-infocard {
	border: 1px solid rgba(215,180,120,.4);
	background: var(--wp--preset--color--cream);
	padding: 30px 32px;
	border-radius: 3px;
}

/* ============================================
   Noir/Gold redesign pass -- WooCommerce polish
   (classic templates: single product, cart, checkout,
   and any classic ul.products loops such as related products)
   ============================================ */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	background: var(--wp--preset--color--cream);
	border: 1px solid rgba(215,180,120,.35);
	border-radius: 3px;
	padding: 18px 18px 22px;
	transition: transform .2s ease, border-color .2s ease;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-3px);
	border-color: var(--wp--preset--color--gold-soft);
}
.woocommerce ul.products li.product img {
	background: transparent;
	border-radius: 2px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--eb-garamond);
	font-size: 1.25rem;
	font-weight: 500;
}
.woocommerce ul.products li.product a {
	text-decoration: none;
}

.woocommerce span.onsale {
	background: var(--wp--preset--color--gold);
	color: #1a1206;
	font-family: var(--wp--preset--font-family--josefin-sans);
	letter-spacing: .16em;
	text-transform: uppercase;
	font-size: .68rem;
	font-weight: 600;
	border-radius: 2px;
	min-height: unset;
	min-width: unset;
	padding: 6px 11px 5px;
	top: 12px;
	right: 12px;
	left: auto;
	line-height: 1.4;
	box-shadow: none;
}
.woocommerce ul.products li.product .price del {
	color: #a8977f;
	opacity: .7;
}
.woocommerce ul.products li.product .price ins {
	text-decoration: none;
	color: var(--wp--preset--color--gold-soft);
}
.woocommerce ul.products li.product .price {
	color: var(--wp--preset--color--gold);
	font-family: var(--wp--preset--font-family--josefin-sans);
	letter-spacing: .24em;
	text-transform: uppercase;
	font-size: .78rem;
}

.woocommerce select,
.woocommerce-page select,
select {
	background-color: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--ink);
	border: 1px solid rgba(215,180,120,.4);
	border-radius: 2px;
	padding: 8px 12px;
	font-family: var(--wp--preset--font-family--josefin-sans);
}

/* Single product page */
.woocommerce div.product span.price,
.woocommerce div.product p.price {
	color: var(--wp--preset--color--gold-soft);
}

/* Cart & checkout */
.woocommerce table.shop_table {
	border: 1px solid rgba(215,180,120,.35);
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--ink);
}
.woocommerce table.shop_table th {
	color: var(--wp--preset--color--gold-soft);
	font-family: var(--wp--preset--font-family--josefin-sans);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .78rem;
}
.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
	border-color: rgba(215,180,120,.18);
}
.woocommerce #payment,
.woocommerce-checkout #payment,
.woocommerce-checkout-review-order {
	background: var(--wp--preset--color--cream);
	border: 1px solid rgba(215,180,120,.25);
}
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce-page input.input-text,
.woocommerce-page textarea,
.woocommerce div.product form.cart .quantity input.qty {
	background: rgba(255,255,255,.03);
	border: 1px solid rgba(215,180,120,.35);
	color: var(--wp--preset--color--ink);
	border-radius: 2px;
}
.woocommerce-error, .woocommerce-info, .woocommerce-message {
	background: var(--wp--preset--color--cream);
	border-top-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
}

/* ============================================
   Noir/Gold redesign pass -- WPForms polish
   ============================================ */
.wpforms-container input[type=text],
.wpforms-container input[type=email],
.wpforms-container input[type=tel],
.wpforms-container input[type=url],
.wpforms-container input[type=number],
.wpforms-container textarea,
.wpforms-container select {
	background: rgba(255,255,255,.03) !important;
	border: 1px solid rgba(215,180,120,.4) !important;
	color: var(--wp--preset--color--ink) !important;
	border-radius: 2px !important;
	font-family: var(--wp--preset--font-family--eb-garamond) !important;
}
.wpforms-container input[type=text]:focus,
.wpforms-container input[type=email]:focus,
.wpforms-container input[type=tel]:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus {
	border-color: var(--wp--preset--color--gold) !important;
	outline: none;
	box-shadow: 0 0 0 1px var(--wp--preset--color--gold);
}
.wpforms-container label,
.wpforms-container legend,
.wpforms-container .wpforms-field-label {
	color: var(--wp--preset--color--ink) !important;
	font-family: var(--wp--preset--font-family--josefin-sans) !important;
	letter-spacing: .04em;
}
.wpforms-container .wpforms-field-description,
.wpforms-container .wpforms-field-sublabel {
	color: #a8977f !important;
}
.wpforms-container button[type=submit],
.wpforms-container .wpforms-submit {
	background: var(--wp--preset--color--gold) !important;
	color: #1a1206 !important;
	font-family: var(--wp--preset--font-family--josefin-sans) !important;
	letter-spacing: .28em;
	text-transform: uppercase;
	font-size: .72rem;
	border: none;
	border-radius: 2px;
	padding: 15px 34px 13px !important;
}
.wpforms-container button[type=submit]:hover,
.wpforms-container .wpforms-submit:hover {
	background: var(--wp--preset--color--gold-soft) !important;
}
.wpforms-container select option {
	background: #17120e;
	color: #f2ead8;
}

/* ============================================
   WooCommerce BLOCKS templates (this shop uses the
   block-based Product Collection grid, not classic
   ul.products markup -- separate selectors needed)
   ============================================ */
.wc-block-product {
	background: var(--wp--preset--color--cream) !important;
	border: 1px solid rgba(215,180,120,.35);
	border-radius: 3px;
	padding: 16px 16px 20px;
	transition: transform .2s ease, border-color .2s ease;
}
.wc-block-product:hover {
	transform: translateY(-3px);
	border-color: var(--wp--preset--color--gold-soft);
}
.wc-block-components-product-image {
	background: transparent !important;
	border-radius: 2px;
}
.wc-block-components-product-image img {
	border-radius: 2px;
}
.wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--gold) !important;
	color: #1a1206 !important;
	font-family: var(--wp--preset--font-family--josefin-sans);
	letter-spacing: .16em;
	text-transform: uppercase;
	font-size: .68rem;
	font-weight: 600;
	border-radius: 2px !important;
	border: none !important;
	padding: 6px 11px 5px;
}
.wc-block-components-product-price del {
	color: #a8977f;
	opacity: .7;
}
.wc-block-components-product-price ins {
	text-decoration: none;
	color: var(--wp--preset--color--gold-soft);
}
.wc-block-catalog-sorting select,
select.orderby {
	background-color: var(--wp--preset--color--cream) !important;
	color: var(--wp--preset--color--ink) !important;
	border: 1px solid rgba(215,180,120,.4) !important;
	border-radius: 2px !important;
	padding: 8px 30px 8px 12px !important;
	font-family: var(--wp--preset--font-family--josefin-sans) !important;
}
.wc-block-catalog-sorting select option,
select.orderby option {
	background: #17120e;
	color: #f2ead8;
}

/* WooCommerce refinements */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--eb-garamond);
	font-size: 1.25rem;
	font-weight: 500;
}
.woocommerce a.button,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button {
	background: var(--wp--preset--color--wine);
	color: #f3e9d5;
	border-radius: 2px;
	letter-spacing: .2em;
	text-transform: uppercase;
	font-size: .72rem;
}
.woocommerce a.button:hover,
.woocommerce button.button.alt:hover {
	background: #7c1e33;
	color: #fff;
}


/* Rare Wine Portfolio: photo hero (below) replaces the default title banner */
body.page-id-42 main > .wp-block-post-title,
body.page-id-42 main > hr.wp-block-separator {
	display: none;
}


/* Ensure WooCommerce classic product-grid columns (e.g. Rare Wine Portfolio [products] shortcode) fit as intended: padding/border must count inside the column width percentage */
.woocommerce ul.products li.product {
	box-sizing: border-box;
}
