/* Дополнительные стили поверх шаблона 1С (tailwind.css) */

/* Стили для виджета новостей (posts_list) — страниц новостей в шаблоне нет */
.post-date-1c { color: #6f6f6f; margin-bottom: 24px; }

/* Логотип в шапке: масштабируется на узких экранах */
.logo-1c { max-width: 100%; height: auto; }

/* Мобильная шапка: кнопка «Заказать звонок» и меню */
@media (max-width: 991px) {
  .top-bar-right { right: 6px; }
  .header-callback { font-size: 11px; }
}
@media (max-width: 767px) {
  .header-bottom { min-height: 0; }
  .header-bottom .inner { min-height: 0; flex-wrap: wrap; }
}

/* Списочный вид каталога (viewlist) */
/* Мобильный (<768px): карточки на всю ширину столбиком (как в шаблоне) */
@media (max-width: 767px) {
  .catalog #mse2_results.viewlist > div { width: 100% !important; }
}
/* Десктоп (>=768px): строка с картинкой слева, без обрезки и растяжения */
@media (min-width: 768px) {
  .catalog #mse2_results.viewlist .element { padding-left: 280px; min-height: 260px; }
  .catalog #mse2_results.viewlist .element .img-wrapper { width: 260px; height: 260px; overflow: hidden; padding: 0; display: flex; align-items: center; justify-content: center; }
  .catalog #mse2_results.viewlist .element .img-wrapper img { width: auto; height: auto !important; max-width: 100%; max-height: 100%; }
}

/* Краткое описание товара: в сетке скрыто, в списочном виде показано */
.catalog .element .element-short-desc { display: none; }
.catalog #mse2_results.viewlist .element .element-short-desc { display: block; color: #666; font-size: 13px; line-height: 1.5; margin-top: 8px; }

/* Новости (виджет posts_list) */
.news .item { background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 24px; border: 1px solid #e6e6e6; box-shadow: 0 1px 3px rgba(0,0,0,0.06); position: relative; transition: all 0.3s; height: 100%; }
.news .item:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
.news .item a.absolute { position: absolute; inset: 0; z-index: 2; }
.news .item-img { position: relative; height: 180px; background: linear-gradient(135deg, #373d44, #424f60); }
.news .item-img-inner img { width: 100%; height: 100%; object-fit: cover; }
.news .item-date { position: absolute; top: 12px; left: 12px; background: rgba(55,61,68,0.9); color: #fff; border-radius: 8px; padding: 6px 10px; text-align: center; line-height: 1.2; z-index: 3; }
.news .item-date .day { font-size: 1.2rem; font-weight: 800; }
.news .item-date .month_year { font-size: 0.7rem; text-transform: uppercase; opacity: 0.85; }
.news .item-title { padding: 16px 16px 4px; font-weight: 700; color: #222; font-size: 1.05rem; }
.news .item-title-anons { padding: 0 16px; color: #666; font-size: 0.92rem; min-height: 42px; }
.news .item-btn { display: inline-block; margin: 12px 16px 16px; color: #b98a0a; font-weight: 600; font-size: 0.92rem; }
.news .item-btn:hover { color: #f7b70b; }

/* Корзина / оформление заказа / личный кабинет (модуль shop) */
.cart-body { margin-bottom: 20px; }
.cart-body .table { width: 100%; }
.cart-body table { width: 100%; border-collapse: collapse; background: #fff; }
.cart-body th, .cart-body td { padding: 10px 12px; border-bottom: 1px solid #e6e6e6; text-align: left; font-size: 0.95rem; }
.cart-body th { background: #f6f6f7; font-weight: 600; }
.form-control, .input-group input { height: 45px; padding: 0 15px; font-size: 13px; border: 1px solid #c7c7c7; margin-bottom: 10px; width: 100%; border-radius: 0; background: #fff; color: #222; }
textarea.form-control { height: auto; min-height: 120px; padding-top: 10px; resize: none; }
.label { font-size: 13px; color: #333; }
.account-wrapper, .account-panel { background: #fff; padding: 24px; border: 1px solid #e6e6e6; }
