/**
 * Shop/Catalog Styles - BudMarket
 * Стилі для сторінки каталогу товарів
 */
/* Variables */
/* Shop Page Layout */
.shop-page .main-content {
  padding-top: 0;
}
/* Page Header */
.page-header {
  padding: 40px 0;
  border-bottom: 1px solid #e1e1e1;
}
@media (max-width: 768px) {
  .page-header {
    padding: 30px 0;
  }
}
.page-header .page-header-content .breadcrumbs {
  margin-bottom: 16px;
}
.page-header .page-header-content .breadcrumbs .woocommerce-breadcrumb {
  font-size: 14px;
  color: #666666;
}
.page-header .page-header-content .breadcrumbs .woocommerce-breadcrumb a {
  color: #666666;
  text-decoration: none;
}
.page-header .page-header-content .breadcrumbs .woocommerce-breadcrumb a:hover {
  color: #E31E24;
}
.page-header .page-header-content .page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #333333;
}
@media (max-width: 768px) {
  .page-header .page-header-content .page-title {
    font-size: 28px;
  }
}
.page-header .page-header-content .category-description {
  color: #666666;
  line-height: 1.6;
}
.page-header .page-header-content .category-description p {
  margin-bottom: 12px;
}
/* Shop Content */
.shop-content {
}
@media (max-width: 768px) {
  .shop-content {
    padding: 40px 0;
  }
}
/* Shop Layout */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
}
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 250px 1fr;
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
/* Sidebar */
@media (max-width: 768px) {
  .shop-sidebar {
    order: 2;
  }
}
.shop-sidebar .filter-widget {
  background: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}
