/**
 * WooCommerce Styles — Bandmaster Theme
 *
 * Loaded only on WooCommerce pages (shop, product, cart, checkout, account).
 * Uses the same CSS custom-property tokens defined in main.css / style.css.
 *
 * @package bandmaster
 */

/* =========================================================
   Layout wrapper
   ========================================================= */
.woocommerce-page .site-content {
	padding: var(--space-7) 0;
}

.woocommerce-page .container {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: var(--space-7);
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 var(--space-5);
}

.woocommerce-page .site-main {
	min-width: 0;
}

/* Full-width — no sidebar (cart, checkout, account, shop, category, product) */
.woocommerce-cart .container,
.woocommerce-checkout .container,
.woocommerce-account .container,
.bm-wc-full .container {
	grid-template-columns: 1fr;
}

/* =========================================================
   Breadcrumb
   ========================================================= */
.woocommerce .woocommerce-breadcrumb {
	font-size: .8125rem;
	color: var(--muted);
	margin-bottom: var(--space-5);
}

.woocommerce .woocommerce-breadcrumb a {
	color: var(--blue);
	text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
	text-decoration: underline;
}

/* =========================================================
   Product grid (shop / archive)
   ========================================================= */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--space-5);
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce ul.products li.product {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 6px;
	overflow: hidden;
	transition: box-shadow .15s;
}

.woocommerce ul.products li.product:hover {
	box-shadow: var(--shadow);
}

.woocommerce ul.products li.product a img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: .9375rem;
	font-weight: 600;
	padding: var(--space-3) var(--space-3) 0;
	color: var(--text);
}

.woocommerce ul.products li.product .price {
	display: block;
	padding: var(--space-2) var(--space-3);
	color: var(--blue);
	font-weight: 700;
}

.woocommerce ul.products li.product .button {
	display: block;
	margin: 0 var(--space-3) var(--space-3);
	padding: var(--space-2) var(--space-3);
	background: var(--blue);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: .875rem;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s;
}

.woocommerce ul.products li.product .button:hover {
	background: var(--blue-dark);
}

/* =========================================================
   Single product
   ========================================================= */
.woocommerce div.product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-7);
	align-items: start;
}

.woocommerce div.product .woocommerce-product-gallery {
	position: relative;
}

.woocommerce div.product .woocommerce-product-gallery img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center;
	border-radius: 6px;
}

/* Zoom trigger — plain icon overlaid on the top-left of the image
   (the theme strips WooCommerce's bundled CSS, so this is unstyled
   without these rules). The default 🔍 emoji is replaced with the
   same magnifying-glass icon used by the site search, drop-shadowed
   so it's legible on any photo. */
.woocommerce-product-gallery__trigger {
	position: absolute;
	top: var(--space-3);
	left: var(--space-3);
	right: auto;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	text-decoration: none;
	filter: drop-shadow(0 1px 3px rgba(0,0,0,.6));
	transition: transform .15s ease;
}

.woocommerce-product-gallery__trigger span {
	display: none;
}

.woocommerce-product-gallery__trigger::before {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M21 21l-4.35-4.35M17 11A6 6 0 1 1 5 11a6 6 0 0 1 12 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce-product-gallery__trigger:hover {
	transform: scale(1.12);
}

.woocommerce div.product .summary {
	min-width: 0;
}

/* Description tabs and Related products run the full width of the page,
   below the gallery/summary row, rather than being auto-placed into the
   two-column grid (which split them awkwardly and made them appear to
   shift position as the gallery/summary scrolled). */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products {
	grid-column: 1 / -1;
}

/* Product tabs (Description / Track Listing / Reviews) as a centred
   row of buttons rather than the default bulleted list. */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2);
	list-style: none;
	margin: 0 0 var(--space-5);
	padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: var(--space-2) var(--space-4);
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--panel);
	color: var(--text);
	font-weight: 600;
	font-size: .9375rem;
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff;
}

