/* Магазин, 09.11.2026: количество с − / + на продукта, текстови връзки „Вход или регистрация“ / „Разгледай“,
   лента до безплатна доставка. Зарежда се след storefront.css и market-theme.css. */

/* Лента до безплатна доставка: тънка, под горното меню; само при продукти в количката. */
.free-delivery-progress { border-top: 1px solid rgba(40, 94, 22, .12); background: #f5f9f1; color: #205517; font-size: 13px; }
.free-delivery-progress[hidden] { display: none; }
.free-delivery-progress__inner { display: flex; align-items: center; gap: 14px; min-height: 34px; padding-block: 5px; }
.free-delivery-progress__text { flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.free-delivery-progress__text strong { font-weight: 800; }
.free-delivery-progress__text i { margin-right: 4px; color: #e07b17; }
.free-delivery-progress__zone { font-size: 12px; color: #5b6656; }
.free-delivery-progress__track { flex: 1 1 auto; max-width: 320px; height: 6px; border-radius: 999px; background: #dde8d4; overflow: hidden; }
.free-delivery-progress__fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e88322, #f0a04b); transition: width .4s ease; }
.free-delivery-progress.is-reached .free-delivery-progress__fill { background: #2f7d26; }
.free-delivery-progress.is-reached .free-delivery-progress__text i { color: #2f7d26; }
@media (max-width: 640px) {
  .free-delivery-progress { font-size: 12px; }
  .free-delivery-progress__inner { gap: 10px; min-height: 30px; }
  .free-delivery-progress__track { max-width: none; min-width: 60px; }
}
@media (prefers-reduced-motion: reduce) { .free-delivery-progress__fill { transition: none; } }
/* Лентата е в залепената глава и я прави по-висока: грешките в чекаута спират под нея. */
.guest-checkout-errors, #checkout-summary, .guest-checkout-fields [aria-invalid="true"] { scroll-margin-top: 226px; }

/* Текстови връзки вместо бутони. */
.product-card__text-link, .product-detail-text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; margin-top: 4px; padding: 2px 0; color: #285e16; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; }
.product-card__text-link { align-self: center; width: 100%; }
.product-card__text-link:hover, .product-detail-text-link:hover { color: #183c0e; }
.product-detail-guest-note { margin: 10px 0 0; color: #5b6656; font-size: 13px; line-height: 1.5; }
.product-detail-guest-note a { color: #285e16; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Количество на страницата на продукта: − поле + (и на телефон, където полето няма стрелки). */
.product-detail-form { grid-template-columns: minmax(150px, 176px) minmax(190px, 310px); }
.product-detail-stepper { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: stretch; min-height: 50px; max-width: 240px; overflow: hidden; border: 1px solid #d5ddcf; border-radius: 10px; background: #fff; }
.product-detail-form .product-detail-stepper button { height: auto; min-height: 48px; padding: 0; border: 0; border-radius: 0; background: #f2f5ef; color: #205517; font-size: 14px; box-shadow: none; transform: none; }
.product-detail-form .product-detail-stepper button:hover:not(:disabled) { background: #e3eedb; color: #183c0e; }
.product-detail-form .product-detail-stepper button:disabled { background: #f2f5ef; color: #b7c1b2; }
.product-detail-form .product-detail-stepper button:focus-visible { outline: 3px solid #285e16; outline-offset: -3px; }
.product-detail-stepper input, .product-detail-qty .product-detail-stepper input { width: 100%; min-width: 0; height: 48px; min-height: 48px; padding: 0 4px; border: 0; border-radius: 0; background: #fff; text-align: center; font-weight: 800; -moz-appearance: textfield; appearance: textfield; }
.product-detail-stepper input::-webkit-outer-spin-button, .product-detail-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-detail-stepper .product-detail-qty-field { gap: 2px; padding-right: 6px; background: #fff; }
@media (max-width: 760px) {
  .product-detail-form { grid-template-columns: minmax(0, 1fr); }
  .product-detail-stepper { max-width: none; }
}

/* MandjaBox кутии-рецепти (виртуални продукти, създадени в админа). */
.product-card__box-badge, .product-detail-box-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: #efe6fb; color: #5a2fb3; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.product-detail-box-badge { font-size: 12px; padding: 4px 11px; }
.product-detail-box-lead { margin: 10px 0 0; color: #4b5447; font-size: 15px; line-height: 1.5; }
.product-box-contents { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.product-box-contents li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 12px; border: 1px solid #e3dcf3; border-radius: 10px; background: #faf7ff; font-size: 14px; }
.product-box-contents__name small { display: block; margin-top: 2px; color: #6b6478; font-size: 12px; }
.product-box-contents strong { white-space: nowrap; color: #4a2b8a; }
.product-information--box h2 { color: #4a2b8a; }
.product-box-details p { margin: 0 0 10px; }
@media (max-width: 640px) { .product-box-contents li { font-size: 13px; padding: 8px 10px; } }
.order-box-contents { display: block; margin: 2px 0 4px; color: #5a2fb3; font-size: 12px; line-height: 1.4; }

/* Мобилна версия (до 900px, където е долното меню с „Категории“ и търсачката горе):
   - началната страница: без лентата с категории над банера;
   - страница на категория/магазин: без пътеката, илюстрацията, бутона „Категории“, броя продукти и формата „Търсене / Категория / Покажи“.
     Остава само името на категорията на един ред. На компютър нищо не се променя. */
@media (max-width: 900px) {
  .welcome--market .welcome-category-browser { display: none !important; }
  .catalog-heading .store-breadcrumb,
  .catalog-heading .catalog-heading__art,
  .catalog-heading .catalog-mobile-categories,
  .catalog-heading .catalog-heading__row p,
  .catalog-content > .catalog-filters { display: none !important; }
  .catalog-heading { padding: 12px 0 4px !important; background: transparent !important; border-bottom: 0 !important; min-height: 0 !important; }
  .catalog-heading h1 { margin: 0 !important; font-size: 22px !important; line-height: 1.2 !important; }
}
