/* MamaPoSwojemu – Naprawy sklepu 1.0.8 */

.mps-fix-category-chips{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  clear:both;
  margin:18px 0 28px;
  padding:14px 16px;
  border:1px solid rgba(91,51,74,.14);
  border-radius:16px;
  background:#fff;
}
.mps-fix-category-chips__label{font-weight:700;color:#5b334a;margin-right:2px}
.mps-fix-category-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:40px;
  padding:8px 13px;
  border:1px solid rgba(91,51,74,.16);
  border-radius:999px;
  background:#fffaf7;
  color:#4b2b3d;
  text-decoration:none;
  font-weight:650;
  line-height:1.2;
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.mps-fix-category-chip span{font-size:.82em;opacity:.68}
.mps-fix-category-chip:hover{transform:translateY(-1px);border-color:#cf155b;box-shadow:0 5px 14px rgba(91,51,74,.09)}
.mps-fix-category-chip:focus-visible{outline:3px solid rgba(207,21,91,.28);outline-offset:2px}

.woocommerce ul.products{
  align-items:stretch;
}
.woocommerce ul.products li.product{
  display:flex;
  flex-direction:column;
  height:100%;
}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  min-height:3.25em;
}
.woocommerce ul.products li.product .price{
  margin-top:auto;
}
.woocommerce ul.products li.product .button{
  width:100%;
  text-align:center;
  box-sizing:border-box;
  margin-top:12px;
}
.woocommerce ul.products li.product .mps-wishlist-button{
  width:100%;
  margin-top:8px;
}

.mps-fix-fulfillment{
  margin:14px 0 16px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(91,51,74,.16);
  background:#fffaf7;
  color:#3f3038;
  line-height:1.45;
}
.mps-fix-fulfillment--presale{
  border-color:rgba(207,21,91,.28);
  background:#fff0ec;
  color:#4d283a;
}

.mps-category-card.mps-fix-empty-category{
  cursor:default;
  opacity:.72;
  position:relative;
}
.mps-category-card.mps-fix-empty-category::after{
  content:'Wkrótce';
  position:absolute;
  top:12px;
  right:12px;
  padding:5px 9px;
  border-radius:999px;
  background:#fff;
  color:#5b334a;
  font-size:12px;
  font-weight:700;
  box-shadow:0 3px 10px rgba(0,0,0,.08);
}
.mps-category-card.mps-fix-empty-category:hover{transform:none!important}

/* Dostępność / focus */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid rgba(207,21,91,.35)!important;
  outline-offset:2px!important;
}
.woocommerce-result-count,
.woocommerce-ordering label,
.woocommerce .woocommerce-breadcrumb{
  color:#5d5157;
}

/* Czytelniejsza paginacja na przyszłość */
.woocommerce nav.woocommerce-pagination ul{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  border:0;
  margin-top:28px;
}
.woocommerce nav.woocommerce-pagination ul li{border:0}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  display:grid;
  place-items:center;
  min-width:42px;
  height:42px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid rgba(91,51,74,.16);
  background:#fff;
  color:#4b2b3d;
  font-weight:700;
}
.woocommerce nav.woocommerce-pagination ul li span.current{
  background:#5b334a;
  color:#fff;
  border-color:#5b334a;
}

@media (max-width: 768px){
  .mps-fix-category-chips{margin:12px 0 20px;padding:12px;gap:8px}
  .mps-fix-category-chips__label{width:100%}
  .mps-fix-category-chip{min-height:42px;padding:9px 12px}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:0}
  .woocommerce .woocommerce-ordering,
  .woocommerce .woocommerce-result-count{float:none;width:100%;margin:0 0 12px}
  .woocommerce .woocommerce-ordering select{width:100%;min-height:44px}
}


