/* ==========================================================================
   Proton Vietnam — WooCommerce layer
   Loaded after main.css. Uses var(--pv-*) tokens only.
   Shop archive → single product → mini cart → notices → cart/checkout
   (blocks + classic) → my account → select2
   ========================================================================== */

.pv-shop { padding-bottom: var(--pv-section); }
.pv-woo .pv-container { min-width: 0; }

/* Visually hidden variation select (kept for WC's JS) */
select[data-pv-hidden-select] {
	position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important;
	padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	border: 0 !important; white-space: nowrap; opacity: 0; pointer-events: none;
}

/* Breadcrumb */
.pv-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pv-breadcrumb__sep { color: var(--pv-line-strong); }

/* Price defaults (WC markup: del / ins / .amount) */
.price del, .pv-mini-item__price del { color: var(--pv-muted); font-weight: 400; }
.price ins { text-decoration: none; color: var(--pv-sale); }
.woocommerce-Price-currencySymbol { margin-left: 1px; }

/* --------------------------------------------------------------------------
   Shop / category archive
   -------------------------------------------------------------------------- */
.pv-shop-hero {
	display: grid; gap: 24px; align-items: center;
	padding-block: clamp(20px, 3vw, 40px) clamp(16px, 2vw, 24px);
}
.pv-shop-hero__title { margin: 0; letter-spacing: -.02em; }
.pv-shop-hero__desc { max-width: 70ch; color: var(--pv-muted); }
.pv-shop-hero__desc:empty { display: none; }
.pv-shop-hero__desc .term-description, .pv-shop-hero__desc .page-description { margin-top: 12px; }
.pv-shop-hero__desc p:last-child { margin-bottom: 0; }
.pv-shop-hero--banner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pv-shop-hero__media { border-radius: var(--pv-radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--pv-soft); }
.pv-shop-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
	.pv-shop-hero--banner { grid-template-columns: minmax(0, 1fr); }
	.pv-shop-hero__media { order: -1; aspect-ratio: 2 / 1; }
}

.pv-shop-pills {
	flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	margin-inline: calc(var(--pv-gutter) * -1); padding: 2px var(--pv-gutter) 4px; margin-bottom: 8px;
}
.pv-shop-pills::-webkit-scrollbar { display: none; }
.pv-shop-pills .pv-pill { flex: none; white-space: nowrap; }

.pv-shop-toolbar {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	padding-block: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--pv-line);
	position: relative;
}
.pv-shop-toolbar__filter { gap: 8px; background: var(--pv-white); }
.pv-shop-toolbar__count {
	min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--pv-pill);
	background: var(--pv-ink); color: var(--pv-white); font-size: 12px; display: inline-grid; place-items: center;
}
.pv-shop-toolbar__count-text { flex: 1; min-width: 0; }
.woocommerce-result-count { margin: 0; font-size: var(--pv-fs-sm); color: var(--pv-muted); }
.pv-shop-toolbar__sort .woocommerce-ordering { margin: 0; }
.woocommerce-ordering select.orderby {
	width: auto; min-height: 44px; padding: 0 44px 0 20px; border-radius: var(--pv-pill);
	font-weight: 600; font-size: var(--pv-fs-sm); cursor: pointer;
	-webkit-appearance: none; appearance: none;
	background: var(--pv-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230A1430' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
}
@media (max-width: 560px) {
	.pv-shop-toolbar { gap: 10px; }
	.pv-shop-toolbar__count-text { order: 3; flex-basis: 100%; }
	.pv-shop-toolbar__sort { margin-left: auto; min-width: 0; }
	.woocommerce-ordering select.orderby { max-width: 100%; }
}

/* Pagination icons */
.pv-pagination .page-numbers svg { width: 18px; height: 18px; }
.pv-pagination a.page-numbers:hover { border-color: var(--pv-ink); }
.pv-pagination .dots { border-color: transparent; }

/* Empty state */
.pv-empty { text-align: center; padding: clamp(40px, 8vw, 96px) 16px; max-width: 520px; margin-inline: auto; }
.pv-empty__icon, .pv-minicart__empty-icon {
	width: 80px; height: 80px; border-radius: 50%; background: var(--pv-soft); color: var(--pv-muted);
	display: inline-grid; place-items: center; margin-bottom: 16px;
}
.pv-empty__title { font-size: var(--pv-fs-h3); font-weight: 800; letter-spacing: -.01em; }

/* Filter drawer */
.pv-filters .pv-filter, .pv-filters .widget { border: 0; border-bottom: 1px solid var(--pv-line); margin: 0; padding: 20px 0; min-width: 0; }
.pv-filter__title, .pv-filters .widget-title { margin: 0 0 12px; padding: 0; font-size: 15px; font-weight: 700; }
.pv-filter__cats, .pv-filter__cats ul, .pv-filters .widget ul { list-style: none; margin: 0; padding: 0; }
.pv-filter__cats ul { padding-left: 14px; }
.pv-filter__cats a, .pv-filters .widget li > a {
	display: flex; align-items: center; gap: 6px; min-height: 44px; color: var(--pv-ink); font-size: 15px;
}
.pv-filter__cats a.is-active { font-weight: 700; color: var(--pv-blue); }
.pv-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pv-filter__price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pv-filter__price label { display: grid; gap: 6px; font-weight: 500; color: var(--pv-muted); }
.pv-filter__radios { display: grid; gap: 4px; }
.pv-radio { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 500; cursor: pointer; }
.pv-radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--pv-ink); }
.pv-filter-form__actions {
	position: sticky; bottom: -20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
	padding: 16px 0 20px; background: var(--pv-white);
}
.pv-filter-form__actions .pv-btn { padding-inline: 12px; }

/* --------------------------------------------------------------------------
   Single product
   -------------------------------------------------------------------------- */
.pv-pdp { padding-top: clamp(12px, 2vw, 24px); }
.pv-pdp > .pv-breadcrumb { margin-bottom: 16px; }
.pv-pdp__grid {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 64px); align-items: start;
}
.pv-pdp__media { position: sticky; top: calc(var(--pv-header-h) + 16px); min-width: 0; }
.admin-bar .pv-pdp__media { top: calc(var(--pv-header-h) + 48px); }
@media (max-width: 960px) {
	.pv-pdp__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.pv-pdp__media { position: static; margin-inline: calc(var(--pv-gutter) * -1); }
}

