html, body {
  scroll-behavior: auto !important;
}

/* =====================
   BASE
===================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;

  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* ścieżka poprawna pod public/css → public/assets */
  background-image: url("../assets/menu_large.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* FIX NA RAILWAY – musi być scroll */
  background-attachment: scroll;

  /* delikatny blur tła */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  body {
    /* lżejszy plik */
    background-image: url("../assets/menu_small.webp");

    /* mobile i Railway nie lubią fixed */
    background-attachment: scroll;

    
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  background-repeat: inherit;

  /* tylko tutaj blur — dużo lżejsze dla przeglądarki */
  filter: blur(12px) brightness(1.05);
}







/* =====================
   HEADER
===================== */
.header {
  display: flex;
  align-items: center;
  padding: 20px 32px;
  background: #ffffff;
  border-bottom: 2px solid #000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  height: 72px;
  width: auto;
}

.brand-name {
  font-family: 'Playfair Script', cursive;
  font-size: 34px;
  white-space: nowrap;
}

.main-nav {
  margin-left: auto;
  display: flex;
  gap: 14px;
}

.main-nav a {
  text-decoration: none;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: #000;
  color: #fff;
}

/* =====================
   HERO
===================== */
.hero {
  padding: 120px 20px;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 72px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid #000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn.primary {
  background: #000;
  color: #fff;
}

.hero-btn.secondary {
  background: transparent;
  color: #000;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* =====================
   PRODUCT GRID
===================== */
.products,
#clothes {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;

  display: grid;

  gap: 40px;
}

/* =====================
   PRODUCT CARD
===================== */
.product,
.clothes-item {
  background: #ffffff;
  border: 2px solid #000;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product:hover,
.clothes-item:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 rgba(0,0,0,0.35);
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 14px;
  background: #eee;
  position: relative;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 20px;
}

/* PRODUCT INFO */
.info {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info strong {
  font-size: 16px;
}

.meta {
  font-size: 13px;
  opacity: 0.7;
}

.price {
  font-size: 16px;
  font-weight: 800;
}

/* =====================
   BUTTONS
===================== */
button,
.button {
  margin-top: 12px;
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 800;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* =====================
   HOME LAYOUT
===================== */
.home-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding: 60px 40px;
}

.why-us {
  background: rgba(255,255,255,0.6);
  padding: 32px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.6;
}

.why-us h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.why-lead {
  font-size: 16px;
  margin-bottom: 20px;
}

.why-footer {
  font-size: 14px;
  opacity: 0.8;
}

/* =====================
   FOOTER
===================== */
.footer {
  background: #0f0f0f;
  color: #bdbdbd;
  padding: 40px 20px;
  margin-top: 120px;
  font-size: 14px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}



.footer a {
  color: #bdbdbd;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

/* CTA BUTTON */
.cta-button {
  display: inline-block;
  padding: 18px 38px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  background: #000;
  color: #fff;
  border-radius: 999px;
  border: 2px solid #000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  background: #111;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

/* =====================
   CART PAGE
===================== */

.cart-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.cart-container h1 {
  margin-bottom: 30px;
}

#cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  background: #ffffff;
  border: 2px solid #000;
  border-radius: 14px;
  padding: 12px 16px;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-item-info strong {
  display: block;
  font-size: 15px;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.cart-item-price {
  font-weight: 800;
}

.cart-remove {
  background: none;
  border: none;
  color: #000;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.cart-summary {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#checkout-btn {
  width: auto;
  padding: 14px 28px;
  border-radius: 999px;
}

/* =====================
   MOBILE FIXES
===================== */
@media (max-width: 900px) {
  .header {
    flex-direction: column;
    padding: 16px;
    gap: 10px;
    text-align: center;
  }

  .home-layout {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 60px 16px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 14px;
  }

  .hero-btn {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    flex-direction: column;
    gap: 14px;
  }

  #checkout-btn {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===========================
   NOWY, POPRAWNY GRID PRODUKTÓW
=========================== */

.products,
#products,
#clothes {
  display: grid;
  gap: 40px;
}

/* 📱 TELEFON */
@media (max-width: 699px) {
  .products,
  #products,
  #clothes {
    grid-template-columns: 1fr;
  }
}

/* 💻 LAPTOP */
@media (min-width: 700px) and (max-width: 1199px) {
  .products,
  #products,
  #clothes {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 🖥️ DESKTOP */
@media (min-width: 1200px) {
  .products,
  #products,
  #clothes {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* ===========================
   HOME – OPCJA C (BEZ RUSZANIA HTML)
=========================== */

/* home układ pionowy */
.home-layout {
  display: block;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* grid mystery boxów */
#products {
  display: grid;
  gap: 40px;
}

/* TELEFON */
@media (max-width: 699px) {
  #products {
    grid-template-columns: 1fr;
  }
}

/* LAPTOP */
@media (min-width: 700px) and (max-width: 1199px) {
  #products {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* DESKTOP */
@media (min-width: 1200px) {
  #products {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* sekcja dlaczego – pod spodem */
.why-us {
  margin-top: 80px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
/* ===========================
   HOME – OPCJA C (CTA nad boxami)
=========================== */

/* Układ pionowy */
.home-layout {
  display: block;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* MINIMALISTYCZNA ZAJAWKA */
.cta-minimal {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
}

.cta-minimal h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.cta-minimal p {
  font-size: 15px;
  opacity: 0.75;
  margin-bottom: 22px;
}

/* GRID MYSTERY BOXÓW */
#products {
  display: grid;
  gap: 40px;
}

/* TELEFON – 1 kolumna */
@media (max-width: 699px) {
  #products {
    grid-template-columns: 1fr;
  }
}

/* LAPTOP – 3 kolumny */
@media (min-width: 700px) and (max-width: 1199px) {
  #products {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* DESKTOP – 4 kolumny */
@media (min-width: 1200px) {
  #products {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* DLACZEGO — ładne wyśrodkowanie */
.why-us {
  margin-top: 80px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
/* ===========================
   MOBILE HEADER FIX – FINAL
=========================== */
@media (max-width: 700px) {

  /* HEADER NA TELEFONIE */
  .header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 10px;
    gap: 10px;
  }

  /* LOGO MNIEJSZE */
  .brand-logo {
    height: 48px;
  }

  /* NAZWA SKLEPU MNIEJSZA */
  .brand-name {
    font-size: 26px;
  }

  /* NAWIGACJA NA TELEFONIE – ŚRODKOWO */
  .main-nav {
    width: 100%;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .main-nav a {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 10px;
  }

  /* ODSUNIĘCIE BOXÓW OD HEADERA */
  .home-layout {
    padding-top: 20px !important;
  }
}

.filters select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  background-color: #111;
  color: #fff;
  border: 1px solid #333;
  padding: 12px 40px 12px 16px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  width: 220px;

  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.516 7.548l4.484 4.484 4.484-4.484'></path></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filters {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-left: 20px;
  margin-top: 25px;
  margin-bottom: 20px;
}

.filters select {
  /* zostają Twoje style wersji A */
}