.shop-sidebar .filter-widget .widget-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  background: #f8f9fa;
  border-bottom: 1px solid #e1e1e1;
}
.shop-sidebar .filter-widget .widget-title svg {
  color: #E31E24;
  width: 20px;
  height: 20px;
}
.shop-sidebar .filter-widget .widget-content {
  padding: 20px;
}
.shop-sidebar .filter-widget .widget-content .category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.shop-sidebar .filter-widget .widget-content .category-list .category-item {
  margin-bottom: 8px;
}
.shop-sidebar .filter-widget .widget-content .category-list .category-item:last-child {
  margin-bottom: 0;
}
.shop-sidebar .filter-widget .widget-content .category-list .category-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  color: #333333;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.shop-sidebar .filter-widget .widget-content .category-list .category-item a:hover,
.shop-sidebar .filter-widget .widget-content .category-list .category-item a.active {
  background: #E31E24;
  color: white;
}
.shop-sidebar .filter-widget .widget-content .category-list .category-item a .count {
  font-size: 12px;
  opacity: 0.7;
}
.shop-sidebar .filter-widget .widget-content .filter-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.shop-sidebar .filter-widget .widget-content .filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #E31E24;
}
.shop-sidebar .filter-widget .widget-content .filter-checkbox span {
  color: #333333;
  font-size: 14px;
}
/* Price Filter Widget */
.widget_price_filter .price_slider_wrapper .ui-slider {
  background: #e1e1e1;
  border: none;
  height: 6px;
  border-radius: 3px;
}
.widget_price_filter .price_slider_wrapper .ui-slider .ui-slider-handle {
  width: 18px;
  height: 18px;
  background: #E31E24;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  top: -6px;
  cursor: pointer;
}
.widget_price_filter .price_slider_wrapper .ui-slider .ui-slider-handle:focus {
  outline: none;
}
.widget_price_filter .price_slider_wrapper .ui-slider .ui-slider-range {
  background: #E31E24;
  border-radius: 3px;
}
.widget_price_filter .price_slider_wrapper .price_slider_amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.widget_price_filter .price_slider_wrapper .price_slider_amount .price_label {
  font-size: 14px;
  color: #666666;
}
.widget_price_filter .price_slider_wrapper .price_slider_amount .button {
  background: #E31E24;
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}
.widget_price_filter .price_slider_wrapper .price_slider_amount .button:hover {
  background: #c31118;
}
/* Shop Toolbar */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
}
@media (max-width: 768px) {
  .shop-toolbar {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}
.shop-toolbar .toolbar-left .results-count {
  color: #666666;
  font-size: 14px;
}
.shop-toolbar .toolbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 768px) {
  .shop-toolbar .toolbar-right {
    justify-content: space-between;
  }
}
.shop-toolbar .toolbar-right .view-mode {
  display: flex;
  gap: 8px;
}
.shop-toolbar .toolbar-right .view-mode .view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666666;
}
.shop-toolbar .toolbar-right .view-mode .view-btn:hover,
.shop-toolbar .toolbar-right .view-mode .view-btn.active {
  background: #E31E24;
  color: white;
  border-color: #E31E24;
}
.shop-toolbar .toolbar-right .shop-ordering select {
  padding: 8px 12px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  color: #333333;
}
.shop-toolbar .toolbar-right .shop-ordering select:focus {
  outline: none;
  border-color: #E31E24;
}
/* Products Container */
.products-container .products-grid {
  display: grid;
  gap: 30px;
}
.products-container .products-grid.grid-view {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
@media (max-width: 768px) {
  .products-container .products-grid.grid-view {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .products-container .products-grid.grid-view {
    gap: 10px;
  }
  .product-card .product-image {
    height: 180px;
  }
  .product-card .product-info {
    padding: 12px;
  }
  .product-card .product-info .product-title a {
    font-size: 13px;
  }
  .product-card .product-info .product-price {
    font-size: 15px;
    margin-bottom: 10px;
  }
  .product-card .product-info .product-cart .add-to-cart {
    padding: 9px 8px;
    font-size: 13px;
  }
}
.products-container .products-grid.list-view {
  grid-template-columns: 1fr;
  gap: 20px;
}
.products-container .products-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .products-container .products-grid.list-view .product-card {
    grid-template-columns: 150px 1fr;
    gap: 16px;
  }
}
@media (max-width: 576px) {
  .products-container .products-grid.list-view .product-card {
    grid-template-columns: 1fr;
  }
}
.products-container .products-grid.list-view .product-card .product-image {
  height: 200px;
}
@media (max-width: 768px) {
  .products-container .products-grid.list-view .product-card .product-image {
    height: 150px;
  }
}
.products-container .products-grid.list-view .product-card .product-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}
.products-container .products-grid.list-view .product-card .product-info .product-excerpt {
  display: block;
  margin: 12px 0;
}
/* Product Card */
.product-card {
  background: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: #E31E24;
}
.product-card .product-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}
.product-card .product-image a {
  display: block;
  height: 100%;
}
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card .product-image:hover img {
  transform: scale(1.05);
}
.product-card .product-image .sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #E31E24;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}
.product-card .product-image .product-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}
.product-card .product-image:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}
.product-card .product-image .quick-view-btn,
.product-card .product-image .wishlist-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #e1e1e1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333333;
}
.product-card .product-image .quick-view-btn:hover,
.product-card .product-image .wishlist-btn:hover {
  background: #E31E24;
  color: white;
  border-color: #E31E24;
  transform: scale(1.1);
}
.product-card .product-image .quick-view-btn svg,
.product-card .product-image .wishlist-btn svg {
  width: 16px;
  height: 16px;
}
.product-card .product-info {
  padding: 20px;
}
.product-card .product-info .product-categories {
  margin-bottom: 8px;
}
.product-card .product-info .product-categories .category-links {
  font-size: 12px;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-card .product-info .product-title {
  margin-bottom: 12px;
}
.product-card .product-info .product-title a {
  color: #333333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.product-card .product-info .product-title a:hover {
  color: #E31E24;
}
.product-card .product-info .product-rating {
  margin-bottom: 12px;
}
.product-card .product-info .product-rating .star-rating {
  font-size: 14px;
  color: #ffc107;
}
.product-card .product-info .product-price {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  color: #E31E24;
}
.product-card .product-info .product-price del {
  color: #999999;
  font-weight: 400;
  margin-right: 8px;
  font-size: 16px;
}
.product-card .product-info .product-price .woocommerce-Price-amount {
  font-weight: inherit;
}
.product-card .product-info .product-excerpt {
  display: none;
  color: #666666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.list-view .product-card .product-info .product-excerpt {
  display: block;
}
.product-card .product-info .product-cart .add-to-cart {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.product-card .product-info .product-cart .add-to-cart svg {
  width: 16px;
  height: 16px;
}
.product-card .product-info .product-cart .out-of-stock {
  display: block;
  text-align: center;
  color: #999999;
  font-style: italic;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
}
/* Pagination */
.shop-pagination {
  margin-top: 60px;
}
.shop-pagination .woocommerce-pagination {
  text-align: center;
}
.shop-pagination .woocommerce-pagination .page-numbers {
  display: inline-flex;
  gap: 8px;
}
.shop-pagination .woocommerce-pagination .page-numbers .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  color: #333333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}
.shop-pagination .woocommerce-pagination .page-numbers .page-numbers:hover,
.shop-pagination .woocommerce-pagination .page-numbers .page-numbers.current {
  background: #E31E24;
  color: white;
  border-color: #E31E24;
}
.shop-pagination .woocommerce-pagination .page-numbers .page-numbers.prev,
.shop-pagination .woocommerce-pagination .page-numbers .page-numbers.next {
  width: auto;
  padding: 0 16px;
}
/* No Products Found */
.no-products-found {
  text-align: center;
  padding: 80px 20px;
}
.no-products-found .no-products-content {
  max-width: 400px;
  margin: 0 auto;
}
.no-products-found .no-products-content svg {
  color: #999999;
  margin-bottom: 24px;
}
.no-products-found .no-products-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333333;
}
.no-products-found .no-products-content p {
  color: #666666;
  line-height: 1.6;
  margin-bottom: 32px;
}
.no-products-found .no-products-content .btn {
  padding: 16px 32px;
}
/* Recently Viewed Section */
.recently-viewed-section {
  padding: 80px 0;
  background: #f8f9fa;
}
@media (max-width: 768px) {
  .recently-viewed-section {
    padding: 60px 0;
  }
}
.recently-viewed-section .section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #333333;
}
@media (max-width: 768px) {
  .recently-viewed-section .section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
}
.recently-viewed-section .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
@media (max-width: 768px) {
  .recently-viewed-section .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
}
/* Mobile Responsive */
@media (max-width: 768px) {
  .shop-sidebar {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 20px;
  }
  .shop-sidebar .filter-widget {
    border: none;
    margin-bottom: 16px;
  }
  .shop-sidebar .filter-widget .widget-title {
    background: none;
    border-bottom: 1px solid #e1e1e1;
    padding: 0 0 12px;
  }
  .shop-sidebar .filter-widget .widget-content {
    padding: 16px 0 0;
  }
}
/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
}
.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid #e1e1e1;
  border-top: 2px solid #E31E24;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Filter Animations */
