/*
 * Shop archive v2 + shared hero for every Wavo page header.
 * Same structure and content as before (sidebar, toolbar, products, CTA) - only the look changes.
 * Printed last, after pm-buttons.css.
 */

/* ---------------------------------------------------------------- page hero on Wavo templates = the Pakalpojumi hero
 * breadcrumbs first, big caps title with the teal full stop */
html body.pm-site .page-header { padding: clamp(28px, 3.5vw, 48px) 0 clamp(32px, 4vw, 56px) !important; }
html body.pm-site .page-header .hero-innner-last-child { display: flex !important; flex-direction: column-reverse; align-items: flex-start; gap: clamp(16px, 2vw, 28px); }
html body.pm-site .page-header .nt-hero-title,
html body.pm-site .page-header .hero__title,
html body.pm-site .page-header .extra-title {
	font: 800 clamp(2.2rem, 1.4rem + 3vw, 4rem)/1.02 var(--pm-font-display) !important;
	letter-spacing: -.02em !important;
}
html body.pm-site .page-header .nt-hero-title::after { content: "."; color: var(--pm-brand-hi); }
html body.pm-site .page-header .breadcrumb-trail, html body.pm-site .page-header .nt-breadcrumbs { margin-top: 0 !important; }
html body.pm-site .page-header .nt-hero-subtitle, html body.pm-site .page-header .hero__subtitle { display: none !important; }

/* ---------------------------------------------------------------- shop canvas */
html body.pm-site .nt-shop-page > .nt-theme-inner-container { background: var(--pm-surface-2); padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 104px) !important; }
html body.pm-site .nt-shop-page > .nt-theme-inner-container > .container { width: 100%; max-width: calc(var(--pm-max) + 2 * var(--pm-gutter)); padding-inline: calc(var(--pm-gutter) - 15px); }

/* ---------------------------------------------------------------- sidebar: one white panel, widgets split by hairlines */
@media (min-width: 992px) {
	html body.pm-site.archive .nt-shop-page .col-lg-3 { padding-right: clamp(15px, 2.5vw, 40px) !important; }
}
html body.pm-site .nt-shop-page .nt-sidebar-inner-widget {
	margin: 0 0 -1px !important; padding: 24px !important;
	background: #fff; border: 1px solid var(--pm-line) !important;
}
html body.pm-site .nt-shop-page .nt-sidebar-inner-widget-title.widget-title { margin: 0 0 16px !important; font-size: .75rem !important; display: block; }
html body.pm-site .nt-shop-page .nt-sidebar-inner-widget-title.widget-title::before { content: none !important; }

html body.pm-site .nt-shop-page .sidebar_search { border: 1px solid var(--pm-line); transition: border-color var(--pm-hover); }
html body.pm-site .nt-shop-page .sidebar_search:hover, html body.pm-site .nt-shop-page .sidebar_search:focus-within { border-color: var(--pm-ink); }
html body.pm-site .nt-shop-page .sidebar_search_input { height: 46px !important; border: 0 !important; font-size: .9375rem !important; }
html body.pm-site .nt-shop-page .sidebar_search_button {
	width: 46px !important; height: 46px !important; min-width: 0 !important; padding: 0 !important;
	background: none !important; border: 0 !important; color: var(--pm-ink) !important;
	transition: color var(--pm-hover) !important;
}
html body.pm-site .nt-shop-page .sidebar_search_button:hover { background: none !important; color: var(--pm-brand) !important; }

