/* =========================================================================
   Кафе Центр — тема для MODX Revolution 2.8.4
   Дизайн-токены и компоненты. Сетка — Bootstrap 5 (bootstrap-grid.min.css).
   ========================================================================= */

:root {
  --cc-page:      #E9F2D9;
  --cc-stage:     #F4FAEC;
  --cc-ink:       #20241B;
  --cc-ink-2:     #54584C;
  --cc-muted:     #6B6F62;
  --cc-faint:     #9a9a92;
  --cc-green:     #6E9B41;
  --cc-green-dk:  #496B2C;
  --cc-green-hv:  #5e8836;
  --cc-green-lt:  #EEF3E4;
  --cc-promo:     #E4F0D2;
  --cc-footer:    #161911;
  --cc-footer-tx: #9c9e90;
  --cc-on-dark:   #EDF3E3;
  --cc-on-dark-2: #bcc7a8;
  --cc-line:      rgba(32, 36, 27, .09);
  --cc-line-2:    rgba(32, 36, 27, .14);
  --cc-card-line: rgba(32, 36, 27, .07);

  --cc-r-sm: 11px;
  --cc-r-md: 16px;
  --cc-r-lg: 20px;
  --cc-r-xl: 26px;

  --cc-font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cc-display: 'Unbounded', 'Onest', system-ui, sans-serif;

  /* высота залипающей шапки: логотип 52 + отступы. Нужна для scroll-margin
     якорей и для липких чипов каталога — они должны вставать вплотную под шапку. */
  --cc-header-h: 73px;

  /* контейнер макета */
  --bs-gutter-x: 1.375rem; /* 22px, как в прототипе */
}

*, *::before, *::after { box-sizing: border-box; }

/* многие компоненты темы задают display, поэтому атрибут hidden делаем сильнее */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cc-page);
  color: var(--cc-ink);
  font-family: var(--cc-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .18); border-radius: 8px; }

@keyframes ccSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes ccFadeUp  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- контейнер -------------------------------------------------------- */

.cc-stage {
  min-height: 100vh;
  background: var(--cc-stage);
  box-shadow: 0 0 60px rgba(0, 0, 0, .12);
  overflow-x: clip;
  position: relative;
}

.container { max-width: 1240px; }

/* якорные секции не должны заезжать под залипающую шапку */
section[id], .cc-anchor { scroll-margin-top: calc(var(--cc-header-h) + 12px); }

/* --- типографика ------------------------------------------------------ */

