/*
Theme Name:   Opes Roast
Theme URI:    https://www.opesroast.com
Description:  Block child theme for Opes Roast, rebuilt from the Squarespace site. Parent: Twenty Twenty-Five. Styled for WooCommerce.
Author:       Opes Roast
Template:     twentytwentyfive
Version:      1.0.0
Requires at least: 6.7
Requires PHP: 8.1
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  opes-roast
*/

/* Most styling lives in theme.json. These are the few things theme.json can't express. */

/* ---------- Full-width home sections sit flush against each other ---------- */
.wp-block-post-content > .alignfull { margin-block-start: 0; }

/* ---------- Header ---------- */
.opes-header .wp-block-site-logo img { height: auto; }
.opes-header .wp-block-navigation__container { flex-wrap: nowrap; }
@media (max-width: 600px) {
	.opes-header .wp-block-site-logo img { width: 60px !important; }
	.opes-header .alignwide > .wp-block-group,
	.opes-header .wp-block-navigation__container { gap: 14px !important; }
}
.opes-header .wp-block-navigation a { text-underline-offset: .35em; }
.opes-header .wp-block-navigation .current-menu-item > a,
.opes-header .wp-block-navigation a[aria-current="page"] { text-decoration: underline; }

/* ---------- Buttons: match the Squarespace black button with a light inset ring ---------- */
.wp-element-button,
.wp-block-button__link,
.woocommerce .button,
.wc-block-components-button:not(.is-link) {
	transition: background-color .15s ease, color .15s ease;
}

/* ---------- Classic product grid ([products] shortcode on the home page) ---------- */
.opes-products ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--wp--preset--spacing--50);
	margin: 0 !important;
	padding: 0;
}
.opes-products ul.products::before,
.opes-products ul.products::after { content: none !important; }
.opes-products ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	display: flex;
	flex-direction: column;
	text-align: left;
}
.opes-products ul.products li.product img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: var(--wp--preset--spacing--30) !important;
}
.opes-products ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--young-serif);
	font-size: var(--wp--preset--font-size--large) !important;
	color: var(--wp--preset--color--roast);
	padding: 0 !important;
	line-height: 1.2;
}
.opes-products ul.products li.product .price {
	color: var(--wp--preset--color--contrast) !important;
	font-size: var(--wp--preset--font-size--medium) !important;
}
.opes-products ul.products li.product .button { margin-top: auto; align-self: flex-start; }

/* ---------- Product images: soft rounded corners like the original ---------- */
.wc-block-components-product-image img,
.woocommerce-product-gallery img,
.wp-block-woocommerce-product-image-gallery img { border-radius: 10px; }

/* ---------- Notice box used for the local pickup / delivery note ---------- */
.opes-note {
	border-left: 3px solid var(--wp--preset--color--gold);
}

/* ---------- Footer ---------- */
.opes-footer a { text-decoration: none; }
.opes-footer a:hover { text-decoration: underline; }
