/* ===== Łobuziny — design tokens ===== */
:root {
  --red: #E3000B;
  --yellow: #FFD700;
  --blue: #006CB7;
  --lime: #7BC043;
  --red-soft: #FFE5E3;
  --yellow-soft: #FFF4C7;
  --blue-soft: #DEEEFB;
  --lime-soft: #E8F6DC;
  --ink: #1C1B22;
  --white: #FFFFFF;
  --gray: #5F5D6B;
  --footer-bg: #17161C;

  --border: 3px solid var(--ink);
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow-block: 6px 6px 0 var(--ink);
  --shadow-block-lift: 10px 12px 0 var(--ink);

  --font-display: 'Baloo 2', 'Nunito', sans-serif;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  font-weight: 700;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

section { scroll-margin-top: 90px; }

.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

/* ===== Naklejki (stickers) ===== */
.sticker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 18px;
  border: var(--border);
  border-radius: 100px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-2.5deg);
  color: var(--ink);
}
.sticker--yellow { background: var(--yellow); }
.sticker--lime { background: var(--lime); }
.sticker--red { background: var(--red); color: var(--white); }
.sticker--blue { background: var(--blue); color: var(--white); }
.sticker--card {
  position: absolute;
  top: -14px;
  left: 14px;
  font-size: 0.72rem;
  padding: 5px 12px;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
}

/* ===== Przyciski — jak klocki ===== */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 30px;
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-block);
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease-spring);
}
.btn:hover {
  transform: translate(-2px, -3px);
  box-shadow: 9px 10px 0 var(--ink);
}
.btn:active {
  transform: translate(3px, 4px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--ink); }
.btn--cart {
  background: var(--blue);
  color: var(--white);
  width: 100%;
  padding: 11px 16px;
  font-size: 0.95rem;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn--cart:hover { box-shadow: 6px 7px 0 var(--ink); }
.btn--cart:active { box-shadow: 1px 1px 0 var(--ink); }

.btn--pulse { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
.btn--pulse:hover { animation: none; }

/* ===== Navbar ===== */
.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: var(--border);
  padding: 12px 0;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--red);
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.logo-dot { color: var(--blue); }
.logo--footer { color: var(--yellow); }

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  position: relative;
  font-weight: 800;
  font-size: 1rem;
  padding: 6px 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 6px;
  border-radius: 4px;
  background: var(--red);
  transition: width 0.28s var(--ease-spring);
}
.nav-links a[data-color="blue"]::after { background: var(--blue); }
.nav-links a[data-color="yellow"]::after { background: var(--yellow); }
.nav-links a[data-color="lime"]::after { background: var(--lime); }
.nav-links a:hover::after { width: 100%; }
.sale-link { color: var(--red); }

.navbar__icons { display: flex; gap: 12px; align-items: center; }
.icon-btn {
  position: relative;
  background: var(--white);
  border: var(--border);
  border-radius: 14px;
  width: 46px;
  height: 46px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease-spring);
}
.icon-btn:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.cart-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  font-size: 0.7rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-count.bump { animation: bump 0.4s var(--ease-spring); }
@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.6) rotate(8deg); }
  100% { transform: scale(1); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

.search-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-soft), margin 0.3s var(--ease-soft);
}
.search-bar.open { max-height: 80px; margin-top: 12px; }
.search-bar input {
  width: 100%;
  padding: 13px 20px;
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.search-bar input:focus { outline: none; border-color: var(--blue); box-shadow: 4px 4px 0 var(--blue); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: var(--white);
}
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}
.hero__eyebrow {
  margin-bottom: 26px;
  animation: stickerIn 0.6s var(--ease-spring) both;
}
@keyframes stickerIn {
  from { opacity: 0; transform: rotate(-2.5deg) scale(0.5); }
  to { opacity: 1; transform: rotate(-2.5deg) scale(1); }
}