.woocommerce div.product .product_title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: var(--space-3);
}

.woocommerce div.product .price {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--blue);
	margin-bottom: var(--space-4);
}

.woocommerce div.product .woocommerce-product-details__short-description {
	color: var(--muted);
	line-height: 1.6;
	margin-bottom: var(--space-5);
}

/* Add to cart */
.woocommerce div.product form.cart {
	display: flex;
	gap: var(--space-3);
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: var(--space-5);
}

.woocommerce div.product form.cart .qty {
	width: 70px;
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--line);
	border-radius: 4px;
	font-size: .9375rem;
}

.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button {
	padding: var(--space-3) var(--space-5);
	background: var(--blue);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: .9375rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
	background: var(--blue-dark);
}

/* Track listing (LP/album products), shown in its own product tab */
.bm-tracklist__note {
	color: var(--muted);
	font-size: .875rem;
	margin: 0 0 var(--space-4);
}

.bm-tracklist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bm-tracklist__track {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2) var(--space-3);
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--line);
}

.bm-tracklist__track:last-child {
	border-bottom: none;
}

.bm-tracklist__num {
	flex: 0 0 1.5rem;
	font-weight: 700;
	color: var(--muted);
}

.bm-tracklist__title {
	flex: 1 1 200px;
	font-weight: 600;
}

.bm-tracklist__duration,
.bm-tracklist__no-audio {
	flex: 0 0 auto;
	color: var(--muted);
	font-size: .875rem;
}

.bm-tracklist__audio {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	height: 32px;
}

@media (min-width: 640px) {
	.bm-tracklist__audio {
		flex: 0 1 320px;
		width: 320px;
	}
}

/* =========================================================
   Cart page
   ========================================================= */
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: var(--space-7);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: var(--space-3) var(--space-4);
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: middle;
}

.woocommerce table.shop_table thead th {
	font-weight: 700;
	font-size: .8125rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--muted);
}

.woocommerce table.shop_table .product-thumbnail img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
}

.woocommerce .cart-collaterals {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: var(--space-7);
	align-items: start;
}

.woocommerce .cart_totals {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: var(--space-5);
}

.woocommerce .cart_totals h2 {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: var(--space-4);
}

/* =========================================================
   Checkout
   ========================================================= */
.woocommerce-checkout #customer_details {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-5);
}

.woocommerce form .form-row label {
	display: block;
	font-size: .875rem;
	font-weight: 600;
	margin-bottom: 4px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	width: 100%;
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--line);
	border-radius: 4px;
	font-size: .9375rem;
	font-family: inherit;
	color: var(--text);
	box-sizing: border-box;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(37,128,232,.15);
}

/* =========================================================
   My Account
   ========================================================= */

/* Full-width wrapper — no theme widget sidebar on account pages. */
.account-page-wrap {
	padding-top: var(--space-4);
	padding-bottom: var(--space-6);
}

.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: var(--space-7);
}

/* Lost password endpoint has no .woocommerce-MyAccount-navigation sidebar —
   the 220px nav column above would otherwise sit empty and push the form
   out of alignment with the page title. Stack full-width instead, with any
   notice (e.g. "invalid username") below the form rather than in that gap. */
body.woocommerce-lost-password .woocommerce {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}
body.woocommerce-lost-password .woocommerce-notices-wrapper {
	order: 2;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: var(--space-2) var(--space-3);
	color: var(--text);
	text-decoration: none;
	border-radius: 4px;
	font-size: .9375rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	background: var(--blue);
	color: #fff;
}

/* =========================================================
   Notices / messages
   ========================================================= */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-4);
	border-radius: 4px;
	margin-bottom: var(--space-5);
	font-size: .9375rem;
}

