/* ===== Общие элементы страниц (Раздача, Админка) ===== */
body.page { padding-top: 0; padding-bottom: 0; }

.page-header {
  position: sticky; top: 0; z-index: 90;
  height: var(--header-height); background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 16px;
}
.page-header__right { display: flex; align-items: center; gap: 8px; }
.page-header__sub {
  font-size: 12px; font-weight: 600; color: var(--color-green);
  background: var(--color-green-pale); border-radius: 999px; padding: 4px 10px;
}

.page-footer {
  text-align: center; font-size: 13px; color: var(--color-text-muted);
  padding: 24px 16px calc(28px + var(--safe-bottom));
  border-top: 1px solid var(--color-border); background: var(--color-white);
}

.hint { font-size: 12.5px; color: var(--color-text-muted); line-height: 1.5; }
.muted { color: var(--color-text-muted); }

/* ===== Страница «Раздача» ===== */
.pickup { flex: 1; }
.pickup__hero {
  position: relative;
  overflow: hidden;
  padding: 36px 16px 44px;
}
.pickup__hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../images/hero-supermarket.jpg") center 55% / cover no-repeat;
}
.pickup__hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(243, 232, 214, 0.95) 0%,
    rgba(243, 232, 214, 0.87) 55%,
    rgba(243, 232, 214, 0.62) 100%);
}
.pickup__hero-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.pickup__eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--color-green); margin-bottom: 10px;
}
.pickup__title { font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 8px; }
.pickup__subtitle { font-size: 15px; color: var(--color-text-muted); line-height: 1.55; margin-bottom: 26px; }

.pickup__date-card {
  background: var(--color-white); border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(91, 44, 14, 0.14);
  padding: 26px 20px; text-align: center; margin-bottom: 16px;
}
.pickup__pay {
  display: flex; align-items: center; gap: 14px;
  background: var(--color-orange); color: var(--color-text);
  border-radius: var(--radius-xl); padding: 18px 20px;
  margin-bottom: 16px; box-shadow: 0 14px 34px rgba(255, 145, 4, 0.38);
}
.pickup__pay-icon { font-size: 32px; line-height: 1; flex-shrink: 0; }
.pickup__pay-text b {
  display: block; font-size: 23px; font-weight: 800;
  letter-spacing: -0.01em; line-height: 1.15;
}
.pickup__pay-text span {
  display: block; font-size: 14.5px; font-weight: 600;
  line-height: 1.4; margin-top: 4px; opacity: 0.92;
}
@media (min-width: 768px) {
  .pickup__pay { padding: 22px 26px; gap: 18px; }
  .pickup__pay-text b { font-size: 27px; }
  .pickup__pay-text span { font-size: 16px; }
  .pickup__pay-icon { font-size: 38px; }
}
.pickup__weekday { font-size: 16px; font-weight: 700; color: var(--color-green); }
.pickup__day { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 18px; }
.pickup__facts { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.pickup__fact {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--color-beige-light); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 12px 14px; font-size: 14.5px;
}
.pickup__fact-icon { font-size: 18px; line-height: 1.3; }
.pickup__fact b {
  display: block; font-size: 11px; color: var(--color-text-muted);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px;
}
.pickup__fact a {
  color: var(--color-green); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
.countdown__cell {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 14px 4px 10px; text-align: center;
  box-shadow: 0 6px 18px rgba(91, 44, 14, 0.08);
}
.countdown__num {
  display: block; font-size: 30px; font-weight: 800; color: var(--color-orange);
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.countdown__label { font-size: 11px; color: var(--color-text-muted); }

.pickup__status {
  background: var(--color-white); border: 1px dashed var(--color-green-lighter);
  border-radius: var(--radius-lg); padding: 18px 20px; text-align: center;
  font-size: 15px; line-height: 1.55; margin-bottom: 22px; color: var(--color-text);
}
.pickup__cta { display: flex; justify-content: center; }
.pickup__cta .btn { width: 100%; max-width: 320px; }

.pickup__how { max-width: 620px; margin: 0 auto; padding: 44px 16px; }
.pickup__how h2 { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 22px; }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 16px;
}
.step__num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-orange); color: var(--color-white);
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step__title { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.step__text { font-size: 13.5px; color: var(--color-text-muted); line-height: 1.5; }

/* ===== Админка ===== */
.admin { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 16px 56px; }
.admin__login { max-width: 380px; margin: 40px auto; }
.login-card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: 30px 24px;
  box-shadow: 0 14px 40px var(--color-shadow); text-align: center;
}
.login-card h1 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.login-card .hint { margin-bottom: 18px; }
.login-card input {
  width: 100%; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 12px 14px;
  font-size: 15px; min-height: 46px; margin-bottom: 12px; background: var(--color-white);
}
.login-card input:focus { border-color: var(--color-orange); }
.login-card .btn { width: 100%; }

