/* ==========================================================================
   MebloLove — warstwa brandowa dla stron WooCommerce / treści
   Estetyka: ciepły minimalizm editorial. Cormorant Garamond + Jost.
   ========================================================================== */
:root {
  --ml-bg: #ECE7DE;      --ml-ink: #2A2722;    --ml-mut: #6B6557;
  --ml-soft: #8A8270;    --ml-label: #A39C8C;  --ml-cream: #F4EFE6;
  --ml-panel: #E3DDD1;   --ml-dark: #201E1A;   --ml-gold: #C19A72;
  --ml-card: #F6F2EA;    --ml-line: rgba(42,39,34,0.12);
  --ml-serif: "Cormorant Garamond", Georgia, serif;
  --ml-sans: "Jost", -apple-system, "Segoe UI", sans-serif;
}

/* ---- baza ---- */
body { background: var(--ml-bg); } /* pełne beżowe tło — bez białych pasów po bokach */
body.woocommerce, body.woocommerce-page, .woocommerce, .woocommerce-page {
  font-family: var(--ml-sans);
  color: var(--ml-ink);
}
/* Domyślny kolor linku motywu to różowy rgb(204,51,102) — wielokrotnie przeciekał przez
   nieostylowane <a> (mini-koszyk, konfigurator, "Oblicz koszty wysyłki"...). Jedna reguła
   bazowa zamiast łatania punktowego przy każdym nowym linku. Niska specyficzność (sam tag)
   — nie bije żadnej z istniejących reguł kolorowych na linkach/przyciskach. */
.woocommerce a, .woocommerce-page a { color: var(--ml-ink); }
.woocommerce a:hover, .woocommerce-page a:hover { color: var(--ml-gold); }
/* A5: skip-link (a11y) — po focusie klawiaturą nie może świecić różowym akcentem motywu */
.skip-link:focus { color: var(--ml-cream) !important; background: var(--ml-dark) !important; }
/* "Bezpłatnie" (produkty z ceną 0) — spójne z ceną */
.ml-free { color: var(--ml-ink); font-weight: 500; }
/* checkboxy/radia (metoda wysyłki, zgoda na regulamin, faktura) — inaczej domyślny
   niebieski akcent przeglądarki gryzie się z ciepłą paletą */
.woocommerce input[type="checkbox"], .woocommerce input[type="radio"] { accent-color: var(--ml-ink); }
main.site-main, .woocommerce-page main, body:not(.elementor-page) .site-main {
  background: var(--ml-bg);
}
.woocommerce h1, .woocommerce h2, .woocommerce h3,
.woocommerce-page h1, .woocommerce-page h2, .woocommerce-page h3 {
  font-family: var(--ml-serif); font-weight: 500; color: var(--ml-ink); letter-spacing: -.3px;
}

/* content wrapper padding na stronach Woo (bez własnego Elementora) */
.woocommerce.archive .site-main,
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.single-product .site-main,
.woocommerce-account .site-main {
  max-width: 1340px; margin: 0 auto; padding: 54px 40px 90px;
}
@media (max-width:768px){
  .woocommerce.archive .site-main, .woocommerce-cart .site-main,
  .woocommerce-checkout .site-main, .single-product .site-main,
  .woocommerce-account .site-main { padding: 32px 18px 60px; }
}

/* ---- przyciski globalnie ---- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce #respond input#submit, .wc-block-components-button {
  font-family: var(--ml-sans); font-size: 12.5px; font-weight: 400;
  letter-spacing: 2.2px; text-transform: uppercase;
  background: var(--ml-dark); color: var(--ml-cream);
  border: 1px solid var(--ml-dark); border-radius: 2px;
  padding: 15px 34px; line-height: 1; transition: all .22s ease; box-shadow: none;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce #respond input#submit:hover, .wc-block-components-button:hover {
  background: #3A362F; color: #fff; border-color: #3A362F;
}
.woocommerce a.button.ghost, .woocommerce .button.outline {
  background: transparent; color: var(--ml-ink); border-color: rgba(42,39,34,.3);
}

/* ==========================================================================
   ARCHIWUM / SKLEP — hero + sidebar + karty (wzór shop.html)
   ========================================================================== */
.woocommerce-products-header { display: none; } /* domyślny tytuł – zastępuje hero */

/* eyebrow (— KOLEKCJA MEBLOLOVE) */
.ml-eyebrow {
  display: inline-block; font-family: var(--ml-sans); font-size: 12px; font-weight: 400;
  letter-spacing: 3.4px; text-transform: uppercase; color: var(--ml-label);
}

/* HERO — panel w kontenerze (ujemne marginesy wystawały poza viewport) */
.ml-shop-hero {
  margin: 0 0 6px; padding: 66px 40px 58px; background: var(--ml-panel);
  text-align: center; border-radius: 16px;
}
@media (max-width:768px){ .ml-shop-hero { padding: 44px 18px 40px; } }
.ml-shop-hero__in { max-width: 780px; margin: 0 auto; }
.ml-shop-hero__title {
  font-family: var(--ml-serif); font-weight: 500; font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02; letter-spacing: -1.5px; color: var(--ml-ink); margin: 12px 0 16px;
}
.ml-shop-hero__sub { color: var(--ml-mut); font-size: 16px; line-height: 1.7; margin: 0; }

/* layout 2-kolumnowy */
.ml-shop-layout { display: grid; grid-template-columns: 232px 1fr; gap: 46px; margin-top: 48px; align-items: start; }
@media (max-width:900px){
  /* mobile: produkty najpierw, filtry pod spodem (nie spychać produktów w dół) */
  .ml-shop-layout { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
  .ml-shop-content { order: 1; }
  .ml-shop-side { order: 2; border-top: 1px solid var(--ml-line); padding-top: 22px; }
  .ml-shop-side .ml-filter { margin-bottom: 22px; }
  /* kategorie jako pozioma przewijalna wstęga */
  .ml-shop-side .ml-cat-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .ml-shop-side .ml-cat-list li { border-bottom: none; }
  .ml-shop-side .ml-cat-list li a {
    padding: 8px 14px; border: 1px solid var(--ml-line); border-radius: 999px; font-size: 13px;
  }
  .ml-shop-side .ml-cat-list li.is-active a { border-color: var(--ml-gold); color: var(--ml-gold); }
  .ml-shop-side .ml-cat-list li.is-active a::after { content: none; }
  /* podkategorie na mobile: te same pigulki w tym samym rzedzie, z mala strzalka przed nazwa */
  .ml-shop-side .ml-cat-list__sub { display: contents; }
  .ml-shop-side .ml-cat-list__sub li a::before { content: "› "; opacity: .55; }
}

/* sidebar filtrów */
.ml-shop-side .ml-filter { margin-bottom: 34px; }
.ml-filter__label {
  font-family: var(--ml-sans); font-size: 11.5px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ml-label); margin: 0 0 16px;
}
.ml-cat-list { list-style: none; margin: 0; padding: 0; }
.ml-cat-list li { padding: 0; border-bottom: 1px solid var(--ml-line); }
.ml-cat-list li a {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ml-sans); font-size: 14.5px; color: var(--ml-ink); text-decoration: none;
  padding: 11px 0; transition: color .18s, padding-left .18s;
}
.ml-cat-list li a:hover { color: var(--ml-gold); padding-left: 4px; }
.ml-cat-list li.is-active a { color: var(--ml-gold); }
.ml-cat-list li.is-active a::after { content: "•"; color: var(--ml-gold); }
/* podkategorie (drzewo) -- wciecie, mniejszy font, delikatniejszy kolor */
.ml-cat-list__sub { list-style: none; margin: 2px 0 4px; padding: 0 0 0 16px; }
.ml-cat-list__sub li { border-bottom: none; }
.ml-cat-list__sub li a { display: flex; justify-content: flex-start; gap: 4px; font-size: 13px; color: var(--ml-ink); padding: 6px 0; }
.ml-cat-list__sub li a::before { content: "—"; opacity: .5; }
.ml-cat-list__sub li.is-active a { color: var(--ml-gold); }
.ml-cat-list__sub li.is-active a::after { content: none; }
.ml-dots--filter { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.ml-dots--filter .ml-dot { width: 22px; height: 22px; cursor: pointer; }
.ml-dot--link { transition: transform .15s, box-shadow .15s; }
.ml-dot--link:hover { transform: scale(1.12); }
.ml-dot--link.is-active { box-shadow: 0 0 0 2px var(--ml-bg), 0 0 0 4px var(--ml-gold); }
.ml-clear-filter { font-family: var(--ml-sans); font-size: 12px; color: var(--ml-soft); text-decoration: none; margin-left: 4px; }
.ml-clear-filter:hover { color: var(--ml-gold); }
.ml-price-form { display: flex; gap: 8px; align-items: center; }
.ml-price-form input {
  width: 100%; border: 1px solid var(--ml-line); border-radius: 2px; padding: 10px 10px;
  background: #fff; color: var(--ml-ink); font-family: var(--ml-sans); font-size: 13px;
}
.ml-price-go {
  flex: 0 0 auto; background: var(--ml-dark); color: var(--ml-cream); border: none; border-radius: 2px;
  padding: 10px 13px; cursor: pointer; font-size: 14px;
}

/* toolbar: licznik + sortowanie w jednej linii, oddzielone linią (wzór shop.html) */
.ml-shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-bottom: 4px; padding-bottom: 22px; border-bottom: 1px solid var(--ml-line);
}
.ml-shop-count { font-family: var(--ml-sans); font-weight: 300; font-size: 13.5px; color: var(--ml-soft); margin: 0; }
.ml-shop-count b { font-weight: 400; color: var(--ml-ink); }
.woocommerce .woocommerce-ordering { margin: 0; float: none; }
.woocommerce .woocommerce-ordering select, .woocommerce select.orderby {
  appearance: none; -webkit-appearance: none;
  font-family: var(--ml-sans); font-weight: 300; font-size: 13px; letter-spacing: .3px;
  color: var(--ml-ink); border: 1px solid var(--ml-line);
  background: var(--ml-card) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%232a2722' stroke-width='1.3' fill='none'/></svg>") no-repeat right 14px center;
  border-radius: 2px; padding: 11px 38px 11px 16px; cursor: pointer;
}
.woocommerce .woocommerce-ordering select:focus, .woocommerce select.orderby:focus { border-color: var(--ml-ink); outline: none; }

/* siatka produktów */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; margin: 30px 0 0; clear: both; padding-top: 22px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
@media (max-width:1200px){ .ml-shop-content .woocommerce ul.products, .woocommerce ul.products { grid-template-columns: repeat(3,1fr); } }
@media (max-width:1024px){ .woocommerce ul.products { grid-template-columns: repeat(2,1fr); gap: 24px 18px; } }
@media (max-width:520px){ .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 16px 12px; } }

/* karta — bez panelu/ramki, obraz + treść pod spodem (wzór shop.html) */
.woocommerce ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important;
  background: transparent; border: none; border-radius: 0; overflow: visible;
  display: flex; flex-direction: column; position: relative;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.woocommerce ul.products li.product:hover { transform: translateY(-6px); }
.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.woocommerce ul.products li.product > a:first-of-type {
  display: block; overflow: hidden; border-radius: 14px; background: var(--ml-card);
  transition: box-shadow .35s ease;
}
.woocommerce ul.products li.product:hover .woocommerce-LoopProduct-link,
.woocommerce ul.products li.product:hover > a:first-of-type { box-shadow: 0 18px 50px rgba(42,39,34,.10); }
.woocommerce ul.products li.product a img {
  margin: 0; border-radius: 14px; aspect-ratio: 1/1; object-fit: cover; width: 100%;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.05); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--ml-serif); font-size: 22px; font-weight: 500; color: var(--ml-ink);
  padding: 0; margin: 4px 0 2px; line-height: 1.15;
}
.woocommerce ul.products li.product .ml-card-sub {
  font-family: var(--ml-sans); font-size: 14.5px; font-weight: 400; letter-spacing: .3px; color: var(--ml-soft); margin-bottom: 6px;
}
.woocommerce ul.products li.product .price {
  color: var(--ml-ink); font-family: var(--ml-sans); font-weight: 400; font-size: 16px;
  padding: 0; margin-top: 2px; display: block;
}
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .price del { color: var(--ml-soft); font-weight: 400; font-size: 13px; margin-left: 6px; }
/* link tytułu (główny link karty kończy się na obrazie) */
.woocommerce ul.products li.product .ml-card-titlelink { color: var(--ml-ink); text-decoration: none; }
.woocommerce ul.products li.product .ml-card-titlelink:hover { color: var(--ml-gold); }
/* przycisk koszyka na kartach usunięty hookiem (czysta karta) — fallback gdyby coś go wyrenderowało */
.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .added_to_cart { display: none; }

/* badge Bestseller/Nowość — jasna pigułka w rogu obrazu (onsale zostaje ciemny) */
.woocommerce ul.products li.product .ml-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(250,247,241,.94); color: var(--ml-ink);
  font-family: var(--ml-sans); font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 2px; pointer-events: none;
}
/* gdy produkt ma i badge, i promocję — onsale schodzi niżej, żeby się nie nakładały */
.woocommerce ul.products li.product .ml-badge ~ * .onsale,
.woocommerce ul.products li.product .ml-badge + a .onsale { top: 46px; }

/* kropki tkanin */
.ml-dots { display: flex; align-items: center; gap: 6px; margin: 14px 0 8px; }
.ml-dot { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(42,39,34,.14); display: inline-block; }
.ml-dot-more { font-size: 11px; color: var(--ml-soft); margin-left: 2px; }

