/* HORECA.PRO — оформление карточек настоящего Tilda ST340 (tplid 1291).
   Селекторы ограничены .t1291; число колонок и отступы сетки остаются настройками блока. */

/* Фон витрины и рабочих контейнеров каталога. */
.t1291,
.t1291 .t-catalog__cont-wrapper,
.t1291 .t-catalog__grid-cont {
  background-color: var(--hp-pearl);
}

/* Карточка и медиа: пропорция 4:5 без изменения lazy-load атрибутов Tilda. */
.t1291 .t-catalog__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-family: var(--t-text-font);
  color: var(--hp-ink);
}

.t1291 .t-catalog__card__mediawrapper,
.t1291 .t-catalog__card__link {
  min-width: 0;
}

.t1291 .t-catalog__card__imgwrapper {
  position: relative;
  height: 0;
  padding-bottom: 125%;
  overflow: hidden;
  background-color: #EFE6D9;
}

.t1291 .t-catalog__card__bgimg {
  background-position: center;
  background-size: cover;
  transition: transform 1.2s var(--hp-ease);
}

@media (hover: hover) {
  .t1291 .t-catalog__card:hover .t-catalog__card__bgimg {
    transform: scale(1.04);
  }
}

/* Метка товара: Tilda задаёт её цвета инлайном, поэтому они переопределены точечно. */
.t1291 .t-catalog__card__mark {
  padding: 6px 10px;
  border: 1px solid var(--hp-gold);
  border-radius: 999px;
  background-color: var(--hp-gold) !important;
  color: var(--hp-ink) !important;
  font-family: var(--t-text-font) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: .02em;
}

/* Текстовая часть карточки. */
.t1291 .t-catalog__card__wrap_txt-and-btns {
  padding-top: 16px;
}

.t1291 .t-catalog__card__link {
  color: inherit;
  text-decoration: none;
}

.t1291 .t-catalog__card__title {
  position: relative;
  display: inline-block;
  color: var(--hp-ink) !important;
  font-family: var(--t-text-font) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-wrap: balance;
}

.t1291 .t-catalog__card__title::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--hp-gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--hp-ease);
}

@media (hover: hover) {
  .t1291 .t-catalog__card:hover .t-catalog__card__title::after {
    transform: scaleX(1);
  }
}

.t1291 .t-catalog__card__descr,
.t1291 .t-catalog__card__sku {
  margin-top: 6px;
  color: var(--hp-ink-2) !important;
  font-family: var(--t-text-font) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  font-variant-numeric: tabular-nums;
}

/* Цена и старая цена. */
.t1291 .t-catalog__card__price-wrapper {
  margin-top: 12px;
}

.t1291 .t-catalog__card__price,
.t1291 .t-catalog__card__price-value,
.t1291 .t-catalog__card__price-currency {
  color: var(--hp-ink) !important;
  font-family: var(--t-headline-font) !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  font-variant-numeric: tabular-nums;
}

.t1291 .t-catalog__card__price-currency {
  margin-left: .22em;
}

.t1291 .t-catalog__card__price_old,
.t1291 .t-catalog__card__price_old .t-catalog__card__price-value,
.t1291 .t-catalog__card__price_old .t-catalog__card__price-currency {
  color: var(--hp-ink-2) !important;
  font-family: var(--t-text-font) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-decoration: line-through;
}

/* Кнопка, которую ST340 добавляет в .t-catalog__card__btns-wrapper. */
.t1291 .t-catalog__card__btns-wrapper {
  margin-top: 16px;
}

.t1291 .t-catalog__card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border: 1px solid var(--hp-ink);
  border-radius: 999px;
  background-color: var(--hp-ink);
  color: var(--hp-pearl) !important;
  font-family: var(--t-text-font) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .5s var(--hp-ease), background-color .5s var(--hp-ease),
    color .5s var(--hp-ease);
}

.t1291 .t-catalog__card__btn:hover,
.t1291 .t-catalog__card__btn:focus-visible {
  border-color: var(--hp-gold);
  background-color: var(--hp-gold);
  color: var(--hp-ink) !important;
}

.t1291 .t-catalog__card__btn:focus-visible {
  outline: 2px solid var(--hp-gold);
  outline-offset: 3px;
}

/* Второе действие ST340 — «Подробнее». */
.t1291 .t-catalog__card__btns-wrapper .t-catalog__card__btn:nth-child(2) {
  border-color: var(--hp-gold);
  background-color: transparent;
  color: var(--hp-ink) !important;
}

.t1291 .t-catalog__card__btns-wrapper .t-catalog__card__btn:nth-child(2):hover,
.t1291 .t-catalog__card__btns-wrapper .t-catalog__card__btn:nth-child(2):focus-visible {
  background-color: var(--hp-gold-soft);
  color: var(--hp-ink) !important;
}

