
/* Kafelek g2 jako element listy ul.products. Specyficzność (0,4,4), bo listing ma
   reguły na ul.products li z !important w snippet-25, aloha-naprawa-css i ciemnym motywie. */
html body ul.products li.g2.g2x.g2-li{padding:0 !important;margin:0 !important;background:transparent !important;border:0 !important;box-shadow:none !important;width:auto !important;max-width:none !important;float:none !important;display:block !important;height:auto !important;min-height:0 !important;transform:none !important;clip-path:none !important;}
html body ul.products li.g2.g2x.g2-li::before,html body ul.products li.g2.g2x.g2-li::after{display:none !important;}
html body ul.products li.g2.g2x.g2-li > .g2-kafel{height:100%;}
@media (max-width:767px){
	html body ul.products,html body .woocommerce ul.products,html body .aloha-shop-content ul.products.columns-4,html body .aloha-shop-content ul.products.columns-3{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important;}
}

/* Lupa w nagłówku także na telefonie - okno wyszukiwania na całą szerokość pod nagłówkiem */
@media (max-width:1024px){
	html body .aloha-header-actions .aloha-search-wrapper{display:block !important;}
	html body .aloha-header-actions .aloha-search-dropdown{position:fixed !important;left:10px !important;right:10px !important;width:auto !important;top:calc(var(--aloha-hdr-h, 120px) + 6px) !important;}
	html body .aloha-header-actions .aloha-search-dropdown::before{display:none !important;}
	html body .aloha-header-actions .aloha-search-dropdown input[type=search]{font-size:16px !important;}
}

