:root {
  --bg: #FFF9F2;
  --bg-soft: #FFF1E4;
  --primary: #E8734A;
  --primary-soft: #F4A26B;
  --secondary: #7BA05B;
  --text: #3D2B1F;
  --text-soft: #7A6A5D;
  --card: #FFFFFF;
  --shadow: 0 8px 24px rgba(61, 43, 31, 0.08);
  --shadow-hover: 0 16px 36px rgba(61, 43, 31, 0.16);
  --radius: 20px;
  --header-h: 100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .logo__text { font-family: 'Comfortaa', cursive; }

.container {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 249, 242, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 115, 74, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.header.scrolled { background: rgba(255, 249, 242, 0.95); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0; /* щоб не стискалися */
}

/* Навігація на десктопі */
.nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
  margin-right: 20px;
}

/* Кошик */
.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 16px rgba(232, 115, 74, 0.35);
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0; /* Відступ між картинкою та текстом */
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1.4rem;
  transition: transform 0.2s;
}

.logo__img {
  height: 105px; /* Висота логотипу. Можеш підкоригувати (наприклад, 60px) */
  width: auto;  /* Ширина підлаштується автоматично, щоб не розтягувати */
  border-radius: 0%; /* Робить лого круглим (бо воно квадратне). Якщо хочеш квадратне — прибери це */
  object-fit: contain;
  /* Додаємо легку тінь, щоб виділялося на фоні */
  display: block;
}


.logo:hover { transform: scale(1.03); }
.logo__icon { display: none; }

.nav { display: flex; gap: 8px; }

.nav__link {
  padding: 10px 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
  position: relative;
}
.nav__link:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.cart-btn {
  position: relative;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 16px rgba(232, 115, 74, 0.35);
}
.cart-btn:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(232, 115, 74, 0.5); }
.cart-btn:active { transform: scale(0.95); }

.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
  transition: transform 0.25s;
}
.cart-badge.bump { animation: bump 0.4s ease; }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 60px 0 140px;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF1E4 0%, #FFF9F2 60%, #FFE9DC 100%);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 162, 107, 0.25), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(123, 160, 91, 0.18), transparent 45%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero__content { animation: fadeUp 0.9s ease; }
.hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero__title span {
  background: linear-gradient(90deg, var(--primary), var(--primary-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 0;
  max-width: 520px;
}

.hero__illustration {
  position: relative;
  height: 320px;
}
.float-emoji {
  position: absolute;
  font-size: 5rem;
  filter: drop-shadow(0 10px 20px rgba(232,115,74,0.3));
  animation: floaty 6s ease-in-out infinite;
}
.float-emoji--1 { top: 10%; left: 20%; animation-delay: 0s; }
.float-emoji--2 { top: 45%; left: 60%; font-size: 4rem; animation-delay: 1.2s; }
.float-emoji--3 { bottom: 10%; left: 30%; font-size: 3.5rem; animation-delay: 2.4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-22px) rotate(4deg); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 80px; display: block; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  box-shadow: 0 8px 22px rgba(232, 115, 74, 0.35);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(232, 115, 74, 0.5); }
.btn--primary:active { transform: translateY(0) scale(0.97); }
.btn--full { width: 100%; }

/* ===== CATALOG ===== */
.catalog { padding: 60px 0 80px; }
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 45px;
}
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
}
.card.revealed { opacity: 1; transform: translateY(0); }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

.card__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-soft);
}
.card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card__img { transform: scale(1.08); }

.card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__title {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.card__desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 14px;
  flex: 1;
}
.card__price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}
.card__price small { font-size: 0.8rem; color: var(--text-soft); font-weight: 600; }

