/*
 * Estetroom — Rozetka pixel-perfect header v2
 * Approach: full replacement, hide CyberStore header, render new one
 */

:root {
  --er-green: #00BC52;
  --er-green-dark: #009941;
  --er-green-light: #ECF9F1;
  --er-text: #2d3436;
  --er-text-light: #7d8388;
  --er-border: #e1e3e6;
  --er-bg: #ffffff;
  --er-bg-soft: #f5f7fa;
  --er-yellow: #FFD600;
}

/* ===== HIDE original CyberStore header — we render Rozetka-style instead ===== */
nav#top,
header.h-type-2,
header.h-type-1,
header[class*="h-type"],
.htop-b-pc,
.htop-b-mob,
.fixed-menu-t2,
.menu-header-box,
.hide-box-menu,
#mobile_menu,
.m-fix-btn,
.box-menu-cs,
.box-menu-cs-h,
[class*="cyber-megamenu"],
.cyber-megamenuvh,
[class*="megamenuvh"],
/* explicitly target the post-header row containing the catalog button */
header + div,
header + .container,
header ~ .menu-header-box,
header ~ [class*="menu-header"],
header ~ [class*="hide-box-menu"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
body { padding-top: 0 !important; }
body.common-home { padding-top: 0 !important; }

/* ===== ROZETKA-STYLE TOP BAR (thin black info bar) ===== */
.er-topbar {
  background: #2d3436;
  color: #c4c8cc;
  font-size: 12px;
  height: 28px;
  display: flex;
  align-items: center;
}
.er-topbar a {
  color: #c4c8cc;
  text-decoration: none;
  margin: 0 14px;
  transition: color 0.15s;
}
.er-topbar a:first-child { margin-left: 0; }
.er-topbar a:hover { color: var(--er-green); }
.er-topbar-inner {
  max-width: 1340px; margin: 0 auto; width: 100%;
  padding: 0 16px;
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
}
.er-topbar-left { flex: 1; display: flex; gap: 18px; }
.er-topbar-left a { margin: 0; }
.er-topbar-right { display: flex; gap: 4px; align-items: center; }
.er-topbar-phone { color: #fff !important; font-weight: 600; }

/* ===== MAIN HEADER ===== */
.er-header {
  background: var(--er-green);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.er-header-inner {
  max-width: 1340px; margin: 0 auto;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 16px;
}
.er-logo {
  flex-shrink: 0; display: flex; align-items: center;
  text-decoration: none; height: 44px;
}
.er-logo img { max-height: 44px; width: auto; display: block; }
.er-logo-text { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }

.er-catalog-btn {
  background: rgba(255,255,255,0.18); border: none; color: #fff;
  font-weight: 600; font-size: 14px; height: 44px; padding: 0 18px;
  border-radius: 8px; display: flex; align-items: center; gap: 10px;
  cursor: pointer; transition: background 0.15s; flex-shrink: 0; white-space: nowrap;
}
.er-catalog-btn:hover { background: rgba(255,255,255,0.28); }
.er-catalog-btn .er-burger { display: inline-flex; flex-direction: column; gap: 3px; }
.er-catalog-btn .er-burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 1px; }

.er-search { flex: 1; min-width: 0; position: relative; display: flex; }
.er-search input {
  width: 100%; height: 44px; border: none; border-radius: 8px 0 0 8px;
  padding: 0 16px; font-size: 14px; background: #fff; color: var(--er-text); outline: none;
}
.er-search input::placeholder { color: var(--er-text-light); }
.er-search button {
  height: 44px; padding: 0 22px; background: var(--er-yellow); border: none;
  color: #2d3436; font-weight: 700; font-size: 14px; border-radius: 0 8px 8px 0;
  cursor: pointer; transition: background 0.15s; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.er-search button:hover { background: #FFC500; }

.er-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.er-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; color: #fff; padding: 6px 10px; border-radius: 6px;
  font-size: 11px; line-height: 1.3; min-width: 56px; position: relative;
  transition: background 0.15s; cursor: pointer;
}
.er-action:hover { background: rgba(255,255,255,0.18); color: #fff; text-decoration: none; }
.er-action i, .er-action svg {
  font-size: 22px; margin-bottom: 4px; width: 24px; height: 24px;
  display: block; fill: currentColor;
}
.er-action-label { font-size: 11px; white-space: nowrap; }
.er-action-count {
  position: absolute; top: 2px; right: 4px;
  background: var(--er-yellow); color: #2d3436;
  font-size: 10px; font-weight: 800; border-radius: 10px;
  padding: 1px 6px; min-width: 18px; text-align: center; line-height: 1.4;
}
.er-action-count:empty, .er-action-count[data-count="0"] { display: none; }

/* Catalog drawer overlay */
.er-catalog-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); z-index: 1001; display: none;
  animation: erFadeIn 0.2s;
}
.er-catalog-overlay.open { display: block; }
@keyframes erFadeIn { from { opacity: 0; } to { opacity: 1; } }
.er-catalog-panel {
  position: absolute; top: 0; left: 0; width: 320px; max-width: 86vw;
  background: #fff; height: 100vh; overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  animation: erSlideIn 0.25s;
}
@keyframes erSlideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.er-catalog-panel-head {
  padding: 14px 18px; border-bottom: 1px solid var(--er-border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--er-green); color: #fff;
}
.er-catalog-panel-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.er-catalog-panel-close {
  background: transparent; border: none; color: #fff; font-size: 24px;
  cursor: pointer; line-height: 1; padding: 0 4px;
}
.er-catalog-list { padding: 8px 0; }
.er-catalog-item {
  display: flex; align-items: center; padding: 10px 18px;
  text-decoration: none; color: var(--er-text); font-size: 14px;
  transition: background 0.1s; border-left: 3px solid transparent;
}
.er-catalog-item:hover {
  background: var(--er-green-light); color: var(--er-green-dark);
  border-left-color: var(--er-green); text-decoration: none;
}
.er-catalog-item i { margin-right: 10px; width: 20px; text-align: center; color: var(--er-green); }
.er-catalog-loading { text-align: center; padding: 30px 20px; color: var(--er-text-light); font-size: 13px; }

/* Tree rows */
.er-cat-row { border-bottom: 1px solid #f0f1f3; }
.er-cat-row:last-child { border-bottom: none; }
.er-cat-toggle {
  background: transparent; border: none; color: var(--er-text-light);
  padding: 6px 10px; cursor: pointer; flex-shrink: 0; margin-left: auto;
}
.er-cat-toggle:hover { color: var(--er-green); }
.er-cat-toggle.open { color: var(--er-green); }
.er-cat-children { padding: 4px 0; }
.er-catalog-subitem { padding: 6px 18px 6px 38px !important; font-size: 13px; color: #555 !important; }
.er-catalog-subitem:hover { background: #fff; color: var(--er-green-dark) !important; }

@media (max-width: 991px) {
  .er-topbar { display: none; }
  .er-header-inner { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .er-logo { height: 36px; }
  .er-logo img { max-height: 36px; }
  .er-logo-text { font-size: 20px; }
  .er-catalog-btn { height: 38px; padding: 0; width: 38px; justify-content: center; border-radius: 6px; }
  .er-catalog-btn-text { display: none; }
  .er-search { order: 10; flex: 0 0 100%; margin-top: 4px; }
  .er-search input { height: 38px; font-size: 13px; }
  .er-search button { height: 38px; padding: 0 14px; font-size: 13px; }
  .er-search button .er-search-text { display: none; }
  .er-search button::before { content: "\f002"; font-family: FontAwesome; font-size: 16px; }
  .er-actions { gap: 2px; }
  .er-action { padding: 4px 6px; min-width: 40px; }
  .er-action i, .er-action svg { font-size: 20px; margin-bottom: 0; }
  .er-action-label { display: none; }
  .er-action-count { top: -2px; right: -2px; font-size: 9px; padding: 1px 4px; min-width: 14px; }
}

/* ===== FOOTER ROZETKA-STYLE ===== */
footer {
  background: #2d3436 !important;
  color: #c4c8cc !important;
  padding: 36px 0 0 !important;
  margin-top: 50px;
  font-size: 13px;
}
footer h3, footer h4, footer h5,
footer .col-footer h3,
footer .footer-title {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-bottom: 14px !important;
  padding-bottom: 0 !important;
  border: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
footer ul { padding: 0; list-style: none; margin: 0; }
footer li { padding: 5px 0; }
footer a {
  color: #c4c8cc !important;
  transition: color 0.15s;
  text-decoration: none !important;
}
footer a:hover { color: var(--er-green) !important; }
footer .powered, footer .copyright, footer .footer-bottom, footer .copyright-block {
  background: rgba(0,0,0,0.25);
  padding: 14px 0 !important;
  margin-top: 24px !important;
  font-size: 12px !important;
  color: #888c91 !important;
}

/* ============================================
   HOMEPAGE — Rozetka pixel-perfect layout
   sidebar (left) + main column + hero hover catalog
   ============================================ */

/* Home-only layout wrapper injected by JS */
body.common-home #content {
  max-width: 1340px;
  margin: 0 auto;
  padding: 16px !important;
}
body.common-home .er-home-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}

/* ===== HOME SIDEBAR (catalog list) ===== */
.er-home-sidebar {
  background: #fff;
  border: 1px solid var(--er-border);
  border-radius: 12px;
  padding: 8px 0;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  font-size: 14px;
}
.er-home-sidebar h3 {
  display: none; /* hide title — list is self-evident */
}
.er-home-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--er-text);
  text-decoration: none;
  position: relative;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.12s;
}
.er-home-sidebar a:hover {
  background: var(--er-green-light);
  color: var(--er-green-dark);
  border-left-color: var(--er-green);
}
.er-home-sidebar a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.er-home-sidebar a i {
  width: 24px;
  text-align: center;
  color: var(--er-green);
}
.er-home-sidebar a::after {
  content: '\f105';
  font-family: FontAwesome;
  margin-left: auto;
  color: var(--er-text-light);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.12s;
}
.er-home-sidebar a:hover::after { opacity: 1; }

/* ===== MAIN HOME COLUMN ===== */
.er-home-main {
  min-width: 0;
}

/* ===== HERO ROW: slideshow + side promo banner ===== */
.er-hero-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.er-hero-row .slideshow,
.er-hero-row > *:first-child {
  border-radius: 12px;
  overflow: hidden;
  min-height: 320px;
}
.er-hero-row .er-hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.er-hero-row .er-hero-side > * {
  flex: 1;
  min-height: 154px;
  border-radius: 12px;
  overflow: hidden;
}
.er-hero-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile: collapse grid */
@media (max-width: 991px) {
  body.common-home .er-home-grid {
    grid-template-columns: 1fr;
  }
  .er-home-sidebar {
    position: static;
    max-height: 320px;
  }
  .er-hero-row { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .er-home-sidebar {
    display: none;
  }
}

/* ============================================
   HOMEPAGE BLOCKS — Rozetka style
   ============================================ */

/* Container width */
#content > .container,
#common-home > .container {
  max-width: 1340px !important;
  padding-left: 16px;
  padding-right: 16px;
}

/* Module sections — block separators */
.container-module,
.cyber-banner-blocks,
.cyber-wallcategory,
.cyber-product-categorytabs,
.cyber-easybanner,
.cyber-latest-grid,
.cyber-productviewed,
.cyber-reviewscustomer,
.cyber-reviews-store {
  margin-bottom: 32px !important;
  position: relative;
}

/* Block titles — bold left-aligned with seeing all link */
.title-module,
.cyber-block-title,
.cyber-banner-blocks .title-module,
.cyber-product-categorytabs .title-module,
.cyber-latest-grid .title-module,
.cyber-wallcategory .title-module {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--er-text) !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: -0.3px !important;
  position: relative;
  padding-left: 0 !important;
}
.title-module::before,
.title-module::after,
.cyber-block-title::before,
.cyber-block-title::after { display: none !important; }
.title-module span {
  background: transparent !important;
  padding: 0 !important;
  display: inline !important;
}

/* "Дивитись усі" link */
.title-module a,
.cyber-block-title a {
  font-size: 13px;
  font-weight: 500;
  color: var(--er-green) !important;
  float: right;
  margin-top: 6px;
}
.title-module a:hover {
  color: var(--er-green-dark) !important;
  text-decoration: underline !important;
}

/* ===== SLIDESHOW ===== */
.slideshow,
[id*="slideshow"] {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 32px;
}
.slideshow .swiper-slide img,
.slideshow .owl-item img,
.slideshow img {
  border-radius: 12px;
  display: block;
}

/* ===== CATEGORY TILES (wallcategory) — Rozetka home tiles ===== */
.cyber-wallcategory .container-walll,
.cyber-wallcategory .wallcategory-list,
[id*="walcategory"] ul,
.cyber-wallcategory ul {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 16px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.cyber-wallcategory li,
.cyber-wallcategory .item-w {
  background: #fff;
  border: 1px solid var(--er-border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  transition: all 0.2s;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}
.cyber-wallcategory li:hover,
.cyber-wallcategory .item-w:hover {
  border-color: var(--er-green);
  box-shadow: 0 4px 16px rgba(0, 188, 82, 0.12);
  transform: translateY(-2px);
}
.cyber-wallcategory li a,
.cyber-wallcategory .item-w a {
  color: var(--er-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.cyber-wallcategory li img,
.cyber-wallcategory .item-w img {
  max-width: 80px;
  max-height: 80px;
  margin-bottom: 10px;
  display: block;
}
.cyber-wallcategory li:hover a,
.cyber-wallcategory .item-w:hover a { color: var(--er-green-dark); }

/* ===== BANNER BLOCKS (cyber-banner-blocks) ===== */
.cyber-banner-blocks .row,
.cyber-banner-blocks > div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 !important;
}
.cyber-banner-blocks .col,
.cyber-banner-blocks [class*="col-"] {
  flex: 1;
  min-width: 240px;
  padding: 0 !important;
  border-radius: 12px;
  overflow: hidden;
}
.cyber-banner-blocks img {
  border-radius: 12px;
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s;
}
.cyber-banner-blocks a:hover img { transform: scale(1.02); }

/* ===== EASYBANNER & BANNER ===== */
.cyber-easybanner,
.banner-default {
  border-radius: 12px;
  overflow: hidden;
}
.cyber-easybanner img, .banner-default img {
  border-radius: 12px;
  display: block;
}

/* ===== PRODUCT CARDS (Rozetka style) ===== */
.product-thumb,
.product-layout .product-thumb {
  background: #fff !important;
  border: 1px solid var(--er-border) !important;
  border-radius: 12px !important;
  padding: 12px !important;
  transition: all 0.2s;
  position: relative;
  overflow: visible;
  height: 100%;
}
.product-thumb:hover {
  border-color: var(--er-green) !important;
  box-shadow: 0 4px 20px rgba(0, 188, 82, 0.12);
  z-index: 5;
}
.product-thumb .image,
.product-thumb .product-image {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}
.product-thumb .image img,
.product-thumb .product-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
}
.product-thumb:hover .image img { transform: scale(1.04); }

.product-thumb .caption,
.product-thumb .product-name,
.product-thumb h4 {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: var(--er-text) !important;
  margin: 0 0 8px !important;
  min-height: 38px;
  padding: 0 !important;
  text-align: left !important;
}
.product-thumb h4 a, .product-name a {
  color: var(--er-text) !important;
  text-decoration: none !important;
}
.product-thumb h4 a:hover, .product-name a:hover {
  color: var(--er-green) !important;
}

/* Rating stars */
.product-thumb .rating,
.product-thumb .product-rating {
  margin: 6px 0;
  font-size: 12px;
  color: var(--er-text-light);
}

/* Price */
.product-thumb .price,
.product-thumb .price-new-cs,
.product-thumb .price_no_format {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--er-text) !important;
  display: inline-block !important;
}
.product-thumb .price-old-cs,
.product-thumb .price-old {
  font-size: 13px !important;
  color: var(--er-text-light) !important;
  text-decoration: line-through;
  font-weight: 400 !important;
  margin-left: 6px;
}

/* Add-to-cart button */
.product-thumb .btn-general,
.product-thumb .btn-cart-add,
.product-thumb button[onclick*="cart.add"],
.product-thumb .cart .btn {
  background: var(--er-green) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 8px !important;
  height: 38px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: background 0.15s;
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.product-thumb .btn-general:hover,
.product-thumb .btn-cart-add:hover,
.product-thumb button[onclick*="cart.add"]:hover { background: var(--er-green-dark) !important; }
.product-thumb .btn-general:disabled,
.product-thumb button:disabled {
  background: #e1e3e6 !important;
  color: var(--er-text-light) !important;
  cursor: not-allowed;
}

/* Wishlist & compare circular icons */
.product-thumb .btn-wishlist,
.product-thumb .btn-compare {
  background: transparent !important;
  border: 1px solid var(--er-border) !important;
  color: var(--er-text-light) !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.product-thumb .btn-wishlist:hover,
.product-thumb .btn-compare:hover {
  border-color: var(--er-green) !important;
  color: var(--er-green) !important;
}
.product-thumb .actions {
  display: flex !important;
  gap: 6px !important;
  align-items: center;
}
.product-thumb .actions .cart { flex: 1; }
.product-thumb .addit-action { display: flex; gap: 6px; }

/* Stickers (sale/new/popular) */
.product-thumb .sticker-ns,
.product-thumb .stickers-ns > * {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.4px;
}
.sticker-ns.special, .sticker-ns.discount-percent {
  background: #ff5252 !important;
}
.sticker-ns.bestseller {
  background: #ff9800 !important;
}
.sticker-ns.popular { background: #2196f3 !important; }
.sticker-ns.newproduct { background: var(--er-green) !important; }

/* ===== OWL CAROUSEL navigation ===== */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next,
.btn-carousel-module {
  background: #fff !important;
  border: 1px solid var(--er-border) !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.15s;
}
.owl-carousel .owl-nav button:hover,
.btn-carousel-module:hover {
  border-color: var(--er-green) !important;
  background: var(--er-green) !important;
  color: #fff !important;
}
.owl-carousel .owl-nav button:hover svg path,
.btn-carousel-module:hover svg path { stroke: #fff !important; }

/* ===== TABS (cyber_product_categorytabs) ===== */
.cyber-product-categorytabs .nav-tabs,
.product-tabs ul.nav-tabs {
  border-bottom: 2px solid var(--er-border) !important;
  margin-bottom: 18px;
  padding: 0 !important;
}
.cyber-product-categorytabs .nav-tabs > li > a,
.product-tabs ul.nav-tabs > li > a {
  background: transparent !important;
  border: none !important;
  color: var(--er-text-light) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  padding: 10px 18px !important;
  border-radius: 0 !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px !important;
  transition: color 0.15s, border-color 0.15s;
}
.cyber-product-categorytabs .nav-tabs > li.active > a,
.product-tabs ul.nav-tabs > li.active > a,
.cyber-product-categorytabs .nav-tabs > li > a:hover,
.product-tabs ul.nav-tabs > li > a:hover {
  color: var(--er-text) !important;
  border-bottom-color: var(--er-green) !important;
  background: transparent !important;
  font-weight: 600 !important;
}

/* ===== Reviews block ===== */
.cyber-reviewscustomer,
.cyber-reviews-store {
  background: var(--er-bg-soft);
  padding: 24px 16px;
  border-radius: 12px;
}

/* ===== HTML SEO block (bottom) ===== */
.module-html,
[id*="module-html"] {
  background: #fff;
  border: 1px solid var(--er-border);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--er-text);
}
.module-html h1, .module-html h2, .module-html h3 {
  color: var(--er-text);
  font-weight: 700;
  margin-top: 1em;
}

/* ===== MANUFACTURERS CAROUSEL (бренди) ===== */
.box-manufacturer,
.module-manufacturer,
.manufacturer-list,
[class*="manufacturer"] .owl-carousel {
  background: #fff;
  border: 1px solid var(--er-border);
  border-radius: 12px;
  padding: 20px 16px;
}
.box-manufacturer .item,
.manufacturer-list .item,
.manufacturer-list a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  transition: all 0.2s;
  filter: grayscale(100%) opacity(0.7);
}
.box-manufacturer .item:hover,
.manufacturer-list a:hover {
  filter: grayscale(0) opacity(1);
  background: var(--er-bg-soft);
  transform: scale(1.05);
}
.box-manufacturer img,
.manufacturer-list img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

/* ===== TAG CLOUD (популярні запити) ===== */
.er-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}
.er-tag-cloud .er-tag {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--er-border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--er-text);
  text-decoration: none;
  transition: all 0.15s;
}
.er-tag-cloud .er-tag:hover {
  background: var(--er-green-light);
  border-color: var(--er-green);
  color: var(--er-green-dark);
  text-decoration: none;
}
.er-tag-cloud .er-tag::before {
  content: '#';
  color: var(--er-green);
  font-weight: 700;
  margin-right: 4px;
}

/* ===== BLOG FEATURED (новини) ===== */
.blog-featured-module .row,
.blog-featured > .row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.blog-featured-module .item,
.blog-featured .article-thumb {
  background: #fff;
  border: 1px solid var(--er-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}
.blog-featured-module .item:hover,
.blog-featured .article-thumb:hover {
  border-color: var(--er-green);
  box-shadow: 0 4px 16px rgba(0, 188, 82, 0.12);
  transform: translateY(-2px);
}
.blog-featured-module .image img,
.blog-featured .article-thumb .image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.blog-featured-module .caption,
.blog-featured .article-thumb .caption {
  padding: 14px;
}
.blog-featured-module .caption h4,
.blog-featured .article-thumb .caption h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--er-text);
  margin: 0 0 8px;
  line-height: 1.4;
}
.blog-featured-module .caption a {
  color: var(--er-text);
  text-decoration: none;
}
.blog-featured-module .caption a:hover {
  color: var(--er-green-dark);
}
.blog-featured-module .article-meta,
.blog-featured .article-meta {
  font-size: 12px;
  color: var(--er-text-light);
  margin-top: 6px;
}

/* Mobile homepage tweaks */
@media (max-width: 767px) {
  .title-module, .cyber-block-title { font-size: 18px !important; }
  .product-thumb { padding: 8px !important; }
  .product-thumb .price, .product-thumb .price-new-cs { font-size: 16px !important; }
  .cyber-wallcategory .container-walll,
  .cyber-wallcategory ul { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 10px !important; }
}

/* ===== BACK-TO-TOP ===== */
#back-top {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 998;
}
#back-top .btn-scroll-top {
  background: var(--er-green) !important;
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s, background 0.15s;
}
#back-top .btn-scroll-top:hover {
  background: var(--er-green-dark) !important;
  transform: translateY(-2px);
}
#back-top .btn-scroll-top svg path { fill: #fff !important; }