/* Gallery */
.pv-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; }
.pv-gallery__main { position: relative; grid-column: 2; grid-row: 1; min-width: 0; }
.pv-gallery__thumbs {
	grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px;
	max-height: calc(100% + 0px); overflow-y: auto; scrollbar-width: none;
}
.pv-gallery__thumbs::-webkit-scrollbar { display: none; }
.pv-gallery__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	border-radius: var(--pv-radius); background: var(--pv-soft); overscroll-behavior-x: contain;
}
.pv-gallery__track::-webkit-scrollbar { display: none; }
.pv-gallery__track:focus-visible { outline-offset: -3px; }
.pv-gallery__slide { flex: 0 0 100%; margin: 0; aspect-ratio: 1 / 1; scroll-snap-align: start; position: relative; background: var(--pv-soft); }
.pv-gallery__slide img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pv-gallery__thumb {
	flex: none; width: 76px; aspect-ratio: 1; padding: 0; border: 1.5px solid transparent; border-radius: var(--pv-radius-sm);
	background: var(--pv-soft); overflow: hidden; transition: border-color .2s;
}
.pv-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pv-gallery__thumb:hover { border-color: var(--pv-line-strong); }
.pv-gallery__thumb.is-active { border-color: var(--pv-ink); }
.pv-gallery__badge { position: absolute; top: 16px; left: 16px; z-index: 2; font-size: 13px; }
.pv-gallery__arrow {
	position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%;
	background: var(--pv-white); color: var(--pv-ink); display: grid; place-items: center;
	box-shadow: 0 2px 8px rgba(10, 20, 48, .12); transition: opacity .2s;
}
.pv-gallery__arrow--prev { left: 12px; }
.pv-gallery__arrow--next { right: 12px; }
.pv-gallery__arrow:disabled { opacity: 0; pointer-events: none; }
.pv-gallery__dots { display: none; }
@media (hover: hover) and (min-width: 961px) {
	.pv-gallery__arrow { opacity: 0; }
	.pv-gallery__main:hover .pv-gallery__arrow:not(:disabled), .pv-gallery__arrow:focus-visible { opacity: 1; }
}
@media (max-width: 960px) {
	.pv-gallery { grid-template-columns: minmax(0, 1fr); }
	.pv-gallery__main { grid-column: 1; }
	.pv-gallery__thumbs, .pv-gallery__arrow { display: none; }
	.pv-gallery__track { border-radius: 0; }
	.pv-gallery__dots {
		position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none;
	}
	.pv-gallery__dot { width: 6px; height: 6px; border-radius: var(--pv-pill); background: var(--pv-line-strong); transition: width .25s var(--pv-ease), background .25s; }
	.pv-gallery__dot.is-active { width: 20px; background: var(--pv-ink); }
}

/* Summary */
.pv-pdp__summary { min-width: 0; }
.pv-pdp__eyebrow { margin-bottom: 8px; }
.pv-pdp__title {
	margin: 0; font-family: var(--pv-font-display); font-weight: 800;
	font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em;
	text-transform: none; overflow-wrap: anywhere;
}
.pv-pdp__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: var(--pv-fs-sm); }
.pv-pdp__meta > * + *::before { content: ""; display: inline-block; width: 1px; height: 12px; background: var(--pv-line-strong); margin-right: 16px; vertical-align: -1px; }
.pv-pdp__rating { display: inline-flex; align-items: center; gap: 6px; color: var(--pv-ink); font-weight: 600; min-height: 32px; }
.pv-pdp__rating:hover { color: var(--pv-ink); }
.pv-pdp__sold { color: var(--pv-muted); }

