/* По-хычыну — фирменные цвета и лёгкая мобильная вёрстка.
   Палитра — из брендбука. Заголовки — фирменный Bloc Heavy (лицензия куплена),
   с Unbounded как запасным шрифтом, если файл не подгрузится. */

@font-face {
  font-family: 'Bloc Heavy';
  src: url('/static/fonts/bloc_heavy.otf') format('opentype'),
       url('/static/fonts/bloc_heavy.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --maroon: #892A1F;
  --red: #AD2B21;
  --cream: #E9DBC2;
  --ink: #1F1B20;
  --white: #FEFEFE;

  --font-head: 'Bloc Heavy', 'Unbounded', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

body.has-mini-cart {
  padding-bottom: 68px;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Хедер ---------- */

.site-header {
  background: var(--cream);
  color: var(--maroon);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--maroon);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.brand span {
  font-family: var(--font-head);
  font-size: 1.15rem;
  white-space: nowrap;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
}

.header-links a {
  text-decoration: none;
  color: var(--maroon);
  opacity: 0.85;
  white-space: nowrap;
}

.cart-link {
  position: relative;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--maroon);
}

.cart-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.7rem;
  padding: 1px 6px;
  margin-left: 4px;
}

/* ---------- Герой ---------- */

.hero {
  background: var(--cream);
  color: var(--maroon);
  padding: 6px 0 16px;
  text-align: center;
}

.hero-trust {
  margin: 8px 0 0;
  font-size: 0.74rem;
  color: var(--maroon);
  opacity: 0.85;
}

.hours-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--white);
}

.hours-badge.hours-open { color: #2f6e4f; }
.hours-badge.hours-closed { color: #6b6255; }

.hero h1 {
  font-size: 1.3rem;
  color: var(--maroon);
  margin: 0 0 2px;
}

.hero p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink);
  opacity: 0.8;
}

/* ---------- Как это работает (компактная строка) ---------- */

.mini-steps {
  background: var(--cream);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  padding: 7px 16px;
  margin: 0 auto;
}

.delivery-info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  margin: 0 auto;
  background: var(--white);
}

.delivery-chip {
  background: var(--cream);
  color: var(--maroon);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.delivery-chip-link {
  background: var(--red);
  color: var(--white);
  text-decoration: none;
}

/* ---------- Табы категорий (липкие, под шапкой) ---------- */

.category-tabs {
  position: sticky;
  top: var(--header-height, 57px);
  z-index: 9;
  background: var(--white);
  border-bottom: 1px solid #e7ded0;
}

.cat-tabs-inner {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 16px 0;
  scrollbar-width: none;
}

.cat-tabs-inner::-webkit-scrollbar { display: none; }

.cat-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: #6b6255;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.cat-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ---------- Мини-корзина (липкая снизу) ---------- */

.mini-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--maroon);
  color: var(--white);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 14px rgba(0,0,0,0.18);
  text-decoration: none;
}

.mini-cart-bar[hidden] {
  display: none;
}

.mini-cart-bar .mini-cart-info {
  font-size: 0.85rem;
  font-weight: 600;
}

.mini-cart-bar .mini-cart-total {
  font-family: var(--font-head);
  font-size: 1rem;
}

.mini-cart-bar .mini-cart-cta {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Плашка "добавить топинг?" ---------- */

.topping-toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 25;
  background: var(--white);
  color: var(--ink);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  max-width: 480px;
  margin: 0 auto;
  animation: topping-toast-in 0.2s ease-out;
}

.topping-toast[hidden] {
  display: none;
}

body.has-mini-cart .topping-toast {
  bottom: 80px;
}

.topping-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.topping-toast-label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  color: var(--maroon);
}

.topping-toast-close {
  background: none;
  border: none;
  color: var(--ink);
  opacity: 0.45;
  font-size: 1rem;
  padding: 4px 6px;
  cursor: pointer;
  line-height: 1;
}

