:root {
  --paper: #f3eee4;
  --paper-deep: #ebe4d6;
  --white: #fffdf8;
  --ink: #1c1917;
  --ink-soft: #4a453f;
  --red: #c23a32;
  --red-deep: #9e2b25;
  --navy: #1e3a5f;
  --blue: #2a5580;
  --forest: #234c3a;
  --sage: #6f8f6a;
  --gold: #c4a35a;
  --honey: #d9a441;
  --wood: #8b5e3c;
  --shadow: 0 18px 50px rgba(28, 25, 23, 0.1);
  --radius: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

::selection {
  background: #f0c9c4;
  color: var(--ink);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.14;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* —— nav —— */
.site-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
}

.navbar {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.navbar-brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
}

.navbar-brand span {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  color: var(--red);
  margin-left: 0.05em;
}

.nav-link {
  font-weight: 500;
  color: var(--ink-soft) !important;
  padding-inline: 0.85rem !important;
}

.nav-link:hover {
  color: var(--ink) !important;
}

.btn-sell {
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  font-weight: 600;
  font-size: 0.92rem;
  border: 0;
}

.btn-sell:hover {
  background: var(--red);
  color: var(--white);
}

.navbar-toggler {
  border: 0;
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.6rem;
    padding: 0.85rem 1rem 1rem;
    background: rgba(255, 253, 248, 0.96);
    border-radius: 1.1rem;
    box-shadow: var(--shadow);
  }
}

/* —— hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 6.5rem 1.25rem 5.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 50% at 50% 46%, #fffaf1 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 15% 20%, rgba(194, 58, 50, 0.07), transparent 70%),
    radial-gradient(ellipse 35% 40% at 88% 75%, rgba(35, 76, 58, 0.08), transparent 70%),
    var(--paper);
}

.slogans {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slogan {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--rot));
  line-height: 0.9;
  user-select: none;
  white-space: nowrap;
  opacity: 0.78;
  will-change: transform;
  animation: sloganFloat 7s ease-in-out infinite;
}

.slogan:nth-child(2n) { animation-duration: 8.4s; animation-delay: -1.2s; }
.slogan:nth-child(3n) { animation-duration: 6.2s; animation-delay: -2.4s; }
.slogan:nth-child(4n) { animation-duration: 9s; animation-delay: -0.6s; }

@keyframes sloganFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.slogan > span,
.slogan {
  display: inline-block;
}

.slogan::after {
  content: none;
}

.s-bebas { font-family: "Bebas Neue", sans-serif; letter-spacing: 0.04em; }
.s-cormorant { font-family: "Cormorant Garamond", serif; font-weight: 700; font-style: italic; }
.s-marker { font-family: "Permanent Marker", cursive; }
.s-unbounded { font-family: "Unbounded", sans-serif; font-weight: 700; letter-spacing: -0.03em; }
.s-fraunces { font-family: "Fraunces", serif; font-weight: 700; }
.s-syne { font-family: "Syne", sans-serif; font-weight: 800; letter-spacing: -0.03em; }
.s-outfit { font-family: "Outfit", sans-serif; font-weight: 700; letter-spacing: 0.08em; }
.s-archivo { font-family: "Archivo Black", sans-serif; }
.s-caveat { font-family: "Caveat", cursive; font-weight: 700; }

.s-xl { font-size: clamp(2.4rem, 6vw, 5.4rem); }
.s-lg { font-size: clamp(1.6rem, 3.6vw, 3.1rem); }
.s-md { font-size: clamp(1.15rem, 2.4vw, 2rem); }
.s-sm { font-size: clamp(0.95rem, 1.8vw, 1.45rem); }
.s-xs { font-size: clamp(0.72rem, 1.35vw, 1.05rem); letter-spacing: 0.12em; }

.c-red { color: var(--red); }
.c-navy { color: var(--navy); }
.c-gold { color: var(--gold); }
.c-forest { color: var(--forest); }
.c-ink { color: var(--ink); opacity: 0.55; }
.c-sage { color: var(--sage); }
.c-blue { color: var(--blue); }

.italic { font-style: italic; }

.stamp {
  padding: 0.2em 0.45em;
  border: 3px solid currentColor;
  border-radius: 6px;
  box-shadow: 3px 3px 0 currentColor;
  opacity: 0.9;
}

.strike-word {
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 0.12em;
}

.hero-core {
  position: relative;
  z-index: 5;
  width: min(820px, 100%);
  text-align: center;
  padding: 1.8rem 1rem 2.2rem;
  background: radial-gradient(ellipse at center, rgba(243, 238, 228, 0.94) 0%, rgba(243, 238, 228, 0.58) 48%, transparent 74%);
}

.logo-hero {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.logo-hezky {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: 144;
  color: var(--ink);
}

.logo-cesky {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: 144;
  color: var(--red);
}

.logo-shop {
  display: inline-flex;
  margin-left: 0.06em;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 0.55em;
  vertical-align: 0.28em;
  letter-spacing: -0.04em;
}

.logo-shop span {
  display: inline-block;
  background: linear-gradient(120deg, var(--red), var(--gold), var(--forest), var(--blue), var(--red));
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    shopWave 2.4s ease-in-out infinite,
    shopShift 5s linear infinite;
}

.logo-shop span:nth-child(1) { animation-delay: 0s, 0s; }
.logo-shop span:nth-child(2) { animation-delay: 0.12s, 0s; }
.logo-shop span:nth-child(3) { animation-delay: 0.24s, 0s; }
.logo-shop span:nth-child(4) { animation-delay: 0.36s, 0s; }
.logo-shop span:nth-child(5) { animation-delay: 0.48s, 0s; }

@keyframes shopWave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40% { transform: translateY(-7px) rotate(-6deg); }
  70% { transform: translateY(2px) rotate(4deg); }
}

@keyframes shopShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-lead {
  margin: 0.85rem 0 1.75rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
}

.search-form {
  width: 100%;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--white);
  border-radius: 1.7rem;
  padding: 0.55rem 0.55rem 0.55rem 1.25rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 60px rgba(28, 25, 23, 0.12),
    0 0 0 1px rgba(28, 25, 23, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.search-box.is-focus {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 28px 70px rgba(28, 25, 23, 0.16),
    0 0 0 2px var(--ink);
}

.search-icon {
  font-size: 1.25rem;
  color: var(--ink-soft);
  flex: none;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 0;
  text-align: left;
  min-height: 3.1rem;
  display: flex;
  align-items: center;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 450;
  color: var(--ink);
  padding: 0.35rem 0;
  caret-color: var(--red);
}

.typewriter {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: #8a8378;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.typewriter.is-hidden {
  opacity: 0;
}

.typewriter::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 3px;
  background: var(--red);
  vertical-align: -0.18em;
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.search-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 1.25rem;
  padding: 0.85rem 1.25rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-go:hover {
  background: var(--red);
  color: var(--white);
}

.search-go:active {
  transform: scale(0.97);
}

.scroll-hint {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.scroll-hint i {
  animation: bob 1.6s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* —— showcase —— */