.pv-pdp__price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 16px; }
.pv-pdp__price-html { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pv-pdp__price-html del { order: 2; font-size: .6em; font-weight: 500; }
.pv-pdp__price-html ins { order: 1; }
.pv-pdp__pct[hidden] { display: none; }

.pv-pdp__excerpt { margin-top: 16px; font-size: 15px; line-height: 1.7; color: var(--pv-muted); }
.pv-pdp__excerpt ul { padding-left: 1.2em; }

.pv-stock {
	display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 6px 14px 6px 12px;
	border-radius: var(--pv-pill); font-size: 13px; font-weight: 600;
	background: rgba(19, 138, 75, .1); color: var(--pv-success);
}
.pv-stock__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pv-stock--onbackorder { background: rgba(31, 111, 224, .1); color: var(--pv-blue); }
.pv-stock--outofstock { background: var(--pv-soft); color: var(--pv-muted); }

/* Add to cart form */
.pv-pdp__buy { margin-top: 20px; }
.pv-pdp__buy .stock, .pv-pdp__buy .woocommerce-variation-availability, .pv-pdp__buy .woocommerce-variation-price { display: none; }
.pv-pdp__buy form.cart { margin: 0; }
.pv-pdp__buy table.variations { display: block; width: 100%; border: 0; margin: 0; border-collapse: collapse; }
.pv-pdp__buy table.variations tbody, .pv-pdp__buy table.variations tr, .pv-pdp__buy table.variations th, .pv-pdp__buy table.variations td { display: block; padding: 0; border: 0; text-align: left; }
.pv-pdp__buy table.variations tr { margin-bottom: 18px; }
.pv-pdp__buy table.variations th.label { margin-bottom: 10px; }
.pv-pdp__buy table.variations label { font-size: 15px; font-weight: 700; }
.pv-pdp__buy table.variations td.value { position: relative; }
.pv-variation-field { position: relative; }
.reset_variations {
	position: absolute; right: 0; top: -40px; display: inline-flex; align-items: center; min-height: 36px; padding: 0 4px;
	font-size: 13px; font-weight: 600; color: var(--pv-muted); text-decoration: underline; text-underline-offset: 3px;
}
.woocommerce-variation-description { margin-bottom: 12px; font-size: 14px; color: var(--pv-muted); }
.wc-no-matching-variations, .woocommerce-variation:not(:empty) p { font-size: 14px; }

.pv-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-swatch {
	min-width: 56px; min-height: 44px; padding: 0 16px; border-radius: var(--pv-radius-sm);
	border: 1.5px solid var(--pv-line-strong); background: var(--pv-white); color: var(--pv-ink);
	font-size: 14px; font-weight: 600; line-height: 1.2; transition: border-color .2s, background .2s, color .2s;
}
.pv-swatch:hover { border-color: var(--pv-ink); }
.pv-swatch.is-selected { border-color: var(--pv-ink); background: var(--pv-ink); color: var(--pv-white); }
.pv-swatch.is-disabled:not(.is-selected) {
	color: var(--pv-muted); border-style: dashed;
	background: linear-gradient(to top right, transparent calc(50% - .5px), var(--pv-line-strong) 50%, transparent calc(50% + .5px)) var(--pv-white);
}

.pv-atc-row { display: flex; gap: 10px; align-items: stretch; margin-top: 4px; }
.pv-atc-row .single_add_to_cart_button { flex: 1; min-height: 56px; font-size: 16px; }
.single_add_to_cart_button.disabled, .pv-buy-now.disabled { opacity: .45; cursor: not-allowed; }
.single_add_to_cart_button.disabled:hover, .pv-buy-now.disabled:hover { transform: none; box-shadow: none; }
.single_add_to_cart_button.loading { opacity: .7; pointer-events: none; }
.single_add_to_cart_button.loading::after {
	content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
	animation: pv-spin .7s linear infinite;
}
@keyframes pv-spin { to { transform: rotate(360deg); } }
.pv-buy-now { margin-top: 10px; }
.pv-pdp__ajax-msg { margin-top: 12px; padding: 12px 16px; border-radius: var(--pv-radius-sm); background: rgba(229, 50, 45, .08); color: var(--pv-sale); font-size: 14px; font-weight: 500; }
.pv-pdp__oos-note { margin: 16px 0 0; font-size: 14px; color: var(--pv-muted); }

/* Quantity stepper (single product + classic cart) */
.quantity { display: inline-flex; align-items: stretch; }
.quantity.pv-qty { border: 1.5px solid var(--pv-line-strong); border-radius: var(--pv-pill); background: var(--pv-white); overflow: hidden; }
.quantity input.qty {
	width: 56px; min-height: 48px; padding: 0 4px; text-align: center; font-weight: 700; font-size: 16px;
	-moz-appearance: textfield; appearance: textfield;
}
.quantity.pv-qty input.qty { width: 40px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.quantity input.qty::-webkit-outer-spin-button, .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pv-qty__btn { width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--pv-ink); display: grid; place-items: center; }
.pv-qty__btn:hover { background: var(--pv-soft); }
.pv-qty__btn:disabled { color: var(--pv-line-strong); cursor: not-allowed; background: transparent; }
.pv-atc-row .quantity.pv-qty { flex: none; }
.pv-atc-row .quantity input[type="hidden"] + * { display: none; }

/* Contact + policies */
.pv-pdp__contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.pv-pdp__contact .pv-btn { min-height: 48px; padding-inline: 16px; font-size: 14px; }

.pv-policies {
	list-style: none; margin: 24px 0 0; padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
	background: var(--pv-soft); border-radius: var(--pv-radius);
}
.pv-policies li { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.35; color: var(--pv-muted); min-width: 0; }
.pv-policies svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--pv-white); color: var(--pv-blue); }
.pv-policies strong { display: block; color: var(--pv-ink); font-weight: 700; font-size: 14px; }
@media (max-width: 480px) {
	.pv-policies { gap: 16px 12px; }
	.pv-policies li { flex-direction: column; align-items: flex-start; gap: 8px; }
	.pv-policies strong { font-size: 13px; }
}