.topping-toast-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.topping-option-row {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e7ded0;
  border-radius: 14px;
  padding: 6px 8px;
  white-space: nowrap;
}

.topping-option-photo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.topping-option-name {
  font-weight: 600;
  font-size: 0.8rem;
}

.topping-option-price {
  font-size: 0.78rem;
  opacity: 0.75;
}

.topping-option-add {
  background: var(--red);
  color: var(--white);
  border: none;
  font-family: var(--font-head);
  font-size: 0.76rem;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
}

.topping-option-add:disabled {
  opacity: 0.5;
  cursor: default;
}

@keyframes topping-toast-in {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Баннер контроля качества ---------- */

.quality-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 26px 0 10px;
  text-decoration: none;
  color: var(--ink);
}

.quality-banner img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.quality-banner-text {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--maroon);
  line-height: 1.3;
}


/* ---------- Категории / меню ---------- */

.category-section {
  padding: 22px 0 6px;
  scroll-margin-top: 112px;
}

.category-section h2 {
  font-size: 1.3rem;
  color: var(--maroon);
  border-bottom: 3px solid var(--red);
  display: inline-block;
  padding-bottom: 2px;
}

.category-intro {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: #5a5450;
  max-width: 46em;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

@media (min-width: 560px) {
  .product-grid { gap: 14px; }
}

@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Десктоп: используем ширину экрана вместо мобильной колонки
   по центру ---------- */
@media (min-width: 1024px) {
  .container-wide {
    max-width: 1120px;
  }
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

.product-card {
  border: 1px solid #e7ded0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  position: relative;
}

.product-card .photo {
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}

.badge-hit {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.6rem;
  padding: 3px 7px;
  border-radius: 999px;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  white-space: nowrap;
}

.badge-halal {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #2f6e4f;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.6rem;
  padding: 3px 7px;
  border-radius: 999px;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  white-space: nowrap;
}

.product-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .body {
  padding: 8px 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.product-card h3 {
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  height: 3.75em;
  min-height: 0;
}

.product-card .desc {
  font-size: 0.72rem;
  color: #5a5450;
  margin: 0;
  flex: 1;
}

.product-card .meta {
  font-size: 0.7rem;
  color: #6b6255;
  margin: 0;
}

.product-card .product-rating {
  font-size: 0.72rem;
  font-weight: 700;
  color: #7a5b00;
  margin: 0;
}

.product-rating-count {
  font-weight: 400;
  color: #6b6255;
}

.product-card .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 2px;
}

@media (min-width: 560px) {
  .product-card h3 { font-size: 1rem; }
  .product-card .desc { font-size: 0.82rem; }
  .product-card .meta { font-size: 0.78rem; }
  .product-card .body { padding: 10px 12px 12px; gap: 4px; }
}

.price {
  font-weight: 700;
  color: var(--red);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Компактная лента (категории с большим числом позиций, напр. напитки) ---------- */

.product-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0 4px;
  scrollbar-width: none;
}

.product-strip::-webkit-scrollbar { display: none; }

.product-strip-card {
  flex: 0 0 122px;
  border: 1px solid #e7ded0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.product-strip-card .photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}

.product-strip-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-strip-card .body {
  padding: 7px 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.product-strip-card h3 {
  font-size: 0.74rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  height: 2.5em;
  min-height: 0;
}

.product-strip-card .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: auto;
}

.product-strip-card .price {
  font-size: 0.8rem;
}

/* ---------- Топинги (палитра соусов) ---------- */

.topping-palette {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 8px;
  padding: 10px 0 4px;
}

.topping-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.topping-swatch-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  margin-bottom: 6px;
}

.topping-swatch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topping-swatch h3 {
  font-size: 0.74rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin: 0 0 2px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.4em;
  min-height: 0;
}

.topping-swatch .price {
  font-size: 0.76rem;
  display: block;
  margin-bottom: 4px;
}

.topping-swatch .qty-widget {
  display: flex;
  justify-content: center;
}

@media (min-width: 560px) {
  .topping-palette { grid-template-columns: repeat(5, 1fr); }
  .topping-swatch-photo { width: 84px; height: 84px; }
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

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

.btn-primary:active { background: var(--maroon); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
}

.btn-block { display: block; width: 100%; }

.btn-sm { padding: 6px 10px; font-size: 0.8rem; }

/* ---------- Корзина ---------- */

.cart-line {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee2d0;
}

.cart-line img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-line .info { flex: 1; min-width: 0; }
.cart-line .name { font-weight: 700; font-size: 0.9rem; }

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

.qty-control button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--red);
  background: var(--white);
  color: var(--red);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.add-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.add-btn:active { background: var(--maroon); }

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-size: 1.1rem;
  padding: 16px 0;
  font-variant-numeric: tabular-nums;
}

.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: #5a5450;
}