/* rozsypane klocki w tle */
.hero__bricks { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.brick {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 92px;
  height: 46px;
  border: var(--border);
  border-radius: 10px;
  transform: rotate(var(--r, 0deg));
  animation: brickFloat 5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
/* wypustki klocka */
.brick::before, .brick::after {
  content: "";
  position: absolute;
  top: -14px;
  width: 22px;
  height: 14px;
  border: var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: inherit;
}
.brick::before { left: 12px; }
.brick::after { right: 12px; }
.brick--red { background: var(--red); }
.brick--yellow { background: var(--yellow); }
.brick--blue { background: var(--blue); }
.brick--lime { background: var(--lime); }
.brick--sm { width: 62px; height: 32px; }
.brick--sm::before, .brick--sm::after {
  width: 15px; height: 10px; top: -10px;
}
.brick--sm::before { left: 8px; }
.brick--sm::after { right: 8px; }
@keyframes brickFloat {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(var(--r)) translateY(-14px); }
}

.hero__title {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -1px;
}
.split { display: block; }
.split--accent { color: var(--red); }
/* litery składane przez JS */
.hero__title .ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) scale(0.4) rotate(8deg);
  animation: letterIn 0.5s var(--ease-spring) forwards;
  animation-delay: var(--ld, 0s);
}
@keyframes letterIn {
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--gray);
  margin: 22px 0 0;
  font-weight: 800;
}
.hero__ctas {
  margin-top: 38px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== USP ===== */
.usp { padding: 0 0 20px; }
.usp__row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.usp__chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--white);
  border: var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease-spring);
}
.usp__chip:hover {
  transform: translate(-1px, -3px) rotate(-1deg);
  box-shadow: 6px 8px 0 var(--ink);
}

/* ===== Kategorie — bento ===== */
.categories { padding: 50px 0 40px; }
.categories-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.category-tile {
  min-height: 190px;
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-block);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  grid-column: span 2;
  animation: tileBob 3.6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-spring);
}
.categories-bento .category-tile:nth-child(4),
.categories-bento .category-tile:nth-child(5) {
  grid-column: span 3;
  min-height: 160px;
}
@keyframes tileBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-8px) rotate(-1.4deg); }
  60% { transform: translateY(-3px) rotate(1.2deg); }
}
.category-tile:hover {
  animation-play-state: paused;
  transform: translateY(-8px) scale(1.04);
  box-shadow: var(--shadow-block-lift);
}
.category-tile__icon { font-size: 3rem; }
.category-tile__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0 10px;
}
.tile--red { background: var(--red-soft); }
.tile--blue { background: var(--blue-soft); }
.tile--lime { background: var(--lime-soft); }
.tile--yellow { background: var(--yellow-soft); }
.tile--white { background: var(--white); }

/* ===== Galeria — polaroidy ===== */
.gallery { padding: 50px 0 30px; }
.section-lead {
  text-align: center;
  color: var(--gray);
  font-weight: 700;
  font-size: 1.1rem;
  margin: -26px 0 40px;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.polaroid {
  margin: 0;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-block);
  padding: 12px 12px 14px;
  rotate: var(--pr, 0deg);
  transition: rotate 0.25s var(--ease-spring), transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring);
}
.polaroid:hover {
  rotate: 0deg;
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-block-lift);
  z-index: 2;
  position: relative;
}
.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: var(--border);
  border-radius: 12px;
  background: var(--blue-soft);
}
.polaroid figcaption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  padding-top: 12px;
}

/* ===== Opinie ===== */
.reviews { padding: 40px 0 30px; }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.review-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-block);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s var(--ease-spring);
}
.review-card:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: var(--shadow-block-lift);
}
.review-card p {
  margin: 0;
  font-weight: 700;
  line-height: 1.55;
}
.review-card__author {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: auto;
}

/* ===== Karty produktów ===== */
.bestsellers { padding: 60px 0 70px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-block);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s var(--ease-spring);
}
.product-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-block-lift);
  z-index: 2;
}
.product-thumb {
  border: var(--border);
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
}
.thumb--red { background: var(--red-soft); }
.thumb--yellow { background: var(--yellow-soft); }
.thumb--blue { background: var(--blue-soft); }
.thumb--lime { background: var(--lime-soft); }

.product-name {
  font-size: 1.05rem;
  line-height: 1.25;
  min-height: 2.5em;
}
.product-stars {
  color: var(--yellow);
  -webkit-text-stroke: 1px var(--ink);
  letter-spacing: 3px;
  font-size: 1.05rem;
}
.star-off { color: var(--white); }
.product-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--red);
}

.badge {
  position: absolute;
  top: -14px;
  right: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 6px 14px;
  border: var(--border);
  border-radius: 100px;
  color: var(--ink);
  z-index: 2;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(3deg);
}
.badge--new { background: var(--lime); }

