/* ============================================================
   DR MAGDALENA - HEADER & FOOTER
   ============================================================ */

/* ========== HEADER ========== */
.drm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001; /* nad panelem menu mobilnego (1000), zeby X zamykania byl widoczny */
  padding: 1.1rem 0;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(215, 197, 216, 0.25);
}

/* Stan po scrollu - solidniejszy white */
.drm-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  padding: 0.75rem 0;
  box-shadow: 0 6px 30px rgba(49, 42, 68, 0.08);
  border-bottom-color: rgba(215, 197, 216, 0.5);
}

/* Transparentny over dark hero (opt-in przez .drm-header.on-dark) */
.drm-header.on-dark:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.drm-header.on-dark:not(.scrolled) .drm-logo-name,
.drm-header.on-dark:not(.scrolled) .drm-nav-menu a { color: #fff; }
.drm-header.on-dark:not(.scrolled) .drm-logo-role { color: var(--plum-blossom); }

.drm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

/* Logo - editorial style with monogram mark + stacked name+role */
.drm-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--midnight-orchid);
  transition: color 0.3s ease;
  line-height: 1;
}

.drm-logo:hover { color: var(--dusky-lilac); }

/* Custom WP logo (Wyglad > Dostosuj > Tozsamosc) */
.drm-logo img,
.drm-logo .custom-logo {
  max-height: 44px;
  width: auto;
  display: block;
}

/* Monogram mark "mw" - elegant serif in a subtle rounded rect */
.drm-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--midnight-orchid);
  color: var(--plum-blossom);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}
.drm-logo:hover .drm-logo-mark {
  background: var(--dusky-lilac);
  color: #fff;
}

/* Stacked text: name + role */
.drm-logo-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
}
.drm-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--midnight-orchid);
  line-height: 1.1;
}
.drm-logo-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dusky-lilac);
  line-height: 1;
}

/* Nav desktop - editorial, minimal */
.drm-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.drm-nav-menu {
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.drm-nav-menu li {
  position: relative;
}

.drm-nav-menu a {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--midnight-orchid);
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
  padding: 0.4rem 0;
  display: inline-block;
  position: relative;
}

.drm-nav-menu a:hover,
.drm-nav-menu .current-menu-item > a,
.drm-nav-menu .current-menu-parent > a {
  color: var(--dusky-lilac);
}

/* Elegant underline on hover - thin line, subtle */
.drm-nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background: var(--dusky-lilac);
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.drm-nav-menu a:hover::after,
.drm-nav-menu .current-menu-item > a::after,
.drm-nav-menu .current-menu-parent > a::after {
  width: 100%;
}

/* Sub-menu (dropdown) */
.drm-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(49, 42, 68, 0.15);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  list-style: none;
}
.drm-nav-menu li:hover > .sub-menu,
.drm-nav-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.drm-nav-menu .sub-menu li { padding: 0; }
.drm-nav-menu .sub-menu a { white-space: nowrap; }
.drm-nav-menu .sub-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
}
.drm-nav-menu .sub-menu a::after { display: none; }

/* Right side: CTA button */
.drm-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.drm-header .drm-btn {
  padding: 0.7rem 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* Mobile hamburger button */
.drm-hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}

.drm-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--midnight-orchid);
  margin: 2.5px auto;
  flex-shrink: 0; /* w kolumnie flex 40px kreski sciskaly sie do 0 - hamburger byl niewidoczny */
  transition: all 0.3s ease;
  transform-origin: center;
}

.drm-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.drm-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.drm-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel */
.drm-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(105%); /* zamiast right:-100% - element poza ekranem pozwalal przesuwac strone w bok na iOS */
  visibility: hidden;
  width: min(85%, 360px);
  height: 100vh;
  background: #fff;
  padding: 5rem 2rem 2rem;
  box-shadow: -10px 0 40px rgba(49, 42, 68, 0.15);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0.4s;
  z-index: 1000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drm-mobile-menu.open {
  transform: none;
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s;
}

.drm-mobile-menu .drm-nav-menu {
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}

.drm-mobile-menu .drm-nav-menu li {
  width: 100%;
}

.drm-mobile-menu .drm-nav-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  border-bottom: 1px solid rgba(215, 197, 216, 0.4);
  width: 100%;
}