.filter-fade-enter {
  opacity: 0;
  transform: translateY(20px);
}
.filter-fade-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}
.filter-fade-exit {
  opacity: 1;
  transform: translateY(0);
}
.filter-fade-exit-active {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}
/* Category current path breadcrumb (shown before sorting) */
.category-current-path {
  margin-bottom: 12px;
}
.category-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
}
.category-breadcrumb__sep {
  color: #999999;
  line-height: 1;
}
.category-breadcrumb__item {
  color: #666666;
  text-decoration: none;
  transition: color 0.2s;
}
.category-breadcrumb__item:hover {
  color: #E31E24;
}
.category-breadcrumb__item--current {
  color: #2B2B2B;
  font-weight: 600;
}
/*# sourceMappingURL=shop.css.map */

/* =====================================================
   Sidebar category tree — redesign
   ===================================================== */

/* Extend category list to full widget width (negative margins cancel widget-content padding) */
.shop-sidebar .filter-widget .widget-content .category-list {
  margin: -20px;
  padding: 8px 0;
}

/* Separator between root items */
.shop-sidebar .filter-widget .widget-content .category-list.hierarchical > .parent-category {
  border-bottom: 1px solid #f2f2f2;
  margin-bottom: 0;
}
.shop-sidebar .filter-widget .widget-content .category-list.hierarchical > .parent-category:last-child {
  border-bottom: none;
}

