@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #e9f7ec;
  --bg-soft: #f4fbf5;
  --surface: #ffffff;
  --ink: #10231a;
  --muted: #52705f;
  --accent: #1f8a4c;
  --accent-dark: #14663a;
  --accent-soft: #c9efd3;
  --border: #cfe8d7;
  --shadow: 0 12px 30px rgba(16, 35, 26, 0.08);
  --shadow-lift: 0 20px 45px rgba(16, 35, 26, 0.16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 85% -10%, #d6f3de 0%, transparent 60%),
    radial-gradient(700px 400px at -10% 20%, #d9f2ff 0%, transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo {
  font-family: "Black Ops One", "Inter", system-ui;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

a {
  color: var(--accent-dark);
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 251, 245, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.25rem;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(144deg, #34b96a, #1f8a4c 60%, #14663a);
  box-shadow: 0 6px 14px rgba(31, 138, 76, 0.35);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(144deg, #34b96a, #1f8a4c 55%, #14663a);
  box-shadow: 0 10px 22px rgba(31, 138, 76, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 138, 76, 0.42);
}

.btn-ghost {
  background: var(--surface);
  color: var(--accent-dark);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn:active {
  transform: scale(0.97);
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px 16px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.hero h1 .accent {
  color: var(--accent);
}

.lede {
  max-width: 620px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Sections ---------- */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

/* ---------- Note banner ---------- */

.note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #d9f5e2, #eefbf1);
  box-shadow: var(--shadow);
}

.note-icon {
  font-size: 1.7rem;
}

.note h3 {
  margin: 0;
  font-size: 1.05rem;
}

.note p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.meme-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.meme-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  padding: 14px;
  background: linear-gradient(135deg, #f4fbf5, #eaf7ed);
  transition: transform 0.35s ease;
}

.meme-card figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.meme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.meme-card:hover img {
  transform: scale(1.04);
}

/* ---------- Shop ---------- */

.shop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.product-media {
  padding: 20px;
  background: linear-gradient(135deg, #f4fbf5, #eaf7ed);
}

.product-media img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  margin: 0 auto;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.product-tag {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-body h3 {
  margin: 0;
  font-size: 1.15rem;
}

.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

.price {
  font-family: "Black Ops One", "Inter", system-ui;
  font-size: 1.35rem;
  color: var(--accent-dark);
}

/* ---------- Fun zone ---------- */

.fun-card {
  padding: 44px 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #eaf9ef);
  box-shadow: var(--shadow);
  text-align: center;
}

.fun-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.fun-card > p {
  max-width: 540px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.big-btn {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.odkaz {
  display: inline-block;
  margin-top: 28px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.odkaz:hover {
  color: var(--accent);
}

/* ---------- Product detail page ---------- */

.back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.back:hover {
  color: var(--accent-dark);
}

.checkout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.checkout-media {
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f4fbf5, #eaf7ed);
}

.checkout-media img {
  width: auto;
  max-height: 380px;
}

.checkout-info h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.checkout-info .price {
  display: block;
  margin: 10px 0;
  font-size: 2rem;
}

.specs {
  display: grid;
  gap: 8px;
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.specs li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--accent);
  font-weight: 700;
}

.buy-message {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Chat ---------- */

.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.chat-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c3cfc7;
}

.chat-status.online {
  color: var(--accent-dark);
}

.chat-status.online::before {
  background: #2ecc71;
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.18);
}

.chat {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 380px;
  overflow-y: auto;
  padding: 4px 8px 16px 4px;
  overscroll-behavior: contain;
}

.chat-empty {
  margin: auto;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.chat-message {
  max-width: 78%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-soft);
}

.chat-message.own {
  align-self: flex-end;
  border-color: #b6e3c4;
  background: linear-gradient(135deg, #d9f5e2, #c9efd3);
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.chat-author {
  color: var(--accent-dark);
}

.chat-message p {
  margin: 0;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.chat-form input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.chat-form input[name="text"] {
  flex: 3 1 260px;
}

.chat-form input:focus {
  background: #fff;
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.chat-form .btn:disabled {
  cursor: progress;
  opacity: 0.65;
  transform: none;
}

.chat-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

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

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(8, 20, 14, 0.86);
  backdrop-filter: blur(6px);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(100%, 1000px);
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 18px;
  }

  .hero {
    padding: 44px 18px 8px;
  }

  .section {
    padding: 36px 18px;
  }

  .checkout {
    grid-template-columns: 1fr;
  }

  .meme-card img {
    height: 220px;
  }

  .chat-messages {
    height: 320px;
  }

  .chat-message {
    max-width: 90%;
  }
}