/* Dolny pasek nawigacji */
.s2-dock{display:none;}
@media (max-width:767px){
	body.s2-ma-dock{padding-bottom:64px !important;}
	/* Złote serduszko ulubionych: na telefonie zawsze schowane - Ulubione są w dolnym pasku (przycisk klika ukryte serduszko). */
	html body .aloha-wishlist-floating-btn{display:none !important;}
	/* Pływający przycisk "Filtry" ze snippet-25 - nad paskiem, nie na nim */
	body.s2-ma-dock #alohaMobileFab.aloha-mobile-fab{bottom:76px !important;}
	html body .s2-dock{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:9990;background:#111317 !important;border-top:1px solid #2a2e36;padding:6px 0 calc(6px + env(safe-area-inset-bottom));}
	html body .s2-dock a,html body .s2-dock button{display:flex !important;flex-direction:column;align-items:center;gap:2px;background:transparent !important;border:0 !important;color:#c3c8d1 !important;-webkit-text-fill-color:#c3c8d1 !important;font:600 11px/1.2 Inter,Montserrat,sans-serif !important;padding:4px 0 !important;margin:0 !important;text-decoration:none !important;position:relative;box-shadow:none !important;min-height:0 !important;}
	html body .s2-dock .jest{color:#ff8a2a !important;-webkit-text-fill-color:#ff8a2a !important;}
	html body .s2-dock svg{width:22px;height:22px;}
	html body .s2-dock b{position:absolute;top:0;left:calc(50% + 6px);min-width:17px;height:17px;border-radius:9px;background:#ff6a00 !important;color:#fff !important;-webkit-text-fill-color:#fff !important;font-size:10.5px;line-height:17px;text-align:center;padding:0 4px;}
	html body .s2-dock b[data-ile="0"]{display:none;}
}

/* Wyszukiwarka od dołu (dolny pasek, telefon) */
html body .s2-szuk-tlo{position:fixed;inset:0;z-index:99990;background:rgba(0,0,0,.6);opacity:0;transition:opacity .25s;}
html body .s2-szuk-tlo.jest{opacity:1;}
html body .s2-szuk-tlo[hidden],html body .s2-szuk[hidden]{display:none !important;}
html body .s2-szuk{position:fixed;left:0;right:0;bottom:0;top:12vh;z-index:99991;background:#17191e !important;border-radius:18px 18px 0 0;padding:10px 14px calc(16px + env(safe-area-inset-bottom));transform:translateY(100%);transition:transform .25s ease-out;overflow-y:auto;font-family:Inter,Montserrat,sans-serif;box-shadow:0 -10px 40px rgba(0,0,0,.5);}
html body .s2-szuk.jest{transform:translateY(0);}
html body .s2-szuk::before{content:"";display:block;width:40px;height:4px;border-radius:2px;background:#3b4250;margin:0 auto 10px;}
html body .s2-szuk__gora{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;}
html body .s2-szuk__gora b{font:800 18px/1.2 Montserrat,sans-serif;color:#fff;}
html body .s2-szuk button.s2-szuk__x{background:transparent !important;border:0 !important;color:#9aa0aa !important;font-size:28px !important;line-height:1 !important;padding:0 4px !important;box-shadow:none !important;}
html body .s2-szuk form.s2-szuk__form{display:flex;position:relative;background:#fff !important;border:2px solid #ff6a00;border-radius:12px;height:52px;margin:0;}
html body .s2-szuk form.s2-szuk__form input[type=search]{flex:1;min-width:0;border:0 !important;outline:0;background:transparent !important;color:#111 !important;-webkit-text-fill-color:#111 !important;font-size:16px !important;padding:0 14px !important;height:100% !important;margin:0 !important;box-shadow:none !important;border-radius:12px 0 0 12px;}
html body .s2-szuk form.s2-szuk__form button{width:58px;border:0 !important;background:#ff6a00 !important;color:#fff !important;display:flex !important;align-items:center;justify-content:center;border-radius:0 9px 9px 0 !important;padding:0 !important;margin:0 !important;}
html body .s2-szuk form.s2-szuk__form button svg{width:22px;height:22px;}
html body .s2-szuk .aloha-wysz{left:0 !important;right:0 !important;width:auto !important;}
html body .s2-szuk__t{font-size:12.5px;font-weight:700;color:#9aa0aa;text-transform:uppercase;letter-spacing:.6px;margin:18px 0 10px;}
html body .s2-szuk__dzialy{display:flex;flex-wrap:wrap;gap:8px;}
html body .s2-szuk__dzialy a{background:#1f2228 !important;border:1px solid #2a2e36;border-radius:999px;padding:9px 14px;font-size:14px;font-weight:600;color:#e7e9ee !important;-webkit-text-fill-color:#e7e9ee !important;text-decoration:none !important;}


/* Koszyk na telefonie: przyklejony pasek z sumą i "Przejdź do kasy" */
.s2-kasa{display:none;}
@media (max-width:767px){
	body.woocommerce-cart.s2-ma-kase{padding-bottom:84px !important;}
	html body .s2-kasa{display:flex;align-items:center;gap:12px;position:fixed;left:0;right:0;bottom:0;z-index:9990;background:#111317 !important;border-top:1px solid #2a2e36;padding:10px 12px calc(10px + env(safe-area-inset-bottom));font-family:Inter,Montserrat,sans-serif;}
	html body .s2-kasa[hidden]{display:none !important;}
	html body .s2-kasa__suma{display:flex;flex-direction:column;line-height:1.15;min-width:0;}
	html body .s2-kasa__suma small{font-size:11.5px;color:#9aa0aa;}
	html body .s2-kasa__suma b{font:800 19px/1.1 Montserrat,sans-serif;color:#fff;white-space:nowrap;}
	html body .s2-kasa__suma b *{color:#fff !important;-webkit-text-fill-color:#fff !important;font:inherit !important;background:transparent !important;}
	html body a.s2-kasa__btn{flex:1;display:flex !important;align-items:center;justify-content:center;gap:8px;min-height:50px;border-radius:12px !important;background:#ff6a00 !important;color:#fff !important;-webkit-text-fill-color:#fff !important;font:800 16px/1 Inter,sans-serif !important;text-decoration:none !important;box-shadow:none !important;border:0 !important;}
}

/* Panel po dodaniu do koszyka */
html body .s2-panel{position:fixed;right:20px;bottom:20px;z-index:99998;width:380px;max-width:calc(100vw - 20px);background:#17191e !important;border:1px solid #2a2e36;border-top:3px solid #22c55e;border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.6);padding:14px 16px 16px;color:#f2f3f5;font-family:Inter,Montserrat,sans-serif;}
html body .s2-panel[hidden]{display:none !important;}
html body .s2-panel *{box-sizing:border-box;}
html body .s2-panel .s2-panel__gora{display:flex;justify-content:space-between;align-items:center;}
html body .s2-panel .s2-ok{color:#22c55e !important;-webkit-text-fill-color:#22c55e !important;font-weight:800;font-size:15px;}
html body .s2-panel button.s2-x{background:transparent !important;border:0 !important;color:#9aa0aa !important;font-size:24px !important;line-height:1 !important;padding:0 4px !important;cursor:pointer;box-shadow:none !important;}
html body .s2-panel .s2-panel__akcje{display:grid;grid-template-columns:1fr 1.3fr;gap:8px;margin-top:12px;}
html body .s2-panel .s2-panel__akcje a,html body .s2-panel .s2-panel__akcje button{display:flex !important;align-items:center;justify-content:center;border-radius:10px !important;padding:11px 10px !important;font:700 14px/1.2 Inter,sans-serif !important;text-decoration:none !important;cursor:pointer;margin:0 !important;box-shadow:none !important;}
html body .s2-panel .s2-dalej{background:#1f2228 !important;border:1px solid #2a2e36 !important;color:#f2f3f5 !important;-webkit-text-fill-color:#f2f3f5 !important;}
html body .s2-panel .s2-do-koszyka{background:#ff6a00 !important;border:0 !important;color:#fff !important;-webkit-text-fill-color:#fff !important;}
html body .s2-panel .s2-panel__t{font-size:12.5px;font-weight:700;color:#9aa0aa;margin:14px 0 8px;text-transform:uppercase;letter-spacing:.6px;}
html body .s2-panel .s2-mini{display:grid;grid-template-columns:52px 1fr auto;gap:10px;align-items:center;padding:6px 0;border-top:1px solid #23262d;}
html body .s2-panel .s2-mini[hidden]{display:none;}
html body .s2-panel .s2-mini img{width:52px;height:52px;object-fit:contain;background:#fff !important;border-radius:8px;padding:3px;display:block;}
html body .s2-panel .s2-mini__n{font-size:12.5px;line-height:1.3;color:#e7e9ee !important;-webkit-text-fill-color:#e7e9ee !important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-decoration:none !important;}
html body .s2-panel .s2-mini__c{display:block;font-weight:800;font-size:13.5px;color:#fff;margin-top:2px;}
html body .s2-panel a.s2-mini__plus{width:36px;height:36px;border-radius:9px !important;background:#ff6a00 !important;color:#fff !important;-webkit-text-fill-color:#fff !important;display:flex !important;align-items:center;justify-content:center;font:800 20px/1 Inter,sans-serif !important;padding:0 !important;margin:0 !important;border:0 !important;text-decoration:none !important;min-width:0 !important;box-shadow:none !important;}
html body .s2-panel a.s2-mini__plus.added{background:#22c55e !important;font-size:0 !important;}
html body .s2-panel a.s2-mini__plus.added::after{content:"✓";font-size:17px;}
html body .s2-panel .added_to_cart{display:none !important;}
html body .s2-panel a.s2-koszyk-dol{display:flex !important;align-items:center;justify-content:center;margin:12px 0 0 !important;padding:13px 10px !important;border-radius:10px !important;background:#ff6a00 !important;color:#fff !important;-webkit-text-fill-color:#fff !important;font:700 15px/1.2 Inter,sans-serif !important;text-decoration:none !important;box-shadow:none !important;}
html body .s2-panel a.s2-koszyk-dol:hover{background:#ff8a2a !important;}
@media (max-width:767px){html body .s2-panel{max-height:calc(100vh - 150px);overflow-y:auto;}}
html body .s2-panel .s2-cs[hidden],html body .s2-panel .s2-drobne-t[hidden]{display:none !important;}
html body .s2-panel .s2-cs .s2-panel__t{color:#ff8a2a !important;-webkit-text-fill-color:#ff8a2a !important;}
@media (max-width:767px){
	html body .s2-panel{right:10px;left:10px;width:auto;bottom:74px;}
	body:not(.s2-ma-dock) .s2-panel{bottom:10px !important;}
}

/* Sortowanie listingu: własny przycisk zamiast systemowej listy <select>. Select zostaje w formularzu
   (ukryty), bo to jego zmiana przeładowuje listing - skrypt WooCommerce nasłuchuje na change. */
html body form.woocommerce-ordering.s2-sort-gotowe{position:relative !important;}
html body form.woocommerce-ordering.s2-sort-gotowe select.orderby{position:absolute !important;opacity:0 !important;pointer-events:none !important;width:1px !important;height:1px !important;}
html body button.s2-sort-btn{display:inline-flex !important;align-items:center !important;gap:8px !important;background:#17191e !important;border:1px solid #2a2e36 !important;border-radius:10px !important;color:#f2f3f5 !important;-webkit-text-fill-color:#f2f3f5 !important;font:600 14px/1.2 Inter,Montserrat,sans-serif !important;padding:10px 14px !important;margin:0 !important;cursor:pointer;box-shadow:none !important;min-height:42px !important;white-space:nowrap;}
html body button.s2-sort-btn:hover{border-color:#ff6a00 !important;}
html body button.s2-sort-btn span{color:#9aa0aa !important;-webkit-text-fill-color:#9aa0aa !important;font-weight:500 !important;}
html body button.s2-sort-btn svg{flex:0 0 auto;color:#ff8a2a;}
html body .s2-sort-lista{position:absolute;right:0;top:calc(100% + 6px);z-index:9995;min-width:250px;background:#17191e !important;border:1px solid #2a2e36;border-radius:12px;padding:6px;box-shadow:0 18px 40px rgba(0,0,0,.55);}
html body .s2-sort-lista[hidden]{display:none !important;}
html body .s2-sort-lista .s2-sort-t{display:none;}
html body .s2-sort-lista button{display:flex !important;width:100% !important;align-items:center !important;justify-content:space-between !important;gap:10px;background:transparent !important;border:0 !important;border-radius:8px !important;color:#e7e9ee !important;-webkit-text-fill-color:#e7e9ee !important;font:500 14.5px/1.3 Inter,sans-serif !important;padding:11px 12px !important;margin:0 !important;text-align:left !important;cursor:pointer;box-shadow:none !important;min-height:0 !important;}
html body .s2-sort-lista button:hover{background:#1f2228 !important;}
html body .s2-sort-lista button.jest{color:#ff8a2a !important;-webkit-text-fill-color:#ff8a2a !important;font-weight:700 !important;}
html body .s2-sort-lista button.jest::after{content:"✓";font-weight:800;}
html body .s2-sort-tlo{display:none;}
@media (max-width:767px){
	html body .woocommerce-result-count{float:none !important;display:block !important;margin:0 0 10px !important;font-size:13px !important;color:#9aa0aa !important;-webkit-text-fill-color:#9aa0aa !important;}
	html body form.woocommerce-ordering.s2-sort-gotowe{float:none !important;width:100% !important;margin:0 0 14px !important;position:static !important;}
	html body button.s2-sort-btn{width:100% !important;justify-content:flex-start !important;}
	html body button.s2-sort-btn svg:last-child{margin-left:auto !important;}
	html body .s2-sort-tlo{display:block;position:fixed;inset:0;z-index:99996;background:rgba(0,0,0,.55);}
	html body .s2-sort-tlo[hidden]{display:none;}
	html body .s2-sort-lista{position:fixed;left:0;right:0;top:auto;bottom:0;z-index:99997;min-width:0;border-radius:18px 18px 0 0;padding:8px 12px calc(16px + env(safe-area-inset-bottom));border-bottom:0;}
	html body .s2-sort-lista .s2-sort-t{display:flex;justify-content:space-between;align-items:center;font:800 17px/1.2 Montserrat,sans-serif;color:#fff;padding:12px 6px 10px;}
	html body .s2-sort-lista .s2-sort-t::before{content:"";position:absolute;left:50%;top:7px;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:#3b4250;}
	html body .s2-sort-lista button{font-size:16px !important;padding:14px 10px !important;border-bottom:1px solid #23262d !important;border-radius:0 !important;}
}

/* Zalety na karcie produktu. Ciemny motyw daje tło każdemu wnukowi [class*="product-info"],
   stąd (0,4,x) i !important. */
html body .aloha-product-info ul.s2-zalety.s2-zalety{display:grid !important;grid-template-columns:1fr 1fr !important;gap:6px 14px !important;list-style:none !important;margin:12px 0 4px !important;padding:0 !important;background:transparent !important;border:0 !important;}
html body .aloha-product-info ul.s2-zalety.s2-zalety li{display:flex !important;align-items:center !important;gap:7px !important;font-size:13.5px !important;color:#c4cad3 !important;-webkit-text-fill-color:#c4cad3 !important;background:transparent !important;border:0 !important;padding:0 !important;margin:0 !important;box-shadow:none !important;}
html body .aloha-product-info ul.s2-zalety.s2-zalety li::before{display:none !important;}
html body .aloha-product-info ul.s2-zalety.s2-zalety li.s2-zalety__cala{grid-column:1 / -1 !important;}
html body .aloha-product-info ul.s2-zalety.s2-zalety svg{color:#22c55e !important;flex:0 0 auto !important;background:transparent !important;}