html body.pm-site .nt-shop-page .widget_price_filter .price_slider { margin: 14px 8px 22px !important; }
html body.pm-site .nt-shop-page .widget_price_filter .price_slider_amount .price_label { font-weight: 600 !important; }
/* "Filtrēt" is a quiet text action, not a second boxed button next to the slider */
html body.pm-site .nt-shop-page .price_slider_amount .button {
	min-height: 0 !important; height: auto !important; padding: 0 0 4px !important;
	background: none !important; border: 0 !important; border-bottom: 2px solid currentColor !important;
	font: 700 .75rem/1 var(--pm-font-display) !important; letter-spacing: .12em !important; text-transform: uppercase !important;
	color: var(--pm-brand) !important;
	transition: color var(--pm-hover) !important;
}
html body.pm-site .nt-shop-page .price_slider_amount .button:hover { background: none !important; color: var(--pm-ink) !important; }

html body.pm-site .nt-shop-page .widget_product_categories ul.product-categories { margin: 0 -24px -12px !important; padding: 0 !important; border-top: 0; }
html body.pm-site .nt-shop-page .widget_product_categories li { border-bottom: 0 !important; }
html body.pm-site .nt-shop-page .widget_product_categories li > a {
	padding: 10px 24px !important;
	border-left: 2px solid transparent;
	color: var(--pm-text) !important;
	transition: color var(--pm-hover), border-color var(--pm-hover), background-color var(--pm-hover) !important;
}
html body.pm-site .nt-shop-page .widget_product_categories li > a::after { content: none !important; }
html body.pm-site .nt-shop-page .widget_product_categories li > a:hover { padding-left: 24px !important; color: var(--pm-brand) !important; }
html body.pm-site .nt-shop-page .widget_product_categories li.current-cat > a { border-left-color: var(--pm-brand); background: var(--pm-surface-2); color: var(--pm-ink) !important; }
html body.pm-site .nt-shop-page .widget_product_categories li .count { padding-right: 24px; }

