/* =========================================================
   FurniLove – „Nasze tkaniny" (landing) — scope .flt
   ========================================================= */
.flt{
  --g:#a17c44; --g-l:#c9a96a; --cream:#fbfaf3; --ink:#1b1b1b;
  --muted:#6a6a6a; --line:#ece7db;
  font-family:"Manrope",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink); max-width:var(--wp--style--global--wide-size, 1340px); margin:0 auto; padding:0 20px 10px;
  box-sizing:border-box;
}
.flt *{ box-sizing:border-box; }

/* ---- HERO ---- */
.flt-hero{ text-align:center; padding:14px 0 26px; }
.flt-eyebrow{
  text-transform:uppercase; letter-spacing:.22em; font-size:.74rem; font-weight:600;
  color:var(--g); margin:0 0 10px;
}
.flt-title{
  font-family:"Playfair Display",Georgia,serif; font-weight:700; color:var(--ink);
  font-size:clamp(2rem,4.5vw,3.2rem); line-height:1.08; margin:0 0 14px; letter-spacing:-.01em;
}
.flt-lead{ max-width:760px; margin:0 auto; color:var(--muted); font-size:1.06rem; line-height:1.6; }

/* ---- LEGENDA ---- */
.flt-legend{
  background:var(--cream); border:1px solid var(--line); border-radius:16px;
  padding:16px 20px; margin:0 0 34px;
}
.flt-legend__title{ display:block; font-weight:700; color:var(--ink); margin-bottom:10px; font-size:.98rem; }
.flt-legend__list{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:8px 18px;
}
.flt-legend__list li{ display:flex; align-items:center; gap:9px; font-size:.86rem; color:#4a4a4a; }

/* ikona */
.flt-ic{
  flex:0 0 auto; width:30px; height:30px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  background:#fff; border:1px solid var(--line); color:var(--g);
}
.flt-ic svg{ width:17px; height:17px; }

/* ---- GRID kart ---- */
.flt-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(460px,1fr)); gap:26px;
}
.flt-card{
  display:flex; background:#fff; border:1px solid var(--line); border-radius:18px;
  overflow:hidden; box-shadow:0 1px 3px rgba(27,27,27,.05);
  transition:transform .25s ease, box-shadow .25s ease;
}
.flt-card__media{ flex:0 0 42%; max-width:42%; position:relative; background:var(--cream); }
.flt-card__media img{ width:100%; height:100%; object-fit:cover; display:block; min-height:240px; }
.flt-card__body{ flex:1 1 auto; padding:20px 22px 22px; display:flex; flex-direction:column; }
.flt-card__head{ margin-bottom:12px; }
.flt-card__name{ font-family:"Playfair Display",Georgia,serif; font-weight:700; font-size:1.55rem; margin:0; color:var(--ink); line-height:1.1; }
.flt-card__tag{ display:block; margin-top:3px; font-size:.82rem; color:var(--g); font-weight:600; letter-spacing:.01em; }

.flt-badges{ list-style:none; margin:0 0 14px; padding:0; display:flex; flex-wrap:wrap; gap:7px; }
.flt-badge{
  display:inline-flex; align-items:center; gap:7px;
  background:var(--cream); border:1px solid var(--line); border-radius:999px;
  padding:5px 11px 5px 6px; font-size:.78rem; font-weight:500; color:#3f3a31;
}
.flt-badge .flt-ic{ width:22px; height:22px; border:none; background:transparent; }
.flt-badge .flt-ic svg{ width:16px; height:16px; }