/* v1.0.1 – spójny czas realizacji i prostsza karta produktu */
.mps-fix-unified-fulfillment.single-product .mps-fulfillment,
.mps-fix-unified-fulfillment.single-product .storehub-leadtime{
  display:none!important;
}
.mps-fix-simplify-meta.single-product .product_meta .tagged_as{
  display:none!important;
}
.mps-fix-loop-presale{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin:5px 0 8px;
  padding:5px 9px;
  border-radius:999px;
  background:#fff0ec;
  border:1px solid rgba(207,21,91,.22);
  color:#5b334a;
  font-size:12px;
  font-weight:700;
  line-height:1.25;
}

/* v1.0.2 – puste kategorie i uproszczone menu */
.mps-empty-category{
  max-width:820px;
  margin:28px auto 64px;
  padding:42px 32px;
  text-align:center;
  border:1px solid rgba(91,51,74,.14);
  border-radius:24px;
  background:linear-gradient(180deg,#fff 0%,#fffaf7 100%);
  box-shadow:0 12px 32px rgba(91,51,74,.06);
}
.mps-empty-category__icon{
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  margin:0 auto 16px;
  border-radius:50%;
  background:#fff0ec;
  color:#cf155b;
  font-size:28px;
  line-height:1;
}
.mps-empty-category__eyebrow{
  margin:0 0 8px;
  color:#8a6174;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
}
.mps-empty-category h2{
  margin:0 0 12px;
  color:#5b334a;
  font-family:Georgia,serif;
  font-size:clamp(28px,4vw,42px);
  line-height:1.12;
}
.mps-empty-category__lead{
  max-width:650px;
  margin:0 auto;
  color:#65575e;
  font-size:17px;
  line-height:1.65;
}
.mps-empty-category__actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  margin-top:24px;
}
.mps-empty-category__actions .mps-btn{
  min-width:190px;
  justify-content:center;
}
.mps-fix-shop-menu-item > a{font-weight:700}

@media (max-width:768px){
  .mps-empty-category{margin:20px 0 42px;padding:30px 18px;border-radius:18px}
  .mps-empty-category__actions{flex-direction:column}
  .mps-empty-category__actions .mps-btn{width:100%;box-sizing:border-box}
}


/* v1.0.3 – usuń stary sidebar WordPressa z części sklepowej */
body.mps-fix-hide-woo-sidebar #sidebar{
  display:none!important;
}
body.mps-fix-hide-woo-sidebar #primary{
  width:100%!important;
  float:none!important;
}


