/* ====== KOLORY BAZOWE ====== */
:root {
  --cream: #fbf8f3;
  --cream-dark: #f3ece3;
  --cream-border: #e2d6c5;
  --gold: #b48b57;
  --ink: #222;
  --muted: #726a60;
}

/* ====== RESET ====== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-padding-top: 80px; } /* poprawka dla sticky topbara */
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: 1.6;
}

/* ====== TOP BAR ====== */
.topbar {
  background: var(--cream-dark);
  border-bottom: 2px solid var(--cream-border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  flex: 1;
  text-align: center;
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
}
.cta-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .25s ease;
}
.cta-btn:hover {
  background: var(--gold);
  transform: translateY(-1px);
}
.cta-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  background: #000;
}
.hero video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
}
.hero-overlay h2 {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 10px;
}
.hero-overlay p {
  max-width: 600px;
  font-size: 18px;
}

/* ====== CONTENT BOX ====== */
.content-box {
  display: flex;
  justify-content: center;
  margin-top: -60px;
  padding: 60px 20px 80px;
}
.container {
  background: var(--cream-dark);
  border: 2px solid var(--cream-border);
  border-radius: 32px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  max-width: 1200px;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

/* ====== KARTY ====== */
.card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #ece2d4;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
  padding: 24px;
  flex: 1 1 360px;
  min-width: 340px;
}
.search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e3d8c8;
  border-radius: 10px;
}
.search input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title {
  font-size: 18px;
  margin: 0;
}
.badge {
  background: var(--gold);
  color: #fff;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 13px;
}

/* ====== PRODUKTY ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.product {
  background: #fffdf9;
  border: 1px solid #e5d8c5;
  border-radius: 16px;
  transition: all .25s ease;
}
.product:hover { transform: translateY(-2px); }
.product img {
  width: 100%;
  height: 260px;
  aspect-ratio: 4/3; /* zapobiega skakaniu */
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.product .info {
  padding: 14px;
}
.product .info h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.product .info p {
  margin: 0 0 10px;
  color: var(--muted);
}

/* ====== KOSZYK ====== */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px dashed #e5d8c5;
  padding-bottom: 6px;
}
.sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 2px solid #e5d8c5;
  margin-top: 8px;
}

/* ====== BUTTONY ====== */
.btn {
  background: #000;
  color: #fff;
  border: 0;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  transition: all .25s;
}
.btn:hover { background: var(--gold); }
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.btn.secondary {
  background: #e7dcc9;
  color: #2d2417;
}
.btn.secondary:hover {
  background: var(--gold);
  color: #fff;
}
.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.muted { color: var(--muted); }

/* ====== RESPONSYWNOŚĆ ====== */
@media (max-width: 900px) {
  .container {
    padding: 24px;
  }
  .hero-overlay h2 { font-size: 40px; }
}
@media (max-width: 600px) {
  .logo { font-size: 24px; }
  .cta-btn { padding: 10px 16px; font-size: 14px; }
  .hero { height: 52vh; }
}

/* ====== DLA OSÓB Z OGRANICZONYM RUCHEM ====== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  .hero video {
    filter: brightness(1);
  }
}
/* ====== TOPBAR: logo zawsze idealnie na środku ====== */
.topbar-inner{ display:grid !important; grid-template-columns:1fr auto 1fr; align-items:center; }
.logo{ grid-column:2; justify-self:center; }
.cta-btn{ grid-column:3; justify-self:end; }
.spacer{ grid-column:1; }

/* ====== LAYOUT: produkty na środku, koszyk po prawej ====== */
.content-box{
  display:flex; justify-content:center; gap:40px;
  margin-top:-60px; padding:60px 20px 80px;
}
.container{
  display:grid; 
  grid-template-columns: minmax(320px, 720px) 360px; /* LEWA: produkty (środek), PRAWA: koszyk */
  gap:40px;
  max-width:1200px; margin:0 auto; align-items:start;
}

/* LEWA kolumna (lista produktów) – trzymaj w osi */
.container > .card:first-child{ justify-self:center; width:100%; }

/* PRAWA kolumna (koszyk) – trzymaj prawą krawędź; opcjonalnie sticky */
.container > aside.card{
  justify-self:end; width:100%; max-width:360px;
  position: sticky; top: 96px; /* możesz usunąć jeśli nie chcesz „przyklejenia” */
}

/* Trochę ciaśniej w karcie z produktami, by wyglądała smuklej */
.grid{ margin-top:14px; }

/* ====== RESPONSYWNOŚĆ: na wąskich ekranach układ pod sobą ====== */
@media (max-width: 980px){
  .container{ grid-template-columns: 1fr; }
  .container > .card:first-child,
  .container > aside.card{ justify-self:center; max-width:640px; position:static; }
}