.flt-desc{ margin:0 0 16px; color:#4a4a4a; font-size:.95rem; line-height:1.6; }

.flt-palette{ margin-top:auto; }
.flt-palette__swatches{ display:flex; gap:0; margin-bottom:7px; }
.flt-swatch{
  width:30px; height:30px; border-radius:50%; background-size:cover; background-position:center;
  border:2px solid #fff; box-shadow:0 0 0 1px var(--line); margin-left:-6px;
}
.flt-swatch:first-child{ margin-left:0; }
.flt-palette__count{ font-size:.82rem; color:var(--muted); font-weight:600; }

/* ---- CTA ---- */
.flt-cta{
  text-align:center; margin:42px 0 8px; padding:34px 24px;
  background:linear-gradient(135deg,#1b1b1b,#2c2620); color:#fff; border-radius:20px;
}
.flt-cta h2{ font-family:"Playfair Display",Georgia,serif; font-weight:700; font-size:1.7rem; margin:0 0 6px; color:#fff; }
.flt-cta p{ margin:0 0 18px; color:rgba(255,255,255,.8); font-size:1rem; }
.flt-cta__btn{
  display:inline-block; background:var(--g); color:#fff; text-decoration:none;
  padding:13px 30px; border-radius:12px; font-weight:600; font-size:1rem; transition:background .2s ease;
}
.flt-cta__btn:hover{ background:var(--g-l); }

@media (hover:hover){
  .flt-card:hover{ transform:translateY(-3px); box-shadow:0 14px 30px rgba(27,27,27,.09); }
}

/* ---- MOBILE ---- */
@media (max-width:680px){
  .flt-grid{ grid-template-columns:1fr; gap:20px; }
  .flt-card{ flex-direction:column; }
  .flt-card__media,
  .flt-card__media{ flex:none; max-width:none; }
  .flt-card__media img{ min-height:0; aspect-ratio:16/10; }
  .flt-card__name{ font-size:1.4rem; }
  .flt-legend__list{ grid-template-columns:1fr; }
}

/* ===== Przycisk „Przeglądaj kolory" + kafel „+N" ===== */
.flt-swatch--more{
  display:flex; align-items:center; justify-content:center;
  background:#1b1b1b; color:#fff; font-size:.72rem; font-weight:700;
}
.flt-palette__browse{
  display:inline-flex; align-items:center; gap:8px; margin-top:12px;
  padding:9px 16px; border-radius:999px; border:1px solid var(--g,#a17c44);
  background:#fff; color:var(--g,#a17c44); font-family:inherit; font-weight:600;
  font-size:.86rem; cursor:pointer; transition:background .2s ease, color .2s ease;
}
.flt-palette__browse svg{ width:17px; height:17px; }
.flt-palette__browse .flt-palette__count{ color:inherit; opacity:.85; }
.flt-palette__browse:hover{ background:var(--g,#a17c44); color:#fff; }

/* ===== Modal palety kolorów (poza .flt — kolory literalne) ===== */
.flt-cm{ position:fixed; inset:0; z-index:100000; max-width:none; margin:0;
  display:flex; align-items:center; justify-content:center; padding:22px;
  font-family:"Manrope",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; }
.flt-cm[hidden]{ display:none; }
.flt-cm__overlay{ position:absolute; inset:0; background:rgba(27,27,27,.55); opacity:0; transition:opacity .25s ease; }
.flt-cm.is-open .flt-cm__overlay{ opacity:1; }
.flt-cm__card{
  position:relative; background:#fff; border-radius:18px; width:min(960px,100%); max-height:85vh;
  display:flex; flex-direction:column; overflow:hidden; box-shadow:0 30px 70px rgba(27,27,27,.30);
  transform:translateY(14px) scale(.985); opacity:0; transition:transform .28s cubic-bezier(.2,.7,.3,1), opacity .28s ease;
}
.flt-cm.is-open .flt-cm__card{ transform:none; opacity:1; }
.flt-cm__head{ display:flex; align-items:center; gap:12px; padding:16px 18px; border-bottom:1px solid #ece7db; flex:0 0 auto; }
.flt-cm__title{ flex:1 1 auto; min-width:0; text-align:center; }
.flt-cm__head h3{ font-family:"Playfair Display",Georgia,serif; font-weight:700; font-size:1.5rem; margin:0; color:#1b1b1b; line-height:1.1; }
.flt-cm__sub{ display:block; margin-top:2px; font-size:.84rem; color:#8a8a8a; font-weight:600; }
.flt-cm__close{ flex:0 0 auto; width:38px; height:38px; border-radius:50%; border:1px solid #ece7db; background:#fff; font-size:24px; line-height:1; color:#6a6a6a; cursor:pointer; transition:.2s; }
.flt-cm__close:hover{ background:#f6f3ec; color:#1b1b1b; }
.flt-cm__back{ flex:0 0 auto; border:none; background:none; color:#a17c44; font:600 .9rem/1 "Manrope",sans-serif; cursor:pointer; padding:8px 4px; white-space:nowrap; }
.flt-cm__back[hidden]{ display:none; }
.flt-cm__back:hover{ text-decoration:underline; }

.flt-cm__grid{ overflow-y:auto; -webkit-overflow-scrolling:touch; padding:20px 22px 24px;
  display:grid; grid-template-columns:repeat(auto-fill,minmax(104px,1fr)); gap:16px; }
.flt-cm__item{ margin:0; padding:0; border:none; background:none; cursor:pointer; text-align:center; font:inherit; color:inherit; }
.flt-cm__sw{ display:block; width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:12px; box-shadow:0 0 0 1px #ece7db; background:#faf8f2; transition:transform .2s ease, box-shadow .2s ease; }
.flt-cm__code{ display:block; margin-top:6px; font-size:.8rem; color:#4a4a4a; font-weight:600; }
@media (hover:hover){ .flt-cm__item:hover .flt-cm__sw{ transform:translateY(-2px); box-shadow:0 0 0 1px #a17c44, 0 6px 16px rgba(27,27,27,.12); } }

/* ----- podgląd pojedynczego koloru (powiększenie + swipe) ----- */
.flt-cm__card.is-viewing .flt-cm__grid{ display:none; }
.flt-cm__viewer{ display:none; flex:1 1 auto; min-height:0; flex-direction:column; }
.flt-cm__card.is-viewing .flt-cm__viewer{ display:flex; }
.flt-cm__stage{ position:relative; flex:1 1 auto; min-height:0; display:flex; align-items:center; justify-content:center; padding:18px 18px 6px; background:#faf8f2; touch-action:pan-y; }
.flt-cm__big{ max-width:100%; max-height:62vh; width:auto; height:auto; border-radius:14px; object-fit:contain; box-shadow:0 10px 30px rgba(27,27,27,.16); }
.flt-cm__nav{ position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; border-radius:50%; border:1px solid #ece7db; background:rgba(255,255,255,.92); color:#1b1b1b; font-size:26px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 14px rgba(27,27,27,.12); transition:.2s; }
.flt-cm__nav:hover{ background:#a17c44; color:#fff; border-color:#a17c44; }
.flt-cm__nav--prev{ left:14px; }
.flt-cm__nav--next{ right:14px; }
.flt-cm__vcap{ flex:0 0 auto; text-align:center; padding:12px 18px 20px; }
.flt-cm__vcap b{ font-family:"Playfair Display",Georgia,serif; font-size:1.2rem; color:#1b1b1b; }
.flt-cm__vcode{ display:inline-block; margin-left:8px; font-weight:600; color:#a17c44; }
.flt-cm__vpos{ display:block; margin-top:4px; font-size:.8rem; color:#8a8a8a; font-weight:600; }

@media (max-width:680px){
  .flt-cm{ padding:0; align-items:flex-end; }
  .flt-cm__card{ width:100%; max-height:90vh; border-radius:18px 18px 0 0; }
  .flt-cm__head h3{ font-size:1.25rem; }
  .flt-cm__back{ font-size:.8rem; }
  .flt-cm__grid{ grid-template-columns:repeat(auto-fill,minmax(80px,1fr)); gap:12px; padding:16px 16px 20px; }
  .flt-cm__big{ max-height:54vh; }
  .flt-cm__nav{ width:40px; height:40px; font-size:22px; }
}
