/*
Theme Name: Hockey Stick Dept.
Theme URI: https://example.com/
Author: Hockey Stick Dept.
Description: Custom WooCommerce theme for Hockey Stick Dept. Light, calm storefront with big type, live stock on every stick, a size/hand/curve/flex picker, find-your-fit, team order builder with automatic team pricing, member pricing, and a community setup wall.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hockey-stick-dept
Tags: e-commerce, custom-menu, featured-images, translation-ready
WC requires at least: 8.0
WC tested up to: 9.8
*/

/*
 * The design system (colours, type, spacing, every layout class) is compiled
 * into assets/css/site.css. This file styles the markup WooCommerce and
 * WordPress render themselves: notices, cart, checkout, account, mini cart,
 * pagination, review form, page content.
 */

/* ---------- page content (the_content) ---------- */
.hsd-content > * + * { margin-top: 1em; }
.hsd-content h2 { font-size: 28px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; margin-top: 1.6em; }
.hsd-content h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-top: 1.4em; }
.hsd-content a { color: var(--accent); text-underline-offset: 4px; }
.hsd-content a:hover { text-decoration: underline; }
.hsd-content ul { list-style: disc; padding-left: 1.25em; }
.hsd-content ol { list-style: decimal; padding-left: 1.25em; }
.hsd-content img { border-radius: 22px; }

/* ---------- shared form controls ---------- */
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.woocommerce-page input.input-text,
.woocommerce-page textarea,
.woocommerce-page select,
.hsd-wc-page input[type="text"],
.hsd-wc-page input[type="email"],
.hsd-wc-page input[type="tel"],
.hsd-wc-page input[type="password"],
.hsd-wc-page input[type="number"],
#review_form select {
	min-height: 2.75rem;
	width: 100%;
	border-radius: 12px;
	background: var(--panel);
	padding: 0 0.875rem;
	font-size: 15px;
	color: var(--ink);
	border: 0;
}
.woocommerce textarea { padding: 0.75rem 0.875rem; }
.woocommerce input:focus-visible,
.woocommerce textarea:focus-visible,
.woocommerce select:focus-visible { background: var(--card); }
.woocommerce form .form-row label,
.woocommerce-page form .form-row label { display: block; margin-bottom: 0.25rem; font-size: 13px; color: var(--muted); }
.woocommerce form .form-row { margin-bottom: 0.875rem; }
.woocommerce .required { color: var(--accent); text-decoration: none; }

