/* Mamba Pikas — kávová dílna. Self-hosted stylesheet, no external dependencies. */

:root {
  --bg: oklch(0.95 0.015 75);
  --bg-alt: oklch(0.91 0.02 70);
  --card: oklch(0.97 0.01 75);
  --ink: oklch(0.22 0.02 50);
  --ink-soft: oklch(0.3 0.02 55);
  --muted: oklch(0.45 0.03 55);
  --muted-2: oklch(0.4 0.03 55);
  --muted-3: oklch(0.5 0.03 55);
  --line: oklch(0.85 0.02 70);
  --line-2: oklch(0.75 0.03 55);
  --brand: oklch(0.38 0.06 50);
  --brand-ink: oklch(0.97 0.01 75);
  --accent: oklch(0.58 0.12 45);
  --accent-ink: oklch(0.98 0.01 75);
  --eyebrow: oklch(0.5 0.1 45);
  --ok: oklch(0.55 0.1 130);
  --footer-bg: oklch(0.22 0.02 50);
  --footer-ink: oklch(0.9 0.015 75);
  --footer-ink-soft: oklch(0.75 0.02 70);
  --footer-link: oklch(0.88 0.015 75);
  --footer-heading: oklch(0.6 0.02 60);
  --footer-line: oklch(0.32 0.02 60);
  --radius-lg: 16px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-display: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: oklch(0.32 0.06 50); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; left: 8px; top: -48px; background: var(--brand); color: var(--brand-ink);
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 1000; transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  gap: 16px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-ink); font-family: var(--font-display); font-weight: 700; font-size: 20px;
  flex-shrink: 0;
}

.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); line-height: 1; }
.brand-tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.main-nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink);
  border-bottom: 2px solid transparent; padding-bottom: 3px;
}
.main-nav a:hover { color: var(--brand); }
.main-nav a[aria-current="page"] { font-weight: 600; color: var(--brand); border-bottom-color: var(--accent); }

.cart-link {
  position: relative; display: flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--ink); border: 1px solid var(--line-2); padding: 9px 16px; border-radius: 30px;
  font-size: 14px; font-weight: 500; flex-shrink: 0;
}
.cart-badge {
  display: none; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 600;
}
.cart-badge.is-visible { display: flex; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px;
  width: 42px; height: 38px; cursor: pointer; color: var(--ink); font-size: 20px; flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  max-width: 1200px; margin: 0 auto; padding: 80px 40px; align-items: center;
}
.eyebrow { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 16px; }
.hero h1 { font-size: 52px; line-height: 1.1; margin: 0 0 20px; }
.hero p.lede { font-size: 17px; line-height: 1.7; color: var(--muted-2); max-width: 480px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-photo { height: 420px; border-radius: var(--radius-lg); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.btn {
  display: inline-block; text-decoration: none; padding: 14px 28px; border-radius: 30px;
  font-weight: 600; font-size: 15px; border: none; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: oklch(0.32 0.06 50); color: var(--brand-ink); }
.btn-outline { border: 1px solid var(--line-2); color: var(--ink); background: none; }
.btn-outline:hover { background: var(--bg-alt); color: var(--ink); }
.btn-sm { padding: 9px 16px; border-radius: 22px; font-size: 13px; }

/* ---------- Stats ---------- */
.stats { background: var(--bg-alt); padding: 64px 40px; }
.stats-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 28px; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--muted); }

