
/***********************
  1) КАЛЕНДАРЬ (Flatpickr)
***********************/
input[name="delivery_date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  display: none;
}
input[name="delivery_date"] {
  cursor: pointer;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}
input[name="delivery_date"]:focus {
  outline: none;
  border-color: #000;
}
.flatpickr-calendar {
  font-family: inherit;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.flatpickr-months .flatpickr-month { font-size: 15px; font-weight: 600; }
span.flatpickr-weekday { font-weight: 600; font-size: 13px; }
.flatpickr-day { font-size: 14px; line-height: 30px; border-radius: 4px; }
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #000;
  color: #fff;
  border: none;
}
.flatpickr-day:hover { background: #eee; }
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
  color: #ccc;
  background: #f7f7f7;
  cursor: not-allowed;
}

/****************************
  2) ЛИПКИЕ КАТЕГОРИИ
*****************************/
:root { --sticky-top: 60px; }
@media (max-width: 640px) {
  :root { --sticky-top: 56px; }
}

.catbar-wrap { position: relative; z-index: 1200; }
.catbar {
  position: sticky;
  top: var(--sticky-top);
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.catbar::-webkit-scrollbar { display: none; }

.catlink {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 8px;
  color: #000;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid #000;
  border-radius: 8px;
  background: #fff;
  transition: .2s;
  white-space: nowrap;
}
.catlink:hover { background: #f2f2f2; }
.catlink.is-active { background: #000; color: #fff; border-color: #000; }
[id],[data-anchor],[name]{ scroll-margin-top: calc(var(--sticky-top) + 50px); }
html { scroll-behavior: smooth; }

/*****************************************
  3) КНОПКА "В КОРЗИНУ" + СЧЁТЧИК
******************************************/
.t-store__card__btns-wrapper,
.t-store__prod-controls {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  flex-wrap: nowrap !important;
}

.t-store__prod-counter {
  flex: 0 0 auto !important;
  min-width: 90px; /* уменьшили — теперь счётчик помещается */
  text-align: center;
}

.t-store__card__btn.t-btn,
.t706__addbtn.t-btn,
.js-product-btn-add.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  width: auto;
  min-width: 44px;
  height: 44px;
}

/* ===== СЧЁТЧИК КОЛИЧЕСТВА: шире и читаемее ===== */
.t-store__card__btns-wrapper,
.t-store__prod-controls{
  display:flex !important;
  align-items:center !important;
  gap:10px;
  flex-wrap:nowrap !important;
}

/* сам счётчик — не сжимать и сделать шире */
.t-store__prod-counter{
  flex:0 0 auto !important;
  min-width: 150px !important;   /* было меньше — из-за этого не влезало */
  width: 170px !important;       /* можно подогнать под ваш дизайн */
}

/* внутренняя раскладка счётчика */
.t-store__prod-counter .t-store__prod-quantity{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  width: 100% !important;
  gap: 8px !important;
}

/* кнопки − и + пошире */
.t-store__prod-counter button{
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  text-align:center !important;
}

/* поле с числом больше и по центру */
.t-store__prod-counter input{
  width: 64px !important;        /* раньше было узко */
  min-width: 64px !important;
  text-align:center !important;
  font-size: 18px !important;
  line-height: 44px !important;
  height: 44px !important;
  padding: 0 !important;
}

/* чтобы кнопка корзины не уезжала на новую строку */
.t-store__card__btn.t-btn,
.t706__addbtn.t-btn,
.js-product-btn-add.t-btn{
  width:auto !important;
  min-width:44px !important;
  height:44px !important;
  padding:10px !important;
}

/* на очень узких экранах ещё чуть расширим счётчик */
@media (max-width: 380px){
  .t-store__prod-counter{ min-width: 160px !important; width: 180px !important; }
  .t-store__prod-counter input{ width: 72px !important; }
}

/* Убрать второй (тильдовский) календарь */
.air-datepicker,
.air-datepicker-global-container,
[class^="air-datepicker"],
[class*=" air-datepicker"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Скрыть системную иконку у поля date */
input[name="delivery_date"]::-webkit-calendar-picker-indicator {
  display: none !important;
  opacity: 0 !important;
}

/* Вид и поведение Flatpickr (можно оставить как у тебя было) */
.flatpickr-calendar { z-index: 99999 !important; }
.flatpickr-day.disabled, .flatpickr-day.flatpickr-disabled{
  color:#ccc !important; background:#f7f7f7 !important; cursor:not-allowed !important;
}