/* toppi.studio, makieta sklepu */
:root {
  --bg: #F5F2ED;
  --alt: #ECE7DF;
  --ink: #1A1816;
  --text: #4A453F;
  --muted: #6A645C;
  --line: #DED8CE;
  --line-alt: #D4CDC2;
  --display: 'Libre Caslon Display', Georgia, serif;
  --serif: 'Libre Caslon Text', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1600px; margin: 0 auto; padding: 0 var(--pad); }
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.display { font-family: var(--display); font-weight: 400; }
.link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 34px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: #34302C; color: var(--bg); }

/* Nagłówek */
.header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 20; }
.header .wrap {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav, .tools { display: flex; gap: 36px; }
.tools { justify-self: end; }
.logo { font-family: var(--display); font-size: 26px; letter-spacing: 0.01em; text-transform: none; white-space: nowrap; }
.lang { color: var(--muted); }
.menu-btn { display: none; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
.drawer { display: none; }

/* Slider */
.hero { position: relative; height: 880px; overflow: hidden; background: var(--alt); border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .wrap { position: relative; height: 100%; display: flex; align-items: flex-end; padding-bottom: 56px; }
.panel { width: 100%; max-width: 520px; padding: 44px 48px 0; background: rgba(245, 242, 237, 0.92); }
.panel-copy { display: none; }
.panel-copy.is-active { display: block; }
.panel .label { color: #625C55; margin-bottom: 22px; }
.panel h1, .panel h2 { font-family: var(--display); font-weight: 400; font-size: 56px; line-height: 1.06; letter-spacing: -0.005em; }
.panel p.lead { margin-top: 22px; max-width: 380px; color: #3A3631; line-height: 1.7; }
.panel .btn { margin-top: 34px; }
.controls { margin-top: 40px; padding: 4px 0; border-top: 1px solid var(--line-alt); display: flex; align-items: center; justify-content: space-between; }
.bars { display: flex; gap: 6px; }
.bar { width: 36px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.bar span { display: block; width: 100%; height: 1px; background: #C4BCB0; transition: background 0.3s; }
.bar.is-active span { background: var(--ink); }
.arrows { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.arrow { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.counter { min-width: 64px; text-align: center; }

/* Pracownia */
.studio { padding-top: 168px; padding-bottom: 168px; display: flex; flex-wrap: wrap; gap: 40px 8%; }
.studio > .label { flex: 1 1 200px; max-width: 320px; padding-top: 12px; }
.studio-body { flex: 999 1 560px; max-width: 820px; display: flex; flex-direction: column; gap: 64px; }
.studio-body > p { font-family: var(--display); font-size: 36px; line-height: 1.4; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px 32px; }
.facts div { padding-top: 20px; border-top: 1px solid var(--line); }
.facts dd { margin-top: 10px; }

/* Kolekcja */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.section-head h2 { font-weight: 400; color: var(--ink); }
.collection { padding-bottom: 200px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 4px; }
.card { display: flex; flex-direction: column; gap: 22px; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--alt); transition: opacity 0.4s; }
.card:hover img { opacity: 0.88; }
.card-meta { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.card-meta .price { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.card:hover { color: var(--ink); }

/* Materiał */
.material { background: var(--alt); display: flex; flex-wrap: wrap; }
.material > img { flex: 1 1 600px; min-width: 0; height: 920px; object-fit: cover; }
.material-body { flex: 1 1 480px; padding: 120px 9%; display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.material-body .label { color: #625C55; }
.material-body h2, .refill h2 { font-size: 64px; line-height: 1.05; }
.material-body p, .refill p { max-width: 420px; font-size: 18px; line-height: 1.75; color: var(--text); }
.spec { max-width: 420px; display: grid; grid-template-columns: auto 1fr; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; border-top: 1px solid var(--line-alt); }
.spec dt, .spec dd { padding: 18px 0; border-bottom: 1px solid var(--line-alt); }
.spec dt { padding-right: 24px; color: #625C55; }
.spec dd { text-align: right; }

/* Wkłady */
.refill { padding-top: 200px; padding-bottom: 200px; display: flex; flex-wrap: wrap; align-items: center; gap: 64px 8%; }
.refill > img { flex: 1 1 520px; min-width: 0; max-width: 720px; aspect-ratio: 4 / 5; object-fit: cover; }
.refill-body { flex: 1 1 380px; max-width: 460px; display: flex; flex-direction: column; gap: 36px; align-items: flex-start; }

/* Rozmiary */
.sizes { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sizes .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.size { padding: 88px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.size + .size { border-left: 1px solid var(--line); }
.size .display { font-size: 96px; line-height: 1; }

/* Nazwa */
.name { padding-top: 200px; padding-bottom: 200px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.name .word { font-style: italic; font-size: 88px; line-height: 1; }
.name p:last-child { max-width: 460px; font-size: 18px; line-height: 1.75; color: var(--text); }

/* Stopka */
.footer { background: var(--ink); color: var(--bg); }
.footer a { color: var(--bg); }
.footer a:hover { color: #A39C92; }
.footer .wrap { padding-top: 96px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 96px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 56px; }
.footer-top > p { font-family: var(--display); font-size: 40px; line-height: 1.15; max-width: 440px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 96px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 2.6; }
.footer-cols div { display: flex; flex-direction: column; }
.footer-cols span { color: #A39C92; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 32px; border-top: 1px solid #3A3631; }
.footer-bottom .logo { font-size: 26px; }
.footer-bottom small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: #A39C92; }

/* Karta produktu */
.product { display: flex; flex-wrap: wrap; align-items: flex-start; }
.gallery { flex: 999 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery .main { grid-column: 1 / -1; aspect-ratio: 1 / 1; background: var(--alt); }
.buy { flex: 1 1 420px; padding: 72px 64px 96px; display: flex; flex-direction: column; gap: 44px; position: sticky; top: 0; }
.buy h1 { font-family: var(--display); font-weight: 400; font-size: 52px; line-height: 1.05; margin-top: -26px; }
.buy .price { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; margin-top: -26px; }
.buy .desc { max-width: 400px; line-height: 1.75; color: var(--text); }
.buy fieldset { margin: 0; padding: 0; border: 0; }
.buy legend { padding: 0; margin-bottom: 16px; }
.buy legend b { font-weight: 400; color: var(--ink); margin-left: 12px; }
.swatches { display: flex; gap: 6px; }
.swatch { width: 44px; height: 44px; padding: 7px; border: 1px solid transparent; background: none; cursor: pointer; }
.swatch span { display: block; width: 100%; height: 100%; }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.options { display: flex; gap: 32px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.option { min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.option[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.buy .btn { width: 100%; min-height: 58px; }
.note { margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; line-height: 1.9; color: var(--muted); }
.added { margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; min-height: 20px; }
.details { border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.details details { border-bottom: 1px solid var(--line); }
.details summary { list-style: none; cursor: pointer; min-height: 60px; display: flex; align-items: center; justify-content: space-between; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: '+'; }
.details details[open] summary::after { content: '\2212'; }
.details p { margin-bottom: 26px; font-family: var(--serif); font-size: 16px; line-height: 1.75; letter-spacing: 0; text-transform: none; color: var(--text); }
.related { padding-top: 180px; padding-bottom: 180px; }
.related .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer.slim .wrap { padding-top: 48px; padding-bottom: 48px; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 16px; }

/* Wejście przy przewijaniu */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .reveal, .card img { transition: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 1100px) {
  :root { --pad: 32px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .material > img { height: 640px; }
  .buy { position: static; padding: 56px var(--pad) 80px; }
  .hero { height: 760px; }
}

/* Telefon */
@media (max-width: 800px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .header .wrap { min-height: 64px; font-size: 10px; }
  .nav, .tools a:not(.cart) { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-self: start; }
  .logo { font-size: 20px; }
  .drawer { display: none; border-top: 1px solid var(--line); padding: 8px var(--pad) 24px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
  .drawer.is-open { display: flex; flex-direction: column; }
  .drawer a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
  .hero { height: auto; background: var(--bg); }
  .hero-media { position: relative; height: 520px; }
  .hero .wrap { display: block; padding: 0; height: auto; }
  .panel { max-width: none; padding: 36px var(--pad) 0; background: var(--bg); }
  .panel h1, .panel h2 { font-size: 40px; }
  .panel .btn { width: 100%; }
  .studio { padding-top: 104px; padding-bottom: 104px; }
  .studio-body { gap: 40px; }
  .studio-body > p { font-size: 26px; }
  .collection { padding-bottom: 112px; }
  .grid, .related .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 4px; }
  .card { gap: 14px; }
  .card-meta { font-size: 14px; }
  .material > img { height: 440px; flex-basis: 100%; }
  .material-body { padding: 56px var(--pad) 72px; gap: 24px; }
  .material-body h2, .refill h2 { font-size: 40px; }
  .refill { padding-top: 104px; padding-bottom: 104px; }
  .refill > img { flex-basis: 100%; }
  .sizes .wrap { grid-template-columns: 1fr; padding: 0; }
  .size { padding: 48px 0; }
  .size + .size { border-left: 0; border-top: 1px solid var(--line); }
  .size .display { font-size: 64px; }
  .name { padding-top: 104px; padding-bottom: 104px; }
  .name .word { font-size: 60px; }
  .footer .wrap { padding-top: 56px; gap: 48px; }
  .footer-top > p { font-size: 28px; }
  .footer-cols { gap: 40px; }
  .buy h1 { font-size: 40px; }
  .related { padding-top: 104px; padding-bottom: 104px; }
  .footer.slim .wrap { padding-top: 40px; padding-bottom: 40px; }
}
