/*
Theme Name:  Memorello
Theme URI:   https://memorello.pl
Description: Motyw potomny Astry dla sklepu Memorello — wspomnienia na płótnie. Ciepła, "galeryjna" estetyka: kremowe tła, elegancki serif w nagłówkach, wyraźne terakotowe CTA. Zawiera style WooCommerce i klasy sekcji landingowych.
Author:      Memorello
Author URI:  https://memorello.pl
Template:    astra
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: memorello
Tags:        e-commerce, custom-colors, custom-logo
*/

/* ==========================================================================
   1. ZMIENNE CSS — paleta i typografia z księgi znaku (BRAND.md)
   ========================================================================== */

:root {
  /* Kolory */
  --m-bg: #FAF6EF;            /* Kremowy — tło strony */
  --m-bg-alt: #F1E9DD;        /* Piaskowy — naprzemienne sekcje, karty */
  --m-text: #2E2A26;          /* Espresso — tekst podstawowy */
  --m-muted: #8A7B6C;         /* Taupe — tekst pomocniczy */
  --m-primary: #C1654A;       /* Terakota — CTA, linki */
  --m-primary-hover: #A85138; /* Terakota ciemna — hover/active */
  --m-accent: #D9A441;        /* Złoty — wyróżnienia, gwiazdki */
  --m-success: #6F8B6A;       /* Szałwia — komunikaty OK */
  --m-error: #B0392E;         /* Ceglasty — błędy */
  --m-white: #FFFFFF;

  /* Typografia */
  --m-font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --m-font-body: 'Lato', 'Segoe UI', Arial, sans-serif;
  --m-fs-base: 18px;          /* bazowy rozmiar — czytelność dla grupy 40+ */
  --m-lh-base: 1.65;

  /* Rytm i detale */
  --m-radius: 10px;           /* zaokrąglenie kart/przycisków (jak rama logo) */
  --m-radius-sm: 6px;
  --m-shadow: 0 2px 14px rgba(46, 42, 38, 0.08);
  --m-shadow-hover: 0 6px 22px rgba(46, 42, 38, 0.13);
  --m-space: 1.5rem;
  --m-section-pad: clamp(3rem, 7vw, 5.5rem);
  --m-transition: 0.2s ease;
}

/* ==========================================================================
   2. BAZA — tło, tekst, typografia
   ========================================================================== */

html {
  font-size: var(--m-fs-base);
}

body,
body.ast-plain-container,
.ast-separate-container {
  background-color: var(--m-bg);
  color: var(--m-text);
  font-family: var(--m-font-body);
  font-size: var(--m-fs-base);
  line-height: var(--m-lh-base);
}

/* Nagłówki — elegancki serif, klimat galerii */
h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
  font-family: var(--m-font-head);
  font-weight: 600;
  color: var(--m-text);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1.1em;
}

/* Tekst pomocniczy */
.m-muted,
.wp-block-post-date,
figcaption {
  color: var(--m-muted);
}

/* Linki w treści — terakota z subtelnym podkreśleniem */
.entry-content a:not(.button):not(.wp-block-button__link),
.site-content a:not(.button):not(.ast-button):not(.wp-block-button__link):not(.woocommerce-button) {
  color: var(--m-primary);
  text-decoration: underline;
  text-decoration-color: rgba(193, 101, 74, 0.35);
  text-underline-offset: 3px;
  transition: color var(--m-transition), text-decoration-color var(--m-transition);
}

.entry-content a:not(.button):not(.wp-block-button__link):hover,
.site-content a:not(.button):not(.ast-button):not(.wp-block-button__link):not(.woocommerce-button):hover {
  color: var(--m-primary-hover);
  text-decoration-color: currentColor;
}

/* Widoczny focus dla nawigacji klawiaturą (dostępność) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--m-accent);
  outline-offset: 2px;
}

/* Zaznaczenie tekstu w kolorach marki */
::selection {
  background: var(--m-accent);
  color: var(--m-text);
}

/* ==========================================================================
   3. NAGŁÓWEK I STOPKA (Astra)
   ========================================================================== */

.site-header,
.ast-primary-header-bar {
  background-color: var(--m-bg);
  border-bottom: 1px solid var(--m-bg-alt);
}

/* Menu główne — czytelne, spokojne */
.main-header-menu .menu-link,
.ast-builder-menu .menu-link {
  font-family: var(--m-font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--m-text);
}

.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link,
.ast-builder-menu .menu-link:hover {
  color: var(--m-primary);
}

/* Logo — rozsądny rozmiar w pasku */
.site-logo-img img,
.custom-logo {
  max-height: 56px;
  width: auto;
}

/* Stopka — piaskowa, spokojna */
.site-footer,
.ast-footer-copyright,
[data-section="section-footer-builder"] {
  background-color: var(--m-bg-alt);
  color: var(--m-muted);
}

.site-footer a {
  color: var(--m-text);
}

.site-footer a:hover {
  color: var(--m-primary);
}

/* ==========================================================================
   4. PRZYCISKI — terakota, min. 48px wysokości (wygodne dla dotyku i 40+)
   ========================================================================== */