.delivery-nudge {
  background: var(--cream);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--maroon);
  margin: 10px 0;
}

.delivery-nudge a {
  text-decoration: underline;
}

.payment-pause-banner {
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
  line-height: 1.5;
}

.payment-pause-banner a {
  color: var(--white);
  text-decoration: underline;
}

.closed-banner {
  background: #f3ece0;
  border: 1px solid #ddcda9;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 16px;
}

.upsell {
  margin: 14px 0;
}

.upsell-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--maroon);
  margin-bottom: 8px;
}

.upsell-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.upsell-card {
  flex: 0 0 120px;
  border: 1px solid #e7ded0;
  border-radius: 14px;
  padding: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.upsell-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}

.upsell-name {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  height: 2.4em;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.upsell-price {
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 700;
  margin: 4px 0 6px;
}

/* ---------- Формы ---------- */

.form-group { margin-bottom: 14px; }

.form-row-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.form-row-split .form-group {
  margin-bottom: 0;
}

.form-row-split input {
  padding-left: 8px;
  padding-right: 8px;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
}

input[type=text], input[type=tel], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8cdb8;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}

.radio-row {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}

.fulfillment-time {
  color: #5a5450;
  font-size: 0.8rem;
}

.delivery-hint {
  font-size: 0.78rem;
  color: #5a5450;
  margin: 6px 0 0;
}

.address-autocomplete { position: relative; }

.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  background: var(--white);
  border: 1px solid #e7ded0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  max-height: 220px;
  overflow-y: auto;
}

.address-suggestion-item {
  padding: 9px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid #f2ece1;
}

.address-suggestion-item:last-child { border-bottom: none; }
.address-suggestion-item:hover { background: var(--cream); }

.consent-row { margin-top: 4px; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #4a4038;
  line-height: 1.4;
}
.consent-label input { margin-top: 3px; flex-shrink: 0; }
.consent-label a { color: var(--red); }

/* ---------- Локации ---------- */

.location-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.location-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.location-card .meta { font-size: 0.85rem; color: #4a4038; margin: 2px 0; }

.policy-page { padding-bottom: 20px; }
.policy-page h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--maroon);
  margin: 20px 0 6px;
}
.policy-page p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #3a342e;
  margin: 0 0 4px;
}
.policy-page .meta {
  font-size: 0.8rem;
  color: #7a7268;
  margin-bottom: 16px;
}

/* ---------- Страница 404 ---------- */

.not-found {
  text-align: center;
  padding: 60px 16px;
}

.not-found-emoji {
  font-size: 3rem;
  margin-bottom: 12px;
}

.not-found h2 {
  color: var(--maroon);
  margin-bottom: 8px;
}

.not-found p {
  color: #5a5450;
  font-size: 0.9rem;
  margin: 0 0 20px;
}

/* ---------- Футер ---------- */

.site-footer {
  background: var(--cream);
  color: var(--ink);
  text-align: center;
  padding: 24px 16px 28px;
  margin-top: 30px;
  font-size: 0.82rem;
  border-top: 1px solid #ddcda9;
}

.site-footer .tagline {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--maroon);
  margin-bottom: 6px;
}