.woocommerce-message { background: #e8f5e9; color: #2e7d32; }
.woocommerce-info    { background: #e3f2fd; color: #1565c0; }
.woocommerce-error   { background: #ffebee; color: #c62828; list-style: none; margin-left: 0; }


/* =========================================================
   Pagination
   ========================================================= */
.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: var(--space-7) 0 0;
	padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--line);
	border-radius: 4px;
	font-size: .875rem;
	text-decoration: none;
	color: var(--text);
}

.woocommerce nav.woocommerce-pagination ul li .current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
	background: var(--blue);
	color: #fff;
	border-color: var(--blue);
}

/* =========================================================
   Star ratings — real ★ glyphs as a percentage-width overlay
   (woocommerce_enqueue_styles is stripped, so WC's bundled star
   icon font isn't available — render Unicode stars instead)
   ========================================================= */
.woocommerce .star-rating {
	position: relative;
	display: inline-block;
	overflow: hidden;
	height: 1em;
	line-height: 1;
	font-size: .875rem;
	letter-spacing: .15em;
	color: var(--line);
}
.woocommerce .star-rating::before {
	content: "\2605\2605\2605\2605\2605";
	display: block;
	letter-spacing: .15em;
}
.woocommerce .star-rating span {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	height: 100%;
	color: transparent;
}
.woocommerce .star-rating span::before {
	content: "\2605\2605\2605\2605\2605";
	display: block;
	letter-spacing: .15em;
	color: #f59e0b;
}

/* =========================================================
   Sale badge
   ========================================================= */
.woocommerce span.onsale {
	display: inline-block;
	background: #e53e3e;
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 3px;
	position: absolute;
	top: var(--space-2);
	left: var(--space-2);
	z-index: 1;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
	.woocommerce-page .container {
		grid-template-columns: 1fr;
	}
	.woocommerce div.product {
		grid-template-columns: 1fr;
	}
	.woocommerce-checkout #customer_details {
		grid-template-columns: 1fr;
	}
	.woocommerce .cart-collaterals {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
	.woocommerce-account .woocommerce {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   Cart page — "Proceed to Checkout" button
   ========================================================= */
.woocommerce a.checkout-button,
.woocommerce .cart .button,
.woocommerce .cart_totals .checkout-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	background: var(--blue);
	color: #fff !important;
	border: 2px solid var(--blue);
	border-radius: 7px;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, border-color .15s;
	width: 100%;
	margin-top: 12px;
}
.woocommerce a.checkout-button:hover,
.woocommerce .cart .button:hover,
.woocommerce .cart_totals .checkout-button:hover {
	background: var(--blue-dark);
	border-color: var(--blue-dark);
	color: #fff !important;
}

/* =========================================================
   Checkout — "Place Order" button
   ========================================================= */
#place_order,
.woocommerce #payment #place_order,
.bandmaster-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 32px;
	background: var(--blue);
	color: #fff !important;
	border: 2px solid var(--blue);
	border-radius: 7px;
	font-size: 1.0625rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, border-color .15s;
	width: 100%;
	margin-top: 16px;
	letter-spacing: .01em;
}
#place_order:hover,
.woocommerce #payment #place_order:hover,
.bandmaster-btn:hover {
	background: var(--blue-dark);
	border-color: var(--blue-dark);
}

/* =========================================================
   Checkout order review — hide the duplicate product name link
   WC renders both woocommerce_order_item_name (which may include
   an <a> tag) AND the raw product-name column; we keep one.
   ========================================================= */
.woocommerce-checkout-review-order .product-name a + a,
.woocommerce-checkout-review-order td.product-name > a:nth-child(2) {
	display: none;
}

/* =========================================================
   WooCommerce Block Components — consistent button styling
   Targets both classic and block-based checkout/cart
   ========================================================= */

/* Block checkout "Proceed to Checkout" / "Place Order" button */
.wc-block-components-button:not(.is-link),
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link) {
	background-color: var(--blue) !important;
	color: #fff !important;
	border: 2px solid var(--blue) !important;
	border-radius: 7px !important;
	padding: 14px 24px !important;
	font-size: .9375rem !important;
	font-weight: 700 !important;
	font-family: inherit !important;
	letter-spacing: .01em !important;
	transition: background .15s, border-color .15s !important;
	box-shadow: none !important;
	text-transform: none !important;
}
.wc-block-components-button:not(.is-link):hover,
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):hover {
	background-color: var(--blue-dark) !important;
	border-color: var(--blue-dark) !important;
	color: #fff !important;
}