.drm-mobile-menu .drm-nav-menu a::after { display: none; }

/* podmenu na mobile: rozwiniete na stale, wciete pod rodzicem */
.drm-mobile-menu .drm-nav-menu .sub-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  min-width: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0 0.5rem 1.1rem;
  margin: 0;
  border-left: 1px solid var(--wisteria, #dad4df);
}
.drm-mobile-menu .drm-nav-menu .sub-menu a {
  padding: 0.55rem 0;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.drm-mobile-account {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0;
  padding: 0.85rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--midnight-orchid);
  text-decoration: none;
  border-top: 1px solid var(--silver-wisteria);
  width: 100%;
}
.drm-mobile-account svg { color: var(--dusky-lilac); }
/* pierwsza pozycja pod menu ma juz kreske od ostatniego linku nawigacji */
.drm-mobile-account:first-of-type { border-top: 0; }
.drm-mobile-logout { color: var(--dusky-lilac); }
.drm-mobile-menu .drm-btn {
  margin-top: 1.5rem;
  width: 100%;
}

.drm-mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(49, 42, 68, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}
.drm-mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Skip link (a11y) */
.drm-skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--midnight-orchid);
  color: #fff;
  padding: 1rem 1.5rem;
  z-index: 10000;
  text-decoration: none;
}
.drm-skip-link:focus { top: 0; }

/* Body spacer (offset for fixed header) */
body.drm-has-spacer { padding-top: 108px; }

/* ========== HEADER RESPONSIVE (mobile-first) ========== */
/* Tablet/Mobile: hamburger widoczny, nav i CTA schowane */
@media (max-width: 1023px) {
  .drm-header { padding: 0.8rem 0; }
  .drm-header.scrolled { padding: 0.6rem 0; }
  .drm-header-inner { gap: 1rem; }

  .drm-logo { gap: 0.6rem; }
  .drm-logo-mark { width: 36px; height: 36px; font-size: 1.1rem; border-radius: 8px; }
  .drm-logo-name { font-size: 0.95rem; }
  .drm-logo-role { font-size: 0.62rem; letter-spacing: 0.1em; }
  .drm-logo img { max-height: 38px; }

  .drm-nav,
  .drm-header-right {
    display: none;
  }
  .drm-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  /* Body spacer mniejszy na mobile */
  body.drm-has-spacer { padding-top: 85px; }
}

/* Small phones */
@media (max-width: 540px) {
  .drm-header { padding: 0.7rem 0; }
  .drm-header.scrolled { padding: 0.5rem 0; }
  .drm-container-wide { padding: 0 1rem; }
  .drm-logo-mark { width: 34px; height: 34px; font-size: 1rem; }
  /* Ukryj "role" subtitle na bardzo malych - zachowaj imie */
  .drm-logo-role { display: none; }
  .drm-logo-name { font-size: 0.9rem; }
  body.drm-has-spacer { padding-top: 76px; }
}


/* ============================================================
   FOOTER
   ============================================================ */
.drm-footer {
  background: var(--midnight-orchid);
  color: rgba(255, 255, 255, 0.8);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}

/* Decorative circle top-right corner */
.drm-footer::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 197, 216, 0.08), transparent 70%);
  pointer-events: none;
}

.drm-footer::after {
  content: '';
  position: absolute;
  bottom: 80px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(136, 112, 142, 0.15), transparent 70%);
  pointer-events: none;
}

.drm-footer-inner {
  position: relative;
  z-index: 1;
}

/* Top: 4 columns */
.drm-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(215, 197, 216, 0.15);
}

/* Column: Brand */
.drm-footer-brand .drm-logo {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.drm-footer-brand .drm-logo:hover {
  color: var(--plum-blossom);
}
.drm-footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 1.5rem;
}

/* Footer column titles */
.drm-footer h4,
.drm-footer-widget-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1.2rem;
  letter-spacing: 0.01em;
}

/* Footer menus */
.drm-footer-menu,
.drm-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drm-footer-menu li {
  margin-bottom: 0.7rem;
}

.drm-footer-menu a,
.drm-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.drm-footer-menu a:hover,
.drm-footer a:hover {
  color: var(--plum-blossom);
  padding-left: 4px;
}

