/* ==========================================================================
   WooCommerce restyle — light touch, CSS only (no template overrides for
   cart/checkout so WooCommerce's own logic and hooks keep working).
   ========================================================================== */

.woocommerce, .woocommerce-page {
	font-family: var(--hmse-font);
	color: var(--hmse-text);
}

.woocommerce .hmse-container,
.woocommerce-page .hmse-container { padding-bottom: 64px; }

/* Shop / archive grid */
.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 24px;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}
@media (min-width: 640px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); } }

.woocommerce ul.products li.product.hmse-woo-card {
	background: var(--hmse-surface);
	border: 1px solid var(--hmse-line-soft);
	border-radius: 12px;
	overflow: hidden;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: 0 1px 2px rgba(0,0,0,.03);
	transition: box-shadow .2s, border-color .2s;
}
.woocommerce ul.products li.product.hmse-woo-card:hover { box-shadow: 0 8px 18px rgba(0,0,0,.08); border-color: var(--hmse-accent-line); }
.woocommerce ul.products li.product a { text-decoration: none; color: inherit; display: block; }
.woocommerce ul.products li.product img {
	width: 100%; height: 208px; object-fit: cover; border-radius: 0 !important; margin: 0 !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 15px; font-weight: 700; padding: 14px 14px 4px; margin: 0;
}
.woocommerce ul.products li.product .price {
	display: block; padding: 0 14px 14px; font-size: 16px; font-weight: 800; color: var(--hmse-link-strong);
}
.woocommerce ul.products li.product .price del { color: var(--hmse-muted); font-weight: 400; opacity: .7; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	display: block; margin: 0 14px 14px; text-align: center; background: var(--hmse-shop-dark); color: #fff !important;
	padding: 10px 12px; border-radius: 8px; font-size: 12px; font-weight: 700;
}
.woocommerce ul.products li.product .button:hover { background: var(--hmse-shop-darker); }
.woocommerce span.onsale {
	background: var(--hmse-shop-dark) !important; font-size: 10px; font-weight: 800; text-transform: uppercase;
	top: 10px; left: 10px; right: auto; min-height: auto; line-height: 1; padding: 6px 8px; border-radius: 4px;
}

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 24px; }
@media (min-width: 900px) { .woocommerce div.product { grid-template-columns: 1fr 1fr; } }
.woocommerce div.product div.images { border-radius: 16px; overflow: hidden; border: 1px solid var(--hmse-line-soft); }
.woocommerce div.product .product_title { font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.woocommerce div.product p.price, .woocommerce div.product span.price {
	font-size: 24px; font-weight: 800; color: var(--hmse-link-strong); margin: 8px 0 16px; display: block;
}
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--hmse-muted); line-height: 1.7; margin-bottom: 16px; }
.woocommerce div.product form.cart .button {
	background: var(--hmse-shop-dark); color: #fff; border-radius: 8px; padding: 12px 24px; font-weight: 700; border: none;
}
.woocommerce div.product form.cart .button:hover { background: var(--hmse-shop-darker); }
.woocommerce div.product .quantity input.qty {
	width: 64px; padding: 10px; border: 1px solid var(--hmse-field-border); border-radius: 8px; margin-right: 8px;
	background: var(--hmse-surface); color: var(--hmse-text);
}

/* Cart & checkout tables */
.woocommerce table.shop_table {
	border: 1px solid var(--hmse-line-soft); border-radius: 12px; overflow: hidden; border-collapse: collapse; width: 100%;
}
.woocommerce table.shop_table th { background: var(--hmse-section-alt2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 12px; }
.woocommerce table.shop_table td { padding: 14px 12px; border-top: 1px solid var(--hmse-section-alt2); }
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: var(--hmse-shop-dark); color: #fff; border-radius: 8px; font-weight: 700; padding: 10px 20px; border: none;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: var(--hmse-shop-darker); color: #fff; }
.woocommerce-checkout #payment { background: var(--hmse-bg); border-radius: 12px; border: 1px solid var(--hmse-line-soft); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
	border: 1px solid var(--hmse-field-border); border-radius: 6px; padding: 10px 12px;
	background: var(--hmse-surface); color: var(--hmse-text);
}
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noticee {
	border-top-color: var(--hmse-accent-line) !important; border-radius: 8px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--hmse-link-strong) !important; }

