/* ============================================
   RIFAR.COM.RU — новый дизайн главной
   Тема: rifar_new_al | Все классы с префиксом rf-
   ============================================ */

:root {
  --rf-red: #e2231a;
  --rf-red-dark: #b31008;
  --rf-dark: #14161a;
  --rf-dark2: #1d2026;
  --rf-text: #23262b;
  --rf-muted: #6b7078;
  --rf-bg: #f6f7f9;
}

/* ---------- Сброс для новых блоков ---------- */
.rf-hero, .rf-conditions, .rf-catalog, .rf-actual,
.rf-calc, .rf-stats, .rf-footer,
.rf-promo, .rf-header {
  box-sizing: border-box;
}
.rf-hero *, .rf-conditions *, .rf-catalog *, .rf-actual *,
.rf-calc *, .rf-stats *, .rf-footer *, .rf-promo *, .rf-header * {
  box-sizing: border-box;
}

/* ---------- Шапка ---------- */
.rf-promo {
  background: var(--rf-dark);
  color: #fff;
  font-size: 13px;
  padding: 7px 0;
}
.rf-promo .rf-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}
.rf-promo b { color: #ff6f66; }

.rf-header {
  background: #fff;
  border-bottom: 1px solid #ececf0;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}
.rf-header .rf-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.rf-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.rf-logo-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--rf-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; font-family: Arial, sans-serif;
}
.rf-logo-name { font-weight: 800; font-size: 20px; color: var(--rf-text); line-height: 1.1; }
.rf-logo-sub { font-size: 11px; color: var(--rf-muted); }

.rf-header-phone { font-weight: 700; color: var(--rf-text); font-size: 16px; white-space: nowrap; text-decoration: none; }
.rf-header-phone span { display: block; font-size: 11px; color: var(--rf-muted); font-weight: 400; }

.rf-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  border: 1.5px solid #e3e4e8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.rf-search input {
  flex: 1; border: none; outline: none;
  padding: 10px 14px; font-size: 14px; min-width: 0;
}
.rf-search button {
  border: none; background: var(--rf-dark); color: #fff;
  padding: 0 18px; cursor: pointer; font-size: 15px;
}
.rf-search button:hover { background: var(--rf-red); }