.cc-h1 {
  font-family: var(--cc-display);
  font-weight: 800;
  font-size: clamp(36px, 6.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 18px 0 0;
  text-wrap: balance;
}
.cc-h1 .cc-dot { color: var(--cc-green); }

.cc-h2 {
  font-family: var(--cc-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -.02em;
  margin: 0;
}
.cc-h2--sm { font-size: clamp(24px, 3vw, 36px); }

.cc-h3 {
  font-family: var(--cc-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0;
}

.cc-eyebrow {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--cc-green);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cc-eyebrow--light { color: #8fbf5e; }

.cc-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--cc-ink-2);
  max-width: 30em;
  margin: 18px 0 0;
}

.cc-muted { color: var(--cc-muted); font-size: 14px; }

.cc-section { padding: clamp(34px, 5vw, 60px) 0; }
.cc-section--lg { padding: clamp(34px, 5vw, 64px) 0; }

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

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-family: var(--cc-font);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  padding: 15px 26px;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cc-btn--dark  { background: var(--cc-ink); color: #fff; }
.cc-btn--dark:hover  { background: #2d3325; color: #fff; }
.cc-btn--light { background: #fff; color: var(--cc-ink); border-color: var(--cc-line-2); }
.cc-btn--light:hover { border-color: var(--cc-green); color: var(--cc-ink); }
.cc-btn--green { background: var(--cc-green); color: #fff; border-radius: var(--cc-r-sm); padding: 14px 22px; font-size: 15px; }
.cc-btn--green:hover { background: var(--cc-green-hv); color: #fff; }
.cc-btn--block { width: 100%; }
.cc-btn--sm { padding: 13px 22px; font-size: 15px; border-radius: 12px; }

/* --- верхняя утилитарная полоса --------------------------------------- */

.cc-topbar {
  background: var(--cc-ink);
  color: var(--cc-on-dark);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: center;
  align-items: center;
  padding: 9px 20px;
}
.cc-topbar span { opacity: .85; }
.cc-topbar .cc-topbar__sep { opacity: .4; }

/* --- шапка ------------------------------------------------------------- */

.cc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 250, 236, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cc-line);
}
.cc-header__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.cc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: 0 1 auto;
  min-width: 0;
}
.cc-brand__logo { width: 52px; height: 52px; object-fit: contain; flex: none; }
@media (min-width: 992px) {
  .cc-brand__logo { width: 68px; height: 68px; }
  :root { --cc-header-h: 89px; }
}
@media (max-width: 399.98px) { :root { --cc-header-h: 67px; } }
.cc-brand__text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.cc-brand__name { font-family: var(--cc-display); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.cc-brand__sub  { font-size: 11px; color: var(--cc-muted); margin-top: 3px; letter-spacing: .02em; }
.cc-brand__name, .cc-brand__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* на узких экранах подзаголовок не помещается рядом с корзиной и бургером */
@media (max-width: 399.98px) {
  .cc-brand__logo { width: 46px; height: 46px; }
  .cc-brand__sub { display: none; }
}

.cc-nav { display: flex; gap: 2px; margin-left: 10px; min-width: 0; }
.cc-nav a {
  text-decoration: none;
  color: var(--cc-ink);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 11px;
  border-radius: 9px;
  white-space: nowrap;
  transition: background-color .15s ease;
}
.cc-nav a:hover, .cc-nav li.active > a { background: var(--cc-green-lt); }

.cc-header__side { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }

.cc-phone { text-decoration: none; color: var(--cc-ink); text-align: right; line-height: 1.15; white-space: nowrap; }
.cc-phone b    { display: block; font-weight: 700; font-size: 15px; }
.cc-phone span { display: block; font-size: 11px; color: var(--cc-muted); }

.cc-cart-btn {
  position: relative;
  border: none;
  cursor: pointer;
  background: var(--cc-green);
  color: #fff;
  font-family: var(--cc-font);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 15px;
  border-radius: var(--cc-r-sm);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: background-color .15s ease;
}
.cc-cart-btn:hover { background: var(--cc-green-hv); }
.cc-cart-btn__count {
  background: #fff;
  color: var(--cc-green-dk);
  font-weight: 700;
  font-size: 12px;
  min-width: 21px;
  height: 21px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.cc-cart-btn__count[hidden] { display: none; }

.cc-burger {
  border: 1px solid var(--cc-line-2);
  cursor: pointer;
  background: #fff;
  color: var(--cc-ink);
  width: 44px;
  height: 44px;
  border-radius: var(--cc-r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.cc-mobile-nav {
  border-top: 1px solid var(--cc-line);
  background: var(--cc-stage);
  padding: 8px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cc-mobile-nav[hidden] { display: none; }
.cc-mobile-nav a {
  text-decoration: none;
  color: var(--cc-ink);
  font-weight: 600;
  font-size: 17px;
  padding: 13px 8px;
  border-bottom: 1px solid rgba(32, 36, 27, .06);
}
.cc-mobile-nav a:last-child { border-bottom: 0; }
.cc-mobile-nav .cc-mobile-nav__call {
  margin-top: 8px;
  background: var(--cc-ink);
  color: #fff;
  font-size: 16px;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  border-bottom: 0;
}

/* --- hero -------------------------------------------------------------- */

.cc-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 40px); }
.cc-hero__col { animation: ccFadeUp .6s ease both; }
.cc-hero__media { position: relative; animation: ccFadeUp .7s .1s ease both; }

.cc-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cc-green-lt);
  color: var(--cc-green-dk);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 30px;
}

.cc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.cc-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 32px; }
.cc-stats__num { font-family: var(--cc-display); font-weight: 700; font-size: 24px; }
.cc-stats__cap { font-size: 13px; color: var(--cc-muted); }

.cc-hero__photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--cc-r-xl);
  overflow: hidden;
  background: #eef1e6;
}
.cc-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cc-hero__tag {
  position: absolute;
  left: -8px;
  bottom: 24px;
  background: #fff;
  border-radius: var(--cc-r-md);
  padding: 14px 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .14);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.cc-hero__tag img { width: 42px; height: 42px; object-fit: contain; }
.cc-hero__tag b    { display: block; font-weight: 700; font-size: 14px; }
.cc-hero__tag span { display: block; font-size: 12px; color: var(--cc-muted); }
.cc-hero__tag span b { display: inline; color: var(--cc-green-dk); }

/* --- быстрые категории -------------------------------------------------- */

.cc-quickcat {
  text-decoration: none;
  color: var(--cc-ink);
  background: #fff;
  border: 1px solid rgba(32, 36, 27, .08);
  border-radius: var(--cc-r-md);
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s ease;
}
.cc-quickcat:hover { border-color: var(--cc-green); }
.cc-quickcat__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cc-green-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cc-green-dk);
}
.cc-quickcat__name { font-weight: 600; font-size: 15px; }

