/* ===== Strona 1 Theme v1.0 — style główny =====
   Paleta: atrament #1f2a44, musztarda #c9a227, tło #eef1f5, karta #ffffff, tekst #232a36 */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Segoe UI',Roboto,sans-serif; background:#eef1f5; color:#232a36; line-height:1.5; }
h1, h2, h3, .logo, .cover-title { font-family:'Iowan Old Style','Charter','Georgia',serif; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* --- Nagłówek --- */
header { background:#1f2a44; color:#fff; padding:18px 60px; display:flex; align-items:center; gap:28px; flex-wrap:wrap; position:sticky; top:0; z-index:100; }
.logo { font-size:28px; font-weight:700; letter-spacing:-.5px; }
.logo span { display:inline-block; margin-left:4px; background:#c9a227; color:#1f2a44; width:34px; height:34px; border-radius:50%; text-align:center; line-height:34px; font-size:20px; }
.search { flex:1; max-width:440px; }
.search input { width:100%; padding:11px 16px; border-radius:8px; border:none; font:inherit; font-size:15px; background:#fff; color:#232a36; }
.header-right { display:flex; align-items:center; gap:18px; margin-left:auto; }
.lang-switcher { display:flex; gap:2px; background:rgba(255,255,255,.08); padding:3px; border-radius:8px; }
.lang-switcher button { background:none; border:none; color:#b8c1d4; padding:6px 9px; border-radius:6px; font:inherit; font-size:13px; font-weight:600; cursor:pointer; }
.lang-switcher button.active { background:#c9a227; color:#1f2a44; }
.cart-btn { background:none; border:1px solid rgba(255,255,255,.35); color:#fff; padding:9px 14px; border-radius:8px; font:inherit; font-size:14px; cursor:pointer; display:flex; align-items:center; gap:6px; }
.cart-btn:hover { border-color:#c9a227; }
.count { background:#c9a227; color:#1f2a44; border-radius:999px; min-width:22px; padding:1px 7px; font-size:12px; font-weight:700; text-align:center; }

/* --- Hero --- */
.hero { padding:80px 60px 70px; max-width:900px; }
.hero h1 { font-size:58px; line-height:1.05; color:#1f2a44; margin-bottom:18px; }
.hero p { font-size:18px; color:#4a5468; margin-bottom:28px; max-width:52ch; }
.hero button { background:#1f2a44; color:#fff; border:none; padding:14px 30px; border-radius:8px; font:inherit; font-weight:600; cursor:pointer; }
.hero button:hover { background:#2f3e63; }

/* --- Półka z książkami --- */
.shelf { padding:20px 60px 90px; }
.shelf-head { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; flex-wrap:wrap; margin-bottom:32px; }
.shelf-head h2 { font-size:32px; color:#1f2a44; }
.tabs { display:flex; gap:6px; flex-wrap:wrap; }
.tab { background:#fff; border:1px solid #d5dbe5; color:#232a36; padding:8px 14px; border-radius:8px; font:inherit; font-size:14px; cursor:pointer; }
.tab:hover { border-color:#1f2a44; }
.tab.active { background:#1f2a44; border-color:#1f2a44; color:#fff; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:32px 24px; }
.book { display:flex; flex-direction:column; }
.cover { aspect-ratio:2/3; border-radius:3px 8px 8px 3px; padding:22px 18px; color:#fff; display:flex; flex-direction:column; justify-content:space-between; box-shadow:inset 6px 0 0 rgba(0,0,0,.18), 0 10px 22px rgba(31,42,68,.18); margin-bottom:14px; }
.cover-title { font-size:24px; line-height:1.15; }
.cover-author { font-size:13px; opacity:.85; letter-spacing:.3px; }
.book h3 { font-size:18px; color:#1f2a44; }
.author { font-size:14px; color:#4a5468; }
.format { font-size:13px; color:#7a8396; margin:4px 0 12px; }
.price-row { margin-top:auto; display:flex; justify-content:space-between; align-items:center; }
.price { font-size:19px; font-weight:700; color:#1f2a44; }
.add-btn { background:#c9a227; color:#1f2a44; border:none; padding:8px 14px; border-radius:8px; font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.add-btn:hover { background:#dbb53a; }
.no-results { text-align:center; color:#4a5468; padding:40px 0; font-size:16px; }

/* --- Stopka --- */
footer { background:#1f2a44; color:#b8c1d4; padding:36px 60px; text-align:center; font-size:14px; }

/* --- Panel koszyka --- */
.cart-overlay { position:fixed; inset:0; background:rgba(31,42,68,.5); z-index:200; }
.cart-drawer { position:fixed; top:0; right:0; height:100%; width:min(400px,100%); background:#fff; z-index:201; display:flex; flex-direction:column; 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; background:#1f2a44; color:#fff; }
.cart-head h2 { font-size:22px; }
.cart-close { background:none; border:none; font-size:30px; line-height:1; cursor:pointer; color:#c9a227; }
.cart-items { list-style:none; flex:1; overflow-y:auto; padding:8px 24px; }
.cart-item { display:grid; grid-template-columns:40px 1fr auto; gap:12px; align-items:center; padding:14px 0; border-bottom:1px solid #eef1f5; }
.cart-item-icon { width:34px; height:50px; border-radius:2px 4px 4px 2px; font-size:0; }
.cart-item-name { font-weight:600; font-size:15px; color:#1f2a44; }
.cart-item-price { color:#4a5468; font-size:13px; }
.qty { display:flex; align-items:center; gap:8px; }
.qty button { width:28px; height:28px; border-radius:6px; border:1px solid #d5dbe5; background:#fff; cursor:pointer; }
.qty button:hover { border-color:#1f2a44; }
.cart-empty { color:#4a5468; text-align:center; padding:48px 0; }
.cart-foot { padding:20px 24px; border-top:1px solid #eef1f5; }
.cart-total { display:flex; justify-content:space-between; font-size:18px; margin-bottom:14px; color:#1f2a44; }
.cart-checkout { width:100%; background:#c9a227; color:#1f2a44; border:none; padding:14px; border-radius:8px; font:inherit; font-weight:700; cursor:pointer; }
.cart-checkout:hover { background:#dbb53a; }
.cart-checkout:disabled { background:#e3e7ee; color:#9aa3b5; cursor:not-allowed; }

/* --- Komunikat --- */
.toast { position:fixed; bottom:24px; left:50%; transform:translate(-50%,20px); background:#1f2a44; color:#fff; padding:12px 20px; border-radius:8px; border-left:4px solid #c9a227; 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, input:focus-visible { outline:3px solid #c9a227; outline-offset:2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition:none !important; scroll-behavior:auto !important; }
}