/* Social icons */
.drm-footer-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.drm-footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(215, 197, 216, 0.25);
  transition: all 0.3s ease;
  padding: 0;
}

.drm-footer-socials a:hover {
  background: var(--plum-blossom);
  border-color: var(--plum-blossom);
  transform: translateY(-2px);
  padding-left: 0;
}

.drm-footer-socials svg {
  width: 18px;
  height: 18px;
  stroke: var(--plum-blossom);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.drm-footer-socials a:hover svg {
  stroke: var(--midnight-orchid);
}

/* Newsletter form placeholder (Fluent Forms shortcode goes here) */
.drm-footer-newsletter p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.drm-footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.drm-footer-newsletter-form input[type="email"],
.drm-footer-newsletter-form input.drm-footer-nl-name {
  flex: 1 1 180px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(215, 197, 216, 0.25);
  border-radius: 60px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.drm-footer-newsletter-form input[type="email"]::placeholder,
.drm-footer-newsletter-form input.drm-footer-nl-name::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.drm-footer-newsletter-form input[type="email"]:focus,
.drm-footer-newsletter-form input.drm-footer-nl-name:focus {
  border-color: var(--plum-blossom);
}

.drm-footer-newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--plum-blossom);
  color: var(--midnight-orchid);
  border: none;
  border-radius: 60px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}
.drm-footer-newsletter-form button { flex: 1 1 100%; }
.drm-footer-newsletter-form button:hover {
  background: #c9b5cb;
  transform: translateY(-1px);
}
.drm-footer-newsletter-form button[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* Stan zapisu w stopce (JS dodaje .is-visible) */
/* blok podziekowania - ten sam wzor co .drm-nl-success na stronie glownej (ikona + tekst) */
.drm-footer-newsletter-success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(215, 197, 216, 0.45);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.drm-footer-newsletter-success.is-visible { display: flex; }
.drm-footer-newsletter-success-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--plum-blossom, #D7C5D8);
  color: var(--midnight-orchid, #312A44);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}
.drm-footer-newsletter-success-icon svg { width: 20px; height: 20px; }
.drm-footer-newsletter-success-body { display: block; }
.drm-footer-newsletter-success strong {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 3px;
}
.drm-footer-newsletter-success-body > span {
  display: block;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.drm-footer-newsletter-error {
  display: none;
  font-size: 0.82rem;
  color: var(--plum-blossom);
  margin: 0.6rem 0 0;
}
.drm-footer-newsletter-error.is-visible { display: block; }

/* Footer bottom bar */
.drm-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.drm-footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin: 0;
}

.drm-footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.drm-footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.drm-footer-legal a:hover {
  color: var(--plum-blossom);
  padding-left: 0;
}

/* Payment methods row (for WooCommerce shop) */
.drm-footer-payments {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  opacity: 0.5;
}

.drm-footer-payments img {
  height: 24px;
  width: auto;
  filter: grayscale(100%) brightness(2);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .drm-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .drm-footer { padding: 3.5rem 0 0; }
  .drm-footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
  }
  .drm-footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 0;
  }
  .drm-footer-legal {
    justify-content: center;
  }
}

/* ===== Credit: Wykonanie i projekt (Vibe Group) ===== */
.drm-footer-credit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.drm-footer-credit a {
  display: block;
  line-height: 0;
}

.drm-footer-credit img {
  height: 22px;
  width: auto;
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

.drm-footer-credit a:hover img,
.drm-footer-credit a:focus-visible img {
  opacity: 1;
}

/* ============================================================
   10. IKONA KOSZYKA W HEADERZE
   ============================================================ */
.drm-header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--midnight-orchid);
  background: rgba(215, 197, 216, 0.35);
  margin-right: 0.85rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.drm-header-cart:hover {
  background: var(--plum-blossom);
  transform: translateY(-1px);
}
.drm-header-cart svg.drm-icon { width: 20px; height: 20px; }
.drm-header-cart.is-empty { display: none; }

/* Ikona portalu klienta (obok koszyka) */
.drm-header-account {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--midnight-orchid);
  background: rgba(215, 197, 216, 0.35);
  margin-right: 0.85rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.drm-header-account:hover { background: var(--plum-blossom); transform: translateY(-1px); }