/* Block button text — remove any inherited uppercase or spacing */
.wc-block-components-button:not(.is-link) .wc-block-components-button__text {
	font-size: inherit !important;
	font-weight: inherit !important;
	letter-spacing: inherit !important;
	text-transform: none !important;
	color: inherit !important;
}

/* =========================================================
   Unify ALL WooCommerce button variants to the theme standard
   ========================================================= */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button.alt,
.woocommerce .button.checkout,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #payment #place_order,
#place_order {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: var(--blue) !important;
	color: #fff !important;
	border: 2px solid var(--blue) !important;
	border-radius: 7px !important;
	padding: 12px 22px !important;
	font-size: .9375rem !important;
	font-weight: 700 !important;
	font-family: inherit !important;
	text-decoration: none !important;
	cursor: pointer !important;
	transition: background .15s, border-color .15s !important;
	box-shadow: none !important;
	letter-spacing: .01em !important;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .button.alt:hover,
.woocommerce .button.checkout:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout #payment #place_order:hover,
#place_order:hover {
	background: var(--blue-dark) !important;
	border-color: var(--blue-dark) !important;
	color: #fff !important;
}

/* "Proceed to Checkout" on cart page — full width */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce .cart_totals .checkout-button {
	width: 100% !important;
	margin-top: 8px !important;
}

/* "Place Order" on checkout — full width */
.woocommerce-checkout #payment #place_order,
#place_order {
	width: 100% !important;
	margin-top: 12px !important;
	padding: 16px 24px !important;
	font-size: 1.0625rem !important;
}

/* =========================================================
   v1.3.0 — WoodMart-inspired shop aesthetic + unified buttons
   (theme palette; loads last to take precedence)
   ========================================================= */

/* 4-column product grid with generous whitespace */
.woocommerce ul.products,
.woocommerce-page ul.products {
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-6);
}
@media (max-width: 1100px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products { grid-template-columns: 1fr; }
}

/* Clean cards with hover lift */
.woocommerce ul.products li.product {
	position: relative;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	padding-bottom: 18px;
	text-align: center;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.woocommerce ul.products li.product:hover {
	box-shadow: 0 12px 30px rgba(0,0,0,.09);
	transform: translateY(-4px);
	border-color: #dcdcdc;
}
.woocommerce ul.products li.product a img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px 10px 0 0;
	margin: 0 0 16px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1rem;
	font-weight: 600;
	padding: 0 16px 4px;
	line-height: 1.35;
	color: var(--text);
}
.woocommerce ul.products li.product .price {
	display: block;
	padding: 0 16px 14px;
	color: var(--text);
	font-weight: 700;
	font-size: 1rem;
}
.woocommerce ul.products li.product .price del { color: var(--muted); font-weight: 400; margin-right: 6px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--blue); }
.woocommerce ul.products li.product .star-rating { margin: 0 auto 12px; font-size: .8rem; }

/* Sale badge — themed pill */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	right: auto;
	margin: 0;
	min-height: 0;
	min-width: 0;
	padding: 4px 11px;
	background: var(--blue);
	color: #fff;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	line-height: 1.4;
}

/* Unified buttons — same tokens as the global system in main.css */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart table.cart td.actions .button,
.woocommerce form.checkout #place_order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--btn-pad-y) var(--btn-pad-x);
	border: 2px solid var(--blue);
	border-radius: var(--btn-radius);
	background: var(--blue);
	color: #fff;
	font-size: var(--btn-font-size);
	font-weight: var(--btn-weight);
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .added_to_cart:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart table.cart td.actions .button:hover,
.woocommerce form.checkout #place_order:hover {
	background: var(--blue-dark);
	border-color: var(--blue-dark);
	color: #fff;
}