.ast-button,
.button,
button[type="submit"],
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wc-block-components-button,
.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7em 1.7em;
  background-color: var(--m-primary);
  color: var(--m-white);
  font-family: var(--m-font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border: 2px solid var(--m-primary);
  border-radius: var(--m-radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--m-transition), border-color var(--m-transition),
              box-shadow var(--m-transition), transform var(--m-transition);
}

.ast-button:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.wc-block-components-button:hover,
.m-btn:hover {
  background-color: var(--m-primary-hover);
  border-color: var(--m-primary-hover);
  color: var(--m-white);
  box-shadow: var(--m-shadow-hover);
  transform: translateY(-1px);
}

/* Wariant "cichy" — obrys, do akcji drugorzędnych ("Zobacz przykłady") */
.m-btn--ghost {
  background-color: transparent;
  color: var(--m-primary);
  border-color: var(--m-primary);
}

.m-btn--ghost:hover {
  background-color: var(--m-primary);
  color: var(--m-white);
}

/* Przyciski nieaktywne */
.button:disabled,
.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] {
  background-color: var(--m-muted);
  border-color: var(--m-muted);
  color: var(--m-bg);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   5. FORMULARZE — duże, czytelne pola
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  min-height: 48px;
  padding: 0.6em 0.9em;
  background-color: var(--m-white);
  color: var(--m-text);
  font-family: var(--m-font-body);
  font-size: 1rem;
  border: 1.5px solid #D8CFC0;
  border-radius: var(--m-radius-sm);
  transition: border-color var(--m-transition), box-shadow var(--m-transition);
}

textarea {
  min-height: 130px;
}

input:focus,
select:focus,
textarea:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--m-primary);
  box-shadow: 0 0 0 3px rgba(193, 101, 74, 0.18);
  outline: none;
}

label {
  font-weight: 700;
  color: var(--m-text);
  margin-bottom: 0.3em;
  display: inline-block;
}

/* Placeholdery — czytelny taupe */
::placeholder {
  color: var(--m-muted);
  opacity: 1;
}

/* Pola z błędem walidacji */
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select,
input.m-invalid,
textarea.m-invalid {
  border-color: var(--m-error);
}

/* ==========================================================================
   6. WOOCOMMERCE — sklep w klimacie galerii
   ========================================================================== */

/* --- Siatka produktów: karty jak obrazy na ścianie --- */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background-color: var(--m-white);
  border: 1px solid var(--m-bg-alt);
  border-radius: var(--m-radius);
  padding: 1rem;
  box-shadow: var(--m-shadow);
  transition: box-shadow var(--m-transition), transform var(--m-transition);
}

.woocommerce ul.products li.product:hover {
  box-shadow: var(--m-shadow-hover);
  transform: translateY(-3px);
}

.woocommerce ul.products li.product img {
  border-radius: var(--m-radius-sm);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--m-font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--m-text);
}

/* --- Ceny --- */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
  color: var(--m-text);
  font-family: var(--m-font-body);
  font-size: 1.15rem;
  font-weight: 700;
}

/* Cena przekreślona (promocja) — wyciszona, nowa cena w terakocie */
.woocommerce div.product p.price del,
.woocommerce ul.products li.product .price del {
  color: var(--m-muted);
  font-weight: 400;
  opacity: 1;
}

.woocommerce div.product p.price ins,
.woocommerce ul.products li.product .price ins {
  color: var(--m-primary);
  text-decoration: none;
}

/* Plakietka "Promocja!" — złoty akcent */
.woocommerce span.onsale {
  background-color: var(--m-accent);
  color: var(--m-text);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.35em 1em;
  min-height: 0;
  line-height: 1.6;
}

/* Gwiazdki opinii — złote */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
  color: var(--m-accent);
}

/* Dostępność produktu */
.woocommerce div.product .stock.in-stock {
  color: var(--m-success);
  font-weight: 700;
}

.woocommerce div.product .stock.out-of-stock {
  color: var(--m-error);
  font-weight: 700;
}

/* --- Komunikaty (info / sukces / błąd) --- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background-color: var(--m-white);
  color: var(--m-text);
  border-radius: var(--m-radius-sm);
  box-shadow: var(--m-shadow);
}

.woocommerce-message {
  border-top-color: var(--m-success);
}

.woocommerce-message::before {
  color: var(--m-success);
}

.woocommerce-info {
  border-top-color: var(--m-accent);
}

.woocommerce-info::before {
  color: var(--m-accent);
}

.woocommerce-error {
  border-top-color: var(--m-error);
}

.woocommerce-error::before {
  color: var(--m-error);
}

/* --- Koszyk i kasa --- */
.woocommerce table.shop_table {
  border: 1px solid var(--m-bg-alt);
  border-radius: var(--m-radius);
  background-color: var(--m-white);
}

.woocommerce table.shop_table th {
  font-family: var(--m-font-body);
  font-weight: 700;
  background-color: var(--m-bg-alt);
  color: var(--m-text);
}

.woocommerce table.shop_table td {
  border-top: 1px solid var(--m-bg-alt);
}

/* Kupon i sumy — spokojnie, bez krzyku */
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
  background-color: var(--m-bg-alt);
  border-radius: var(--m-radius);
  padding: 1.2rem;
}