.drm-header-account svg.drm-icon { width: 20px; height: 20px; }
.drm-header-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--dusky-lilac);
  background: transparent;
  margin-right: 0.85rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.drm-header-logout:hover {
  background: rgba(215, 197, 216, 0.35);
  color: var(--midnight-orchid);
  transform: translateY(-1px);
}
.drm-header-logout svg.drm-icon { width: 20px; height: 20px; }
/* konto i wylogowanie stoja para - kasujemy odstep miedzy nimi */
.drm-header-account.is-logged-in { margin-right: 0.2rem; }

.drm-header-account.is-logged-in::after {
  content: '';
  position: absolute;
  right: 3px;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--midnight-orchid);
  border: 2px solid #fff;
}

.drm-header-cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: var(--midnight-orchid);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(49, 42, 68, 0.3);
}

/* ============================================================
   11. POPUP - zaproszenie na rozmowe 1:1
   Wg handoffu "Popup rozmowa 1:1": dwie kolumny 5fr/7fr,
   lewa = wizual (gradient + kropki + plakietka), prawa = tresc.
   Typografia marki bez zmian: Cormorant Garamond + Inter
   (w prototypie Playfair Display + Source Sans 3).
   ============================================================ */
.drm-popup {
  --pop-orchid: #312A44;
  --pop-lilac: #88708E;
  --pop-wisteria: #DAD4DF;
  --pop-plum: #D7C5D8;
  --pop-iris: #BAB0C8;
  --pop-body: #524A66;

  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  /* bez place-items:center - okno wyzsze niz ekran telefonu mialo ucieta gore (zdjecie), ktorej nie dalo sie przewinac; srodkuje margin:auto na .drm-popup-box */
  padding: 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(49, 42, 68, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.drm-popup.open { opacity: 1; visibility: visible; }

.drm-popup :focus-visible {
  outline: 2px solid var(--pop-lilac);
  outline-offset: 2px;
}

.drm-popup-box {
  position: relative;
  width: min(880px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(49, 42, 68, 0.35);
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  transition: opacity 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.drm-popup.open .drm-popup-box { opacity: 1; transform: none; }

/* --- Lewa kolumna: wizual --- */
.drm-popup-visual {
  position: relative;
  min-height: 420px;
  background: linear-gradient(180deg, var(--pop-wisteria) 0%, var(--pop-plum) 100%);
}
.drm-popup-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* plik jest przyciety dokladnie do proporcji kolumny (0.63), wiec na desktopie
     praktycznie nie ma co kadrowac - srodek trzyma bezpiecznie przy zmianach wysokosci */
  object-position: 50% 50%;
  display: block;
}
/* Kropki leza na zdjeciu, wiec NIE uzywamy opacity: przy 60% przezroczystosci
   przeswituje przez nie tlo (w tym rogu biegnie krawedz swiatla ze zdjecia)
   i identyczne kropki czytaja sie jako roznej wielkosci. Kolor #B2A4B6 to
   dokladnie to, co dawal --pop-lilac na 0.6 nad jasnym tlem - tyle ze staly.
   6px zamiast 5px: parzysty rozmiar rasteryzuje sie rowno takze przy
   skalowaniu Windows 125%/150%. */
.drm-popup-dots {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 6px);
  gap: 10px;
}
.drm-popup-dots span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #B2A4B6;
}
.drm-popup-badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(49, 42, 68, 0.18);
}
.drm-popup-badge-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pop-orchid);
  color: var(--pop-plum);
  display: grid;
  place-items: center;
}
.drm-popup-badge-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.drm-popup-badge-text strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 17.5px;
  color: var(--pop-orchid);
}
.drm-popup-badge-text span {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pop-lilac);
}

/* --- Prawa kolumna: tresc --- */
.drm-popup-content {
  position: relative;
  padding: clamp(32px, 5vw, 52px) clamp(28px, 4.5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.drm-popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--pop-wisteria);
  border-radius: 50%;
  background: #fff;
  color: var(--pop-lilac);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  line-height: 0;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.drm-popup-close:hover {
  background: var(--pop-wisteria);
  color: var(--pop-orchid);
  transform: rotate(90deg);
}

.drm-popup-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pop-lilac);
}
.drm-popup-kicker::before {
  content: '';
  flex: none;
  width: 30px;
  height: 1px;
  background: currentColor;
}

