/* Блог electri4ka — темна тема */
body.blog-page { background: #0d0d0d !important; }
body.blog-page #content { background: transparent !important; }
#blog-blog, #blog-category, #blog-article { color: #e6e6e6; padding-top: 20px; padding-bottom: 40px; background: transparent; }
#blog-blog h1, #blog-category h1, #blog-article h1 { color: #fff; }
#blog-article .blog-content { color: #cfcfcf; line-height: 1.7; font-size: 16px; }
#blog-article .blog-content h2,
#blog-article .blog-content h3 { color: #fff; margin-top: 28px; margin-bottom: 12px; }
#blog-article .blog-content p { margin-bottom: 14px; }
#blog-article .blog-content a { color: #4ea1ff; }
/* Списки в тексті статті (тема глобально скидає маркери — повертаємо) */
#blog-article .blog-content ul,
#blog-article .blog-content ol { margin: 0 0 16px; padding-left: 24px; }
#blog-article .blog-content ul { list-style: disc; }
#blog-article .blog-content ol { list-style: decimal; }
#blog-article .blog-content li { display: list-item; margin-bottom: 8px; line-height: 1.6; }
#blog-article .blog-content ul ul,
#blog-article .blog-content ol ol,
#blog-article .blog-content ul ol,
#blog-article .blog-content ol ul { margin: 8px 0; }

/* Хлібні крихти */
#blog-blog .breadcrumb, #blog-category .breadcrumb, #blog-article .breadcrumb {
  background: transparent; padding-left: 0;
}
#blog-blog .breadcrumb > li > a,
#blog-category .breadcrumb > li > a,
#blog-article .breadcrumb > li > a { color: #9a9a9a; }