/* Kroki kasy / breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
  color: var(--m-muted);
  font-size: 0.9rem;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--m-muted);
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: var(--m-primary);
}

/* Zakładki na stronie produktu (Opis / Opinie) */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background-color: var(--m-bg-alt);
  border-color: var(--m-bg-alt);
  border-radius: var(--m-radius-sm) var(--m-radius-sm) 0 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background-color: var(--m-white);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--m-font-body);
  font-weight: 700;
  color: var(--m-text);
}

/* ==========================================================================
   7. SEKCJE LANDINGOWE — klasy .m-* do użycia w blokach/szablonach
   Mobile-first: bazowe style dla wąskich ekranów, media queries poszerzają.
   ========================================================================== */

/* Wspólny rytm sekcji */
.m-section {
  padding-top: var(--m-section-pad);
  padding-bottom: var(--m-section-pad);
}

.m-section--alt {
  background-color: var(--m-bg-alt);
}

/* Wewnętrzny kontener (gdy sekcja jest pełnej szerokości) */
.m-container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--m-space);
  padding-right: var(--m-space);
}

/* --- 7.1 HERO — dużo światła, jedna wyraźna obietnica --- */
.m-hero {
  padding: clamp(3.5rem, 9vw, 7rem) var(--m-space);
  text-align: center;
  background-color: var(--m-bg);
  /* delikatna złota poświata u góry — "światło galerii" */
  background-image: radial-gradient(ellipse 70% 50% at 50% 0%,
    rgba(217, 164, 65, 0.10), transparent 70%);
}

.m-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.m-hero__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--m-muted);
  margin-bottom: 1rem;
}

.m-hero h1,
.m-hero__title {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 0.6em;
}

/* Wyróżnione słowo w tytule ("wspomnienia") */
.m-hero__title em,
.m-hero h1 em {
  font-style: italic;
  color: var(--m-primary);
}

.m-hero__lead {
  font-size: 1.15rem;
  color: var(--m-muted);
  max-width: 40em;
  margin: 0 auto 2rem;
}

/* Przyciski hero — kolumna na mobile, rząd na desktopie */
.m-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

@media (min-width: 600px) {
  .m-hero__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* --- 7.2 KROKI ("Jak to działa") --- */
.m-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--m-space);
  counter-reset: m-step;
  padding: 0;
  margin: 0;
  list-style: none;
}

.m-step {
  position: relative;
  background-color: var(--m-white);
  border: 1px solid var(--m-bg-alt);
  border-radius: var(--m-radius);
  padding: 2.2rem 1.6rem 1.6rem;
  box-shadow: var(--m-shadow);
  counter-increment: m-step;
}

/* Numer kroku — złote kółko, jak numeracja obrazów w galerii */
.m-step::before {
  content: counter(m-step);
  position: absolute;
  top: -22px;
  left: 1.4rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--m-accent);
  color: var(--m-text);
  font-family: var(--m-font-head);
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: var(--m-shadow);
}

.m-step h3 {
  margin-top: 0;
  margin-bottom: 0.4em;
  font-size: 1.25rem;
}

.m-step p {
  color: var(--m-muted);
  margin-bottom: 0;
}

@media (min-width: 700px) {
  .m-steps {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 2.5rem; /* miejsce na wystające numery */
  }
}

/* --- 7.3 CENNIK --- */
.m-pricing-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--m-space);
}

.m-price-card {
  display: flex;
  flex-direction: column;
  background-color: var(--m-white);
  border: 1px solid var(--m-bg-alt);
  border-radius: var(--m-radius);
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: var(--m-shadow);
  transition: box-shadow var(--m-transition), transform var(--m-transition);
}

.m-price-card:hover {
  box-shadow: var(--m-shadow-hover);
  transform: translateY(-3px);
}

/* Karta polecana — złota rama i etykieta */
.m-price-card--featured {
  border: 2px solid var(--m-accent);
  position: relative;
}

.m-price-card--featured::before {
  content: attr(data-label);
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--m-accent);
  color: var(--m-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25em 1em;
  border-radius: 999px;
  white-space: nowrap;
}

.m-price-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.m-price-card__price {
  font-family: var(--m-font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--m-primary);
  margin: 0.4rem 0;
}

.m-price-card__price small {
  font-family: var(--m-font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--m-muted);
}

.m-price-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.6rem;
  color: var(--m-muted);
  flex-grow: 1; /* przycisk zawsze na dole karty */
}

.m-price-card ul li {
  padding: 0.45em 0;
  border-bottom: 1px dashed var(--m-bg-alt);
}

.m-price-card ul li:last-child {
  border-bottom: none;
}

@media (min-width: 700px) {
  .m-pricing-table {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

/* --- 7.4 FAQ — natywne details/summary, zero JS --- */
.m-faq {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.m-faq details {
  background-color: var(--m-white);
  border: 1px solid var(--m-bg-alt);
  border-radius: var(--m-radius);
  margin-bottom: 0.8rem;
  box-shadow: var(--m-shadow);
  overflow: hidden;
}

.m-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px; /* wygodny cel dotykowy */
  padding: 0.9rem 1.3rem;
  font-family: var(--m-font-head);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* chowamy domyślny trójkąt... */
  transition: color var(--m-transition);
}

.m-faq summary::-webkit-details-marker {
  display: none;
}

/* ...i rysujemy własny znak "+" / "−" */
.m-faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--m-font-body);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--m-primary);
  line-height: 1;
  transition: transform var(--m-transition);
}

