:root {
  /* Yoco-inspired palette */
  --yoco-blue: #2b4eff;
  --yoco-blue-dark: #1d3ad6;
  --ink: #14141e;
  --ink-soft: #3a3a48;
  --muted: #6b6b7b;
  --paper: #ffffff;
  --surface: #f5f5f8;
  --line: #e7e7ee;
  --shadow: 0 10px 30px rgba(20, 20, 30, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-brick {
  font-size: 36px;
}

.site-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
}

.cart-toggle {
  background: var(--yoco-blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cart-toggle:hover {
  background: var(--yoco-blue-dark);
}

.cart-count {
  background: #fff;
  color: var(--yoco-blue);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 13px;
  font-weight: 700;
  margin-left: 6px;
}

.hero {
  text-align: center;
  padding: 64px 20px 32px;
  max-width: 720px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 44px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: var(--ink);
}

.hero p {
  margin: 0;
  font-size: 19px;
  color: var(--muted);
}

.catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
  padding: 24px clamp(16px, 5vw, 64px) 72px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(20, 20, 30, 0.12);
}

.card-art {
  font-size: 72px;
  text-align: center;
  padding: 32px 0;
  background: linear-gradient(135deg, #eef1ff 0%, #f6f8ff 100%);
}

.card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.theme-tag {
  align-self: flex-start;
  background: #eef1ff;
  color: var(--yoco-blue);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-desc {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}

.card-meta {
  font-size: 13px;
  color: #9a9aa8;
  margin-bottom: 14px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.add-btn {
  background: var(--yoco-blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.add-btn:hover {
  background: var(--yoco-blue-dark);
}

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

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(380px, 90vw);
  background: #fff;
  box-shadow: -8px 0 30px rgba(20, 20, 30, 0.18);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 30;
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}

.cart-empty {
  color: #9a9aa8;
  text-align: center;
  margin-top: 40px;
}

.cart-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--surface);
}

.cart-line-emoji {
  font-size: 28px;
}

.cart-line-info {
  flex: 1;
}

.cart-line-name {
  font-size: 14px;
  font-weight: 600;
}

.cart-line-price {
  font-size: 13px;
  color: var(--muted);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-control button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.cart-footer {
  border-top: 1px solid var(--line);
  padding: 20px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.checkout-btn {
  width: 100%;
  background: var(--yoco-blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.checkout-btn:hover:not(:disabled) {
  background: var(--yoco-blue-dark);
}

.checkout-btn:disabled {
  background: var(--line);
  color: #9a9aa8;
  cursor: not-allowed;
}

.checkout-msg {
  font-size: 14px;
  text-align: center;
  margin: 12px 0 0;
  color: var(--yoco-blue);
  font-weight: 500;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 30, 0.4);
  z-index: 20;
}

.site-footer {
  text-align: center;
  padding: 28px 20px;
  font-size: 12px;
  color: #9a9aa8;
  background: var(--ink);
}