/* --- каталог ------------------------------------------------------------ */

.cc-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.cc-chips {
  display: flex;
  gap: 9px;
  position: sticky;
  top: var(--cc-header-h);
  z-index: 20;
  background: rgba(244, 250, 236, .9);
  backdrop-filter: blur(8px);
  padding: 10px 0;
  margin-bottom: 8px;

  /* мобайл-ферст: категорий много, поэтому одна строка с горизонтальной
     прокруткой вместо переноса на пол-экрана. На десктопе (ниже) — перенос. */
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;               /* Firefox */
  /* лёгкий отступ по краям строки, чтобы крайние чипы не липли к границе
     и было видно, что лента продолжается */
  padding-left: 2px;
  padding-right: 2px;
  scroll-padding-left: 2px;
}
.cc-chips::-webkit-scrollbar { display: none; }   /* WebKit */

/* на десктопе категории умещаются — возвращаем перенос, прокрутка не нужна */
@media (min-width: 992px) {
  .cc-chips {
    flex-wrap: wrap;
    overflow: visible;
    padding-left: 0;
    padding-right: 0;
  }
}

.cc-chip {
  flex: 0 0 auto;                       /* не сжимать чипы в ленте */
  scroll-snap-align: start;
  border: 1px solid rgba(32, 36, 27, .12);
  cursor: pointer;
  font-family: var(--cc-font);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 15px;
  border-radius: 30px;
  white-space: nowrap;
  background: #fff;
  color: var(--cc-ink);
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.cc-chip:hover { border-color: var(--cc-green); }
.cc-chip.is-active { background: var(--cc-ink); color: #fff; border-color: var(--cc-ink); }

.cc-dish {
  background: #fff;
  border: 1px solid var(--cc-card-line);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease;
}
.cc-dish:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .09); }
.cc-dish__media { position: relative; aspect-ratio: 4 / 3; background: #eef1e6; overflow: hidden; display: block; }
.cc-dish__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-dish__flag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--cc-green);
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 20px;
}
.cc-dish__flag--new { background: var(--cc-ink); }
.cc-dish__body { padding: 15px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.cc-dish__title { font-weight: 700; font-size: 16px; margin: 0; line-height: 1.2; }
.cc-dish__title a { color: inherit; text-decoration: none; }
.cc-dish__desc { font-size: 13px; line-height: 1.45; color: var(--cc-muted); margin: 7px 0 0; flex: 1; }
.cc-dish__weight { font-size: 12px; color: var(--cc-faint); margin-top: 10px; }
.cc-dish__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.cc-dish__price { font-family: var(--cc-display); font-weight: 700; font-size: 19px; }
.cc-dish__oldprice { font-family: var(--cc-font); font-weight: 500; font-size: 14px; color: var(--cc-faint); text-decoration: line-through; margin-left: 6px; }

.cc-add {
  border: none;
  cursor: pointer;
  background: var(--cc-green-lt);
  color: var(--cc-green-dk);
  font-family: var(--cc-font);
  font-weight: 700;
  font-size: 20px;
  width: 42px;
  height: 42px;
  border-radius: var(--cc-r-sm);
  line-height: 1;
  flex: none;
  transition: background-color .15s ease, color .15s ease;
}
.cc-add:hover { background: var(--cc-green); color: #fff; }

.cc-catalog__empty {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 40px 0;
  color: var(--cc-muted);
  text-align: center;
}

.cc-catalog__more { display: flex; justify-content: center; margin-top: 28px; }

/* заглушки на время подгрузки категории — держат высоту, чтобы страница не прыгала */
@keyframes ccShimmer { 0%, 100% { opacity: .5; } 50% { opacity: .9; } }

.cc-dish--skeleton {
  border-color: transparent;
  background: #fff;
  pointer-events: none;
  animation: ccShimmer 1.2s ease-in-out infinite;
}
.cc-dish--skeleton .cc-dish__media { background: #e7ece0; }
.cc-dish--skeleton .cc-dish__body { height: 136px; }

/* --- счётчик количества ------------------------------------------------- */

.cc-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--cc-line-2);
  border-radius: var(--cc-r-sm);
  overflow: hidden;
  background: #fff;
}
.cc-qty button {
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  width: 34px;
  height: 38px;
  color: var(--cc-ink);
  line-height: 1;
}
.cc-qty button.cc-qty__plus { color: var(--cc-green); }
.cc-qty input {
  border: none;
  width: 34px;
  height: 38px;
  text-align: center;
  font-family: var(--cc-font);
  font-weight: 700;
  font-size: 15px;
  color: var(--cc-ink);
  background: #fff;
  -moz-appearance: textfield;
}
.cc-qty input::-webkit-outer-spin-button,
.cc-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cc-qty__val {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--cc-ink);
  line-height: 38px;
}
.cc-qty--sm button   { width: 30px; height: 32px; font-size: 16px; }
.cc-qty--sm input    { width: 30px; height: 32px; font-size: 14px; }
.cc-qty--sm .cc-qty__val { min-width: 30px; line-height: 32px; font-size: 14px; }