.m-faq details[open] summary {
  color: var(--m-primary);
}

.m-faq details[open] summary::after {
  content: "−";
}

.m-faq details > *:not(summary) {
  padding: 0 1.3rem;
}

.m-faq details p:last-child {
  padding-bottom: 1.2rem;
  margin-bottom: 0;
  color: var(--m-muted);
}

/* --- 7.5 PASEK ZAUFANIA (trust badges) --- */
.m-trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.2rem;
  padding: 1.4rem var(--m-space);
  list-style: none;
  margin: 0;
  text-align: center;
}

.m-trust-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--m-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

/* Ikona/emoji lub SVG przed tekstem plakietki */
.m-trust-badge svg,
.m-trust-badge img,
.m-trust-badge .m-trust-badge__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--m-accent);
  fill: currentColor;
}

/* Wariant na piaskowym pasku pod hero */
.m-trust-badges--bar {
  background-color: var(--m-bg-alt);
  border-top: 1px solid rgba(138, 123, 108, 0.15);
  border-bottom: 1px solid rgba(138, 123, 108, 0.15);
}

/* --- 7.6 Drobne elementy wspólne --- */

/* Nagłówek sekcji z ozdobną linią pod spodem */
.m-section__title {
  text-align: center;
  margin-bottom: 0.4em;
}

.m-section__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 0.5em auto 0;
  background-color: var(--m-accent);
  border-radius: 2px;
}

.m-section__subtitle {
  text-align: center;
  color: var(--m-muted);
  max-width: 42em;
  margin: 0 auto 2.5rem;
}

/* Złote gwiazdki w opiniach poza WooCommerce */
.m-stars {
  color: var(--m-accent);
  letter-spacing: 0.15em;
}

/* ==========================================================================
   8. RESPONSYWNOŚĆ I DOSTĘPNOŚĆ — poprawki końcowe
   ========================================================================== */

/* Obrazy nigdy nie wystają z kontenera */
img {
  max-width: 100%;
  height: auto;
}

/* Na małych ekranach przyciski w treści na pełną szerokość — łatwiej trafić */
@media (max-width: 480px) {
  .m-hero__actions .m-btn,
  .m-hero__actions .wp-block-button__link,
  .m-price-card .m-btn,
  .woocommerce div.product form.cart .single_add_to_cart_button {
    width: 100%;
  }
}

/* Szanujemy preferencję ograniczonego ruchu */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}

/* ==========================================================================
   SEKCJA „PRZED/PO" + AKCENTY LANDINGOWE (Memorello)
   ========================================================================== */

/* --- Akcenty ogólne (do użycia w treści stron) --- */
.mem-eyebrow {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--m-primary);
  background: rgba(217, 164, 65, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.mem-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--m-text);
  margin: 0 0 12px;
}
.mem-h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--m-primary), var(--m-accent));
}

.mem-sub {
  max-width: 620px;
  margin: 0 auto;
  color: var(--m-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- Hero (opcjonalny nagłówek strony kreatora) --- */
.mem-hero {
  text-align: center;
  padding: 8px 16px 4px;
  max-width: 760px;
  margin: 0 auto;
}
.mem-hero .mem-h2 { margin-bottom: 10px; }

/* --- Sekcja przykładów --- */
.mem-examples {
  background: var(--m-bg-alt);
  border-radius: 20px;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px);
  margin: 40px auto;
  max-width: 1120px;
  text-align: center;
}
.mem-examples-head { margin-bottom: 32px; }

.mem-examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 860px) {
  .mem-examples-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

.mem-fineprint {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--m-muted);
}

/* --- Karta suwaka przed/po --- */
.mem-ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #e9dfce;
  box-shadow: 0 10px 30px rgba(46, 42, 38, 0.16);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}
/* Wariant solo: pojedynczy suwak [przed_po] poza siatką przykładów — wyśrodkowany. */
.mem-ba--solo { max-width: 460px; margin: 20px auto; }
.mem-ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
/* „Przed" na wierzchu, przycięty do lewej części wg --pos */
.mem-ba-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

/* Etykiety w rogach */
.mem-ba-tag {
  position: absolute;
  top: 12px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 3;
}
.mem-ba-tag--before { left: 12px; background: rgba(46, 42, 38, 0.72); }
.mem-ba-tag--after  { right: 12px; background: var(--m-primary); }

/* Linia i uchwyt podziału */
.mem-ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-1px);
  z-index: 4;
  pointer-events: none;
}
.mem-ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(46, 42, 38, 0.35);
}
.mem-ba-handle::before,
.mem-ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.mem-ba-handle::before { left: 8px;  transform: translateY(-50%); border-right: 8px solid var(--m-primary); }
.mem-ba-handle::after  { right: 8px; transform: translateY(-50%); border-left: 8px solid var(--m-primary); }