/* Accordions */
.pv-accordions { margin-top: 28px; border-top: 1px solid var(--pv-line); }
.pv-acc { border-bottom: 1px solid var(--pv-line); }
.pv-acc__head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 8px 0;
	font-weight: 700; font-size: 16px; cursor: pointer; list-style: none;
}
.pv-acc__head::-webkit-details-marker { display: none; }
.pv-acc__head svg { flex: none; transition: transform .25s var(--pv-ease); }
.pv-acc[open] > .pv-acc__head svg { transform: rotate(180deg); }
.pv-acc__body { padding: 0 0 24px; min-width: 0; overflow-wrap: anywhere; }
.pv-acc__body.pv-prose, .pv-product-desc { font-size: 15px; line-height: 1.75; color: #2B3245; }

/* Imported (English) product descriptions: tame lists, tables, media */
.pv-product-desc > * + * { margin-top: .9em; }
.pv-product-desc h1, .pv-product-desc h2, .pv-product-desc h3, .pv-product-desc h4 { font-size: 17px; font-weight: 700; margin: 1.4em 0 .5em; color: var(--pv-ink); }
.pv-product-desc ul, .pv-product-desc ol, .pv-acc__body ul { padding-left: 1.25em; margin: .6em 0; }
.pv-product-desc li + li, .pv-acc__body li + li { margin-top: .35em; }
.pv-product-desc li::marker { color: var(--pv-blue); }
.pv-product-desc img, .pv-product-desc video, .pv-product-desc iframe { max-width: 100%; height: auto; border-radius: var(--pv-radius); }
.pv-product-desc iframe { aspect-ratio: 16 / 9; width: 100%; }
.pv-product-desc table, .pv-acc__body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.pv-product-desc table td, .pv-product-desc table th { padding: 10px 12px; border-bottom: 1px solid var(--pv-line); text-align: left; vertical-align: top; }
.pv-product-desc strong, .pv-product-desc b { color: var(--pv-ink); }
.pv-product-desc [style*="font-family"], .pv-product-desc span[style] { font-family: inherit !important; font-size: inherit !important; }

/* Attributes table */
.woocommerce-product-attributes { width: 100%; display: table; border-collapse: collapse; font-size: 14px; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: 12px 0; border-bottom: 1px solid var(--pv-line); text-align: left; vertical-align: top; }
.woocommerce-product-attributes th { width: 40%; padding-right: 16px; font-weight: 600; color: var(--pv-muted); }
.woocommerce-product-attributes td p { margin: 0; }
.woocommerce-product-attributes tr:last-child > * { border-bottom: 0; }

/* Rails under the product */
.pv-pdp-rail { margin-top: var(--pv-section); min-width: 0; }
.pv-pdp-rail .pv-section-head { margin-bottom: 20px; }
.pv-pdp-rail .pv-h3 { letter-spacing: -.01em; }

/* Sticky add-to-cart bar */
.pv-sticky-atc {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	background: var(--pv-white); border-top: 1px solid var(--pv-line);
	box-shadow: 0 -6px 24px rgba(10, 20, 48, .08);
	padding-bottom: env(safe-area-inset-bottom);
	transform: translateY(110%); transition: transform .3s var(--pv-ease), visibility .3s;
	visibility: hidden;
}
.pv-sticky-atc.is-visible { transform: none; visibility: visible; }
.pv-sticky-atc__inner { display: flex; align-items: center; gap: 12px; min-height: 72px; padding-block: 10px; }
.pv-sticky-atc__thumb { flex: none; width: 52px; height: 52px; border-radius: var(--pv-radius-sm); background: var(--pv-soft); overflow: hidden; }
.pv-sticky-atc__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pv-sticky-atc__info { flex: 1; min-width: 0; }
.pv-sticky-atc__name { margin: 0; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-sticky-atc__price { margin: 0; font-size: 14px; font-weight: 700; display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.pv-sticky-atc__price del { font-size: 12px; }
.pv-sticky-atc__btn { flex: none; min-height: 48px; padding-inline: 22px; }
body.pv-sticky-atc-on .pv-float { bottom: 96px; transition: bottom .3s var(--pv-ease); }
@media (max-width: 560px) {
	.pv-sticky-atc__thumb { display: none; }
	.pv-sticky-atc__btn { padding-inline: 18px; font-size: 14px; }
}

/* --------------------------------------------------------------------------
   Star ratings + reviews
   -------------------------------------------------------------------------- */
.star-rating {
	position: relative; display: inline-block; overflow: hidden; width: 5.4em; height: 1.1em; line-height: 1.1;
	font-size: 14px; letter-spacing: .1em; font-family: Arial, sans-serif; vertical-align: middle;
}
.star-rating::before { content: "★★★★★"; position: absolute; top: 0; left: 0; color: var(--pv-line-strong); }
.star-rating span { position: absolute; top: 0; left: 0; overflow: hidden; padding-top: 1.5em; height: 1.1em; }
.star-rating span::before { content: "★★★★★"; position: absolute; top: 0; left: 0; color: #F5B301; }

#reviews .woocommerce-Reviews-title, #reviews h2 { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
#reviews .commentlist { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
#reviews .commentlist li .comment_container { display: flex; gap: 12px; padding: 16px; border-radius: var(--pv-radius); background: var(--pv-soft); }
#reviews .commentlist img.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
#reviews .comment-text { flex: 1; min-width: 0; font-size: 14px; }
#reviews .comment-text .meta { margin: 4px 0 6px; font-size: 13px; color: var(--pv-muted); }
#reviews .comment-text .description p:last-child { margin: 0; }
#reviews .woocommerce-noreviews { color: var(--pv-muted); }
#review_form_wrapper { padding: 20px; border: 1px solid var(--pv-line); border-radius: var(--pv-radius); }
#review_form .comment-reply-title { display: block; font-size: 16px; font-weight: 700; margin-bottom: 12px; }
#review_form .comment-form > p { margin: 0 0 14px; display: grid; gap: 6px; }
#review_form .comment-form-cookies-consent { display: flex !important; gap: 10px; align-items: flex-start; font-size: 13px; }
#review_form .form-submit input { width: 100%; }
p.stars { margin: 4px 0 0; }
p.stars span { display: inline-flex; gap: 2px; }
p.stars a {
	position: relative; width: 36px; height: 36px; text-indent: -999em; overflow: hidden; display: inline-block;
	color: var(--pv-line-strong);
}
p.stars a::before { content: "★"; position: absolute; inset: 0; text-indent: 0; font-size: 28px; line-height: 36px; text-align: center; color: inherit; }
p.stars:hover a, p.stars.selected a { color: #F5B301; }
p.stars:hover a:hover ~ a, p.stars.selected a.active ~ a { color: var(--pv-line-strong); }
p.stars.selected:hover a { color: #F5B301; }
p.stars.selected:hover a:hover ~ a { color: var(--pv-line-strong); }

/* --------------------------------------------------------------------------
   Mini cart drawer
   -------------------------------------------------------------------------- */
.pv-drawer__count {
	display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; margin-left: 6px;
	border-radius: var(--pv-pill); background: var(--pv-soft); font-family: var(--pv-font-body); font-size: 13px; font-weight: 700;
	vertical-align: middle; letter-spacing: 0;
}
.pv-minicart { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pv-minicart__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 48px; }
.pv-minicart__empty-title { margin: 0 0 6px; font-weight: 700; font-size: 18px; }
.pv-minicart__empty .pv-muted { max-width: 300px; font-size: 14px; }
.pv-mini-items { list-style: none; margin: 0; padding: 0; }
.pv-mini-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--pv-line); transition: opacity .2s; }
.pv-mini-item:last-child { border-bottom: 0; }
.pv-mini-item.is-loading, .pv-mini-item .blockUI ~ * { opacity: .5; }
.pv-mini-item__thumb { display: block; aspect-ratio: 1; border-radius: var(--pv-radius-sm); background: var(--pv-soft); overflow: hidden; }
.pv-mini-item__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.pv-mini-item__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pv-mini-item__top { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.pv-mini-item__name { font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--pv-ink); }
.pv-mini-item__name:hover { color: var(--pv-blue); }
.pv-mini-item__remove { flex: none; width: 36px; height: 36px; margin: -8px -8px 0 0; border-radius: 50%; display: grid; place-items: center; color: var(--pv-muted); }
.pv-mini-item__remove:hover { background: var(--pv-soft); color: var(--pv-sale); }
.pv-mini-item__meta { font-size: 12px; color: var(--pv-muted); }
.pv-mini-item__meta dl.variation { margin: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.pv-mini-item__meta dl.variation dt { font-weight: 500; }
.pv-mini-item__meta dl.variation dd { margin: 0 8px 0 0; }
.pv-mini-item__meta dl.variation p { margin: 0; display: inline; }
.pv-mini-item__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.pv-mini-item__price { font-weight: 700; font-size: 14px; text-align: right; }
.pv-mini-qty { display: inline-flex; align-items: center; border: 1px solid var(--pv-line-strong); border-radius: var(--pv-pill); }
.pv-mini-qty__btn { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--pv-ink); }
.pv-mini-qty__btn:hover { background: var(--pv-soft); }
.pv-mini-qty__btn:disabled { color: var(--pv-line-strong); cursor: not-allowed; background: transparent; }
.pv-mini-qty__val { min-width: 24px; text-align: center; font-weight: 700; font-size: 14px; }

.pv-freeship { margin-bottom: 16px; }
.pv-freeship__text { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; }
.pv-freeship__text svg { flex: none; color: var(--pv-blue); }
.pv-freeship__bar { height: 6px; border-radius: var(--pv-pill); background: var(--pv-line); overflow: hidden; }
.pv-freeship__bar span { display: block; height: 100%; border-radius: inherit; background: var(--pv-blue); transition: width .5s var(--pv-ease); }
.pv-freeship.is-done .pv-freeship__bar span { background: var(--pv-success); }
.pv-freeship.is-done svg { color: var(--pv-success); }
.pv-minicart__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.pv-minicart__total strong { font-size: 20px; font-weight: 800; }
.pv-minicart__note { margin: 4px 0 14px; font-size: 12px; }
.pv-minicart__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv-minicart__actions .pv-btn { padding-inline: 12px; }

/* --------------------------------------------------------------------------
   Notices
   -------------------------------------------------------------------------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error,
.wc-block-components-notice-banner {
	--_c: var(--pv-blue);
	position: relative; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
	margin: 0 0 20px; padding: 14px 18px 14px 54px; min-height: 52px;
	border-radius: var(--pv-radius); background: var(--pv-soft); color: var(--pv-ink);
	border: 1px solid var(--pv-line); border-left: 4px solid var(--_c);
	font-size: 14px; line-height: 1.5;
}
.woocommerce-message { --_c: var(--pv-success); }
.woocommerce-error { --_c: var(--pv-sale); flex-direction: column; align-items: flex-start; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
	content: ""; position: absolute; left: 18px; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--_c);
	-webkit-mask: var(--_icon) center / 14px no-repeat, linear-gradient(#000 0 0); mask: var(--_icon) center / 14px no-repeat, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
}
.woocommerce-message { --_icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.woocommerce-info { --_icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 11v6M12 7h.01'/%3E%3C/svg%3E"); }
.woocommerce-error { --_icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E"); }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button {
	order: 2; margin-left: auto; min-height: 40px; padding: 0 18px; font-size: 13px;
	--_bg: transparent; --_fg: var(--pv-ink); --_bd: var(--pv-ink);
}
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button), .woocommerce-error a:not(.button) { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
/* Block notices */
.wc-block-components-notice-banner { padding-left: 18px; }
.wc-block-components-notice-banner.is-success { --_c: var(--pv-success); }
.wc-block-components-notice-banner.is-error { --_c: var(--pv-sale); }
.wc-block-components-notice-banner > svg { flex: none; border-radius: 50%; background: var(--_c) !important; fill: var(--pv-white) !important; padding: 2px; }

/* --------------------------------------------------------------------------
   Cart / checkout / account pages (rendered through page.php)
   -------------------------------------------------------------------------- */
body.woocommerce-cart #primary:not(:has(.pv-container)),
body.woocommerce-checkout #primary:not(:has(.pv-container)),
body.woocommerce-account #primary:not(:has(.pv-container)) {
	max-width: var(--pv-max); margin-inline: auto; padding: clamp(24px, 3vw, 40px) var(--pv-gutter) var(--pv-section);
}
body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title,
body.woocommerce-account .entry-title {
	font-family: var(--pv-font-display); font-weight: 800; font-size: var(--pv-fs-h2); letter-spacing: -.02em; margin: 0 0 clamp(20px, 3vw, 32px);
}
body.woocommerce-cart .entry-footer, body.woocommerce-checkout .entry-footer { display: none; }
body.woocommerce-cart .alignwide, body.woocommerce-checkout .alignwide { max-width: none; margin-inline: 0; }

/* ---- Blocks: shared ---- */
.wc-block-cart, .wc-block-checkout { font-family: var(--pv-font-body); color: var(--pv-ink); }
.wc-block-components-sidebar-layout { gap: 0; margin: 0 !important; }
.wc-block-components-sidebar-layout .wc-block-components-main { padding-right: clamp(0px, 3vw, 40px) !important; }
.wc-block-components-sidebar {
	padding: 24px !important; border-radius: var(--pv-radius-lg); background: var(--pv-soft);
	align-self: flex-start; position: sticky; top: calc(var(--pv-header-h) + 16px);
}
@media (max-width: 699px) {
	.wc-block-components-sidebar { position: static; padding: 16px !important; }
	.wc-block-components-sidebar-layout .wc-block-components-main { padding-right: 0 !important; }
}
.wc-block-components-title.wc-block-components-title, .wc-block-components-checkout-step__title, .wc-block-cart__totals-title {
	font-family: var(--pv-font-body) !important; font-weight: 700 !important; font-size: 18px !important; text-transform: none !important; letter-spacing: 0 !important;
}
.wc-block-cart__totals-title { font-size: 13px !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--pv-muted); }
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	min-height: 56px !important; border-radius: var(--pv-pill) !important; border: 0 !important;
	background: var(--pv-ink) !important; color: var(--pv-white) !important;
	font-family: var(--pv-font-body) !important; font-weight: 700 !important; font-size: 16px !important;
	box-shadow: none !important; transition: background .2s, transform .2s var(--pv-ease);
}
.wc-block-components-button:not(.is-link):hover { background: var(--pv-navy) !important; transform: translateY(-1px); }
.wc-block-components-button.is-link, .wc-block-components-totals-coupon-link, .wc-block-components-panel__button { color: var(--pv-blue) !important; }
.wc-block-components-text-input input, .wc-block-components-text-input textarea,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-textarea {
	border-radius: var(--pv-radius-sm) !important; border: 1px solid var(--pv-line-strong) !important; background-color: var(--pv-white) !important;
	min-height: 52px; font-family: var(--pv-font-body) !important; color: var(--pv-ink) !important; box-shadow: none !important;
}
.wc-block-components-text-input input:focus, .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input:focus, .wc-block-components-textarea:focus {
	border-color: var(--pv-blue) !important; box-shadow: 0 0 0 3px rgba(31, 111, 224, .18) !important;
}
.wc-block-components-text-input label, .wc-blocks-components-select__label, .wc-block-components-combobox label { color: var(--pv-muted) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { border-radius: 6px; border-color: var(--pv-line-strong); }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--pv-ink); border-color: var(--pv-ink); }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--pv-white); }
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked { border-color: var(--pv-ink); }
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before { background: var(--pv-ink); }
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 2px var(--pv-ink) !important; border-radius: var(--pv-radius) !important;
}
.wc-block-components-radio-control--highlight-checked::after { border-radius: var(--pv-radius) !important; border-color: var(--pv-line) !important; }
.wc-block-components-totals-item__value, .wc-block-components-formatted-money-amount { font-weight: 700; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-size: 20px !important; font-weight: 800 !important; }
.wc-block-components-totals-wrapper { border-color: var(--pv-line) !important; }
.wc-block-components-product-badge { border-radius: var(--pv-pill) !important; border: 0 !important; background: var(--pv-sale); color: var(--pv-white); padding: 3px 8px !important; font-size: 11px !important; }
.wc-block-components-sale-badge { background: var(--pv-sale) !important; color: var(--pv-white) !important; }
.wc-block-components-product-name { color: var(--pv-ink) !important; font-weight: 600 !important; text-decoration: none !important; }
.wc-block-components-product-metadata { color: var(--pv-muted); font-size: 13px; }
.wc-block-components-order-summary-item__image img, .wc-block-cart-item__image img { border-radius: var(--pv-radius-sm); background: var(--pv-soft); }

