/* Studio v0.5.10. V2 SEO editorial, accessible brand directory and cart content.
   Does not change WooCommerce pricing, cart state, tax or payment calculations. */
.pms-brand-directory-page{padding:34px 0 90px;background:#f8f5ee}
.pms-brand-directory{max-width:1260px;margin:0 auto}
.pms-brand-directory>h1{margin:0 0 16px;color:#24443C;font-size:clamp(32px,3.4vw,49px);line-height:1.18;letter-spacing:-.035em}
.pms-brand-directory-lead{max-width:840px;color:#4f6057;font-size:clamp(15px,1.2vw,18px);line-height:1.76;margin:0 0 34px}
.pms-brand-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.pms-brand-directory-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #dedfd6;border-radius:13px;overflow:hidden;box-shadow:0 8px 25px rgba(36,68,60,.05)}
.pms-brand-directory-logo{height:132px;padding:19px;display:flex;justify-content:center;align-items:center;background:#f7f6ef;text-decoration:none}
.pms-brand-directory-logo img{max-width:90%;max-height:100%;width:auto;height:auto;object-fit:contain}
.pms-brand-directory-logo span{font-size:clamp(20px,2vw,27px);font-weight:780;letter-spacing:-.02em;color:#24443C;text-align:center}
.pms-brand-directory-info{display:flex;flex:1;flex-direction:column;gap:10px;padding:21px}
.pms-brand-directory-info h2{margin:0;font-size:20px;font-weight:720;color:#24443C;line-height:1.3}
.pms-brand-directory-info h2 a{text-decoration:none}
.pms-brand-directory-info p{font-size:14px;line-height:1.68;color:#526259;margin:0 0 6px;flex:1}
.pms-brand-directory-cta{font-size:13px;font-weight:750;color:#24443C;align-self:flex-start;text-underline-offset:5px}
.pms-brand-directory-note{font-size:13px;line-height:1.7;color:#617067;margin:30px 0 0;max-width:950px}
.pms-seo-archive-intro,.pms-seo-brand-filter-context{border:1px solid #e2e2d7;background:#fff;border-radius:11px;padding:19px 22px;margin:6px 0 25px;max-width:100%;box-shadow:0 4px 15px rgba(36,68,60,.035)}
.pms-seo-archive-intro .pms-seo-overline{margin:0 0 7px;font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:750;color:#9b623e}
.pms-seo-archive-intro p:last-child{font-size:15px;line-height:1.8;color:#3f5548;margin:0;max-width:93ch}
.pms-seo-brand-filter-context{border-left:3px solid #c4622e;background:#f7f8f3}
.pms-seo-brand-filter-context h2{margin:0 0 7px;font-size:20px;color:#24443C}
.pms-seo-brand-filter-context p{margin:0 0 9px;font-size:14px;line-height:1.7;color:#4d6155}
.pms-seo-brand-filter-context a{font-size:13px;color:#24443C;font-weight:700}
.pms-seo-archive-more{max-width:980px;margin:40px 0 55px;padding:28px 30px;background:#fff;border:1px solid #e4e4da;border-radius:12px}
.pms-seo-archive-more h2{font-size:clamp(21px,2vw,28px);line-height:1.3;margin:0 0 16px;color:#24443C}
.pms-seo-archive-more p{font-size:15px;line-height:1.8;color:#46594e;margin:0 0 14px}
.pms-seo-archive-more .pms-seo-source{font-size:12px;margin:15px 0 0;color:#6b786f}
.pms-seo-source a{color:#24443C;text-underline-offset:3px}
.pms-brand-filter-list{list-style:none;padding:0!important;margin:0!important;max-height:300px;overflow-y:auto}
.pms-brand-filter-list li{margin:2px 0!important}
.pms-brand-filter-list a{display:block;padding:7px 9px;border-radius:6px;text-decoration:none!important;line-height:1.3;color:#24443C}
.pms-brand-filter-list a:hover,.pms-brand-filter-list a.is-selected{background:#eaf0e9;font-weight:750}
.pms-reset-brand{font-size:12px;display:inline-block;margin-top:12px;text-underline-offset:3px}
/* Storefront-verified native Woo markup: Woo places the `woocommerce` class on
   BODY on product archives (not necessarily on a child DIV). The v0.5.9 rule
   missed this and min-height:0 cancelled the card-name reserve. Support both
   Woo body layouts and nested Woo grids without altering price HTML. */
body.woocommerce ul.products li.product > a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link),
body.woocommerce-page ul.products li.product > a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link),
body .woocommerce ul.products li.product > a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link){
 display:flex!important;flex-direction:column!important;flex:1 1 auto!important;
 align-items:stretch!important;width:100%!important;min-width:0!important;
}
/* Price begins in an equal-height slot even for sale+tax wrap, so that
   `sis. KM` never pulls only one card's price further down. The button
   remains outside the product link and is not repositioned. */
body.woocommerce ul.products li.product .price,
body.woocommerce-page ul.products li.product .price,
body .woocommerce ul.products li.product .price{
 margin-top:auto!important;min-height:70px!important;
 display:flex!important;flex-flow:row wrap!important;align-content:flex-start!important;
 justify-content:flex-start!important;align-items:baseline!important;
 column-gap:7px!important;row-gap:2px!important;
}
/* Correct the visual-system and catalog-st29 min-height:0 overrides.
   There is no forced line clamp: full names remain readable. */
body.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
body .woocommerce ul.products li.product .woocommerce-loop-product__title{
 min-height:calc(1.5em * 3)!important;
}
/* The tax suffix is informative, never an orphaned fragment. */
body.woocommerce ul.products li.product .price .woocommerce-price-suffix,
body.woocommerce-page ul.products li.product .price .woocommerce-price-suffix,
body .woocommerce ul.products li.product .price .woocommerce-price-suffix{
 white-space:nowrap!important;
}
@media (max-width:620px){
 body.woocommerce ul.products li.product .woocommerce-loop-product__title,
 body.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
 body .woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:calc(1.5em * 4)!important}
 body.woocommerce ul.products li.product .price,
 body.woocommerce-page ul.products li.product .price,
 body .woocommerce ul.products li.product .price{min-height:88px!important}
}

/* The older Studio shop CSS uses a more-specific selector when Woo has a
   nested wrapper. Keep price anchoring authoritative in BOTH markup forms. */
body .pms-shop-page .pms-woo-content ul.products li.product .price,
body .pms-shop-page .woocommerce ul.products li.product .price,
body .pms-soft-section .woocommerce ul.products li.product .price,
body .pms-selection-results .woocommerce ul.products li.product .price,
body.woocommerce .pms-shop-page ul.products li.product .price{
 margin-top:auto!important;min-height:70px!important;
 display:flex!important;flex-flow:row wrap!important;
 align-content:flex-start!important;align-items:baseline!important;
 column-gap:7px!important;row-gap:2px!important;
}
body .pms-shop-page .pms-woo-content ul.products li.product .woocommerce-loop-product__title,
body .pms-shop-page .woocommerce ul.products li.product .woocommerce-loop-product__title,
body .pms-soft-section .woocommerce ul.products li.product .woocommerce-loop-product__title,
body .pms-selection-results .woocommerce ul.products li.product .woocommerce-loop-product__title{
 min-height:calc(1.5em * 3)!important;
}
@media(max-width:620px){
 body .pms-shop-page .pms-woo-content ul.products li.product .price,
 body .pms-shop-page .woocommerce ul.products li.product .price,
 body .pms-soft-section .woocommerce ul.products li.product .price,
 body .pms-selection-results .woocommerce ul.products li.product .price{min-height:88px!important}
 body .pms-shop-page .pms-woo-content ul.products li.product .woocommerce-loop-product__title,
 body .pms-shop-page .woocommerce ul.products li.product .woocommerce-loop-product__title,
 body .pms-soft-section .woocommerce ul.products li.product .woocommerce-loop-product__title,
 body .pms-selection-results .woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:calc(1.5em * 4)!important}
}
/* General accessory selection is browse content, never a compatibility claim. */
body.woocommerce-cart .pms-cart-recommendations-grid{
 display:grid!important;grid-auto-flow:column!important;grid-template-columns:none!important;
 grid-auto-columns:minmax(178px,212px)!important;gap:13px;
 overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;
 padding:5px 3px 17px;scrollbar-width:thin;scrollbar-color:#9caf9e #edf1ec
}
body.woocommerce-cart .pms-cart-recommendations-grid>*{scroll-snap-align:start}
body.woocommerce-cart .pms-cart-rec-card{min-width:0}
body.woocommerce-cart .pms-cart-rec-body h3{font-size:13px}
body.woocommerce-cart .pms-cart-rec-all{margin:13px 0 0;text-align:right}
body.woocommerce-cart .pms-cart-rec-all a{color:#24443C;text-decoration:underline;text-underline-offset:4px;font-size:13px;font-weight:700}
body.woocommerce-cart .pms-cart-continue-shopping{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:22px 0 0;padding:21px 24px;background:#f5f6f0;border:1px solid #e0e3d9;border-radius:12px}
body.woocommerce-cart .pms-cart-continue-shopping h2{font-size:18px;line-height:1.3;color:#24443C;font-weight:750;margin:0 0 4px}
body.woocommerce-cart .pms-cart-continue-shopping p{margin:0;color:#58675d;font-size:13px}
body.woocommerce-cart .pms-cart-continue-shopping>a{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #24443C;color:#24443C;padding:10px 16px;border-radius:7px;font-weight:700;font-size:13px;text-decoration:none;white-space:nowrap}
body.woocommerce-cart .pms-cart-continue-shopping>a:hover{background:#24443C;color:white}
@media(min-width:861px) and (max-width:1120px){
 .pms-header .pms-header-inner{gap:12px}
 .pms-header .pms-logo{width:185px}
 .pms-header .pms-nav-list,.pms-header .pms-nav .menu{gap:10px}
 .pms-header .pms-nav-list a,.pms-header .pms-nav .menu a{font-size:12px}
 .pms-header .pms-actions{gap:5px}
}
@media(max-width:900px){
 .pms-brand-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
 .pms-brand-directory-page{padding:24px 0 60px}
 .pms-brand-directory-grid{grid-template-columns:1fr;gap:12px}
 .pms-brand-directory-card{display:grid;grid-template-columns:100px minmax(0,1fr)}
 .pms-brand-directory-logo{height:100%;min-height:137px;padding:12px}
 .pms-brand-directory-logo span{font-size:16px;overflow-wrap:anywhere}
 .pms-brand-directory-info{padding:13px 15px}
 .pms-brand-directory-info h2{font-size:17px}
 .pms-brand-directory-info p{font-size:12px;line-height:1.55}
 .pms-brand-directory-lead{margin-bottom:22px}
 .pms-seo-archive-intro,.pms-seo-brand-filter-context{padding:16px;margin-bottom:20px}
 .pms-seo-archive-intro p:last-child{font-size:13px}
 .pms-seo-archive-more{padding:20px 18px;margin:25px 0 45px}
 body.woocommerce-cart .pms-cart-recommendations-grid{grid-auto-columns:minmax(165px,69vw)!important;gap:10px}
 body.woocommerce-cart .pms-cart-continue-shopping{display:block;padding:17px}
 body.woocommerce-cart .pms-cart-continue-shopping>a{margin-top:13px}
}

/* Short, visible route from the home-page brand showcase to the full directory. */
.pms-brand-strip .pms-brand-all-link{font-size:13px;font-weight:750;color:#24443C;text-decoration:underline;text-underline-offset:5px;white-space:nowrap}
.pms-brand-strip .pms-brand-all-link:hover{color:#C4622E}
@media(max-width:620px){.pms-brand-strip .pms-title-row{align-items:flex-start;gap:11px;flex-wrap:wrap}.pms-brand-strip .pms-brand-all-link{font-size:12px}}

/* v0.5.11: use the existing category mega-panel interaction, brand cards are
   canonical product_brand archives. Scope only to the new brand navigation. */
@media(min-width:861px){
 .pms-mega-panel--brands{grid-template-columns:minmax(230px,.78fr) minmax(0,2.7fr);max-width:1140px;gap:32px}
 .pms-mega-panel--brands .pms-mega-brand-links{min-width:0}
 .pms-mega-panel--brands .pms-mega-brand-links ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px;row-gap:10px}
 .pms-mega-panel--brands .pms-mega-brand-links li{min-width:0}
 .pms-mega-panel--brands .pms-mega-brand-links li a{display:inline-block;padding:4px 0;max-width:100%;overflow-wrap:anywhere}
}
@media(max-width:1100px) and (min-width:861px){
 .pms-mega-panel--brands{grid-template-columns:minmax(210px,.74fr) minmax(0,2.6fr);gap:23px;padding-inline:23px}
 .pms-mega-panel--brands .pms-mega-brand-links ul{column-gap:13px}
}
@media(max-width:860px){
 .pms-mobile-brand-directory .pms-mobile-brands-list{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 13px;padding:0;margin:5px 0 12px}
 .pms-mobile-brand-directory .pms-mobile-brands-list a{display:block;padding:7px 5px;font-size:14px;min-height:36px;overflow-wrap:anywhere}
 .pms-mobile-brand-directory .pms-mobile-brand-all{display:block;padding:12px 4px;font-size:13px;color:#24443C;font-weight:750;text-decoration:underline;text-underline-offset:4px}
}


/* Empty cart: reuse precisely the existing "Täienda oma ostukorvi" horizontal
   accessory carousel instead of Woo's four-column New in Store default.
   This applies ONLY after the dynamic carousel has successfully rendered;
   native Woo Cart content remains intact if JS, API or the product pool fails. */
body.woocommerce-cart.pms-empty-cart-carousel .wp-block-woocommerce-empty-cart-block {
  padding: clamp(23px,3vw,35px) clamp(18px,3vw,36px) 17px;
  margin-bottom: 0;
}
body.woocommerce-cart.pms-empty-cart-carousel .wp-block-woocommerce-empty-cart-block > :not(.wc-block-cart__empty-cart__title) {
  display:none!important;
}
body.woocommerce-cart.pms-empty-cart-carousel .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
  margin:0!important;
  font-size:clamp(22px,2.4vw,29px)!important;
  line-height:1.4;
  color:#24443C;
}
body.woocommerce-cart.pms-empty-cart-carousel .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title:before {
  display:none!important;
}
body.woocommerce-cart.pms-empty-cart-carousel .pms-cart-recommendations-mount {
  margin-top:0;
}
body.woocommerce-cart .pms-cart-recommendations .pms-cart-rec-card .pms-cart-rec-cta,
body.woocommerce-cart .pms-cart-recommendations .pms-cart-rec-card a.pms-cart-rec-cta.button {
  display:flex!important;
  justify-content:center;
  align-items:center;
  background:#24443C!important;
  color:#FFFFFF!important;
  opacity:1!important;
  -webkit-text-fill-color:#FFFFFF;
  text-shadow:none!important;
  font-weight:750!important;
  white-space:normal;
  text-align:center;
}
body.woocommerce-cart .pms-cart-recommendations .pms-cart-rec-card .pms-cart-rec-cta:hover,
body.woocommerce-cart .pms-cart-recommendations .pms-cart-rec-card a.pms-cart-rec-cta.button:hover {
  background:#1b332d!important;
  color:#FFFFFF!important;
}


/* Pannimaailm Woo Checkout Block: truthful, readable full cart-item short descriptions. */
body.woocommerce-checkout .wc-block-components-order-summary-item{
  display:grid!important;grid-template-columns:clamp(58px,6vw,76px) minmax(0,1fr) auto;
  align-items:start;column-gap:clamp(12px,1.6vw,20px);row-gap:8px;min-width:0;
}
body.woocommerce-checkout .wc-block-components-order-summary-item__image{grid-column:1;min-width:0;width:100%!important}
body.woocommerce-checkout .wc-block-components-order-summary-item__image img{
  display:block;width:100%!important;height:auto;aspect-ratio:1;object-fit:contain;
}
body.woocommerce-checkout .wc-block-components-order-summary-item__description{
  grid-column:2;min-width:0!important;width:auto!important;overflow:visible!important;
  overflow-wrap:anywhere;white-space:normal!important;
}
body.woocommerce-checkout .wc-block-components-order-summary-item__description :is(.wc-block-components-product-name,a.wc-block-components-product-name){
  display:block;line-height:1.42!important;white-space:normal!important;overflow-wrap:anywhere;
}
body.woocommerce-checkout .wc-block-components-order-summary-item__total-price{grid-column:3;min-width:max-content;white-space:nowrap;text-align:right}
body.woocommerce-checkout .wc-block-components-order-summary-item__description .pms-checkout-item-excerpt{
  display:block!important;position:static!important;margin:8px 0!important;padding:0!important;
  max-width:none!important;max-height:none!important;overflow:visible!important;
  font:400 13px/1.55 Manrope,system-ui,sans-serif!important;color:#53675c!important;
  white-space:normal!important;overflow-wrap:anywhere;
}
body.woocommerce-checkout .wc-block-components-order-summary-item.pms-has-summary-excerpt
.wc-block-components-product-metadata__description[hidden]{display:none!important}
body.woocommerce-checkout .wc-block-components-order-summary-item__description .pms-inline-qty-editor{
  margin-top:12px!important;
}
@media(max-width:640px){
  body.woocommerce-checkout .wc-block-components-order-summary-item{
    grid-template-columns:54px minmax(0,1fr);gap:8px 11px;
  }
  body.woocommerce-checkout .wc-block-components-order-summary-item__total-price{
    grid-column:2!important;grid-row:2!important;justify-self:start;text-align:left;
  }
  body.woocommerce-checkout .wc-block-components-order-summary-item__description .pms-checkout-item-excerpt{font-size:12px!important;line-height:1.5!important}
}
/* Native Woo snackbar announcements must not sit behind the consented chat launcher. */
body.woocommerce-cart :is(.components-snackbar-list,.wc-block-components-snackbar-list),
body.woocommerce-checkout :is(.components-snackbar-list,.wc-block-components-snackbar-list){
  position:fixed!important;left:16px!important;right:auto!important;
  top:auto!important;bottom:150px!important;
  z-index:2147483200!important;
  width:min(430px,calc(100vw - 32px))!important;
  max-width:calc(100vw - 32px)!important;
}
@media(max-width:860px){
 body.woocommerce-cart :is(.components-snackbar-list,.wc-block-components-snackbar-list),
 body.woocommerce-checkout :is(.components-snackbar-list,.wc-block-components-snackbar-list){
   bottom:auto!important;top:calc(78px + env(safe-area-inset-top,0px))!important;
   left:12px!important;right:12px!important;margin:0 auto!important;
   width:calc(100vw - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))!important;
   max-width:440px!important;
 }
}

/* Out-of-stock catalogue cards only: distinct, still-actionable product link. */
body.woocommerce ul.products li.product.outofstock a.button:not(.pms-cart-rec-cta),
body.woocommerce-page ul.products li.product.outofstock a.button:not(.pms-cart-rec-cta),
.pms-shop-page .pms-woo-content ul.products li.product.outofstock a.button:not(.pms-cart-rec-cta),
.pms-selection-results ul.products li.product.outofstock a.button:not(.pms-cart-rec-cta) {
  background:#E3E7E4!important;
  color:#3B4B42!important;
  border:1px solid #B9C4BB!important;
  box-shadow:none!important;
  -webkit-text-fill-color:#3B4B42!important;
}
body.woocommerce ul.products li.product.outofstock a.button:not(.pms-cart-rec-cta):is(:hover,:focus-visible),
body.woocommerce-page ul.products li.product.outofstock a.button:not(.pms-cart-rec-cta):is(:hover,:focus-visible),
.pms-shop-page .pms-woo-content ul.products li.product.outofstock a.button:not(.pms-cart-rec-cta):is(:hover,:focus-visible),
.pms-selection-results ul.products li.product.outofstock a.button:not(.pms-cart-rec-cta):is(:hover,:focus-visible) {
  background:#D2DAD3!important;
  color:#24443C!important;
  border-color:#93A698!important;
}

.pms-shop-sidebar .pms-brand-canonical-filter{margin:4px 0 22px;border:1px solid #d7e0d7;border-radius:10px;background:#f5f8f4;padding:0 13px}
.pms-shop-sidebar .pms-brand-canonical-filter>summary{font-size:15px;padding:15px 0}


/* After v0.5.25: every populated Woo brand in the header menu; compact
   optional Woo logos, readable labels, and bounded scrolling on desktops. */
@media (min-width:861px) {
 .pms-mega-panel--brands .pms-mega-brand-links ul {
  max-height:min(440px,58vh);overflow-y:auto;overscroll-behavior:contain;
  align-content:start;align-items:start;row-gap:5px;column-gap:13px;
  padding:2px 8px 4px 0!important;
 }
 .pms-mega-panel--brands .pms-mega-brand-links li a {
  display:flex;align-items:center;gap:8px;min-height:38px;
  width:100%;padding:4px 6px;border-radius:7px;
  text-decoration:none;line-height:1.3;font-size:13px;
 }
 .pms-mega-panel--brands .pms-mega-brand-links li a:is(:hover,:focus-visible){background:#f4f6f1}
}
.pms-nav-brand-logo{display:inline-flex;flex:0 0 43px;width:43px;height:26px;
 align-items:center;justify-content:center;overflow:hidden}
.pms-nav-brand-logo img,.pms-nav-brand-image{display:block;max-width:100%;max-height:100%;
 width:auto!important;height:auto!important;object-fit:contain}
.pms-nav-brand-name{min-width:0;overflow-wrap:anywhere}
@media (max-width:860px){
 .pms-mobile-brand-directory .pms-mobile-brands-list li a{display:flex;align-items:center;gap:8px;min-height:42px}
 .pms-mobile-brand-directory .pms-nav-brand-logo{flex-basis:38px;width:38px;height:24px}
}
@media (max-width:420px){
 .pms-mobile-brand-directory .pms-mobile-brands-list{grid-template-columns:minmax(0,1fr)}
}

/* PM-BRAND-DIRECTORY: every populated brand uses one equal-size card, with or
   without researched editorial copy; all cards link to real Woo brand archives. */
.pms-brand-directory-grid {align-items:stretch}
.pms-brand-directory-card {height:350px;min-height:0}
.pms-brand-directory-card .pms-brand-directory-logo {flex:0 0 132px;height:132px}
.pms-brand-directory-card .pms-brand-directory-info {min-height:0;overflow:hidden}
.pms-brand-directory-card .pms-brand-directory-info p {
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
  line-clamp:3;overflow:hidden;flex:0 1 auto;
}
.pms-brand-directory-card .pms-brand-directory-cta {margin-top:auto}
@media(max-width:620px) {
 .pms-brand-directory-card {height:210px}
 .pms-brand-directory-card .pms-brand-directory-logo {height:100%;min-height:0;flex:none}
 .pms-brand-directory-card .pms-brand-directory-info {min-height:0}
 .pms-brand-directory-card .pms-brand-directory-info p {-webkit-line-clamp:2;line-clamp:2}
}