/* ---------- buttons ---------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link),
.woocommerce .checkout-button,
.woocommerce #place_order {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	border-radius: 9999px;
	border: 0;
	background: var(--accent);
	padding: 0 1.5rem;
	font-size: 15px;
	font-weight: 500;
	color: #fff;
	cursor: pointer;
	transition: filter 0.3s, transform 0.3s;
	text-decoration: none;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #place_order:hover { filter: brightness(1.1); }
.woocommerce a.button:active,
.woocommerce button.button:active { transform: scale(0.98); }
.woocommerce .checkout-button,
.woocommerce #place_order { width: 100%; min-height: 3.5rem; font-size: 17px; }
.woocommerce button.button:disabled,
.woocommerce button.button[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- notices ---------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	list-style: none;
	margin: 0 0 1.5rem;
	border-radius: 16px;
	background: var(--accent-soft);
	padding: 0.875rem 1rem;
	font-size: 14px;
	color: var(--accent);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}
.woocommerce-error { background: #fbeae6; color: #a23b2a; }
.woocommerce-message .button,
.woocommerce-info .button { min-height: 2.25rem !important; font-size: 13px !important; order: 2; }
.woocommerce-notices-wrapper:empty { display: none; }

/* ---------- cart ---------- */
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	overflow: hidden;
	border-radius: 22px;
	background: var(--card);
	box-shadow: var(--shadow-soft);
	font-size: 15px;
}
.woocommerce table.shop_table th { background: var(--panel); padding: 0.75rem 1.25rem; text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); }
.woocommerce table.shop_table td { border-top: 1px solid var(--hairline); padding: 1rem 1.25rem; vertical-align: middle; }
.woocommerce table.shop_table img { width: 64px; border-radius: 12px; background: var(--panel); mix-blend-mode: multiply; }
.woocommerce table.shop_table .product-name a { font-weight: 600; color: var(--ink); text-decoration: none; }
.woocommerce table.shop_table .product-name dl.variation { margin-top: 0.25rem; font-size: 13px; color: var(--muted); }
.woocommerce table.shop_table .product-name dl.variation dt,
.woocommerce table.shop_table .product-name dl.variation dd { display: inline; margin: 0; }
.woocommerce table.shop_table .product-name dl.variation dd p { display: inline; }
.woocommerce a.remove { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9999px; color: var(--muted) !important; font-size: 20px; text-decoration: none; }
.woocommerce a.remove:hover { background: var(--panel); color: var(--ink) !important; }
.woocommerce .quantity .qty { width: 4.5rem; text-align: center; }
.woocommerce .cart-collaterals { margin-top: 2rem; display: grid; }
.woocommerce .cart_totals { justify-self: end; width: 100%; max-width: 420px; }
.woocommerce .cart_totals h2,
.woocommerce-checkout h3,
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 1rem; }
.woocommerce .coupon { display: flex; gap: 0.5rem; }
.woocommerce .coupon .input-text { max-width: 14rem; }
@media (max-width: 767px) {
	.woocommerce table.shop_table_responsive thead { display: none; }
	.woocommerce table.shop_table_responsive tr { display: block; border-top: 1px solid var(--hairline); }
	.woocommerce table.shop_table_responsive td { display: flex; justify-content: space-between; border: 0; padding: 0.5rem 1.25rem; }
	.woocommerce table.shop_table_responsive td::before { content: attr(data-title); color: var(--muted); font-size: 13px; }
	.woocommerce table.shop_table_responsive td.product-remove::before,
	.woocommerce table.shop_table_responsive td.product-thumbnail::before,
	.woocommerce table.shop_table_responsive td.actions::before { content: none; }
	.woocommerce .coupon { flex-wrap: wrap; }
}

/* ---------- checkout ---------- */
.woocommerce-checkout .col2-set { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) {
	.woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1fr 400px; gap: 2rem; align-items: start; }
	.woocommerce-checkout form.checkout > .col2-set { grid-column: 1; }
	.woocommerce-checkout #order_review_heading,
	.woocommerce-checkout #order_review { grid-column: 2; }
	.woocommerce-checkout #order_review_heading { grid-row: 1; }
	.woocommerce-checkout #order_review { grid-row: 2 / span 3; position: sticky; top: 5rem; }
}
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2,
.woocommerce-checkout #order_review {
	border-radius: 28px;
	background: var(--card);
	padding: 1.5rem;
	box-shadow: var(--shadow-soft);
}
.woocommerce-checkout #order_review table.shop_table { box-shadow: none; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.5rem; }
.woocommerce-checkout #payment li.wc_payment_method { border-radius: 16px; background: var(--panel); padding: 0.875rem 1rem; }
.woocommerce-checkout #payment .payment_box { margin-top: 0.5rem; font-size: 14px; color: var(--muted); }
.woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--muted); margin: 1rem 0; }

/* ---------- my account ---------- */
@media (min-width: 768px) {
	.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }
	.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
}
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.woocommerce-MyAccount-navigation a { display: block; border-radius: 12px; padding: 0.625rem 0.875rem; font-size: 15px; color: var(--muted); text-decoration: none; }
.woocommerce-MyAccount-navigation a:hover { background: var(--panel); color: var(--ink); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.woocommerce-MyAccount-content { border-radius: 28px; background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-soft); }
.woocommerce-account #customer_login { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .woocommerce-account #customer_login { grid-template-columns: 1fr 1fr; } }
.woocommerce-account #customer_login > div,
.woocommerce form.login,
.woocommerce form.register { border-radius: 28px; background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-soft); border: 0; margin: 0; }
.woocommerce-account #customer_login h2 { font-size: 21px; font-weight: 600; margin-bottom: 1rem; }

