/* ===== PRODUCTS PAGE STYLES ===== */
.products-page {
  min-height: calc(100vh - 70px);
  background: var(--white);
  padding: 2rem 0;
}

.products-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

/* ===== SIDEBAR ===== */
.products-sidebar {
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  padding-right: 2rem;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  color: #000000;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: var(--transition-fast);
  border-left: 3px solid transparent;
}

.sidebar-nav-item:hover {
  background: rgba(207, 46, 46, 0.05);
  color: var(--primary-red);
}

.sidebar-nav-item.active {
  background: rgba(207, 46, 46, 0.1);
  color: var(--primary-red);
  border-left-color: var(--primary-red);
  font-weight: 600;
}

.sidebar-nav-item i {
  font-size: 0.75rem;
  color: var(--gray-400);
  transition: var(--transition-fast);
}

.sidebar-nav-item:hover i,
.sidebar-nav-item.active i {
  color: var(--primary-red);
}

.sidebar-subnav {
  margin-left: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gray-200);
}

.sidebar-subnav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  color: #000000;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  border-radius: 0.375rem;
  transition: var(--transition-fast);
  margin-bottom: 0.25rem;
}

.sidebar-subnav-item:hover {
  background: rgba(207, 46, 46, 0.05);
  color: var(--primary-red);
}

.sidebar-subnav-item.active {
  background: rgba(207, 46, 46, 0.1);
  color: var(--primary-red);
  font-weight: 600;
}

.sidebar-subnav-item i {
  font-size: 0.7rem;
  color: var(--gray-400);
}

.sidebar-subnav-level2 {
  margin-left: 1rem;
  margin-top: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gray-100);
}

.sidebar-subnav-item-level2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 0.375rem;
  transition: var(--transition-fast);
  margin-bottom: 0.25rem;
}

.sidebar-subnav-item-level2:hover {
  background: rgba(207, 46, 46, 0.05);
  color: var(--primary-red);
}

.sidebar-subnav-item-level2 i {
  font-size: 0.65rem;
  color: var(--gray-400);
}

/* ===== MAIN CONTENT ===== */
.products-content {
  padding: 0;
}

.products-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.breadcrumb-separator {
  color: var(--gray-400);
}

.breadcrumb-item {
  color: var(--gray-600);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb-item:hover {
  color: var(--primary-red);
}

.breadcrumb-item.active {
  color: #000000;
  font-weight: 600;
}

.products-title {
  font-size: 2rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.title-separator {
  color: var(--gray-400);
  font-weight: 400;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.product-item-card,
.product-category-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-decoration: none;
  transition: var(--transition-normal);
  display: block;
}

.product-item-card:hover,
.product-category-card:hover {
  border-color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(207, 46, 46, 0.15);
  transform: translateY(-2px);
}

.product-item-content,
.category-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-item-card h3,
.product-category-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000000;
  margin: 0;
  flex: 1;
}

.product-item-card i,
.product-category-card i {
  color: var(--primary-red);
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.product-item-card:hover i,
.product-category-card:hover i {
  transform: translateX(4px);
}

.item-count,
.category-count {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 400;
}

.products-detail {
  padding: 2rem 0;
}

.products-detail h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1rem;
}

.products-detail p {
  color: var(--gray-600);
  line-height: 1.7;
}

.products-empty {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--gray-500);
}

.products-welcome {
  padding: 2rem 0;
}

.products-welcome h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 1rem;
}

.products-welcome > p {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products-container {
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
  
  .products-sidebar {
    padding-right: 1.5rem;
  }
}

@media (max-width: 768px) {
  .products-container {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 1rem;
  }
  
  .products-sidebar {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    padding-right: 0;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .products-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .products-page {
    padding: 1rem 0;
  }
  
  .products-container {
    padding: 0 0.75rem;
  }
  
  .products-title {
    font-size: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .title-separator {
    display: none;
  }
}

