/* Бочки55 — дизайн-токены и доработки */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

@layer base {
  :root {
    --color-wood: #5c4a3a;
    --color-wood-dark: #2d2420;
    --color-wood-light: #8b7355;
    --color-accent: #2d6a4f;
    --color-accent-hover: #40916c;
    --color-cream: #faf7f2;
    --color-cream-dark: #f0ebe3;
    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
  }
  body {
    font-family: var(--font-body);
    background: var(--color-cream);
  }
}

/* Плавный скролл */
html { scroll-behavior: smooth; }

/* Alpine x-cloak */
[x-cloak] { display: none !important; }

/* Мобильная версия */
@media (max-width: 767px) {
  .touch-manipulation { touch-action: manipulation; }
}
@supports (padding: max(0px)) {
  .safe-top { padding-top: max(0.75rem, env(safe-area-inset-top)); }
  .safe-bottom { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
}

/* Кастомные утилиты */
@layer utilities {
  .text-balance { text-wrap: balance; }
}

/* Сетка продуктов — равная высота карточек */
.product-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card-inner .flex-grow {
  flex-grow: 1;
}