/* --- акции --------------------------------------------------------------- */

.cc-promo { background: var(--cc-promo); }
.cc-promo-card {
  border-radius: var(--cc-r-lg);
  padding: 26px;
  min-height: 190px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cc-promo-card__icon { font-size: 34px; line-height: 1; }
.cc-promo-card__title { font-family: var(--cc-display); font-weight: 700; font-size: 24px; line-height: 1.1; }
.cc-promo-card__text { font-size: 14px; margin: 8px 0 0; }
.cc-promo-card--dark  { background: var(--cc-ink); color: var(--cc-stage); }
.cc-promo-card--dark  .cc-promo-card__text { color: var(--cc-on-dark-2); }
.cc-promo-card--green { background: var(--cc-green); color: #fff; }
.cc-promo-card--green .cc-promo-card__text { opacity: .9; }
.cc-promo-card--white { background: #fff; border: 1px solid rgba(32, 36, 27, .08); color: var(--cc-ink); }
.cc-promo-card--white .cc-promo-card__text { color: var(--cc-muted); }

/* --- доставка и бронь ---------------------------------------------------- */

.cc-panel {
  background: #fff;
  border: 1px solid rgba(32, 36, 27, .08);
  border-radius: var(--cc-r-lg);
  padding: 28px;
  height: 100%;
}
.cc-panel--soft { background: var(--cc-green-lt); border-color: transparent; }
.cc-panel--soft .cc-h3 { color: #2f3a22; }

.cc-ticks { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 11px; }
.cc-ticks li { display: flex; gap: 10px; font-size: 15px; color: #3c4036; }
.cc-ticks li::before { content: '●'; color: var(--cc-green); }

.cc-form { display: flex; flex-direction: column; gap: 11px; margin-top: 18px; }
.cc-input,
.cc-select,
.cc-textarea {
  border: 1px solid var(--cc-line-2);
  background: #fff;
  border-radius: var(--cc-r-sm);
  padding: 13px 15px;
  font-family: var(--cc-font);
  font-size: 15px;
  color: var(--cc-ink);
  width: 100%;
}
.cc-input:focus,
.cc-select:focus,
.cc-textarea:focus { outline: 2px solid rgba(110, 155, 65, .45); outline-offset: 1px; border-color: var(--cc-green); }
.cc-input::placeholder, .cc-textarea::placeholder { color: #9fa397; }
.cc-textarea { min-height: 96px; resize: vertical; }
.cc-field-label { display: block; font-size: 13px; color: var(--cc-muted); margin-bottom: 6px; }

.cc-form-error { color: #b23a2f; font-size: 13px; margin-top: 4px; }
.cc-form-note  { color: var(--cc-muted); font-size: 13px; margin-top: 10px; }
.cc-alert {
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  margin-bottom: 14px;
}
.cc-alert--ok  { background: var(--cc-green-lt); color: var(--cc-green-dk); }
.cc-alert--err { background: #fbe6e3; color: #a3352a; }

/* --- о кафе -------------------------------------------------------------- */

.cc-about { background: var(--cc-ink); color: var(--cc-on-dark); }
.cc-about .cc-lead { color: var(--cc-on-dark-2); font-size: 16px; line-height: 1.6; max-width: none; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cc-tags span { background: rgba(255, 255, 255, .08); padding: 9px 15px; border-radius: 30px; font-size: 14px; }
.cc-about__pic {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #34382c 0 13px, #2c3025 13px 26px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c7e6f;
  font: 600 11px ui-monospace, monospace;
  letter-spacing: .1em;
}
.cc-about__pic img { width: 100%; height: 100%; object-fit: cover; }
.cc-about__pic--offset { margin-top: 26px; }

/* --- контакты ------------------------------------------------------------ */

.cc-contact { display: flex; flex-direction: column; gap: 16px; }
.cc-contact__label { font-size: 13px; color: var(--cc-muted); }
.cc-contact__value { font-weight: 600; font-size: 17px; color: var(--cc-ink); text-decoration: none; }

.cc-map {
  aspect-ratio: 16 / 10;
  border-radius: var(--cc-r-lg);
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #dfe9cd 0 14px, #d5e2bf 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9684;
  font: 600 12px ui-monospace, monospace;
  letter-spacing: .1em;
}
.cc-map iframe, .cc-map > * { width: 100%; height: 100%; border: 0; }

/* --- футер --------------------------------------------------------------- */

.cc-footer { background: var(--cc-footer); color: var(--cc-footer-tx); padding: 34px 0; }
.cc-footer__inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.cc-footer__brand { display: flex; align-items: center; gap: 12px; }
.cc-footer__brand img { width: 44px; height: 44px; object-fit: contain; }
.cc-footer__name { color: var(--cc-on-dark); font-family: var(--cc-display); font-weight: 700; }
.cc-footer__sub, .cc-footer__copy { font-size: 13px; }

/* --- корзина (drawer) ---------------------------------------------------- */

.cc-drawer { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; }
.cc-drawer[hidden] { display: none; }
.cc-drawer__overlay { position: absolute; inset: 0; background: rgba(15, 17, 11, .45); border: 0; padding: 0; }
.cc-drawer__panel {
  position: relative;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: var(--cc-stage);
  display: flex;
  flex-direction: column;
  animation: ccSlideIn .28s ease;
  box-shadow: -20px 0 50px rgba(0, 0, 0, .2);
}
.cc-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(32, 36, 27, .1);
}
.cc-drawer__close {
  border: none;
  background: rgba(32, 36, 27, .07);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
}
/* обёртка, содержимое которой целиком подменяется при обновлении корзины */
.cc-drawer__wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cc-drawer__wrap > #msCart { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cc-drawer__body { flex: 1; overflow: auto; padding: 16px 22px; }
.cc-drawer__foot { padding: 18px 22px; border-top: 1px solid rgba(32, 36, 27, .1); background: #fff; }

@media (max-width: 420px) {
  .cc-drawer__head, .cc-drawer__body, .cc-drawer__foot { padding-left: 16px; padding-right: 16px; }
}

.cc-cart-empty { text-align: center; color: var(--cc-muted); padding: 60px 0; }
.cc-cart-empty__icon { font-size: 42px; }

.cc-cart-row { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid rgba(32, 36, 27, .08); }
.cc-cart-row img { width: 62px; height: 62px; flex: none; border-radius: 12px; object-fit: cover; }
.cc-cart-row__main { flex: 1; min-width: 0; }
.cc-cart-row__name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.cc-cart-row__name a { color: inherit; text-decoration: none; }
.cc-cart-row__price { font-size: 13px; color: var(--cc-muted); margin-top: 3px; }
.cc-cart-row__sum { font-family: var(--cc-display); font-weight: 700; font-size: 15px; white-space: nowrap; }
.cc-cart-row__side { text-align: right; flex: none; }
.cc-cart-row__remove {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--cc-faint);
  font-size: 15px;
  padding: 0 2px;
  line-height: 1;
}
.cc-cart-row__remove:hover { color: #b23a2f; }
.cc-cart-row .cc-qty { margin-top: 8px; }

.cc-cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cc-cart-total__label { color: var(--cc-muted); font-size: 15px; }
.cc-cart-total__value { font-family: var(--cc-display); font-weight: 700; font-size: 24px; }
.cc-drawer__foot .cc-btn { font-size: 16px; padding: 16px; border-radius: 13px; font-weight: 700; }

/* --- плавающая панель корзины на мобильных -------------------------------- */

.cc-cartbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; }
.cc-cartbar[hidden] { display: none; }
.cc-cartbar button {
  width: 100%;
  border: none;
  cursor: pointer;
  background: var(--cc-green);
  color: #fff;
  font-family: var(--cc-font);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 18px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(73, 107, 44, .38);
}
.cc-cartbar__left { display: flex; align-items: center; gap: 10px; }
.cc-cartbar__count {
  background: #fff;
  color: var(--cc-green-dk);
  font-weight: 700;
  font-size: 13px;
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.cc-cartbar__total { font-family: var(--cc-display); font-weight: 700; font-size: 17px; }
@media (min-width: 992px) { .cc-cartbar { display: none !important; } }

/* --- карточка блюда (страница товара) ------------------------------------- */

.cc-product__gallery { border-radius: var(--cc-r-xl); overflow: hidden; background: #eef1e6; aspect-ratio: 1 / 1; }
.cc-product__gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-product__price { font-family: var(--cc-display); font-weight: 700; font-size: 34px; }
.cc-product__buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* --- хлебные крошки -------------------------------------------------------- */

.cc-crumbs { font-size: 13px; color: var(--cc-muted); padding: 16px 0 0; }
.cc-crumbs a { color: var(--cc-muted); text-decoration: none; }
.cc-crumbs a:hover { color: var(--cc-green-dk); }
.cc-crumbs .cc-crumbs__sep { opacity: .5; margin: 0 6px; }

/* --- пагинация ------------------------------------------------------------- */

.cc-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.cc-pagination a, .cc-pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cc-r-sm);
  border: 1px solid var(--cc-line-2);
  background: #fff;
  color: var(--cc-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 0 12px;
}
.cc-pagination .active span, .cc-pagination a.active { background: var(--cc-ink); border-color: var(--cc-ink); color: #fff; }

/* --- прочее ---------------------------------------------------------------- */

.cc-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.cc-no-scroll { overflow: hidden; }

/* --- оформление заказа ---------------------------------------------------- */

.cc-radio {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--cc-line-2);
  background: #fff;
  border-radius: var(--cc-r-sm);
  padding: 13px 15px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.cc-radio:hover { border-color: var(--cc-green); }
.cc-radio input { margin-top: 3px; accent-color: var(--cc-green); flex: none; }
.cc-radio b { display: block; font-weight: 600; font-size: 15px; }
.cc-radio small { display: block; font-size: 13px; color: var(--cc-muted); margin-top: 3px; }
.cc-radio:has(input:checked) { border-color: var(--cc-green); background: var(--cc-green-lt); }
.cc-radio.error, .cc-radio.required.error { border-color: #b23a2f; }

.required-star { color: var(--cc-green); }

.cc-input.error, .cc-textarea.error, .cc-select.error { border-color: #b23a2f; background: #fdf4f3; }

.cc-order-total { margin: 22px 0 18px; border-top: 1px solid var(--cc-line); padding-top: 14px; }
.cc-order-total__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; font-size: 15px; color: var(--cc-muted); }
.cc-order-total__row b { color: var(--cc-ink); font-weight: 600; }
.cc-order-total__row--sum { font-size: 17px; color: var(--cc-ink); padding-top: 10px; }
.cc-order-total__row--sum b { font-family: var(--cc-display); font-weight: 700; font-size: 22px; }

.cc-order-summary .cc-btn { margin-top: 14px; }
.cc-order-summary .cc-cart-row:last-of-type { border-bottom: 0; }
.cc-cart-empty .cc-btn { margin-top: 16px; }

/* --- текстовые страницы ---------------------------------------------------- */

.cc-content { font-size: 16px; line-height: 1.65; color: var(--cc-ink-2); }
.cc-content h2 { font-family: var(--cc-display); font-weight: 700; font-size: 24px; color: var(--cc-ink); margin: 32px 0 12px; }
.cc-content h3 { font-family: var(--cc-display); font-weight: 700; font-size: 19px; color: var(--cc-ink); margin: 26px 0 10px; }
.cc-content a { color: var(--cc-green-dk); }
.cc-content ul, .cc-content ol { padding-left: 20px; }
.cc-content li { margin-bottom: 8px; }
.cc-content img { border-radius: var(--cc-r-md); }

/* сообщения miniShop2 (msMessage) */
.cc-msg { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.cc-msg__item {
  background: var(--cc-ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  animation: ccFadeUp .2s ease both;
}
.cc-msg__item--err { background: #a3352a; }