/* Hero-банер блогу (на весь екран) */
.blog-hero {
  position: relative; width: 100vw; margin-left: calc(-50vw + 50%); margin-top: -20px; margin-bottom: 30px;
  min-height: 48vh; background-size: cover; background-position: center; display: flex; align-items: center;
}
.blog-hero:before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,13,.15) 0%, rgba(13,13,13,.55) 60%, #0d0d0d 100%); }
.blog-hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1230px; margin: 0 auto; padding: 0 20px 56px; }
.blog-hero__inner h1 { color: #fff; font-size: 48px; line-height: 1.1; margin: 0 0 12px; font-weight: 700; }
.blog-hero__inner p { color: #e0e0e0; font-size: 18px; max-width: 640px; margin: 0; }
.blog-hero-breadcrumb { background: transparent !important; padding: 0 !important; margin: 0 0 14px !important; display: flex !important; flex-wrap: wrap; align-items: center; list-style: none; }
.blog-hero-breadcrumb > li { display: inline-flex !important; float: none !important; align-items: center; }
.blog-hero-breadcrumb > li, .blog-hero-breadcrumb > li > a { color: #e8e8e8 !important; text-shadow: 0 1px 3px rgba(0,0,0,.5); font-size: 14px; }
.blog-hero-breadcrumb > li > a:hover { color: #F6D375 !important; }
.blog-hero-breadcrumb > li + li:before { content: '/' !important; padding: 0 9px; color: #b0b0b0 !important; }
.blog-hero--article { min-height: 55vh; }
.blog-hero-date { color: #e0e0e0; font-size: 15px; margin-top: 10px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
@media (max-width: 991px) { .blog-hero--article { min-height: 42vh; } }
@media (max-width: 991px) { .blog-hero { min-height: 50vh; } .blog-hero__inner h1 { font-size: 34px; } }
@media (max-width: 600px) {
  .blog-hero { min-height: 210px; margin-top: 0; align-items: flex-end; background-position: center 35%; }
  .blog-hero__inner { padding: 16px 16px 18px; }
  .blog-hero__inner h1 { font-size: 26px; margin-bottom: 6px; }
  .blog-hero__inner p { font-size: 14px; line-height: 1.5; }
  .blog-hero-breadcrumb { font-size: 12px; margin-bottom: 8px !important; }
  /* на сторінці статті остання крихта = назва (дублює h1) — ховаємо на моб */
  .blog-hero--article .blog-hero-breadcrumb > li:last-child { display: none; }
}

/* ── Головна блогу: зручний моб-вигляд ── */
@media (max-width: 600px) {
  #blog-blog { padding-top: 0; }
  .blog-filter { margin-bottom: 22px; }
  .blog-filter-form { gap: 10px; margin-bottom: 14px; }

  /* кнопка згортання/розгортання фільтра */
  .blog-filter .blog-filter-toggle {
    display: flex; align-items: center; gap: 9px; width: 100%;
    background: #1b1b1b; border: 1px solid #2c2c2c; color: #fff;
    padding: 13px 16px; border-radius: 10px; font-size: 15px; font-weight: 600;
    cursor: pointer; text-align: left;
  }
  .blog-filter-toggle-ic { color: #F6D375; font-size: 16px; }
  .blog-filter-toggle-arrow { margin-left: auto; color: #F6D375; transition: transform .25s; }
  .blog-filter.filter-open .blog-filter-toggle-arrow { transform: rotate(180deg); }
  .blog-filter.filter-open .blog-filter-toggle {
    border-color: #F6D375; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  }
  .blog-filter-body {
    overflow: hidden; max-height: 0; opacity: 0; margin-top: 0;
    transition: max-height .3s ease, opacity .25s ease, margin-top .25s ease;
  }
  .blog-filter.filter-open .blog-filter-body { max-height: 600px; opacity: 1; margin-top: 12px; }

  /* пошук + сортування на всю ширину, крупні поля під палець */
  .blog-filter-search { width: 100%; flex: 1 1 100%; min-width: 0; }
  .blog-filter-search input { padding: 13px 14px; font-size: 15px; }
  .blog-filter-search button { padding: 13px 20px; font-size: 15px; white-space: nowrap; }
  .blog-sort { width: 100%; min-width: 0; }
  .blog-sort-btn { padding: 13px 38px 13px 14px; font-size: 15px; }
  .blog-sort-list li { padding: 12px 12px; }

  /* чіпи рубрик — горизонтальна стрічка зі свайпом замість 4 рядків */
  .blog-chips {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    gap: 8px; padding-bottom: 4px;
  }
  .blog-chips::-webkit-scrollbar { display: none; }
  .blog-chip { flex: 0 0 auto; white-space: nowrap; padding: 8px 16px; font-size: 13px; }

  /* картки стрічки */
  .blog-articles-grid { gap: 16px; }
  .blog-card .blog-card-body { padding: 14px 16px 16px; }
  .blog-card .blog-card-body h4 { font-size: 17px; line-height: 1.3; }
  .blog-card .blog-card-body p { font-size: 14px; line-height: 1.55; }
  .blog-card .blog-card-img img { aspect-ratio: 16/10; object-fit: cover; }
  .blog-card .site-btn { padding: 9px 22px !important; font-size: 13px !important; }

  /* бейджі трохи компактніше на вузькому екрані */
  .blog-badge { font-size: 10px; padding: 4px 9px; }
  .pagination { justify-content: center; flex-wrap: wrap; }
}

/* Фільтр блогу */
.blog-filter { margin: 0 0 28px; }
.blog-filter-toggle { display: none; }
.blog-filter-form { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.blog-filter-search { display: flex; flex: 1; min-width: 240px; }
.blog-filter-search input {
  flex: 1; background: #1b1b1b; border: 1px solid #2c2c2c; color: #fff;
  padding: 10px 14px; border-radius: 8px 0 0 8px; outline: none;
}
.blog-filter-search input::placeholder { color: #777; }
.blog-filter-search button {
  background: #F6D375; color: #111; border: none; padding: 10px 20px;
  border-radius: 0 8px 8px 0; font-weight: 600; cursor: pointer;
}
/* Кастомний дропдаун сортування (щоб не було синього системного) */
.blog-sort { position: relative; min-width: 200px; }
.blog-sort-btn {
  width: 100%; text-align: left; background: #1b1b1b; border: 1px solid #2c2c2c; color: #fff;
  padding: 10px 36px 10px 14px; border-radius: 8px; cursor: pointer; position: relative;
}
.blog-sort-btn:after { content: '▾'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #F6D375; }
.blog-sort.open .blog-sort-btn { border-color: #F6D375; }
.blog-sort-list {
  list-style: none; margin: 4px 0 0; padding: 6px; position: absolute; z-index: 30; left: 0; right: 0;
  background: #1b1b1b; border: 1px solid #2c2c2c; border-radius: 8px; display: none;
}
.blog-sort.open .blog-sort-list { display: block; }
.blog-sort-list li { padding: 9px 12px; border-radius: 6px; cursor: pointer; color: #cfcfcf; }
.blog-sort-list li:hover { background: #F6D375; color: #111; }
.blog-sort-list li.active { background: #2c2c2c; color: #F6D375; }
.blog-sort-list li.active:hover { background: #F6D375; color: #111; }
.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-chip {
  display: inline-block; padding: 7px 16px; border: 1px solid #2c2c2c;
  border-radius: 20px; color: #cfcfcf !important; text-decoration: none;
  font-size: 14px; transition: all .2s; background: #1b1b1b;
}
.blog-chip:hover { border-color: #F6D375; color: #F6D375 !important; }
.blog-chip.active { background: #F6D375; color: #111 !important; border-color: #F6D375; font-weight: 600; }

/* Сітка статей (власний grid, без bootstrap) */
.blog-articles-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.blog-articles-grid.cols-1 { grid-template-columns: 1fr; }
.blog-articles-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.blog-articles-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.blog-articles-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.blog-articles-grid .blog-card { margin-bottom: 0; }
@media (max-width: 991px) { .blog-articles-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { .blog-articles-grid { grid-template-columns: 1fr !important; } }

/* Список статей */
.blog-articles-list { display: flex; flex-direction: column; gap: 0; }
.blog-articles-list .blog-row { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #2c2c2c; }
.blog-articles-list .blog-row .blog-row-img { flex: 0 0 240px; }
.blog-articles-list .blog-row .blog-row-img img { width: 100%; border-radius: 8px; }
.blog-articles-list .blog-row .blog-row-body { flex: 1; }
.blog-articles-list .blog-row h4 { margin: 4px 0 8px; }
.blog-articles-list .blog-row h4 a { color: #fff; }
.blog-articles-list .blog-row p { color: #9a9a9a; }
@media (max-width: 600px) { .blog-articles-list .blog-row { flex-direction: column; } .blog-articles-list .blog-row .blog-row-img { flex: none; } }

/* Кнопка "Читати далі" — фірмовий стиль теми (.site-btn) */
.blog-card .site-btn, .blog-row .site-btn {
  margin-top: 14px; align-self: flex-start; display: inline-block; text-decoration: none;
  padding: 6px 25px !important; font-size: 12px !important; font-weight: 600 !important; line-height: 1.4 !important;
  color: #18181B !important; background-color: #EDCC72 !important; border: 1px solid #EDCC72 !important;
  border-radius: 24px !important; transition: 0.3s; min-width: 0 !important; min-height: 0 !important; height: auto !important; width: auto !important;
}
.blog-card .site-btn:hover, .blog-row .site-btn:hover { background-color: #fff !important; color: #18181B !important; border-color: #fff !important; }

/* Бейджі на картинці картки */
.blog-card-media { position: relative; }
.blog-card-img, .blog-articles-list .blog-row-img > a { position: relative; display: block; }
a.blog-badge--tag { text-decoration: none; cursor: pointer; transition: all .15s; }
a.blog-badge--tag:hover { background: #F6D375; color: #111; }
.blog-badge {
  position: absolute; top: 10px; z-index: 2; padding: 5px 11px; border-radius: 12px;
  font-size: 11px; font-weight: 600; line-height: 1.25; max-width: 62%;
  white-space: normal; word-break: break-word;
}
.blog-badge--left  { left: 10px;  background: rgba(246,211,117,.95); color: #111; }
.blog-badge--right { right: 10px; background: rgba(0,0,0,.72); color: #fff; }
/* теги статті справа стовпчиком на картинці */
.blog-badge-tags { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; max-width: 75%; }
.blog-badge--tag { position: static; background: rgba(0,0,0,.72); color: #fff; max-width: 100%; overflow: visible; text-overflow: clip; }
/* теги у варіанті списком — під описом */
.blog-row-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.blog-tag-link.blog-tag-link--cat { background: #F6D375; color: #111 !important; border-color: #F6D375 !important; font-weight: 600; }

/* Теги статті (на сторінці статті) */
.blog-tags { margin: 26px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.blog-tag-link { display: inline-block; padding: 6px 14px; border: 1px solid #2c2c2c; border-radius: 16px; color: #cfcfcf !important; font-size: 14px; text-decoration: none; }
.blog-tag-link:hover { border-color: #F6D375; color: #F6D375 !important; }

/* Картки */
.blog-card { background: #1b1b1b; border: 1px solid #2c2c2c !important; transition: border-color .2s, transform .2s; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.blog-card .blog-card-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }
.blog-card .blog-card-body h4 { font-size: 16px; margin: 6px 0 8px; }
.blog-card .blog-card-body p { flex: 1; }
.blog-card .blog-card-img img { width: 100%; display: block; }
.blog-card:hover { border-color: #444 !important; transform: translateY(-3px); }
.blog-card h4 a { color: #fff !important; }
.blog-card p { color: #9a9a9a !important; }
.blog-card .blog-date, .blog-grid .blog-date { color: #888 !important; }

/* Список статей у рубриці */
#blog-category .blog-list .row { border-bottom: 1px solid #2c2c2c !important; }
#blog-category .blog-list h4 a { color: #fff !important; }
#blog-category .blog-list p { color: #9a9a9a !important; }

/* Дата */
.blog-meta-date { color: #888 !important; }

/* Блок товарів у статті */
#blog-article h3 { color: #fff; margin: 38px 0 20px; font-size: 22px; }

/* Сітка/плитка */
.blog-products-grid { display: flex; flex-wrap: wrap; }
.blog-products-grid .blog-prod-col { margin-bottom: 20px; display: flex; }
.blog-prod {
  background: #1b1b1b; border: 1px solid #2c2c2c; border-radius: 10px;
  padding: 16px; width: 100%; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.blog-prod:hover { border-color: #4ea1ff; transform: translateY(-3px); }
.blog-prod .blog-prod-img { display: block; height: 150px; margin-bottom: 14px; }
.blog-prod .blog-prod-img img { max-height: 150px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.blog-prod .blog-prod-name { flex: 1 1 auto; margin-bottom: 10px; }
.blog-prod .blog-prod-name a { color: #fff !important; font-size: 14px; line-height: 1.35; display: block; }
.blog-prod .blog-prod-name a:hover { color: #4ea1ff !important; }
.blog-prod .price { color: #ff5a5f; font-weight: 700; font-size: 16px; }
.blog-prod .blog-prod-btn { margin-top: 10px; }

/* Список */
.blog-products-list .blog-prod-row {
  display: flex; align-items: center; gap: 16px;
  background: #1b1b1b; border: 1px solid #2c2c2c; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 12px;
}
.blog-products-list .blog-prod-row:hover { border-color: #4ea1ff; }
.blog-products-list .blog-prod-row img { width: 90px; height: 70px; object-fit: contain; flex: 0 0 90px; }
.blog-products-list .blog-prod-row .name { flex: 1; }
.blog-products-list .blog-prod-row .name a { color: #fff !important; font-weight: 600; }
.blog-products-list .blog-prod-row .price { color: #ff5a5f; font-weight: 700; white-space: nowrap; }

@media (max-width: 767px) {
  .blog-prod .blog-prod-img, .blog-prod .blog-prod-img img { height: 120px; max-height: 120px; }
}

/* Список товарів у статті — стиль каталогу, видно й на мобільному (без category-desctop теми) */
#blog-article .blog-car-list { list-style: none; margin: 0 0 10px; padding: 0; display: block; }
#blog-article .blog-car-list .mob-name { display: flex; align-items: center; }
#blog-article .blog-car-list .car-list_item-title img { width: 40px; margin-right: 10px; }

/* Кнопка "вгору" */
.blog-totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  background: #F6D375; color: #111; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
  -webkit-appearance: none; padding: 0;
}
.blog-totop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.blog-totop:hover { background: #EDCC72; }
@media (max-width: 600px) { .blog-totop { right: 14px; bottom: 14px; width: 44px; height: 44px; } }

/* FAQ-аккордеон на товарі */
.blog-faq .faq-item { border: 1px solid #2c2c2c; border-radius: 6px; margin-bottom: 10px; background: #1b1b1b; }
.blog-faq .faq-q { padding: 14px 18px; cursor: pointer; color: #fff; font-weight: 600; position: relative; }
.blog-faq .faq-q:after { content: '+'; position: absolute; right: 18px; color: #4ea1ff; font-size: 20px; }
.blog-faq .faq-item.open .faq-q:after { content: '\2212'; }
.blog-faq .faq-a { padding: 0 18px 16px; color: #cfcfcf; display: none; }
.blog-faq .faq-item.open .faq-a { display: block; }
