.products-page {
  min-height: 100vh;
  background: #f5f7fa;
  padding: 10vh 5vw;
}

/* Layout with Sidebar */
.products-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  animation: fadeIn 0.5s ease;
  margin-top: 30px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Sidebar Styles */
.sidebar {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.section-header-pro {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f3f5;
}

.section-header-pro i {
  color: var(--zz-blue);
  font-size: 1.1rem;
}

.section-header-pro h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
}

/* Search Section */
.search-box {
  position: relative;
  display: flex;
}

.search-input {
  width: 100%;
  padding: 11px 45px 11px 15px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s;
  background: #fff;
}

.search-input:focus {
  outline: none;
  border-color: var(--zz-blue);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-btn {
  position: absolute;
  right: 3px;
  top: 3px;
  bottom: 3px;
  background: var(--zz-blue);
  color: white;
  border: none;
  padding: 0 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.search-btn:hover {
  background: #0056b3;
}

/* Categories Section */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 -20px;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  text-decoration: none;
  color: #495057;
  font-size: 0.92rem;
  transition: all 0.2s;
  background: white;
  border-bottom: 1px solid #f1f3f5;
}

.category-item:last-child {
  border-bottom: none;
}

.category-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-icon {
  color: #6c757d;
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  transition: all 0.2s;
}

.category-arrow {
  color: #adb5bd;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.category-item:hover {
  background: #f8f9fa;
  color: var(--zz-blue);
  padding-left: 24px;
}

.category-item:hover .category-icon,
.category-item:hover .category-arrow {
  color: var(--zz-blue);
}

.category-item:hover .category-arrow {
  transform: translateX(4px);
}

.category-item.active {
  background: #e7f3ff;
  color: var(--zz-blue);
  font-weight: 500;
  border-left: 3px solid var(--zz-blue);
}

.category-item.active .category-icon,
.category-item.active .category-arrow {
  color: var(--zz-blue);
}

/* Price Section */
.price-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.price-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: #6c757d;
  font-size: 0.85rem;
}

.price-input-group input {
  width: 100%;
  padding: 10px 12px 10px 32px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  font-size: 0.88rem;
  background: #fff;
  transition: all 0.2s;
}