/* badge promocji – elegancka pigułka zamiast zielonej plamy */
.woocommerce ul.products li.product .onsale, .woocommerce span.onsale {
  position: absolute; top: 12px; left: 12px; margin: 0; min-height: 0; min-width: 0; line-height: 1;
  background: var(--ml-dark); color: var(--ml-cream); font-family: var(--ml-sans);
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 400;
  padding: 7px 12px; border-radius: 2px; z-index: 2;
}
.woocommerce nav.woocommerce-pagination ul { border: none; margin-top: 46px; }
.woocommerce nav.woocommerce-pagination ul li { border: none; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  font-family: var(--ml-sans); font-size: 13px; color: var(--ml-ink); border: 1px solid var(--ml-line); border-radius: 2px;
  margin: 0 4px; min-width: 44px; line-height: 44px; padding: 0 6px; transition: background .2s, color .2s, border-color .2s;
}
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--ml-dark); color: var(--ml-cream); border-color: var(--ml-dark); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ml-dark); color: var(--ml-cream); border-color: var(--ml-dark); }

/* ==========================================================================
   KARTA PRODUKTU — klasyczny układ float (grid łapał sekcje related/upsells
   jako kolumny i rozwalał stronę)
   ========================================================================== */
.single-product div.product { display: block; }
.single-product div.product::after { content: ""; display: table; clear: both; }
/* wrapper galeria+podsumowanie (PHP: woocommerce_before/after_single_product_summary) —
   to ON jest granicą sticky galerii, nie cały .product (który obejmuje też długi opis
   w zakładkach niżej) */
.single-product .ml-product-top::after { content: ""; display: table; clear: both; }
.single-product div.product .woocommerce-product-gallery {
  float: left; width: 50%; margin: 0 0 48px;
  /* przyklejona galeria: zdjęcie+miniatury podążają w dół, gdy opis obok jest dłuższy.
     !important konieczne — WooCommerce ma własną regułę
     ".woocommerce div.product div.images.woocommerce-product-gallery{position:relative}"
     o wyższej specyficzności (3 klasy) niż nasza (2 klasy). */
  position: sticky !important; top: 96px !important; align-self: flex-start;
}
@media (max-width:900px){
  .single-product div.product .woocommerce-product-gallery { position: static !important; }
}
.single-product div.product .summary.entry-summary {
  float: right; width: 45%; margin: 0 0 48px; clear: none;
}
.single-product div.product .woocommerce-tabs,
.single-product div.product .related,
.single-product div.product .upsells,
.single-product div.product .up-sells {
  clear: both; float: none; width: 100%;
}
@media (max-width:900px){
  .single-product div.product .woocommerce-product-gallery,
  .single-product div.product .summary.entry-summary { float: none; width: 100%; margin-bottom: 30px; }
}
.single-product div.product .woocommerce-product-gallery__wrapper { margin: 0; }
.single-product div.product .woocommerce-product-gallery__image img,
.single-product div.product .woocommerce-product-gallery__image--placeholder img { border-radius: 18px; }
/* galeria: pionowe miniatury po lewej głównego zdjęcia (wzór product.html) */
.single-product .woocommerce-product-gallery { display: flex; gap: 12px; align-items: flex-start; }
.single-product .woocommerce-product-gallery .flex-viewport { order: 2; flex: 1 1 auto; min-width: 0; }
.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { order: 2; flex: 1 1 auto; min-width: 0; }
.single-product .flex-control-thumbs {
  order: 1; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 12px;
  width: 78px; flex: 0 0 78px; margin: 0; padding: 2px; max-height: 620px;
  overflow-y: auto; scrollbar-width: thin; list-style: none;
}
/* !important konieczne — WooCommerce ma ".flex-control-thumbs li{width:25%;float:left}"
   o wyższej specyficzności (3 klasy) niż nasza (2 klasy) */
.single-product .flex-control-thumbs li { width: 100% !important; float: none !important; flex: 0 0 auto; margin: 0; clear: none !important; }
.single-product .flex-control-thumbs img {
  border-radius: 10px; aspect-ratio: 1/1; object-fit: cover; opacity: .6;
  border: 1px solid transparent; box-sizing: border-box;
  transition: opacity .2s, border-color .25s, transform .25s; cursor: pointer; width: 100%;
}
.single-product .flex-control-thumbs img:hover { opacity: 1; transform: translateY(-2px); }
.single-product .flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--ml-ink); }
@media (max-width:900px){
  .single-product .woocommerce-product-gallery { flex-direction: column; }
  .single-product .flex-control-thumbs { order: 2; flex-direction: row; width: 100%; flex-basis: auto; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .single-product .flex-control-thumbs li { width: 72px !important; flex: 0 0 72px; }
}
.woocommerce-product-gallery__trigger { z-index: 3; }
/* przycisk dodania do koszyka — nadpisz fioletowy default Woo */
.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart .single_add_to_cart_button,
.single-product .single_add_to_cart_button.button.alt,
.mlk .mlk-add {
  background: var(--ml-dark) !important; color: var(--ml-cream) !important;
  border: 1px solid var(--ml-dark) !important; border-radius: 2px !important;
  font-family: var(--ml-sans) !important; font-size: 12.5px !important; font-weight: 400 !important;
  letter-spacing: 2.4px !important; text-transform: uppercase !important;
}
.woocommerce div.product form.cart .button:hover, .mlk .mlk-add:hover:not(:disabled) {
  background: #3A362F !important; border-color: #3A362F !important; color: #fff !important;
}
.ml-eyebrow--product { display: block; margin-bottom: 12px; }
.single-product .product_title.entry-title {
  font-family: var(--ml-serif); font-size: clamp(32px, 4vw, 48px); font-weight: 500;
  line-height: 1.05; letter-spacing: -.01em; margin-bottom: 12px;
}
.single-product .woocommerce-product-details__short-description {
  color: var(--ml-mut); font-weight: 300; font-size: 15.5px; line-height: 1.75;
  margin-bottom: 26px; padding-bottom: 30px; border-bottom: 1px solid var(--ml-line);
}
.single-product div.product p.price, .single-product div.product span.price {
  color: var(--ml-ink); font-family: var(--ml-serif); font-size: 34px; font-weight: 500; margin-bottom: 20px;
}
/* promocja: stara cena przekreślona Jost + pigułka −X% (wzór .pdp-price z product.html) */
.single-product div.product p.price del, .single-product div.product span.price del {
  font-family: var(--ml-sans); font-weight: 300; font-size: 16px; color: var(--ml-label); opacity: 1;
}
.single-product div.product p.price ins, .single-product div.product span.price ins { text-decoration: none; font-weight: 500; }
.ml-save {
  display: inline-block; vertical-align: middle; font-family: var(--ml-sans); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: #7A6A4E; background: #E8DFCA;
  padding: 5px 10px; border-radius: 2px; margin-left: 10px;
}
/* pasek zaufania: 3 kolumny z ikonami (wzór .pdp-trust) */
.ml-trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--ml-line);
}
.ml-trust__item { display: flex; gap: 10px; align-items: flex-start; color: var(--ml-ink); }
.ml-trust__item svg { flex: 0 0 auto; margin-top: 1px; }
.ml-trust__item b { display: block; font-family: var(--ml-sans); font-weight: 400; font-size: 12.5px; color: var(--ml-ink); }
.ml-trust__item span { font-family: var(--ml-sans); font-weight: 300; font-size: 11.5px; color: var(--ml-soft); }
@media (max-width: 640px){ .ml-trust { grid-template-columns: 1fr; gap: 12px; } }
.single-product .product_meta { font-size: 12px; letter-spacing: .5px; color: var(--ml-soft); margin-top: 24px; }
/* meble nie mają SKU -> nie pokazuj "SKU: N/A" */
.single-product .product_meta .sku_wrapper { display: none; }

/* linia dostępności pod ceną */
.ml-availability {
  display: flex; align-items: center; gap: 8px; font-family: var(--ml-sans); font-size: 13.5px;
  color: var(--ml-mut); margin: -6px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--ml-line);
}
.ml-availability .ml-dot-ok { width: 8px; height: 8px; border-radius: 50%; background: #7E8B6B; display: inline-block; }

/* domyślny formularz wariacji Woo — brandowo (gdy produkt nie ma konfiguratora) */
.single-product .variations { border: none; margin: 0 0 8px; }
.single-product .variations th.label {
  font-family: var(--ml-sans); font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ml-label); font-weight: 500; vertical-align: middle; padding: 14px 16px 14px 0; width: 130px;
}
.single-product .variations td.value select {
  font-family: var(--ml-sans); font-size: 14px; color: var(--ml-ink);
  background: #fff; border: 1px solid var(--ml-line); border-radius: 3px; padding: 12px 14px; width: 100%;
}
.single-product .woocommerce-variation-price .price { font-size: 24px; margin: 8px 0; }
.single-product form.cart .quantity input.qty {
  height: 52px; width: 72px; text-align: center; border: 1px solid var(--ml-line); border-radius: 3px; background: #fff;
}
.single-product form.cart .single_add_to_cart_button {
  height: 52px; padding: 0 40px; font-size: 12.5px; letter-spacing: 2.5px; vertical-align: middle;
}
.single-product .woocommerce-variation-add-to-cart { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
/* zakładki opisu */
.woocommerce-tabs { grid-column: 1 / -1; margin-top: 40px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--ml-line); padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent; border: none; border-radius: 0; margin: 0 26px 0 0; padding: 0 0 12px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--ml-sans); font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ml-soft); font-weight: 400; padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ml-ink); border-bottom: 2px solid var(--ml-gold); padding-bottom: 10px; }
.woocommerce div.product .woocommerce-tabs .panel h2 { font-family: var(--ml-serif); }
/* usuń białą "poświatę" (domyślny box-shadow/tło motywu/Woo na panelu zakładek) */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-Tabs-panel {
  background: transparent !important; box-shadow: none !important; border: none !important; filter: none !important;
}
/* biała poświata = tło aktywnej zakładki (klasyczny "języczek" Woo) — wyzeruj */
.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active,
.woocommerce div.product .woocommerce-tabs ul.tabs li.description_tab,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active.description_tab {
  background: transparent !important; box-shadow: none !important; border-radius: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::after {
  display: none !important; border: none !important; box-shadow: none !important;
}
/* powiązane / upsells */
.woocommerce .related > h2, .woocommerce .upsells > h2 {
  font-family: var(--ml-serif); font-size: 34px; font-weight: 500; text-align: center; margin: 60px 0 30px;
}
.woocommerce .related ul.products, .woocommerce .upsells ul.products { grid-template-columns: repeat(4,1fr); }
@media (max-width:1024px){ .woocommerce .related ul.products, .woocommerce .upsells ul.products { grid-template-columns: repeat(2,1fr);} }

/* ==========================================================================
   KOSZYK
   ========================================================================== */
.woocommerce-cart .site-main h1, .woocommerce-cart .entry-title { text-align:center; font-size: clamp(34px,4vw,52px); margin-bottom: 34px; }
.woocommerce-cart table.cart, .woocommerce table.shop_table {
  border: 1px solid var(--ml-line); border-radius: 8px; border-collapse: separate; overflow: hidden; background: var(--ml-card);
}
.woocommerce table.shop_table th {
  font-family: var(--ml-sans); font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ml-soft); background: transparent; padding: 18px 20px; border-bottom: 1px solid var(--ml-line);
}
.woocommerce table.shop_table td { padding: 20px; border-top: 1px solid var(--ml-line); vertical-align: middle; }
.woocommerce-cart table.cart img { width: 78px; border-radius: 6px; }
.woocommerce-cart table.cart td.product-name a { font-family: var(--ml-serif); font-size: 19px; color: var(--ml-ink); }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce .cart_totals {
  background: var(--ml-card); border: 1px solid var(--ml-line); border-radius: 8px; padding: 8px 26px 26px;
}
.woocommerce-cart .cart_totals h2 { font-family: var(--ml-serif); font-size: 26px; }
.woocommerce .quantity input.qty {
  border: 1px solid var(--ml-line); border-radius: 3px; padding: 8px; background: #fff; color: var(--ml-ink);
}
/* #coupon_code ma wyższą specyficzność (ID) w bazowych stylach motywu niż nasza
   reguła klasowa — bez !important przegrywała, zostawiając fioletowawy border motywu. */
.woocommerce .coupon input.input-text {
  border: 1px solid var(--ml-line) !important; border-radius: 2px; padding: 13px 16px; background: #fff;
}
.woocommerce .coupon input.input-text:focus { border-color: var(--ml-ink) !important; outline: none; }

/* × usuń pozycję: domyślnie czerwony okrąg WooCommerce — wygaszony do neutralnego,
   czerwień tylko na hover (akcja niszcząca, ale nie musi straszyć w spoczynku) */
.woocommerce a.remove {
  color: var(--ml-soft) !important; border: 1px solid var(--ml-line);
  transition: color .2s, border-color .2s, background-color .2s;
}
.woocommerce a.remove:hover {
  color: #fff !important; background-color: #B3261E !important; border-color: #B3261E;
}

/* "Oblicz koszty wysyłki" i inne linki-akcje w koszyku: podkreślenie zamiast koloru linku motywu */
.woocommerce-cart .shipping-calculator-button {
  color: var(--ml-ink); text-decoration: none; border-bottom: 1px solid var(--ml-ink); padding-bottom: 1px;
}
.woocommerce-cart .shipping-calculator-button:hover { color: var(--ml-gold); border-color: var(--ml-gold); }

/* ==========================================================================
   CHECKOUT / KONTO (delikatny polish – blokowy checkout ma własne style)
   ========================================================================== */