.drm-popup-box h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--pop-orchid);
}
.drm-popup-box h2 em {
  font-style: italic;
  color: var(--pop-lilac);
}

.drm-popup-lead {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 46ch;
  margin: 0 0 22px;
  color: var(--pop-body);
}

.drm-popup-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.drm-popup-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: var(--pop-orchid);
}
.drm-popup-list-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pop-wisteria);
  color: var(--pop-orchid);
  display: grid;
  place-items: center;
}

.drm-popup-btns {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.drm-popup-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--pop-orchid);
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease;
}
/* UWAGA: tylko :hover zmienia tlo. Skrypt ustawia focus na tym CTA zaraz po
   otwarciu popupu, wiec gdyby :focus-visible tez przejmowal kolor hoveru,
   przycisk od razu renderowalby sie liliowy zamiast w brandowym #312A44.
   Za sygnal focusu odpowiada obwodka z `.drm-popup :focus-visible`. */
.drm-popup-cta:hover {
  background: var(--pop-lilac);
  color: #fff;
  transform: translateY(-2px);
}
.drm-popup-later {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1.5px solid transparent;
  background: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pop-lilac);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.drm-popup-later:hover {
  color: var(--pop-orchid);
  border-color: var(--pop-plum);
}

.drm-popup-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 20px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: var(--pop-iris);
}
.drm-popup-note svg { flex: none; }

/* --- Mobile: jedna kolumna, wizual na gorze --- */
@media (max-width: 700px) {
  .drm-popup { padding: 16px; }
  .drm-popup-box {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  /* poziomy pasek u gory - kadrujemy do twarzy, bo plik jest pionowy */
  .drm-popup-visual { min-height: 240px; }
  .drm-popup-photo { object-position: 50% 14%; }
  .drm-popup-badge { left: 14px; right: 14px; bottom: 14px; padding: 11px 14px; }
  .drm-popup-content { padding: 28px 22px 26px; }
  .drm-popup-close { top: 12px; right: 12px; width: 34px; height: 34px; }
  /* kicker nie wchodzi pod X zamkniecia */
  .drm-popup-kicker { padding-right: 40px; letter-spacing: 0.12em; }
  .drm-popup-btns { gap: 14px; }
  .drm-popup-cta { padding: 14px 26px; }
}

/* Niskie viewporty: wizual znika, zeby tresc zmiescila sie na ekranie. */
@media (max-width: 700px) and (max-height: 720px) {
  /* bylo display:none - na iPhone'ach (widoczna wysokosc ok. 660 px) popup nie mial zdjecia */
  .drm-popup-visual { min-height: 220px; }
  .drm-popup-photo { object-position: 50% 26%; } /* twarz nad plakietka */
  .drm-popup-content { padding-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .drm-popup,
  .drm-popup-box,
  .drm-popup-close,
  .drm-popup-cta,
  .drm-popup-later { transition: none; }
  .drm-popup-box { transform: none; }
  .drm-popup-close:hover { transform: none; }
  .drm-popup-cta:hover { transform: none; }
}

/* ============================================================
   12. LOGO SVG W HEADERZE
   Inline SVG dziedziczy kolor z .drm-logo (currentColor),
   dzieki czemu na ciemnym hero robi sie biale.
   ============================================================ */
.drm-logo-svg {
  display: block;
  line-height: 0;
}
.drm-logo-svg svg {
  display: block;
  height: 72px;
  width: auto;
}
.drm-logo-svg svg path,
.drm-logo-svg svg polygon,
.drm-logo-svg svg rect,
.drm-logo-svg svg circle {
  fill: currentColor;
}
/* na ciemnym tle (hero) logo biale - dziedziczy z .drm-logo */
.drm-header.on-dark:not(.scrolled) .drm-logo { color: #fff; }
/* po przewinieciu naglowek jest jasny - wracamy do koloru marki */
.drm-header.scrolled .drm-logo { color: var(--midnight-orchid); }

@media (max-width: 900px) {
  .drm-logo-svg svg { height: 59px; }
}
@media (max-width: 480px) {
  .drm-logo-svg svg { height: 50px; }
}

/* --- logo w stopce: MONOKOLOR (jasny, na ciemnym tle) ---
   SVG ma kolory zapisane inline (style="fill:..."), wiec potrzebne !important. */
.drm-footer-logo {
  display: inline-block;
  color: #fff;
  margin-bottom: 0.4rem;
}
.drm-footer-logo svg {
  display: block;
  height: 64px;
  width: auto;
}
.drm-footer-logo svg path,
.drm-footer-logo svg polygon,
.drm-footer-logo svg rect,
.drm-footer-logo svg circle {
  fill: currentColor !important;
}
.drm-footer-logo:hover { color: var(--plum-blossom); }

/* header na ciemnym hero: logo takze monokolorowe (biale) */
.drm-header.on-dark:not(.scrolled) .drm-logo-svg svg path,
.drm-header.on-dark:not(.scrolled) .drm-logo-svg svg polygon,
.drm-header.on-dark:not(.scrolled) .drm-logo-svg svg rect,
.drm-header.on-dark:not(.scrolled) .drm-logo-svg svg circle {
  fill: #fff !important;
}

@media (max-width: 900px) {
  .drm-footer-logo svg { height: 54px; }
}
@media (max-width: 480px) {
  .drm-footer-logo svg { height: 46px; }
}

/* Mobile: brak przewijania w bok (iOS) i oddech logo/hamburgera od krawedzi */
html, body { overflow-x: clip; max-width: 100%; }
@media (max-width: 768px) {
  .drm-header .drm-container-wide { padding-left: 20px; padding-right: 20px; }
}
.drm-mobile-menu:not(.open) * { visibility: hidden; }
/* iOS przybliza strone przy wejsciu w pole z czcionka < 16px i nie oddala - strona "wychodzi poza ekran"
   i da sie ja przesuwac w bok. Na telefonach wszystkie pola formularzy maja 16px (cala strona). */
@media (max-width: 1024px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
}
@media (max-width: 1024px) {
  html body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), html body select, html body textarea,
  html body .ff-el-form-control { font-size: 16px !important; }
}

/* Ikona konta ze zdjeciem profilowym klientki (inc/awatar.php) */
.drm-header-account.has-photo { padding: 0; overflow: visible; background: var(--plum-blossom); }
.drm-header-account-photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--plum-blossom);
}
.drm-header-account.has-photo:hover .drm-header-account-photo { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--dusky-lilac); }
.drm-header-account.has-photo::after { display: none; }

