/* ===== CATALOG PAGE STYLES ===== */

/* Прибираємо відступи для каталогу */
.smc-catalog {
  margin: 0 !important;
  padding: 0 !important;
}

/* Перебиваємо всі глобальні margin та padding */
.smc-catalog * {
  box-sizing: border-box;
}

/* Прибираємо margin з body елементів в каталозі */
body .smc-catalog,
body .smc-catalog .smc-catalog__layout,
body .smc-catalog .smc-catalog__main,
body .smc-catalog .smc-catalog__filter {
  margin: 0 !important;
}

/* Hero Section - починається під хедером 80px */
.smc-catalog__hero {
  width: 100%;
  height: 450px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 auto;
  margin-top: -80px; /* Піднімаємо під хедер */
  padding-top: 100px; /* 80px хедер + 20px відступ */
  padding-bottom: 60px;
}

/* Hero Overlay */
.smc-catalog__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Хлібні крихти всередині hero */
.smc-breadcrumbs-bar--in-hero {
  position: relative;
  z-index: 1;
  margin-bottom: auto;
}

.smc-breadcrumbs-bar--in-hero .smc-breadcrumbs {
  width: auto;
  height: 24px;
}

.smc-breadcrumbs-bar--in-hero .smc-breadcrumbs ol {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.smc-breadcrumbs-bar--in-hero .smc-breadcrumbs li {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0%;
  text-align: left;
  margin: 0;
  padding: 0;
}

/* Всі breadcrumbs елементи - білий колір */
.smc-breadcrumbs-bar--in-hero .smc-breadcrumbs li a,
.smc-breadcrumbs-bar--in-hero .smc-breadcrumbs li span {
  color: rgba(255, 255, 255, 1) !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0%;
  text-align: left;
  text-decoration: none;
}

.smc-breadcrumbs-bar--in-hero .smc-breadcrumbs li a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Кінцевий елемент (поточна сторінка) - зелений */
.smc-breadcrumbs-bar--in-hero .smc-breadcrumbs li:last-child span {
  color: rgba(1, 169, 160, 1) !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0%;
  text-align: left;
}



.smc-breadcrumbs-bar--in-hero .smc-breadcrumbs a:hover {
  opacity: 0.8;
}

/* Hero Title */
.smc-catalog__hero-title {
  position: relative;
  z-index: 10;
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0%;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 1);
  text-align: left;
  margin: 0;
  margin-top: 197px; /* 197px від хлібних крихт */
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Fallback background if no image */
.smc-catalog__hero.is-fallback {
  background: linear-gradient(135deg, #01a9a0, #00b5a5);
}

/* Catalog Content */
.smc-catalog__content {
  padding: 0 !important;
  margin: 0 !important;
}

.smc-catalog__content .smc-container {
  margin: 0 auto !important;
  max-width: 1440px !important;
  padding: 0 !important;
}

/* Catalog Layout з фільтром */
/* Desktop */
.smc-catalog__layout {
  display: flex;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  margin-top: 0 !important;
  padding: 0 71px 0 70px;
  gap: 30px;
  box-sizing: border-box;
}
/* Mobile: remove side paddings and gap */
@media (max-width: 768px) {
  .smc-catalog__layout {
    padding: 0 !important;
    gap: 0 !important;
  }
  .smc-catalog__content .smc-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  
  /* Reset filter wrapper top padding on mobile */
  .filter-wrapper {
    padding-top: 0 !important;
  }
}

/* Filter Sidebar */
.smc-catalog__filter {
  width: 303px;
  height: 1553px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  padding: 0px;
  flex-shrink: 0;
}

/* Mobile filter close button */
.mobile-filter-close {
  display: none;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
  padding: 0;
  margin: 0 0 20px 0;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.mobile-close-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #666;
  width: 24px;
  height: 24px;
  opacity: 1;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-close-btn svg {
  width: 24px;
  height: 24px;
  transform: rotate(0deg);
}

.mobile-close-btn:hover {
  color: #01A9A0;
}

/* Mobile filter reset and overrides */
@media (max-width: 768px) {
  .smc-catalog__filter {
    display: none !important;
  }
  
  .smc-catalog__filter.show {
    display: block !important;
  }
  
  .mobile-filter-close {
    display: flex !important;
  }
  
  /* Mobile filter reset - remove all vertical spacing */
  .filter-wrapper {
    padding: 0 20px 20px 20px !important;
  }
  
  .filter-wrapper .mobile-filter-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
  }
  
  /* Reset all padding/margin for filter elements */
  .filter-block,
  .filter-item,
  .filter-sub-item,
  .filter-header,
  .filter-content {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Reset divider spacing */
  .filter-divider {
    margin: 16px 0 !important;
  }
  
  /* Mobile typography adjustments only */
  .filter-title {
    font-size: 20px;
    margin: 16px 0 8px 0 !important;
  }
  
  .filter-sub-item .option-text {
    font-size: 18px;
  }
}

/* Filter Reset Styles */
.smc-catalog__filter input,
.smc-catalog__filter button,
.smc-catalog__filter label {
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background: none;
  box-sizing: border-box;
}

/* Filter Wrapper - Desktop specific styles */
@media (min-width: 769px) {
  .filter-wrapper {
    padding-top: 48px;
    position: static;
  }
}

/* Filter Wrapper - Base styles */
.filter-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}

/* Filter Block */
.filter-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Filter Divider */
.filter-divider {
  border: 1px solid rgba(240, 240, 240, 1);
  width: 303px;
  height: 0;
  margin: 23.5px 0;
}

/* Filter Item (для простих пунктів як "Всі товари", "Новинки") */
.filter-item {
  padding: 16px 0;
  width: 100%;
}

.filter-item .filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* Filter Header (для розкриваючих секцій) */
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  user-select: none;
  width: 100%;
  position: relative;
}

.filter-header:hover .filter-title {
  color: #01A9A0;
}

.filter-header:hover .filter-arrow path {
  stroke: #00918a;
}

/* Filter Arrow */
.filter-arrow {
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.filter-block.expanded .filter-arrow {
  transform: rotate(180deg);
}

/* Filter Title (заголовки пунктів) */
.filter-title {
  color: rgba(9, 19, 17, 1);
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: left;
  margin: 0;
  transition: color 0.2s ease;
}

/* Filter Content (розкриваючий контент) */
.filter-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 16px;
  margin-bottom: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, margin-bottom 0.4s ease-in-out, opacity 0.3s ease;
  opacity: 0;
}

.filter-block.expanded .filter-content {
  max-height: 800px;
  margin-bottom: 16px;
  opacity: 1;
}

/* Filter Options */
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: rgba(9, 19, 17, 1);
  cursor: pointer;
  transition: color 0.2s ease;
}