.woocommerce-checkout .site-main h1 { text-align:center; font-size: clamp(32px,4vw,48px); margin-bottom: 26px; }
.wc-block-components-title, .wc-block-checkout__actions .wc-block-components-checkout-place-order-button {
  font-family: var(--ml-sans);
}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce-account input {
  border: 1px solid var(--ml-line); border-radius: 2px; padding: 13px 15px; background: #fff; color: var(--ml-ink);
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus {
  border-color: var(--ml-ink); outline: none;
}
/* Moje konto: dwukolumnowy layout (sidebar nawigacji + treść), wzór .ml-cat-list z sidebaru sklepu */
.woocommerce-account .woocommerce-MyAccount-content { max-width: none; }
@media (min-width: 769px) {
  .woocommerce-account .woocommerce-MyAccount-navigation { float: left; width: 230px; }
  .woocommerce-account .woocommerce-MyAccount-content { float: right; width: calc(100% - 264px); }
  .woocommerce-account::after { content: ""; display: table; clear: both; }
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation-link {
  border-bottom: 1px solid var(--ml-line);
}
.woocommerce-account .woocommerce-MyAccount-navigation-link a {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ml-sans); font-size: 14.5px; color: var(--ml-ink); text-decoration: none;
  padding: 13px 0; transition: color .18s, padding-left .18s;
}
.woocommerce-account .woocommerce-MyAccount-navigation-link a:hover { color: var(--ml-gold); padding-left: 4px; }
.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a { color: var(--ml-gold); }
.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a::after { content: "•"; color: var(--ml-gold); }
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout { border-bottom: none; margin-top: 8px; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--ml-soft); }

/* tabela zamówień w koncie — spójna z resztą shop_table */
.woocommerce-orders-table__cell-order-actions .button {
  padding: 8px 16px !important; font-size: 11px !important; letter-spacing: 1.6px !important;
}
.woocommerce-MyAccount-orders .order-status { font-family: var(--ml-sans); }

/* pola formularzy w koncie (adresy, dane, hasło) — etykiety jak reszta sklepu */
.woocommerce-account .woocommerce-MyAccount-content label { font-family: var(--ml-sans); font-size: 14px; color: var(--ml-mut); }
.woocommerce-account .woocommerce-MyAccount-content h3 { font-family: var(--ml-serif); font-weight: 500; }
.woocommerce-account .addresses .title h3 { font-size: 22px; }
.woocommerce-account .addresses .edit { color: var(--ml-ink); border-bottom: 1px solid var(--ml-ink); text-decoration: none; }
.woocommerce-account .addresses .edit:hover { color: var(--ml-gold); border-color: var(--ml-gold); }
@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation { margin-bottom: 30px; }
}

/* metody płatności: karty zamiast gołej listy radio (domyślny wygląd Woo) */
.woocommerce ul.payment_methods { border: none; padding: 0; }
.woocommerce ul.payment_methods > li.wc_payment_method {
  border: 1px solid var(--ml-line); border-radius: 4px; padding: 16px 18px; margin-bottom: 10px;
  background: var(--ml-card); transition: border-color .2s;
}
.woocommerce ul.payment_methods > li.wc_payment_method:has(input:checked) { border-color: var(--ml-ink); }
.woocommerce ul.payment_methods > li.wc_payment_method label { font-family: var(--ml-sans); color: var(--ml-ink); }
.woocommerce ul.payment_methods > li.wc_payment_method .payment_box {
  background: transparent; border: none; margin: 10px 0 0; padding: 0 0 0 26px;
  font-size: 13.5px; color: var(--ml-mut);
}
.woocommerce ul.payment_methods > li.wc_payment_method .payment_box::before { display: none; }

/* ==========================================================================
   KOMUNIKATY / NOTICE
   ========================================================================== */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
  border-top-color: var(--ml-gold); background: var(--ml-cream); color: var(--ml-ink); border-radius: 4px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--ml-gold); }

/* ==========================================================================
   MINI-KOSZYK (Elementor Pro woocommerce-menu-cart widget w headerze)
   ========================================================================== */
.elementor-menu-cart__container.elementor-lightbox { background: rgba(32,30,26,.55) !important; backdrop-filter: blur(2px); }
.elementor-menu-cart__main {
  background: var(--ml-cream) !important; box-shadow: -20px 0 50px -20px rgba(0,0,0,.4);
  padding: 28px 26px !important; display: flex; flex-direction: column;
}
.elementor-menu-cart__close-button {
  position: absolute; top: 18px; right: 22px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ml-panel); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.elementor-menu-cart__close-button svg { width: 14px; height: 14px; fill: var(--ml-ink); }
.elementor-menu-cart__products { margin-top: 20px; }
.elementor-menu-cart__product {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--ml-line);
}
.elementor-menu-cart__product-image img { border-radius: 8px; width: 64px; height: 64px; object-fit: cover; }
.elementor-menu-cart__product .elementor-menu-cart__product-name,
.elementor-menu-cart__product-name.product-name {
  font-family: var(--ml-serif) !important; font-size: 15.5px !important; line-height: 1.3; margin: 0;
}
.elementor-menu-cart__product-name a,
.elementor-menu-cart__product-name.product-name a {
  color: var(--ml-ink) !important; text-decoration: none; font-family: var(--ml-serif) !important; font-size: 15.5px !important;
}
.elementor-menu-cart__product-name a:hover { color: var(--ml-gold) !important; }
.elementor-menu-cart__product-name dl.variation {
  margin: 6px 0 0; display: block; font-family: var(--ml-sans) !important;
}
.elementor-menu-cart__product-name dl.variation dt,
.elementor-menu-cart__product-name dl.variation dd {
  display: inline; font-family: var(--ml-sans) !important; font-size: 11.5px !important;
  color: var(--ml-soft) !important; font-weight: 400 !important; float: none; clear: none;
}
.elementor-menu-cart__product-name dl.variation dd p { display: inline; margin: 0; }
.elementor-menu-cart__product-name dl.variation dd::after { content: "\A"; white-space: pre; }
.elementor-menu-cart__product-meta,
.elementor-menu-cart__product-meta .variation { font-family: var(--ml-sans); font-size: 12px; color: var(--ml-soft); }
.elementor-menu-cart__product-price {
  font-family: var(--ml-sans); font-size: 13.5px; color: var(--ml-ink) !important; text-align: right; white-space: nowrap;
}
.elementor-menu-cart__product-price .woocommerce-Price-amount { color: var(--ml-ink) !important; font-weight: 500; }
.elementor-menu-cart__product-price .product-quantity { color: var(--ml-soft); }
.elementor-menu-cart__product-remove { grid-column: 1 / -1; justify-self: end; margin-top: -6px; }
.elementor-menu-cart__product-remove a {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--ml-panel); color: var(--ml-ink) !important; font-size: 13px; line-height: 1;
}
.elementor-menu-cart__product-remove a:hover { background: var(--ml-dark); color: var(--ml-cream) !important; }
.elementor-menu-cart__subtotal {
  font-family: var(--ml-sans); display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0; margin-top: auto; border-top: 1px solid var(--ml-line);
}
.elementor-menu-cart__subtotal strong { font-family: var(--ml-serif); font-weight: 500; font-size: 15px; color: var(--ml-ink); }
.elementor-menu-cart__subtotal .woocommerce-Price-amount { font-family: var(--ml-serif); font-size: 22px; color: var(--ml-ink); }
.elementor-menu-cart__footer-buttons { display: flex; gap: 10px; }
.elementor-menu-cart__footer-buttons .elementor-button {
  flex: 1; font-family: var(--ml-sans) !important; font-size: 12px !important; letter-spacing: 1.6px !important;
  text-transform: uppercase; border-radius: 2px !important; padding: 14px 10px !important; text-align: center;
}
.elementor-menu-cart__footer-buttons .elementor-button--view-cart {
  background: transparent !important; color: var(--ml-ink) !important; border: 1px solid var(--ml-line) !important;
}
.elementor-menu-cart__footer-buttons .elementor-button--checkout {
  background: var(--ml-dark) !important; color: var(--ml-cream) !important; border: 1px solid var(--ml-dark) !important;
}
.elementor-menu-cart__footer-buttons .elementor-button:hover { opacity: .85; }
/* pusty koszyk */
.elementor-menu-cart__main .woocommerce-mini-cart__empty-message {
  font-family: var(--ml-sans); color: var(--ml-mut); text-align: center; margin-top: 60px; font-size: 14px;
}

/* ==========================================================================
   HOMEPAGE — animacje hover na kartach (kategorie + wyróżnione produkty)
   Zoom tła realizowany przez ::before z background-image:inherit (nie skaluje
   tekstu/etykiet), warstwy: bg < ::before(0) < overlay(1) < treść(2).
   ========================================================================== */
.ml-card { position: relative; transition: box-shadow .5s cubic-bezier(.19,1,.22,1); }
/* nakładka-link (widget html z <a inset:0>) musi się rozciągać na całą kartę.
   Elementor nadaje position:relative kolumnie ORAZ wrapperowi widgetu — obie te
   warstwy mają height:auto (zapadają się do wysokości treści, nie karty), więc
   <a inset:0> łapał je jako containing block zamiast całej karty. Neutralizuj
   position na całym łańcuchu aż do .ml-card (które ma position:relative + realną
   wysokość), żeby <a> rozciągnęło się na 100% karty. content_position:'bottom'
   w Elementorze jest realizowany flexboxem, nie position:absolute — bezpieczne. */
.ml-card .elementor-column,
.ml-card .elementor-widget-wrap,
.ml-card .elementor-widget-html,
.ml-card .elementor-widget-html .elementor-widget-container {
  position: static;
}
.ml-card .elementor-widget-html a[href][style*="position:absolute"] {
  z-index: 9 !important;
}
.ml-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: inherit; background-size: cover; background-position: center center;
  transition: transform .85s cubic-bezier(.19,1,.22,1); transform-origin: center; will-change: transform;
}
.ml-card > .elementor-container { position: relative; z-index: 2; }
.ml-card > .elementor-background-overlay { z-index: 1; }
.ml-card:hover::before { transform: scale(1.09); }

/* karty kategorii — cień + etykieta delikatnie w górę */
.ml-card--cat:hover { box-shadow: 0 26px 52px -22px rgba(42,39,34,.58); }
.ml-card--cat .elementor-widget-heading { transition: transform .5s cubic-bezier(.19,1,.22,1); }
.ml-card--cat:hover .elementor-widget-heading { transform: translateY(-6px); }

/* karty produktów — cała kolumna unosi się, cień na obrazie, nazwa → złoto */
.ml-prod-col { transition: transform .5s cubic-bezier(.19,1,.22,1); }
.ml-prod-col:hover { transform: translateY(-9px); }
.ml-prod-col:hover .ml-card--prod-img { box-shadow: 0 26px 52px -22px rgba(42,39,34,.58); }
.ml-prod-col .elementor-heading-title a { transition: color .35s ease; }
.ml-prod-col:hover .elementor-heading-title a { color: var(--ml-gold); }
@media (hover: none) { /* na dotyku bez unoszenia/zoomu (uniknięcie „przyklejonych" stanów) */
  .ml-card:hover::before { transform: none; }
  .ml-prod-col:hover { transform: none; }
}

/* ==========================================================================
   HOMEPAGE — scroll reveal + przyciski + nagłówek (feel z index.html)
   Klasy .ml-reveal/.ml-reveal-stagger nadaje JS (wp_footer, tylko front page)
   — bez JS nic nie jest ukryte (progressive enhancement).
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .ml-reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 1s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1);
    will-change: opacity, transform;
  }
  .ml-reveal.ml-in { opacity: 1; transform: none; }
  /* sekcje wielokolumnowe: sekcja widoczna, kolumny wjeżdżają kaskadą */
  .ml-reveal-stagger > .elementor-container > .elementor-column {
    opacity: 0; transform: translateY(30px);
    transition: opacity .85s cubic-bezier(.22,1,.36,1), transform .85s cubic-bezier(.22,1,.36,1);
    will-change: opacity, transform;
  }
  .ml-reveal-stagger.ml-in > .elementor-container > .elementor-column { opacity: 1; transform: none; }
  .ml-reveal-stagger.ml-in > .elementor-container > .elementor-column:nth-child(1) { transition-delay: 0ms; }
  .ml-reveal-stagger.ml-in > .elementor-container > .elementor-column:nth-child(2) { transition-delay: 85ms; }
  .ml-reveal-stagger.ml-in > .elementor-container > .elementor-column:nth-child(3) { transition-delay: 170ms; }
  .ml-reveal-stagger.ml-in > .elementor-container > .elementor-column:nth-child(4) { transition-delay: 255ms; }
  .ml-reveal-stagger.ml-in > .elementor-container > .elementor-column:nth-child(5) { transition-delay: 340ms; }
  .ml-reveal-stagger.ml-in > .elementor-container > .elementor-column:nth-child(6) { transition-delay: 425ms; }
}

/* ==========================================================================
   HERO SLIDESHOW (Elementor slides) — wygląd 1:1 z sekcji .mlss w index.html
   ========================================================================== */
.home .elementor-widget-slides .swiper-slide { height: 86vh !important; min-height: 600px; }
/* overlay: kierunkowy gradient od lewej (jak .mlss-slide::after) zamiast płaskiego
   przyciemnienia — nadpisuje background overlay slajdu z Elementora */
.home .elementor-widget-slides .swiper-slide .elementor-background-overlay {
  background: linear-gradient(90deg, rgba(22,20,16,.74) 0%, rgba(22,20,16,.5) 44%, rgba(22,20,16,.14) 76%, rgba(22,20,16,0) 100%) !important;
  opacity: 1 !important;
}
/* treść: wyrównana do LEWEJ w siatce 1340px (jak .mlss-content). !important — Elementor
   ustawia content alignment (center) inline/klasą, więc bez tego treść wracała na środek. */
