/*
Theme Name: Root Shop
Theme URI: https://shop.rootmobile.net
Description: Root Mobile WooCommerce storefront - child of Twenty Twenty-Five. Dark marketing chrome with a light catalog surface.
Author: Root Mobile
Author URI: https://rootmobile.net
Template: twentytwentyfive
Version: 1.2.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: root-shop
*/

/* WooCommerce primary buttons — Root green */
.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) {
	background-color: #28c101 !important;
	border-color: #28c101 !important;
	color: #ffffff !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit: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 {
	background-color: #20a000 !important;
	border-color: #20a000 !important;
	color: #ffffff !important;
}

/* Dark chrome helpers for header / footer / hero */
.root-shop-chrome {
	background-color: #1e1e1e;
	color: #e0e0e0;
}

.root-shop-chrome a {
	color: #e0e0e0;
	text-decoration: none;
}

.root-shop-chrome a:hover {
	color: #28c101;
}

.root-shop-site-header .wp-block-site-logo img,
.root-shop-site-header .custom-logo {
	max-height: 40px;
	width: auto;
}

.root-shop-header-actions {
	gap: 0.75rem;
	align-items: center;
}

/* Keep header Log in as outline (don't force green fill from global button rules) */
.root-shop-site-header .root-shop-login-btn .wp-block-button__link,
.root-shop-site-header .root-shop-login-btn .wp-element-button {
	background-color: transparent !important;
	border: 1px solid #28c101 !important;
	color: #28c101 !important;
}

.root-shop-site-header .root-shop-login-btn .wp-block-button__link:hover,
.root-shop-site-header .root-shop-login-btn .wp-element-button:hover {
	background-color: #28c101 !important;
	color: #ffffff !important;
}

.root-shop-site-header .wc-block-mini-cart__button {
	color: #e0e0e0 !important;
}

.root-shop-footer-meta {
	color: #b0b0b0;
	font-size: 0.875rem;
}

.root-shop-footer-meta a {
	color: #e0e0e0;
}

.root-shop-footer-meta a:hover {
	color: #28c101;
}

/* ——— Catalog ——— */

.root-shop-category-nav {
	gap: 0.5rem 1.25rem;
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e8e8e8;
}

.root-shop-category-nav .root-shop-category-link {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
}

.root-shop-category-nav .root-shop-category-link a {
	color: #212529;
	text-decoration: none;
}

.root-shop-category-nav .root-shop-category-link a:hover {
	color: #28c101;
}

.root-shop-catalog-toolbar {
	margin-bottom: 1.25rem;
	align-items: center;
	gap: 1rem;
}

.root-shop-catalog-toolbar .woocommerce-result-count,
.root-shop-catalog-toolbar .wp-block-woocommerce-product-results-count {
	margin: 0;
	color: #6c757d;
	font-size: 0.875rem;
}

/* Sort dropdown — match Inter / brand */
.root-shop-catalog select,
.root-shop-catalog .orderby,
.root-shop-catalog .wc-block-product-sorting select,
.woocommerce .woocommerce-ordering select {
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.875rem;
	color: #212529;
	background-color: #ffffff;
	border: 1px solid #ced4da;
	border-radius: 4px;
	padding: 0.4rem 2rem 0.4rem 0.75rem;
	min-height: 2.25rem;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23212529' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.65rem center;
	cursor: pointer;
}

.root-shop-catalog select:focus,
.root-shop-catalog .orderby:focus,
.woocommerce .woocommerce-ordering select:focus {
	outline: 2px solid #28c101;
	outline-offset: 1px;
	border-color: #28c101;
}

/* Equal image tiles */
.root-shop-catalog .wc-block-product-image,
.root-shop-catalog .wc-block-components-product-image,
.woocommerce ul.products li.product a img {
	aspect-ratio: 1 / 1;
	width: 100%;
	background-color: #f5f5f5;
	border-radius: 4px;
	overflow: hidden;
}

.root-shop-catalog .wc-block-product-image img,
.root-shop-catalog .wc-block-components-product-image img,
.woocommerce ul.products li.product a img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	background-color: #f5f5f5;
}

/* Tighter product stack */
.root-shop-catalog .wc-block-product,
.root-shop-catalog .wc-block-product-template > li,
.woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.root-shop-catalog .wp-block-post-title,
.root-shop-catalog .wc-block-components-product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0.15rem 0 0;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* Dark titles; green only on hover / CTAs */
.root-shop-catalog .wp-block-post-title a,
.root-shop-catalog .wc-block-components-product-title a,
.woocommerce ul.products li.product .woocommerce-loop-product__title a,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: #212529 !important;
	text-decoration: none;
}

.root-shop-catalog .wp-block-post-title a:hover,
.root-shop-catalog .wc-block-components-product-title a:hover,
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover {
	color: #28c101 !important;
}

.root-shop-catalog .wc-block-components-product-price,
.root-shop-catalog .wp-block-woocommerce-product-price,
.woocommerce ul.products li.product .price {
	margin: 0;
	color: #212529;
	font-weight: 500;
}

.root-shop-catalog .wp-block-button,
.root-shop-catalog .wc-block-components-product-button {
	margin-top: 0.25rem;
}