.showcase {
  position: relative;
  z-index: 4;
  background: var(--paper-deep);
  padding: 4.5rem 0 5.5rem;
  border-top: 1px solid rgba(28, 25, 23, 0.06);
}

.showcase-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
}

.showcase-head h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
}

.showcase-sub {
  color: var(--ink-soft);
  margin: 0;
}

.card-product,
.card-brand {
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-product:hover,
.card-brand:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd6c8;
}

.card-product.featured .card-media {
  aspect-ratio: 16 / 10;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-product:hover .card-media img {
  transform: scale(1.06);
}

.badge-cz {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--white);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.card-body-custom {
  padding: 1.05rem 1.15rem 1.2rem;
}

.card-brand-name {
  margin: 0 0 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}

.card-body-custom h3,
.card-brand h3 {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

.card-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.card-price {
  margin: 0.7rem 0 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.card-brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 1.15rem 1.15rem 1.2rem;
  color: var(--white);
}

.card-brand h3 {
  color: inherit;
  font-size: 1.15rem;
}

.card-brand p:not(.brand-mono) {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.88;
}

.brand-mono {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  margin: 0 auto 0.4rem 0;
  letter-spacing: -0.04em;
  opacity: 0.95;
}

.brand-place {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.75;
}

.card-brand.compact {
  min-height: 200px;
}

.tone-rose { background: linear-gradient(160deg, #c45c56, #9e2b25); }
.tone-honey { background: linear-gradient(160deg, #d9a441, #a56b1a); }
.tone-sage { background: linear-gradient(160deg, #5f8a62, #2f5a3c); }
.tone-blue { background: linear-gradient(160deg, #3c6a96, #1e3a5f); }
.tone-wood { background: linear-gradient(160deg, #a36d45, #6b3e24); }
.tone-ink { background: linear-gradient(160deg, #3a3532, #1c1917); }
.tone-leaf { background: linear-gradient(160deg, #4f7a48, #234c3a); }

[data-card].is-dim {
  opacity: 0.22;
  filter: grayscale(0.4);
  pointer-events: none;
}

.empty-state {
  text-align: center;
  margin-top: 2rem;
  color: var(--ink-soft);
}

/* —— footer —— */
.site-foot {
  background: var(--ink);
  color: #efe8dc;
  padding: 2.2rem 0;
}

.foot-logo {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  margin: 0 0 0.2rem;
}

.foot-logo span {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  color: #e8b4ae;
}

.foot-note {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.7;
}

/* —— motion —— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-shop span,
  .scroll-hint i,
  .typewriter::after,
  .slogan,
  .card-product,
  .card-brand,
  .card-media img {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 991.98px) {
  .slogan:nth-child(n + 10) {
    display: none;
  }

  .s-xl { font-size: 2.1rem; }
  .search-go span,
  .search-go {
    padding-inline: 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding-top: 5.5rem;
  }

  .slogan:nth-child(n + 7) {
    display: none;
  }

  .search-box {
    flex-wrap: wrap;
    border-radius: 1.35rem;
    padding: 0.7rem;
    gap: 0.55rem;
  }

  .search-field {
    flex: 1 1 auto;
    min-height: 2.4rem;
  }

  .search-go {
    flex: 1 0 100%;
    width: 100%;
    justify-content: center;
  }

  .logo-shop {
    display: inline-flex;
    margin-left: 0;
  }
}