.price-input-group input:focus {
  outline: none;
  border-color: var(--zz-blue);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.price-separator {
  text-align: center;
  color: #adb5bd;
  font-weight: 600;
  font-size: 0.9rem;
  margin: -6px 0;
}

.btn-filter-apply,
.btn-filter-reset {
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-filter-apply {
  background: var(--zz-blue);
  color: white;
  margin-bottom: 8px;
}

.btn-filter-apply:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-filter-reset {
  background: white;
  color: #6c757d;
  border: 2px solid #dee2e6;
}

.btn-filter-reset:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
}

/* Sort Section */
.sort-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.sort-icon {
  position: absolute;
  left: 12px;
  color: #6c757d;
  font-size: 0.9rem;
  pointer-events: none;
}

.select-arrow {
  position: absolute;
  right: 12px;
  color: #6c757d;
  font-size: 0.75rem;
  pointer-events: none;
}

.sort-select {
  width: 100%;
  padding: 11px 38px 11px 38px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
}

.sort-select:focus {
  outline: none;
  border-color: var(--zz-blue);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.sort-select:hover {
  border-color: #adb5bd;
}

/* Products Area */
.products-area {
  order: 1;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.results-count {
  color: #495057;
  font-size: 0.95rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-count i {
  color: var(--zz-blue);
}

.results-count strong {
  color: var(--zz-blue);
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px;
  margin-bottom: 40px;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid #e9ecef;
  position: relative;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.15);
  border-color: var(--zz-blue);
}

.product-card-actions {
  position: absolute;
  bottom: 16px;
  right: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 10;
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateY(0);
}

.btn-add-cart-small {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #00bcd4;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-add-cart-small::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.btn-add-cart-small:hover::before {
  width: 100%;
  height: 100%;
}

.btn-add-cart-small:hover {
  background: #00bcd4;
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.5);
}

.btn-add-cart-small:active {
  transform: scale(0.95);
}

.btn-add-cart-small i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.btn-add-cart-small:hover i {
  transform: scale(1.1);
}

.product-image {
  aspect-ratio: 1 / 1;
  background: #f8f9fa;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.sale-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #dc3545;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.product-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-name {
  font-weight: 600;
  font-size: 1rem;
  color: #212529;
  line-height: 1.4;
  font-family: var(--zz-font-family);
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.product-card:hover .product-name {
  color: var(--zz-blue);
}

.product-excerpt {
  color: #6c757d;
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f3f5;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 600;
  color: #dc3545;
}

.price-original {
  font-size: 0.95rem;
  color: #adb5bd;
  text-decoration: line-through;
  font-weight: 400;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #6c757d;
  background: white;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

.empty-state-icon {
  font-size: 4rem;
  color: #dee2e6;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 1.4rem;
  color: #495057;
  margin-bottom: 12px;
  font-weight: 600;
}

.empty-state p {
  font-size: 1rem;
  margin-bottom: 24px;
  color: #6c757d;
}

.btn {
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.btn-primary {
  background: var(--zz-blue);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-link {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  text-decoration: none;
  color: #495057;
  font-weight: 500;
  transition: all 0.2s;
  background: white;
  font-size: 0.9rem;
  padding: 0 12px;
}

.page-link:hover:not(.disabled):not(.active) {
  background: #f8f9fa;
  border-color: var(--zz-blue);
  color: var(--zz-blue);
}

.page-link.active {
  background: var(--zz-blue);
  color: white;
  border-color: var(--zz-blue);
  font-weight: 600;
}

.page-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.page-dots {
  color: #adb5bd;
  padding: 0 8px;
  font-weight: 500;
}

.page-info {
  text-align: center;
  margin-top: 16px;
  color: #6c757d;
  font-size: 0.9rem;
}

.page-info strong {
  color: var(--zz-blue);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
  .products-layout {
    grid-template-columns: 1fr 280px;
    gap: 20px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .products-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .products-area {
    order: 2;
  }

  .sidebar-section {
    padding: 18px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .products-page {
    padding: 1.5rem 10px;
    margin-top: 40px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .sidebar-section {
    padding: 12px;
  }

  /* Smaller product card body */
  .product-body {
    padding: 10px;
    gap: 6px;
  }

  /* Smaller product name */
  .product-name {
    font-size: 0.85rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  /* Smaller excerpt */
  .product-excerpt {
    font-size: 0.75rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  /* Smaller price */
  .price-current {
    font-size: 0.9rem;
    font-weight: 600;
  }

  .price-original {
    font-size: 0.7rem;
  }

  /* Smaller product price section */
  .product-price {
    padding-top: 8px;
    gap: 6px;
  }

  /* Smaller toolbar */
  .toolbar {
    padding: 10px 12px;
    margin-bottom: 12px;
  }

  .results-count {
    font-size: 0.8rem;
  }

  /* Smaller add to cart button */
  .product-card-actions {
    padding: 8px;
  }

  .btn-add-cart-small {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

 
}

/* ============================================
   MOBILE FILTER CHIPS STYLES
   ============================================ */

/* Hide mobile chips on desktop */
.mobile-filters-chips {
  display: none;
}

@media (max-width: 768px) {

  /* Hide breadcrumbs on mobile */
  .breadcrumbs {
    display: none;
  }

  /* Hide search section on mobile */
  .search-section {
    display: none !important;
  }

  /* Hide sidebar on mobile */
  .sidebar {
    display: none !important;
  }

  /* Show mobile filter chips */
  .mobile-filters-chips {
    display: block;
    background: white;
    padding: 12px 0;
    margin-bottom: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  /* Filter chips row */
  .filter-chips-row {
    margin-bottom: 12px;
  }

  .filter-chips-row:last-child {
    margin-bottom: 0;
  }

  /* Chips label */
  .chips-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
  }

  .chips-label i {
    color: var(--zz-blue);
    font-size: 0.8rem;
  }

  /* Horizontal scroll container */
  .chips-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
  }

  .chips-scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  /* Chips wrapper */
  .chips-wrapper {
    display: flex;
    gap: 6px;
    padding: 5px 12px;
    min-width: min-content;
  }

  /* Individual filter chip - SMALLER for 2-column layout */
  .filter-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
  }

  .filter-chip i {
    font-size: 0.7rem;
    color: #6c757d;
  }

  /* Active chip state */
  .filter-chip.active {
    background: var(--zz-blue);
    border-color: var(--zz-blue);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
  }

  .filter-chip.active i {
    color: white;
  }

  /* Hover state (for devices that support it) */
  @media (hover: hover) {
    .filter-chip:not(.active):hover {
      background: #e9ecef;
      border-color: var(--zz-blue);
      color: var(--zz-blue);
      transform: translateY(-1px);
    }

    .filter-chip:not(.active):hover i {
      color: var(--zz-blue);
    }
  }

  /* Active press state */
  .filter-chip:active {
    transform: scale(0.97);
  }

  /* Scroll hint gradient (optional) */
  .chips-scroll-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, white);
    pointer-events: none;
  }

  .filter-chips-row {
    position: relative;
  }

  /* Adjust products grid spacing on mobile */
  .products-grid {
    margin-top: 0;
  }

  /* Adjust toolbar on mobile */
  .toolbar {
    margin-top: 0;
  }
}