/* KMM — Home (strona główna)
   Hero/slider, sekcje home (Nowości / Bestsellery / Featured), promo strip, kontakt.
   Style nawigacji (menu + dropdown + mobile toggle) — dodawane przez ten plik,
   ale ścisle związane z headerem z catalog.css. */

/* =========================================================
   NAWIGACJA (menu + dropdown kategorii + hamburger mobile)
   Działa razem z .shop-header z catalog.css
   ========================================================= */

.shop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.shop-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.shop-nav .nav-link:hover,
.shop-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.shop-nav .nav-link [data-lucide],
.shop-nav .nav-link svg.lucide {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown.open .nav-dropdown-toggle [data-lucide],
.nav-dropdown.open .nav-dropdown-toggle svg.lucide {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.12s ease;
}

.nav-dropdown-item:hover {
  background: var(--surface-2);
}

.nav-dropdown-item [data-lucide],
.nav-dropdown-item svg.lucide {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.nav-dropdown-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  transition: background 0.15s;
}

.nav-toggle:hover { background: rgba(255, 255, 255, 0.1); }

.nav-toggle [data-lucide],
.nav-toggle svg.lucide {
  width: 22px;
  height: 22px;
}

/* =========================================================
   HERO (banner / slider)
   ========================================================= */

.hero {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 0 24px;
}

.hero-track {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 1400 / 500;
  background: #1d1d1f;
  box-shadow: var(--shadow-md);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.05) 100%);
}

.hero-content {
  position: relative;
  max-width: 540px;
  padding: 0 56px;
  color: #fff;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.hero-content h1, .hero-content h2 {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -1.2px;
  line-height: 1.05;
}

.hero-content p {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.5;
  margin: 0 0 28px;
  opacity: 0.92;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-cta [data-lucide],
.hero-cta svg.lucide {
  width: 16px;
  height: 16px;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  transition: background 0.15s ease, opacity 0.15s ease;
  z-index: 2;
}

.hero-nav [data-lucide],
.hero-nav svg.lucide {
  width: 14px;
  height: 14px;
}

.hero:hover .hero-nav { opacity: 0.85; }

.hero-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.hero-prev { left: 32px; }
.hero-next { right: 32px; }

.hero-nav[hidden] { display: none; }

.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.hero-dots[hidden] { display: none; }

.hero-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  flex: 0 0 auto;
}

.hero-dot:hover { background: rgba(255, 255, 255, 0.75); }

.hero-dot.active {
  background: #fff;
  transform: scale(1.35);
}

/* =========================================================
   HOME — sekcje (Nowości / Bestsellery / Featured)
   ========================================================= */

.home-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.home-section {
  margin-top: 64px;
}

