:root{
  --cream: #FAF5F0;
  --cream-deep: #F2E9E1;
  --rose: #E4A6AC;
  --rose-soft: #F3D9DA;
  --rose-deep: #C97B84;
  --maroon: #97393C;
  --maroon-dark: #6f2a2c;
  --tan: #C28A49;
  --sage: #8FB89B;
  --ink: #241F1D;
  --ink-soft: #5b524d;
  --tin: #DAD3C9;
  --tin-dark: #BEB4A6;
  --paper: #FFFCF9;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }

body{
  background: var(--cream);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

h1,h2,h3{ font-family:'Fraunces', serif; font-weight:500; line-height:1.05; color:var(--ink); }
a{ color:inherit; }
.script{ font-family:'Caveat', cursive; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }

/* ---------- NAV ---------- */
nav{
  position:sticky; top:0; z-index:50;
  background:rgba(250,245,240,0.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(151,57,60,0.12);
}
nav .wrap{ display:flex; align-items:center; justify-content:space-between; height:76px; }
.logo-nav{ font-family:'Caveat', cursive; font-weight:700; font-size:28px; color:var(--maroon); letter-spacing:0.5px; display:flex; align-items:center; gap:8px;}
.logo-nav .ring{ width:14px; height:14px; border:2px solid var(--rose-deep); border-radius:50%; display:inline-block; }
.nav-links{ display:flex; gap:36px; font-size:15px; color:var(--ink-soft); }
.nav-links a{ text-decoration:none; position:relative; padding-bottom:4px; }
.nav-links a::after{ content:""; position:absolute; left:0; bottom:0; height:2px; width:0; background:var(--maroon); transition:width .25s ease; }
.nav-links a:hover::after{ width:100%; }
.nav-cta{
  background:var(--maroon); color:var(--paper); text-decoration:none;
  padding:11px 22px; border-radius:40px; font-size:14px; font-weight:600;
  letter-spacing:.2px; transition:transform .2s ease, background .2s ease;
}
.nav-cta:hover{ background:var(--maroon-dark); transform:translateY(-1px); }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; align-items:center;
  gap:5px; width:40px; height:40px; border:none; background:none; cursor:pointer;
  padding:0; margin-left:4px;
}
.nav-toggle span{
  display:block; width:22px; height:2px; background:var(--maroon);
  border-radius:2px; transition:transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media(max-width:820px){
  .nav-toggle{ display:flex; }
  .nav-links{
    display:flex; flex-direction:column; gap:0;
    position:absolute; top:76px; left:0; right:0;
    background:var(--paper); border-bottom:1px solid rgba(151,57,60,0.12);
    box-shadow:0 12px 24px rgba(36,31,29,0.12);
    max-height:0; overflow:hidden; visibility:hidden;
    transition:max-height .3s ease, visibility 0s linear .3s;
  }
  .nav-links.is-open{ max-height:280px; visibility:visible; transition:max-height .3s ease; }
  .nav-links a{ padding:16px 32px; border-bottom:1px solid rgba(151,57,60,0.08); }
  .nav-links a::after{ display:none; }
}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0px, rgba(255,255,255,0.35) 1px, transparent 1px, transparent 68px),
    linear-gradient(160deg, #E7E2D9 0%, #DCD5C9 45%, #CFC6B7 100%);
  padding: 96px 0 130px;
  overflow:hidden;
  border-bottom: 6px solid var(--tin-dark);
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.5), transparent 55%);
  pointer-events:none;
}
.hero-grid{
  position:relative; z-index:2;
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap:40px; align-items:center;
}
@media(max-width:900px){ .hero-grid{ grid-template-columns:1fr; } }

.eyebrow-tape{
  display:inline-flex; align-items:center; gap:8px;
  background: var(--rose-soft); color:var(--maroon-dark);
  font-size:13px; font-weight:600; letter-spacing:.4px; text-transform:uppercase;
  padding:8px 16px 8px 14px; border-radius:3px;
  transform:rotate(-1.5deg);
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  margin-bottom:26px;
}
.eyebrow-tape .dot{ width:6px;height:6px;border-radius:50%; background:var(--maroon); }

