/* HIERARCHICAL CATEGORY SYSTEM STYLES */

/* Category Breadcrumb */
.category-breadcrumb {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #495057;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.breadcrumb-item:hover {
  background: rgba(0, 183, 97, 0.1);
  color: #00B761;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #6c757d;
  font-size: 12px;
}

/* Hierarchical Category Items */
.category-item.hierarchical {
  display: flex;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-item.hierarchical:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 183, 97, 0.2);
  border-color: #00B761;
}

.category-item.hierarchical.active {
  background: linear-gradient(135deg, #00B761, #00a055);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 183, 97, 0.3);
}

.category-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-name {
  font-weight: 600;
  font-size: 16px;
}

.category-arrow {
  color: #6c757d;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.category-item.hierarchical:hover .category-arrow {
  transform: translateX(3px);
  color: #00B761;
}

.category-item.hierarchical.active .category-arrow {
  color: white;
}

.category-level-indicator {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 183, 97, 0.1);
  color: #00B761;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.category-item.hierarchical.active .category-level-indicator {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* No Products State */
.no-products {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.no-products i {
  font-size: 48px;
  color: #dee2e6;
  margin-bottom: 20px;
}

.no-products h3 {
  color: #495057;
  margin-bottom: 10px;
}

.no-products p {
  margin-bottom: 30px;
  font-size: 16px;
}

.btn-primary {
  background: #00B761;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #00a055;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 183, 97, 0.3);
}

/* Enhanced Product Cards */
.product-category {
  font-size: 12px;
  color: #6c757d;
  background: #f8f9fa;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 8px;
}

.product-discount {
  color: #e74c3c;
  font-size: 14px;
  text-decoration: line-through;
  margin-top: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .category-breadcrumb {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .breadcrumb-item {
    font-size: 12px;
  }
  
  .category-item.hierarchical {
    padding: 12px;
  }
  
  .category-name {
    font-size: 14px;
  }
  
  .category-level-indicator {
    font-size: 9px;
    padding: 1px 4px;
  }
}

/* Category Animations */
.category-item.hierarchical {
  animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-breadcrumb {
  animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-row {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 0;
  scroll-behavior: smooth;
}

/* CATEGORY SECTION FIX */

.categories-section {
  margin: 20px 0;
  padding: 10px;
}

.categories-scroll {
  display: flex;
  flex-direction: row;
  gap: 15px;
  overflow-x: auto;
  padding: 10px;
  scroll-behavior: smooth;
}

/* Category Card Proper Box */
.category-card {
  min-width: 120px;
  max-width: 140px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  flex-shrink: 0;
}

.category-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Icon & Name */
.category-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.category-name {
  font-size: 14px;
  font-weight: 600;
}