/* v1.0.4 – czytelniejsza nawigacja katalogu */
.primary-nav .mps-fix-shop-menu-item > a,
.mps-mobile-menu .mps-fix-shop-menu-item > a{font-weight:700}
@media (max-width:768px){
  .mps-fix-category-chips{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  .mps-fix-category-chips__label{width:auto;flex:0 0 auto}
  .mps-fix-category-chip{flex:0 0 auto;white-space:nowrap}
}

/* v1.0.8 – koszyk sprzedażowy / UX */
body.mps-fix-cart-ux .entry-content > .wp-block-woocommerce-cart{
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
}
body.mps-fix-cart-ux article > h1{
  max-width:1180px;
  margin:26px auto 22px;
  color:#5b334a;
  font-family:Georgia,serif;
  font-size:clamp(32px,4vw,48px);
  line-height:1.08;
}
body.mps-fix-cart-ux .wc-block-cart__main{
  padding-right:28px;
}
body.mps-fix-cart-ux .wc-block-cart-items{
  border:1px solid rgba(91,51,74,.12);
  border-radius:20px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(91,51,74,.045);
}
body.mps-fix-cart-ux .wc-block-cart-items__header{
  background:#fffaf7;
}
body.mps-fix-cart-ux .wc-block-cart-items__row{
  border-bottom:1px solid rgba(91,51,74,.10);
}
body.mps-fix-cart-ux .wc-block-cart-items__row:last-child{
  border-bottom:0;
}
body.mps-fix-cart-ux .wc-block-cart-item__image img{
  border-radius:14px;
}
body.mps-fix-cart-ux .wc-block-components-product-name{
  color:#4b2b3d;
  font-weight:750;
  line-height:1.3;
}
body.mps-fix-cart-ux .wc-block-components-quantity-selector{
  border-radius:12px!important;
  border-color:rgba(91,51,74,.18)!important;
  overflow:hidden;
}
body.mps-fix-cart-ux .wc-block-components-quantity-selector input,
body.mps-fix-cart-ux .wc-block-components-quantity-selector button{
  min-height:40px;
}
body.mps-fix-cart-ux .wc-block-cart-item__remove-link{
  color:#7c5b6b;
  text-decoration:underline;
  text-underline-offset:2px;
}
body.mps-fix-cart-ux .mps-cart-fulfillment{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin-top:8px;
  padding:6px 9px;
  border-radius:999px;
  border:1px solid rgba(91,51,74,.15);
  background:#fffaf7;
  color:#5b334a;
  font-size:12px;
  font-weight:700;
  line-height:1.25;
}
body.mps-fix-cart-ux .mps-cart-fulfillment--presale{
  border-color:rgba(207,21,91,.24);
  background:#fff0ec;
}
body.mps-fix-cart-ux .wc-block-cart__sidebar{
  align-self:flex-start;
  position:sticky;
  top:24px;
  padding:24px!important;
  border:1px solid rgba(91,51,74,.14);
  border-radius:22px;
  background:linear-gradient(180deg,#fff 0%,#fffaf7 100%);
  box-shadow:0 14px 34px rgba(91,51,74,.07);
}
body.mps-fix-cart-ux .wc-block-cart__totals-title{
  margin:0 0 14px!important;
  padding:0!important;
  color:#5b334a;
  font-family:Georgia,serif;
  font-size:25px!important;
  line-height:1.15;
}
body.mps-fix-cart-ux .wc-block-components-totals-wrapper{
  border-top-color:rgba(91,51,74,.10)!important;
}
body.mps-fix-cart-ux .wc-block-components-totals-item__label{
  color:#594a51;
}
body.mps-fix-cart-ux .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.mps-fix-cart-ux .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  color:#4b2b3d;
  font-weight:800;
}
body.mps-fix-cart-ux .mps-cart-free-shipping{
  margin:0 0 18px;
  padding:15px 16px;
  border:1px solid rgba(207,21,91,.16);
  border-radius:16px;
  background:#fff;
}
body.mps-fix-cart-ux .mps-cart-free-shipping__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
body.mps-fix-cart-ux .mps-cart-free-shipping__title{
  color:#5b334a;
  font-size:14px;
}
body.mps-fix-cart-ux .mps-cart-free-shipping__value{
  flex:0 0 auto;
  color:#7b6570;
  font-size:12px;
  font-weight:700;
}
body.mps-fix-cart-ux .mps-cart-free-shipping__track{
  height:9px;
  overflow:hidden;
  border-radius:999px;
  background:#f3e7ec;
}
body.mps-fix-cart-ux .mps-cart-free-shipping__bar{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#cf155b,#ff6b5f);
  transition:width .25s ease;
}
body.mps-fix-cart-ux .mps-cart-free-shipping__message{
  margin:9px 0 0;
  color:#6a5961;
  font-size:13px;
  line-height:1.4;
}
body.mps-fix-cart-ux .mps-cart-free-shipping.is-complete{
  border-color:rgba(64,130,88,.22);
  background:#f7fcf8;
}
body.mps-fix-cart-ux .mps-cart-free-shipping.is-complete .mps-cart-free-shipping__bar{
  background:#4f8a63;
}
body.mps-fix-cart-ux .mps-cart-shipping-note{
  margin:14px 0;
  padding:12px 13px;
  border-radius:14px;
  background:#fff0ec;
  color:#5b334a;
  font-size:13px;
  font-weight:650;
  line-height:1.45;
}
body.mps-fix-cart-ux .wc-block-cart__submit{
  margin-top:16px;
}
body.mps-fix-cart-ux .wc-block-cart__submit-button{
  min-height:54px!important;
  border-radius:14px!important;
  background:#5b334a!important;
  color:#fff!important;
  font-size:16px!important;
  font-weight:800!important;
  box-shadow:0 8px 20px rgba(91,51,74,.18);
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}
body.mps-fix-cart-ux .wc-block-cart__submit-button:hover{
  transform:translateY(-1px);
  background:#4b2b3d!important;
  box-shadow:0 10px 24px rgba(91,51,74,.23);
}
body.mps-fix-cart-ux .mps-cart-continue{
  display:block;
  margin:12px 0 0;
  padding:8px 4px;
  text-align:center;
  color:#6f5562;
  font-weight:700;
  text-decoration:none;
}
body.mps-fix-cart-ux .mps-cart-continue:hover{
  color:#cf155b;
  text-decoration:underline;
  text-underline-offset:3px;
}
body.mps-fix-cart-ux .mps-cart-trust{
  display:grid;
  gap:10px;
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid rgba(91,51,74,.10);
}
body.mps-fix-cart-ux .mps-cart-trust__item{
  display:grid;
  grid-template-columns:34px 1fr;
  align-items:center;
  gap:10px;
  color:#5b334a;
}
body.mps-fix-cart-ux .mps-cart-trust__item > span:first-child{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#fff0ec;
  color:#cf155b;
  font-size:13px;
  font-weight:900;
}
body.mps-fix-cart-ux .mps-cart-trust__item strong,
body.mps-fix-cart-ux .mps-cart-trust__item small{
  display:block;
}
body.mps-fix-cart-ux .mps-cart-trust__item strong{
  font-size:13px;
  line-height:1.25;
}
body.mps-fix-cart-ux .mps-cart-trust__item small{
  margin-top:2px;
  color:#7b6972;
  font-size:11px;
  line-height:1.3;
}
body.mps-fix-cart-ux .wc-block-components-totals-coupon .wc-block-components-panel__button{
  color:#6f5562;
  font-weight:650;
}

@media (max-width: 900px){
  body.mps-fix-cart-ux .wc-block-cart__main{
    padding-right:0;
  }
  body.mps-fix-cart-ux .wc-block-cart__sidebar{
    position:static;
    margin-top:18px;
  }
}

@media (max-width: 600px){
  body.mps-fix-cart-ux article > h1{
    margin:18px 0 16px;
    font-size:34px;
  }
  body.mps-fix-cart-ux .wc-block-cart-items{
    border-radius:16px;
  }
  body.mps-fix-cart-ux .wc-block-cart__sidebar{
    padding:18px!important;
    border-radius:18px;
  }
  body.mps-fix-cart-ux .mps-cart-free-shipping__top{
    display:block;
  }
  body.mps-fix-cart-ux .mps-cart-free-shipping__value{
    display:block;
    margin-top:3px;
  }
  body.mps-fix-cart-ux .wc-block-cart__submit-button{
    min-height:56px!important;
    width:100%!important;
  }
  body.mps-fix-cart-ux .mps-cart-fulfillment{
    white-space:normal;
  }
}

/* MPS SEO: krótki, widoczny opis sklepu */
.mps-seo-shop-intro {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid rgba(91, 51, 74, .12);
  border-radius: 16px;
  background: rgba(255, 250, 247, .72);
  color: #5b334a;
  line-height: 1.65;
}
.mps-seo-shop-intro p { margin: 0; }
@media (max-width: 767px) {
  .mps-seo-shop-intro { padding: 14px 15px; margin-bottom: 16px; font-size: .95rem; }
}


/* MPS SEO 1.0.10: rozbudowane, indywidualne treści kategorii pod produktami */
.mps-seo-category-long{
  max-width:1080px;
  margin:42px auto 12px;
  padding:30px 32px;
  border:1px solid rgba(91,51,74,.10);
  border-radius:20px;
  background:#fffaf7;
  color:#51434a;
  line-height:1.72;
}
.mps-seo-category-long h2{margin:0 0 14px;color:#5b334a;font-size:clamp(1.5rem,2.4vw,2rem);line-height:1.2;}
.mps-seo-category-long h3{margin:26px 0 9px;color:#5b334a;font-size:1.12rem;line-height:1.35;}
.mps-seo-category-long p{margin:0 0 14px;}
.mps-seo-category-long ul{margin:8px 0 18px 1.25rem;padding:0;}
.mps-seo-category-long li{margin:7px 0;}
.mps-seo-category-long a{color:#a31a52;text-decoration:underline;text-underline-offset:3px;}
.mps-seo-category-long strong{color:#5b334a;}
@media(max-width:767px){.mps-seo-category-long{margin-top:28px;padding:22px 18px;border-radius:16px;font-size:.96rem}.mps-seo-category-long h3{margin-top:22px}}

/* MPS SEO 1.0.11: huby kategorii bloga */
.mps-blog-category-hub,
body.category .archive-description,
body.category .taxonomy-description{
  max-width:980px;
  margin:0 auto 30px;
  padding:22px 24px;
  border:1px solid rgba(91,51,74,.10);
  border-radius:18px;
  background:rgba(255,250,247,.82);
  color:#51434a;
  line-height:1.7;
}
.mps-blog-category-hub p,
body.category .archive-description p,
body.category .taxonomy-description p{margin:0 0 12px;}
.mps-blog-category-hub p:last-child,
body.category .archive-description p:last-child,
body.category .taxonomy-description p:last-child{margin-bottom:0;}
.mps-blog-category-hub__links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}
.mps-blog-category-hub__links a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:7px 12px;
  border:1px solid rgba(163,26,82,.20);
  border-radius:999px;
  color:#8c1747;
  background:#fff;
  font-weight:650;
  text-decoration:none;
}
.mps-blog-category-hub__links a:hover,
.mps-blog-category-hub__links a:focus-visible{
  border-color:#a31a52;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* MPS SEO 1.0.11: powiązane artykuły bez miniaturek */
.mps-related-posts{
  margin:44px 0 12px;
  padding-top:28px;
  border-top:1px solid rgba(91,51,74,.12);
}
.mps-related-posts > h2{
  margin:0 0 18px;
  color:#5b334a;
  font-size:clamp(1.45rem,2.2vw,1.9rem);
  line-height:1.2;
}
.mps-related-posts__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.mps-related-post{
  display:flex;
  flex-direction:column;
  min-height:100%;
  padding:19px 18px;
  border:1px solid rgba(91,51,74,.11);
  border-radius:16px;
  background:#fffaf7;
}
.mps-related-post__label{
  display:block;
  margin-bottom:7px;
  color:#9a637b;
  font-size:.76rem;
  font-weight:750;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.mps-related-post h3{
  margin:0 0 9px;
  font-size:1.04rem;
  line-height:1.35;
}
.mps-related-post h3 a{color:#5b334a;text-decoration:none;}
.mps-related-post h3 a:hover,
.mps-related-post h3 a:focus-visible{text-decoration:underline;text-underline-offset:3px;}
.mps-related-post p{
  margin:0 0 14px;
  color:#6b5b63;
  font-size:.92rem;
  line-height:1.58;
}
.mps-related-post__more{
  margin-top:auto;
  color:#a31a52;
  font-weight:700;
  text-decoration:none;
}
.mps-related-post__more:hover,
.mps-related-post__more:focus-visible{text-decoration:underline;text-underline-offset:3px;}

@media(max-width:800px){
  .mps-related-posts__grid{grid-template-columns:1fr;}
  .mps-blog-category-hub,
  body.category .archive-description,
  body.category .taxonomy-description{padding:18px 17px;margin-bottom:22px;}
}