.hero h1{ font-size:clamp(38px,5.4vw,64px); letter-spacing:-0.5px; }
.hero h1 em{ font-style:italic; color:var(--maroon); }
.hero p.lede{ margin-top:22px; font-size:18px; line-height:1.65; color:var(--ink-soft); max-width:480px; }
.hero-actions{ margin-top:34px; display:flex; gap:16px; flex-wrap:wrap; }
.btn-primary{
  background:var(--maroon); color:var(--paper); text-decoration:none;
  padding:15px 30px; border-radius:40px; font-weight:600; font-size:15px;
  display:inline-flex; align-items:center; gap:8px;
  box-shadow:0 8px 20px rgba(151,57,60,0.28);
  transition:transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 12px 26px rgba(151,57,60,0.35); }
.btn-primary[hidden]{ display:none; }
.btn-ghost{
  text-decoration:none; color:var(--ink); border:1.5px solid var(--ink); border-radius:40px;
  padding:14px 26px; font-weight:600; font-size:15px;
  transition:background .2s ease, color .2s ease;
}
.btn-ghost:hover{ background:var(--ink); color:var(--cream); }

.fridge-stage{ position:relative; height:460px; }
.magnet{
  position:absolute; border-radius:50%;
  box-shadow: 0 14px 28px rgba(40,30,25,0.22), inset 0 0 0 6px rgba(255,255,255,0.55);
  display:flex; align-items:center; justify-content:center;
  transition: transform .35s ease;
}
.magnet:hover{ transform: scale(1.06) rotate(0deg) !important; }
.m1{ width:190px; height:190px; top:0; left:30px; background:radial-gradient(circle at 32% 28%, #F6C9CE, var(--rose)); transform:rotate(-9deg); }
.m2{ width:150px; height:150px; top:60px; right:10px; background:radial-gradient(circle at 30% 30%, #fff4e2, #E9C08A); transform:rotate(11deg); }
.m3{ width:130px; height:130px; bottom:40px; left:70px; background:radial-gradient(circle at 35% 30%, #d7ece0, #8FB89B); transform:rotate(6deg); }
.m4{ width:168px; height:168px; bottom:0; right:60px; background:radial-gradient(circle at 30% 25%, #f7e3e4, var(--maroon)); transform:rotate(-6deg); }
.magnet svg{ width:46%; height:46%; }
.magnet .pin{
  position:absolute; top:8px; left:50%; transform:translateX(-50%);
  width:16px; height:16px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #fff, #b9b2a8 70%, #8a8377);
  box-shadow:0 2px 3px rgba(0,0,0,0.3);
}
.hero-tagline{
  font-family:'Caveat', cursive; font-size:22px; color:var(--maroon-dark);
  position:absolute; bottom:-6px; left:34px; transform:rotate(-3deg);
}

/* ---------- SECTIONS ---------- */
.section{ padding:110px 0; }
.eyebrow{
  font-size:13px; letter-spacing:2px; text-transform:uppercase; color:var(--rose-deep);
  font-weight:600; margin-bottom:14px; display:flex; align-items:center; gap:10px;
}
.eyebrow::before{ content:""; width:26px; height:1.5px; background:var(--rose-deep); }
.section h2{ font-size:clamp(30px,4vw,44px); margin-bottom:20px; }

/* ---------- ABOUT ---------- */
.about{ background:var(--paper); }
.about-grid{ display:grid; grid-template-columns:0.75fr 1.25fr; gap:70px; align-items:center; }
@media(max-width:860px){ .about-grid{ grid-template-columns:1fr; gap:44px; } }
.portrait-wrap{ position:relative; width:min(360px,100%); margin:0 auto; }
.portrait-ring{ position:absolute; inset:-18px; border-radius:50%; border:14px solid var(--rose-soft); }
.portrait-ring2{ position:absolute; top:-38px; right:-30px; width:52px; height:52px; border-radius:50%; border:5px solid var(--maroon); }
.portrait-img{
  width:100%; aspect-ratio:1/1; border-radius:50%; object-fit:cover; display:block;
  box-shadow:0 20px 40px rgba(36,31,29,0.18); position:relative; z-index:2;
}
.about-copy p{ font-size:17px; line-height:1.8; color:var(--ink-soft); margin-bottom:18px; max-width:540px; }
.about-copy .signoff{ font-family:'Caveat', cursive; font-size:30px; color:var(--maroon); margin-top:8px; }
.badge-row{ display:flex; gap:28px; margin-top:36px; flex-wrap:wrap; }
.badge{ display:flex; align-items:center; gap:10px; font-size:14px; color:var(--ink-soft); }
.badge .swatch{ width:10px; height:10px; border-radius:50%; background:var(--rose-deep); }

/* ---------- GALLERY (rendered by js/main.js from js/products.js) ---------- */
.gallery{ background: var(--cream-deep); position:relative; }
.gallery-intro{ max-width:560px; color:var(--ink-soft); font-size:16px; line-height:1.7; }
.gallery-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:40px 28px; margin-top:56px;
}
.gallery-error{ grid-column:1/-1; text-align:center; color:var(--ink-soft); padding:40px 0; }
@media(max-width:900px){ .gallery-grid{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:640px){ .gallery-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:420px){ .gallery-grid{ grid-template-columns:1fr; max-width:280px; margin-left:auto; margin-right:auto; } }

.product{ text-align:center; cursor:pointer; position:relative; }
.product:focus-visible{ outline:2px solid var(--maroon); outline-offset:6px; border-radius:20px; }
.badge-new{
  position:absolute; top:-6px; right:8%; z-index:2; pointer-events:none;
  display:inline-flex; align-items:center; gap:4px;
  background:var(--maroon); color:var(--paper);
  font-size:11px; font-weight:700; letter-spacing:.2px;
  padding:5px 12px; border-radius:20px;
  box-shadow:0 6px 14px rgba(151,57,60,0.35);
}
.product-disc{
  width:100%; aspect-ratio:1/1; border-radius:50%;
  overflow:hidden;
  box-shadow:0 12px 24px rgba(36,31,29,0.16);
  transition:transform .3s ease, box-shadow .3s ease;
  position:relative;
  border:7px solid var(--rose);
  background:var(--tin);
}
.product-disc img{ width:100%; height:100%; object-fit:cover; display:block; }
.tilt-left .product-disc{ transform:rotate(-4deg); }
.tilt-right .product-disc{ transform:rotate(4deg); }
.product:hover .product-disc, .product:focus-visible .product-disc{ transform:rotate(0deg) translateY(-6px); box-shadow:0 18px 30px rgba(36,31,29,0.22); }

.ring-rose .product-disc{ border-color: var(--rose); }
.ring-maroon .product-disc{ border-color: var(--maroon); }
.ring-tan .product-disc{ border-color: var(--tan); }
.ring-sage .product-disc{ border-color: var(--sage); }


.product-name{ margin-top:16px; font-weight:600; font-size:15px; }
.product-price{ font-size:13px; color:var(--ink-soft); margin-top:2px; }
.product-price.is-sold{ color:var(--maroon); font-weight:600; text-transform:uppercase; letter-spacing:.4px; }

.gallery-note{ text-align:center; margin-top:56px; color:var(--ink-soft); font-size:15px; }
.gallery-note a{ color:var(--maroon); font-weight:600; text-decoration:none; border-bottom:1.5px solid var(--rose); }

/* ---------- INSTAGRAM ---------- */
.instagram{ background:var(--ink); padding-bottom:90px; text-align:center; }
.instagram h2{ color:var(--paper); }
.instagram .eyebrow{ color:var(--rose-soft); justify-content:center; }
.instagram .eyebrow::before{ background:var(--rose-soft); }
.instagram .gallery-intro{ margin:0 auto; color:rgba(250,245,240,0.7); }
.instagram .gallery-intro a{ color:var(--rose-soft); font-weight:600; text-decoration:none; border-bottom:1.5px solid var(--rose-deep); }
.instagram-embed-wrap{ display:flex; justify-content:center; margin-top:40px; }
.instagram-embed-wrap iframe{ border-radius:16px; box-shadow:0 12px 30px rgba(0,0,0,0.35); }

/* ---------- PROCESS ---------- */
.process{ background:var(--paper); }
.process-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:44px; margin-top:56px; }
@media(max-width:820px){ .process-grid{ grid-template-columns:1fr; } }
.step-num{ font-family:'Fraunces', serif; font-style:italic; font-size:52px; color:var(--rose); line-height:1; margin-bottom:14px; display:block; }
.step h3{ font-size:21px; margin-bottom:10px; }
.step p{ color:var(--ink-soft); font-size:15px; line-height:1.7; }

/* ---------- CONTACT ---------- */
.contact{
  background: linear-gradient(155deg, var(--maroon-dark), var(--maroon) 60%, var(--rose-deep));
  color:var(--paper); position:relative; overflow:hidden;
}
.contact::before{
  content:""; position:absolute; top:-120px; right:-120px; width:340px; height:340px;
  border-radius:50%; border:2px solid rgba(255,255,255,0.18);
}
.contact::after{
  content:""; position:absolute; bottom:-90px; left:-60px; width:220px; height:220px;
  border-radius:50%; background:rgba(255,255,255,0.05);
}
.contact-grid{ position:relative; z-index:2; display:grid; grid-template-columns:1.2fr 0.8fr; gap:60px; align-items:center; }
@media(max-width:860px){ .contact-grid{ grid-template-columns:1fr; gap:40px; } }
.contact h2{ color:var(--paper); font-size:clamp(30px,4vw,46px); }
.contact .eyebrow{ color:var(--rose-soft); }
.contact .eyebrow::before{ background:var(--rose-soft); }
.contact p.lede{ color:rgba(255,247,244,0.85); font-size:17px; line-height:1.7; max-width:460px; margin-top:16px; }
.contact-list{ margin-top:34px; display:flex; flex-direction:column; gap:16px; }
.contact-row{ display:flex; align-items:center; gap:14px; font-size:16px; }
.contact-row .ico{ width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,0.14); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-row a{ color:var(--paper); text-decoration:none; font-weight:500; }
.contact-row a:hover{ text-decoration:underline; }

.contact-cards{ display:flex; flex-direction:column; gap:28px; }

.contact-card{
  background:var(--paper); color:var(--ink); border-radius:22px; padding:36px;
  box-shadow:0 30px 60px rgba(0,0,0,0.25);
  transform:rotate(-2deg);
}
.contact-form-card{ transform:rotate(1.5deg); }
.contact-card h3{ font-size:20px; margin-bottom:6px; }
.contact-card p{ color:var(--ink-soft); font-size:14px; margin-bottom:20px; }
.qr-wrap{ display:flex; align-items:center; gap:18px; }
.qr-box{ position:relative; display:block; width:104px; height:104px; border-radius:10px; background:#fff; padding:8px; box-shadow:inset 0 0 0 1px #eee; flex-shrink:0; }
.qr-box > svg{ width:100%; height:100%; }
.qr-ig-badge{
  position:absolute; bottom:-8px; right:-8px; z-index:2;
  width:26px; height:26px; border-radius:50%;
  background:var(--maroon); box-shadow:0 3px 8px rgba(0,0,0,0.25), 0 0 0 3px var(--paper);
  display:flex; align-items:center; justify-content:center;
}
.qr-copy{ font-size:13px; color:var(--ink-soft); line-height:1.6; }
.qr-copy strong{ color:var(--ink); display:block; font-size:15px; margin-bottom:4px; font-family:'Fraunces',serif; font-weight:500;}

/* ---------- FORMULARZ ZAPYTAŃ (w karcie "Napisz do mnie") ---------- */
.order-form{ display:flex; flex-direction:column; gap:16px; }
.hp-field{
  position:absolute !important; width:1px; height:1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; left:-9999px;
}
.order-form label{
  display:flex; flex-direction:column; gap:6px;
  font-size:13px; font-weight:600; color:var(--ink-soft);
}
.order-form input, .order-form textarea{
  font-family:'Work Sans', sans-serif; font-size:15px; color:var(--ink);
  background:var(--cream-deep); border:1.5px solid transparent; border-radius:12px;
  padding:12px 14px; resize:vertical; transition:border-color .2s ease, background .2s ease;
}
.order-form input:focus, .order-form textarea:focus{
  outline:none; border-color:var(--rose-deep); background:var(--paper);
}
.order-form .btn-primary{ align-self:flex-start; border:none; cursor:pointer; font-family:inherit; }
.order-form .btn-primary:disabled{ opacity:.65; cursor:default; transform:none; }
.form-status{ font-size:13.5px; font-weight:600; }
.form-status[hidden]{ display:none; }
.form-status.is-success{ color:var(--sage); }
.form-status.is-error{ color:var(--maroon); }

/* ---------- FOOTER ---------- */
footer{ background:var(--ink); color:rgba(250,245,240,0.6); padding:44px 0; }
.footer-row{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.footer-logo{ font-family:'Caveat', cursive; font-size:24px; color:var(--rose); }
footer .fine{ font-size:13px; }

/* ---------- LIGHTBOX (podgląd produktu po kliknięciu) ---------- */
body.lightbox-open{ overflow:hidden; }

.lightbox{
  position:fixed; inset:0; z-index:200;
  display:flex; align-items:center; justify-content:center;
  padding:32px;
  visibility:hidden; opacity:0;
  transition:opacity .28s ease, visibility 0s linear .28s;
}
.lightbox.is-open{
  visibility:visible; opacity:1;
  transition:opacity .28s ease;
}
.lightbox-backdrop{
  position:absolute; inset:0;
  background:rgba(36,31,29,0.72);
  backdrop-filter:blur(6px);
}
.lightbox-panel{
  position:relative; z-index:2;
  background:var(--paper);
  border-radius:26px;
  overflow:hidden;
  max-width:880px; width:100%;
  max-height:88vh;
  display:grid; grid-template-columns:1fr 1fr;
  box-shadow:0 40px 80px rgba(20,15,13,0.4);
  transform:translateY(18px) scale(.97);
  transition:transform .3s ease;
}
.lightbox.is-open .lightbox-panel{ transform:translateY(0) scale(1); }
@media(max-width:760px){
  .lightbox-panel{ grid-template-columns:1fr; overflow-y:auto; }
}

.lightbox-close{
  position:absolute; top:16px; right:16px; z-index:3;
  width:38px; height:38px; border-radius:50%; border:none;
  background:rgba(255,255,255,0.9); color:var(--ink);
  font-size:22px; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 10px rgba(0,0,0,0.18);
  transition:transform .2s ease, background .2s ease;
}
.lightbox-close:hover{ background:#fff; transform:scale(1.06); }

.lightbox-media{
  background:var(--tin); aspect-ratio:1/1;
}
.lightbox-media img{ width:100%; height:100%; object-fit:cover; display:block; }
@media(max-width:760px){ .lightbox-media{ max-height:52vh; } }

.lightbox-info{
  padding:44px 40px; display:flex; flex-direction:column; justify-content:center;
  justify-content:safe center;
  max-height:88vh;
  overflow-y:auto;
}
.lightbox-info h3{ font-size:clamp(24px,3vw,32px); margin-bottom:10px; }
.lightbox-price{ font-size:16px; font-weight:600; color:var(--maroon); margin-bottom:18px; }
.lightbox-desc{ font-size:15.5px; line-height:1.7; color:var(--ink-soft); margin-bottom:8px; }
.lightbox-desc p{ margin-bottom:14px; }
.lightbox-desc p:last-child{ margin-bottom:0; }
.lightbox-features{
  list-style:none; display:flex; flex-direction:column; gap:8px;
  margin:20px 0 28px; padding:14px 16px;
  background:var(--cream-deep); border-radius:14px;
  font-size:14px; color:var(--ink-soft);
}
.lightbox-features:empty, .lightbox-features[hidden]{ display:none; margin:0; padding:0; }

.sold-note{ font-size:14px; font-weight:600; color:var(--maroon); margin-bottom:18px; }
.sold-note[hidden]{ display:none; }

.lightbox-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.btn-vinted{
  background:#09B1BA; color:#fff; text-decoration:none;
  padding:15px 28px; border-radius:40px; font-weight:600; font-size:15px;
  display:inline-flex; align-items:center; gap:8px;
  box-shadow:0 8px 20px rgba(9,177,186,0.28);
  transition:transform .2s ease, box-shadow .2s ease;
}
.btn-vinted:hover{ transform:translateY(-2px); box-shadow:0 12px 26px rgba(9,177,186,0.35); }
.btn-vinted[hidden]{ display:none; }

.btn-share{
  background:transparent; color:var(--ink); text-decoration:none; cursor:pointer;
  border:1.5px solid var(--tin-dark); border-radius:40px; font-family:inherit;
  padding:13.5px 26px; font-weight:600; font-size:15px;
  display:inline-flex; align-items:center; gap:8px;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-share:hover{ background:var(--ink); color:var(--cream); border-color:var(--ink); }
.share-status{
  align-self:center; font-size:14px; font-weight:600; color:var(--sage);
  opacity:0; transition:opacity .25s ease;
}
.share-status.is-visible{ opacity:1; }

::selection{ background:var(--rose); color:var(--maroon-dark); }
