:root {
  --bg: #f8f6f1;
  --bg2: #ffffff;
  --ink: #211710;
  --rust: #e8582c;
  --rust-dark: #c23f18;
  --teal: #1f9d8a;
  --mustard: #f0ab1f;
  --plum: #7a3f8f;
  --maroon: #7a2318;
  --muted: #7d7061;
  --line: rgba(33, 23, 16, 0.14);
  --line-strong: rgba(33, 23, 16, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
}

.display {
  font-family: "Luckiest Guy", cursive;
  font-weight: 400;
  color: var(--bg2);
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow:
    3px 3px 0 var(--mustard),
    6px 6px 0 var(--rust),
    9px 9px 0 var(--maroon);
}

a {
  color: inherit;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rust-dark);
}

.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--rust);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

header a {
  text-decoration: none;
}

.logo {
  font-family: "Luckiest Guy", cursive;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--bg2);
  -webkit-text-stroke: 1px var(--ink);
  text-shadow: 2px 2px 0 var(--mustard), 4px 4px 0 var(--rust);
}

nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

nav .nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav .nav-links a {
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
  opacity: 0.7;
  transition: opacity 0.15s, border-color 0.15s;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  opacity: 1;
  border-color: var(--rust);
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 0.5rem 1rem;
}

#cart-count {
  background: var(--rust);
  color: var(--bg2);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.72rem;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: end;
  padding: 5rem 2.5rem 6rem;
  margin: 0 -2.5rem;
  background: var(--bg2);
  overflow: visible;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: -4rem;
  left: -6rem;
  width: 34rem;
  height: 34rem;
  background: var(--rust);
  opacity: 0.1;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  z-index: -1;
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  margin: 1.2rem 0 0;
}

.hero h1 em {
  font-style: normal;
}

.drip-divider {
  display: block;
  width: calc(100% + 5rem);
  height: 3.5rem;
  margin: -1px -2.5rem 0;
}

.drip-divider path {
  fill: var(--bg2);
}

.hero-side {
  border-left: 1px solid var(--line);
  padding-left: 2rem;
}

.hero-side p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-top: 1rem;
}

.page-header p {
  color: var(--muted);
  max-width: 55ch;
  margin-top: 1rem;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  background: var(--bg2);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:nth-child(4n+1) { box-shadow: 5px 5px 0 var(--rust); }
.card:nth-child(4n+2) { box-shadow: 5px 5px 0 var(--teal); }
.card:nth-child(4n+3) { box-shadow: 5px 5px 0 var(--mustard); }
.card:nth-child(4n+4) { box-shadow: 5px 5px 0 var(--plum); }

.card:hover {
  transform: translate(-3px, -3px);
}

.card:nth-child(4n+1):hover { box-shadow: 8px 8px 0 var(--rust); }
.card:nth-child(4n+2):hover { box-shadow: 8px 8px 0 var(--teal); }
.card:nth-child(4n+3):hover { box-shadow: 8px 8px 0 var(--mustard); }
.card:nth-child(4n+4):hover { box-shadow: 8px 8px 0 var(--plum); }

.card-icon {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--rust);
}

.card-zima .card-icon {
  color: var(--teal);
}

.card .season {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rust-dark);
  font-weight: 700;
}

.card h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.card .moment {
  color: var(--muted);
  font-size: 0.92rem;
  flex-grow: 1;
}

.card .price {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

button, .btn {
  background: var(--rust);
  color: var(--bg2);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-family: "Archivo", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

button:hover, .btn:hover {
  background: var(--mustard);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

button:active, .btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-secondary {
  background: var(--bg2);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--teal);
  color: var(--bg2);
}

.content-block {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.content-block .index-num {
  font-family: "Luckiest Guy", cursive;
  font-weight: 400;
  font-size: 3.6rem;
  color: var(--bg);
  -webkit-text-stroke: 1.5px var(--ink);
  line-height: 1;
}

.content-block:nth-of-type(3n+1) .index-num { color: var(--mustard); }
.content-block:nth-of-type(3n+2) .index-num { color: var(--teal); }
.content-block:nth-of-type(3n+3) .index-num { color: var(--rust); }

.content-block h2 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.content-block p {
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.7;
  font-size: 1.02rem;
}

.article {
  max-width: 68ch;
  padding: 3rem 0;
}

.article h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1.5rem;
}

.article h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  color: var(--rust-dark);
}

.article p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.article a {
  color: var(--rust-dark);
  text-decoration: underline;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.cart-table td, .cart-table th {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.cart-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.cart-table input[type="number"] {
  width: 60px;
  padding: 0.4rem;
  border: 1px solid var(--line-strong);
}

.remove-link {
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}

.total-row {
  font-weight: 700;
  font-size: 1.3rem;
  font-family: "Fredoka", sans-serif;
}

.shipping-options {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.shipping-options label {
  border: 1px solid var(--line-strong);
  padding: 1rem 1.2rem;
  cursor: pointer;
  flex: 1;
  transition: border-color 0.15s;
}

.shipping-options label:has(input:checked) {
  border-color: var(--rust);
}

.shipping-options input {
  margin-right: 0.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.form-row input, .form-row select, input[type="email"], input[type="text"] {
  flex: 1;
  padding: 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg2);
}

#zasilkovna-point {
  margin-top: 0.5rem;
  padding: 0.9rem;
  background: var(--bg2);
  border: 1px solid var(--line);
  display: none;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-side {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
  }
  .content-block {
    grid-template-columns: 1fr;
  }
}