/* ---- Block cart ---- */
.wc-block-cart-items { border: 0 !important; }
.wc-block-cart-items th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--pv-muted); font-weight: 600; border-color: var(--pv-line) !important; }
.wc-block-cart-items td { border-color: var(--pv-line) !important; }
.wc-block-cart-items .wc-block-cart-items__row { padding-block: 20px !important; }
.wc-block-cart-item__image a { display: block; border-radius: var(--pv-radius-sm); background: var(--pv-soft); overflow: hidden; }
.wc-block-cart-item__image img { mix-blend-mode: multiply; aspect-ratio: 1; object-fit: contain; }
.wc-block-components-quantity-selector {
	border-radius: var(--pv-pill) !important; border: 1.5px solid var(--pv-line-strong) !important; overflow: hidden; min-height: 44px; width: auto !important;
}
.wc-block-components-quantity-selector::after { display: none !important; }
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { min-height: 40px; font-weight: 700; border: 0 !important; box-shadow: none !important; }
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { min-width: 40px; color: var(--pv-ink) !important; }
.wc-block-cart-item__remove-link { color: var(--pv-muted) !important; font-size: 13px !important; min-height: 32px; }
.wc-block-cart__submit-container { margin-top: 8px; }
.wc-block-cart__payment-options { display: none; }
.wp-block-woocommerce-empty-cart-block { text-align: center; padding-block: clamp(32px, 6vw, 72px); }
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title { font-family: var(--pv-font-display); font-weight: 800; font-size: var(--pv-fs-h3); letter-spacing: -.01em; }
.wp-block-woocommerce-empty-cart-block hr, .wp-block-woocommerce-empty-cart-block .wp-block-separator { border: 0; border-top: 1px solid var(--pv-line); max-width: 120px; margin: 32px auto; }
.wp-block-woocommerce-empty-cart-block h2:not(.wc-block-cart__empty-cart__title) { font-weight: 700; font-size: 20px; }

