/* ME Performance – karty produktów (dawniej inline w content-product.php) */

.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.woocommerce .products.large-columns-3{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:24px!important;max-width:1200px;margin:0 auto!important;padding:24px 8px!important}
@media screen and (max-width:1023px){.woocommerce .products.large-columns-3{grid-template-columns:repeat(2,1fr)!important}}
@media screen and (max-width:359px){.woocommerce .products.large-columns-3{grid-template-columns:repeat(1,1fr)!important}}
.woocommerce .products.large-columns-4,.woocommerce .products.large-columns-5{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:24px!important;max-width:1200px;margin:0 auto!important;padding:24px 8px!important}

.woocommerce .products li.product{background:#fff!important;border-radius:16px!important;box-shadow:0 6px 25px rgba(0,0,0,.08)!important;transition:all .3s ease!important;padding:15px!important;text-align:center!important;position:relative!important;overflow:hidden!important;margin:0!important;width:auto!important;min-height:420px!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important}
li.product{list-style-type:none!important}
.flickity-slider li.product{width:260px!important;margin:0 20px}
.woocommerce .products li.product:hover{box-shadow:0 12px 35px rgba(0,0,0,.12)!important}

.product-image-wrapper{margin-bottom:20px;position:relative;overflow:hidden;border-radius:8px}
.woocommerce .products li.product img{height:240px!important;object-fit:contain!important;margin:0 auto!important;display:block!important}
.woocommerce .products li.product img.size-thumbnail{height:50px!important}

.woocommerce .products li.product .woocommerce-loop-product__title{font-size:14px!important;font-weight:500!important;color:#1d1d1d!important;margin-bottom:4px!important;line-height:1.3!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;text-overflow:ellipsis!important;height:36px!important;text-align:center!important}

.me-rating{display:flex;align-items:center;justify-content:center;gap:3px;height:18px;margin:0 0 8px;font-size:12px;line-height:1;color:#1d1d1f}
.me-rating__star{color:#1d1d1f;font-size:13px}
.me-rating__value{font-weight:700}
.me-rating__count{color:#86868b}

.woocommerce .products li.product .price{display:none!important}

.me-price-block{text-align:left;margin:2px 0 10px}
.me-price-row{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:8px}
.me-perfuming{font-size:12px;font-weight:500;color:#6e6e73;line-height:1.3;padding-top:3px}
.me-perfuming strong{font-weight:700;white-space:nowrap}
.me-price-regular{text-align:right;flex-shrink:0}
.me-price-now,.me-price-now .amount{display:block;font-size:20px!important;font-weight:700!important;color:#111!important;line-height:1.15!important;white-space:nowrap}
.me-price-ml .amount{display:inline}
.me-price-ml{display:block}
.me-price-ml,.me-price-ml .amount{font-size:11px!important;font-weight:400!important;color:#86868b!important;line-height:1.3!important;white-space:nowrap}
.me-price-ml[hidden]{display:none}
.me-promo-bar{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#111;color:#fff;border-radius:10px;padding:8px 10px;cursor:help}
.me-promo-label{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.2;text-align:left;min-width:0}
.me-promo-label svg{flex-shrink:0;opacity:.85}
.me-promo-label strong{color:#e9c98f;font-weight:700}
.me-promo-label small{display:block;font-size:10px;opacity:.7;margin-top:1px}
.me-promo-price,.me-promo-price .amount{font-size:20px!important;font-weight:700!important;color:#fff!important;line-height:1.15!important;white-space:nowrap}

.quick-cart-wrapper{container-type:inline-size}
@container (max-width:205px){
  .me-price-row{flex-direction:column;align-items:stretch;gap:2px}
  .me-price-regular{text-align:left}
  .me-price-now,.me-price-now .amount,.me-promo-price,.me-promo-price .amount{font-size:17px!important}
  .me-promo-bar{flex-direction:column;align-items:flex-start;gap:2px;padding:7px 8px}
  .me-promo-label svg{display:none}
}

.product-inspiration{background:#f8f9fa;border-radius:8px;padding:8px 12px;margin-bottom:12px;font-size:12px;text-align:center;min-height:50px;display:flex;flex-direction:column;justify-content:center}
.inspiration-label{color:#666;font-weight:500;display:block;margin-bottom:2px}
.inspiration-name{color:#1d1d1d;font-weight:600;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;text-overflow:ellipsis!important}
.product-sizes,.size-info{display:none!important}

.product-brand{text-align:center!important;margin:8px 0!important;min-height:24px!important;display:flex!important;align-items:center!important;justify-content:center!important}
.product-brand .brand-name{font-size:14px!important;font-weight:600!important;color:#333!important;text-transform:uppercase!important;display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical!important;overflow:hidden!important;text-overflow:ellipsis!important}

.product-cross-sells{text-align:left;padding:8px;background:#f5f5f7;border-radius:10px}
.product-cross-sells .cross-sell-item{display:flex;align-items:center;gap:8px;margin:0;text-decoration:none!important;color:inherit!important}
.woocommerce .products li.product .product-cross-sells .cross-sell-image img{width:40px!important;max-width:40px!important;height:40px!important;object-fit:contain!important;margin:0!important;border-radius:6px!important}
.product-cross-sells .cross-sell-image{flex-shrink:0;display:block}
.product-cross-sells .cross-sell-wrapper{display:flex;flex-direction:column;min-width:0;margin:0}
.product-cross-sells .cross-sell-title{margin:0!important;font-size:11px!important;line-height:1.25!important;font-weight:500!important;color:#555!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-cross-sells .cs-label{display:block;font-size:10px;font-weight:600;color:#86868b;margin-bottom:1px}
.product-cross-sells .cross-sell-price,.product-cross-sells .cross-sell-price .amount{margin:2px 0 0!important;font-size:12px!important;font-weight:600!important;color:#555!important;line-height:1.2!important}
.product-cross-sells .cross-sell-saving{margin:7px 0 0!important;padding:5px 6px;background:#e7f4ea;color:#17703a!important;border-radius:6px;font-size:12px!important;font-weight:700!important;line-height:1.2!important;text-align:center}

.no-image-placeholder{width:140px;height:140px;background:#f8f9fa;border:2px dashed #dee2e6;border-radius:8px;display:flex;align-items:center;justify-content:center;margin:0 auto 20px;color:#adb5bd;font-size:12px}

.quick-cart-wrapper{margin-top:0;padding-top:0}
.quick-size-selector{display:flex;gap:6px;justify-content:center;margin-bottom:8px}
.quick-size-btn{flex:1;min-height:32px;padding:4px 6px;background:#f5f5f7;border:2px solid transparent;border-radius:8px;font-size:12px;font-weight:600;color:#555;cursor:pointer;transition:all .2s ease;white-space:nowrap;margin:0;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.ml-text{text-transform:uppercase;margin-left:.25em}
.quick-size-btn:hover{background:#e8e8ed;color:#1d1d1f}
.quick-size-btn.active{background:#fff;border-color:#1d1d1f;color:#1d1d1f;margin:0}

.quick-cart-wrapper .quick-add-to-cart-btn{width:100%!important;min-height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:10px 16px!important;background:#1d1d1f!important;color:#fff!important;border:none!important;border-radius:10px!important;font-size:15px!important;font-weight:700!important;text-transform:none!important;letter-spacing:.01em!important;cursor:pointer!important;transition:background .2s ease,box-shadow .2s ease!important;box-shadow:0 2px 8px rgba(0,0,0,.1)!important;box-sizing:border-box!important;text-decoration:none!important;margin-bottom:15px!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.quick-cart-wrapper .quick-add-to-cart-btn .me-cart-ico{flex-shrink:0;margin-top:-2px}
.quick-cart-wrapper .quick-add-to-cart-btn::before{content:none!important;display:none!important}
@media (hover:hover){.quick-cart-wrapper .quick-add-to-cart-btn:hover{background:#000!important;color:#fff!important;box-shadow:0 4px 12px rgba(0,0,0,.2)!important}}
.quick-cart-wrapper .quick-add-to-cart-btn:active{background:#000!important;box-shadow:0 1px 4px rgba(0,0,0,.15)!important}
.quick-cart-wrapper .quick-add-to-cart-btn:focus-visible{outline:2px solid #1d1d1f!important;outline-offset:2px!important}
.quick-cart-wrapper .quick-add-to-cart-btn:disabled,.quick-cart-wrapper .quick-add-to-cart-btn.is-loading{opacity:.6!important;cursor:not-allowed!important;pointer-events:none!important}

.cart-toast{position:fixed;bottom:30px;right:30px;background:#1d1d1f;color:#fff;padding:16px 24px;border-radius:8px;box-shadow:0 4px 20px rgba(0,0,0,.3);display:flex;align-items:center;gap:12px;z-index:9999;animation:slideInUp .3s ease,slideOutDown .3s ease 2.7s;opacity:0;transform:translateY(100px)}
.cart-toast.show{opacity:1;transform:translateY(0)}
.cart-toast-icon{width:24px;height:24px;background:#4caf50;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}
.cart-toast.is-error .cart-toast-icon{background:#d9534f}
.cart-toast-message{font-size:14px;font-weight:500}
@keyframes slideInUp{from{opacity:0;transform:translateY(100px)}to{opacity:1;transform:translateY(0)}}
@keyframes slideOutDown{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100px)}}
@media (max-width:768px){.cart-toast{bottom:20px;right:20px;left:20px;padding:14px 20px}}

@media (max-width:1024px){.woocommerce .products{grid-template-columns:repeat(3,1fr)!important;gap:25px!important}}

@media (max-width:425px){
  .ml-text{text-transform:none;margin-left:1px;font-size:11px;font-weight:500}
  .quick-cart-wrapper{padding-top:10px;margin-bottom:12px}
  .quick-size-selector{gap:6px}
  .quick-size-btn{min-height:34px;padding:4px 4px;font-size:13px}
  .quick-cart-wrapper .quick-add-to-cart-btn{min-height:48px!important;padding:10px 8px!important;font-size:15px!important;border-radius:10px!important;margin-bottom:12px!important}
}

@media (max-width:768px){
  .woocommerce .products{grid-template-columns:repeat(2,1fr)!important;gap:20px!important;padding:20px 15px!important}
  .woocommerce .products li.product{padding:14px 10px 4px!important;min-height:auto!important;display:flex!important;flex-direction:column!important}
  .woocommerce .products li.product img{width:120px!important;height:120px!important}
  .woocommerce .products li.product .woocommerce-loop-product__title{font-size:14px!important;position:relative!important;z-index:10!important;background:transparent!important;margin-bottom:4px!important;height:auto!important;min-height:36px!important}
  .woocommerce .products li.product .price{font-size:16px!important;margin-bottom:10px!important}
  .woocommerce .products li.product .product-image-wrapper{margin-bottom:10px!important;background:transparent!important}
  .woocommerce .products li.product .woocommerce-loop-product__link{display:flex!important;flex-direction:column!important;background:transparent!important;flex-shrink:0!important}
  .woocommerce .products li.product .quick-cart-wrapper{position:relative!important;z-index:1!important;margin-top:auto!important;padding-top:10px!important}
  .woocommerce .products li.product .product-info-extra{position:relative!important;z-index:5!important}
  .product-cross-sells{margin-bottom:10px}
}

@media screen and (max-width:1023px){
  .woocommerce .products.large-columns-4.medium-columns-2{grid-template-columns:repeat(2,1fr)!important;gap:12px!important}
  .woocommerce .products.large-columns-3.medium-columns-2{gap:12px!important}
}
@media screen and (max-width:359px){.woocommerce .products.large-columns-4.small-columns-2{grid-template-columns:repeat(1,1fr)!important}}

/* Filtr + sortowanie w dwóch kolumnach */
.shop-container .woocommerce-notices-wrapper + .products-top-bar,.shop-container > .products-top-bar{display:grid!important;grid-template-columns:1fr 1fr!important;gap:15px!important;margin-bottom:20px!important;align-items:center!important}
.shop-container .filter-button-wrapper,.shop-container .off-canvas-toggle{grid-column:1!important;margin:0!important}
.shop-container .woocommerce-ordering{grid-column:2!important;margin:0!important;text-align:right!important}
.shop-container .woocommerce-ordering select{width:100%!important;max-width:100%!important;padding:10px 12px!important;border:1px solid #e8e8ed!important;border-radius:8px!important;background:#f5f5f7!important;font-size:14px!important;font-weight:500!important;color:#1d1d1f!important;cursor:pointer!important}
.shop-container .woocommerce-ordering select:focus{outline:none!important;border-color:#1d1d1f!important;background:#fff!important}
.shop-container .filter-button,.shop-container .off-canvas-toggle{width:100%!important;padding:10px 12px!important;background:#f5f5f7!important;border:1px solid #e8e8ed!important;border-radius:8px!important;font-size:14px!important;font-weight:500!important;color:#1d1d1f!important;cursor:pointer!important;transition:all .2s ease!important;text-align:center!important}
.shop-container .filter-button:hover,.shop-container .off-canvas-toggle:hover{background:#e8e8ed!important;border-color:#1d1d1f!important}
.shop-container .popular-brands-section,.shop-container .product-brands-section{margin-top:30px!important}
@media (max-width:768px){
  .shop-container .woocommerce-notices-wrapper + .products-top-bar,.shop-container > .products-top-bar{grid-template-columns:1fr!important;gap:8px!important;margin-bottom:10px!important}
  .shop-container .filter-button-wrapper,.shop-container .off-canvas-toggle,.shop-container .woocommerce-ordering{grid-column:1!important;text-align:left!important}
  .popular-brands-filter,.seasons-filter{margin-bottom:8px!important}
}

.why-manufaktura-section{padding:0!important}
.custom-related-section,.related-products-section{padding:20px 0!important}
.related-products-section .quick-add-to-cart-btn,.custom-related-section .quick-add-to-cart-btn{padding:16px 8px!important}

/* Telefony – jeden układ dla wszystkich list (musi być na końcu) */
@media (max-width:480px){
  .woocommerce .products.products.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:12px 8px!important}
  .woocommerce .products.products.products li.product{max-width:none!important;width:auto!important;margin:0!important;padding:12px 8px 4px!important}
}
@media (max-width:359px){
  .woocommerce .products.products.products{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .woocommerce .products.products.products li.product{padding:14px 12px 4px!important}
}