/* Loop button spacing within the centered card */
.woocommerce ul.products li.product .button { margin: 0 16px; }

/* "View cart" link appears after AJAX add-to-cart — keep it on its own
   line below "Add to cart" with clear breathing room instead of touching it. */
.woocommerce ul.products li.product .added_to_cart {
	display: flex;
	width: fit-content;
	margin: 10px auto 0;
}

/* Secondary buttons (e.g. "Update cart") share geometry, outline fill */
.woocommerce-cart table.cart td.actions .button[name="update_cart"],
.woocommerce a.button.wc-backward {
	background: transparent;
	color: var(--blue);
}
.woocommerce-cart table.cart td.actions .button[name="update_cart"]:hover,
.woocommerce a.button.wc-backward:hover { background: var(--blue); color: #fff; }


/* =========================================================
   Shop hero banner (shop + category archives)
   ========================================================= */
.bm-shop-hero {
	padding-bottom: var(--space-4);
	margin-bottom: var(--space-5);
	border-bottom: 2px solid var(--blue);
}

.bm-shop-hero__title {
	margin: 0 0 var(--space-1);
	font-size: 2rem;
	line-height: 1.2;
	font-weight: 700;
	color: var(--text);
}

.bm-shop-hero__sub {
	margin-top: var(--space-1);
	color: var(--muted);
	font-size: .95rem;
	max-width: 60ch;
}

.bm-shop-hero__sub p { margin: 0; }

/* =========================================================
   Category pill strip
   ========================================================= */
.bm-shop-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: var(--space-4);
}

.bm-shop-cat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-size: .85rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease, background .15s ease, transform .05s ease;
}

.bm-shop-cat:hover {
	border-color: var(--blue);
	color: var(--blue);
	transform: translateY(-1px);
}

.bm-shop-cat.on,
.bm-shop-cat.on:hover {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff;
}

.bm-shop-cat__count {
	font-weight: 400;
	font-size: .75rem;
	opacity: .65;
}

/* =========================================================
   Filter toolbar (result count + ordering)
   ========================================================= */
.bm-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	flex-wrap: wrap;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: var(--space-2) var(--space-3);
	margin-bottom: var(--space-5);
}

.bm-shop-toolbar .woocommerce-result-count {
	margin: 0;
	font-size: .85rem;
	color: var(--muted);
}

.bm-shop-toolbar .woocommerce-ordering {
	margin: 0;
}

.bm-shop-toolbar .woocommerce-ordering select {
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 6px 10px;
	font: inherit;
	font-size: .86rem;
	color: var(--text);
	background: var(--surface);
	outline: none;
}

/* =========================================================
   Single-product top bar
   ========================================================= */
.bm-product-topbar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	flex-wrap: wrap;
	border-bottom: 1px solid var(--line);
	padding-bottom: var(--space-3);
	margin-bottom: var(--space-5);
	font-size: .85rem;
	font-weight: 600;
}

.bm-product-topbar a {
	color: var(--muted);
	text-decoration: none;
	transition: color .15s ease;
}

.bm-product-topbar a:hover {
	color: var(--blue);
}

.bm-product-topbar__adjacent {
	display: flex;
	gap: var(--space-4);
}

/* Previous/Next product links: reveal a thumbnail of the adjacent
   product on hover/focus. */
.bm-product-nav {
	display: inline-flex;
	align-items: center;
}

/* Positioned relative to .bm-product-topbar (not the link itself) so its
   left/right edges line up with the page container/header width, however
   narrow the Previous/Next link's own box is. */
.bm-product-nav__preview {
	position: absolute;
	top: calc(100% + var(--space-2));
	right: 0;
	z-index: 10;
	display: block;
	padding: var(--space-2);
	background: var(--surface);
	border-radius: 8px;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-4px);
	transition: opacity .15s ease, transform .15s ease;
}