/* ---------- Section headings ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 80px 40px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { font-size: 34px; margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; }
.section-title { font-size: 34px; margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 40px; }
.section-alt { background: var(--bg-alt); }
.link-more { text-decoration: none; font-weight: 600; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card { text-decoration: none; color: inherit; display: block; }
.cat-photo { height: 160px; border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cat-card:hover .cat-photo img { transform: scale(1.05); }
.cat-name { font-weight: 600; font-size: 16px; color: var(--ink); }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { text-decoration: none; color: inherit; background: var(--card); border-radius: var(--radius-md); overflow: hidden; display: block; }
.blog-photo { height: 180px; overflow: hidden; }
.blog-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.blog-card:hover .blog-photo img { transform: scale(1.05); }
.blog-body { padding: 20px; }
.blog-kicker { font-size: 12px; color: var(--eyebrow); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.blog-title { font-weight: 600; font-size: 17px; line-height: 1.4; }
.blog-meta { font-size: 13px; color: var(--muted-3); margin-top: 8px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: var(--card); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.product-photo { height: 190px; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.product-cat { font-size: 11px; color: var(--eyebrow); text-transform: uppercase; letter-spacing: 0.06em; }
.product-title { font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--ink); flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; gap: 10px; }
.product-price { font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.add-to-cart { padding: 9px 16px; border-radius: 22px; border: none; font-size: 13px; font-weight: 600; cursor: pointer; background: var(--brand); color: var(--brand-ink); }
.add-to-cart.is-added { background: var(--ok); }

/* ---------- Filter chips ---------- */
.chip-row { display: flex; gap: 12px; flex-wrap: wrap; padding: 0 40px 24px; max-width: 1200px; margin: 0 auto; }
.chip { padding: 9px 18px; border-radius: 20px; font-size: 13px; border: 1px solid var(--line-2); background: none; color: var(--ink); cursor: pointer; font-family: inherit; }
.chip.is-active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--brand); padding: 64px 40px; }
.newsletter-inner { max-width: 600px; margin: 0 auto; text-align: center; color: var(--brand-ink); }
.newsletter h2 { font-size: 28px; margin: 0 0 12px; }
.newsletter p { font-size: 15px; color: oklch(0.88 0.02 60); margin: 0 0 24px; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input[type="email"] { padding: 13px 18px; border-radius: 26px; border: none; width: 260px; font-size: 14px; font-family: inherit; }
.newsletter-form button { padding: 13px 26px; border-radius: 26px; border: none; background: var(--brand-ink); color: var(--brand); font-weight: 600; cursor: pointer; font-family: inherit; }
.newsletter-note { font-size: 12px; color: oklch(0.8 0.02 60); margin-top: 14px; }
.newsletter-note a { color: oklch(0.95 0.02 75); }
.form-msg { margin-top: 14px; font-size: 13px; font-weight: 600; display: none; }
.form-msg.is-visible { display: block; }
.form-msg.is-error { color: oklch(0.62 0.18 30); }
.form-msg.static-target:target { display: block; }

/* ---------- Info strip (katalog) ---------- */
.info-strip { background: var(--bg-alt); padding: 56px 40px; }
.info-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.info-grid .t { font-weight: 600; margin-bottom: 6px; }
.info-grid .d { font-size: 13px; color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-grid { max-width: 1100px; margin: 0 auto; padding: 56px 40px 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-list .t { font-weight: 600; margin-bottom: 4px; }
.contact-list .d { color: var(--muted); font-size: 15px; line-height: 1.6; }
.contact-photo { height: 220px; border-radius: 12px; overflow: hidden; position: relative; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px;
  background: linear-gradient(0deg, rgba(20,14,10,0.75), rgba(20,14,10,0));
  color: #fff; font-size: 13px;
}
.contact-form-card { background: var(--card); border-radius: var(--radius-lg); padding: 32px; }
.contact-form-card h2 { font-size: 22px; margin: 0 0 20px; }

form.stack { display: flex; flex-direction: column; gap: 14px; }
.field {
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid oklch(0.8 0.02 60);
  font-size: 14px; font-family: inherit; width: 100%;
}
textarea.field { resize: vertical; }
.checkbox-row { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); }
.checkbox-row input { margin-top: 2px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Cart page ---------- */
.cart-section { max-width: 1000px; margin: 0 auto; padding: 56px 40px 100px; }
.cart-title { font-size: 34px; margin: 0 0 32px; }
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-row { display: flex; align-items: center; gap: 16px; background: var(--card); border-radius: 12px; padding: 16px; }
.cart-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg-alt); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 600; font-size: 15px; }
.cart-item-price { font-size: 13px; color: var(--muted); }
.qty-control { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; font-size: 15px; line-height: 1; }
.cart-line-total { font-weight: 600; min-width: 80px; text-align: right; }
.cart-remove { background: none; border: none; color: oklch(0.5 0.1 30); cursor: pointer; font-size: 13px; }
.cart-summary { background: var(--bg-alt); border-radius: var(--radius-md); padding: 28px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.summary-row.muted { color: var(--muted); margin-bottom: 16px; }
.summary-total { border-top: 1px solid oklch(0.8 0.02 60); padding-top: 16px; display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; margin-bottom: 20px; }
.empty-state, .success-state { text-align: center; padding: 60px 20px; background: var(--card); border-radius: var(--radius-lg); }
.empty-state .t, .success-state .t { font-family: var(--font-display); font-size: 24px; margin-bottom: 12px; }
.empty-state p, .success-state p { color: var(--muted); margin: 0 0 20px; }

/* ---------- About page ---------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1200px; margin: 0 auto; padding: 64px 40px; align-items: center; }
.about-hero h1 { font-size: 42px; line-height: 1.15; margin: 0 0 20px; }
.about-hero p { font-size: 16px; line-height: 1.75; color: var(--muted-2); margin: 0; }
.about-photo { height: 360px; border-radius: var(--radius-lg); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.values { max-width: 900px; margin: 0 auto; }
.values h2 { font-size: 30px; margin: 0 0 24px; text-align: center; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.values-grid .t { font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.values-grid p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }
.timeline { max-width: 1000px; margin: 0 auto; padding: 64px 40px; }
.timeline h2 { font-size: 30px; margin: 0 0 32px; text-align: center; }
.timeline-list { display: flex; flex-direction: column; gap: 28px; }
.timeline-row { display: flex; gap: 24px; }
.timeline-year { font-family: var(--font-display); font-size: 22px; color: var(--eyebrow); width: 80px; flex-shrink: 0; }
.timeline-text { color: var(--muted-2); font-size: 15px; line-height: 1.7; }

/* ---------- Legal / article pages ---------- */
.legal-article, .blog-article { max-width: 760px; margin: 0 auto; padding: 56px 40px 100px; }
.legal-article h1, .blog-article h1 { font-family: var(--font-display); font-size: 34px; margin: 0 0 8px; }
.legal-article .updated { color: var(--muted-3); font-size: 13px; margin: 0 0 8px; }
.legal-article h2 { font-family: var(--font-display); font-size: 22px; margin: 32px 0 12px; }
.legal-article p, .legal-article li { line-height: 1.75; font-size: 15px; color: var(--ink-soft); }
.legal-article table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.legal-article th, .legal-article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.legal-article th { color: var(--ink); }
.legal-help { margin-top: 32px; padding: 24px; background: var(--bg-alt); border-radius: var(--radius-md); }
.legal-help .t { font-weight: 600; margin-bottom: 8px; }
.legal-help p { margin: 0; }

.blog-article .kicker { font-size: 12px; color: var(--eyebrow); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.blog-article h1 { font-size: 36px; line-height: 1.2; margin: 0 0 24px; }
.blog-article .cover { height: 320px; border-radius: var(--radius-md); margin-bottom: 32px; overflow: hidden; }
.blog-article .cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-article p { line-height: 1.8; font-size: 16px; color: var(--ink-soft); margin: 0 0 20px; }
.blog-article h2 { font-family: var(--font-display); font-size: 26px; margin: 36px 0 14px; color: var(--ink); }
.blog-article li { line-height: 1.8; font-size: 16px; color: var(--ink-soft); margin-bottom: 8px; }
.blog-article ol, .blog-article ul { padding-left: 20px; }
.blog-article .cta { margin-top: 40px; padding: 24px; background: var(--bg-alt); border-radius: var(--radius-md); }
.blog-article .cta .t { font-weight: 600; margin-bottom: 10px; }
.blog-article .cta a { text-decoration: none; font-weight: 600; }

.breadcrumbs { max-width: 760px; margin: 24px auto 0; padding: 0 40px; font-size: 13px; color: var(--muted-3); }
.breadcrumbs a { color: var(--muted-3); }

/* ---------- Footer ---------- */
.site-footer { font-family: var(--font-body); background: var(--footer-bg); color: var(--footer-ink); }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 56px 40px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--brand-ink); margin-bottom: 10px; }
.footer-desc { font-size: 14px; line-height: 1.7; color: var(--footer-ink-soft); max-width: 280px; margin: 0; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--footer-line); }
.footer-heading { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--footer-heading); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--footer-link); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-contact { font-size: 14px; line-height: 1.8; color: var(--footer-link); margin: 0; }
.footer-bottom { border-top: 1px solid var(--footer-line); padding: 18px 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: 1200px; margin: 0 auto; font-size: 13px; color: oklch(0.65 0.02 60); }

/* ---------- Cookie bar ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; background: var(--footer-bg);
  color: oklch(0.92 0.015 75); padding: 18px 40px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 640px; }
.cookie-bar a { color: oklch(0.8 0.1 45); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { padding: 10px 18px; border-radius: 24px; border: 1px solid oklch(0.5 0.02 60); background: transparent; color: oklch(0.92 0.015 75); font-size: 13px; cursor: pointer; font-family: inherit; }
.cookie-btn.primary { border: none; background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero, .about-hero { grid-template-columns: 1fr; padding: 48px 24px; }
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid, .values-grid, .info-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; padding: 40px 24px 80px; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 24px; }
}

@media (max-width: 720px) {
  .site-header { padding: 14px 20px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start;
    padding: 16px 20px; gap: 14px; display: none;
  }
  .main-nav.is-open { display: flex; }
  .cat-grid, .product-grid, .blog-grid, .values-grid, .info-grid, .stats-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 40px 24px 24px; }
  .footer-bottom { padding: 16px 24px; }
  .hero h1 { font-size: 38px; }
  .cart-row { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .cat-grid, .product-grid, .stats-grid, .info-grid { grid-template-columns: 1fr; }
  .newsletter-form input[type="email"] { width: 100%; }
}