.footer-hours {
  margin-top: 10px;
}

.footer-contacts {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 0.8rem;
}

.footer-contacts a {
  color: var(--maroon);
  text-decoration: none;
}

/* ---------- Полоски (мотив тента/фартука) ---------- */

.stripe-bar {
  height: 5px;
  background: repeating-linear-gradient(
    45deg,
    var(--red) 0 14px,
    var(--cream) 14px 28px
  );
}

/* ---------- Плашки статуса / подтверждение заказа ---------- */

.status-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  margin: 20px 0;
}

.status-card h2 { color: var(--maroon); }

.order-status-block {
  margin-bottom: 18px;
}

.current-status {
  text-align: center;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--red);
  margin-bottom: 14px;
}

.status-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.status-steps::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: #e7ded0;
  z-index: 0;
}

.status-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.status-step .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid #e7ded0;
}

.status-step.done .dot { background: var(--red); border-color: var(--red); }
.status-step.active .dot { background: var(--maroon); border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(137,42,31,0.15); }

.status-step .step-name {
  font-size: 0.68rem;
  text-align: center;
  color: #7a7268;
}

.status-step.done .step-name,
.status-step.active .step-name { color: var(--ink); font-weight: 600; }

.track-hint {
  text-align: center;
  font-size: 0.78rem;
  color: #7a7268;
  margin-top: 10px;
}

/* ---------- Оценка заказа ---------- */

.rating-form {
  background: var(--cream);
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0;
}

.rating-form h3 {
  font-size: 1rem;
  color: var(--maroon);
  margin-bottom: 10px;
}

.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.rating-row:last-of-type {
  border-bottom: none;
}

.rating-row-name {
  font-size: 0.85rem;
  flex: 1;
  min-width: 0;
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 2px;
  flex-shrink: 0;
}

.star-rating input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.star-rating label {
  font-size: 1.5rem;
  line-height: 1;
  color: #d8cdb8;
  cursor: pointer;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--red);
}

.rating-thanks {
  background: var(--cream);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 18px 0;
  text-align: center;
  font-weight: 600;
  color: var(--maroon);
}

.badge-test {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- Админка ---------- */

.admin-header {
  background: var(--maroon);
  color: var(--white);
  padding: 12px 0;
}

.admin-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-brand {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.95rem;
}

.admin-main {
  padding: 24px 16px 60px;
}

.admin-nav-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  max-width: 360px;
}

.admin-nav-card {
  display: block;
  background: var(--cream);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: var(--maroon);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 0.95rem;
}

.admin-product-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e7ded0;
}

.admin-product-row img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.admin-product-info {
  flex: 1;
  min-width: 0;
}

.admin-product-name {
  font-weight: 700;
  font-size: 0.85rem;
}

.admin-product-meta {
  font-size: 0.78rem;
  color: #7a7268;
  margin-top: 2px;
}

.admin-product-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.admin-product-actions .btn { white-space: nowrap; }

.admin-row-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e7ded0;
}

.admin-row-form input[type=text],
.admin-row-form input[type=number] {
  width: auto;
  flex: 1;
  min-width: 90px;
}

.admin-order-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e7ded0;
  text-decoration: none;
  color: var(--ink);
}

.admin-order-title {
  font-weight: 700;
  font-size: 0.88rem;
}

.admin-order-preorder {
  display: inline-block;
  background: var(--cream);
  color: var(--maroon);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 6px;
}

.admin-order-meta {
  font-size: 0.78rem;
  color: #7a7268;
  margin-top: 2px;
}

.admin-order-side {
  text-align: right;
  flex-shrink: 0;
}

.admin-order-total {
  font-weight: 700;
  color: var(--red);
  font-size: 0.9rem;
}

.admin-order-status {
  font-size: 0.72rem;
  color: #7a7268;
  margin-top: 2px;
  white-space: nowrap;
}

@media (min-width: 720px) {
  html, body { font-size: 17px; }
}