.mem-ba-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 26px 12px 12px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, rgba(46,42,38,0) 0%, rgba(46,42,38,0.72) 100%);
  pointer-events: none;
}

/* Suwak dostępny z klawiatury (Tab + strzałki), ukryty wizualnie */
.mem-ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.mem-ba:focus-within {
  outline: 3px solid var(--m-accent);
  outline-offset: 2px;
}

/* --- Pasek zaufania (akcent) --- */
.mem-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  margin: 28px auto 8px;
  max-width: 820px;
  color: var(--m-muted);
  font-size: 0.95rem;
}
.mem-trust span { display: inline-flex; align-items: center; gap: 8px; }
.mem-trust strong { color: var(--m-text); }

/* ==========================================================================
   JAK TO DZIAŁA / OPINIE / CTA
   ========================================================================== */

/* --- Jak to działa (3 kroki) --- */
.mem-how { max-width: 1120px; margin: 48px auto; padding: 0 16px; text-align: center; }

/* Wariant kompaktowy (kompakt="1") na górze kreatora. Karty zostają w NORMALNYM
   rozmiarze (ikona, numer, tytuł, opis) — skracamy tylko puste odstępy: marginesy
   sekcji, przerwę nad kartami i pionowy padding kart. 4 kroki mieszczą się w rzędzie. */
.mem-how--compact { margin: 20px auto 16px; }
.mem-how--compact .mem-sub { display: none; }            /* długi akapit = najwięcej zbędnej wysokości */
.mem-how--compact .mem-h2 { margin: 0; }
.mem-how--compact .mem-steps { margin-top: 18px; grid-template-columns: repeat(4, 1fr); }
.mem-how--compact .mem-step { padding: 20px 20px 18px; }
@media (max-width: 900px) {
  .mem-how--compact .mem-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .mem-how--compact .mem-steps { grid-template-columns: 1fr; max-width: 460px; margin: 14px auto 0; }
}
.mem-steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: none;
}
@media (max-width: 860px) { .mem-steps { grid-template-columns: 1fr; max-width: 420px; margin: 24px auto 0; } }
.mem-step {
  position: relative;
  background: var(--m-white);
  border-radius: 16px;
  padding: 30px 22px 26px;
  box-shadow: 0 6px 22px rgba(46, 42, 38, 0.08);
  text-align: center;
}
.mem-step-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(193, 101, 74, 0.10);
  color: var(--m-primary);
  margin-bottom: 14px;
}
.mem-step-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: rgba(217, 164, 65, 0.45);
  line-height: 1;
}
.mem-step-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; margin: 0 0 8px; color: var(--m-text); }
.mem-step-desc { color: var(--m-muted); font-size: 0.98rem; line-height: 1.55; margin: 0; }

/* --- Opinie --- */
.mem-opinie { background: var(--m-bg-alt); border-radius: 20px; max-width: 1120px; margin: 48px auto; padding: clamp(28px,5vw,52px) clamp(16px,4vw,40px); text-align: center; }
.mem-opinie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
@media (max-width: 860px) { .mem-opinie-grid { grid-template-columns: 1fr; max-width: 460px; margin: 24px auto 0; } }
.mem-opinia {
  background: var(--m-white);
  border-radius: 16px;
  padding: 26px 22px;
  margin: 0;
  text-align: left;
  box-shadow: 0 6px 22px rgba(46, 42, 38, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mem-stars { color: var(--m-accent); font-size: 1.1rem; letter-spacing: 2px; }
.mem-opinia-tekst { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--m-text); font-style: italic; }
.mem-opinia-autor { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 0.95rem; color: var(--m-text); }
.mem-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--m-primary);
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.mem-opinia-miasto { color: var(--m-muted); font-size: 0.88rem; }

/* --- CTA --- */
.mem-cta {
  max-width: 1120px;
  margin: 48px auto;
  padding: clamp(32px,5vw,56px) 24px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(135deg, #C1654A 0%, #A85138 100%);
  color: #fff;
}
.mem-cta-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  margin: 0 0 22px;
  color: #fff;
}
.mem-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--m-primary);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 36px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mem-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.24); color: var(--m-primary-hover); }

/* --- Przycisk ogólny (hero/landing) --- */
.mem-btn {
  display: inline-block;
  background: var(--m-primary);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 34px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(193, 101, 74, 0.32);
  transition: transform 0.15s ease, background 0.15s ease;
}
.mem-btn:hover { background: var(--m-primary-hover); color: #fff; transform: translateY(-2px); }
.mem-hero-cta { margin-top: 22px; }

/* Na stronie głównej (statyczny front) chowamy tytuł strony — hero go zastępuje. */
.home .entry-title,
.home .ast-single-post .entry-header { display: none; }

/* --- FAQ --- */
.mem-faq { max-width: 820px; margin: 48px auto; padding: 0 16px; text-align: center; }
.mem-faq-list { margin-top: 24px; text-align: left; }
.mem-faq-item {
  background: var(--m-white);
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(46, 42, 38, 0.06);
  overflow: hidden;
}
.mem-faq-q {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 22px;
  position: relative;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.12rem;
  color: var(--m-text);
}
.mem-faq-q::-webkit-details-marker { display: none; }
.mem-faq-q::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--m-primary);
  transition: transform 0.2s ease;
}
.mem-faq-item[open] .mem-faq-q::after { content: "–"; }
.mem-faq-a { padding: 0 22px 20px; color: var(--m-muted); line-height: 1.6; }
.mem-faq-a p { margin: 0; }