.rf-cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rf-red); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  white-space: nowrap;
}
.rf-cart-btn:hover { background: var(--rf-red-dark); color: #fff; }

/* ---------- Главное меню ---------- */
.rf-nav {
  background: var(--rf-dark);
  position: sticky;
  top: 71px;
  z-index: 999;
}
.rf-nav .rf-container { display: flex; flex-wrap: wrap; }
.rf-nav a {
  color: #d7d9dd; text-decoration: none;
  padding: 12px 16px; font-size: 14px; display: block;
  transition: color .15s, background .15s;
}
.rf-nav a:hover { color: #fff; background: rgba(226,35,26,0.18); }
.rf-nav .rf-nav-drop { position: relative; }
.rf-nav .rf-nav-drop > a::after { content: " ▾"; font-size: 10px; opacity: .7; }
.rf-nav .rf-drop-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--rf-dark2);
  min-width: 230px;
  padding: 6px 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  z-index: 1001;
}
.rf-nav .rf-nav-drop:hover .rf-drop-menu { display: block; }
.rf-nav .rf-drop-menu a { padding: 8px 16px; color: #c9ccd2; }
.rf-nav .rf-drop-menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* ---------- Общие секции ---------- */
.rf-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.rf-h2 { font-size: 30px; font-weight: 800; color: var(--rf-text); margin: 0 0 8px; line-height: 1.2; }
.rf-h2-light { color: #fff; }
.rf-sub { color: var(--rf-muted); font-size: 15px; margin: 0 0 30px; }
.rf-sub-light { color: #b9bdc4; }

.rf-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .15s;
}
.rf-btn:active { transform: translateY(1px); }
.rf-btn-primary { background: var(--rf-red); color: #fff; }
.rf-btn-primary:hover { background: var(--rf-red-dark); color: #fff; text-decoration: none; }
.rf-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.rf-btn-ghost:hover { border-color: #fff; color: #fff; text-decoration: none; }
.rf-btn-white { background: #fff; color: var(--rf-red); }
.rf-btn-white:hover { background: #ffe9e7; color: var(--rf-red); text-decoration: none; }

/* ---------- Hero ---------- */
.rf-hero {
  background: radial-gradient(1100px 500px at 80% -10%, rgba(226,35,26,0.35), transparent 60%),
              linear-gradient(135deg, #1a1d22 0%, #101216 100%);
  color: #fff;
  padding: 70px 0;
}
.rf-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.rf-hero-badge {
  display: inline-block;
  background: rgba(226,35,26,0.16);
  border: 1px solid rgba(226,35,26,0.45);
  color: #ff9a93;
  border-radius: 999px;
  font-size: 13px;
  padding: 7px 16px;
  margin-bottom: 22px;
}
.rf-hero-title { font-size: 44px; font-weight: 800; line-height: 1.12; margin: 0 0 20px; }
.rf-hero-desc { color: #b9bdc4; font-size: 17px; line-height: 1.6; margin: 0 0 30px; max-width: 520px; }
.rf-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.rf-hero-visual { display: flex; justify-content: center; }
.rf-hero-svg { width: 100%; max-width: 420px; height: auto; filter: drop-shadow(0 20px 40px rgba(226,35,26,0.25)); }

/* ---------- Условия ---------- */
.rf-conditions { background: var(--rf-bg); padding: 46px 0; }
.rf-cond-title { font-size: 20px; font-weight: 700; color: var(--rf-text); margin: 0 0 22px; }
.rf-cond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rf-cond-item {
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 14px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--rf-text);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.rf-cond-num {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--rf-red); color: #fff;
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Каталог ---------- */
.rf-catalog { padding: 60px 0; }
.rf-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rf-cat-card {
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 16px;
  padding: 26px 22px;
  text-decoration: none;
  display: flex; flex-direction: column;
  position: relative;
  transition: box-shadow .2s, transform .2s;
  overflow: hidden;
}
.rf-cat-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--rf-red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s;
}
.rf-cat-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.09); transform: translateY(-3px); text-decoration: none; }
.rf-cat-card:hover::before { transform: scaleX(1); }
.rf-cat-ico {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: #fdeceb; color: var(--rf-red);
  font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.rf-cat-name { font-weight: 700; font-size: 17px; color: var(--rf-text); margin-bottom: 10px; }
.rf-cat-text { font-size: 13.5px; color: var(--rf-muted); line-height: 1.55; margin-bottom: 18px; }
.rf-cat-link { margin-top: auto; color: var(--rf-red); font-weight: 700; font-size: 14px; }

/* ---------- Актуально сегодня ---------- */
.rf-actual { background: var(--rf-bg); padding: 60px 0; }
.rf-actual .product-layout { margin-bottom: 24px; }
.rf-actual .product-thumb {
  background: #fff; border: 1px solid #ececf0; border-radius: 16px;
  overflow: hidden; height: auto; position: static;
  transition: box-shadow .2s;
}
.rf-actual .product-thumb:hover { box-shadow: 0 14px 36px rgba(0,0,0,0.10); }
.rf-actual .product-thumb .image { height: auto; margin: 0; text-align: center; padding: 18px 18px 0; }
.rf-actual .product-thumb .image img { max-height: 220px; width: auto; margin: 0 auto; }
.rf-actual .prod-info-block { position: static; margin: 0; padding: 14px 18px 0; }
.rf-actual .prod-info-block h4 { color: var(--rf-text); font-size: 15px; line-height: 1.35; margin: 0 0 6px; }
.rf-actual .prod-info-block p { display: none; }
.rf-actual .product-thumb .caption { position: static; padding: 0 18px 12px; margin: 0; height: auto; }
.rf-actual .product-thumb .caption .price {
  color: var(--rf-red); font-size: 20px; font-weight: 800;
  margin: 8px 0 6px; padding: 0; text-align: left;
}
.rf-actual .product-thumb .caption .price-old { color: var(--rf-muted); font-size: 14px; font-weight: 400; text-decoration: line-through; }
.rf-actual .product-thumb .caption .price-new { font-size: 20px; }
.rf-actual .product-thumb .button-group {
  position: static; opacity: 1; display: block; border-radius: 0; border: none; border-top: 1px solid #f0f0f3;
}
.rf-actual .product-thumb .button-group button {
  width: 100%; height: 46px; border: none; background: var(--rf-red);
  color: #fff; font-weight: 700; font-size: 14px; border-radius: 0;
}
.rf-actual .product-thumb .button-group button:hover { background: var(--rf-red-dark); }
.rf-actual .product-thumb .button-group button + button { display: none; }

/* ---------- Калькулятор ---------- */
.rf-calc {
  background: linear-gradient(135deg, var(--rf-dark) 0%, #26130f 100%);
  padding: 70px 0;
  color: #fff;
}
.rf-calc-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.rf-field { margin-bottom: 18px; }
.rf-field label { display: block; font-size: 13px; color: #b9bdc4; margin-bottom: 7px; font-weight: 600; }
.rf-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color .15s;
}
.rf-input:focus { border-color: var(--rf-red); }
.rf-input option { color: #222; }
.rf-calc-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 34px;
  backdrop-filter: blur(6px);
}
.rf-calc-label { font-size: 13px; color: #b9bdc4; margin-bottom: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.rf-calc-count { font-size: 46px; font-weight: 800; color: var(--rf-red); line-height: 1.1; margin-bottom: 8px; }
.rf-calc-power { font-size: 16px; color: #d7d9dd; margin-bottom: 20px; }
.rf-calc-note { font-size: 13.5px; color: #9aa0a8; line-height: 1.55; margin: 0 0 22px; }

/* ---------- Статистика ---------- */
.rf-stats { padding: 60px 0; background: #fff; }
.rf-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.rf-stat { font-size: 14px; color: var(--rf-muted); line-height: 1.55; }
.rf-stat-num { display: block; font-size: 24px; font-weight: 800; color: var(--rf-red); margin-bottom: 8px; }

/* ---------- Футер ---------- */
.rf-footer { background: var(--rf-dark); color: #9aa0a8; padding: 56px 0 0; font-size: 14px; }
.rf-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.rf-footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 16px; }
.rf-footer a { color: #9aa0a8; text-decoration: none; }
.rf-footer a:hover { color: #fff; }
.rf-footer ul { list-style: none; padding: 0; margin: 0; }
.rf-footer ul li { margin-bottom: 10px; }
.rf-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.rf-footer-text { line-height: 1.6; }
.rf-footer-phone { color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; display: inline-block; margin-bottom: 10px; }
.rf-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding: 20px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Адаптив ---------- */
@media (max-width: 991px) {
  .rf-hero-grid, .rf-calc-grid { grid-template-columns: 1fr; }
  .rf-hero-title { font-size: 34px; }
  .rf-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .rf-cond-grid { grid-template-columns: 1fr; }
  .rf-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .rf-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .rf-nav { position: static; }
  .rf-header .rf-container { flex-wrap: wrap; }
  .rf-search { order: 10; min-width: 100%; }
}
@media (max-width: 575px) {
  .rf-hero { padding: 44px 0; }
  .rf-hero-title { font-size: 28px; }
  .rf-cat-grid, .rf-stats-grid { grid-template-columns: 1fr; }
  .rf-footer-grid { grid-template-columns: 1fr; }
  .rf-h2 { font-size: 24px; }
  .rf-calc-count { font-size: 36px; }
  .rf-logo-sub { display: none; }
}
/* ==== Патч 2: шапка, поиск, корзина, «Актуально сегодня» ==== */
.rf-header-phones { text-align: right; line-height: 1.25; }
.rf-header-phones .rf-header-phone { color:#23262b; font-weight:700; font-size:16px; text-decoration:none; white-space:nowrap; }
.rf-header-phones span { display:block; font-size:11px; color:#6b7078; }

.rf-header-search { flex:1 1 auto; max-width:430px; min-width:180px; }
.rf-header-search #search { margin:0; }
.rf-header-search #search .input-lg { height:42px; border:1.5px solid #e3e4e8; border-right:0; border-radius:10px 0 0 10px; box-shadow:none; font-size:14px; color:#23262b; }
.rf-header-search #search .input-group-btn { width:1%; }
.rf-header-search #search .btn-lg { height:42px; padding:0 18px; background:#14161a; color:#fff; border:1.5px solid #14161a; border-radius:0 10px 10px 0; text-shadow:none; }
.rf-header-search #search .btn-lg:hover { background:#e2231a; border-color:#e2231a; }

.rf-header-cart { flex:0 0 auto; }
.rf-header-cart #cart { margin:0; }
.rf-header-cart #cart > .btn { background:#e2231a; border:0; color:#fff; text-shadow:none; box-shadow:none; font-size:14px; font-weight:600; padding:12px 18px; border-radius:10px; white-space:nowrap; }
.rf-header-cart #cart.open > .btn,
.rf-header-cart #cart > .btn:hover { background:#b31008; color:#fff; border:0; box-shadow:none; }
.rf-header-cart #cart .dropdown-menu { background:#fff; border:0; border-radius:12px; box-shadow:0 16px 40px rgba(0,0,0,.15); }
.rf-header-cart #cart .dropdown-menu li > div { min-width:320px; padding:10px; }

/* Секция «Актуально сегодня»: карусель, дубль заголовка, сетка товаров */
.rf-actual > .rf-container > h3 { display:none; }
.rf-actual > .rf-container > .col-md-4 { display:none; }
.rf-actual #banner0 { margin:0 0 30px; }
.rf-actual #banner0 .item img { border-radius:16px; }
.rf-actual .row { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:0; }
.rf-actual .product-layout { float:none; width:auto; margin:0; padding:0; }
.rf-actual .product-thumb { display:flex; flex-direction:column; height:100%; position:static; margin:0; background:#fff; border:1px solid #ececf0; border-radius:16px; overflow:hidden; }
.rf-actual .product-thumb .image { float:none; height:auto; margin:0; padding:16px 16px 0; text-align:center; }
.rf-actual .product-thumb .image img { max-height:200px; width:auto; margin:0 auto; }
.rf-actual .product-thumb > a { display:block; color:inherit; text-decoration:none; flex:1; }
.rf-actual .prod-info-block { float:none; position:static; margin:0; padding:12px 16px 0; }
.rf-actual .prod-info-block h4 { color:#23262b; font-size:15px; line-height:1.35; margin:0 0 6px; font-weight:700; }
.rf-actual .prod-info-block p { display:none; }
.rf-actual .caption { position:static; float:none; height:auto; margin:0; padding:0 16px 14px; }
.rf-actual .caption .price { color:#e2231a; font-size:20px; font-weight:800; margin:8px 0 0; }
.rf-actual .button-group { position:static; opacity:1; display:block; border:0; border-top:1px solid #f0f0f3; border-radius:0; }
.rf-actual .button-group button { width:100%; height:46px; border:0; background:#e2231a; color:#fff; font-weight:700; border-radius:0; }
.rf-actual .button-group button + button { display:none; }
@media (max-width:991px){ .rf-actual .row { grid-template-columns:repeat(2,1fr); } }
@media (max-width:575px){ .rf-actual .row { grid-template-columns:1fr; } }
/* Убираем bootstrap-распорки внутри grid-сетки */
.rf-actual .row::before, .rf-actual .row::after { content: none; display: none; }
/* ============================================
   ВНУТРЕННИЕ СТРАНИЦЫ — единый стиль с главной
   ============================================ */

/* Ссылки и акценты */
a:hover { color: var(--rf-red); }

/* Заголовки страниц */
#content h1, #content h2 {
  font-size: 28px; font-weight: 800; color: var(--rf-text); line-height: 1.2;
}

/* Хлебные крошки */
.breadcrumb {
  margin: 22px 0 10px; padding: 8px 0;
  background: transparent; border-radius: 0;
}
.breadcrumb li, .breadcrumb li a { color: var(--rf-muted); font-size: 13px; }
.breadcrumb li a:hover { color: var(--rf-red); }
.breadcrumb > li + li::before { content: "\2192"; color: #c8ccd2; }

/* Кнопки в стиле сайта */
.btn-primary, .btn-danger { background: var(--rf-red); border-color: var(--rf-red); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
  background: var(--rf-red-dark); border-color: var(--rf-red-dark);
}

/* Кнопка «В корзину» на странице товара */
#button-cart {
  background: var(--rf-red); border: none; border-radius: 10px;
  padding: 13px 40px; font-weight: 700; color: #fff; text-shadow: none;
}
#button-cart:hover { background: var(--rf-red-dark); color: #fff; }

/* Карточка товара в каталоге — как на главной */
.product-thumb {
  border: 1px solid #ececf0; border-radius: 16px; overflow: hidden;
  background: #fff; transition: box-shadow .2s, transform .2s;
}
.product-thumb:hover { box-shadow: 0 14px 36px rgba(0,0,0,.10); transform: translateY(-3px); }
.product-thumb .caption { color: var(--rf-text); }
.product-thumb .caption h4 a { color: var(--rf-text); }
.product-thumb .caption h4 a:hover { color: var(--rf-red); }
.product-thumb .caption .price { color: var(--rf-red); font-weight: 800; }
.product-thumb .button-group { border-top: 1px solid #f0f0f3; }
.product-thumb .button-group button { background: #fff; color: var(--rf-text); border: none; text-shadow: none; }
.product-thumb .button-group button:hover { background: var(--rf-red); color: #fff; }

/* Цена на странице товара */
#content .price { color: var(--rf-red); font-weight: 800; font-size: 26px; }

/* Формы */
.form-control:focus { border-color: var(--rf-red); box-shadow: 0 0 0 3px rgba(226,35,26,.12); }

/* Вкладки на карточке товара */
.nav-tabs > li > a { border-radius: 10px 10px 0 0; }
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus { background: var(--rf-red); border-color: var(--rf-red); color: #fff; }

/* Пагинация */
.pagination > li > a, .pagination > li > span {
  color: var(--rf-red); border-color: #ececf0; border-radius: 8px; margin: 0 3px;
}
.pagination > li > a:hover { background: #fdeceb; }
.pagination > .active > a, .pagination > .active > span {
  background: var(--rf-red); border-color: var(--rf-red); color: #fff;
}
/* ==== ОБЩИЕ ПРАВИЛА КОНТЕНТА (внутренние страницы) ==== */
#content ul { list-style: none; padding-left: 0; }
#content a { color: #23262b; text-decoration: none; }
#content a:hover { color: #e2231a; }
/* ==== СЕТКА ПОДКАТЕГОРИЙ (categ-thumb-list) ==== */
#content ul.categ-thumb-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
#content ul.categ-thumb-list li {
  float: none; width: auto; margin: 0; padding: 0;
}
#content ul.categ-thumb-list li a {
  display: flex; flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 16px;
  overflow: hidden;
  padding: 18px 14px;
  text-align: center;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
#content ul.categ-thumb-list li a:hover {
  box-shadow: 0 14px 36px rgba(0,0,0,.10);
  transform: translateY(-3px);
}
#content ul.categ-thumb-list li a img {
  display: block;
  width: auto; max-width: 100%;
  max-height: 190px;
  margin: 0 auto 14px;
}
#content ul.categ-thumb-list li a p.cat-head-sub {
  color: #23262b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: auto 0 0;
}
#content ul.categ-thumb-list li a:hover p.cat-head-sub {
  color: #e2231a;
}
@media (max-width:1199px){ #content ul.categ-thumb-list { grid-template-columns: repeat(3,1fr); } }
@media (max-width:991px){ #content ul.categ-thumb-list { grid-template-columns: repeat(2,1fr); } }
@media (max-width:575px){ #content ul.categ-thumb-list { grid-template-columns: 1fr; } }

/* Заголовок и крошки на внутренних страницах */
#content h2, #content h2 { font-size: 28px; font-weight: 800; color: #23262b; }
#content h3 { font-weight: 800; color: #23262b; }
ul.breadcrumb { list-style: none; margin: 20px 0 12px; padding: 0; }
ul.breadcrumb li { display: inline-block; }
ul.breadcrumb li a { color: #7a7f8a; font-size: 13px; }
ul.breadcrumb li a:hover { color: #e2231a; }
ul.breadcrumb li + li::before { content: "\2192"; color: #c8ccd2; padding: 0 8px; }
/* ==== СЕТКА ТОВАРОВ КАТАЛОГА (grid) ==== */
#content .row:has(> .product-layout) {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
  margin: 0;
}
#content .row:has(> .product-layout)::before,
#content .row:has(> .product-layout)::after { content: none; }

#content .product-layout {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

@media (max-width:1199px){ #content .row:has(> .product-layout){ grid-template-columns: repeat(3,1fr); } }
@media (max-width:991px){ #content .row:has(> .product-layout){ grid-template-columns: repeat(2,1fr); } }
@media (max-width:575px){ #content .row:has(> .product-layout){ grid-template-columns: 1fr; } }

/* карточка — колонкой, чтобы кнопка всегда прижималась к низу */
#content .product-thumb {
  background: #fff; border: 1px solid #ececf0; border-radius: 16px;
  overflow: hidden; margin: 0; height: 100%;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
#content .product-thumb:hover { box-shadow: 0 14px 36px rgba(0,0,0,.10); transform: translateY(-3px); }
#content .product-thumb > a { display: block; color: #23262b; flex: 1; }

#content .product-thumb .image,
#content .product-thumb .prod-info-block,
#content .product-thumb .caption { float: none; width: auto; margin: 0; }

#content .product-thumb .image { padding: 16px 16px 0; text-align: center; }
#content .product-thumb .image img { max-height: 190px; width: auto; margin: 0 auto; }

#content .product-thumb .prod-info-block { padding: 0 16px; }
#content .product-thumb .prod-info-block h4 {
  font-size: 15px; font-weight: 700; line-height: 1.35; margin: 10px 0 6px; color: #23262b;
}
#content .product-thumb .prod-info-block p {
  font-size: 13px; color: #6b7078; line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

#content .product-thumb .caption { padding: 0 16px 6px; }
#content .product-thumb .caption p.price {
  color: #e2231a; font-size: 19px; font-weight: 800; margin: 8px 0 0;
}

#content .product-thumb .button-group {
  display: block; opacity: 1; position: static;
  border: 0; border-top: 1px solid #f0f0f3; border-radius: 0; background: #fff;
  margin-top: auto;
}
#content .product-thumb .button-group button {
  width: 100%; height: 46px; border: 0; background: #e2231a;
  color: #fff; font-weight: 700; border-radius: 0; text-shadow: none;
}
#content .product-thumb .button-group button:hover { background: #b31008; }
#content .product-thumb .button-group button + button { display: none; }

/* «Актуально сегодня» на главной остаётся 3 колонки */
.rf-actual .row { grid-template-columns: repeat(3,1fr) !important; }

/* ==== КАРТОЧКА ТОВАРА: миниатюры в ряд ==== */
#content ul.thumbnails {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#content ul.thumbnails::after { content: none; }
#content ul.thumbnails > li {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
/* главное фото — на всю ширину блока, миниатюры лягут под ним в один ряд */
#content ul.thumbnails > li:first-child {
  flex: 0 0 78%;
  max-width: 78%;
  margin: 0 auto;
  padding: 0;
}
#content ul.thumbnails > li a.thumbnail {
  display: block;
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 12px;
  padding: 6px;
}
#content ul.thumbnails > li a.thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}
/* размер миниатюр (если в разметке есть стандартный класс) */
#content ul.thumbnails > li.image-additional { flex: 0 0 84px; }
#content ul.thumbnails > li:not(:first-child) a.thumbnail { width: 84px; }
/* ==== ОПИСАНИЕ ТОВАРА: подсветка акции ==== */
#content .tab-content [style*="background" i] {
  background: #fdeceb !important;
  color: #b31008;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}
/* ==== КАРТОЧКА ТОВАРА: вкладки — серые ==== */
#content .nav-tabs {
  border-bottom: 1px solid #e3e4e8;
  margin-bottom: 20px;
}
#content .nav-tabs > li > a {
  background: #f2f3f5;
  color: #6b7078;
  border: 1px solid #e3e4e8;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  margin-right: 6px;
  font-weight: 600;
}
#content .nav-tabs > li > a:hover { background: #e9eaee; color: #23262b; }
#content .nav-tabs > li.active > a,
#content .nav-tabs > li.active > a:hover {
  background: #fff;
  color: #23262b;
  font-weight: 700;
}
/* ==== КОРЗИНА: кнопки — серые ==== */
body.checkout-cart .btn {
  background: #f2f3f5;
  color: #6b7078;
  border: 1px solid #e3e4e8;
  text-shadow: none;
  box-shadow: none;
  font-weight: 600;
  border-radius: 8px;
}
body.checkout-cart .btn:hover {
  background: #e9eaee;
  color: #23262b;
  border-color: #d8d9de;
}
body.checkout-cart .btn-primary,
body.checkout-cart .btn-danger {
  background: #f2f3f5 !important;
  color: #6b7078 !important;
  border: 1px solid #e3e4e8 !important;
}
body.checkout-cart .btn-primary:hover,
body.checkout-cart .btn-danger:hover {
  background: #e9eaee !important;
  color: #23262b !important;
}
/* ==== КОРЗИНА: кнопка удаления — красная ==== */
body.checkout-cart .btn-danger {
  background: #e2231a !important;
  color: #fff !important;
  border-color: #b31008 !important;
  text-shadow: none;
  box-shadow: none;
}
body.checkout-cart .btn-danger:hover {
  background: #b31008 !important;
  border-color: #b31008 !important;
}

/* ==== КОРЗИНА: отступ от низа страницы ==== */
body.checkout-cart #content { padding-bottom: 70px; }
/* ==== ШАПКА: подпись под названием, зазор перед корзиной ==== */
.rf-logo > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}
.rf-logo .rf-logo-sub { margin-top: 2px; }
.rf-header-cart { margin-left: 30px; }
/* ==== НУЖНА ПОМОЩЬ С ПОДБОРОМ ==== */
.rf-help {
  padding: 20px 0 60px;
  box-sizing: border-box;
}
.rf-help-inner {
  background: linear-gradient(135deg, #e2231a 0%, #b31008 100%);
  border-radius: 20px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.rf-help-title {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.2;
}
.rf-help-text {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}
.rf-help-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--rf-red);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}
.rf-help-phone:hover {
  background: #ffe9e7;
  color: var(--rf-red-dark);
  text-decoration: none;
  transform: translateY(-2px);
}
@media (max-width: 575px) {
  .rf-help-inner { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
}
/* ==== ОФОРМЛЕНИЕ ЗАКАЗА ==== */
/* кнопки — как в корзине, серые */
body.checkout-checkout .btn {
  background: #f2f3f5;
  color: #6b7078;
  border: 1px solid #e3e4e8;
  text-shadow: none;
  box-shadow: none;
  font-weight: 600;
  border-radius: 8px;
}
body.checkout-checkout .btn:hover {
  background: #e9eaee;
  color: #23262b;
  border-color: #d8d9de;
}
body.checkout-checkout .btn-primary {
  background: #f2f3f5 !important;
  color: #6b7078 !important;
  border: 1px solid #e3e4e8 !important;
}
body.checkout-checkout .btn-primary:hover {
  background: #e9eaee !important;
  color: #23262b !important;
}

/* блоки шагов */
body.checkout-checkout .panel {
  border: 1px solid #ececf0;
  border-radius: 12px;
  box-shadow: none;
  margin-bottom: 18px;
}
body.checkout-checkout .panel-heading {
  background: #f6f7f9;
  border-radius: 12px 12px 0 0;
  color: #23262b;
  font-weight: 700;
}
body.checkout-checkout .panel-title { font-size: 15px; }

/* формы */
body.checkout-checkout .form-control {
  border-radius: 8px;
  border-color: #e3e4e8;
  height: 42px;
}
body.checkout-checkout .form-control:focus {
  border-color: #e2231a;
  box-shadow: 0 0 0 3px rgba(226,35,26,.12);
}
body.checkout-checkout label { font-weight: 600; color: #23262b; }

/* отступ снизу, как в корзине */
body.checkout-checkout #content { padding-bottom: 70px; }
