/* =========================================
   SASTRE DE PERFUMES — Arkusz Stylów v8
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ─── ZMIENNE: MOTYW JASNY (domyślny :root) ─── */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --border: #e8e4dc;
  --text: #1a1a1a;
  --text-muted: #595959;
  --accent: #c9a84c;
  --accent-dark: #a8862c;
  --header-bg: rgba(247,246,242,0.92);
  --footer-bg: #0d0d0d;
  --footer-text: #999;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --font: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
}

/* ─── MOTYW CIEMNY — używamy klasy na <html> ─── */
html.theme-dark {
  --bg: #0c0c0c;
  --surface: #161616;
  --border: #272727;
  --text: #f0ece6;
  --text-muted: #a3a3a3;
  --accent: #d4af37;
  --accent-dark: #b5952f;
  --header-bg: rgba(10,10,10,0.94);
  --footer-bg: #050505;
  --footer-text: #777;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.55);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.7);
}

/* Ikony motywu – pokazuj właściwą */
.icon-sun { display: none; }
.icon-moon { display: block; }
html.theme-dark .icon-sun { display: block; }
html.theme-dark .icon-moon { display: none; }

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 300;
  transition: background 0.3s, color 0.3s;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; transition: color .3s; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── HEADER ─── */
header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s;
}

header.is-home {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
header.is-home.scrolled {
  position: fixed;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 10px 24px;
  gap: 24px;
}
.logo { flex-shrink: 0; } /* przy ciasnym pasku logo nie może się „ścisnąć” do zera */
.container.header-inner { max-width: none; } /* pasek menu na całą szerokość okna – logo zawsze w lewym górnym rogu (nie nad zdjęciem w hero) */

.logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: opacity .3s;
}
.logo img:hover { opacity: .82; }

nav ul { list-style: none; display: flex; gap: 16px; align-items: center; margin: 0; padding: 0; }
nav ul li a {
  font-family: 'Playfair Display', serif;
  font-size: var(--menu-fs, 1rem); /* Panel → Ustawienia → Górne menu → rozmiar czcionki */
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}
nav ul li a::after {
  content:''; position:absolute; bottom:0; left:0;
  width:0; height:1px; background:var(--accent);
  transition: width .3s;
}
nav ul li a:hover::after, nav ul li a.active::after { width: 100%; }
nav ul li a:hover, nav ul li a.active { color: var(--accent); }