/* wskakiwanie kart przy scrollu */
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.85);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.55s var(--ease-spring), transform 0.55s var(--ease-spring);
}

/* ===== Ticker promo ===== */
.ticker {
  background: var(--red);
  border-top: var(--border);
  border-bottom: var(--border);
  overflow: hidden;
  padding: 20px 0;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerScroll 22s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--white);
  white-space: nowrap;
  padding: 0 34px;
  position: relative;
}
.ticker__track span::after {
  content: "•";
  position: absolute;
  right: -6px;
  color: var(--yellow);
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Nowości ===== */
.novelties { padding: 60px 0 40px; }
.novelties__scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 20px 30px;
  scroll-snap-type: x proximity;
}
.novelties__scroll .product-card {
  min-width: 240px;
  scroll-snap-align: start;
}
.novelties__scroll::-webkit-scrollbar { height: 12px; }
.novelties__scroll::-webkit-scrollbar-track {
  background: var(--blue-soft);
  border-radius: 10px;
}
.novelties__scroll::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 10px;
  border: 2px solid var(--white);
}

/* ===== Newsletter ===== */
.newsletter { padding: 30px 0 70px; }
.newsletter__card {
  position: relative;
  background: var(--yellow-soft);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-block);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.newsletter__sticker {
  position: absolute;
  top: -18px;
  right: 34px;
  transform: rotate(3deg);
}
.newsletter__text h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin-bottom: 8px;
}
.newsletter__text p {
  margin: 0;
  color: var(--gray);
  font-weight: 700;
  max-width: 46ch;
}
.newsletter__form {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 280px;
  justify-content: flex-end;
}
.newsletter__form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: var(--white);
}
.newsletter__form input:focus { outline: none; border-color: var(--blue); box-shadow: 4px 4px 0 var(--blue); }

/* ===== Footer ===== */
.footer {
  background: var(--footer-bg);
  color: #DDD;
  border-top: var(--border);
  padding: 56px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 40px;
  border-bottom: 1px solid #37353F;
}
.footer__brand p { color: #9A98A5; font-weight: 600; margin-top: 12px; }
.footer__brand .logo { font-size: 1.9rem; }
.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a {
  width: 42px; height: 42px;
  background: #26242E;
  border: 2px solid #37353F;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s;
}
.footer__social a:hover { transform: translateY(-4px); border-color: var(--yellow); }

.footer__col h4 {
  color: var(--white);
  margin: 0 0 16px;
  font-size: 1.05rem;
}
.footer__col a, .footer__col p {
  display: block;
  color: #9A98A5;
  margin: 0 0 10px;
  font-weight: 600;
}
.footer__col a:hover { color: var(--yellow); }
.footer__col p a { display: inline; margin: 0; text-decoration: underline; text-underline-offset: 3px; }

.footer__payments {
  display: flex;
  gap: 14px;
  padding: 26px 0;
  flex-wrap: wrap;
}
.pay-badge {
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}
.footer__bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #37353F;
  color: #7C7A87;
  font-size: 0.85rem;
}

/* ===== Responsywność ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    margin-top: 10px;
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-block);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-width: 0;
    transition: max-height 0.3s var(--ease-soft);
  }
  .nav-links.open { max-height: 340px; padding: 10px 0; border-width: 3px; }
  .nav-links a { padding: 14px; width: 100%; text-align: center; }
  .hero { padding: 50px 0 70px; }
  .brick { width: 64px; height: 34px; }
  .brick::before, .brick::after { width: 16px; height: 10px; top: -10px; }
  .brick--sm { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .categories-bento { grid-template-columns: 1fr 1fr; gap: 16px; }
  .category-tile,
  .categories-bento .category-tile:nth-child(4) { grid-column: span 1; min-height: 150px; }
  .categories-bento .category-tile:nth-child(5) { grid-column: span 2; min-height: 130px; }
  .novelties__scroll .product-card { min-width: 210px; }
  .reviews__grid { grid-template-columns: 1fr; }
  .newsletter__card { padding: 36px 24px; }
  .newsletter__form { justify-content: stretch; }
  .newsletter__form .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .btn { padding: 13px 22px; font-size: 0.95rem; }
  .hero__ctas .btn { width: 100%; text-align: center; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-card { padding: 12px; }
  .product-thumb { font-size: 2.6rem; }
  .usp__chip { font-size: 0.85rem; padding: 8px 14px; }
  .gallery__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== Dostępność ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
