/* ===========================================================
   WypożyczSukienkę — design system
   =========================================================== */

:root {
  --bg:        #FAF6F1;
  --bg-2:      #F2E8DC;
  --bg-3:      #E9DCCB;
  --blush:     #F5DAD3;
  --blush-2:   #ECC3BB;
  --blush-3:   #D9A099;
  --ink:       #2A201C;
  --ink-soft:  #6E5D55;
  --ink-faint: #9A8A82;
  --line:      rgba(42,32,28,0.10);
  --line-2:    rgba(42,32,28,0.18);
  --accent:    #8C3A3A;
  --gold:      #B89668;
  --ok:        #5B7A4F;
  --busy:      #C8736A;

  --display:   'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans:      'Outfit', 'Manrope', system-ui, sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, monospace;

  --pad-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(64px, 9vw, 140px);
  --content-max: 1440px;

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;

  --shadow-soft: 0 30px 60px -30px rgba(80,40,30,0.25);
}

/* Ultra-wide screens (4K, ultrawide) — pełnoszerokie sekcje (hero, promo, cta, nav)
   dostają wycentrowany content area ~1440px. Nie ruszamy globalnego --pad-x,
   bo sekcje typu .product-page mają już własne max-width + padding wewnątrz. */
@media (min-width: 1700px) {
  .hero,
  .cat-hero,
  .cal-hero,
  .faq-hero,
  .sh-hero,
  .cta-strip,
  .help-cta,
  .nav-inner,
  footer {
    padding-left: max(var(--pad-x), calc((100vw - var(--content-max)) / 2));
    padding-right: max(var(--pad-x), calc((100vw - var(--content-max)) / 2));
  }
  /* Sekcje z .container już mają max-width 1440 w środku — bez zmian. */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- typography ---------- */
.display { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.02; }
.display-italic { font-family: var(--display); font-style: italic; font-weight: 400; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

/* ---------- topbar ---------- */
.topbar {
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px var(--pad-x);
  display: flex; justify-content: center; align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-weight: 400;
}
.topbar span { opacity: 0.82; }
.topbar-sep { opacity: 0.4; }
@media (max-width: 860px) {
  .topbar { font-size: 10px; gap: 12px; letter-spacing: 0.12em; padding: 8px 14px; }
  .topbar-sep { display: none; }
}
@media (max-width: 460px) {
  .topbar { gap: 10px; font-size: 9.5px; }
  .topbar span:first-child { display: none; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,241,0.96);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px var(--pad-x);
  gap: 24px;
  min-height: 92px;
}
.nav-inner > .burger { grid-column: 1; justify-self: start; }

.nav-links {
  grid-column: 1;
  display: flex;
  gap: 32px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links a { position: relative; padding: 8px 0; color: var(--ink); font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active::after,
.nav-links .current-menu-item > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
}
.nav-links ul { list-style: none; padding: 0; margin: 0; display: contents; }

/* Logo — image, mniejszy rozmiar, transparent-friendly */
.nav-logo {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 0;
}
.nav-logo img {
  display: block !important;
  height: 38px !important;
  width: auto !important;
  max-width: min(180px, 55vw) !important;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity .15s;
}
.nav-logo:hover img { opacity: 0.85; }

/* Nav icons — minimalne, ikony bez paddingu wokół */
.nav-icons { grid-column: 3; display: flex; justify-content: flex-end; gap: 6px; align-items: center; }
.nav-icons button, .nav-icons a {
  background: none; border: none;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  position: relative;
  border-radius: 999px;
  transition: background .15s;
}
.nav-icons button:hover, .nav-icons a:hover { background: var(--bg-2); }
.nav-icons .badge {
  background: var(--accent); color: #fff;
  font-size: 10px; min-width: 18px; height: 18px; line-height: 18px;
  border-radius: 999px; text-align: center; padding: 0 5px;
  font-family: var(--sans); letter-spacing: 0;
  position: absolute; top: 2px; right: 0;
}

/* ===== Burger button — ładny, większy touch-target, animacja w X ===== */
.burger {
  display: none;
  width: 44px; height: 44px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0;
  align-items: center; justify-content: center;
  cursor: pointer; border-radius: 999px;
  transition: background .2s, border-color .2s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.burger:hover, .burger:focus-visible { background: var(--blush); border-color: var(--blush-2); outline: none; }
.burger:active { transform: scale(0.95); }

.burger-icon {
  display: block;
  position: relative;
  width: 18px; height: 14px;
  pointer-events: none; /* żeby kliknięcie zawsze trafiało w button */
}
.burger-line {
  position: absolute; left: 0; right: 0;
  height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .28s cubic-bezier(.4,.1,.2,1), opacity .15s, top .28s;
  transform-origin: center;
}
.burger-line:nth-child(1) { top: 0; }
.burger-line:nth-child(2) { top: 6px; }
.burger-line:nth-child(3) { top: 12px; }

.nav.nav-open .burger { background: var(--ink); border-color: var(--ink); }
.nav.nav-open .burger-line { background: var(--bg); }
.nav.nav-open .burger-line:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav.nav-open .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.nav-open .burger-line:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile drawer — pełnoekranowy overlay na mobile gdy nav-open.
   `!important` chroni przed cache'owanym starym CSS i niespodziewanymi nadpisaniami. */
.mobile-drawer {
  display: none !important;
  position: fixed;
  left: 0; right: 0;
  top: var(--nav-stack-top, 92px);
  bottom: 0;
  background: var(--bg);
  z-index: 49;
  overflow-y: auto;
  animation: drawerFade .25s ease;
}
.mobile-drawer-menu,
.mobile-drawer ul { list-style: none !important; padding: 18px 0; margin: 0; }
.mobile-drawer-menu li { border-bottom: 1px solid var(--line); list-style: none !important; }
.mobile-drawer-menu li:last-child { border-bottom: 0; }
.mobile-drawer-menu a {
  display: block; padding: 22px 24px;
  font-family: var(--display); font-size: 26px; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.mobile-drawer-menu a:hover,
.mobile-drawer-menu a:focus { background: var(--bg-2); color: var(--accent); }
@keyframes drawerFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- nav: mobile breakpoint ---------- */
@media (max-width: 860px) {
  .nav-inner {
    grid-template-columns: 1fr auto 1fr;
    padding: 10px 14px;
    gap: 8px;
    min-height: 64px;
  }
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .nav-inner > .burger { grid-column: 1; justify-self: start; }
  .nav-logo { grid-column: 2; justify-self: center; }
  .nav-logo img { height: 30px !important; max-width: min(140px, 45vw) !important; }
  .nav-icons { grid-column: 3; justify-self: end; gap: 2px; }
  .nav-icons .nav-icon-search { display: none; }
  .nav-icons button, .nav-icons a { width: 38px; height: 38px; }

  .nav.nav-open .mobile-drawer { display: block !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  transition: background .25s, color .25s, transform .25s, border-color .25s;
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.btn-ghost { background: transparent; color: var(--ink); }
.btn.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn.btn-blush { background: var(--blush-2); border-color: var(--blush-2); color: var(--ink); }
.btn.btn-blush:hover { background: var(--blush-3); border-color: var(--blush-3); }
.btn.btn-sm { padding: 10px 18px; font-size: 11px; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- container ---------- */
.section { padding: var(--section-y) var(--pad-x); }
.container { max-width: 1440px; margin: 0 auto; }

/* ---------- footer ---------- */
footer {
  background: var(--ink); color: #E9DCCB;
  padding: 80px var(--pad-x) 30px;
  font-family: var(--sans);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1440px; margin: 0 auto;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
footer h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #C8B7A6; margin-bottom: 20px; font-weight: 500; }
footer .footer-logo { margin-bottom: 18px; line-height: 0; }
footer .footer-logo img {
  display: block !important;
  height: 64px !important;
  width: auto !important;
  max-width: 180px !important;
  border-radius: 4px;
  object-fit: contain;
}
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14px; }
footer ul a { color: #C8B7A6; }
footer ul a:hover { color: var(--blush); }
footer .footer-bottom {
  max-width: 1440px; margin: 60px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px; color: #8E7D70; flex-wrap: wrap;
}
.socials { display: flex; gap: 14px; margin-top: 16px; }
.socials a {
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; justify-content: center;
  color: #C8B7A6; transition: background .2s, color .2s;
}
.socials a:hover { background: var(--blush); color: var(--ink); }

/* ---------- product card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 22px;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; } }

.product-card { position: relative; cursor: pointer; }
.product-card .pc-image {
  aspect-ratio: 3/4;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.product-card .pc-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.product-card:hover .pc-image img { transform: scale(1.04); }
.product-card .pc-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(250,246,241,0.92);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  color: var(--ink); font-weight: 500;
}
.product-card .pc-tag.tag-blush { background: var(--blush-2); }
.product-card .pc-fav {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(250,246,241,0.92);
  display: inline-flex; align-items: center; justify-content: center;
  border: none;
}
.product-card .pc-info { padding: 14px 4px 0; display: grid; gap: 4px; }
.product-card .pc-name { font-family: var(--display); font-size: 22px; line-height: 1.1; font-weight: 500; }
.product-card .pc-meta { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.product-card .pc-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-size: 14px; }
.product-card .pc-price strong { font-weight: 500; }
.product-card .pc-price em { font-style: normal; color: var(--ink-soft); font-size: 12px; }

/* ---------- chips / pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-size: 12px; letter-spacing: 0.08em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.chip:hover, .chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- utility ---------- */
.divider { width: 100%; height: 1px; background: var(--line); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }

/* fade-in */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
.fade-up.d1 { animation-delay: .1s; }
.fade-up.d2 { animation-delay: .2s; }
.fade-up.d3 { animation-delay: .3s; }
.fade-up.d4 { animation-delay: .4s; }