/* Product grids rendered by blocks (empty cart "new in store", cross-sells) */
.wc-block-grid__products, .wp-block-woocommerce-product-template {
	display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px) !important; list-style: none; padding: 0 !important; margin: 0 !important;
}
@media (max-width: 860px) { .wc-block-grid__products, .wp-block-woocommerce-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wc-block-grid__product, .wp-block-woocommerce-product-template > li { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; text-align: left !important; font-size: 14px; }
.wc-block-grid__product-image img, .wp-block-woocommerce-product-template .wc-block-components-product-image img,
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-image img {
	aspect-ratio: 1; object-fit: contain; background: var(--pv-soft); border-radius: var(--pv-radius); padding: 8%; mix-blend-mode: multiply;
}
.wc-block-grid__product-title, .wp-block-woocommerce-product-template .wp-block-post-title { font-size: 15px !important; font-weight: 600; margin: 12px 0 4px !important; }
.wc-block-grid__product-title a, .wp-block-woocommerce-product-template .wp-block-post-title a { color: var(--pv-ink); }
.wc-block-grid__product-price, .wp-block-woocommerce-product-template .wc-block-components-product-price { font-weight: 700; }
.wc-block-grid__product-add-to-cart .wp-block-button__link, .wp-block-woocommerce-product-template .wp-block-button__link {
	min-height: 44px; padding: 0 18px; border-radius: var(--pv-pill); background: var(--pv-ink); color: var(--pv-white); font-size: 13px; font-weight: 700;
	display: inline-flex; align-items: center; margin-top: 8px;
}

/* ---- Block checkout ---- */
.wc-block-checkout .wc-block-components-checkout-step { margin-bottom: 20px !important; padding: 24px !important; border: 1px solid var(--pv-line); border-radius: var(--pv-radius-lg); }
.wc-block-checkout .wc-block-components-checkout-step::after { display: none !important; }
.wc-block-checkout .wc-block-components-checkout-step__heading { margin: 0 0 16px !important; }
.wc-block-checkout .wc-block-components-checkout-step__title { font-size: 18px !important; }
.wc-block-checkout .wc-block-components-checkout-step__container { padding: 0 !important; }
.wc-block-checkout .wc-block-components-checkout-step__container::after { display: none !important; }
.wc-block-checkout .wc-block-components-checkout-step__heading-content { font-size: 13px; }
.wc-block-checkout__sidebar .wc-block-components-order-summary { padding: 0 !important; }
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block { border: 0 !important; border-radius: 0; }
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block > *,
.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title { padding-inline: 0 !important; }
.wc-block-checkout__sidebar .wc-block-components-panel__button { font-weight: 700; }
.wc-block-components-address-form__first_name { flex-basis: 100% !important; margin-right: 0 !important; }
.wc-block-checkout__actions { flex-wrap: wrap; gap: 12px; }
.wc-block-checkout__actions_row { gap: 12px; flex-wrap: wrap; }
.wc-block-components-checkout-return-to-cart-button { color: var(--pv-muted) !important; font-weight: 600; }
.wc-block-checkout__terms { font-size: 13px; color: var(--pv-muted); }
.wc-block-components-address-card { border-radius: var(--pv-radius) !important; border-color: var(--pv-line) !important; }
@media (max-width: 699px) {
	.wc-block-checkout .wc-block-components-checkout-step { padding: 16px !important; }
	.wc-block-checkout__actions .wc-block-components-checkout-place-order-button { width: 100%; }
}

/* ---- Classic cart (shortcode) ---- */
.woocommerce-cart-form { min-width: 0; }
table.shop_table { width: 100%; border-collapse: collapse; font-size: 15px; }
table.shop_table th { padding: 12px; text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--pv-muted); border-bottom: 1px solid var(--pv-line); }
table.shop_table td { padding: 16px 12px; border-bottom: 1px solid var(--pv-line); vertical-align: middle; }
table.shop_table .product-thumbnail img { width: 80px; border-radius: var(--pv-radius-sm); background: var(--pv-soft); mix-blend-mode: multiply; }
table.shop_table .product-name a { color: var(--pv-ink); font-weight: 600; }
table.shop_table a.remove { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--pv-muted); font-size: 22px; line-height: 1; }
table.shop_table a.remove:hover { background: var(--pv-soft); color: var(--pv-sale); }
table.shop_table td.actions { padding-inline: 0; }
table.shop_table .coupon { display: flex; gap: 8px; flex-wrap: wrap; float: left; }
table.shop_table .coupon input.input-text { width: 200px; min-height: 52px; border-radius: var(--pv-pill); }
table.shop_table td.actions > .button { float: right; }
.cart-collaterals { margin-top: 32px; display: grid; gap: 32px; }
.cart_totals, .woocommerce-checkout-review-order { padding: 24px; border-radius: var(--pv-radius-lg); background: var(--pv-soft); }
.cart_totals h2 { font-size: 18px; font-weight: 700; }
.cart_totals table.shop_table th { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--pv-ink); }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px; margin-top: 12px; }
#shipping_method { list-style: none; margin: 0; padding: 0; }
@media (max-width: 768px) {
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: grid; grid-template-columns: 80px 1fr; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--pv-line); position: relative; }
	table.shop_table_responsive td { display: block; padding: 0; border: 0; text-align: left !important; }
	table.shop_table_responsive td::before { content: attr(data-title) ": "; font-size: 12px; color: var(--pv-muted); }
	table.shop_table_responsive td.product-thumbnail { grid-row: span 4; }
	table.shop_table_responsive td.product-thumbnail::before, table.shop_table_responsive td.product-remove::before, table.shop_table_responsive td.actions::before, table.shop_table_responsive td.product-name::before { content: none; }
	table.shop_table_responsive td.product-remove { position: absolute; right: 0; top: 12px; }
	table.shop_table_responsive td.actions { grid-column: 1 / -1; }
	table.shop_table .coupon, table.shop_table td.actions > .button { float: none; width: 100%; }
	table.shop_table .coupon input.input-text { flex: 1; width: auto; }
}
@media (min-width: 1025px) {
	.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 40px; align-items: start; }
	.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	.woocommerce-cart .cart-collaterals { margin-top: 0; }
}
.cart-empty.woocommerce-info { justify-content: center; }
.return-to-shop { text-align: center; }