.home-section[hidden] { display: none; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.section-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.section-link:hover {
  background: var(--accent-light);
}

.section-link [data-lucide],
.section-link svg.lucide {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.section-link:hover [data-lucide],
.section-link:hover svg.lucide {
  transform: translateX(2px);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.home-grid .catalog-loading,
.home-grid .catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* =========================================================
   PROMO STRIP
   ========================================================= */

.promo-strip {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.promo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.promo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.promo-card [data-lucide],
.promo-card svg.lucide {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 12px;
}

.promo-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.promo-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================================================
   STRONA KONTAKT
   ========================================================= */

.page-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-hero-simple {
  text-align: center;
  margin-bottom: 48px;
}

.page-hero-simple h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.8px;
}

.page-hero-simple p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
}

.contact-info-card,
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-info-card h2,
.contact-form-card h2 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
}

.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-info-list li [data-lucide],
.contact-info-list li svg.lucide {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-list .contact-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-info-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.contact-info-list a:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info-note {
  margin: 22px 0 0;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.contact-form-status {
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  line-height: 1.45;
}

.contact-form-status[hidden] { display: none; }

.contact-form-status.success {
  background: #e8fbe8;
  color: #1a7a1a;
  border: 1px solid #c6ecc6;
}

.contact-form-status.error {
  background: #ffe9e7;
  color: #b3261e;
  border: 1px solid #ffc7c1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 12px 22px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.btn-primary:hover { background: #000; }

.btn-primary [data-lucide],
.btn-primary svg.lucide {
  width: 16px;
  height: 16px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; width: 36px; height: 36px; }
  .nav-toggle [data-lucide], .nav-toggle svg.lucide { width: 20px; height: 20px; }

  /* Header layout: hamburger (lewo, flow) | logo (środek, absolute) | cart (prawo, margin-left:auto) */
  .shop-header-inner { position: relative; }
  .nav-toggle { order: 1; }
  .shop-header-actions { order: 3; margin-left: auto; }
  .shop-brand {
    order: 2;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }
  .cart-btn { width: 36px; height: 36px; }
  .cart-btn [data-lucide], .cart-btn svg.lucide { width: 20px; height: 20px; }

  /* Searchbar przenoszony przez JS do .shop-nav — ukryj w headerze */
  .shop-header-inner > .shop-search { display: none; }

  /* Searchbar wewnątrz mobile menu (nad kategoriami) */
  .shop-nav .shop-search {
    width: 100%;
    max-width: none;
    margin-bottom: 4px;
  }
  .shop-nav .shop-search input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .shop-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(12, 12, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    /* Stan zwinięty — zero wysokości / paddingu / bordera / interakcji */
    max-height: 0;
    padding: 0 12px;
    border-bottom: 0 solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease,
      border-width 0.3s ease,
      visibility 0s linear 0.3s;
  }

  .shop-nav.open {
    max-height: 80vh;
    padding: 12px;
    border-bottom-width: 1px;
    overflow-y: auto;
    visibility: visible;
    pointer-events: auto;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease,
      border-width 0.3s ease,
      visibility 0s linear 0s;
  }

  .shop-nav .nav-link { width: 100%; }

  .nav-dropdown { width: 100%; }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    margin-top: 4px;
  }

  .nav-dropdown-item {
    color: rgba(255, 255, 255, 0.85);
  }

  .nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-dropdown-item [data-lucide],
  .nav-dropdown-item svg.lucide {
    color: rgba(255, 255, 255, 0.6);
  }

  .nav-dropdown-count {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
  }

  .hero {
    padding: 0 12px;
    margin-top: 16px;
  }

  .hero-track {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }

  .hero-slide {
    align-items: flex-end;
  }

  /* Mocniejszy gradient od dołu, żeby tekst czytał się na obrazku */
  .hero-slide::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.7) 100%);
  }

  .hero-content {
    max-width: 100%;
    padding: 0 24px 28px;
  }

  .hero-eyebrow {
    font-size: 10px;
    padding: 3px 9px;
    margin-bottom: 10px;
    letter-spacing: 0.4px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(20px, 5.5vw, 30px);
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
  }

  .hero-content p {
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 14px;
  }

  .hero-cta {
    padding: 9px 16px;
    font-size: 13px;
    border-radius: 10px;
  }

  .hero-cta [data-lucide],
  .hero-cta svg.lucide {
    width: 14px;
    height: 14px;
  }

  .hero-nav {
    width: 26px;
    height: 26px;
    opacity: 0.65;
  }

  .hero-nav [data-lucide],
  .hero-nav svg.lucide {
    width: 12px;
    height: 12px;
  }

  .hero-prev { left: 14px; }
  .hero-next { right: 14px; }

  .hero-dots {
    bottom: 8px;
    gap: 5px;
  }

  .hero-dot {
    width: 6px;
    height: 6px;
  }

  .home-main { padding: 0 16px 60px; }

  .home-section { margin-top: 44px; }

  .home-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .promo-strip {
    margin-top: 56px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hero {
    padding: 0 8px;
  }

  .hero-track {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }

  .hero-content {
    padding: 0 18px 22px;
  }

  .hero-eyebrow {
    font-size: 9.5px;
    padding: 2px 8px;
    margin-bottom: 8px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(18px, 6.2vw, 26px);
    letter-spacing: -0.4px;
    margin-bottom: 6px;
  }

  .hero-content p {
    font-size: 12.5px;
    line-height: 1.35;
    margin-bottom: 12px;
    /* Skróć opis do 2 linii — dłuższy obciąża niski hero */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-cta {
    padding: 8px 14px;
    font-size: 12.5px;
  }

  .hero-prev { left: 10px; }
  .hero-next { right: 10px; }
}