.card__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.qty-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: grid; place-items: center;
}
.qty-btn:hover { background: var(--primary); color: #fff; transform: scale(1.1); }
.qty-btn:active { transform: scale(0.9); }
.qty-value {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.card__order {
  margin-top: auto;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: var(--secondary);
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.card__order:hover { background: #6a8f4d; transform: translateY(-2px); }
.card__order:active { transform: scale(0.97); }

/* ===== INFO ===== */
.info { padding: 40px 0 80px; }
.info__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.info__card {
  background: var(--card);
  padding: 30px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.info__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.info__icon { font-size: 2.4rem; margin-bottom: 12px; }
.info__card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.info__card p { color: var(--text-soft); font-size: 0.95rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: #fff;
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(61, 43, 31, 0.4);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 200;
}
.cart-overlay.active { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--bg);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(61,43,31,0.08);
}
.cart-drawer__header h3 { font-size: 1.3rem; }
.cart-drawer__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}
.cart-drawer__close:hover { background: var(--primary-soft); transform: rotate(90deg); }

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
}
.cart-empty { text-align: center; color: var(--text-soft); margin-top: 40px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(61,43,31,0.06);
  align-items: center;
}
.cart-item__img {
  width: 56px; height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-soft);
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 700; font-size: 0.95rem; }
.cart-item__price { font-size: 0.85rem; color: var(--text-soft); }
.cart-item__qty { display: flex; align-items: center; gap: 8px; }
.cart-item__qty button {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s;
}
.cart-item__qty button:hover { background: var(--primary); color: #fff; }
.cart-item__qty span { min-width: 20px; text-align: center; font-weight: 700; }

.cart-drawer__footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(61,43,31,0.08);
  background: var(--bg-soft);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.cart-total #cartTotal { color: var(--primary); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 300;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================
   RESPONSIVE — адаптація під мобільні та планшети
   ============================================ */

/* === Планшети та малі ноутбуки (≤ 1024px) === */
@media (max-width: 1024px) {
  .catalog__grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
  .hero__illustration { height: 260px; }
  .float-emoji { font-size: 4rem; }
}
@media (max-width: 860px) {
  /* Навігація */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 249, 242, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 20px;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    z-index: 99;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    margin: 0;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav__link {
    text-align: center;
    padding: 16px;
    border-color: rgba(232,115,74,0.15);
    font-size: 1.05rem;
  }


  .burger { display: flex; }

  /* Шапка: лого зліва, кошик + бургер справа */
  .header__inner {
    justify-content: space-between;
  }
  .header__actions {
    
    margin-left: 0;
  }
  .cart-btn {
    width: 44px;
    height: 44px;
  }

  /* Hero */
  .hero__inner { 
    grid-template-columns: 1fr; 
    text-align: center; 
    padding-top: 20px; 
  }
  .hero__subtitle { margin-inline: auto; }
  
  /* ХОВАЄМО ілюстрацію на мобільному */
  .hero__illustration { 
    display: none;
  }
  
  .hero { padding: 40px 0 100px; }
  .hero__title { font-size: clamp(1.8rem, 6vw, 2.8rem); }

  /* Каталог — 2 колонки */
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Фільтри категорій */
  .categories {
    gap: 8px;
    margin-bottom: 24px;
  }
  .cat-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  /* Кошик */
  .cart-drawer {
    width: min(420px, 100%);
  }

  /* Модалка */
  .order-modal__content {
    padding: 24px;
  }
}

/* Прибираємо ефекти шапки на планшетах і мобільних */
@media (max-width: 860px) {
  .header {
    background: #FFF9F2; /* суцільний колір замість напівпрозорого */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: 1px solid rgba(232, 115, 74, 0.1);
  }
  .header.scrolled {
    background: #FFF9F2;
    box-shadow: none;
  }
}

/* === Мобільні (≤ 600px) === */
@media (max-width: 600px) {
  /* Hero */
  .hero { padding: 30px 0 80px; }
  .hero__title { font-size: 1.9rem; }
  .hero__subtitle { font-size: 1rem; }
  .btn { padding: 14px 24px; font-size: 1rem; }
  .float-emoji { font-size: 3rem; }
  .float-emoji--2 { font-size: 2.5rem; }
  .hero__illustration { height: 140px; }

  /* Каталог — 1 колонка */
  .catalog__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card__img-wrap { aspect-ratio: 16/10; }

  /* Фільтри — горизонтальний скрол, щоб не було "каші" */
  .categories {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 12px 4px;
    margin: 0 -14px 20px -14px;
    padding-inline: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .categories::-webkit-scrollbar { display: none; }
  .cat-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  /* Картки */
  .card__body { padding: 16px 18px 20px; }
  .card__title { font-size: 1.1rem; }
  .card__desc { font-size: 0.9rem; }
  .card__price { font-size: 1.2rem; margin-bottom: 14px; }
  .card__order {
    padding: 14px !important; /* більше місця для пальця */
    font-size: 1rem !important;
  }

  /* Інфо-картки */
  .info__grid { gap: 16px; }
  .info__card { padding: 24px 20px; }

  /* Кошик */
  .cart-drawer { width: 100%; }
  .cart-drawer__header { padding: 18px 20px; }
  .cart-drawer__body { padding: 16px 20px; }
  .cart-drawer__footer { padding: 18px 20px; }
  .cart-item__img { width: 50px; height: 50px; }
  .cart-item__qty button {
    width: 36px; height: 36px; /* збільшено для пальця */
    font-size: 1.1rem;
  }
  .cart-drawer__close {
    width: 44px; height: 44px; /* більше для пальця */
  }

  /* Модалка замовлення — на весь екран зі скролом */
  .order-modal__content {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    padding: 20px;
    max-height: 100vh;
    max-height: 100dvh;
  }
  .order-modal__actions { flex-direction: column; }
  .order-modal__actions .btn { width: 100%; }

  /* Header */
  .logo__text { font-size: 1.2rem; }
  .cart-btn { width: 44px; height: 44px; }

  /* Футер */
  .footer { padding: 20px 0; font-size: 0.85rem; }
  .footer__inner { flex-direction: column; gap: 10px; }
}

/* === Дуже маленькі екрани (≤ 380px) === */
@media (max-width: 380px) {
  .container { width: calc(100% - 24px); }
  .logo__text { font-size: 1.05rem; }
  .card__title { font-size: 1rem; }
  .cat-btn { padding: 8px 14px; font-size: 0.85rem; }
  .hero__title { font-size: 1.6rem; }
}

/* === Ландшафтна орієнтація на телефоні === */
@media (max-width: 860px) and (orientation: landscape) and (max-height: 500px) {
  .order-modal__content {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    padding: 16px;
  }
}

/* === Підтримка "safe area" (iPhone з "чубчиком") === */
@supports (padding: max(0px)) {
  .header__inner {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  .cart-drawer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* === Збільшені тач-зони для всіх інтерактивних елементів на мобільному === */
@media (hover: none) and (pointer: coarse) {
  button, a, .cat-btn {
    -webkit-tap-highlight-color: transparent;
  }
  .qty-btn { min-width: 40px; min-height: 40px; }
  .cart-item__qty button { min-width: 36px; min-height: 36px; }
}

#adminLoginBtn {
  background: #E8734A;
  color: #fff;
}
#adminLoginBtn:hover {
  background: #d15f3b;
}
.btn-secondary {
  background: #eee;
  color: #3D2B1F;
}
.btn-secondary:hover {
  background: #ddd;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__admin {
  color: #fff;
  opacity: 0.3;
  text-decoration: none;
  font-size: 1.2rem;
  transition: opacity 0.2s;
}
.footer__admin:hover {
  opacity: 1;
}
/* ===== Модальне вікно замовлення ===== */
.order-modal {
  position: fixed; inset: 0;
  background: rgba(61, 43, 31, 0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.order-modal.active { opacity: 1; pointer-events: auto; }
.order-modal__content {
  background: #fff; padding: 30px; border-radius: 20px;
  width: min(450px, 90%); box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: translateY(20px); transition: transform 0.3s;
}
.order-modal.active .order-modal__content { transform: translateY(0); }
.order-modal__content h3 { font-family: 'Comfortaa', cursive; margin-bottom: 20px; text-align: center; }
.order-modal__content label { display: block; font-weight: 600; font-size: 0.9rem; margin-top: 12px; margin-bottom: 4px; }
.order-modal__content input, .order-modal__content textarea {
  width: 100%; padding: 10px; border: 1px solid #e0d0c0; border-radius: 8px;
  font-family: inherit; font-size: 1rem; box-sizing: border-box;
}
.order-modal__content input:focus, .order-modal__content textarea:focus {
  outline: none; border-color: #E8734A;
}
.order-modal__actions { display: flex; gap: 10px; margin-top: 20px; }
.order-modal__actions .btn { flex: 1; }
/* ===== Фільтри категорій ===== */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}
.cat-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid #e0d0c0;
  background: #fff;
  color: #3D2B1F;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 0.95rem;
}
.cat-btn:hover {
  border-color: #E8734A;
  color: #E8734A;
}
.cat-btn.active {
  background: #E8734A;
  border-color: #E8734A;
  color: #fff;
}

/* ===== Модальне вікно замовлення ===== */
.order-modal {
  position: fixed; inset: 0;
  background: rgba(61, 43, 31, 0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.order-modal.active { opacity: 1; pointer-events: auto; }
.order-modal__content {
  background: #fff; padding: 30px; border-radius: 20px;
  width: min(450px, 90%); box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: translateY(20px); transition: transform 0.3s;
  max-height: 90vh; overflow-y: auto;
}
.order-modal.active .order-modal__content { transform: translateY(0); }
.order-modal__content h3 { font-family: 'Comfortaa', cursive; margin-bottom: 20px; text-align: center; }
.order-modal__content label { display: block; font-weight: 600; font-size: 0.9rem; margin-top: 12px; margin-bottom: 4px; }
.order-modal__content input, .order-modal__content textarea {
  width: 100%; padding: 10px; border: 1px solid #e0d0c0; border-radius: 8px;
  font-family: inherit; font-size: 1rem; box-sizing: border-box;
}
.order-modal__content input:focus, .order-modal__content textarea:focus {
  outline: none; border-color: #E8734A;
}
.order-modal__actions { display: flex; gap: 10px; margin-top: 20px; }
.order-modal__actions .btn { flex: 1; }
.contact-link {
  color: #E8734A;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s, text-decoration 0.2s;
  border-bottom: 1px dashed rgba(232, 115, 74, 0.4);
}

.contact-link:hover {
  color: #d15f3b;
  border-bottom-color: #d15f3b;
}

.contact-link:active {
  opacity: 0.7;
}
/* ===== Модалка підтвердження ===== */
.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(61, 43, 31, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.confirm-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.confirm-modal__content {
  background: #fff;
  padding: 28px 24px 20px;
  border-radius: 20px;
  width: min(340px, 90%);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.confirm-modal.active .confirm-modal__content {
  transform: translateY(0);
}

.confirm-modal__content p {
  font-size: 1.05rem;
  font-weight: 600;
  color: #3D2B1F;
  margin-bottom: 22px;
  line-height: 1.4;
}

.confirm-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.confirm-modal__actions .btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.95rem;
}

.btn--secondary {
  background: #eee;
  color: #3D2B1F;
}

.btn--secondary:hover {
  background: #ddd;
}

/* Статуси на картці */
.card__status {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.card__status.in-stock {
  background: #dcfce7;
  color: #166534;
}
.card__status.pre-order {
  background: #fff7e6;
  color: #9a6b00;
}

/* Бейдж акції */
.promo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #FF5A5F, #FF8A5C);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 90, 95, 0.4);
}

/* Секція "В наявності" */
.in-stock-section {
  padding: 40px 0 20px;
  background: linear-gradient(180deg, #F0FBF5 0%, transparent 100%);
  margin-top: 20px;
}
/* Бейдж акції */
.promo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #FF5A5F, #FF8A5C);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 90, 95, 0.4);
}
.delivery-warning {
  background: #FFF8E1;
  border: 2px solid #FFB300;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #5D4037;
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.15);
}

.delivery-warning b {
  color: #E65100;
  font-size: 15px;
}

.delivery-warning button {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-right: 8px;
  transition: transform 0.1s, box-shadow 0.2s;
}

.delivery-warning .btn-yes {
  background: #7BA05B;
  color: #fff;
  box-shadow: 0 4px 12px rgba(123, 160, 91, 0.3);
}

.delivery-warning .btn-yes:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(123, 160, 91, 0.4);
}

.delivery-warning .btn-no {
  background: #fff;
  color: #5D4037;
  border: 1px solid #FFB300;
}

.delivery-warning .btn-no:hover {
  background: #FFF8E1;
}
/* ===== Блок вибору доставки ===== */
.delivery-options {
  margin: 16px 0;
  background: #FFF9F2;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #f0e0d0;
}

.delivery-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: #3D2B1F;
  font-size: 15px;
}

.delivery-label {
  display: flex !important;       /* Примусово робимо flex */
  flex-direction: row !important; /* В один рядок */
  align-items: flex-start !important; /* Вирівнюємо по верху */
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  font-weight: 400 !important;    /* Скидаємо жирність з батьківського label */
  font-size: 14px;
  line-height: 1.4;
  color: #3D2B1F;
}

.delivery-label:last-child {
  margin-bottom: 0;
}

.delivery-label input[type="radio"] {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  flex-shrink: 0; /* Забороняємо стискатися */
  accent-color: var(--primary);
  cursor: pointer;
}

.delivery-label span {
  flex: 1; /* Текст займає весь залишок місця */
}

.delivery-label b {
  font-weight: 700;
}