/* ---- Classic checkout (shortcode) ---- */
form.checkout { display: grid; gap: 32px; }
@media (min-width: 1025px) {
	form.checkout { grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr); align-items: start; gap: 48px; }
	form.checkout > .col2-set, form.checkout > #customer_details { grid-column: 1; grid-row: 1 / span 3; }
	form.checkout > #order_review_heading, form.checkout > #order_review { grid-column: 2; }
	#order_review { position: sticky; top: calc(var(--pv-header-h) + 16px); }
}
.col2-set { display: grid; gap: 24px; }
.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3, #order_review_heading { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields { padding: 24px; border: 1px solid var(--pv-line); border-radius: var(--pv-radius-lg); }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.form-row { margin: 0 0 16px; display: grid; gap: 6px; grid-column: 1 / -1; }
.form-row-first { grid-column: 1; }
.form-row-last { grid-column: 2; }
@media (max-width: 560px) {
	.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
	.form-row-first, .form-row-last { grid-column: 1; }
	.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields, .cart_totals, .woocommerce-checkout-review-order { padding: 16px; }
}
.form-row label .required { color: var(--pv-sale); text-decoration: none; border: 0; }
.form-row label .optional { color: var(--pv-muted); font-weight: 400; }
.form-row.woocommerce-invalid input.input-text, .form-row.woocommerce-invalid select { border-color: var(--pv-sale); }
.form-row .woocommerce-input-wrapper strong { display: block; padding: 12px 0; }
.woocommerce-checkout-review-order-table .product-name { font-weight: 500; }
.woocommerce-checkout-review-order-table tfoot th { text-transform: none; letter-spacing: 0; color: var(--pv-ink); font-size: 14px; }
.woocommerce-checkout-review-order-table .order-total td, .woocommerce-checkout-review-order-table .order-total th { font-size: 18px; font-weight: 800; }
#payment ul.payment_methods { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
#payment ul.payment_methods > li { padding: 14px 16px; border-radius: var(--pv-radius); background: var(--pv-white); border: 1px solid var(--pv-line); }
#payment ul.payment_methods > li label { font-size: 15px; cursor: pointer; }
#payment .payment_box { margin-top: 10px; font-size: 13px; color: var(--pv-muted); }
#payment .payment_box p:last-child { margin: 0; }
#place_order { width: 100%; min-height: 56px; font-size: 16px; }
.woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--pv-muted); margin-bottom: 12px; }
.woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-form-login-toggle .woocommerce-info { margin-bottom: 16px; }
form.checkout_coupon, form.woocommerce-form-login { padding: 20px; border: 1px solid var(--pv-line); border-radius: var(--pv-radius); margin-bottom: 24px; }

/* Order received */
.woocommerce-order-overview { list-style: none; margin: 0 0 32px; padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; background: var(--pv-soft); border-radius: var(--pv-radius-lg); font-size: 13px; color: var(--pv-muted); }
.woocommerce-order-overview strong { display: block; color: var(--pv-ink); font-size: 15px; margin-top: 4px; }
.woocommerce-thankyou-order-received { font-size: 20px; font-weight: 700; color: var(--pv-success); }
.woocommerce-order-details, .woocommerce-customer-details { margin-top: 32px; }
.woocommerce-order-details__title, .woocommerce-column__title { font-size: 18px; font-weight: 700; }
.woocommerce-customer-details address { font-style: normal; padding: 20px; border-radius: var(--pv-radius); background: var(--pv-soft); line-height: 1.8; }