/* Przycisk Zarejestruj w nav */
.nav-register-btn {
  background: var(--accent);
  color: #fff !important;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.95rem !important;
  transition: background .3s, transform .2s !important;
}
.nav-register-btn:hover {
  background: var(--accent-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.nav-register-btn::after { display: none !important; }

/* Przycisk „Promocje” – wyraźny czerwony we wszystkich stylach menu (też w menu na telefonie) */
header a.nav-promo {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 15px !important; border-radius: 999px;
  background: #d63a3b !important; color: #fff !important; font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(214, 58, 59, .32);
  transition: background .2s, transform .2s, box-shadow .2s;
}
header a.nav-promo::after { display: none !important; }
header a.nav-promo:hover, header a.nav-promo.active { background: #b92f30 !important; color: #fff !important; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(214, 58, 59, .4); }
header a.nav-promo:focus-visible { outline: 2px solid #d63a3b; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { header a.nav-promo:hover { transform: none; } }

.header-icons { display: flex; gap: 14px; align-items: center; margin-left: auto; }

.icon-btn {
  background: none; border: none;
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center;
  position: relative; padding: 4px;
  transition: color .3s;
}
.icon-btn:hover { color: var(--accent); }

.theme-btn svg { transition: transform .4s; }
.theme-btn:hover svg { transform: rotate(20deg); }

.cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--accent); color: #fff;
  font-size: .6rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ─── PRZYCISKI ─── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 34px;
  border: none;
  font-family: var(--font);
  font-weight: 500;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: background .3s, transform .3s, box-shadow .3s;
  text-align: center;
}
.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-sm { padding: 9px 20px; font-size: .75rem; }

/* ─── HERO ─── */
.hero {
  display: flex;
  min-height: 88vh;
  align-items: center;
  justify-content: flex-end;
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  position: relative;
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(247,246,242,.72) 55%, rgba(247,246,242,.97) 100%);
  z-index: 1;
}
html.theme-dark .hero::before {
  background: linear-gradient(105deg, transparent 20%, rgba(12,12,12,.72) 55%, rgba(12,12,12,.97) 100%);
}

.hero-content {
  flex: 0 0 48%;
  padding: 80px 10% 80px 40px;
  z-index: 2;
  position: relative;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero-content h1 span { display: block; font-style: italic; color: var(--accent); }
.hero-content p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 40px; max-width: 420px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── PRODUKT: SIATKA ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: visible;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .4s, box-shadow .4s, border-color .4s;
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

/* Badge numeru INTENSO — prawy górny róg karty */
.intenso-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: .95rem;
  font-weight: 400;
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(201,168,76,.45);
  z-index: 5;
  padding: 0 6px;
}

.product-image-wrapper {
  width: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 8px;
}

/* Górny blok karty (tło i flakon) dopasowany do zaokrąglenia karty – bez wystających kwadratowych rogów,
   także przy najechaniu, gdy obramowanie robi się złote (isolation: poprawne przycinanie w Safari podczas animacji) */
.product-card > .product-image-wrapper { border-radius: calc(var(--r-md) - 1px) calc(var(--r-md) - 1px) 0 0; isolation: isolate; }

.product-image {
  height: 260px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform .5s;
}
.product-card:hover .product-image { transform: scale(1.04); }

.product-card-body {
  padding: 16px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.product-type-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  align-self: center;
}
.badge-intenso { background: rgba(212,175,55,.15); color: var(--accent); border: 1px solid rgba(212,175,55,.3); }
.badge-normal  { background: rgba(128,128,128,.1); color: var(--text-muted); border: 1px solid var(--border); }

.product-title { font-size: 1.2rem; margin-bottom: 6px; }
.product-meta { font-size: .76rem; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1.5px; }
.product-price { font-size: 1.25rem; color: var(--accent); font-weight: 600; margin-bottom: 18px; margin-top: auto; }

/* ─── KATALOG: PASEK FILTRÓW ─── */
.shop-filter-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 40px;
  transition: background .3s, border-color .3s;
}
.shop-filter-label { color: var(--text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; }
.shop-filter-bar select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: .9rem;
  cursor: pointer;
  min-width: 150px;
  transition: border-color .3s;
}
.shop-filter-bar select:focus { outline: none; border-color: var(--accent); }

/* ─── CHAT WIDGET ─── */
.chat-widget-btn {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(201,168,76,.45);
  z-index: 9000;
  transition: transform .3s, box-shadow .3s;
  color: #fff;
}
.chat-widget-btn:hover { transform: scale(1.08); box-shadow: 0 10px 32px rgba(201,168,76,.55); }

.chat-widget-popup {
  position: fixed;
  bottom: 100px; right: 30px;
  width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 8999;
  overflow: hidden;
  display: none;
  flex-direction: column;
  transition: background .3s;
}
.chat-widget-popup.open { display: flex; }

.chat-popup-header {
  background: var(--accent);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}
.chat-popup-header button {
  background: none; border: none; color: #fff; cursor: pointer; font-size: 1.2rem;
}

.chat-popup-body { padding: 20px; }
.chat-popup-body input,
.chat-popup-body select,
.chat-popup-body textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: .9rem;
  margin-bottom: 12px;
  transition: border-color .3s;
}
.chat-popup-body input:focus,
.chat-popup-body select:focus,
.chat-popup-body textarea:focus { outline: none; border-color: var(--accent); }

