/* ===================================================
   Стилізація Yuko 1 під Rozetka.ua (Виправлений CSS)
   =================================================== */

body {
  background-color: #f5f5f5 !important;
  color: #221f1f;
  font-family: BlinkMacSystemFont, -apple-system, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.rz-main-container {
  margin-top: 16px;
}

/* Забезпечуємо правильну роботу Flexbox-сітки для сторінки */
#common-home .row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-left: -10px;
  margin-right: -10px;
}

/* --- 1. Ліве меню категорій (column-left) --- */
#column-left.rz-sidebar {
  flex: 0 0 25% !important; /* Рівно 25% ширини екрана */
  max-width: 25% !important;
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
}

#column-left .list-group,
.rz-categories-menu {
  background: #ffffff !important;
  border-radius: 8px !important;
  border: 1px solid #e9e9e9 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  overflow: hidden;
  margin-bottom: 20px;
}

#column-left .list-group-item,
.rz-categories-menu .list-group-item {
  border: none !important;
  border-bottom: 1px solid #f2f2f2 !important;
  color: #221f1f !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  display: block !important;
  white-space: normal !important; /* Перенос довгих назв */
  text-decoration: none !important;
}

#column-left .list-group-item:last-child {
  border-bottom: none !important;
}

#column-left .list-group-item:hover,
.rz-categories-menu .list-group-item:hover {
  background-color: #f8f8f8 !important;
  color: #00a046 !important;
  font-weight: 600;
}

/* --- 2. Права зона (content) --- */
#content.rz-content-area {
  flex: 0 0 75% !important; /* Рівно 75% ширини екрана */
  max-width: 75% !important;
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
}

/* --- 3. Шапка (Header) --- */
.rz-header {
  background-color: #221f1f;
  padding: 10px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.rz-header-row {
  display: flex;
  align-items: center;
}

.rz-logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

#logo img {
  max-height: 36px;
  width: auto;
}

.btn-rz-catalog {
  background-color: #3e77aa;
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 14px;
}

.btn-rz-catalog:hover {
  background-color: #00a046;
  color: #fff;
}

.rz-search-block #search .input-group {
  display: flex;
}

.rz-search-block #search .form-control {
  border-radius: 4px 0 0 4px;
  border: 1px solid #00a046;
  height: 40px;
  box-shadow: none;
}

.rz-search-block #search .btn {
  border-radius: 0 4px 4px 0;
  background-color: #00a046;
  border: 1px solid #00a046;
  color: #fff;
  height: 40px;
  padding: 0 20px;
}

.rz-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.rz-icon-link {
  color: #ffffff;
  font-size: 22px;
  text-decoration: none !important;
}

.rz-icon-link:hover {
  color: #00a046;
}

#cart .btn {
  background: transparent;
  color: #fff;
  border: none;
  box-shadow: none;
}

#cart .btn i {
  color: #00a046;
  font-size: 22px;
}

.custom_wi {
	width: 30%;
}

/* --- 4. Слайдер / Банер --- */
.rz-banner-wrapper .swiper-viewport, 
.rz-banner-wrapper .owl-carousel {
  border-radius: 8px;
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  overflow: hidden;
}

.rz-banner-wrapper img {
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
}

/* --- 5. Картки товарів (Grid) --- */
.product-thumb {
  background: #ffffff;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  transition: box-shadow 0.2s, border-color 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-thumb:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-color: #d2d2d2;
}

.product-thumb .image img {
  max-height: 150px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.product-thumb .caption h4 {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.3;
  height: 34px;
  overflow: hidden;
}

.product-thumb .caption h4 a {
  color: #221f1f;
  text-decoration: none;
}

.product-thumb .caption h4 a:hover {
  color: #00a046;
}

.product-thumb .price {
  color: #221f1f;
  font-size: 16px;
  font-weight: bold;
}

.product-thumb .button-group button {
  background-color: #00a046;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
}

.product-thumb .button-group button:hover {
  background-color: #00bc52;
}

/* Примусова ширина та розгортання меню категорій */
.rz-sidebar-box #column-left,
.rz-sidebar-box .list-group {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  border: 1px solid #e9e9e9 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  overflow: hidden !important;
}

.rz-sidebar-box .list-group-item {
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  color: #221f1f !important;
  border: none !important;
  border-bottom: 1px solid #f2f2f2 !important;
  white-space: normal !important;
  word-wrap: break-word !important;
}

.rz-sidebar-box .list-group-item:last-child {
  border-bottom: none !important;
}

.rz-sidebar-box .list-group-item:hover {
  background-color: #f8f8f8 !important;
  color: #00a046 !important;
}


/* ==========================================
   Компактний розширений фільтр (Rozetka style)
   ========================================== */

/* Контейнер всього блоку фільтрів */
#column-left .panel-default,
.rz-filter-wrapper {
  background: #ffffff !important;
  border: 1px solid #e9e9e9 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
  margin-bottom: 20px !important;
  overflow: hidden !important;
}

/* Заголовок блоку */
#column-left .panel-heading {
  background-color: #ffffff !important;
  color: #221f1f !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  text-transform: none !important;
}

