/* =====================================================================
Mascort – własne style szablonu (przeniesione z bloków <style> w plikach HTML).
Ładowany w _layout.html PO plikach layout*.css, więc kolejność reguł
jest taka sama jak wcześniej (bloki <style> stały w treści strony).
:where(...) ogranicza regułę do danego miejsca, nie podnosząc jej "siły" (specyficzności).
===================================================================== */
/* ---------- Nagłówek: dziura nad nagłówkiem na karcie produktu (błąd Comarch) ----------
Na stronie produktu (jest #fabProductBar) Comarch ustawia nagłówek jako "sticky"
(body:has(#fabProductBar) .headerSection), a skrypt i tak pokazuje pusty div#header-5
(202 px), który ma zastępować "przyklejony" (fixed) nagłówek -> pusta luka po przewinięciu.
Przy sticky ten div jest zbędny, więc go ukrywamy. Pozostałe strony bez zmian. */
body:has(#fabProductBar) .headerSection__background {
display: none !important;
}
/* Ten sam błąd na telefonie: otwarte menu (headerSection__mobileActive) ma być "fixed" na cały ekran,
ale reguła "sticky" z karty produktu jest silniejsza -> kategorie zjeżdżały w dół z pustym miejscem u góry. */
body:has(#fabProductBar) .headerSection.headerSection__mobileActive {
position: fixed;
}
/* ---------- Nagłówek: kategorie (elements/header/header-5.html) ---------- */
.centered {
display: flex;
justify-content: center;
align-items: center;
gap: 3px;
}
.headerSection__categories .mainCategories__category {
border-bottom: 1px solid rgb(190, 39, 69);
}
/* ---------- Nagłówek: banery w podpowiedziach wyszukiwarki (partials/header-recommended/header-recommended.html) ---------- */
.header-recommended-banners {
display: flex;
flex-direction: column;
gap: 15px;
align-items: center;
margin-top: 20px;
width: 100%;
}
.header-recommended-banner-item {
width: 100%;
aspect-ratio: 3 / 1;
display: block;
overflow: hidden;
border-radius: 4px;
}
.header-recommended-banner-item img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
/* ---------- Strona główna (home-page.html) ---------- */
.home-page-h1 {
text-align: center;
}
/* ---------- Newsletter na stronie głównej (elements/newsletter/newsletter-2.html) ---------- */
.newsletter2-wrapper {
background-color: #f2f2f2;
padding: 20px 0;
}
.newsletter2 {
max-width: 800px;
margin: 0 auto;
text-align: center;
}
.newsletter2__title {
color: #333;
font-size: 34px;
font-weight: 700;
margin-bottom: 10px;
letter-spacing: -0.5px;
}
.newsletter2__title strong {
color: #b01532;
font-weight: bold;
}
.newsletter2__text {
color: #555;
font-size: 18px;
margin-bottom: 40px;
}
.newsletter2__input-container {
display: flex;
flex-direction: column;
align-items: center;
}
.newsletter2__inputWrapper {
display: flex;
width: 100%;
max-width: 700px;
gap: 0;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.newsletter2__inputWrapper input[type="email"] {
flex: 1;
background-color: #ffffff;
border: 1px solid #ffffff;
padding: 20px 25px;
font-size: 16px;
color: #333;
outline: none;
transition: all 0.3s ease;
}
.newsletter2__btn-subscribe {
background-color: #111111;
color: #ffffff;
border: none;
padding: 0 50px;
font-size: 16px;
font-weight: 700;
text-transform: uppercase;
cursor: pointer;
transition: background-color 0.3s ease;
}
.newsletter2__btn-subscribe:hover {
background-color: #b01532;
}
.newsletter2__consents {
width: 100%;
max-width: 700px;
text-align: left;
margin-top: 20px;
}
.newsletter2__consents .consent-item {
display: flex;
align-items: flex-start;
gap: 12px;
font-size: 14px;
color: #222;
line-height: 1.4;
margin-bottom: 10px;
}
.newsletter2__consents-required {
font-size: 12px;
color: #777;
margin-top: 15px;
}
/* wcześniej bez ograniczenia – zmieniało komunikaty błędów we wszystkich formularzach strony głównej */
:where(.newsletter2-wrapper) .form__invalid-input {
display: flex;
align-items: center;
margin: 0;
padding-right: 5px;
color: #b01532;
font-size: 13px;
background: white;
font-weight: 600;
}
@media (max-width: 600px) {
.newsletter2__inputWrapper {
flex-direction: column;
box-shadow: none;
gap: 10px;
}
.newsletter2__inputWrapper input[type="email"] {
padding: 15px;
}
.newsletter2__btn-subscribe {
padding: 15px;
}
}
/* ---------- Karta produktu: kopiowanie kodu / EAN (elements/product/product-details-4.html) ---------- */
.mascort-copy { white-space: nowrap; }
.mascort-copy__btn { background: none; border: 0; padding: 0 2px; margin: 0; color: inherit; cursor: pointer; vertical-align: middle; line-height: 1; }
.mascort-copy__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.mascort-copy__msg { font-size: 0.8em; color: #2e7d32; margin-left: 4px; }
/* ---------- Karta produktu: cena brutto / netto ----------
Wcześniej te reguły były wpisane w stronę produktu, więc działały tylko na niej.
:where(.productDetails) zachowuje to ograniczenie (bez wpływu na listę produktów i koszyk). */
:where(.productDetails) .price-container {
display: flex;
flex-direction: column;
line-height: 1.2;
}
:where(.productDetails) .red-price {
line-height: 1.8 !important;
}
:where(.productDetails) .price {
font-size: 1.2rem;
font-weight: bold;
color: #333;
line-height: 1;
}
:where(.productDetails) .price-netto {
font-size: 0.9rem;
color: #666;
font-weight: normal;
}
:where(.productDetails) .currency {
font-size: 0.8em;
margin-left: 2px;
}
/* ---------- Karta produktu: ikony informacji o dostawie ---------- */
.product-info-icon {
width: 40px;
height: 40px;
}
/* ---------- Karta produktu: boks "Masz pytania? Zadzwoń" ---------- */
.product-contact-box {
font-family: inherit;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 12px 16px;
margin: 0 0 16px;
color: #334155;
font-size: 17px;
line-height: 1.4;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 14px;
align-items: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.product-contact-item {
display: flex;
align-items: center;
gap: 8px;
}
.product-contact-icon,
.product-b2b-icon {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border-radius: 50%;
color: #c9302c;
background-color: #f1f5f9;
}
.product-contact-text, .product-b2b-text {
font-weight: 500;
}
.product-contact-value {
color: #c9302c;
font-weight: 700;
text-decoration: none;
border-bottom: 2px solid rgba(201, 48, 44, 0.2);
transition: border-color 0.2s;
}
.product-contact-value:hover {
border-bottom-color: rgba(201, 48, 44, 0.6);
}
/* ---------- Karta produktu: boks "Dodatkowe informacje" ---------- */
.product-info-box {
font-family: inherit;
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 6px;
padding: 12px 14px;
margin: 15px 0 0;
color: #4b5563;
font-size: 15px;
line-height: 1.5;
}
.product-info-title {
font-weight: 700;
margin-bottom: 8px;
color: #1f2937;
font-size: 17px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.product-info-list {
list-style: none;
padding: 0;
margin: 0;
}
.product-info-item {
position: relative;
padding-left: 28px;
color: #6b7280;
}
.product-info-item:not(:last-child) {
margin-bottom: 6px;
}
.product-info-badge {
position: absolute;
left: 0;
top: 1px;
min-width: 16px;
max-height: 20px;
text-align: center;
font-weight: 700;
color: #c9302c;
background: #f3f4f6;
border-radius: 4px;
padding: 1px 4px;
font-size: 15px;
line-height: 1.2;
}
.product-info-footer {
margin-top: 8px;
padding-top: 6px;
border-top: 1px dashed #e5e7eb;
font-size: 15px;
color: #9ca3af;
font-style: italic;
}
/* ---------- Koszyk: przycisk "Zamawiam" w trakcie wysyłania (partials/cart/one-step-cart-summary-details.html) ---------- */
.button--loading {
background-color: #ccc;
opacity: 0.7;
cursor: wait;
}