.filter-options label:hover {
  color: #01A9A0;
}

.filter-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #01A9A0;
}

/* Price Range */
.price-range {
  display: flex;
  gap: 8px;
  align-items: center;
}

.price-range input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.price-range input:focus {
  outline: none;
  border-color: #01A9A0;
}

/* Filter Actions */
.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: auto;
}

.filter-reset-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  background: transparent;
  color: #01A9A0;
  border: 1px solid #01A9A0;
}

.filter-reset-btn:hover {
  color: #00918a;
  border-color: #00918a;
}

/* Clickable Filter Styling */
.filter-option {
  position: relative;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  margin: 0;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.filter-option:hover .option-text {
  color: #01A9A0;
}

.clickable-filter[data-active="true"] .option-text {
  color: #01A9A0 !important;
  font-weight: 600;
}

/* Sub Items (підпункти в розкриваючому меню) */
.filter-sub-item {
  width: 100%;
}

.filter-sub-item .filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.filter-sub-item .option-text {
  color: rgba(9, 19, 17, 1);
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0%;
  text-align: left;
  flex: 1;
}

.option-text {
  flex: 1;
  color: rgba(9, 19, 17, 1);
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: left;
}

/* "Всі товари" стилі */
.filter-all {
  cursor: pointer;
  transition: color 0.2s ease;
}

.filter-all:hover .option-text {
  color: #01A9A0;
}

.filter-all .option-text {
  color: rgba(9, 19, 17, 1);
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: left;
}

/* Attribute Groups */
.filter-attribute-group {
  margin-bottom: 16px;
}

.attribute-title {
  color: rgba(9, 19, 17, 1);
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.filter-title {
  color: rgba(9, 19, 17, 1) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Main Content Area */
.smc-catalog__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Toolbar сортування */
.smc-catalog__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px !important;
  margin-right: 20px;
  width: 100%;
  margin-top: 70px;
}

/* Кастомний dropdown сортування */
.smc-sort-dropdown {
  position: relative;
}

.smc-sort-trigger {
  width: 128px;
  height: 24px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.smc-sort-trigger:hover .sort-text {
  color: rgba(1, 169, 160, 1) !important;
}

.sort-text {
  color: rgba(9, 19, 17, 1);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0%;
  text-align: left;
  transition: color 0.2s ease;
}

.sort-arrow {
  color: #01A9A0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.smc-sort-trigger:hover .sort-arrow {
  color: #00918a;
}

.smc-sort-dropdown.active .sort-arrow {
  transform: rotate(180deg);
}

/* Випадаючий список */
.smc-sort-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #EFF7F6;
  border-radius: 20px;
  border: none;
  box-shadow: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1000;
  min-width: 180px;
}

.smc-sort-dropdown:hover .smc-sort-options,
.smc-sort-dropdown.active .smc-sort-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sort-option {
  display: block;
  padding: 12px 16px;
  color: rgba(9, 19, 17, 1);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0%;
  text-align: left;
  text-decoration: none;
  transition: color 0.2s ease;
  border: none;
  border-bottom: none;
  background: transparent;
}

.sort-option:hover {
  color: rgba(1, 169, 160, 1);
}

/* ПОВНЕ ЗНИЩЕННЯ WooCommerce стилів */
.smc-catalog .woocommerce ul.products,
.smc-catalog .woocommerce .products,
.smc-catalog ul.products {
  display: grid !important;
  grid-template-columns: 302px 302px 302px !important;
  gap: 30px 40px !important;
  width: 966px !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  float: none !important;
  clear: both !important;
}

/* КАРДИНАЛЬНО перебиваємо WooCommerce FLOAT */
/* ПОВНЕ ЗНИЩЕННЯ стилів для product items */
/* РАДИКАЛЬНЕ перебиття ВСІХ WooCommerce стилів */
.smc-catalog * {
  float: none !important;
  clear: none !important;
}

.smc-catalog .woocommerce::before,
.smc-catalog .woocommerce::after {
  display: none !important;
  content: none !important;
  clear: none !important;
}

/* СТИЛІЗАЦІЯ карточок товарів */
.catalog-product-card {
  width: 302px;
  height: auto;
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
}

/* Hover ефект для картки товару */
.smc-catalog__products .woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

.smc-catalog__products .woocommerce ul.products li.product:hover .woocommerce-loop-product__link {
  background: rgba(1, 169, 160, 0.1) !important;
  transition: background-color 0.3s ease;
}

.smc-catalog__products .woocommerce {
  background: transparent !important;
}

/* НИЩИМО всі WooCommerce стилі що псують grid */
.smc-catalog .woocommerce ul.products li {
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Перебиваємо WooCommerce columns класи */
.smc-catalog .woocommerce ul.products.columns-1 li.product,
.smc-catalog .woocommerce ul.products.columns-2 li.product,
.smc-catalog .woocommerce ul.products.columns-3 li.product,
.smc-catalog .woocommerce ul.products.columns-4 li.product,
.smc-catalog .woocommerce ul.products.columns-5 li.product,
.smc-catalog .woocommerce ul.products.columns-6 li.product {
  float: none !important;
  clear: none !important;
  width: 302px !important;
  margin: 0 !important;
}



/* ===== ПОВНА СТИЛІЗАЦІЯ КАРТОЧКИ ТОВАРУ ===== */

/* Картка товару - розміри 302x428px */
.smc-catalog__products .woocommerce ul.products li.product {
  width: 302px !important;
  height: 428px !important;
  background: #FFFFFF !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  position: relative !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Hover ефект для картки - підйом на 5px */
.smc-catalog__products .woocommerce ul.products li.product:hover {
  transform: translateY(-5px) !important;
  transition: transform 0.3s ease !important;
}

/* Контейнер зображення - 302x340px з фоном */
.smc-catalog__products .woocommerce ul.products li.product .woocommerce-loop-product__link {
  width: 302px !important;
  height: 340px !important;
  border-radius: 20px !important;
  background: #EFF7F6 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: background-color 0.3s ease !important;
}

/* Hover ефект для контейнера зображення */
.smc-catalog__products .woocommerce ul.products li.product:hover .woocommerce-loop-product__link {
  background: #E1F5F4 !important;
}

/* Зображення товару - 245x261px */
.smc-catalog__products .woocommerce ul.products li.product img {
  width: 245px !important;
  height: 261px !important;
  object-fit: contain !important;
  z-index: 2 !important;
  position: relative !important;
}

/* Тінь під зображенням */
.smc-catalog__products .woocommerce ul.products li.product .woocommerce-loop-product__link::after {
  content: '' !important;
  position: absolute !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 86px !important;
  height: 14px !important;
  filter: blur(20px) !important;
  background: radial-gradient(50.00% 50.00% at 50% 50%, rgba(5, 5, 5, 0.2), rgba(186, 186, 186, 0.2) 100%) !important;
  z-index: 1 !important;
}

/* Контент товару - займає решту місця */
.smc-catalog__products .woocommerce ul.products li.product .product-content {
  flex: 1 !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

/* Назва товару з обрізанням тексту */
.smc-catalog__products .woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: rgba(9, 19, 17, 1) !important;
  font-family: Montserrat !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 24px !important;
  letter-spacing: 0% !important;
  text-align: left !important;
  margin: 0 !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.smc-catalog__products .woocommerce ul.products li.product .woocommerce-loop-product__title a {
  color: rgba(9, 19, 17, 1) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.smc-catalog__products .woocommerce ul.products li.product .woocommerce-loop-product__title a:hover {
  color: rgba(1, 169, 160, 1) !important;
}

/* Рядок з брендом і об'ємом */
.smc-catalog__products .woocommerce ul.products li.product .product-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

/* Бренд товару - зелений колір */
.smc-catalog__products .woocommerce ul.products li.product .product-brand {
  color: rgba(1, 169, 160, 1) !important;
  font-family: Montserrat !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 24px !important;
  letter-spacing: 0% !important;
  text-align: left !important;
}

.smc-catalog__products .woocommerce ul.products li.product .product-brand a {
  color: rgba(1, 169, 160, 1) !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease !important;
}

.smc-catalog__products .woocommerce ul.products li.product .product-brand a:hover {
  opacity: 0.8 !important;
}

/* Об'єм товару - чорний колір */
.smc-catalog__products .woocommerce ul.products li.product .product-volume {
  color: rgba(9, 19, 17, 1) !important;
  font-family: Montserrat !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 24px !important;
  letter-spacing: 0% !important;
  text-align: left !important;
}

/* Ціна товару */
.smc-catalog__products .woocommerce ul.products li.product .price {
  color: rgba(9, 19, 17, 1) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 22px !important;
  margin-top: auto !important;
}

.smc-catalog__products .woocommerce ul.products li.product .price .woocommerce-Price-amount {
  color: rgba(1, 169, 160, 1) !important;
}

.smc-catalog__products .woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
  color: rgba(1, 169, 160, 1) !important;
}

/* ===== КНОПКА ЗАВАНТАЖИТИ ЩЕ ===== */

/* Контейнер кнопки - відцентровано */
.smc-catalog__load-more {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 24px;
  margin-bottom: 80px;
}

/* Кнопка завантаження */
.smc-load-more-btn {
  width: 335px;
  height: 52px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px 40px 16px 40px;
  box-sizing: border-box;
  border: 1px solid var(--Green, rgba(1, 169, 160, 1));
  border-radius: 10px;
  background: var(--White, rgba(255, 255, 255, 1));
  color: var(--Black, rgba(9, 19, 17, 1));
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0%;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover ефект кнопки */
.smc-load-more-btn:hover {
  background: rgba(1, 169, 160, 0.1);
  transform: translateY(-2px);
}

/* Disabled стан кнопки */
.smc-load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Повідомлення про завершення */
.smc-catalog__no-more {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 40px;
}

.smc-catalog__no-more p {
  color: rgba(9, 19, 17, 0.6);
  font-family: Montserrat;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0%;
  text-align: center;
  margin: 0;
}


/* Mobile Filter Toggle */
.mobile-filter-toggle {
  display: none;
  width: 100%;
}

/* Mobile toolbar filter visible by default */
.mobile-toolbar-filter {
  display: block;
}

.mobile-filter-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  border-radius: 4px;
}

/* Hide filter button on desktop - filters are always visible */
@media (min-width: 769px) {
  .smc-catalog__toolbar .mobile-toolbar-filter {
    display: none !important;
  }
}


.mobile-filter-btn svg {
  transition: transform 0.2s ease;
}

.mobile-filter-btn.active svg {
  transform: rotate(180deg);
}

.filter-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Mobile Adaptivity */
@media (max-width: 768px) {
  .smc-catalog__layout {
    flex-direction: column;
    gap: 24px;
  }
  
  .smc-catalog__filter {
    display: block;
  }
  
  /* Mobile Filter Sidebar - hidden by default */
  .filter-wrapper {
    display: none !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100vw !important;
    height: 700px !important;
    background: rgba(255, 255, 255, 1) !important;
    border-radius: 10px;
    z-index: 9999 !important;
    padding: 60px 20px 24px 20px !important;
    overflow-y: auto !important;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 24px !important;
  }
  
  .filter-wrapper.show {
    display: flex !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Mobile Filter Overlay */
  .filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .filter-overlay.show {
    opacity: 1;
    visibility: visible;
  }
  
  .filter-block {
    gap: 12px;
  }
  
  .filter-block h3 {
    font-size: 16px;
  }

  /* Mobile Products Grid */
  .smc-catalog .woocommerce ul.products,
  .smc-catalog .woocommerce .products,
  .smc-catalog ul.products {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px !important;
    margin: 0 !important;
  }

  /* Main container on mobile */
  .smc-catalog__main {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Product items mobile */
  .smc-catalog .woocommerce ul.products.columns-1 li.product,
  .smc-catalog .woocommerce ul.products.columns-2 li.product,
  .smc-catalog .woocommerce ul.products.columns-3 li.product,
  .smc-catalog .woocommerce ul.products.columns-4 li.product,
  .smc-catalog .woocommerce ul.products.columns-5 li.product,
  .smc-catalog .woocommerce ul.products.columns-6 li.product {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
  }
}

/* Тулбар сортування */
.smc-catalog__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}

/* Новий dropdown select */
.simple-select {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.select-label {
  color: rgba(9, 19, 17, 1);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0%;
  transition: color 0.2s ease;
}

.simple-select:hover .select-label {
  color: #01A9A0;
}

.select-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.simple-select.active .select-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #EFF7F6;
  border-radius: 8px;
  z-index: 1001;
  display: none;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-option {
  padding: 12px 16px;
  color: rgba(9, 19, 17, 1);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.dropdown-option:last-child {
  border-bottom: none;
}

.dropdown-option:hover {
  color: #01A9A0;
  background-color: rgba(255, 255, 255, 0.5);
}



/* Hover ефект для select з вищою специфічністю */
.smc-catalog__toolbar select:hover,
form.woocommerce-ordering select:hover {
  color: #01A9A0 !important;
  transition: color 0.2s ease !important;
  background: transparent !important;
}

/* Focus стан - стандартний чорний колір без фону */
.woocommerce-ordering select:focus {
  color: rgba(9, 19, 17, 1) !important;
  background: transparent !important;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Радикальне прибирання всіх рамок */
.woocommerce-ordering,
.woocommerce-ordering *,
.woocommerce-ordering select,
.woocommerce-ordering select *,
.woocommerce-ordering select option {
  border: 0 !important;
  border-style: none !important;
  border-width: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  outline-style: none !important;
  outline-width: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Стилі для опцій у випадаючому списку */
.smc-catalog__toolbar select option,
form.woocommerce-ordering select option {
  all: unset !important;
  color: rgba(9, 19, 17, 1) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  background: #EFF7F6 !important;
  padding: 8px 12px !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Hover для опцій - зелений колір тільки для тексту */
.smc-catalog__toolbar select option:hover,
form.woocommerce-ordering select option:hover {
  color: #01A9A0 !important;
  background: #EFF7F6 !important;
}

.smc-catalog__toolbar select option:focus,
.smc-catalog__toolbar select option:active,
form.woocommerce-ordering select option:focus,
form.woocommerce-ordering select option:active {
  color: rgba(9, 19, 17, 1) !important;
  background: #EFF7F6 !important;
}

/* Кастомна стрілка для select */
.woocommerce-ordering {
  position: relative;
  display: inline-block;
}

.woocommerce-ordering::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 8px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  transform: translateY(-50%);
  background: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 6L8 10L12 6" stroke="%2301A9A0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center/contain;
}

/* ===== СТАРІ СТИЛІ ВИДАЛЕНО - ВИКОРИСТОВУЮТЬСЯ НОВІ ВИЩЕ ===== */

/* Mobile styles */
@media (max-width: 768px) {
  /* Hero Section */
  .smc-catalog__hero {
    width: 100vw;
    height: 450px;
    padding: 0 16px;
    background-position: right bottom;
    background-size: cover;
    margin: -64px 0 0 0;
    position: relative;
  }
  
  .smc-catalog__hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
  }
  
  .smc-catalog__hero-title {
    color: rgba(255, 255, 255, 1);
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: left;
    text-transform: uppercase;
    padding: 0;
    margin-top: 267px;
    position: relative;
    z-index: 2;
    padding-bottom: 40px;
  }
  
  /* Breadcrumbs Mobile */
  .smc-breadcrumbs-bar--in-hero {
    padding: 0;
    padding-top: 81px;
    position: relative;
    z-index: 2;
  }
  
  .smc-breadcrumbs {
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  /* Main Content */
  .smc-catalog__content {
    padding: 40px 0;
  }
  
  /* Main Layout */
  .smc-catalog__main {
    width: 100%;
    padding: 0;
  }
  
  /* Products Grid Mobile - 2 картки в рядку */
  .smc-catalog .woocommerce ul.products,
  .smc-catalog .woocommerce .products,
  .smc-catalog ul.products {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 19px !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Мобільна картка товару: заповнює доступний простір */
  .smc-catalog__products .woocommerce ul.products li.product {
    width: 100% !important;
    height: 298px !important;
    background: #FFFFFF !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 0 0 8px 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Зображення товару: адаптивне */
  .smc-catalog__products .woocommerce ul.products li.product .woocommerce-loop-product__link {
    width: 100% !important;
    height: 161px !important;
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }
  
  .smc-catalog__products .woocommerce ul.products li.product img {
    width: 100% !important;
    height: 161px !important;
    object-fit: cover !important;
  }
  
  /* Контент карточки - відступи 20px з кожного боку */
  .smc-catalog__products .woocommerce ul.products li.product .product-content {
    padding: 0 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }
  
  /* Відступ від фону до заголовку: 16px */
  .smc-catalog__products .woocommerce ul.products li.product .product-content > *:first-child {
    margin-top: 16px !important;
  }
  
  /* Заголовок товару */
  .smc-catalog__products .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    color: #091311 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    justify-self: start !important;
    align-self: start !important;
  }
  
  .smc-catalog__products .woocommerce ul.products li.product .woocommerce-loop-product__title a {
    color: #091311 !important;
    text-decoration: none !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
  }
  
  /* Product Meta */
  .smc-catalog__products .woocommerce ul.products li.product .product-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    text-align: left !important;
  }
  
  /* Бренд товару - зелений колір */
  .smc-catalog__products .woocommerce ul.products li.product .product-brand {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 100% !important;
    color: #01A9A0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    justify-self: start !important;
    align-self: start !important;
    display: block !important;
    width: 100% !important;
  }
  
  /* Атрибут об'єм */
  .smc-catalog__products .woocommerce ul.products li.product .product-volume {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    color: #091311 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    justify-self: start !important;
    align-self: start !important;
    display: block !important;
    width: 100% !important;
  }
  
  /* Ціна товару */
  .smc-catalog__products .woocommerce ul.products li.product .price {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #091311 !important;
    margin: 0 !important;
    text-align: left !important;
  }
  
  /* Toolbar Mobile */
  .smc-catalog__toolbar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  
  /* Mobile Filter Button - зліва */
  .mobile-filter-toggle {
    order: 1;
    margin-left: 0;
  }
  
  .mobile-filter-btn {
    background: none;
    border: none;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: rgba(9, 19, 17, 1);
    cursor: pointer;
    width: auto;
  }
  
  .mobile-filter-btn svg {
    width: 24px;
    height: 24px;
    stroke: rgba(1, 169, 160, 1);
  }
  
  /* Sort Dropdown Mobile - справа */
  .smc-sort-dropdown {
    order: 2;
    margin-right: 0;
  }
  
  .simple-select .select-trigger {
    color: rgba(9, 19, 17, 1);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0%;
    text-align: left;
  }
  
  .simple-select .select-trigger::after {
    border-top-color: rgba(1, 169, 160, 1);
  }
  
  /* Sort Dropdown Styles Mobile */
  .smc-sort-trigger {
    color: rgba(9, 19, 17, 1);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .smc-sort-trigger .sort-arrow {
    stroke: rgba(1, 169, 160, 1);
  }
  
  /* Sort dropdown options mobile */
  .smc-sort-options {
    background: #EFF7F6 !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: none !important;
  }
  
  .smc-sort-options .sort-option {
    color: rgba(9, 19, 17, 1);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    background: transparent !important;
  }
  
  /* Sort dropdown visibility */
  .smc-sort-dropdown .smc-sort-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    margin-top: 8px;
    z-index: 100;
  }
  
  .smc-sort-dropdown.active .smc-sort-options {
    display: block !important;
  }
  
  .smc-sort-dropdown {
    position: relative;
  }
  
  .smc-sort-options .sort-option {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    border: none !important;
    border-bottom: none !important;
  }
  
  .smc-sort-options .sort-option:hover {
    background-color: transparent !important;
    color: rgba(1, 169, 160, 1) !important;
  }
  
  /* Hide sidebar filter toggle on mobile, show toolbar filter toggle */
  .smc-catalog__filter .mobile-filter-toggle {
    display: none;
  }
  
  .mobile-toolbar-filter {
    display: block !important;
  }
  
  /* Filter Wrapper Mobile */
  .smc-catalog__filter {
    padding: 0 16px;
    margin-bottom: 20px;
  }
  
  /* Filter Actions Mobile */
  .filter-actions {
    margin-top: 20px;
  }
  
  .filter-reset-btn {
    font-size: 16px;
    padding: 14px 20px;
  }
  
  /* Filter Headers Mobile - однакові розміри для всіх заголовків */
  .filter-header .filter-title {
    font-size: 18px !important;
  }
  
  .filter-all .option-text {
    font-size: 18px !important;
  }
  
  /* Загальний розмір для всіх option-text на мобільному */
  .option-text {
    font-size: 18px !important;
  }
  
  /* Filter Options Mobile */
  .filter-sub-item .option-text {
    font-size: 16px;
  }
  
  /* Mobile Filter Button */
  .mobile-filter-btn {
    font-size: 16px;
  }
  
  /* Load More Button Mobile */
  .smc-load-more-btn {
    width: 100% !important;
    max-width: 335px !important;
    margin: 0 auto !important;
  }
  
  .smc-catalog__load-more {
    display: flex !important;
    justify-content: center !important;
    padding: 0 20px !important;
    margin-top: 24px !important;
    margin-bottom: 80px !important;
  }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
  /* Залишаємо 2 колонки навіть на малих екранах */
  .smc-catalog .woocommerce ul.products,
  .smc-catalog .woocommerce .products,
  .smc-catalog ul.products {
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    padding: 0 15px !important;
  }
  
  /* Adjust padding for small screens */
  .smc-catalog__main {
    padding: 0 !important;
  }
  
  .smc-catalog__filter {
    padding: 0 12px;
  }
  
  .smc-catalog__toolbar {
    padding: 0 12px;
  }
  .smc-container {
    padding: 0!important;
  }
  /* Картки залишаються такими ж як у медіа-запиті 768px */
}

/* IMPORTANT: Hide mobile filter button on desktop screens */
@media (min-width: 769px) {
  .smc-catalog .smc-catalog__toolbar .mobile-filter-toggle.mobile-toolbar-filter {
    display: none !important;
  }
}