/* When both Previous and Next are present, anchor Previous's preview to
   the container's left edge so the two previews don't collide. */
.bm-product-topbar__adjacent > .bm-product-nav:first-child:not(:last-child) .bm-product-nav__preview {
	left: 0;
	right: auto;
}

.bm-product-nav__preview img {
	display: block;
	width: 280px;
	max-width: none;
	height: 280px;
	object-fit: cover;
	border-radius: 4px;
}

.bm-product-nav:hover .bm-product-nav__preview,
.bm-product-nav:focus .bm-product-nav__preview,
.bm-product-nav:focus-within .bm-product-nav__preview {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

/* Hover/focus previews aren't useful on touch screens and have no room to
   display without overflowing the viewport. Placed after the base
   .bm-product-nav__preview rule (which sets display: block) so it wins the
   cascade at this width despite matching specificity. */
@media (max-width: 760px) {
	.bm-product-nav__preview {
		display: none;
	}
}

/* =========================================================
   Product share links
   ========================================================= */
.bm-product-share {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin-top: var(--space-4);
}

.bm-product-share__label {
	font-size: .85rem;
	font-weight: 600;
	color: var(--muted);
}

.bm-product-share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--panel);
	color: var(--muted);
	transition: background .15s ease, color .15s ease;
}

.bm-product-share__link svg {
	width: 16px;
	height: 16px;
}

.bm-product-share__link:hover {
	background: var(--blue);
	color: #fff;
}

/* =========================================================
   Quantity stepper: − / + buttons either side of the qty input
   ========================================================= */
.woocommerce div.product form.cart .quantity {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--line);
	border-radius: 4px;
	overflow: hidden;
}

.woocommerce div.product form.cart .qty {
	width: 50px;
	padding: var(--space-2) 0;
	border: none;
	border-left: 1px solid var(--line);
	border-right: 1px solid var(--line);
	border-radius: 0;
	text-align: center;
	-moz-appearance: textfield;
}

.woocommerce div.product form.cart .qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.bm-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	border: none;
	background: var(--panel);
	color: var(--text);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease;
}

.bm-qty-btn:hover {
	background: var(--line);
}

@media (max-width: 600px) {
	.bm-shop-hero__title { font-size: 1.5rem; }
	.bm-shop-toolbar { justify-content: flex-start; }
}

/* =========================================================
   Reviews tab — styled like the post comments section
   (WooCommerce review markup comes from core templates and
   isn't overridden — styled here via its native classes)
   ========================================================= */
#reviews.woocommerce-Reviews {
	margin-top: 8px;
}
#reviews .woocommerce-Reviews-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 0 0 24px;
	line-height: 1.2;
}
#reviews p.woocommerce-noreviews {
	color: var(--muted);
	margin: 0 0 24px;
}

/* ── Review list — boxed cards like the post comments ─────────────────── */
#reviews #comments .commentlist,
#reviews #comments .commentlist .children {
	list-style: none;
	margin: 0;
	padding: 0;
}
#reviews #comments .commentlist {
	margin: 0 0 32px;
}
#reviews #comments .commentlist li.comment {
	margin-bottom: 20px;
}
#reviews #comments .commentlist .comment_container {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 20px 22px;
	box-shadow: 0 1px 4px rgba(0,0,0,.05);
	transition: box-shadow .2s;
}
#reviews #comments .commentlist .comment_container:hover {
	box-shadow: 0 3px 12px rgba(0,0,0,.09);
}
#reviews #comments .commentlist img.avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid var(--line);
	flex-shrink: 0;
}
#reviews #comments .commentlist .comment-text {
	flex: 1;
	min-width: 0;
}

/* Nested replies — inset, same treatment as post comment replies */
#reviews #comments .commentlist .children {
	margin: 16px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}