/* Окремі групи фільтрів (напр. Бренд, Пам'ять) */
#column-left .list-group-item {
  border: none !important;
  border-bottom: 1px solid #f2f2f2 !important;
  padding: 12px 16px !important;
}

#column-left .list-group-item:last-child {
  border-bottom: none !important;
}

/* Назва групи фільтрів */
#column-left .list-group-item > strong,
.rz-filter-group-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #221f1f;
  margin-bottom: 8px;
}

/* Елементи чекбоксів */
#column-left .checkbox, 
#column-left .radio {
  margin: 6px 0 !important;
  font-size: 13px !important;
  color: #333333 !important;
}

#column-left .checkbox label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  padding-left: 0 !important;
}

#column-left .checkbox input[type="checkbox"] {
  position: static !important;
  margin: 0 !important;
  width: 16px !important;
  height: 16px !important;
  accent-color: #00a046 !important; /* Зелений колір Rozetka */
  cursor: pointer !important;
}

/* Панель з кнопкою застосування */
#column-left .panel-footer {
  background: #ffffff !important;
  border-top: 1px solid #f0f0f0 !important;
  padding: 12px 16px !important;
  text-align: center !important;
}

/* Кнопка "Застосувати" */
#column-left #button-filter {
  width: 100% !important;
  background-color: #00a046 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: background-color 0.2s !important;
}

#column-left #button-filter:hover {
  background-color: #00bc52 !important;
}

/* ===================================================
   Глобальна заміна основного кольору (Синій -> Зелений #00a046)
   =================================================== */

/* 1. Посилання та ховери */
a {
  color: #00a046;
}
a:hover, a:focus {
  color: #00bc52;
}

/* 2. Основні кнопки (btn-primary, btn-info) */
.btn-primary, 
.btn-info {
  background-color: #00a046 !important;
  background-image: none !important;
  border-color: #00a046 !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus,
.btn-info:hover, .btn-info:active, .btn-info:focus {
  background-color: #00bc52 !important;
  border-color: #00bc52 !important;
  color: #ffffff !important;
}

/* 3. Кнопка "Купити" та іконки кошика */
.product-thumb .button-group button:first-child,
.btn-rz-buy {
  background-color: #00a046 !important;
  color: #ffffff !important;
  border: none !important;
}

.product-thumb .button-group button:first-child:hover,
.btn-rz-buy:hover {
  background-color: #00bc52 !important;
}

/* 4. Активні елементи списків та меню (List Group) */
.list-group-item.active, 
.list-group-item.active:hover, 
.list-group-item.active:focus {
  background-color: #00a046 !important;
  border-color: #00a046 !important;
  color: #ffffff !important;
}

/* 5. Пагінація сторінок (Pagination) */
.pagination > .active > a, 
.pagination > .active > span, 
.pagination > .active > a:hover, 
.pagination > .active > span:hover, 
.pagination > .active > a:focus, 
.pagination > .active > span:focus {
  background-color: #00a046 !important;
  border-color: #00a046 !important;
  color: #ffffff !important;
}

.pagination > li > a:hover, 
.pagination > li > span:hover {
  color: #00a046 !important;
}

/* 6. Поля вводу при фокусі (Inputs / Selects) */
.form-control:focus {
  border-color: #00a046 !important;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(0, 160, 70, 0.6) !important;
}

/* 7. Чекбокси та радіо-кнопки */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  accent-color: #00a046 !important;
}

/* 8. Кнопка каталогу та пошуку в шапці */
.btn-rz-catalog,
#search .btn-default {
  background-color: #00a046 !important;
  border-color: #00a046 !important;
  color: #ffffff !important;
}

.btn-rz-catalog:hover,
#search .btn-default:hover {
  background-color: #00bc52 !important;
  border-color: #00bc52 !important;
}


/* ===================================================
   Фікс кольору обраної категорії та випадаючих списків
   =================================================== */

/* 1. Активна категорія в лівому меню (активний пункт) */
#column-left .list-group-item.active,
#column-left .list-group-item.active:hover,
#column-left .list-group-item.active:focus,
a.list-group-item.active,
a.list-group-item.active:hover,
a.list-group-item.active:focus {
  background-color: #00a046 !important;
  border-color: #00a046 !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

/* 2. Ховер на звичайні підкатегорії у меню */
#column-left .list-group-item:hover {
  background-color: #f8f8f8 !important;
  color: #00a046 !important;
}

/* 3. Колір виділення елементів у випадаючому списку сортування (Select Option) */
select#input-sort option:checked,
select#input-limit option:checked,
select.form-control option:checked {
  background-color: #00a046 !important;
  color: #ffffff !important;
}

/* Додатковий фікс для Webkit/Blink браузерів (Chrome/Opera/Edge) */
select#input-sort:focus option:checked,
select#input-limit:focus option:checked {
  background: #00a046 linear-gradient(0deg, #00a046 0%, #00a046 100%) !important;
}

/* 4. Активна кнопка сітки/списку (Grid/List toggle) */
#grid-view.active,
#list-view.active,
.btn-default.active,
.btn-default.active:hover {
  background-color: #00a046 !important;
  border-color: #00a046 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}