/* Pasek WordPressa (zalogowany admin, np. wcekot85): naglowek i menu mobilne pod paskiem, nie pod nim.
   Na telefonie WP przewija pasek razem ze strona (position: absolute) - przypinamy go, zeby naglowek
   nie zostawial pustego paska 46 px po przewinieciu. Klientki paska nie maja (drm_account_hide_admin_bar). */
body.admin-bar .drm-header { top: 32px; }
body.admin-bar .drm-mobile-menu { top: 32px; height: calc(100vh - 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar .drm-header { top: 46px; }
  body.admin-bar .drm-mobile-menu { top: 46px; height: calc(100vh - 46px); }
}
@media screen and (max-width: 600px) {
  body.admin-bar #wpadminbar { position: fixed; }
}

/* Mobile/tablet: ikona konta (i wylogowania po zalogowaniu) obok hamburgera, jak na komputerze.
   Prawy blok wraca bez przycisku "Zacznij tutaj" (jest w menu mobilnym). */
@media (max-width: 1023px) {
  .drm-header-inner { gap: 0.6rem; }
  .drm-header-right { display: flex; margin-left: auto; gap: 0.35rem; }
  .drm-header-right > .drm-btn { display: none; }
  .drm-header-account,
  .drm-header-logout,
  .drm-header-cart { margin-right: 0; }
  .drm-header-account.is-logged-in { margin-right: 0; }
}
@media (max-width: 400px) {
  .drm-header-account,
  .drm-header-logout,
  .drm-header-cart { width: 36px; height: 36px; }
  .drm-header-right { gap: 0.2rem; }
  .drm-header-inner { gap: 0.4rem; }
}
@media (max-width: 360px) {
  /* 320 px po zalogowaniu: logo + konto + wyloguj + hamburger musza sie zmiescic w marginesach */
  .drm-logo-svg svg { height: 42px; }
  .drm-hamburger { width: 36px; padding: 0.4rem; }
}