/* ─── FORMULARZE (Rejestracja/Logowanie) ─── */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 48px 40px;
  max-width: 460px;
  margin: 80px auto;
  box-shadow: var(--shadow-md);
}
.auth-card h2 { font-size: 2rem; margin-bottom: 8px; }
.auth-card .subtitle { color: var(--text-muted); margin-bottom: 32px; font-size: .9rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 6px; }
.form-group input,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: .95rem;
  transition: border-color .3s;
}
.form-group input:focus,
.form-group select:focus { outline: none; border-color: var(--accent); }
.form-error { color: #e55; font-size: .85rem; margin-bottom: 16px; }
.form-success { color: #3a3; font-size: .85rem; margin-bottom: 16px; }

/* ─── STOPKA ─── */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 80px 0 32px;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 60px; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 { font-size: .78rem; font-family: var(--font); text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 20px; }
.footer-col p, .footer-col ul li a { color: #a3a3a3; line-height: 1.9; font-size: .9rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 28px; border-top: 1px solid #1a1a1a; font-size: .78rem; color: #888; }

/* ─── RESPONSYWNOŚĆ ─── */
@media (max-width: 1340px) { /* ciaśniejszy pasek menu na mniejszych laptopach */
  .header-inner { gap: 15px; }
  nav ul { gap: 15px; }
  nav ul li a { font-size: calc(var(--menu-fs, 1rem) * .92); letter-spacing: 0; }
  .logo img { height: 65px; }
  .header-icons { gap: 8px; }
  .nav-register-btn { padding: 5px 12px; font-size: 0.85rem !important; }
}

@media (max-width: 992px) {
  .container { padding: 0 20px; }
  .hero { justify-content: center; background-position: 35% center; }
  .hero::before { background: rgba(247,246,242,.88); }
  html.theme-dark .hero::before { background: rgba(12,12,12,.88); }
  .hero-content { flex: 1; padding: 60px 24px; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-content p { margin: 0 auto 32px; }
}

.mobile-only { display: none; }

@media (max-width: 768px) {
  .logo img { height: 56px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .chat-widget-popup { width: calc(100vw - 40px); right: 20px; }
  
  /* Mobile Menu Sklepu */
  nav { display: none; }
  .mobile-only { display: block; }
  
  /* Poprawki Hero Mobile */
  .hero-content { align-items: center; text-align: center; max-width: 100%; margin-right: 0; padding: 40px 24px; }
  .hero { background-position: center; justify-content: center; padding-top: 100px; }
  .header-inner { padding: 10px 20px; }
  header.is-home { background: var(--header-bg); backdrop-filter: blur(18px); position: sticky; } /* na mobile niech ma tło, by było widać menu i pozostanie sticky */
  .logo img { height: 60px; }
}

/* ── MOBILNA SZUFLADA (DRAWER) ── */
.mobile-drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

 /* ─── DROPDOWN MENU MOBILNE (zamiast drawera) ─── */
.mobile-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg); /* pełne tło – tekst strony pod spodem nie prześwituje */
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 999;
}
.mobile-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-dropdown ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}
.mobile-dropdown ul li a {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text);
  display: block;
  padding: 10px;
}
.mobile-dropdown ul li a:hover {
    color: var(--accent);
    background: rgba(128,128,128,0.05);
}

.mobile-only { display: none; }
@media (max-width: 768px) {
  .mobile-only { display: flex; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* Animacja Logo Hero */
.hero-logo-anim {
    position: absolute;
    top: 50%;
    left: -200px; /* Zaczyna poza ekranem */
    transform: translateY(-50%);
    width: 250px;
    height: auto;
    opacity: 0;
    animation: slideInLogo 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.3s;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    z-index: 10;
}

@keyframes slideInLogo {
    0% { left: -200px; opacity: 0; transform: translateY(-50%) rotate(-10deg) scale(0.8); }
    100% { left: 10%; opacity: 1; transform: translateY(-50%) rotate(0deg) scale(1); }
}

@media (max-width: 768px) {
    .hero-logo-anim {
        width: 150px;
        left: 5%;
        animation: slideInLogoMobile 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    }
    @keyframes slideInLogoMobile {
        0% { left: -100px; opacity: 0; transform: translateY(-50%) scale(0.8); }
        100% { left: 5%; opacity: 1; transform: translateY(-50%) scale(1); }
    }
}

/* Logo w pasku menu (komputer) – menu klasyczne, mega i „Płynne złoto” (Nowoczesne i Glamour mają własne zasady).
   Dopóki klient nie przewinie strony: DUŻE logo w lewym górnym rogu, „zjeżdża” z góry przy każdym wczytaniu strony.
   Na głównej wisi nad zdjęciem, na podstronach pod paskiem jest odstęp (.hdr-logo-spacer w header.php), żeby nie zasłaniało tytułów.
   Po przewinięciu: zwykła wysokość w „szklanym” pasku. Miejsce w pasku jest zarezerwowane, więc logo nie nachodzi na menu. */
@media (min-width: 769px) {
    header { --logo-big: 160px; --logo-slot: 138px; }
    header.is-home { --logo-big: 230px; --logo-slot: 196px; }
    #site-logo { height: 68px; transition: height .35s ease; animation: logoSlideDown 1.2s cubic-bezier(0.23, 1, 0.32, 1) both; }
    header.scrolled #site-logo { height: 54px; }
    header:not(.scrolled):not(.hdr-modern):not(.hdr-glamour) .logo { position: relative; width: var(--logo-slot); height: 68px; }
    header:not(.scrolled):not(.hdr-modern):not(.hdr-glamour) #site-logo {
        position: absolute; top: 4px; left: 0; z-index: 99;
        height: var(--logo-big);
        filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    }
    header.hdr-liquid .header-inner { padding-left: 24px; padding-right: 24px; } /* logo nie dotyka krawędzi okna */
    .hdr-logo-spacer { height: 64px; } /* logo wystaje pod pasek o ok. 70 px */
}
@media (min-width: 769px) and (max-width: 1399px) {
    header { --logo-big: 140px; --logo-slot: 122px; }
    header.is-home { --logo-big: 196px; --logo-slot: 168px; }
    header.is-home:not(.hdr-liquid) { --logo-big: 160px; --logo-slot: 128px; } /* klasyczne/mega mają szersze menu */
    .hdr-logo-spacer { height: 46px; }
}
@media (min-width: 769px) and (max-width: 1100px) {
    header { --logo-big: 116px; --logo-slot: 100px; }
    header.is-home { --logo-big: 150px; --logo-slot: 128px; }
    .hdr-logo-spacer { height: 22px; }
}
@media (max-width: 768px) { .hdr-logo-spacer { display: none; } }
@keyframes logoSlideDown {
    0% { transform: translateY(-50px) scale(0.9); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* =========================================
   MEGA-MENU
   ========================================= */

.mega-nav {
    display: flex;
    align-items: center;
}
.mega-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mega-nav__item { position: static; }
.mega-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: var(--mega-nav-fs, 14px);
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text);
    text-decoration: none;
    transition: background .18s, color .18s, font-style .18s;
    white-space: nowrap;
    cursor: pointer;
}
.mega-nav__link:hover,
.mega-nav__link.active {
    background: rgba(201,168,76,0.1);
    color: var(--accent);
    font-style: italic;
}
.mega-nav__link.active { font-weight: 700; }
.mega-nav__chevron {
    transition: transform .22s;
    flex-shrink: 0;
}
.mega-nav__chevron.rotated { transform: rotate(180deg); }

/* Dropdown — position:fixed, JS ustawia top+left */
.mega-dropdown {
    position: fixed;
    z-index: 99999;
    width: 600px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
    pointer-events: none;
}
.mega-dropdown.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    transition: opacity .2s ease, transform .2s ease, visibility 0s 0s;
}
.mega-dropdown__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 14px;
    min-height: 280px;
}