@media (max-width: 640px) {
  .t1291 .t-catalog__card__title {
    font-size: 15px !important;
  }

  .t1291 .t-catalog__card__price,
  .t1291 .t-catalog__card__price-value,
  .t1291 .t-catalog__card__price-currency {
    font-size: 19px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .t1291 .t-catalog__card__bgimg,
  .t1291 .t-catalog__card__btn {
    transition: none;
  }
}

/* Tilda вешает шрифт заголовков проекта и на кнопки/поля/описания — возвращаем текстовый шрифт (урок ivory 26.10) */
#allrecords .t-btnflex, #allrecords .t-btnflex__text, #allrecords .t-btn, #allrecords .t-submit,
#allrecords .t-input, #allrecords .t-select, #allrecords .t-descr, #allrecords .t-text, #allrecords .t-uptitle,
#allrecords .t-input-error, #allrecords .t-form__errorbox-item { font-family: var(--t-text-font) !important; }

/* 17.11: ST340 — «Подробнее» на всю ширину + круглая сумка. На телефоне сумка уходила на вторую строку
   (карточка 2 колонки ≈135–175 px). Держим в одну строку. Только 10 витрин /catalog. */
:is(#rec5402480301, #rec5404373401, #rec5404375301, #rec5404377101, #rec5404380301, #rec5404387901, #rec5404389501, #rec5404391001, #rec5404393001, #rec5404393701) .t-catalog__card__btn_icon { flex: 0 0 44px !important; width: 44px !important; height: 44px !important; padding: 0 !important; box-sizing: border-box !important; }
@media (max-width: 480px) {
  :is(#rec5402480301, #rec5404373401, #rec5404375301, #rec5404377101, #rec5404380301, #rec5404387901, #rec5404389501, #rec5404391001, #rec5404393001, #rec5404393701) .t-catalog__card__btns-wrapper { flex-wrap: nowrap !important; gap: 6px !important; }
  :is(#rec5402480301, #rec5404373401, #rec5404375301, #rec5404377101, #rec5404380301, #rec5404387901, #rec5404389501, #rec5404391001, #rec5404393001, #rec5404393701) .t-catalog__card__btn:not(.t-catalog__card__btn_icon) { flex: 1 1 auto !important; min-width: 0 !important; width: auto !important; max-width: none !important; height: 42px !important; min-height: 42px !important; padding: 0 8px !important; }
  :is(#rec5402480301, #rec5404373401, #rec5404375301, #rec5404377101, #rec5404380301, #rec5404387901, #rec5404389501, #rec5404391001, #rec5404393001, #rec5404393701) .t-catalog__card__btn_icon { flex: 0 0 42px !important; width: 42px !important; min-width: 42px !important; height: 42px !important; min-height: 42px !important; padding: 0 !important; }
}
@media (max-width: 400px) {
  :is(#rec5402480301, #rec5404373401, #rec5404375301, #rec5404377101, #rec5404380301, #rec5404387901, #rec5404389501, #rec5404391001, #rec5404393001, #rec5404393701) .t-catalog__card__btn:not(.t-catalog__card__btn_icon) { padding: 0 4px !important; }
  :is(#rec5402480301, #rec5404373401, #rec5404375301, #rec5404377101, #rec5404380301, #rec5404387901, #rec5404389501, #rec5404391001, #rec5404393001, #rec5404393701) .t-catalog__card__btn:not(.t-catalog__card__btn_icon) .t-btnflex__text { font-size: 13px !important; letter-spacing: 0 !important; }
}
@media (max-width: 340px) {
  :is(#rec5402480301, #rec5404373401, #rec5404375301, #rec5404377101, #rec5404380301, #rec5404387901, #rec5404389501, #rec5404391001, #rec5404393001, #rec5404393701) .t-catalog__card__btns-wrapper { gap: 4px !important; }
  :is(#rec5402480301, #rec5404373401, #rec5404375301, #rec5404377101, #rec5404380301, #rec5404387901, #rec5404389501, #rec5404391001, #rec5404393001, #rec5404393701) .t-catalog__card__btn:not(.t-catalog__card__btn_icon) { padding: 0 2px !important; }
  :is(#rec5402480301, #rec5404373401, #rec5404375301, #rec5404377101, #rec5404380301, #rec5404387901, #rec5404389501, #rec5404391001, #rec5404393001, #rec5404393701) .t-catalog__card__btn:not(.t-catalog__card__btn_icon) .t-btnflex__text { font-size: 12px !important; }
}
/* 18.11 store: монохромная палитра ST340 (фон #F2F2F2, кнопки #2B2B2B/#000, вторая — рамка #2B2B2B, hover #E6E6E6).
   Перекрывает золото/бордо из блока карточек выше и цвета кнопок 17.11; размеры кнопок 17.11 не трогаем.
   Красный #D8432F — только цена распродажи и метка. Заголовки витрин и попапа — Golos Text 600 без засечек. */
.t1291,
.t1291 .t-catalog__cont-wrapper,
.t1291 .t-catalog__grid-cont { background-color: #F2F2F2; }
.t1291 .t-catalog__card { color: #1C1C1C; }
.t1291 .t-catalog__card__imgwrapper { background-color: #E6E6E6; }
.t1291 .t-catalog__card__mark { border-color: #D8432F; background-color: #D8432F !important; color: #FFFFFF !important; }
.t1291 .t-catalog__card__title { color: #1C1C1C !important; font-family: 'Golos Text', 'Inter', sans-serif !important; }
.t1291 .t-catalog__card__title::after { background: #1C1C1C; }
.t1291 .t-catalog__card__descr,
.t1291 .t-catalog__card__sku { color: #6B6B6B !important; }
.t1291 .t-catalog__card__price,
.t1291 .t-catalog__card__price-value,
.t1291 .t-catalog__card__price-currency { color: #1C1C1C !important; font-family: 'Golos Text', 'Inter', sans-serif !important; font-weight: 600 !important; }
.t1291 .t-catalog__card__price_old,
.t1291 .t-catalog__card__price_old .t-catalog__card__price-value,
.t1291 .t-catalog__card__price_old .t-catalog__card__price-currency { color: #6B6B6B !important; font-weight: 400 !important; }
/* цена распродажи — красная, когда у карточки есть старая цена */
.t1291 .js-catalog-price-wrapper:has(.js-catalog-prod-price-old-val:not(:empty)) > .t-catalog__card__price:not(.t-catalog__card__price_old),
.t1291 .js-catalog-price-wrapper:has(.js-catalog-prod-price-old-val:not(:empty)) > .t-catalog__card__price:not(.t-catalog__card__price_old) * { color: #D8432F !important; }
.t1291 .t-catalog__price-wrapper:has(.js-store-prod-price-old-val:not(:empty)) .js-store-prod-price:not(.t-store__prod-popup__price_old),
.t1291 .t-catalog__price-wrapper:has(.js-store-prod-price-old-val:not(:empty)) .js-store-prod-price:not(.t-store__prod-popup__price_old) * { color: #D8432F !important; }

/* кнопки карточки и попапа */
#allrecords .t1291 .t-catalog__card__btn,
#allrecords .t1291 .t-catalog__prod-popup__btn { border-color: #2B2B2B !important; background-color: #2B2B2B !important; color: #FFFFFF !important; }
#allrecords .t1291 .t-catalog__card__btn:hover,
#allrecords .t1291 .t-catalog__card__btn:focus-visible,
#allrecords .t1291 .t-catalog__prod-popup__btn:hover,
#allrecords .t1291 .t-catalog__prod-popup__btn:focus-visible { border-color: #000000 !important; background-color: #000000 !important; color: #FFFFFF !important; }
#allrecords .t1291 .t-catalog__card__btn:focus-visible,
#allrecords .t1291 .t-catalog__prod-popup__btn:focus-visible { outline: 2px solid #1C1C1C; outline-offset: 3px; }
#allrecords .t1291 .t-catalog__card__btns-wrapper .t-catalog__card__btn:nth-child(2),
#allrecords .t1291 .t-catalog__card__btns-wrapper .t-catalog__card__btn_second { border-color: #2B2B2B !important; background-color: transparent !important; color: #1C1C1C !important; }
#allrecords .t1291 .t-catalog__card__btns-wrapper .t-catalog__card__btn:nth-child(2):hover,
#allrecords .t1291 .t-catalog__card__btns-wrapper .t-catalog__card__btn:nth-child(2):focus-visible,
#allrecords .t1291 .t-catalog__card__btns-wrapper .t-catalog__card__btn_second:hover,
#allrecords .t1291 .t-catalog__card__btns-wrapper .t-catalog__card__btn_second:focus-visible { border-color: #2B2B2B !important; background-color: #E6E6E6 !important; color: #1C1C1C !important; }

/* заголовок раздела витрины и тексты попапа — строгий гротеск */
.t1291 .t-section__title { font-family: 'Golos Text', 'Inter', sans-serif !important; font-weight: 600 !important; color: #1C1C1C !important; letter-spacing: -0.01em; }
.t1291 .t-section__descr { font-family: 'Golos Text', 'Inter', sans-serif !important; color: #6B6B6B !important; }
.t1291 .t-catalog__product-popup .js-product-name,
.t1291 .t-catalog__product-popup .t-name,
.t1291 .t-catalog__product-popup .t-descr,
.t1291 .t-catalog__product-popup .t-text { font-family: 'Golos Text', 'Inter', sans-serif !important; color: #1C1C1C; }
.t1291 .t-catalog__product-popup .js-product-name { font-weight: 600 !important; }
/* артикул у нас — служебный slug (wine-festival), покупателю не показываем; в корзину он по-прежнему уходит */
.t1291 .t-catalog__prod-popup__sku { display: none !important; }
/* фон всего блока витрины, включая padding .t-rec (90/45/120 px) — без белых полос между разделами */
:is(#rec5402480301, #rec5404373401, #rec5404375301, #rec5404377101, #rec5404380301, #rec5404387901, #rec5404389501, #rec5404391001, #rec5404393001, #rec5404393701) { background-color: #F2F2F2; }
/* /18.11 store */

/* 19.11 главная: плавающая круглая иконка корзины T706 скрыта — в шапке своя корзина с бейджем (#opencart). Корзина открывается из шапки как раньше. */
.t706__carticon { display: none !important; }