/* Plugin blues (WooCommerce Blocks notices, classic select2) -> site accent */
.select2-container--classic .select2-results__option--highlighted[aria-selected],
.select2-container--classic .select2-results__option--highlighted[data-selected] { background-color: var(--hmse-accent); color: #fff; }

/* --------------------------------------------------------------------------
   Dark mode for the cart / checkout blocks. The plugin hard-codes white
   fields and near-black text (it only has its own opt-in "dark controls"
   class), so the colour-bearing parts are re-pointed to the theme tokens.
   Light values equal the plugin's own, so light mode does not change.
   The html/body prefix and the :not() chains outrank the plugin selectors
   whichever stylesheet loads last.
   -------------------------------------------------------------------------- */
html body .wc-block-components-form .wc-block-components-text-input input:not([type="checkbox"]):not([type="radio"]),
html body .wc-block-components-text-input input:not([type="checkbox"]):not([type="radio"]),
html body .wc-block-components-textarea,
html body .wc-block-components-textarea:focus,
html body .wc-blocks-components-select .wc-blocks-components-select__container,
html body .wc-block-gateway-container .wc-block-gateway-input,
html body .wc-block-gateway-container .wc-block-gateway-input:focus {
	background-color: var(--hmse-surface);
	color: var(--hmse-text);
}
html body .wc-block-components-textarea:not(:placeholder-shown) { color: var(--hmse-text); }
html body .wc-blocks-components-select .wc-blocks-components-select__select { color: var(--hmse-text); }
html body .wc-blocks-components-select .wc-blocks-components-select__expand { fill: var(--hmse-text); }
html body .wc-block-gateway-container label { color: var(--hmse-placeholder); }
html body .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"],
html body .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked,
html body .wc-block-components-radio-control .wc-block-components-radio-control__input { background-color: var(--hmse-surface); }
html body .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--hmse-text); }
html body .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before { background: var(--hmse-text); }
html body .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity span { color: var(--hmse-inverse); }
html body .wc-block-cart .wc-block-cart__submit-container--sticky { background: var(--hmse-surface); }
html body .wc-block-components-product-sale-badge,
html body .wc-block-grid .wc-block-grid__product-onsale { background: var(--hmse-surface); border-color: var(--hmse-ink); color: var(--hmse-ink); }
html body .wc-block-components-address-autocomplete-suggestions { background: var(--hmse-surface); border-color: var(--hmse-border); }
html body .wc-block-components-address-autocomplete-suggestions .suggestions-list li { color: var(--hmse-text); }
html body .wc-block-components-address-autocomplete-suggestions .suggestions-list li.active,
html body .wc-block-components-address-autocomplete-suggestions .suggestions-list li:hover,
html body .wc-block-components-address-autocomplete-suggestions .suggestions-list li:focus { background-color: var(--hmse-accent); color: #fff; }

/* Validation / error text and borders: dark-safe red */
html body .wc-block-components-validation-error,
html body .wc-block-components-checkbox.has-error,
html body .wc-block-components-checkbox.has-error a,
html body .wc-block-components-form .wc-block-components-text-input.has-error label,
html body .wc-block-components-text-input.has-error label,
html body .has-error .wc-blocks-components-select .wc-blocks-components-select__select,
html body .has-error .wc-blocks-components-select .wc-blocks-components-select__label,
html body .wc-block-gateway-container .wc-block-gateway-input.has-error + label { color: var(--hmse-woo-error-text); }
html body .wc-block-components-form .wc-block-components-text-input.has-error input,
html body .wc-block-components-text-input.has-error input,
html body .wc-block-components-checkbox.has-error .wc-block-components-checkbox__input,
html body .has-error .wc-blocks-components-select .wc-blocks-components-select__container,
html body .wc-block-gateway-container .wc-block-gateway-input.has-error { border-color: var(--hmse-woo-error-text); }
html body .has-error .wc-blocks-components-select .wc-blocks-components-select__expand { fill: var(--hmse-woo-error-text); }
html body .wc-block-components-error,
html body .wc-block-components-error__header,
html body .wc-block-components-error__text,
html body .wc-block-components-error__message { color: var(--hmse-muted); }

/* Buttons: site accent (plugin default is grey #32373c) and a green, not blue, focus ring */
html body .wc-block-components-button:not(.is-link):not(.text):not(.outlined):not(.is-style-outline) { background-color: var(--hmse-accent); color: #fff; }
html body .wc-block-components-button:not(.is-link):not(.text):not(.outlined):not(.is-style-outline):hover:not(:disabled) { background-color: var(--hmse-accent-hover); color: #fff; }
html body .wc-block-components-button:not(.is-link).text { color: var(--hmse-text); }
html body .wc-block-components-panel__button { color: var(--hmse-text); }
html body .wc-block-components-button:not(.is-link):not(.hmse-x):focus-visible { box-shadow: 0 0 0 2px var(--hmse-surface), 0 0 0 4px var(--hmse-focus); outline: 3px solid transparent; }
html body .wc-block-components-button:not(.is-link):not(.hmse-x):focus:not(:focus-visible) { box-shadow: none; }
html body .wc-block-components-button:not(.is-link).is-style-outline:hover,
html body .wc-block-components-button:not(.is-link).outlined:hover { background-color: var(--hmse-accent); color: #fff; }
html body .wc-block-components-express-payment .wc-block-components-express-payment__event-buttons > div.wc-block-components-express-payment__event-button--focused::after { border-color: var(--hmse-focus); }

/* Notices: plugin light values via tokens (white / pastel in light, dark surfaces in dark) */
html body .wc-block-components-notice-banner { background-color: var(--hmse-woo-notice-bg); border-color: var(--hmse-woo-notice-text); color: var(--hmse-woo-notice-text); }
html body .wc-block-components-notice-banner > svg { background-color: var(--hmse-woo-notice-text); fill: var(--hmse-inverse); }
html body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward,
html body .wc-block-components-notice-banner > .wc-block-components-button { color: var(--hmse-woo-notice-text) !important; }
html body .wc-block-components-notice-banner.is-error { background-color: var(--hmse-woo-error-bg); border-color: var(--hmse-woo-error-line); }
html body .wc-block-components-notice-banner.is-error > svg { background-color: var(--hmse-woo-error-line); }
html body .wc-block-components-notice-banner.is-warning { background-color: var(--hmse-woo-warn-bg); border-color: var(--hmse-woo-warn-line); }
html body .wc-block-components-notice-banner.is-warning > svg { background-color: var(--hmse-woo-warn-line); }
html body .wc-block-components-notice-banner.is-success { background-color: var(--hmse-woo-ok-bg); border-color: var(--hmse-woo-ok-line); }
html body .wc-block-components-notice-banner.is-success > svg { background-color: var(--hmse-woo-ok-line); }
html body .wc-block-components-notice-banner.is-info { background-color: var(--hmse-accent-light); border-color: var(--hmse-accent-line); color: var(--hmse-on-tint); }
html body .wc-block-components-notice-banner.is-info > svg { background-color: var(--hmse-accent); fill: #fff; }
html body .wc-block-components-notice-banner.is-info > .wc-block-components-notice-banner__content .wc-forward,
html body .wc-block-components-notice-banner.is-info > .wc-block-components-button { color: var(--hmse-on-tint) !important; }

/* Classic select2 (my-account address forms) */
.select2-container--classic .select2-selection--single,
.select2-container--classic .select2-dropdown,
.select2-container--classic .select2-search--dropdown .select2-search__field {
	background: var(--hmse-surface); color: var(--hmse-text); border-color: var(--hmse-field-border);
}
.select2-container--classic .select2-selection--single { background-image: none; }
.select2-container--classic .select2-selection--single .select2-selection__rendered { color: var(--hmse-text); }

/* Plugin text that is 11.4 px by default: keep at least 12 px */
html body .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity,
html body .wc-block-components-product-metadata .wc-block-components-product-metadata__description > p,
html body .wc-block-components-product-metadata .wc-block-components-product-metadata__description > h5,
html body .wc-block-components-product-metadata .wc-block-components-product-metadata__description > h6 { font-size: 12px; }

/* Breadcrumb */
.woocommerce-breadcrumb { font-size: 12px; color: var(--hmse-muted); margin: 24px 0 8px; }
.woocommerce-breadcrumb a { color: var(--hmse-muted); }
.woocommerce-breadcrumb a:hover { color: var(--hmse-link-strong); }

/* --------------------------------------------------------------------------
   Phones / touch: 44 px tap targets and 16 px fields (no iOS focus-zoom)
   -------------------------------------------------------------------------- */
@media (max-width: 899px), (pointer: coarse) {
	html body.woocommerce ul.products li.product .button,
	html body.woocommerce ul.products li.product .added_to_cart { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; }
	html body .woocommerce a.button, html body .woocommerce button.button, html body .woocommerce input.button,
	html body .woocommerce #respond input#submit { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; }
	html body .woocommerce div.product .quantity input.qty { min-height: 44px; font-size: 16px; }
	html body .woocommerce form .form-row input.input-text, html body .woocommerce form .form-row textarea,
	html body .woocommerce form .form-row select { min-height: 44px; font-size: 16px; }
	html body .wc-block-components-quantity-selector { width: 134px; min-height: 44px; }
	html body .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { min-width: 44px; min-height: 44px; }
	html body .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { min-height: 44px; font-size: 16px; }
	html body table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link { display: inline-flex; align-items: center; width: auto; height: auto; min-height: 44px; }
	html body .is-mobile table.wc-block-cart-items .wc-block-cart-items__row { grid-template-columns: 80px minmax(0, 1fr) auto !important; }
	html body .wc-block-cart-item__wrap a.wc-block-components-product-name { display: inline-block; padding: 13px 0; margin: -13px 0; }
	html body .is-mobile .wc-block-cart-item__quantity { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
	html body .wc-block-components-panel__button { min-height: 44px; }
	html body .wc-block-components-checkout-return-to-cart-button { display: inline-flex; align-items: center; min-height: 44px; }
	html body .wc-block-components-button:not(.is-link):not(.hmse-x) { min-height: 44px; }
	html body .wc-block-components-text-input input:not([type="checkbox"]):not([type="radio"]),
	html body .wc-block-components-textarea, html body .wc-block-gateway-container .wc-block-gateway-input,
	html body .wc-blocks-components-select .wc-blocks-components-select__input { font-size: 16px; }
}
@media (max-width: 639px) {
	.woocommerce div.product .product_title { font-size: 24px; }
	.woocommerce div.product p.price, .woocommerce div.product span.price { font-size: 22px; }
}

/* --------------------------------------------------------------------------
   Shop layout (1.1.2): theme container, category pills, product cards,
   single product, notices. Mobile first; matches the rest of the site.
   -------------------------------------------------------------------------- */
.hmse-icon-xs { width: 14px; height: 14px; flex: 0 0 auto; }
.hmse-woo-hero { padding: 32px 0; margin: 0; }
.hmse-woo-hero .hmse-container { padding-bottom: 0; }
.hmse-woo-hero h1 { font-size: 26px; line-height: 1.2; }
.hmse-woo-hero p { font-size: 16px; margin: 0; }
@media (min-width: 900px) { .hmse-woo-hero { padding: 48px 0; } .hmse-woo-hero h1 { font-size: 34px; } }

.hmse-woo-main { padding-top: 8px; padding-bottom: 64px; }
.hmse-woo-main .woocommerce-breadcrumb { font-size: 14px; margin: 16px 0; }

/* Category pills (same look as the services location filter) */
.hmse-woo-cats ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hmse-woo-cats a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--hmse-border); background: var(--hmse-surface); color: var(--hmse-text); font-size: 15px; font-weight: 600; text-decoration: none; }
.hmse-woo-cats a:hover { border-color: var(--hmse-link); color: var(--hmse-link-strong); }
.hmse-woo-cats a[aria-current="page"] { background: var(--hmse-accent); border-color: var(--hmse-accent); color: #fff; }

/* Result count + sorting */
.woocommerce .woocommerce-result-count { float: none; margin: 0 0 8px; font-size: 14px; color: var(--hmse-muted); }
.woocommerce .woocommerce-ordering { float: none; margin: 0 0 20px; }
.woocommerce .woocommerce-ordering select.orderby { min-height: 44px; padding: 8px 36px 8px 12px; border: 1px solid var(--hmse-field-border); border-radius: 8px; background-color: var(--hmse-surface); color: var(--hmse-text); font-size: 16px; max-width: 100%; }
@media (min-width: 640px) {
	.woocommerce .hmse-woo-main .woocommerce-result-count { float: left; margin-top: 12px; }
	.woocommerce .hmse-woo-main .woocommerce-ordering { float: right; }
	.woocommerce .hmse-woo-main ul.products { clear: both; }
}

/* Product cards */
.woocommerce ul.products { grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 480px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1200px) { .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); } }
.woocommerce ul.products li.product.hmse-woo-card { position: relative; display: flex; flex-direction: column; }
.woocommerce ul.products li.product.hmse-woo-card > a.woocommerce-LoopProduct-link { flex: 1 1 auto; display: flex; flex-direction: column; }
.woocommerce ul.products li.product img { height: auto; aspect-ratio: 4 / 3; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 16px; line-height: 1.35; }
.woocommerce ul.products li.product .price { font-size: 17px; margin-top: auto; }
.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .added_to_cart { font-size: 15px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.woocommerce ul.products li.product .added_to_cart { background: transparent; color: var(--hmse-link-strong) !important; border: 1px solid var(--hmse-link); margin-top: -6px; }
.woocommerce ul.products li.product .button.loading { opacity: .6; }
.woocommerce ul.products li.product .hmse-woo-badge { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin: 10px 14px 0; font-size: 12px; background: var(--hmse-accent-light); color: var(--hmse-link-strong); }
.woocommerce span.onsale { position: absolute; z-index: 2; font-size: 12px; padding: 6px 10px; color: #fff; }

/* Single product */
.woocommerce div.product { position: relative; margin-top: 8px; }
.woocommerce div.product > .woocommerce-tabs, .woocommerce div.product > .related, .woocommerce div.product > .up-sells { grid-column: 1 / -1; }
.woocommerce div.product div.images { margin: 0; background: var(--hmse-surface); }
.woocommerce div.product div.images img { width: 100%; height: auto; display: block; }
.woocommerce div.product .woocommerce-product-gallery__trigger { display: none; }
.woocommerce div.product .flex-control-thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; margin: 0; }
.woocommerce div.product .flex-control-thumbs li { width: 64px; cursor: pointer; }
.woocommerce div.product .flex-control-thumbs img { border-radius: 6px; opacity: .7; }
.woocommerce div.product .flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--hmse-accent); }
.woocommerce div.product .summary { display: flex; flex-direction: column; gap: 4px; }
.woocommerce div.product .product_title { font-size: 26px; line-height: 1.25; }
@media (min-width: 900px) { .woocommerce div.product .product_title { font-size: 32px; } }
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins { text-decoration: none; }
.woocommerce div.product p.price del { color: var(--hmse-muted); font-weight: 400; font-size: .75em; }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: 17px; }
.woocommerce div.product .stock { font-size: 15px; font-weight: 600; color: var(--hmse-link-strong); margin: 0 0 8px; }
.woocommerce div.product .stock.out-of-stock { color: var(--hmse-danger, #b42318); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 8px 0 16px; }
.woocommerce div.product form.cart .quantity input.qty { min-height: 48px; width: 80px; font-size: 17px; text-align: center; margin: 0; }
.woocommerce div.product form.cart .button { min-height: 48px; font-size: 16px; flex: 1 1 200px; }
.woocommerce div.product .product_meta { font-size: 14px; color: var(--hmse-muted); display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.woocommerce div.product .product_meta a { color: var(--hmse-link-strong); }
.hmse-woo-info { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--hmse-accent-light); border: 1px solid rgba(var(--hmse-accent-rgb), .3); color: var(--hmse-text); font-size: 15px; line-height: 1.55; margin: 8px 0; }
.hmse-woo-info .hmse-icon { color: var(--hmse-link-strong); margin-top: 3px; }
.hmse-woo-info p { margin: 0 0 6px; } .hmse-woo-info p:last-child { margin: 0; }

/* Tabs -> simple stacked sections with a tab bar */
.woocommerce div.product .woocommerce-tabs { border-top: 1px solid var(--hmse-border); padding-top: 8px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; padding: 0; border-bottom: 1px solid var(--hmse-border); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; font-weight: 600; font-size: 15px; color: var(--hmse-muted); text-decoration: none; border-bottom: 3px solid transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--hmse-link-strong); border-color: var(--hmse-accent); }
.woocommerce div.product .woocommerce-tabs .panel { font-size: 16px; line-height: 1.7; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { font-size: 20px; margin: 0 0 8px; }
.woocommerce table.shop_attributes { width: 100%; border-collapse: collapse; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hmse-border); }
.woocommerce table.shop_attributes td p { margin: 0; }
.woocommerce div.product .related > h2, .woocommerce div.product .up-sells > h2 { font-size: 22px; margin: 24px 0 16px; }

/* Pagination */
.woocommerce nav.woocommerce-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0; margin: 32px 0 0; border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 8px; border: 1px solid var(--hmse-border); background: var(--hmse-surface); color: var(--hmse-text); text-decoration: none; font-weight: 600; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--hmse-accent); border-color: var(--hmse-accent); color: #fff; }

/* Classic notices ("added to cart" etc.) */
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 16px; margin: 0 0 16px; background: var(--hmse-surface); border: 1px solid var(--hmse-border); border-left: 4px solid var(--hmse-accent); font-size: 15px; }
.woocommerce .woocommerce-error { border-left-color: #b42318; }
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before, .woocommerce .woocommerce-error::before { content: none; }
.woocommerce .woocommerce-message .button { order: 2; min-height: 44px; display: inline-flex; align-items: center; }

/* Empty shop / no products */
.woocommerce .woocommerce-no-products-found .woocommerce-info { justify-content: flex-start; }
.hmse-woo-badge--single { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin: 0 0 4px; }
/* Contrast (axe): struck-through old price and category links */
.woocommerce ul.products li.product .price del { opacity: 1; color: var(--hmse-muted); }
.woocommerce div.product .product_meta a { text-decoration: underline; text-underline-offset: 2px; }
