/* ===== Ziarno Theme v1.0 — style główny =====
   Paleta: szałwia #eef0ea, atrament #1f1b18, owoc kawowca #9b2c2c, liść #5f7a4f, karta #ffffff */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Segoe UI',Roboto,sans-serif; background:#eef0ea; color:#1f1b18; line-height:1.5; }
h1, h2, .logo, .label-name, .origin { font-family:'Rockwell','Roboto Slab','Georgia',serif; }

/* --- Nagłówek --- */
header { background:#eef0ea; padding:20px 60px; display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; border-bottom:2px solid #1f1b18; }
.logo { font-size:30px; font-weight:700; display:flex; align-items:baseline; gap:10px; }
.logo small { font-family:'Segoe UI',Roboto,sans-serif; font-size:13px; font-weight:400; color:#5f7a4f; }
nav ul { display:flex; gap:4px; list-style:none; }
.filter { background:none; border:2px solid transparent; padding:7px 14px; font:inherit; font-size:14px; cursor:pointer; color:#1f1b18; }
.filter:hover { border-color:#1f1b18; }
.filter.active { background:#1f1b18; color:#eef0ea; }
.header-right { display:flex; align-items:center; gap:16px; }
.lang-switcher { display:flex; border:2px solid #1f1b18; }
.lang-switcher button { background:none; border:none; padding:5px 9px; font:inherit; font-size:13px; font-weight:600; cursor:pointer; color:#1f1b18; }
.lang-switcher button.active { background:#1f1b18; color:#eef0ea; }
.cart-btn { background:#9b2c2c; color:#fff; border:none; padding:10px 16px; font:inherit; font-size:14px; font-weight:600; cursor:pointer; display:flex; align-items:center; gap:6px; }
.cart-btn:hover { background:#7f2121; }
.count { background:#fff; color:#9b2c2c; border-radius:999px; min-width:22px; padding:0 7px; font-size:12px; font-weight:700; text-align:center; }

/* --- Hero --- */
.hero { padding:90px 60px 80px; max-width:980px; }
.roast-date { display:inline-block; border:2px solid #5f7a4f; color:#5f7a4f; padding:4px 12px; font-size:14px; font-weight:600; margin-bottom:22px; }
.hero h1 { font-size:64px; line-height:1.02; margin-bottom:20px; }
.hero-text { font-size:18px; color:#4b4540; max-width:50ch; margin-bottom:30px; }
.hero button { background:#1f1b18; color:#eef0ea; border:none; padding:15px 30px; font:inherit; font-weight:600; cursor:pointer; }
.hero button:hover { background:#9b2c2c; }

/* --- Kawy --- */
.coffees { padding:20px 60px 90px; }
.coffees h2 { font-size:36px; margin-bottom:30px; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:28px; }
.coffee { background:#fff; border:2px solid #1f1b18; display:flex; flex-direction:column; }
.label { background:var(--roast); color:#fff; padding:22px 22px 18px; }
.origin { font-size:30px; line-height:1.05; display:block; }
.label-name { font-size:16px; opacity:.9; display:block; margin-bottom:14px; }
.label dl { display:flex; gap:22px; font-size:13px; }
.label dt { opacity:.75; }
.label dd { font-weight:600; }
.coffee-body { padding:18px 22px 22px; display:flex; flex-direction:column; gap:14px; flex:1; }
.notes { font-size:15px; color:#4b4540; }
.roast-level { display:flex; align-items:center; gap:8px; font-size:13px; color:#4b4540; }
.dots { display:flex; gap:4px; }
.dots i { width:12px; height:12px; border-radius:50%; border:2px solid #1f1b18; }
.dots i.on { background:#1f1b18; }
.sizes { display:flex; }
.size { flex:1; background:#fff; border:2px solid #1f1b18; padding:8px; font:inherit; font-size:14px; cursor:pointer; }
.size + .size { border-left:none; }
.size.active { background:#1f1b18; color:#fff; }
.grind { display:flex; flex-direction:column; gap:4px; font-size:13px; color:#4b4540; }
.grind select { font:inherit; font-size:14px; padding:8px; border:2px solid #1f1b18; background:#fff; color:#1f1b18; }
.price-row { margin-top:auto; display:flex; justify-content:space-between; align-items:center; }
.price { font-size:22px; font-weight:700; }
.add-btn { background:#9b2c2c; color:#fff; border:none; padding:10px 16px; font:inherit; font-weight:600; cursor:pointer; }
.add-btn:hover { background:#7f2121; }

/* --- Przewodnik mielenia --- */
.guide { background:#1f1b18; color:#eef0ea; padding:70px 60px; }
.guide h2 { font-size:32px; margin-bottom:30px; }
.guide dl { display:grid; grid-template-columns:repeat(3,1fr); gap:36px; }
.guide dt { font-weight:700; font-size:18px; color:#c7d3bd; margin-bottom:6px; }
.guide dd { color:#cfc8c2; max-width:34ch; }

/* --- Stopka --- */
footer { background:#1f1b18; color:#9c948d; padding:0 60px 36px; text-align:center; font-size:14px; }

/* --- Menu mobilne --- */
.menu-toggle { display:none; background:none; border:none; font-size:26px; cursor:pointer; color:#1f1b18; }

/* --- Panel koszyka --- */
.cart-overlay { position:fixed; inset:0; background:rgba(31,27,24,.5); z-index:200; }
.cart-drawer { position:fixed; top:0; right:0; height:100%; width:min(420px,100%); background:#fff; z-index:201; display:flex; flex-direction:column; border-left:2px solid #1f1b18; transform:translateX(100%); visibility:hidden; transition:transform .3s, visibility 0s .3s; }
.cart-drawer.open { transform:none; visibility:visible; transition:transform .3s; }
.cart-head { display:flex; justify-content:space-between; align-items:center; padding:20px 24px; border-bottom:2px solid #1f1b18; }
.cart-head h2 { font-family:'Rockwell','Roboto Slab','Georgia',serif; font-size:24px; }
.cart-close { background:none; border:none; font-size:30px; line-height:1; cursor:pointer; color:#9b2c2c; }
.cart-items { list-style:none; flex:1; overflow-y:auto; padding:8px 24px; }
.cart-item { display:grid; grid-template-columns:14px 1fr auto; gap:14px; align-items:center; padding:14px 0; border-bottom:1px solid #dcdfd6; }
.cart-item-swatch { width:14px; height:44px; }
.cart-item-name { font-weight:700; font-size:15px; }
.cart-item-variant { font-size:13px; color:#4b4540; }
.cart-item-price { font-size:14px; color:#9b2c2c; font-weight:600; }
.qty { display:flex; align-items:center; gap:8px; }
.qty button { width:28px; height:28px; border:2px solid #1f1b18; background:#fff; cursor:pointer; font-weight:700; }
.qty button:hover { background:#1f1b18; color:#fff; }
.cart-empty { color:#4b4540; text-align:center; padding:48px 0; }
.cart-foot { padding:20px 24px; border-top:2px solid #1f1b18; }
.cart-total { display:flex; justify-content:space-between; font-size:18px; margin-bottom:14px; }
.cart-checkout { width:100%; background:#9b2c2c; color:#fff; border:none; padding:15px; font:inherit; font-weight:700; cursor:pointer; }
.cart-checkout:hover { background:#7f2121; }
.cart-checkout:disabled { background:#cfc8c2; cursor:not-allowed; }

/* --- Komunikat --- */
.toast { position:fixed; bottom:24px; left:50%; transform:translate(-50%,20px); background:#1f1b18; color:#eef0ea; padding:12px 20px; border-left:5px solid #9b2c2c; opacity:0; pointer-events:none; transition:opacity .25s, transform .25s; z-index:300; }
.toast.show { opacity:1; transform:translate(-50%,0); }

/* --- Dostępność --- */
button:focus-visible, select:focus-visible { outline:3px solid #5f7a4f; outline-offset:2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition:none !important; scroll-behavior:auto !important; }
}