/* ── Parent (root) link ── */
.shop-sidebar .filter-widget .widget-content .category-list .category-item .parent-link {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 16px 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #1e1e1e;
  text-decoration: none;
  background: transparent;
  border-radius: 0;
  position: relative;
  justify-content: flex-start;
  transition: background 0.18s, color 0.18s;
}

.shop-sidebar .filter-widget .widget-content .category-list .category-item .parent-link .category-name {
  flex: 1;
  line-height: 1.3;
}

.shop-sidebar .filter-widget .widget-content .category-list .category-item .parent-link:hover {
  background: #fdf0f0;
  color: #E21E25;
}

.shop-sidebar .filter-widget .widget-content .category-list .category-item .parent-link.active {
  color: #E21E25;
  background: #fdf0f0;
}

.shop-sidebar .filter-widget .widget-content .category-list .category-item .parent-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: #E21E25;
  border-radius: 0 2px 2px 0;
}

/* ── Toggle arrows ── */
.toggle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  color: #bbb;
  transition: transform 0.25s ease, color 0.18s;
}

.toggle-arrow--sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  color: #ccc;
  transition: transform 0.25s ease, color 0.18s;
}

/* Окрема кнопка-стрілка для level-3 (поза тегом <a>) */
.child-category-row {
  display: flex;
  align-items: center;
}
.child-category-row .child-link {
  flex: 1;
}
.toggle-btn-sm {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  padding: 0;
  transition: transform 0.25s ease, color 0.18s;
}
.toggle-btn-sm:hover { color: #E21E25; }
.child-category.is-open > .child-category-row > .toggle-btn-sm {
  transform: rotate(180deg);
  color: #E21E25;
}

.parent-category.is-open > .parent-link .toggle-arrow {
  transform: rotate(180deg);
  color: #E21E25;
}

/* ── Sub-category list (level 2) — collapsed by default ── */
.sub-category-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: #fafafa;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.parent-category.is-open > .sub-category-list {
  max-height: 1200px;
}

/* ── Child (level 2) link ── */
.shop-sidebar .filter-widget .widget-content .category-list .category-item .child-link {
  display: flex;
  align-items: center;
  padding: 7px 16px 7px 36px;
  font-size: 13px;
  font-weight: 400;
  color: #555;
  text-decoration: none;
  background: transparent;
  border-radius: 0;
  border-left: 2px solid transparent;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  justify-content: flex-start;
}

.shop-sidebar .filter-widget .widget-content .category-list .category-item .child-link:hover {
  color: #E21E25;
  background: #fdf0f0;
}

.shop-sidebar .filter-widget .widget-content .category-list .category-item .child-link.active {
  color: #E21E25;
  font-weight: 600;
  background: #fdf0f0;
  border-left-color: #E21E25;
}

/* ── Sub-sub-category list (level 3) — collapsed by default ── */
.sub-sub-category-list {
  list-style: none;
  margin: 0;
  padding: 2px 0;
  background: #f5f5f5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.child-category.is-open > .sub-sub-category-list {
  max-height: 600px;
}

/* ── Grandchild (level 3) link ── */
.shop-sidebar .filter-widget .widget-content .category-list .grandchild-category a {
  display: block;
  padding: 5px 16px 5px 52px;
  font-size: 12px;
  color: #777;
  text-decoration: none;
  background: transparent;
  border-radius: 0;
  transition: color 0.18s, background 0.18s;
}

.shop-sidebar .filter-widget .widget-content .category-list .grandchild-category a:hover {
  color: #E21E25;
  background: #fdf0f0;
}

.shop-sidebar .filter-widget .widget-content .category-list .grandchild-category a.active {
  color: #E21E25;
  font-weight: 600;
}