#reviews #comments .commentlist .children li.comment {
	margin-bottom: 14px;
}
#reviews #comments .commentlist .children li.comment:last-child {
	margin-bottom: 0;
}
#reviews #comments .commentlist .children .comment_container {
	padding: 14px 16px;
	background: var(--panel, #f8f9fa);
	border-radius: 8px;
	border-left: 3px solid var(--blue);
	margin-left: 20px;
	box-shadow: none;
}
#reviews #comments .commentlist .children .comment_container:hover {
	box-shadow: none;
}
#reviews #comments .commentlist .children img.avatar {
	width: 36px;
	height: 36px;
}

/* ── Star rating + meta line ───────────────────────────────────────────── */
#reviews #comments .commentlist .star-rating {
	margin: 0 0 8px;
}
#reviews #comments .commentlist p.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	margin: 0 0 8px;
	font-size: .9375rem;
}
#reviews #comments .commentlist .woocommerce-review__author {
	font-weight: 700;
	font-size: .9375rem;
	color: var(--text);
}
#reviews #comments .commentlist .woocommerce-review__verified {
	font-size: .72rem;
	font-weight: 600;
	font-style: normal;
	color: var(--blue);
	background: rgba(37,128,232,.08);
	padding: 2px 8px;
	border-radius: 20px;
}
#reviews #comments .commentlist .woocommerce-review__dash {
	display: none;
}
#reviews #comments .commentlist .woocommerce-review__published-date {
	font-size: .78rem;
	color: var(--muted);
}
#reviews #comments .commentlist .woocommerce-review__awaiting-approval {
	display: block;
	font-style: normal;
	font-size: .82rem;
	color: #92400e;
	background: #fef3c7;
	border-radius: 5px;
	padding: 6px 10px;
}

/* ── Review text ────────────────────────────────────────────────────────── */
#reviews #comments .commentlist .description p {
	margin: 0 0 10px;
	font-size: .9375rem;
	line-height: 1.7;
	color: var(--text);
}
#reviews #comments .commentlist .description p:last-child {
	margin-bottom: 0;
}

/* ── Review form — styled like the post comment form ───────────────────── */
#review_form_wrapper {
	margin-top: 8px;
	padding-top: 28px;
	border-top: 2px solid var(--blue);
}
#review_form #reply-title {
	display: block;
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 16px;
}
#review_form .comment-form-author,
#review_form .comment-form-email,
#review_form .comment-form-rating,
#review_form .comment-form-comment {
	margin: 0 0 16px;
}
#review_form label {
	display: block;
	font-size: .875rem;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--text);
}
#review_form label .required {
	color: var(--blue);
}
#review_form input[type="text"],
#review_form input[type="email"],
#review_form select#rating,
#review_form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 7px;
	font: inherit;
	font-size: .9375rem;
	color: var(--text);
	background: var(--surface);
	transition: border-color .15s, box-shadow .15s;
	box-sizing: border-box;
}
#review_form input:focus,
#review_form select:focus,
#review_form textarea:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(37,128,232,.12);
}
#review_form textarea {
	resize: vertical;
	min-height: 140px;
}
#review_form select#rating {
	max-width: 220px;
}

/* Star-click widget single-product.js swaps in for #rating */
#review_form p.stars {
	margin: 0;
	line-height: 1;
}
#review_form p.stars a {
	position: relative;
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	text-decoration: none;
	text-indent: -9999px;
}
#review_form p.stars a::before {
	content: "\2606";
	position: absolute;
	top: 0;
	left: 0;
	text-indent: 0;
	font-size: 1.5rem;
	line-height: 1.5em;
	color: var(--line);
	transition: color .12s ease;
}
#review_form p.stars:hover a::before,
#review_form p.stars.selected a::before {
	content: "\2605";
	color: #f59e0b;
}
#review_form p.stars a:hover ~ a::before,
#review_form p.stars.selected a.active ~ a::before {
	content: "\2606";
	color: var(--line);
}

@media (max-width: 600px) {
	#reviews #comments .commentlist .comment_container { padding: 14px 14px; }
	#reviews #comments .commentlist .children .comment_container { margin-left: 8px; }
}
