.category-page-row {
padding-top: 10px;
}

/* Category Header */
.sghn-category-header {
    text-align: left; /* Căn trái */
    margin: 1px 0 20px;
}

.sghn-category-title {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    color: #222;
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Khoảng cách giữa vạch vàng và chữ */
    position: relative;
}

/* Thanh vàng đứng bên trái */
.sghn-category-title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 24px;
    background-color: #0db04b;
    border-radius: 2px;
}
/* ===================================
   Category Page Styles - Tối giản
=================================== */

/* ---------- Danh mục con ---------- */
/* Danh mục con - Không có ảnh */
.sghn-child-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.sghn-child-category-item {
    flex: 0 0 calc(16.666% - 13px);
    text-align: center;
    text-decoration: none;
    background: #000;
    padding: 12px 15px;
    border: none;
    transition: all 0.3s ease;
}

.sghn-child-category-item:hover {
    background: linear-gradient(180deg, #0db04b 0%, #078a38 100%);
    color: #fff;
}

/* Ẩn hoàn toàn phần hình ảnh */
.sghn-child-category-image {
    display: none !important;
}

.sghn-child-category-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
}

/* ---------- Thanh lọc và sắp xếp ---------- */
.sghn-sorting-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  gap: 20px;
}

.sghn-filter-bar {
  display: flex;
  align-items: center;
  gap: 15px;
}

.filter-label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.filter-item select,
.sghn-ordering select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}

/* ---------- Category Content - Nội dung mô tả ---------- */
.sghn-category-content-wrapper {
  margin: 30px 0;
  padding: 25px;
  background: #f9f9f9;
}

.sghn-category-content {
  max-height: 300px;
  overflow: hidden;
}

.sghn-category-content.expanded {
  max-height: none;
}

.sghn-category-content h1,
.sghn-category-content h2,
.sghn-category-content h3 {
  margin-top: 20px;
  margin-bottom: 12px;
  color: #333;
}

.sghn-category-content h1 {
  font-size: 26px;
}

.sghn-category-content h2 {
  font-size: 22px;
}

.sghn-category-content h3 {
  font-size: 18px;
}

.sghn-category-content p {
  line-height: 1.7;
  margin-bottom: 12px;
  color: #666;
}

.sghn-category-content ul,
.sghn-category-content ol {
  margin-bottom: 12px;
  padding-left: 25px;
}

.sghn-category-content li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.sghn-category-content img {
  max-width: 100%;
  height: auto;
  margin: 12px 0;
}

.sghn-read-more-btn {
  display: block;
  margin: 15px auto 0;
  padding: 10px 25px;
  background: linear-gradient(180deg, #0DB04B26 90%);
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.sghn-read-more-btn:hover {
  background: linear-gradient(180deg, #0db04b 0%, #078a38 100%);
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 4px 10px rgba(13, 176, 75, 0.25);
}

.sghn-read-more-btn.hidden {
  display: none;
}

/* ---------- Category Header ---------- */
.sghn-category-header {
  margin-bottom: 20px;
}

.sghn-category-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0 0 10px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sghn-child-category-item {
    flex: 0 0 calc(25% - 12px);
  }
}

@media (max-width: 768px) {
  .sghn-child-category-item {
    flex: 0 0 calc(33.333% - 10px);
  }

  .sghn-child-category-image {
    height: 80px;
  }

  .sghn-sorting-bar {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .sghn-filter-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .filter-item {
    flex: 1;
    min-width: 120px;
  }

  .filter-item select,
  .sghn-ordering select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .sghn-child-category-item {
    flex: 0 0 calc(50% - 8px);
  }

  .sghn-child-categories {
    gap: 10px;
  }

  .sghn-child-category-image {
    height: 70px;
  }

  .sghn-child-category-name {
    font-size: 12px;
  }

  .sghn-category-title {
    font-size: 22px;
  }

  .filter-item select,
  .sghn-ordering select {
    font-size: 12px;
    padding: 6px 10px;
  }
}



/* Fix Sorting Bar Layout - Giữ ordering cùng hàng */
.sghn-sorting-bar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* hoặc flex-end tùy ý */
    flex-wrap: nowrap !important;
    gap: 12px;
    margin-bottom: 20px; /* khoảng cách với phần dưới */  
    background: linear-gradient(180deg, #0DB04B26 0%);
    padding: 8px 12px;
    border-radius: 8px;
    

}

.sghn-filter-bar {
    flex: 1 1 auto;
    min-width: 0; /* Cho phép shrink */      
}

.sghn-ordering {
    flex: 0 0 auto;
     white-space: nowrap;
}

.sghn-custom-select {
    position: relative;
    display: inline-block;
    margin-left: 12px;
}

/* Ẩn select thật nhưng vẫn giữ chức năng */
.sghn-custom-select select {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

/* Label hiển thị bên ngoài */
.sghn-select-label {
    display: inline-block;
    padding: 8px 32px 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    min-width: 140px;
    position: relative;
    z-index: 1;
    pointer-events: none;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    transition: all 0.2s ease;
}

/* Hover effect */
.sghn-custom-select:hover .sghn-select-label {
    border-color: #0db04b;
}

/* Icon mũi tên */
.sghn-select-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    color: #666;
    transition: transform 0.2s ease;
}

/* Focus state */
.sghn-custom-select select:focus + .sghn-select-label {
    border-color: #111;
    box-shadow: 0 0 0 2px rgba(13, 176, 75, 0.1);
}

/* Xoay mũi tên khi mở dropdown (optional) */
.sghn-custom-select select:focus ~ .sghn-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* ============================================
   BREADCRUMB STYLES
   ============================================ */

.sghn-breadcrumb {
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.sghn-breadcrumb span {
    display: inline-block;
}

.sghn-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sghn-breadcrumb a:hover {
    color: #0db04b;
}

.sghn-breadcrumb .divider {
    margin: 0 8px;
    color: #999;
}

/* Category Header với Breadcrumb */
.sghn-category-header {
    text-align: left;
    margin: 40px 0 20px;
}

.sghn-category-title {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    color: #222;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin-top: 10px; /* Khoảng cách với breadcrumb */
}

/* Thanh xanh đứng bên trái */
.sghn-category-title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 24px;
    background-color: #0db04b;
    border-radius: 2px;
}

/* Responsive Breadcrumb */
@media (max-width: 768px) {
    .sghn-breadcrumb {
        font-size: 12px;
    }
    
    .sghn-breadcrumb .divider {
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .sghn-category-title {
        font-size: 22px;
    }
    
    .sghn-category-title::before {
        height: 20px;
    }
}


/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile */
@media (max-width: 480px) {
    .sghn-custom-select {
        width: 100%;
    }
    
    .sghn-select-label {
        width: 100%;
        min-width: unset;
        padding: 12px 36px 12px 14px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .sghn-select-label {
        font-size: 13px;
        padding: 10px 32px 10px 12px;
    }
}