.home .elementor-widget-slides .swiper-slide-inner {
  max-width: 1340px !important; margin: 0 auto !important; padding: 0 72px !important;
  display: flex !important; align-items: center !important; justify-content: flex-start !important; text-align: left !important;
}
.home .elementor-widget-slides .swiper-slide-contents {
  max-width: 640px !important; margin: 0 !important; text-align: left !important; align-items: flex-start !important;
}
.home .elementor-slide-heading {
  font-family: var(--ml-serif) !important; font-weight: 500 !important;
  font-size: clamp(46px, 5.6vw, 78px) !important; line-height: 1.03 !important;
  letter-spacing: -.01em; color: #FBF8F2 !important; margin: 0 0 22px;
}
.home .elementor-slide-description {
  font-family: var(--ml-sans) !important; font-weight: 300 !important;
  font-size: 16.5px !important; line-height: 1.65 !important; color: #ECE6DA !important;
  max-width: 430px; margin: 0 0 36px;
}
/* przycisk: kremowy solid (jak .mlss-btn) */
.home .elementor-slide-button {
  display: inline-flex; align-items: center; gap: 11px;
  background: #F4EFE6 !important; color: #2A2722 !important; border: none !important;
  font-family: var(--ml-sans) !important; font-weight: 400 !important; font-size: 12.5px !important;
  letter-spacing: .2em !important; text-transform: uppercase; padding: 17px 34px !important;
  border-radius: 2px !important; transition: background .3s ease, transform .3s ease;
}
.home .elementor-slide-button:hover { background: #FFFDF8 !important; transform: translateY(-2px); }
/* para przycisków w rzędzie (JS opakowuje przycisk + dokłada ghost) */
.home .ml-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.home .ml-hero-btns .elementor-slide-button { margin: 0 !important; }
/* ghost (2. przycisk): przezroczysty z obwódką (jak .mlss-btn.ghost) */
.home .ml-hero-ghost {
  display: inline-flex; align-items: center; gap: 11px;
  background: transparent; color: #F4EFE6; border: 1px solid rgba(244,239,230,.55);
  font-family: var(--ml-sans); font-weight: 400; font-size: 12.5px;
  letter-spacing: .2em; text-transform: uppercase; padding: 17px 34px;
  border-radius: 2px; text-decoration: none; transition: background .3s ease, transform .3s ease;
}
.home .ml-hero-ghost:hover { background: rgba(244,239,230,.12); color: #F4EFE6; transform: translateY(-2px); }

/* dolny pasek: licznik "01 / 03" + tor postępu (jak .mlss-bar) */
.home .elementor-widget-slides .elementor-slides-wrapper { position: relative; }
.home .ml-hero-bar {
  position: absolute; left: 0; bottom: 0; z-index: 5; width: 100%;
  padding: 0 72px 40px; pointer-events: none;
}
.home .ml-hero-bar-inner {
  max-width: 1340px; margin: 0 auto; display: flex; align-items: center; gap: 24px; color: #F4EFE6;
}
.home .ml-hero-count { font-family: var(--ml-serif); font-size: 18px; letter-spacing: .05em; min-width: 74px; }
.home .ml-hero-count b { font-weight: 500; }
.home .ml-hero-count i { opacity: .5; font-style: normal; }
.home .ml-hero-track { flex: 1; max-width: 230px; height: 1px; background: rgba(244,239,230,.28); position: relative; overflow: hidden; }
.home .ml-hero-track span { position: absolute; left: 0; top: 0; height: 100%; background: #F4EFE6; transition: transform .6s cubic-bezier(.22,1,.36,1); }
@media (max-width: 900px) {
  .home .ml-hero-bar { padding: 0 24px 24px; }
}

/* strzałki: okrągłe outline przy dolnej krawędzi po prawej (jak .mlss-nav) */
.home .elementor-widget-slides .elementor-swiper-button {
  width: 46px; height: 46px; border: 1px solid rgba(244,239,230,.55); border-radius: 50%;
  background: transparent; color: #F4EFE6; display: flex; align-items: center; justify-content: center;
  top: auto; bottom: 40px; transform: none;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.home .elementor-widget-slides .elementor-swiper-button:hover { background: #F4EFE6; color: #2A2722; border-color: #F4EFE6; }
.home .elementor-widget-slides .elementor-swiper-button svg { width: 17px; height: 17px; fill: currentColor; }
.home .elementor-widget-slides .elementor-swiper-button i { font-size: 17px; }
.home .elementor-widget-slides .elementor-swiper-button-next { left: auto; right: max(72px, calc((100% - 1340px) / 2 + 72px)); }
.home .elementor-widget-slides .elementor-swiper-button-prev { left: auto; right: max(127px, calc((100% - 1340px) / 2 + 127px)); }
@media (max-width: 900px) {
  .home .elementor-widget-slides .swiper-slide { height: 78vh !important; min-height: 520px; }
  .home .elementor-widget-slides .swiper-slide-inner { padding: 0 24px; }
  .home .elementor-widget-slides .elementor-swiper-button { display: none; }
}

/* przyciski na homepage: płynny lift + cień na hover (wzór .ml-btn z index.html) */
.home .elementor-button { transition: background .25s ease, transform .25s ease, box-shadow .25s ease, color .25s ease, border-color .25s ease; }
.home .elementor-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(42,39,34,.10); }

/* ikona "Moje konto" w headerze — obok koszyka, wstrzykiwana JS-em (patrz functions.php) */
.ml-account-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-right: 12px; color: var(--ml-ink);
  transition: color .2s ease;
}
.ml-account-link:hover { color: var(--ml-gold); }

/* lupka wyszukiwania w headerze — obok konta/koszyka, wstrzykiwana JS-em */
.ml-search { position: relative; margin-right: 12px; }
.ml-search__toggle,
.ml-search__toggle:hover,
.ml-search__toggle:focus,
.ml-search__toggle:active,
.ml-search__toggle:focus-visible {
  /* !important: reset.css motywu ma "[type=button]:focus,[type=button]:hover,...
     {background-color:rgb(204,51,102)}" (ten sam różowy akcent co w mlk-opt wcześniej
     w sesji) — ta sama specyficzność co nasza klasa+pseudo, więc bez !important
     wygrywało losowo wg kolejności ładowania arkuszy. */
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; background-color: transparent !important; border: none; padding: 0; cursor: pointer;
  color: var(--ml-ink) !important; outline: none; transition: color .2s ease;
}
.ml-search__toggle:hover, .ml-search__toggle[aria-expanded="true"] { color: var(--ml-gold) !important; }
.ml-search__toggle:focus-visible { box-shadow: 0 0 0 3px var(--ml-gold); }
.ml-search__panel {
  position: absolute; right: 0; top: calc(100% + 14px); width: 320px;
  background: #fff; border-radius: 12px; padding: 14px;
  box-shadow: 0 20px 50px -12px rgba(42,39,34,.4); border: 1px solid var(--ml-line);
  align-items: center; gap: 10px;
}
/* [hidden] MUSI wygrywać z .ml-search__panel{display:flex} poniżej — obie reguły mają tę
   samą specyficzność (1 klasa/atrybut), a nasz arkusz ładuje się PO domyślnym stylu
   przeglądarki [hidden]{display:none}, więc bez tego panel był zawsze widoczny mimo
   atrybutu hidden ustawionego w JS (otwierał się sam przy każdym wejściu na stronę). */
.ml-search__panel[hidden] { display: none; }
.ml-search__panel:not([hidden]) { display: flex; }
.ml-search__input {
  flex: 1; border: 1px solid var(--ml-line); border-radius: 2px; background: #fff;
  padding: 12px 14px; font-family: var(--ml-sans); font-size: 14px; color: var(--ml-ink);
}
.ml-search__input::placeholder { color: var(--ml-soft); }
.ml-search__input:focus { outline: none; border-color: var(--ml-ink); }
.ml-search__submit {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 2px; border: 1px solid var(--ml-dark);
  background: var(--ml-dark); color: var(--ml-cream); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.ml-search__submit:hover { background: var(--ml-gold); border-color: var(--ml-gold); }
@media (max-width: 480px) {
  /* na wąskim ekranie nav chowa się w hamburger, więc ikona lupki nie zawsze
     siedzi przy prawej krawędzi — anchor "right:-Xpx" względem .ml-search
     potrafił wypchnąć panel poza lewą krawędź ekranu. Fixed + left/right
     względem viewportu jest niezawodne niezależnie od pozycji ikony. */
  .ml-search__panel { position: fixed; top: 86px; left: 14px; right: 14px; width: auto; }
}

/* Nagłówek: BEZ własnego tła/blur — celowo. Mrożone szkło (bg .92 + backdrop-blur) zostało
   dodane i WYCOFANE na prośbę klienta: przy jakimkolwiek rozjeździe szerokości sticky sekcji
   tworzyło widoczny szary "kwadrat", a przezroczysty nagłówek (natywne .82 z szablonu
   Elementora) taki sam rozjazd maskował i wyglądał dobrze. Nie przywracać bez ustalenia. */
/* FIX szerokości sticky nagłówka: Elementor przy uruchomieniu sticky wpisuje INLINE
   `width: <px>` (= clientWidth w tamtej chwili) i NIE przelicza go przy resize okna ani
   gdy pasek przewijania znika (krótka strona jak /moje-konto/). Efekt: przy szerszym oknie
   nagłówek urywał się, zostawiając jasny pas po prawej.
   Reguła BEZWARUNKOWA (nie wymaga klasy .elementor-sticky--active): Elementor ma krótkie
   okno gdy sekcja jest już position:fixed ze stałą inline-szerokością, ale JESZCZE bez klasy
   --active — wtedy zawężona reguła nie łapała i bug wracał. left/right/width:auto z !important
   działa w KAŻDYM stanie: gdy sekcja jest static (nagłówek na górze, przed sticky) left/right
   są ignorowane a width:auto = pełna szerokość (bez zmian); gdy fixed — rozciąga na aktualny
   viewport (inner container ma własny max-width i zostaje wyśrodkowany). */
/* TYLKO sekcja główna (.elementor-top-section) — wcześniejszy selektor bez tego
   zawężenia łapał też WEWNĘTRZNĄ sekcję nagłówka (wiersz logo+menu+ikony), a że
   siedzi ona we flexowym widget-wrapie, width:auto!important kurczył ją do
   szerokości treści (~897px) i kleił do lewej. Na 1265px niewidoczne (treść ≈
   dostępna szerokość), na szerokich ekranach (1900px) cały nagłówek wyglądał na
   przyklejony do lewej z pustką po prawej. */
.elementor-location-header .elementor-section.elementor-top-section {
  width: auto !important; left: 0 !important; right: 0 !important;
}
/* wiersz nagłówka BOXED: wyrównany do siatki treści strony (1340px z paddingiem 72px
   → 1196px światła), wyśrodkowany. width:100% pilnuje, żeby wiersz nie kurczył się do
   treści (flex parent), max-width ogranicza go do siatki — logo zaczyna się dokładnie
   na linii tekstu hero ((vw−1340)/2+72), ikony kończą na prawej linii siatki.
   TYLKO ≥1025px: poniżej Elementor przestawia kolumny nagłówka na własny układ
   responsywny (hamburger) — wymuszanie tam width:100% rozpychało wiersz do 440px
   przy ekranie 375px i robiło poziomy scroll. Wąskie ekrany zostawiamy Elementorowi. */
@media (min-width: 1025px) {
  .elementor-location-header .elementor-inner-section {
    width: 100% !important;
    max-width: 1196px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* ==========================================================================
   PASEK OGŁOSZENIOWY — animowany marquee (wzór .ml-mob-marquee z index.html)
   Treść duplikowana JS-em (patrz functions.php), animacja przesuwa track o -50%:
   przy parzystej liczbie identycznych kopii druga połowa trafia dokładnie tam,
   gdzie startowała pierwsza → pętla bez skoku. Odstęp między kopiami robimy
   PADDINGIEM kopii, nie gap-em na tracku — gap nie wchodzi w te 50% i psułby
   bezszwowość (przeskok o połowę odstępu przy każdym cyklu).
   ========================================================================== */
.ml-marquee { overflow: hidden; width: 100%; }
.ml-marquee__track {
  display: flex; width: max-content; animation: mlMarquee linear infinite;
  will-change: transform;
}
.ml-marquee__copy { flex: 0 0 auto; white-space: nowrap; padding-right: 56px; }
.ml-marquee__copy p { margin: 0 !important; white-space: nowrap; }
@keyframes mlMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* a11y: użytkownicy z ograniczoną animacją widzą pasek statycznie */
@media (prefers-reduced-motion: reduce) {
  .ml-marquee__track { animation: none; }
}

/* kolumna ikon (lupka/konto/koszyk): szablon nagłówka ma w _elementor_data ustawione
   width:3% (post-8053.css, z wcześniejszych ręcznych edycji w Elementorze) = ~54px przy
   pełnej szerokości — ikony się nie mieściły i przycisk koszyka wystawał poza ekran
   (scroll poziomy). Wcześniej maskowane, bo cały wiersz był błędnie zwężony do treści.
   width:auto + min-width:max-content = kolumna zawsze dokładnie na szerokość ikon,
   dosunięta do prawej (sąsiednia kolumna menu ma flex-grow i pochłania wolną przestrzeń). */
/* również tylko ≥1025px — na wąskich ekranach min-width:max-content na kolumnie ikon
   rozpychał wiersz nagłówka poza viewport (poziomy scroll na 375px) */
@media (min-width: 1025px) {
  .elementor-location-header .elementor-column:has(.elementor-widget-woocommerce-menu-cart) {
    width: auto !important; min-width: max-content !important; flex-shrink: 0 !important;
  }
}
/* FIX: menu nawigacyjne (Home/Sklep/O nas/.../Próbki tkanin) łamało się na 2 linie —
   kolumna z menu ma u Elementora szerokość liczoną jako 55% (klasa elementor-col-55)
   kontenera nagłówka, co przy 6 pozycjach z "Próbki tkanin" dawało za mało miejsca na
   jedną linię (obserwowana rozbieżność: lokalnie 638px, na serwerze 502px przy
   identycznym kodzie — 55% RÓŻNYCH całkowitych szerokości kontenera).

   PIERWSZA PRÓBA (width:auto + flex:0 0 auto na kolumnie) była BŁĘDNA — nadpisanie
   flex-basis usuwało kolumnę z procentowego rozkładu przestrzeni całego wiersza,
   co przesuwało jej LEWĄ krawędź (zaczynała się od razu po logo, zamiast z odstępem
   wynikającym z 55%-owego podziału) — menu nachodziło na logo. Poprawka: NIE ruszać
   width/flex w ogóle (zostaw naturalny procentowy flex-basis, który poprawnie
   pozycjonuje lewą krawędź) — dać tylko min-width jako twardą dolną granicę. Flex
   nadal liczy bazę z 55%, ale nigdy nie skurczy kolumny poniżej 620px, więc treść
   (607px) mieści się bez wylewania się w prawo na lupkę/konto/koszyk. */
/* nowrap tylko tam gdzie kolumna dostaje wymuszoną szerokość (≥1025px) — poniżej
   pozwalamy Elementorowi zwijać/łamać naturalnie, żeby nie wypychać treści poza ekran */
@media (min-width: 1025px) {
  .elementor-location-header ul.elementor-nav-menu {
    flex-wrap: nowrap !important;
  }
}
/* Rozwiązanie: min-width = realna potrzeba treści (max-content) — kolumna nigdy nie
   kurczy się poniżej tego, co menu faktycznie zajmuje, ale ZACHOWUJE swoją procentową
   bazę flex, gdy miejsca jest więcej (a więc i naturalny odstęp od logo).
   Odrzucone alternatywy (obie sprawdzone empirycznie na żywym DOM):
   - width:auto / flex:0 0 auto → kolumna wypadała z procentowego podziału i przyklejała
     się do logo (gapLogoToHome = 0)
   - width:max-content → to samo, kolumna kurczyła się do samej treści (gap = -11px)
   min-width pozwala rosnąć powyżej potrzeby (zachowuje odstęp) i blokuje kurczenie
   poniżej (brak nachodzenia na lupkę). Poniżej 768px menu chowa się w hamburger,
   więc reguła obowiązuje tylko tam, gdzie renderuje się pozioma lista. */
/* Próg 1025px, NIE 768px: przy 768px pozioma lista (6 pozycji ≈ 607px) po prostu nie
   mieści się obok logo i ikon w kontenerze ~753px — min-width:max-content wypychał
   wtedy zawartość poza ekran (zmierzone: scrollWidth 1039 przy clientWidth 753).
   W zakresie 768–1024px zostawiamy layout Elementorowi (menu może się tam zwęzić
   naturalnie), a wymuszamy jedną wyśrodkowaną linię dopiero tam, gdzie jest na nią
   realnie miejsce. */
@media (min-width: 1025px) {
  .elementor-location-header .elementor-column:has(.elementor-widget-nav-menu) {
    flex-grow: 1 !important;          /* zabierz całą wolną przestrzeń między logo a ikonami */
    min-width: max-content !important; /* ale nigdy nie kurcz się poniżej realnej treści */
  }
  /* menu wyśrodkowane w tej przestrzeni (Elementor ma align-center, ale przy kolumnie
     zwężonej do treści nie miał go gdzie zastosować) */
  .elementor-location-header ul.elementor-nav-menu {
    justify-content: center !important;
  }
}

/* karty kategorii: etykieta przy dolnej krawędzi nad gradientem (wzór index.html
   left/bottom ~24px). Kontener karty jest flexowy i CENTRUJE niską kolumnę z etykietą
   w pionie — dosuwamy ją do dołu. */
/* !important: bije .elementor-section-content-middle > .elementor-container (align-items:center) */
.ml-card--cat > .elementor-container { align-items: flex-end !important; }
.ml-card--cat > .elementor-container > .elementor-column > .elementor-widget-wrap { padding-bottom: 24px; }

/* linki-strzałki ("Wszystkie kategorie →", "Zobacz produkty →" — <a> w widgetach
   text-editor z inline'owym kolorem/podkreśleniem, stąd !important na hover) */
.home [data-elementor-type="wp-page"] .elementor-widget-text-editor a {
  display: inline-block;
  transition: color .25s ease, border-color .25s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.home [data-elementor-type="wp-page"] .elementor-widget-text-editor a:hover {
  color: var(--ml-gold) !important; border-color: var(--ml-gold) !important;
  transform: translateX(5px);
}

/* swatche tkanin w sekcji "Dotknij, zanim zdecydujesz" — pop jak .ml-swatch z index.html */
.home .elementor-element-704b20fa span {
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.home .elementor-element-704b20fa span:hover {
  transform: translateY(-4px) scale(1.06); box-shadow: 0 8px 22px rgba(42,39,34,.14);
}

/* kółka procesu 01/02/03 — puls jak .ml-step-circle z index.html (wyższa specyficzność
   niż ogólny lift .home .elementor-button, więc scale wygrywa w tej sekcji) */
.home .elementor-element-706661a5 .elementor-widget-button .elementor-button {
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, background .25s ease;
}
.home .elementor-element-706661a5 .elementor-widget-button .elementor-button:hover {
  transform: scale(1.1); box-shadow: 0 8px 30px rgba(42,39,34,.12);
}

/* karty opinii ("Pokochali MebloLove") — uniesienie + cień jak .ml-card-hover z index.html */
.home .elementor-element-7073a3b3 > .elementor-container > .elementor-column > .elementor-widget-wrap {
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.home .elementor-element-7073a3b3 > .elementor-container > .elementor-column:hover > .elementor-widget-wrap {
  transform: translateY(-6px); box-shadow: 0 18px 50px rgba(42,39,34,.10);
}

@media (hover: none) { /* na dotyku bez transformów (uniknięcie „przyklejonych" stanów) */
  .home [data-elementor-type="wp-page"] .elementor-widget-text-editor a:hover,
  .home .elementor-element-704b20fa span:hover,
  .home .elementor-element-706661a5 .elementor-widget-button .elementor-button:hover,
  .home .elementor-element-7073a3b3 > .elementor-container > .elementor-column:hover > .elementor-widget-wrap {
    transform: none; box-shadow: none;
  }
}

/* ==========================================================================
   BANER ZGÓD (Consent Mode v2 / RODO)
   ========================================================================== */
.ml-consent {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 9500; max-width: 640px; margin: 0 auto;
  background: var(--ml-dark); color: var(--ml-cream); border-radius: 12px; padding: 20px 24px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.5); font-family: var(--ml-sans);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between;
}
.ml-consent__text { font-size: 13.5px; line-height: 1.6; color: #D8D2C4; margin: 0; flex: 1 1 320px; }
.ml-consent__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.ml-consent__btn {
  font-family: var(--ml-sans); font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  padding: 11px 18px; border-radius: 2px; border: 1px solid var(--ml-cream); background: var(--ml-cream);
  color: var(--ml-dark); cursor: pointer; white-space: nowrap;
}
.ml-consent__btn--ghost { background: transparent; color: var(--ml-cream); }
@media (max-width: 640px) { .ml-consent { left: 10px; right: 10px; bottom: 10px; padding: 16px; } }
.ml-consent[hidden] { display: none !important; }

/* ==========================================================================
   FLOATING HELP — stały przycisk pomocy (wzór Vongai)
   ========================================================================== */
.ml-help { position: fixed; right: 22px; bottom: 22px; z-index: 9000; font-family: var(--ml-sans); transition: opacity .15s ease, visibility .15s ease; }
.ml-help.ml-help--cart-open { opacity: 0; visibility: hidden; pointer-events: none; }
.ml-help__toggle {
  display: flex; align-items: center; gap: 10px; background: var(--ml-dark); color: var(--ml-cream);
  border: none; border-radius: 999px; padding: 14px 20px 14px 14px; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(42,39,34,.5); transition: transform .2s, box-shadow .2s;
}
.ml-help__toggle,
.ml-help__toggle:hover,
.ml-help__toggle:focus,
.ml-help__toggle:active,
.ml-help__toggle:focus-visible {
  background: var(--ml-dark) !important; color: var(--ml-cream) !important; outline: none !important;
}
.ml-help__toggle:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(42,39,34,.6); }
.ml-help__toggle:focus-visible { box-shadow: 0 0 0 3px var(--ml-gold), 0 14px 36px -10px rgba(42,39,34,.6); }
.ml-help__icon {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ml-gold); color: var(--ml-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex: 0 0 auto;
}
.ml-help__label { font-size: 13px; letter-spacing: .3px; white-space: nowrap; }
.ml-help__panel {
  position: absolute; right: 0; bottom: calc(100% + 12px); width: 260px;
  background: var(--ml-cream); border-radius: 12px; padding: 18px;
  box-shadow: 0 20px 50px -12px rgba(42,39,34,.4); border: 1px solid var(--ml-line);
}
.ml-help__title { font-family: var(--ml-serif); font-size: 18px; margin: 0 0 12px; color: var(--ml-ink); }
.ml-help__row {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 0; text-decoration: none;
  border-top: 1px solid var(--ml-line);
}
.ml-help__row:first-of-type { border-top: none; }
.ml-help__row-label { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ml-label); }
.ml-help__row-value { font-size: 14.5px; color: var(--ml-ink); }
.ml-help__row:hover .ml-help__row-value { color: var(--ml-gold); }
@media (max-width: 640px) {
  .ml-help { right: 14px; bottom: 14px; }
  .ml-help__label { display: none; }
  .ml-help__toggle { padding: 14px; }
  .ml-help__panel { width: calc(100vw - 28px); right: -8px; }
}

/* strona 404 fallback */
.error404 .site-main { max-width: 760px; margin: 0 auto; padding: 90px 24px; text-align: center; }
.error404 .site-main h1 { font-family: var(--ml-serif); font-size: 60px; }

/* ==========================================================================
   STRONY TREŚCI (Elementor) — eleganckie łamanie długich nagłówków / pull-quote
   ========================================================================== */
.elementor-widget-heading .elementor-heading-title { text-wrap: balance; }
/* pull-quote: nie rozjeżdżaj długiego zdania na całą szerokość */
.elementor-element[data-id="201eef76"] .elementor-heading-title,
.elementor-widget-heading .elementor-heading-title:is(h2) {
  text-wrap: balance;
}
.elementor-element[data-id="201eef76"] {
  max-width: 920px; margin-left: auto; margin-right: auto;
}
.elementor-element[data-id="201eef76"] .elementor-heading-title { line-height: 1.32; }
.elementor-element[data-id="201eef76"] em { font-style: italic; color: var(--ml-gold); }

/* ==========================================================================
   ODSTĄPIENIE OD UMOWY — przycisk zwrotu (dyrektywa UE 2023/2673)
   ========================================================================== */
.ml-withdraw { margin: 28px 0 8px; }
.ml-withdraw__btn {
  background: none; border: 1px solid var(--ml-ink); color: var(--ml-ink);
  font-family: var(--ml-sans); font-size: 13px; letter-spacing: .4px;
  padding: 12px 22px; border-radius: 2px; cursor: pointer; transition: all .2s ease;
}
.ml-withdraw__btn:hover { background: var(--ml-ink); color: var(--ml-cream); }
.ml-withdraw__form {
  margin-top: 16px; padding: 20px; background: var(--ml-card); border: 1px solid var(--ml-line);
  border-radius: 4px; max-width: 520px;
}
.ml-withdraw__lead { font-size: 14px; color: var(--ml-mut); margin: 0 0 14px; }
.ml-withdraw__items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ml-withdraw__item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ml-ink); }
.ml-withdraw__reason-label { display: block; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--ml-label); margin-bottom: 16px; }
.ml-withdraw__reason { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--ml-line); border-radius: 2px; font-family: var(--ml-sans); font-size: 14px; min-height: 64px; resize: vertical; }
.ml-withdraw__confirm {
  background: var(--ml-gold); color: #fff; border: none; padding: 12px 22px;
  border-radius: 2px; font-family: var(--ml-sans); font-size: 13px; letter-spacing: .4px; cursor: pointer;
}
.ml-withdraw__confirm:disabled { opacity: .6; cursor: default; }
.ml-withdraw__confirm:not(:disabled):hover { opacity: .88; }
.ml-withdraw__status { margin-top: 12px; font-size: 13.5px; color: var(--ml-ink); }
.ml-withdraw__done {
  padding: 14px 18px; background: var(--ml-card); border: 1px solid var(--ml-line);
  border-radius: 4px; font-size: 14px; color: var(--ml-ink); max-width: 520px;
}

/* Homepage: 5 realnych probek tkanin pod "Dotknij, zanim zdecydujesz" -- lift + cien,
   bez domyslnego hover linku motywu (obramowanie/przesuniecie w prawo). */
.ml-fabric-swatch {
  transition: transform .22s ease, box-shadow .22s ease !important;
  transform: translateY(0);
}
.ml-fabric-swatch:hover,
.ml-fabric-swatch:focus {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 22px -10px rgba(42,39,34,.45) !important;
  border-color: rgba(0,0,0,0.08) !important;
  padding-left: 0 !important;
}
.ml-product-subtitle {
  color: var(--ml-mut); font-weight: 400; font-size: 15px; margin: -6px 0 18px;
}

/* ---------- STRONY PRAWNE (Polityka Prywatności, Regulamin) ----------
 * Dokumenty przeklejone z .docx: 27 sekcji i blisko 200 punktow, wiec licza sie
 * czytelna hierarchia i weze wiersze niz w domyslnym szablonie strony. */
.ml-legal-title {
  font-family: var(--ml-serif); font-weight: 500; font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12; color: var(--ml-ink); margin: 0 0 10px;
}
.ml-legal-date { color: var(--ml-mut); font-size: 14px; margin: 0 0 34px; }
.ml-legal-h2 {
  font-family: var(--ml-serif); font-weight: 600; font-size: clamp(19px, 2vw, 24px);
  color: var(--ml-ink); margin: 40px 0 12px; line-height: 1.25;
}
.entry-content .ml-legal-list { margin: 0 0 18px; padding-left: 1.5rem; }
.entry-content .ml-legal-list > li { margin-bottom: 9px; line-height: 1.7; }
.entry-content .ml-legal-list ul { margin: 8px 0 8px; padding-left: 1.3rem; list-style: disc; }

/* ---------- PRÓBKI TKANIN NA STRONIE GŁÓWNEJ ----------
 * Powiekszone kafelki + nazwa kolekcji i koloru po najechaniu. Nazwa jako wlasny
 * dymek (data-label), bo systemowy tooltip z atrybutu title pojawia sie z opoznieniem
 * ~1 s i nie da sie go ostylowac. */
.ml-fabric-row { align-items: center; }
.ml-fabric-swatch { position: relative; }
.ml-fabric-swatch[data-label]::after {
  content: attr(data-label);
  position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%) translateY(4px);
  background: rgba(28,25,20,.94); color: #F6F2EA;
  font-family: var(--ml-sans); font-size: 12px; line-height: 1.2; letter-spacing: .2px;
  padding: 6px 10px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 5;
}
/* strzalka dymka */
.ml-fabric-swatch[data-label]::before {
  content: ''; position: absolute; left: 50%; bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent; border-top-color: rgba(28,25,20,.94);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 5;
}
.ml-fabric-swatch[data-label]:hover::after,
.ml-fabric-swatch[data-label]:focus-visible::after,
.ml-fabric-swatch[data-label]:hover::before,
.ml-fabric-swatch[data-label]:focus-visible::before {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .ml-fabric-swatch[data-label]::after,
  .ml-fabric-swatch[data-label]::before { transition: none; }
}

/* informacja o wysylce zagranicznej w koszyku (zamiast kalkulatora wysylki) */
.ml-ship-abroad td { padding-top: 4px !important; }
.ml-ship-note {
  display: block; font-family: var(--ml-sans); font-size: 13px; line-height: 1.6;
  color: var(--ml-mut, #7C7264); margin: 0;
}
.ml-ship-note a { color: var(--ml-ink, #2A2722); text-decoration: underline; text-underline-offset: 2px; }
.ml-ship-note a:hover { color: var(--ml-gold, #A9863F); }

/* ---------- KARTA PRODUKTU: szeroki layout, kolumny 50/50 ----------
 * Motyw ograniczał main.site-main do 1140px, przez co na ekranie 1600px zostawało
 * po ~220px pustego marginesu z każdej strony, a zdjęcie mebla wychodziło mniejsze
 * niż konfigurator obok. Poszerzamy kontener i dzielimy przestrzeń po połowie.
 * Zatwierdzone na Muszelce metalowej 2026-09-09, rozszerzone na cały sklep. */
@media (min-width: 1281px) {
  .single-product main.site-main {
    max-width: 1720px;
    padding-left: 48px;
    padding-right: 48px;
  }
  .single-product div.product .woocommerce-product-gallery { width: 49%; }
  .single-product div.product .summary.entry-summary { width: 47%; }
  /* szeroka kolumna = próbki tkanin w pełnym rozmiarze */
  .single-product .mlk-swatch .mlk-opt[data-image] { width: 72px; height: 72px; }
  .single-product .mlk-swatch .mlk-opt[data-image] .mlk-opt-label { font-size: .7rem; }
}

/* Pusty rząd kropek na kartach produktów bez wariantów kolorystycznych (np. materac) —
   utrzymuje tę samą wysokość co karty z próbkami, żeby tytuły i ceny stały w jednej linii. */
.ml-dots { min-height: 18px; }
.ml-dots--empty { display: block; }

/* ---------- STRONA FAQ2 (baza wiedzy) ---------- */
body.page .ml-faq2 { max-width: 860px; margin: 0 auto; font-family: var(--ml-sans); }
.ml-faq2__eyebrow { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ml-gold, #A9863F); font-weight: 500; margin: 0 0 10px; }
.ml-faq2__title { font-family: var(--ml-serif); font-weight: 500;
  font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 14px; color: var(--ml-ink); }
.ml-faq2__lead { color: var(--ml-mut, #7C7264); font-size: 16px; line-height: 1.7; margin: 0 0 46px; }
.ml-faq2__lead a { color: var(--ml-ink); text-decoration: underline; text-underline-offset: 2px; }
.ml-faq2__section { margin-bottom: 46px; }
.ml-faq2__h2 { font-family: var(--ml-serif); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px);
  margin: 0 0 4px; color: var(--ml-ink); }
.ml-faq2__sub { color: var(--ml-mut, #7C7264); font-size: 14px; margin: 0 0 18px; }
.ml-faq2__item { border-bottom: 1px solid var(--ml-line, #E4DBC9); }
.ml-faq2__item > summary {
  cursor: pointer; list-style: none; padding: 17px 34px 17px 0; position: relative;
  font-size: 16px; line-height: 1.45; color: var(--ml-ink); font-weight: 400;
}
.ml-faq2__item > summary::-webkit-details-marker { display: none; }
.ml-faq2__item > summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--ml-gold, #A9863F); line-height: 1;
}
.ml-faq2__item[open] > summary::after { content: '−'; }
.ml-faq2__item[open] > summary { font-weight: 500; }
.ml-faq2__item:hover > summary { color: var(--ml-gold, #A9863F); }
.ml-faq2__answer { padding: 0 34px 20px 0; }
.ml-faq2__answer p { margin: 0; color: var(--ml-mut, #7C7264); font-size: 15px; line-height: 1.75; }
.ml-faq2__answer strong { color: var(--ml-ink); font-weight: 500; }
/* sekcja dla asystentów AI — wizualnie oddzielona, treść ta sama */
.ml-faq2__section--ai { background: var(--ml-bg, #F2ECE0); border-radius: 14px; padding: 26px 26px 8px; }

/* ---------- STOPKA: kolory linków ----------
 * Po odtworzeniu szablonu stopki z rewizji listy straciły ustawienia kolorów i linki
 * dziedziczyły domyślny róż motywu (#CC3366). Ustalamy je tutaj, żeby nie zależały
 * od ustawień w Elementorze. */
.elementor-location-footer .elementor-icon-list-item a,
.elementor-location-footer .elementor-icon-list-text,
footer .elementor-icon-list-item a {
  color: #5B564B;
  text-decoration: none;
  transition: color .2s ease;
}
.elementor-location-footer .elementor-icon-list-item a:hover,
footer .elementor-icon-list-item a:hover { color: var(--ml-gold, #A9863F); }

/* dolny pasek: regulamin / polityka / cookies */
.elementor-location-footer a { color: #5B564B; }
.elementor-location-footer a:hover { color: var(--ml-gold, #A9863F); }

/* listy bez ikon nie potrzebują wcięcia po lewej */
.elementor-location-footer .elementor-icon-list-icon { display: none; }
.elementor-location-footer .elementor-icon-list-item { padding-left: 0; }

/* Hover w stopce: przesunięcie w prawo + podkreślenie rysowane od lewej.
   Podkreślenie siedzi na SPANIE z tekstem, nie na <a> — Elementor rozciąga link
   na całą szerokość kolumny, więc kreska ciągnęła się daleko poza napis. */
.elementor-location-footer .elementor-icon-list-text,
footer .elementor-icon-list-text {
  position: relative;
  display: inline-block;
  transition: color .22s ease;
}
.elementor-location-footer .elementor-icon-list-text::after,
footer .elementor-icon-list-text::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.elementor-location-footer .elementor-icon-list-item a,
footer .elementor-icon-list-item a {
  display: inline-flex;
  transition: color .22s ease, transform .22s ease;
}
.elementor-location-footer .elementor-icon-list-item a:hover,
footer .elementor-icon-list-item a:hover {
  color: var(--ml-ink, #2A2722);
  transform: translateX(3px);
}
.elementor-location-footer .elementor-icon-list-item a:hover .elementor-icon-list-text::after,
footer .elementor-icon-list-item a:hover .elementor-icon-list-text::after { transform: scaleX(1); }

/* dolny pasek (Regulamin / Polityka / Cookies) — samo podkreślenie, bez przesunięcia */
.elementor-location-footer .elementor-widget-text-editor a {
  position: relative; display: inline-block; text-decoration: none;
}
.elementor-location-footer .elementor-widget-text-editor a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.elementor-location-footer .elementor-widget-text-editor a:hover { color: var(--ml-ink, #2A2722); }
.elementor-location-footer .elementor-widget-text-editor a:hover::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .elementor-location-footer a, .elementor-location-footer .elementor-icon-list-text::after,
  .elementor-location-footer .elementor-widget-text-editor a::after { transition: none; }
}

/* ---------- STRONA FAQ (8700) ----------
 * Style trzymamy tutaj, nie w treści strony: reguły motywu (m.in. rozciąganie
 * bloków .entry-content na pełną szerokość i reset tła dla <details>) wygrywały
 * ze stylami inline, przez co karty były przezroczyste i szersze niż lista. */
body.page-id-8700 .ml-faq-list {
  max-width: 900px !important;
  margin: 3rem auto 6rem !important;
  padding: 0 1.5rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
body.page-id-8700 .ml-faq-cat { margin: 2.2rem 0 .2rem; padding-left: .2rem; }
body.page-id-8700 .ml-faq-cat:first-child { margin-top: 0; }
body.page-id-8700 .ml-faq-cat h2 {
  font-family: var(--ml-serif); font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--ml-ink); margin: 0 0 .25rem;
}
body.page-id-8700 .ml-faq-cat span { font-size: .95rem; color: var(--ml-mut); }

body.page-id-8700 details.ml-faq-item {
  background: #F4F0E4 !important;             /* lekko ciepla kosc sloniowa, jasniejsza od tla strony (#ECE7DE) */
  border: 1px solid var(--ml-line);
  border-radius: 14px;
  transition: box-shadow .25s ease, transform .25s ease, background .25s ease;
}
body.page-id-8700 details.ml-faq-item:hover {
  box-shadow: 0 12px 32px -18px rgba(42,39,34,.35); transform: translateY(-2px);
}
body.page-id-8700 details.ml-faq-item[open] {
  background: #FAF6EA !important;
  box-shadow: 0 14px 34px -20px rgba(42,39,34,.45);
}
body.page-id-8700 .ml-faq-item > summary {
  list-style: none; cursor: pointer; display: flex; gap: 1.3rem;
  align-items: center; padding: 1.5rem 1.9rem;
}
body.page-id-8700 .ml-faq-item > summary::-webkit-details-marker { display: none; }
body.page-id-8700 .ml-faq-item__num {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ml-dark); color: #F2E7D2;
  font-family: var(--ml-serif); font-size: 1.1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
body.page-id-8700 .ml-faq-item h3 {
  font-family: var(--ml-serif); font-weight: 600; font-size: 1.3rem;
  margin: 0; color: var(--ml-ink); flex: 1 1 auto; line-height: 1.35;
}
body.page-id-8700 .ml-faq-item__chev {
  flex: 0 0 auto; width: 22px; height: 22px; color: var(--ml-gold);
  font-size: 1.35rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
body.page-id-8700 .ml-faq-item[open] .ml-faq-item__chev { transform: rotate(45deg); }
body.page-id-8700 .ml-faq-item__body {
  padding: 0 1.9rem 1.6rem calc(1.9rem + 38px + 1.3rem);
}
/* tekst ma wypełniać kartę — wcześniejszy limit 62ch łamał wiersze po ~1/3 szerokości */
body.page-id-8700 .ml-faq-item__body p {
  font-size: 1rem; line-height: 1.75; color: var(--ml-mut); margin: 0; max-width: none;
}
body.page-id-8700 .ml-faq-item__body p strong { color: var(--ml-ink); font-weight: 600; }
@media (max-width: 600px) {
  body.page-id-8700 .ml-faq-item > summary { padding: 1.2rem 1.1rem; gap: .85rem; }
  body.page-id-8700 .ml-faq-item h3 { font-size: 1.08rem; }
  body.page-id-8700 .ml-faq-item__body { padding: 0 1.1rem 1.3rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.page-id-8700 details.ml-faq-item, body.page-id-8700 .ml-faq-item__chev { transition: none; }
}

/* ==========================================================================
   PRÓBKI TKANIN (produkt 8076) — kafelki kolekcji zamiast galerii,
   po prawej opis kolekcji + paleta kolorów.
   ========================================================================== */
.single-product .mlp-picker { float: left; width: 50%; margin: 0 0 48px; position: sticky; top: 96px; }
.single-product .mlp-picker__head,
.single-product .mlp-colors__head { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem; }
.single-product .mlp-picker__head h2,
.single-product .mlp-colors__head h3 {
  font-family: var(--ml-serif); font-weight: 600; font-size: 1.15rem; margin: 0; color: var(--ml-ink);
  letter-spacing: .2px;
}
.mlp-step {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ml-dark); color: #F2E7D2;
  font-family: var(--ml-serif); font-size: .9rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

.mlp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mlp-tile {
  appearance: none; border: 1px solid var(--ml-line); background: #FBF8F2; border-radius: 12px;
  padding: 10px 10px 12px; cursor: pointer; text-align: center; font: inherit; color: var(--ml-ink);
  display: flex; flex-direction: column; gap: .45rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.mlp-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -18px rgba(42,39,34,.45); }
.mlp-tile.is-active { border-color: var(--ml-gold); box-shadow: 0 0 0 1px var(--ml-gold) inset; }
.mlp-tile__img {
  display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 8px;
  background: #E6DECF center/cover no-repeat;
}
.mlp-tile__name { font-family: var(--ml-serif); font-size: 1rem; font-weight: 600; line-height: 1.2; }
.mlp-tile__count { font-size: .78rem; color: var(--ml-mut); letter-spacing: .3px; }

.mlp-panel__title { font-family: var(--ml-serif); font-weight: 600; font-size: 1.6rem; margin: 0 0 .5rem; color: var(--ml-ink); }
.mlp-panel__desc { font-size: .98rem; line-height: 1.7; color: var(--ml-mut); margin: 0 0 1.2rem; max-width: none; }

.mlp-params { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.4rem; margin: 0 0 1rem; }
.mlp-params dt { font-size: .74rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ml-mut); margin: 0; }
.mlp-params dd { margin: 0; font-size: .95rem; color: var(--ml-ink); }

.mlp-cechy { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.mlp-cechy li {
  font-size: .78rem; color: var(--ml-ink); background: #F3EDE1;
  border: 1px solid var(--ml-line); border-radius: 999px; padding: .28rem .7rem;
}

.mlp-colors {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 10px;
  max-height: 420px; overflow-y: auto; padding: 2px 6px 2px 2px; margin: 0 0 .9rem;
}
.mlp-color { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.mlp-color input { position: absolute; opacity: 0; width: 0; height: 0; }
.mlp-color__sw {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; border: 1px solid var(--ml-line);
  background-size: cover; background-position: center;
  transition: box-shadow .18s ease, transform .18s ease;
}
.mlp-color:hover .mlp-color__sw { transform: translateY(-1px); }
.mlp-color input:checked + .mlp-color__sw { box-shadow: 0 0 0 2px #fff inset, 0 0 0 3px var(--ml-gold); }
.mlp-color input:focus-visible + .mlp-color__sw { outline: 2px solid var(--ml-ink); outline-offset: 2px; }
.mlp-color__label { font-size: .68rem; line-height: 1.25; color: var(--ml-mut); text-align: center; }
.mlp-color input:checked ~ .mlp-color__label { color: var(--ml-ink); font-weight: 600; }

.mlp-hint { font-size: .82rem; color: var(--ml-mut); margin: 0 0 1.4rem; }
.mlp-form .mlp-submit { width: 100%; }

@media (max-width: 1024px) {
  .single-product .mlp-picker { float: none; width: 100%; position: static; margin-bottom: 28px; }
}
@media (max-width: 600px) {
  .mlp-grid { grid-template-columns: repeat(2, 1fr); }
  .mlp-colors { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); max-height: 320px; }
}
@media (min-width: 1281px) {
  .single-product .mlp-picker { width: 49%; }
}

/* Hello Elementor (reset.css) daje kazdemu <button> rozowy hover #CC3366 — kafelki
   kolekcji musza go nadpisac, inaczej po najechaniu robia sie rozowe. */
.mlp-tile,
.mlp-tile:hover,
.mlp-tile:focus,
.mlp-tile:focus-visible,
.mlp-tile:active {
  background: #FBF8F2 !important;
  color: var(--ml-ink) !important;
}
.mlp-tile:hover { border-color: var(--ml-gold); }
.mlp-tile:focus-visible { outline: 2px solid var(--ml-ink); outline-offset: 2px; }

/* limit bezplatnych probek: licznik przy naglowku + wygaszone kolory ponad limit */
.mlp-limit {
  margin-left: auto; font-size: .72rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ml-mut); border: 1px solid var(--ml-line); border-radius: 999px; padding: .2rem .6rem;
}
.mlp-color.is-off { opacity: .35; cursor: not-allowed; }
.mlp-color.is-off .mlp-color__sw { filter: grayscale(.4); }
.mlp-form .mlp-submit[disabled] { opacity: .45; cursor: not-allowed; }
.mlp-cart-qty { font-weight: 600; }

/* Linki tel:/mailto: w tresci (Kontakt) i w widgecie pomocy — bez rozowego #CC3366
   z Hello Elementor; zloty braz jak ikony na kartach kontaktowych. */
.elementor-widget-text-editor a[href^="tel:"],
.elementor-widget-text-editor a[href^="mailto:"],
.ml-help__row,
.ml-help__row:visited { color: #8A6536; }
.elementor-widget-text-editor a[href^="tel:"]:hover,
.elementor-widget-text-editor a[href^="mailto:"]:hover,
.ml-help__row:hover { color: #6E4F27; }

/* podsumowanie doplaty za probki ponad limit bezplatnych */
.mlp-total {
  font-size: .9rem; color: var(--ml-ink); background: #F3EDE1;
  border: 1px solid var(--ml-line); border-radius: 10px; padding: .6rem .85rem; margin: 0 0 .9rem;
}
.mlp-price small { color: var(--ml-mut); font-weight: 400; }

/* Stopka: dolny pasek (copyright + linki prawne) mial max-width 920px i byl wezszy od gornej
   siatki (1140px), przez co '(c) 2026' zaczynalo sie ok. 100px na prawo od logo, a linia
   podzialu byla krotsza. Wyrownujemy go do szerokosci gornej siatki; padding 10px = odstep
   kolumn gornej sekcji, zeby tekst stal w jednej linii z logo i z prawa krawedzia kontaktu. */
.elementor-location-footer .elementor-element-201eef76 {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.elementor-location-footer .elementor-element-201eef76 > .elementor-container {
  max-width: none;
  padding-left: 10px;
  padding-right: 10px;
}

/* Regulamin i Polityka prywatnosci maja wlasny tytul dokumentu (h1.ml-legal-title),
   wiec tytul strony z motywu ("Regulamin") dublowal go tuz nad nim. */
body.page-id-8063 .page-header,
body.page-id-8064 .page-header { display: none; }

/* ---------- STRONY PRAWNE v2 (Regulamin 8063, Polityka 8064) ----------
 * Motyw opakowuje tresc w .page-content (nie .entry-content), wiec wczesniejsze style list
 * sie nie stosowaly i dokument byl sciesniony na pelne 1140px. Tu: kolumna do czytania
 * ~820px, oddech miedzy paragrafami, czytelne listy i dane sprzedawcy w karcie. */
:is(body.page-id-8063, body.page-id-8064) .page-content {
  max-width: 820px; margin: 0 auto; padding: 72px 24px 110px;
  font-size: 16px; line-height: 1.75; color: var(--ml-ink);
}
:is(body.page-id-8063, body.page-id-8064) .ml-legal-title {
  font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: .5px; margin: 0 0 16px;
}
:is(body.page-id-8063, body.page-id-8064) .ml-legal-date {
  display: inline-block; font-size: 13px; letter-spacing: .4px; color: var(--ml-mut);
  border: 1px solid var(--ml-line); border-radius: 999px; padding: 5px 14px; margin: 0 0 48px;
}
:is(body.page-id-8063, body.page-id-8064) .ml-legal-h2 {
  font-size: clamp(20px, 2.2vw, 26px); letter-spacing: .3px;
  margin: 56px 0 18px; padding-top: 28px; border-top: 1px solid var(--ml-line);
}
:is(body.page-id-8063, body.page-id-8064) .ml-legal-list {
  margin: 0 0 22px; padding-left: 1.6rem;
}
:is(body.page-id-8063, body.page-id-8064) .ml-legal-list > li {
  margin-bottom: 12px; padding-left: .35rem; line-height: 1.75;
}
:is(body.page-id-8063, body.page-id-8064) .ml-legal-list > li::marker {
  color: var(--ml-gold); font-weight: 600;
}
/* krotkie wyliczenia (model, wymiary, kolor...) w dwoch kolumnach zamiast dlugiej wstegi */
:is(body.page-id-8063, body.page-id-8064) .ml-legal-list li > ul {
  margin: 10px 0 6px; padding-left: 1.2rem; list-style: disc; columns: 2; column-gap: 32px;
}
:is(body.page-id-8063, body.page-id-8064) .ml-legal-list li > ul > li {
  margin-bottom: 4px; break-inside: avoid; color: var(--ml-mut);
}
:is(body.page-id-8063, body.page-id-8064) .ml-legal-list li > ul > li::marker { color: var(--ml-gold); }
/* dane sprzedawcy / administratora: karta wyrownana z tekstem punktow */
:is(body.page-id-8063, body.page-id-8064) .page-content > p:has(br) {
  margin: 6px 0 26px 1.95rem; padding: 18px 22px; line-height: 1.7;
  background: #F4F0E4; border: 1px solid var(--ml-line); border-radius: 12px;
}
:is(body.page-id-8063, body.page-id-8064) .page-content > p:has(br):last-child {
  margin-left: 0; margin-top: 56px;
}
@media (max-width: 640px) {
  :is(body.page-id-8063, body.page-id-8064) .page-content { padding: 44px 18px 80px; font-size: 15px; }
  :is(body.page-id-8063, body.page-id-8064) .ml-legal-list li > ul { columns: 1; }
  :is(body.page-id-8063, body.page-id-8064) .page-content > p:has(br) { margin-left: 0; }
}
:is(body.page-id-8063, body.page-id-8064) .ml-legal-date + .ml-legal-h2 { margin-top: 4px; }

/* Krotki opis produktu ma byc czytelny (czarny), a link do FAQ pod nim - drobnym, szarym
   tekstem, zeby nie konkurowal z trescia. */
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-product-details__short-description p { color: #4A4336; }
.single-product .ml-faq-link { margin: 14px 0 0; font-size: 13px; line-height: 1.6; }
.single-product .ml-faq-link a { color: var(--ml-mut); text-decoration: none; }
.single-product .ml-faq-link a:hover { color: var(--ml-ink); text-decoration: underline; }

/* zdanie wprowadzajace nad konfiguratorem */
.single-product .ml-config-lead {
  margin: 22px 0 0; font-size: 14px; line-height: 1.65; color: #4A4336;
}

/* ==========================================================================
   PASKI "POWRACAJĄCY KLIENT?" / "MASZ KUPON?" (checkout)
   Domyślny notice Woo ma gruby złoty pasek u góry i ikonę z fontu, którego ten
   motyw nie ładuje — zamiast ikony wychodził pusty prostokąt. Zamiast tego
   cichy, płaski wiersz z podkreślonym linkiem.
   ========================================================================== */
.woocommerce-form-login-toggle,
.woocommerce-form-coupon-toggle { margin: 0 0 10px; }
.woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-form-coupon-toggle .woocommerce-info {
  display: block; margin: 0; padding: 14px 18px;
  background: var(--ml-card);
  border: 1px solid var(--ml-line); border-top: 1px solid var(--ml-line);
  border-radius: 4px;
  font-family: var(--ml-sans); font-size: 14px; line-height: 1.5; color: var(--ml-mut);
}
.woocommerce-form-login-toggle .woocommerce-info::before,
.woocommerce-form-coupon-toggle .woocommerce-info::before { content: none; display: none; }
.woocommerce-form-login-toggle .woocommerce-info a,
.woocommerce-form-coupon-toggle .woocommerce-info a {
  color: var(--ml-ink); text-decoration: none;
  border-bottom: 1px solid var(--ml-line); padding-bottom: 1px;
  transition: color .18s, border-color .18s;
}
.woocommerce-form-login-toggle .woocommerce-info a:hover,
.woocommerce-form-coupon-toggle .woocommerce-info a:hover { color: var(--ml-gold); border-color: var(--ml-gold); }
/* rozwinięte formularze pod paskami */
form.woocommerce-form-login, form.checkout_coupon {
  border: 1px solid var(--ml-line); border-radius: 4px; background: var(--ml-card);
  padding: 22px 18px; margin: 0 0 18px;
}

/* żadna tabela sklepu nie może rozpychać strony w poziomie */
.woocommerce table.shop_table { max-width: 100%; }

/* lupa galerii tylko dla myszy — na dotyku podglądowe zdjęcie 1200 px
   tylko przeszkadzało przy przewijaniu */
@media (hover: none) {
  .woocommerce div.product .woocommerce-product-gallery .zoomImg { display: none !important; }
}

/* ==========================================================================
   MOBILE — KOSZYK
   WooCommerce ma własny arkusz woocommerce-smallscreen.css: zamienia tabelę
   w listę i dosuwa wartości do prawej krawędzi TABELI (text-align:right
   !important). Tabela była szersza od ekranu (rozpychał ją wiersz z kuponem),
   więc wartości lądowały poza ekranem i widać było same etykiety.
   Poniżej koszyk jest przebudowany na karty, a wartości wracają na lewą stronę.
   ========================================================================== */
@media (max-width: 768px) {

  .woocommerce-cart table.cart,
  .woocommerce-cart table.cart tbody {
    display: block; width: 100%; border: none; background: transparent; border-radius: 0;
  }
  .woocommerce-cart table.cart thead { display: none; }

  .woocommerce-cart table.cart tr.cart_item {
    display: grid; position: relative;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas: "thumb nazwa" "cena cena" "ilosc ilosc" "suma suma";
    column-gap: 14px;
    background: var(--ml-card); border: 1px solid var(--ml-line); border-radius: 8px;
    padding: 16px; margin: 0 0 14px;
  }
  .woocommerce-cart table.cart tr.cart_item td {
    display: block; width: auto; padding: 0; border: none; background: transparent;
    text-align: left !important;
  }
  /* etykiety z data-title zostają tylko przy cenie, ilości i kwocie */
  .woocommerce-cart table.cart tr.cart_item td.product-remove::before,
  .woocommerce-cart table.cart tr.cart_item td.product-thumbnail::before,
  .woocommerce-cart table.cart tr.cart_item td.product-name::before { content: none !important; }

  .woocommerce-cart table.cart td.product-remove { position: absolute; top: 10px; right: 10px; }
  .woocommerce-cart table.cart td.product-thumbnail { grid-area: thumb; display: block !important; }
  .woocommerce-cart table.cart td.product-thumbnail img {
    width: 72px; height: 72px; object-fit: cover; border-radius: 6px; display: block;
  }
  .woocommerce-cart table.cart td.product-name { grid-area: nazwa; padding-right: 26px !important; }
  .woocommerce-cart table.cart td.product-name a { font-size: 17px; line-height: 1.25; display: block; }

  /* konfiguracja produktu: para etykieta–wartość w jednej linii */
  .woocommerce-cart table.cart .variation {
    margin: 7px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ml-mut);
  }
  .woocommerce-cart table.cart .variation dt,
  .woocommerce-cart table.cart .variation dd { display: inline; margin: 0; font-weight: 400; }
  .woocommerce-cart table.cart .variation dt { color: var(--ml-label); }
  .woocommerce-cart table.cart .variation dd p { display: inline; margin: 0; }
  .woocommerce-cart table.cart .variation dd::after { content: "\A"; white-space: pre; }

  .woocommerce-cart table.cart td.product-price { grid-area: cena; }
  .woocommerce-cart table.cart td.product-quantity { grid-area: ilosc; }
  .woocommerce-cart table.cart td.product-subtotal { grid-area: suma; }
  .woocommerce-cart table.cart td.product-price,
  .woocommerce-cart table.cart td.product-quantity,
  .woocommerce-cart table.cart td.product-subtotal {
    display: flex !important; align-items: center; justify-content: space-between; gap: 14px;
    margin-top: 11px; padding-top: 11px !important; border-top: 1px solid var(--ml-line);
    font-size: 15px;
  }
  .woocommerce-cart table.cart td.product-price::before,
  .woocommerce-cart table.cart td.product-quantity::before,
  .woocommerce-cart table.cart td.product-subtotal::before {
    content: attr(data-title) !important; float: none !important; display: inline !important;
    font-family: var(--ml-sans); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--ml-label); white-space: nowrap;
  }
  .woocommerce-cart table.cart td.product-subtotal { font-weight: 500; }
  .woocommerce-cart table.cart td.product-quantity .quantity { margin: 0; float: none; }
  .woocommerce-cart table.cart td.product-quantity input.qty { width: 66px; text-align: center; }

  /* wiersz akcji — to on rozpychał tabelę poza ekran */
  .woocommerce-cart table.cart tr:has(td.actions) { display: block; }
  .woocommerce-cart table.cart td.actions {
    display: block; width: auto; padding: 0 !important; border: none;
    background: transparent; text-align: left !important;
  }
  .woocommerce-cart table.cart td.actions::before { content: none !important; }
  /* kupon: input i przyciski jeden pod drugim, każdy na pełną szerokość.
     Woo trzyma tu flexa i szerokości procentowe (m.in. przez #coupon_code),
     stąd !important i wysoka specyficzność. */
  .woocommerce-cart table.cart td.actions .coupon {
    display: block !important; margin: 0; padding: 0; border: none;
  }
  .woocommerce-cart table.cart td.actions .coupon #coupon_code,
  .woocommerce-cart table.cart td.actions .coupon input.input-text {
    width: 100% !important; float: none !important; margin: 0 0 8px !important; box-sizing: border-box;
  }
  .woocommerce-cart table.cart td.actions .coupon .button,
  .woocommerce-cart table.cart td.actions .button,
  .woocommerce-cart table.cart td.actions button[name="update_cart"],
  .woocommerce-cart table.cart td.actions input[name="update_cart"] {
    width: 100% !important; float: none !important; margin: 0 !important; box-sizing: border-box;
  }
  .woocommerce-cart table.cart td.actions button[name="update_cart"],
  .woocommerce-cart table.cart td.actions input[name="update_cart"] { margin-top: 8px !important; }

  /* podsumowanie koszyka */
  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce-cart .cart_totals { padding: 4px 18px 20px; margin-top: 24px; }
  .woocommerce-cart .cart_totals h2 { font-size: 23px; }
  .woocommerce-cart .cart_totals table.shop_table { border: none; background: transparent; }
  .woocommerce-cart .cart_totals table.shop_table td {
    display: flex !important; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
    gap: 6px 14px; padding: 14px 0 !important; text-align: left !important;
    background: transparent;
  }
  /* wiersze bez data-title (np. informacja o wysyłce zagranicznej) dostawały
     od Woo samo ": " jako etykietę */
  .woocommerce-cart .cart_totals table.shop_table td:not([data-title])::before,
  .woocommerce-cart .cart_totals table.shop_table td[data-title=""]::before { content: none !important; }
  .woocommerce-cart .cart_totals table.shop_table td::before {
    float: none !important; display: inline !important;
    font-family: var(--ml-sans); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--ml-label); white-space: nowrap;
  }
  .woocommerce-cart .cart_totals .woocommerce-shipping-totals td #shipping_method,
  .woocommerce-cart .cart_totals .woocommerce-shipping-totals td .woocommerce-shipping-destination,
  .woocommerce-cart .cart_totals .woocommerce-shipping-totals td .shipping-calculator-button {
    width: 100%; text-align: left;
  }
  .woocommerce-cart .wc-proceed-to-checkout .button { width: 100%; text-align: center; }
}

/* ==========================================================================
   MOBILE — ZAMÓWIENIE (checkout)
   ========================================================================== */
@media (max-width: 768px) {
  .woocommerce-checkout-review-order-table th,
  .woocommerce-checkout-review-order-table td { padding: 14px !important; }
  .woocommerce-checkout-review-order-table td.product-name { font-size: 15px; line-height: 1.35; }
  .woocommerce-checkout-review-order-table th.product-total,
  .woocommerce-checkout-review-order-table td.product-total { width: 1%; white-space: nowrap; text-align: right; }
  /* stopka (kwota, przesyłka, łącznie) musi się łamać — "Wysyłka próbek: 7 zł"
     w jednej linii rozpychało tabelę poza obcięcie i gubiło koniec tekstu */
  .woocommerce-checkout-review-order-table tfoot th { white-space: nowrap; }
  .woocommerce-checkout-review-order-table tfoot td { text-align: right; white-space: normal; }
  .woocommerce-checkout-review-order-table tfoot td small,
  .woocommerce-checkout-review-order-table tfoot td .includes_tax { display: block; margin-top: 2px; }
  .woocommerce-checkout-review-order-table .variation {
    margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ml-mut);
  }
  .woocommerce-checkout-review-order-table .variation dt,
  .woocommerce-checkout-review-order-table .variation dd { display: inline; margin: 0; font-weight: 400; }
  .woocommerce-checkout-review-order-table .variation dt { color: var(--ml-label); }
  .woocommerce-checkout-review-order-table .variation dd p { display: inline; margin: 0; }
  .woocommerce-checkout-review-order-table .variation dd::after { content: "\A"; white-space: pre; }
  .woocommerce-checkout .place-order .button { width: 100%; }
}

@media (max-width: 600px) {
  /* pola na pół szerokości są na telefonie za wąskie */
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last,
  .woocommerce-page form .form-row-first,
  .woocommerce-page form .form-row-last { width: 100%; float: none; margin-right: 0; }
}

/* ==========================================================================
   PŁATNOŚCI — Woo maluje tu własne fioletowo-szare tła (#ebe9eb na #payment,
   #dfdcde na opisie metody) i dorysowuje strzałkę. Przy ciepłej palecie
   wyglądało to jak wklejka z innego sklepu. Selektory z #payment, bo tylko
   taka specyficzność bije reguły Woo.
   ========================================================================== */
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { padding: 0; border-bottom: none; }
.woocommerce-checkout #payment div.payment_box {
  background: transparent; color: var(--ml-mut);
  font-size: 13.5px; line-height: 1.6; margin: 10px 0 0; padding: 0 0 0 26px;
  border-radius: 0;
}
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment div.form-row.place-order { padding: 18px 0 0; }

/* ==========================================================================
   SZCZEGÓŁY ZAMÓWIENIA (podziękowanie, e-mail-widok, moje konto)
   — ta sama zwarta lista parametrów co w koszyku
   ========================================================================== */
.woocommerce-table--order-details .wc-item-meta {
  list-style: none; margin: 6px 0 0; padding: 0;
  font-size: 12.5px; line-height: 1.6; color: var(--ml-mut);
}
.woocommerce-table--order-details .wc-item-meta li { margin: 0; }
.woocommerce-table--order-details .wc-item-meta li strong {
  display: inline; font-weight: 400; color: var(--ml-label);
}
.woocommerce-table--order-details .wc-item-meta li p { display: inline; margin: 0; }

@media (max-width: 768px) {
  .woocommerce-table--order-details th,
  .woocommerce-table--order-details td { padding: 14px !important; }
  .woocommerce-table--order-details td.product-name { font-size: 15px; line-height: 1.35; }
  .woocommerce-table--order-details th.product-total,
  .woocommerce-table--order-details td.product-total { width: 1%; white-space: nowrap; text-align: right; }
  .woocommerce-table--order-details tfoot td { text-align: right; white-space: normal; }
}

/* ==========================================================================
   MOBILE — KONFIGURATOR: przyklejony pasek z ceną i przyciskiem
   Przycisk "Dodaj do koszyka" leżał 2583 px od góry strony (trzy ekrany
   przewijania na telefonie). Podsumowanie zostaje przypięte do dołu okna,
   a body dostaje zapas miejsca, żeby pasek nie zasłaniał stopki.
   ========================================================================== */
@media (max-width: 768px) {
  body.single-product:has(.mlk .mlk-summary) { padding-bottom: 96px; }

  .single-product .mlk .mlk-summary {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 8500;
    margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--ml-bg); border-top: 1px solid var(--ml-line);
    box-shadow: 0 -8px 24px -12px rgba(42,39,34,.45);
    display: grid; grid-template-columns: auto minmax(0, 1fr);
    align-items: center; gap: 4px 14px;
  }
  .single-product .mlk .mlk-summary .mlk-price-row {
    grid-column: 1; display: block; margin: 0; padding: 0; border-bottom: none;
  }
  .single-product .mlk .mlk-summary .mlk-price-row > span {
    display: block; font-size: 9.5px; letter-spacing: 1.6px;
  }
  .single-product .mlk .mlk-summary .mlk-total { font-size: 20px; line-height: 1.1; }
  .single-product .mlk .mlk-summary .mlk-add {
    grid-column: 2; width: 100%; margin: 0; padding: 14px 14px !important;
  }
  .single-product .mlk .mlk-summary .mlk-hint {
    grid-column: 1 / -1; margin: 0; font-size: 11px; text-align: center;
  }
  /* podpowiedź jest potrzebna tylko dopóki przycisk jest zablokowany */
  .single-product .mlk .mlk-summary .mlk-add:not(:disabled) ~ .mlk-hint { display: none; }
  /* dymek pomocy odsuwa skrypt w functions.php (baseBottom) — ustawia bottom
     inline, więc regułą CSS bez !important i tak byśmy go nie ruszyli */
}

/* ==========================================================================
   MOBILE — KONFIGURATOR: czytelniejsze podpisy (były 11,2–11,5 px)
   ========================================================================== */
@media (max-width: 768px) {
  .mlk .mlk-step-head { font-size: 13px; letter-spacing: 1.4px; }
  .mlk .mlk-step-val { font-size: 14.5px; }
  .mlk .mlk-hint { font-size: 12px; }
  .mlk-swatch .mlk-opt[data-image] { width: 80px; height: 80px; }
  .mlk-swatch .mlk-opt[data-image] .mlk-opt-label { font-size: 11.8px; padding: 4px 0; }
  .mlk-swatch .mlk-opt:not([data-image]) .mlk-opt-label { font-size: 13.5px; }
  .mlk .mlk-opt { font-size: 14px !important; }
  .mlk .mlk-opt-sur { font-size: 12px; }
}

/* ==========================================================================
   KOSZYK / ZAMÓWIENIE — zwinięta lista parametrów (js/ml-cart.js)
   ========================================================================== */
.ml-cfg-more { margin: 5px 0 0; }
.ml-cfg-more > summary {
  list-style: none; cursor: pointer; display: inline-block;
  font-family: var(--ml-sans); font-size: 12px; color: var(--ml-soft);
  border-bottom: 1px solid var(--ml-line); padding-bottom: 1px;
  transition: color .18s, border-color .18s;
}
.ml-cfg-more > summary::-webkit-details-marker { display: none; }
.ml-cfg-more > summary::marker { content: ""; }
.ml-cfg-more > summary:hover { color: var(--ml-gold); border-color: var(--ml-gold); }
.ml-cfg-more[open] > summary { margin-bottom: 5px; }
.ml-cfg-more dl.variation { margin: 0 !important; }
