/*
Theme Name: Hampshire Hardware
Description: Dark graphite and brass shop theme for Hampshire Hardware. Child theme of Twenty Twenty-Five.
Template: twentytwentyfive
Version: 1.0.5
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: hampshire-hardware
*/

/* ---------- Top bar and header ---------- */
.hh-topbar {
	background: var(--wp--preset--color--graphite);
	color: var(--wp--preset--color--stone);
	font-size: 13px;
	border-bottom: 1px solid #3a3d42;
	padding: 8px 24px;
}
.hh-topbar p { margin: 0; text-align: center; letter-spacing: .02em; }

.hh-header {
	background: var(--wp--preset--color--graphite);
	border-bottom: 1px solid #3a3d42;
	padding: 14px 24px;
}
.hh-header-row { max-width: 1240px; margin: 0 auto; gap: 14px 32px; }
/* v1.0.4: logo | menu | icons, with the menu truly centred */
@media (min-width: 782px) {
	.hh-header-row { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; }
	.hh-header-row > .hh-logo { justify-self: start; }
	.hh-header-row > .wp-block-navigation { justify-self: center; justify-content: center; }
	.hh-header-row > .hh-header-icons { justify-self: end; justify-content: flex-end; }
}
.hh-logo { margin: 0 !important; }
.hh-logo img { height: 60px; width: auto; display: block; }
.hh-header .wp-block-navigation a,
.hh-header .wp-block-navigation .wp-block-navigation-item__content { color: var(--wp--preset--color--stone); text-decoration: none; font-size: 15px; }
.hh-header .wp-block-navigation a:hover { color: #ffffff; box-shadow: inset 0 -2px 0 var(--wp--preset--color--brass); }
.hh-header .wp-block-navigation__responsive-container-open svg,
.hh-header .wp-block-search__button svg,
.hh-header .wc-block-customer-account svg,
.hh-header .wc-block-mini-cart__button svg { fill: #ffffff; color: #ffffff; }
.hh-header-icons, .hh-header-icons a, .hh-header-icons button { color: #ffffff !important; }
.hh-header-icons svg { fill: currentColor !important; color: #ffffff !important; }
.hh-header-icons svg [stroke] { stroke: currentColor !important; }
.hh-header .wp-block-search__button { background: transparent !important; color: #fff; border: 0; }
.hh-header .wc-block-mini-cart__button,
.hh-header .wc-block-customer-account a { color: #ffffff; }
.hh-header .wc-block-mini-cart__badge { background: var(--wp--preset--color--brass); color: var(--wp--preset--color--graphite); }
.hh-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--graphite); }

/* ---------- Hero ---------- */
.hh-hero {
	background: radial-gradient(circle at 80% 30%, #3a3328 0%, var(--wp--preset--color--graphite-dark) 60%);
	color: #ffffff;
	padding: 88px max(24px, calc((100% - 1240px) / 2 + 24px)) 96px !important;
	margin-top: 0 !important;
}
.hh-hero > * { margin-left: 0 !important; margin-right: 0 !important; }
.hh-eyebrow { color: var(--wp--preset--color--brass); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.hh-hero-title { color: #ffffff; font-size: clamp(44px, 7vw, 72px) !important; max-width: 12ch; margin: 0 0 18px; }
.hh-hero-text { color: var(--wp--preset--color--stone); font-size: 18px; max-width: 38ch; }

/* ---------- Feature row ---------- */
.hh-features { max-width: 1240px; margin: 44px auto 12px !important; padding: 0 24px; text-align: center; }
.hh-features h3 { font-size: 20px; margin: 0 0 4px; }
.hh-features p { color: var(--wp--preset--color--muted); font-size: 14px; margin: 0; }

/* ---------- Category cards ---------- */
.hh-cats { max-width: 1240px; margin: 24px auto !important; padding: 0 24px; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.hh-cat {
	position: relative;
	aspect-ratio: 1 / 1;
	background: radial-gradient(circle at 60% 35%, #4a4038, var(--wp--preset--color--graphite) 72%);
	color: #fff;
	padding: 20px !important;
	display: flex !important; flex-direction: column; justify-content: flex-end;
	margin: 0 !important;
}
.hh-cat.hh-cat--green { background: radial-gradient(circle at 60% 35%, #3f4a38, var(--wp--preset--color--graphite) 72%); }
.hh-cat h3 { color: #fff; font-size: 24px; margin: 0 0 4px; }
.hh-cat h3 a { color: #fff; text-decoration: none; }
.hh-cat h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.hh-cat p { margin: 0; color: var(--wp--preset--color--stone); font-size: 14px; }
.hh-cat .hh-cat-cta { color: var(--wp--preset--color--brass); font-weight: 700; font-size: 13px; letter-spacing: .1em; padding-top: 6px; }

/* ---------- Product section ---------- */
.hh-products { max-width: 1240px; margin: 40px auto 72px !important; padding: 0 24px; }
.hh-products h2 { font-size: 40px; }

/* WooCommerce product cards, shop and category pages */
.woocommerce ul.products li.product,
.wc-block-product-template .wc-block-product,
.wp-block-woocommerce-product-template li {
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--line);
	padding: 0 0 16px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--wp--preset--font-family--karla); font-style: normal; text-transform: none; font-weight: 500; font-size: 15px; padding: 0 16px; }
.woocommerce ul.products li.product .price { color: var(--wp--preset--color--ink); font-weight: 700; font-size: 18px; padding: 0 16px; }
.woocommerce ul.products li.product .button { margin: 8px 16px 0; display: block; text-align: center; }
.woocommerce span.onsale { background: var(--wp--preset--color--brass); color: var(--wp--preset--color--graphite); }

/* ---------- Story band ---------- */
.hh-story { background: var(--wp--preset--color--graphite); color: #fff; margin: 0 !important; padding: 0 !important; }
.hh-story > .wp-block-column:first-child { background: var(--wp--preset--color--graphite-dark); display: grid; place-items: center; min-height: 320px; padding: 40px; }
.hh-story > .wp-block-column:last-child { padding: 56px 48px; }
.hh-story h2 { color: #fff; font-size: 42px; max-width: 20ch; }
.hh-story p { color: var(--wp--preset--color--stone); max-width: 52ch; }
.hh-story .hh-logo-big img { width: 100%; max-width: 380px; height: auto; }
.hh-btn-outline .wp-block-button__link { background: transparent !important; color: #fff !important; border: 1px solid var(--wp--preset--color--brass) !important; }

/* ---------- Footer ---------- */
.hh-footer { background: var(--wp--preset--color--graphite-dark); color: var(--wp--preset--color--stone); border-top: 1px solid #3a3d42; padding: 48px 24px 24px !important; margin-top: 0 !important; }
.hh-footer-row { max-width: 1240px; margin: 0 auto !important; gap: 32px 56px; }
.hh-footer a { color: var(--wp--preset--color--stone); text-decoration: none; }
.hh-footer a:hover { color: var(--wp--preset--color--brass); }
.hh-footer .hh-logo img { height: 54px; }
.hh-footer h4 { color: #fff; font-family: var(--wp--preset--font-family--karla); font-style: normal; text-transform: none; font-size: 16px; margin: 0 0 8px; }
.hh-footer-links p { margin: 0 0 6px; font-size: 14px; }
.hh-footer-base { max-width: 1240px; margin: 32px auto 0 !important; border-top: 1px solid #3a3d42; padding-top: 16px; font-size: 13px; color: #b5afa3; }

/* No gap between full-width dark bands */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks main { margin-top: 0; }

/* ---------- Product grid titles (block themes) ---------- */
.wc-block-product .wp-block-post-title,
.wp-block-woocommerce-product-template .wp-block-post-title,
.wc-block-product-template .wp-block-post-title,
.wc-block-grid__product-title {
	font-family: var(--wp--preset--font-family--karla) !important;
	font-style: normal !important;
	text-transform: none !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	line-height: 1.35 !important;
	letter-spacing: 0 !important;
	padding: 0 14px;
}
.wc-block-product .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.wc-block-product .wc-block-components-product-price,
.wc-block-product .wp-block-woocommerce-product-price { font-size: 16px !important; font-weight: 700; color: var(--wp--preset--color--ink); }

/* ---------- Footer phone: deliberately small and low-key ---------- */
.hh-footer .hh-phone { font-size: 11px; opacity: .45; margin: 0; }
.hh-footer .hh-phone a { color: inherit; text-decoration: none; }