/* ---------- bag drawer (mini cart) ---------- */
.hsd-minicart .woocommerce-mini-cart { list-style: none; padding: 0; margin: 0; }
.hsd-minicart .woocommerce-mini-cart-item {
	position: relative;
	min-height: 7rem;
	border-bottom: 1px solid var(--hairline);
	padding: 1rem 2.25rem 1rem 6rem;
	font-size: 15px;
}
.hsd-minicart .woocommerce-mini-cart-item > a:not(.remove) { display: block; font-weight: 600; line-height: 1.3; color: var(--ink); text-decoration: none; }
.hsd-minicart .woocommerce-mini-cart-item img { position: absolute; left: 0; top: 1rem; width: 5rem !important; height: 5rem; object-fit: contain; border-radius: 16px; background: var(--panel); padding: 0.375rem; mix-blend-mode: multiply; }
.hsd-minicart .woocommerce-mini-cart-item .remove { position: absolute; right: 0; top: 1rem; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 9999px; color: var(--muted); text-decoration: none; font-size: 18px; }
.hsd-minicart .woocommerce-mini-cart-item .remove:hover { background: var(--panel); color: var(--ink); }
.hsd-minicart dl.variation { margin: 0.25rem 0 0; font-size: 13px; color: var(--muted); }
.hsd-minicart dl.variation dt, .hsd-minicart dl.variation dd, .hsd-minicart dl.variation p { display: inline; margin: 0; }
.hsd-minicart dl.variation dd::after { content: " · "; }
.hsd-minicart dl.variation dd:last-of-type::after { content: ""; }
.hsd-minicart dl.variation dt { display: none; }
.hsd-minicart .quantity { display: block; margin-top: 0.25rem; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hsd-minicart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 1.25rem 0 0; font-size: 17px; font-weight: 600; }
.hsd-minicart .woocommerce-mini-cart__buttons { display: grid; gap: 0.5rem; margin-top: 1rem; }
.hsd-minicart .woocommerce-mini-cart__buttons .button { width: 100%; min-height: 3rem; }
.hsd-minicart .woocommerce-mini-cart__buttons .button:not(.checkout) { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
.hsd-minicart .woocommerce-mini-cart__empty-message { padding: 4rem 0; text-align: center; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.hsd-minicart .woocommerce-mini-cart__empty-message::after { content: "Find the stick that fits your game."; display: block; margin-top: 0.25rem; font-size: 15px; font-weight: 400; color: var(--muted); }

/* ---------- pagination ---------- */
.woocommerce-pagination { margin-top: 4rem; }
.woocommerce-pagination ul.page-numbers,
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; list-style: none; padding: 0; }
.page-numbers { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; border-radius: 9999px; padding: 0 0.75rem; font-size: 14px; color: var(--ink); text-decoration: none; background: var(--panel); }
.page-numbers.current { background: var(--ink); color: #fff; }
a.page-numbers:hover { background: var(--hairline); }

/* ---------- product grid reset (WooCommerce adds floats) ---------- */
.woocommerce ul.products.hsd-grid { margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products.hsd-grid::before,
.woocommerce ul.products.hsd-grid::after { content: none; }
.woocommerce ul.products.hsd-grid li.product { float: none; width: auto; margin: 0; padding: 0; }

/* ---------- review form ---------- */
#review_form .comment-reply-title { display: block; }
#review_form .stars { margin: 0.25rem 0 0; }
#review_form .stars a { position: relative; display: inline-block; width: 2rem; height: 2rem; overflow: hidden; text-indent: -999em; color: var(--hairline); }
#review_form .stars a::before { content: "★"; position: absolute; inset: 0; text-indent: 0; font-size: 28px; line-height: 2rem; }
#review_form .stars:hover a,
#review_form .stars.selected a { color: #e3a008; }
#review_form .stars a:hover ~ a,
#review_form .stars.selected a.active ~ a { color: var(--hairline); }
#review_form .form-submit { margin-top: 1.25rem; }
#review_form .comment-form-cookies-consent { margin-top: 0.75rem; display: flex; gap: 0.5rem; font-size: 13px; color: var(--muted); }

/* ---------- misc ---------- */
.woocommerce-privacy-policy-text, .woocommerce-privacy-policy-text p { font-size: 12px; line-height: 1.5; color: var(--muted); }
.woocommerce-privacy-policy-text a { color: var(--accent); }
#shop-sort { background: transparent; min-height: 2.5rem; padding: 0.5rem 2rem 0.5rem 0.75rem; width: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.woocommerce-breadcrumb { display: none; }
[hidden] { display: none !important; }