/* ==========================================================================
   ROZBUDOWANA STOPKA
   ========================================================================== */
.mem-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #2E2A26;
  color: #d8cfc2;
  padding: 52px 24px 20px;
  box-sizing: border-box;
  text-align: left;
}
.mem-footer-cols {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
}
@media (max-width: 900px) { .mem-footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .mem-footer-cols { grid-template-columns: 1fr; } }

.mem-footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 10px;
}
.mem-footer-tag { color: #b7ad9f; line-height: 1.6; font-size: 0.95rem; margin: 0 0 14px; }
.mem-footer-badges { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--m-accent); }

.mem-footer-col h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--m-accent);
  margin: 0 0 14px;
}
.mem-footer-col ul { list-style: none; margin: 0; padding: 0; }
.mem-footer-col li { margin-bottom: 9px; }
.mem-footer a { color: #d8cfc2; text-decoration: none; transition: color 0.15s ease; }
.mem-footer a:hover { color: #fff; }
.mem-footer-col a:hover { color: var(--m-primary); }
.mem-footer-small { color: #9c9184; font-size: 0.85rem; margin: 6px 0 14px; }

.mem-footer-cta {
  display: inline-block;
  color: #fff !important;
  border: 1px solid var(--m-primary);
  background: var(--m-primary);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}
.mem-footer-cta:hover { background: var(--m-primary-hover); border-color: var(--m-primary-hover); }

.mem-footer-bottom {
  max-width: 1120px;
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  color: #9c9184;
}
.mem-footer-bottom a { color: #b7ad9f; }
.mem-footer-bottom a:hover { color: #fff; }

/* Styl treści stron prawnych (regulamin/polityka) — czytelność */
.page .entry-content h2 { margin-top: 1.6em; }
.page .entry-content h3 { margin-top: 1.2em; }

/* Chowamy domyślną stopkę Astry (Footer Builder) — mamy własną .mem-footer */
.site-footer { display: none !important; }

/* ==========================================================================
   BANER COOKIES (RODO)
   ========================================================================== */
.mem-cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99998;
  max-width: 720px;
  margin: 0 auto;
  background: #2E2A26;
  color: #e6ddd0;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.mem-cookies-text { margin: 0; font-size: 0.9rem; line-height: 1.5; flex: 1 1 260px; }
.mem-cookies-text a { color: var(--m-accent); text-decoration: underline; }
.mem-cookies-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.mem-cookies-link { color: #b7ad9f; font-size: 0.9rem; text-decoration: underline; }
.mem-cookies-accept {
  appearance: none;
  border: 0;
  background: var(--m-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mem-cookies-accept:hover { background: var(--m-primary-hover); }
@media (max-width: 480px) { .mem-cookies-actions { width: 100%; justify-content: space-between; } }

/* --- Formularz kontaktowy --- */
.mem-kform { max-width: 560px; }
.mem-kfield { margin-bottom: 14px; }
.mem-kfield label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--m-text); }
.mem-kform input, .mem-kform textarea {
  width: 100%; padding: 12px 14px; border: 2px solid #E6D9C6; border-radius: 10px;
  font: inherit; background: #fff; box-sizing: border-box;
}
.mem-kform input:focus, .mem-kform textarea:focus { outline: none; border-color: var(--m-primary); }
.mem-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.mem-kform-msg { border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
.mem-kform-msg.is-ok { background: #EFF5EC; border-left: 4px solid #5C8A4E; }
.mem-kform-msg.is-err { background: #FBEDE8; border-left: 4px solid #B3452E; }

/* Fix: Astra .entry-content a (terakota) nadpisywało biały tekst przycisków CTA */
.entry-content a.mem-btn, a.mem-btn { color: #fff !important; }
.entry-content a.mem-btn:hover, a.mem-btn:hover { color: #fff !important; }

/* ==========================================================================
   NAGŁÓWEK — górny pasek + dopracowana nawigacja
   ========================================================================== */
.mem-topbar { background: #2E2A26; color: #d8cfc2; font-size: 0.82rem; }
.mem-topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 8px 16px;
  display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.mem-topbar-dot { color: var(--m-accent); }
@media (max-width: 640px) { .mem-topbar-inner .mem-topbar-dot, .mem-topbar-inner span:nth-child(n+4) { display: none; } }

/* Subtelne wykończenie nagłówka */
.site-header, .ast-primary-header-bar { border-bottom: 1px solid rgba(46,42,38,0.08); }

/* Linki nawigacji: pogrubienie + terakotowe podkreślenie na hover */
.main-header-menu .menu-item > a { font-weight: 700; letter-spacing: 0.01em; position: relative; }
.main-header-menu .menu-item > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
  background: var(--m-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.18s ease;
}
.main-header-menu .menu-item:hover > a::after,
.main-header-menu .current-menu-item > a::after { transform: scaleX(1); }

/* Przycisk CTA w menu (klasa mem-nav-cta na pozycji menu) */
.main-header-menu .mem-nav-cta > a {
  background: var(--m-primary); color: #fff !important; border-radius: 999px;
  padding: 9px 22px !important; margin-left: 8px;
  box-shadow: 0 4px 14px rgba(193,101,74,0.30);
}
.main-header-menu .mem-nav-cta > a::after { display: none !important; }
.main-header-menu .mem-nav-cta:hover > a { background: var(--m-primary-hover); }

/* Dopracowanie przycisku CTA w nagłówku — grabniejszy pill, wyrównany do nawigacji */
.main-header-menu .mem-nav-cta { display: flex; align-items: center; }
.main-header-menu .mem-nav-cta > a {
  padding: 9px 20px !important;
  line-height: 1.1 !important;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(193,101,74,0.26);
}

/* --- Strona 404 --- */
.mem-404-wrap { padding: 64px 20px; }
.mem-404 { max-width: 640px; margin: 0 auto; text-align: center; }
.mem-404 .mem-eyebrow { color: #C1654A; }
.mem-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0; }
.mem-btn--ghost { background: transparent !important; color: #C1654A !important; border: 2px solid #C1654A; }
.mem-404-search { display: flex; gap: 8px; max-width: 420px; margin: 0 auto 22px; }
.mem-404-search input { flex: 1; padding: 12px 16px; border: 1px solid rgba(46,42,38,0.18); border-radius: 999px; font: inherit; }
.mem-404-search button { padding: 12px 22px; border: 0; border-radius: 999px; background: #C1654A; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.mem-404-search button:hover { background: #A85138; }
.mem-404-links { font-size: 0.9rem; opacity: 0.85; }
.mem-404-links a { color: #C1654A; }

/* --- Checkout: jedna strona, kroki 1/2/3 --- */
.mem-checkout .mem-co-step {
	background: #fff;
	border: 1px solid rgba(46, 42, 38, 0.10);
	border-radius: 14px;
	padding: 22px 22px 26px;
	margin: 0 0 20px;
	box-shadow: 0 2px 10px rgba(46, 42, 38, 0.05);
}
.mem-co-h {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.3rem;
	margin: 0 0 18px;
}
.mem-co-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #C1654A;
	color: #fff;
	font-size: 1rem;
	flex: 0 0 auto;
}
/* Kroki pełnej szerokości — łamiemy domyślny układ 2-kolumnowy WooCommerce */
.mem-checkout #customer_details,
.mem-checkout #order_review {
	width: 100%;
	float: none;
}
.mem-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mem-checkout .col2-set .col-1,
.mem-checkout .col2-set .col-2 { width: 100%; float: none; }
@media (max-width: 782px) { .mem-checkout .col2-set { grid-template-columns: 1fr; } }

/* Podgląd koszyka (krok 1) */
.mem-co-items { list-style: none; margin: 0; padding: 0; }
.mem-co-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(46, 42, 38, 0.08);
}
.mem-co-item:last-child { border-bottom: 0; }
.mem-co-thumb img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}
.mem-co-info { flex: 1 1 auto; }
.mem-co-name { font-weight: 600; display: block; }
.mem-co-meta { font-size: 0.86rem; opacity: 0.75; margin: 2px 0; }
.mem-co-meta p { margin: 0; }
.mem-co-qty { font-size: 0.86rem; opacity: 0.7; }
.mem-co-price { font-weight: 700; white-space: nowrap; }
.mem-co-empty { opacity: 0.7; }

/* Wymuszenie pełnej szerokości kroków — nadpisuje floaty Astra/WooCommerce (inaczej krok 3 nachodzi na 2) */
.mem-checkout .mem-co-step { overflow: hidden; }
.mem-checkout #customer_details,
.mem-checkout #order_review,
.mem-checkout .col2-set > .col-1,
.mem-checkout .col2-set > .col-2 {
	float: none !important;
	width: 100% !important;
	padding: 0 !important;
}
.mem-checkout .col2-set {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 26px;
}
@media (max-width: 782px) {
	.mem-checkout .col2-set { grid-template-columns: 1fr; }
}

/* Krok 2 w jednej pełnej kolumnie (prawa kolumna „dostawa" jest pusta, gdy adres = rozliczeniowy) */
.mem-checkout .col2-set { display: block !important; }
.mem-checkout #customer_details .col-1,
.mem-checkout #customer_details .col-2 {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin: 0 0 8px !important;
}
.mem-checkout .woocommerce-billing-fields,
.mem-checkout .woocommerce-shipping-fields,
.mem-checkout .woocommerce-additional-fields {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	float: none !important;
}

/* Nagłówek kroku 3 — Astra go przesuwa w prawo; wyrównaj do lewej jak kroki 1/2 */
.mem-checkout #order_review_heading {
	float: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	text-align: left;
}

/* --- Pływający koszyk (prawy górny róg, każda podstrona) --- */
.mem-floatcart { position: fixed; top: 92px; right: 20px; z-index: 9990; }
.mem-floatcart-btn {
	display: flex; align-items: center; gap: 8px;
	background: #C1654A; color: #fff; border: 0;
	border-radius: 999px; padding: 10px 16px; cursor: pointer;
	box-shadow: 0 6px 18px rgba(46, 42, 38, 0.22);
	font: inherit; font-weight: 600; line-height: 1;
}
.mem-floatcart-btn:hover { background: #A85138; }
.mem-floatcart-ico { flex: 0 0 auto; }
.mem-floatcart-count {
	background: #fff; color: #C1654A; border-radius: 999px;
	min-width: 22px; height: 22px;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 0.8rem; padding: 0 6px;
}
.mem-floatcart-total { font-size: 0.95rem; white-space: nowrap; }
.mem-floatcart.is-empty .mem-floatcart-total { display: none; }
.mem-floatcart-panel {
	position: absolute; top: calc(100% + 10px); right: 0;
	width: 340px; max-width: 92vw;
	background: #fff; border-radius: 14px;
	box-shadow: 0 12px 34px rgba(46, 42, 38, 0.24);
	padding: 16px;
}
.mem-floatcart-panel .woocommerce-mini-cart { list-style: none; margin: 0 0 8px; padding: 0; max-height: 300px; overflow-y: auto; }
.mem-floatcart-panel .woocommerce-mini-cart__total { border-top: 1px solid rgba(46, 42, 38, 0.1); padding-top: 10px; margin-top: 8px; }
.mem-floatcart-panel .woocommerce-mini-cart__buttons { display: flex; gap: 8px; margin-top: 10px; margin-bottom: 0; }
.mem-floatcart-panel .woocommerce-mini-cart__buttons .button {
	flex: 1; text-align: center; border-radius: 999px; padding: 10px 12px;
	background: #C1654A; color: #fff !important; font-weight: 600;
}
.mem-floatcart-panel .woocommerce-mini-cart__buttons .checkout { background: #2E2A26; }
.mem-floatcart-panel p.woocommerce-mini-cart__empty-message { margin: 6px 0 0; opacity: 0.75; }
@media (max-width: 600px) {
	.mem-floatcart { top: auto; bottom: 16px; right: 16px; }
	.mem-floatcart-panel { bottom: calc(100% + 10px); top: auto; }
}

/* Pływający koszyk — ukryty na samej górze (nie nachodzi na header), pojawia się przy przewijaniu */
.mem-floatcart { opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
.mem-floatcart.is-visible { opacity: 1; visibility: visible; transform: none; }

/* --- Wąski baner przykładów na górze kreatora --- */
.mem-krbanner {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
	gap: 14px 28px;
	background: #fff;
	border: 1px solid rgba(46, 42, 38, 0.10);
	border-radius: 14px;
	padding: 12px 20px;
	margin: 0 auto 22px;
	max-width: 860px;
	box-shadow: 0 2px 10px rgba(46, 42, 38, 0.05);
}
.mem-krbanner-head { text-align: left; }
.mem-krbanner-eyebrow {
	display: block; font-weight: 700; color: #C1654A;
	font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.mem-krbanner-sub { font-size: 0.9rem; opacity: 0.8; }
.mem-krbanner-row { display: flex; gap: 20px; flex-wrap: wrap; }
.mem-krbanner-ex { margin: 0; text-align: center; }
.mem-krbanner-pair { display: inline-flex; align-items: center; gap: 6px; }
.mem-krbanner-pair img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.mem-krbanner-arr { color: #C1654A; flex: 0 0 auto; }
.mem-krbanner-ex figcaption { font-size: 0.76rem; opacity: 0.75; margin-top: 5px; }
@media (max-width: 680px) {
	.mem-krbanner { flex-direction: column; text-align: center; }
	.mem-krbanner-head { text-align: center; }
	.mem-krbanner-row { justify-content: center; }
}

/* Przełącznik języków (Polylang) w górnym pasku */
.mem-topbar-lang { margin-left: 14px; display: inline-flex; align-items: center; }
.mem-lang-switch {
	list-style: none; margin: 0; padding: 0;
	display: inline-flex; align-items: center; gap: 2px;
}
.mem-lang-switch li { margin: 0; }
.mem-lang-switch a,
.mem-lang-switch .current-lang > span,
.mem-lang-switch li > span {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 6px;
	font-size: 0.82em;
	line-height: 1.6;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #fff;
	text-decoration: none;
	opacity: 0.75;
	transition: opacity 0.15s ease, background 0.15s ease;
}
.mem-lang-switch a:hover { opacity: 1; background: rgba(255, 255, 255, 0.14); }
.mem-lang-switch .current-lang > a,
.mem-lang-switch .current-lang > span {
	opacity: 1;
	background: rgba(255, 255, 255, 0.18);
	font-weight: 700;
}

/* Mobile: górny pasek — ukryj promo (jest w stopce), zostaw sam przełącznik języków */
@media (max-width: 600px) {
	.mem-topbar-inner { justify-content: center; flex-wrap: nowrap; }
	.mem-topbar-inner > span:not(.mem-topbar-lang) { display: none; }
	.mem-topbar .mem-topbar-lang { display: inline-flex !important; margin-left: 0 !important; }
	.mem-topbar-inner { min-height: 22px; align-items: center; }
}