.admin__panel { display: flex; flex-direction: column; gap: 20px; }
.admin-section {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 20px;
}
.admin-section__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.admin-section__head h2 { font-size: 17px; font-weight: 800; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat {
  background: var(--color-beige-light); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 14px 10px; text-align: center;
}
.stat b { display: block; font-size: 22px; font-weight: 800; color: var(--color-orange); line-height: 1.2; }
.stat span { font-size: 12px; color: var(--color-text-muted); }

.top-products { margin-top: 16px; }
.top-products__title { font-size: 13px; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.top-products__list { display: flex; flex-direction: column; gap: 6px; }
.top-products__row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13.5px; background: var(--color-beige-light);
  border-radius: var(--radius-sm); padding: 8px 12px;
}
.top-products__row b { font-weight: 700; color: var(--color-orange); white-space: nowrap; }

.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
}
.orders-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 900px; }
.orders-table th {
  background: var(--color-beige-light); text-align: left;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--color-text-muted); padding: 10px 12px;
  border-bottom: 1px solid var(--color-border); white-space: nowrap;
}
.orders-table td { padding: 10px 12px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tbody tr:hover td { background: var(--color-beige-light); }
.orders-table .num { font-weight: 800; color: var(--color-orange); white-space: nowrap; }
.orders-table .items li { margin-bottom: 2px; color: var(--color-text-muted); }
.orders-table .items li b { color: var(--color-text); font-weight: 600; }
.orders-table .total { font-weight: 800; white-space: nowrap; }
.orders-table a { color: var(--color-green); }
.orders-table .comment { font-size: 12.5px; margin-top: 6px; }
.orders-empty { text-align: center; padding: 30px 16px; color: var(--color-text-muted); font-size: 14.5px; }

.admin-form { display: grid; gap: 12px; }
.admin-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 11px 14px;
  font-size: 15px; min-height: 46px; background: var(--color-white);
  font-family: inherit; font-weight: 400;
}
.admin-form select {
  appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.admin-form textarea { resize: vertical; min-height: 64px; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { border-color: var(--color-orange); }
.pf-preview { grid-column: 1 / -1; }
.pf-preview img {
  width: 96px; height: 96px; object-fit: cover;
  border-radius: var(--radius-md); border: 1px solid var(--color-border);
}
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.saved-note { color: var(--color-green); font-size: 14px; font-weight: 700; }

/* Список добавленных товаров */
.custom-products { display: flex; flex-direction: column; gap: 8px; }
.custom-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--color-beige-light); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 10px 12px;
}
.custom-item__img {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--color-beige); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.custom-item__img img { width: 100%; height: 100%; object-fit: cover; }
.custom-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.custom-item__info b { font-size: 14px; }
.custom-item__info span { font-size: 13px; color: var(--color-text-muted); }
.custom-item__del { color: var(--color-danger); flex-shrink: 0; }
.custom-item__del:hover { background: #fdecec; color: var(--color-danger); }

/* Telegram-уведомления */
.bot-status {
  padding: 10px 14px; border-radius: var(--radius-md);
  font-size: 14px; margin-bottom: 10px; border: 1px solid transparent;
}
.bot-status--ok { background: var(--color-green-pale); border-color: var(--color-green); color: var(--color-green-deep, #1f6b3a); }
.bot-status--warn { background: #fff7e6; border-color: #f0c36d; color: #8a5a00; }
.bot-status:empty { display: none; }
.bot-help { font-size: 13px; color: var(--color-text-muted); margin: 0 0 12px; line-height: 1.5; }
.bot-chats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.bot-chat {
  display: flex; align-items: center; gap: 12px;
  background: var(--color-beige-light); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 10px 14px; cursor: pointer;
}
.bot-chat input { width: 18px; height: 18px; accent-color: var(--color-orange); flex-shrink: 0; }
.bot-chat__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-chat__id { font-size: 12px; color: var(--color-text-muted); flex-shrink: 0; }
.bot-chat__date { font-size: 12px; color: var(--color-text-muted); flex-shrink: 0; }

/* Скрытые товары */
.hidden-search {
  width: 100%; border: 1px solid var(--color-border); background: var(--color-white);
  border-radius: var(--radius-md); padding: 11px 14px; font-size: 15px;
  margin-bottom: 12px; min-height: 46px;
}
.hidden-search:focus { border-color: var(--color-orange); }
.hidden-list { display: flex; flex-direction: column; gap: 6px; max-height: 430px; overflow-y: auto; }
.hidden-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--color-beige-light); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 8px 12px;
}
.hidden-item.is-hidden {
  background: var(--color-orange-pale);
  border-color: rgba(255, 145, 4, 0.45);
}
.hidden-item__name {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hidden-item__badge {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--color-orange); color: var(--color-white);
  border-radius: 100px; padding: 2px 8px; vertical-align: 1px;
}
.hidden-item__price { font-size: 13px; color: var(--color-text-muted); flex-shrink: 0; min-width: 56px; text-align: right; }
.hidden-item__toggle { flex-shrink: 0; min-height: 36px; padding: 6px 12px; font-size: 13px; }

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .pickup__hero { padding: 56px 16px 64px; }
  .pickup__hero::after {
    background: linear-gradient(100deg,
      rgba(243, 232, 214, 0.96) 0%,
      rgba(243, 232, 214, 0.88) 45%,
      rgba(243, 232, 214, 0.5) 100%);
  }
  .pickup__title { font-size: 40px; }
  .pickup__day { font-size: 46px; }
  .countdown__num { font-size: 36px; }
  .pickup__facts { flex-direction: row; }
  .pickup__fact { flex: 1; }
  .admin-form { grid-template-columns: repeat(2, 1fr); }
  .admin-form .full { grid-column: 1 / -1; }
  .admin-form .form-actions { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .pickup__hero { padding: 20px 14px 24px; }
  .pickup__hero::after {
    background: linear-gradient(180deg,
      rgba(243, 232, 214, 0.97) 0%,
      rgba(243, 232, 214, 0.85) 55%,
      rgba(243, 232, 214, 0.45) 100%);
  }
  .pickup__title { font-size: 24px; margin-bottom: 6px; }
  .pickup__subtitle { font-size: 14px; margin-bottom: 10px; }
  .pickup__day { font-size: 28px; }
  .pickup__weekday { font-size: 14px; }
  .pickup__date-card { padding: 16px 14px; margin-bottom: 10px; }
  .pickup__fact { flex-direction: column; gap: 2px; }
  .pickup__pay { padding: 12px 14px; gap: 10px; margin-bottom: 10px; }
  .pickup__pay-text b { font-size: 18px; }
  .pickup__pay-text span { font-size: 13px; }
  .pickup__pay-icon { font-size: 24px; }
  .countdown { gap: 4px; margin-bottom: 10px; }
  .countdown__cell { padding: 8px 2px 6px; }
  .countdown__num { font-size: 24px; }
  .countdown__label { font-size: 10px; }
  .pickup__cta .btn { padding: 13px; font-size: 14.5px; }
  .pickup__status { padding: 14px 16px; font-size: 14px; }
}
