:root {
  --dark: #1e1e1e;
  --primary: #c0392b;
  --primary-dark: #a93226;
  --bg: #f7f5f2;
  --white: #ffffff;
  --gray: #6b6b6b;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0,0,0,.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI", Arial, sans-serif; color: var(--dark); background: var(--bg); line-height: 1.6; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.header { background: var(--dark); color: var(--white); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: .8rem 1rem; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--white); text-decoration: none; }
.logo span { color: var(--primary); }
.nav { margin-left: auto; display: flex; gap: 1.2rem; }
.nav a { color: #ddd; text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--white); }

.cart-btn { background: var(--primary); border: none; color: #fff; font-size: 1.1rem;
  padding: .45rem .8rem; border-radius: var(--radius); cursor: pointer; position: relative; }
.cart-btn:hover { background: var(--primary-dark); }
.cart-count { font-size: .85rem; font-weight: 700; }

.burger { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(rgba(20,20,20,.75), rgba(20,20,20,.75)),
  url("https://picsum.photos/1600/600") center/cover; color: #fff;
  text-align: center; padding: 6rem 1rem; }
.hero h1 { font-size: 2.4rem; margin-bottom: 1rem; }
.hero p { max-width: 600px; margin: 0 auto 2rem; font-size: 1.1rem; }

.btn { display: inline-block; padding: .8rem 1.8rem; border-radius: var(--radius);
  text-decoration: none; border: none; cursor: pointer; font-size: 1rem; transition: background .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

/* Sekcje */
.section { padding: 4rem 0; }
.section-alt { background: #efece7; }
.section h2 { text-align: center; margin-bottom: 2rem; font-size: 1.9rem; }

/* Filtry */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.filter-btn { padding: .5rem 1.1rem; border: 1px solid #ccc; background: #fff;
  border-radius: 30px; cursor: pointer; }
.filter-btn.active { background: var(--dark); color: #fff; border-color: var(--dark); }

/* Produkty */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.product-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.2rem; display: flex; flex-direction: column; transition: transform .2s; }
.product-card:hover { transform: translateY(-4px); }
.product-card .emoji { font-size: 3rem; text-align: center; }
.product-card h3 { margin: .6rem 0 .3rem; font-size: 1.15rem; }
.product-card .desc { color: var(--gray); font-size: .9rem; flex-grow: 1; }
.product-card .price { font-size: 1.25rem; font-weight: 700; margin: .7rem 0 .4rem; }
.product-card .price small { font-weight: 400; color: var(--gray); }
.stock-out { color: var(--primary); font-size: .85rem; font-weight: 600; }

/* Dostawa / kontakt */
.delivery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.card h3 { margin-bottom: .5rem; }
.contact-list { list-style: none; text-align: center; font-size: 1.1rem; }
.contact-list li { margin: .5rem 0; }
.contact-list a { color: var(--dark); }

/* Footer */
.footer { background: var(--dark); color: #bbb; text-align: center; padding: 1.5rem 0; font-size: .9rem; }

/* Drawer koszyka */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0;
  pointer-events: none; transition: opacity .3s; z-index: 200; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: -420px; width: min(400px, 100%); height: 100%;
  background: #fff; z-index: 201; transition: right .3s; display: flex; flex-direction: column; }
.cart-drawer.open { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem; border-bottom: 1px solid #eee; }
.close-btn { background: none; border: none; font-size: 1.3rem; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; }
.drawer-footer { border-top: 1px solid #eee; padding: 1rem 1.2rem; }
.drawer-footer .total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; margin-bottom: .8rem; }

.cart-item { display: flex; justify-content: space-between; align-items: center;
  gap: .5rem; padding: .7rem 0; border-bottom: 1px solid #f0f0f0; }
.cart-item .name { flex: 1; font-size: .95rem; }
.qty-controls { display: flex; align-items: center; gap: .4rem; }
.qty-controls button { width: 26px; height: 26px; border: 1px solid #ccc; background: #fff;
  border-radius: 6px; cursor: pointer; font-weight: 700; }
.cart-item .line-total { min-width: 80px; text-align: right; font-weight: 600; font-size: .95rem; }
.cart-empty { text-align: center; color: var(--gray); padding: 2rem 0; }

/* Formularz zamówienia */
.order-form label { display: block; font-size: .9rem; margin: .5rem 0 .2rem; }
.order-form input, .order-form select, .order-form textarea {
  width: 100%; padding: .55rem .7rem; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; }
.order-form .btn { width: 100%; margin-top: 1rem; }
.form-error { color: var(--primary); font-size: .85rem; margin-top: .4rem; }

/* Podsumowanie */
.summary-box { text-align: left; }
.summary-box .row { display: flex; justify-content: space-between; padding: .3rem 0;
  border-bottom: 1px dashed #ddd; font-size: .95rem; }

/* Toast */
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--dark); color: #fff; padding: .7rem 1.4rem; border-radius: 30px;
  opacity: 0; transition: all .3s; z-index: 300; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsywność */
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark); flex-direction: column; padding: 1rem; }
  .nav.open { display: flex; }
  .burger { display: block; margin-left: auto; }
  .header .cart-btn { margin-left: .5rem; }
  .hero h1 { font-size: 1.7rem; }
}