/* ---------------------------------------------------------------- toolbar */
html body.pm-site .nt-shop-page .woocommerce-result-count { line-height: 44px !important; font-size: .9375rem !important; }
html body.pm-site .nt-shop-page .woocommerce-ordering select { height: 44px; }
html body.pm-site .nt-shop-page .pmg-view-toggle { background: #fff; }
html body.pm-site .nt-shop-page .pmg-view-toggle button { width: 44px; height: 44px; }

/* ---------------------------------------------------------------- product card (grid view): white tile, hairline frame, photo flush to the edges */
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products {
	display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(12px, 1.6vw, 24px);
	margin: 0 !important; padding: 0 !important; clear: both;
}
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products::before,
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products::after { content: none !important; display: none !important; }
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product {
	float: none !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
	background: #fff; border: 1px solid var(--pm-line);
	transition: border-color var(--pm-hover), box-shadow var(--pm-hover);
}
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product:hover { border-color: var(--pm-ink); box-shadow: 0 18px 40px -24px rgb(14 19 20 / .45); }
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product .product-content-wrap { display: flex; flex-direction: column; height: 100%; container-type: normal; }
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product a.woocommerce-loop-product__link { display: flex; flex-direction: column; flex: 1 1 auto; }
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product .pm-thumb { margin: 0; }
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product .woocommerce-loop-product__title { margin: 0 !important; padding: 20px 20px 20px !important; }
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product .rmv-loop-category { margin: 0; padding: 18px 20px 0; }
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product .rmv-loop-category + .woocommerce-loop-product__title { padding-top: 6px !important; }
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product .price {
	display: block; margin: auto 20px 0 !important; padding: 16px 0 0 !important;
	border-top: 1px solid var(--pm-line);
	font: 800 1.25rem/1 var(--pm-font-display) !important; color: var(--pm-ink) !important;
}
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product .pmg-loop-excerpt { display: none; }
/* the button: always visible, secondary (outline) style so five tiles are not five teal bars */
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product .product-content-wrap > a.button {
	position: relative !important; top: auto !important; left: auto !important; right: auto !important;
	opacity: 1 !important; transform: none !important;
	width: auto !important; margin: 14px 20px 20px !important;
	height: 44px !important; min-height: 44px !important; max-height: 44px !important;
	background: linear-gradient(var(--pm-ink), var(--pm-ink)) top / 100% 0% no-repeat, transparent !important;
	border-color: var(--pm-ink) !important; color: var(--pm-ink) !important;
	transition: background-size var(--pm-fill), color var(--pm-fill), border-color var(--pm-fill) !important;
}
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product .product-content-wrap > a.button:hover,
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product .product-content-wrap > a.button.loading,
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product .product-content-wrap > a.button.pm-just-added {
	background-size: 100% 100%, auto !important; color: #fff !important;
}
/* CTA band spans the grid */
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.pmg-shop-cta { grid-column: 1 / -1; width: auto !important; margin: clamp(12px, 1.5vw, 16px) 0 0 !important; }
html body.pm-site .nt-shop-page ul.products li.pmg-shop-cta { border-left: 4px solid var(--pm-brand) !important; background: var(--pm-ink) !important; }
html body.pm-site .pmg-shop-cta__title { font: 700 clamp(1.3rem, 1rem + 1vw, 1.75rem)/1.2 var(--pm-font-display) !important; }
html body.pm-site .pmg-shop-cta__eyebrow { color: var(--pm-brand-hi) !important; }
html body.pm-site .pmg-shop-cta__text { font-size: 1rem !important; color: var(--pm-muted-d) !important; }

@media (max-width: 1100px) {
	html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	html body.pm-site .nt-shop-page .col-lg-3 { margin-bottom: 28px; }
}
@media (max-width: 520px) {
	html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- one gutter everywhere: no Bootstrap row/column offsets in the hero and the shop */
html body.pm-site .page-header .container,
html body.pm-site .nt-shop-page > .nt-theme-inner-container > .container { padding-inline: var(--pm-gutter) !important; }
html body.pm-site .page-header .container > .row,
html body.pm-site .nt-shop-page > .nt-theme-inner-container > .container > .row { margin-inline: 0 !important; }
html body.pm-site .page-header .container > .row > [class*="col-"] { padding-inline: 0 !important; }
html body.pm-site .nt-shop-page > .nt-theme-inner-container > .container > .row > [class*="col-"] { padding-left: 0 !important; }
html body.pm-site .nt-shop-page > .nt-theme-inner-container > .container > .row > .col-lg-9,
html body.pm-site .nt-shop-page > .nt-theme-inner-container > .container > .row > .col-lg-12 { padding-right: 0 !important; }
@media (max-width: 991px) {
	html body.pm-site .nt-shop-page > .nt-theme-inner-container > .container > .row > [class*="col-"] { padding-right: 0 !important; }
}
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product .product-content-wrap { padding: 0 !important; }
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product .price .amount,
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product .price ins .amount { color: var(--pm-ink) !important; }

/* ---------------------------------------------------------------- list view: the module's own layout, on the same white tiles */
html.pmg-view-list body.pm-site .nt-shop-page ul.products li.product {
	background: #fff !important; border: 1px solid var(--pm-line) !important; margin: 0 0 -1px !important; padding: 20px 24px 20px 20px !important;
	transition: border-color var(--pm-hover);
}
html.pmg-view-list body.pm-site .nt-shop-page ul.products li.product:hover { border-color: var(--pm-ink) !important; position: relative; z-index: 1; }
html.pmg-view-list body.pm-site .nt-shop-page ul.products li.product .product-content-wrap { padding: 0 !important; }
html.pmg-view-list body.pm-site .nt-shop-page ul.products li.product .pm-thumb { grid-column: 1; grid-row: 1 / -1; margin: 0 !important; }
html.pmg-view-list body.pm-site .nt-shop-page ul.products li.product .price { font: 800 1.25rem/1 var(--pm-font-display) !important; }
html.pmg-view-list body.pm-site .nt-shop-page ul.products li.product .price .amount { color: var(--pm-ink) !important; }
html.pmg-view-list body.pm-site .nt-shop-page ul.products li.product .product-content-wrap > a.button {
	height: 44px !important; min-height: 44px !important;
	background: linear-gradient(var(--pm-ink), var(--pm-ink)) top / 100% 0% no-repeat, transparent !important;
	border-color: var(--pm-ink) !important; color: var(--pm-ink) !important;
}
html.pmg-view-list body.pm-site .nt-shop-page ul.products li.product .product-content-wrap > a.button:hover,
html.pmg-view-list body.pm-site .nt-shop-page ul.products li.product .product-content-wrap > a.button.loading,
html.pmg-view-list body.pm-site .nt-shop-page ul.products li.product .product-content-wrap > a.button.pm-just-added { background-size: 100% 100%, auto !important; color: #fff !important; }
html.pmg-view-list body.pm-site .nt-shop-page ul.products li.pmg-shop-cta { margin-top: 24px !important; }

/* product tiles: no dark frame on hover */
html:not(.pmg-view-list) body.pm-site .nt-shop-page ul.products li.product:hover { border-color: var(--pm-line); box-shadow: none; }
html.pmg-view-list body.pm-site .nt-shop-page ul.products li.product:hover { border-color: var(--pm-line) !important; }

/* ---------------------------------------------------------------- v1.12: typing line under the shop title */
html body.pm-site .page-header .pm-typing {
	margin: calc(-1 * clamp(4px, .8vw, 12px)) 0 0; min-height: 1.6em;
	font: 400 clamp(1.02rem, .96rem + .3vw, 1.2rem)/1.6 var(--pm-font-body) !important;
	color: var(--pm-muted-d) !important; text-align: left;
}
.pm-typing__caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -.16em; background: var(--pm-brand-hi); animation: pm-caret 1s steps(1) infinite; }
@keyframes pm-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pm-typing__caret { display: none; } }

/* product page: price note, terms line, description + specification in one tab */
html body.pm-site.single-product .pm-price-note { margin: -12px 0 20px; font: 400 .8125rem/1.4 var(--pm-font-body); color: var(--pm-text-2); }
html body.pm-site.single-product .pm-terms-note { margin: 14px 0 0; font: 400 .875rem/1.5 var(--pm-font-body); color: var(--pm-text-2); }
html body.pm-site.single-product .pm-terms-note a { color: var(--pm-ink); text-decoration: underline; text-underline-offset: 3px; transition: color var(--pm-hover); }
html body.pm-site.single-product .pm-terms-note a:hover { color: var(--pm-brand); }
html body.pm-site.single-product div.product .woocommerce-tabs .panel { max-width: none; }
.pm-ptab { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pm-ptab > :only-child { grid-column: 1 / -1; max-width: 72ch; }
.pm-ptab__text > * + * { margin-top: 1em; }
.pm-ptab__title { margin: 0 0 14px; font: 700 .8125rem/1.2 var(--pm-font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--pm-ink); }
html body.pm-site .pm-ptab table.shop_attributes { width: 100%; margin: 0; border: 0; border-top: 2px solid var(--pm-ink); border-collapse: collapse; }
html body.pm-site .pm-ptab table.shop_attributes th, html body.pm-site .pm-ptab table.shop_attributes td {
	padding: 12px 0 !important; border: 0 !important; border-bottom: 1px solid var(--pm-line) !important; background: none !important;
	font: 400 .9375rem/1.5 var(--pm-font-body) !important; font-style: normal !important; text-align: left; vertical-align: top;
}
html body.pm-site .pm-ptab table.shop_attributes th { width: 42%; padding-right: 16px !important; font-weight: 600 !important; color: var(--pm-ink); text-transform: none; }
html body.pm-site .pm-ptab table.shop_attributes td { color: var(--pm-text-2); }
html body.pm-site .pm-ptab table.shop_attributes td p { margin: 0; padding: 0; }
@media (max-width: 860px) { .pm-ptab { grid-template-columns: 1fr; } }
