/* ====== GŁÓWNE STYLE ====== */

/* Reset i bazowe */
body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background: #faf9f7;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Comic Sans MS", "Segoe UI", sans-serif;
  color: #444;
  margin-bottom: 10px;
}

a { color: #f59e0b; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }

/* Przyciski */
.btn {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: #d97706; }

/* ====== FAQ (akordeon) ====== */
.accordion { display: grid; gap: 10px; }
.faq-item {
  width: 100%; text-align: left; background: #fff; border: 1px solid #eee;
  border-radius: 12px; padding: 12px 14px; font-size: 16px; display: flex;
  justify-content: space-between; align-items: center; cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.04);
}
.faq-item:hover { background: #fffdf8; }
.faq-item[aria-expanded="true"] { border-color: #ffd9a6; background: #fffaf2; }
.faq-item .chev { transition: transform .2s ease; }
.faq-item[aria-expanded="true"] .chev { transform: rotate(90deg); }
/* FAQ panel – płynne rozwijanie, CSS-only */
.faq-panel{
  max-height: 0;
  overflow: hidden;
  background:#fff;
  border:1px dashed #ffd9a6;
  border-radius:10px;
  padding: 0 14px;         /* brak pionowych paddingów, gdy zamknięte */
  margin-top:-6px;
  transition: max-height .35s ease, padding .25s ease;
}
.faq-panel.open{
  /* ustawiamy duży sufit, żeby ZAWSZE mieściła się cała odpowiedź */
  max-height: 3000px;
  padding: 12px 14px;      /* wraca padding w stanie otwartym */
}
/* ====== Opinie ====== */
#opinie .card { min-height: 180px; }
.stars { letter-spacing: 2px; color: #f59e0b; font-size: 18px; margin-bottom: 8px; }
.author { font-size: 13px; opacity: .8; margin-top: 6px; }
/* Mini-koszyk (modal) */
.mini-cart{position:fixed;inset:0;background:rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;z-index:50}
.mini-cart__box{background:#fff;border-radius:16px;padding:18px;min-width:300px;box-shadow:0 12px 30px rgba(0,0,0,.2);border:1px solid #eee}
.mini-cart__actions{display:flex;gap:10px}
/* ====== Płatności: responsywny układ ====== */
/* Domyślnie (telefony): karty jedna pod drugą */
.pay-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

/* Laptopy/desktop (>=900px): trzy kolumny obok siebie */
@media (min-width: 900px) {
  .pay-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: "blik przelew paypal";
  }
  .pay-blik    { grid-area: blik; }
  .pay-przelew { grid-area: przelew; }
  .pay-paypal  { grid-area: paypal; }
}
@media (min-width: 900px) {
  .pay-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .pay-grid > * { min-width: 0; align-self: start; }
}
.mini-cart{ cursor: pointer; }
.mini-cart__box{ cursor: auto; }

/* Ukrywanie modala przez atrybut [hidden] – nadrzędne nad innymi stylami */
.mini-cart[hidden]{ display:none !important; }