/* --------------------------------------------------------------------------
   My account
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce { display: grid; gap: 24px; }
@media (min-width: 961px) {
	.woocommerce-account.logged-in .woocommerce { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
	.woocommerce-MyAccount-navigation { position: sticky; top: calc(var(--pv-header-h) + 16px); }
}
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; background: var(--pv-soft); border-radius: var(--pv-radius-lg); }
.woocommerce-MyAccount-navigation a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: var(--pv-radius-sm); color: var(--pv-ink); font-weight: 600; font-size: 15px; }
.woocommerce-MyAccount-navigation a:hover { background: var(--pv-white); color: var(--pv-ink); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--pv-ink); color: var(--pv-white); }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--pv-sale); }
@media (max-width: 960px) {
	.woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; scrollbar-width: none; background: none; padding: 0; gap: 8px; }
	.woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	.woocommerce-MyAccount-navigation a { white-space: nowrap; border: 1px solid var(--pv-line-strong); border-radius: var(--pv-pill); min-height: 44px; font-size: 14px; }
	.woocommerce-MyAccount-navigation .is-active a { border-color: var(--pv-ink); }
}
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content > p:first-child { padding: 20px; border-radius: var(--pv-radius-lg); background: var(--pv-soft); }
.woocommerce-MyAccount-content fieldset { border: 1px solid var(--pv-line); border-radius: var(--pv-radius); padding: 16px 20px; margin: 16px 0; }
.woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.woocommerce-Address { padding: 20px; border: 1px solid var(--pv-line); border-radius: var(--pv-radius-lg); }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.woocommerce-Address-title h2, .woocommerce-Address-title h3 { font-size: 17px; }
.woocommerce-Address address { font-style: normal; line-height: 1.8; color: var(--pv-muted); }
.woocommerce-orders-table .button, .woocommerce-MyAccount-content .woocommerce-button { min-height: 40px; padding: 0 16px; font-size: 13px; }
.woocommerce-pagination--without-numbers, .woocommerce-account .woocommerce-pagination { display: flex; gap: 8px; margin-top: 16px; }

/* Login / register */
.woocommerce-account:not(.logged-in) .woocommerce > h2 { font-size: var(--pv-fs-h3); font-weight: 800; }
.u-columns.col2-set { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.u-columns .u-column1, .u-columns .u-column2 { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--pv-line); border-radius: var(--pv-radius-lg); }
.u-columns .u-column2 { background: var(--pv-soft); border-color: transparent; }
.u-columns h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword, .woocommerce-EditAccountForm { display: grid; gap: 0; }
.u-columns form.woocommerce-form-login { border: 0; padding: 0; margin: 0; }
.woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; cursor: pointer; }
.woocommerce-form__label-for-checkbox input { width: 18px; height: 18px; accent-color: var(--pv-ink); }
.woocommerce-form-login__submit, .woocommerce-form-register__submit, .woocommerce-ResetPassword .button { width: 100%; margin-top: 8px; }
.woocommerce-LostPassword { margin: 12px 0 0; font-size: 14px; }
.woocommerce-privacy-policy-text { font-size: 13px; color: var(--pv-muted); }
.password-input { position: relative; display: block; }
.show-password-input { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; }
.show-password-input::before {
	content: ""; display: block; width: 20px; height: 20px; margin: auto; background: var(--pv-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.show-password-input.display-password::before { background: var(--pv-ink); }
.woocommerce-password-strength { font-size: 13px; margin-top: 6px; padding: 6px 10px; border-radius: var(--pv-radius-sm); background: var(--pv-soft); }

/* --------------------------------------------------------------------------
   select2 / selectWoo (country/state fields)
   -------------------------------------------------------------------------- */
.select2-container { width: 100% !important; font-size: 15px; }
.select2-container .select2-selection--single {
	height: 50px; border: 1px solid var(--pv-line-strong); border-radius: var(--pv-radius-sm); background: var(--pv-white);
	display: flex; align-items: center;
}
.select2-container .select2-selection--single .select2-selection__rendered { padding: 0 40px 0 16px; line-height: 48px; color: var(--pv-ink); }
.select2-container .select2-selection--single .select2-selection__arrow { height: 48px; right: 10px; }
.select2-container--focus .select2-selection--single, .select2-container--open .select2-selection--single { border-color: var(--pv-blue); box-shadow: 0 0 0 3px rgba(31, 111, 224, .18); }
.select2-dropdown { border: 1px solid var(--pv-line-strong); border-radius: var(--pv-radius-sm); overflow: hidden; box-shadow: var(--pv-shadow); }
.select2-search--dropdown .select2-search__field { min-height: 44px; border-radius: var(--pv-radius-sm); }
.select2-results__option { padding: 10px 16px; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--pv-ink); color: var(--pv-white); }

/* blockUI overlays */
.blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.pv-gallery__track { scroll-behavior: auto; }
	.pv-sticky-atc, .pv-freeship__bar span, .pv-acc__head svg, .pv-gallery__dot, .pv-swatch { transition: none; }
	.single_add_to_cart_button.loading::after { animation-duration: 2s; }
}

/* Login-only (registration disabled) */
.woocommerce-account:not(.logged-in) .woocommerce > h2,
.woocommerce-account:not(.logged-in) .woocommerce > form.woocommerce-form-login,
.woocommerce-account:not(.logged-in) .woocommerce > form.woocommerce-ResetPassword { width: 100%; max-width: 520px; }
.woocommerce-account:not(.logged-in) .woocommerce > form.woocommerce-form-login { padding: clamp(20px, 3vw, 32px); border-radius: var(--pv-radius-lg); }

/* Fix: horizontal scrollers must not capture vertical wheel scrolling */
.pv-shop-pills, .pv-gallery__track, .woocommerce-MyAccount-navigation ul { overflow-y: hidden; }

/* Icon size pass */
.pv-btn svg, .button svg { width: 20px; height: 20px; flex: none; }
.pv-shop-toolbar__filter svg { width: 20px; height: 20px; }
.pv-mini-qty__btn svg, .pv-qty button svg, .quantity button svg { width: 18px; height: 18px; }
.pv-mini-item__remove svg { width: 18px; height: 18px; }
.pv-pagination .page-numbers svg { width: 20px; height: 20px; }
.pv-freeship svg { width: 22px; height: 22px; }
.pv-policies svg { width: 46px; height: 46px; padding: 11px; }

/* Drawer title count: the header badge rule (absolute) must not leak in here */
.pv-drawer__count .pv-cart-count { position: static; min-width: 0; height: auto; padding: 0; background: none; color: inherit; font-size: inherit; line-height: inherit; display: inline; border-radius: 0; }