/* Lewa kolumna */
.mega-dropdown__col {
    padding: 12px 8px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.mega-dropdown__cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.87rem;
    font-weight: 500;
    transition: background .14s, color .14s;
    flex-shrink: 0;
}
.mega-dropdown__cat-link:hover {
    background: rgba(201,168,76,0.09);
    color: var(--accent);
}
.mega-dropdown__cat-icon {
    font-size: 1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/* Prawa kolumna */
.mega-dropdown__promo {
    padding: 20px 18px;
    background: linear-gradient(145deg, rgba(201,168,76,0.07), transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mega-dropdown__promo-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    width: fit-content;
}
.mega-dropdown__promo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 8px;
}
.mega-dropdown__promo-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 12px 0;
}
.mega-dropdown__promo-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff !important;
    font-size: 0.81rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    width: fit-content;
    transition: background .2s, transform .15s;
    margin-bottom: 14px;
}
.mega-dropdown__promo-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}
.mega-dropdown__promo-icons {
    display: flex;
    gap: 8px;
}
.mega-dropdown__promo-icons > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    text-align: center;
}
.mega-dropdown__promo-icons > div > span { font-size: 1.15rem; }
.mega-dropdown__promo-icons small {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.3;
}

@media (max-width: 900px) {
    .mega-nav { display: none; }
    .mega-dropdown { display: none !important; }
}

/* „Promocje” w menu na telefonie – czerwona pigułka także w ciemnych szufladach stylów menu */
header .mobile-dropdown ul li a.nav-promo.nav-promo { display: inline-flex; width: auto; background: #d63a3b !important; color: #fff !important; padding: 8px 20px !important; }

/* Menu klasyczne i mega-menu na tabletach i małych laptopach: linki nie mieszczą się w jednym rzędzie,
   więc chowamy je pod przyciskiem ☰ (to samo rozwijane menu co na telefonie). */
@media (max-width: 1180px) {
  header:not(.hdr-modern):not(.hdr-glamour):not(.hdr-liquid) .header-inner > nav .nav-register-btn { display: none; }
}
@media (max-width: 1100px) {
  header:not(.hdr-modern):not(.hdr-glamour):not(.hdr-liquid) .header-inner > nav { display: none; }
  header:not(.hdr-modern):not(.hdr-glamour):not(.hdr-liquid) .mobile-only { display: flex; }
  header:not(.hdr-modern):not(.hdr-glamour):not(.hdr-liquid) .header-icons { margin-left: auto; }
}

/* ─── KARTY KONTA: nowe hasło, przypomnienie hasła (ten sam wygląd co logowanie) ─── */
.acc-page { background: var(--bg-color, var(--bg)); min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px 60px; }
.acc-card { width: 100%; max-width: 450px; background: var(--surface-color, var(--surface)); border: 1px solid var(--border-color, var(--border)); border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.08); padding: 40px; }
.acc-head { text-align: center; margin-bottom: 26px; }
.acc-ico { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; border: 2px solid var(--accent); background: rgba(201,168,76,.1); display: flex; align-items: center; justify-content: center; }
.acc-title { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--text-color, var(--text)); margin: 0 0 8px; }
.acc-sub { color: var(--text-muted); font-size: .95rem; line-height: 1.5; margin: 0; }
.acc-field { margin-bottom: 20px; }
.acc-field label { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.acc-input-wrap { position: relative; }
.acc-input { display: block; width: 100%; box-sizing: border-box; padding: 14px 18px; border-radius: 10px; border: 1px solid var(--border-color, var(--border)); background: var(--bg-color, var(--bg)); color: var(--text-color, var(--text)); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s; box-shadow: inset 0 2px 5px rgba(0,0,0,.02); }
.acc-input-wrap .acc-input { padding-right: 52px; }
.acc-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,168,76,.2); background: var(--surface-color, var(--surface)); }
.acc-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.acc-eye:hover { color: var(--accent); }
.acc-hint { display: block; margin-top: 6px; font-size: .8rem; color: var(--text-muted); }
.acc-btn { width: 100%; padding: 15px; font-size: 1.05rem; border-radius: 8px; }
.acc-alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: .92rem; line-height: 1.5; }
.acc-alert.err { background: rgba(229,83,83,.1); color: #e55353; border: 1px solid rgba(229,83,83,.2); }
.acc-alert.ok { background: rgba(16,185,129,.1); color: #0f8a5f; border: 1px solid rgba(16,185,129,.25); }
.acc-links { text-align: center; margin-top: 18px; font-size: .9rem; }
.acc-links a { color: var(--accent); text-decoration: underline; }
@media (max-width: 520px) { .acc-card { padding: 28px 22px; } .acc-title { font-size: 1.6rem; } }
