.fe-product-category-page {
  background: #f3f5f7;
  padding: 24px 0 56px;
  color: #1f2937;
}

.fe-product-category-loading,
.fe-product-category-empty {
  padding: 40px 16px;
  text-align: center;
  color: #667085;
  background: #ffffff;
  border: 1px dashed #d7dee8;
  border-radius: 8px;
}

.fe-product-category-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #64748b;
}

.fe-product-category-breadcrumb a {
  color: #0282a5;
  text-decoration: none;
  font-weight: 600;
}

.fe-product-category-breadcrumb a:hover {
  text-decoration: underline;
}

.fe-product-category-breadcrumb span {
  color: #111827;
  font-weight: 700;
  text-transform: uppercase;
}

.fe-product-category-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.fe-product-category-sidebar {
  display: grid;
  gap: 16px;
}

.fe-product-category-widget {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.fe-product-category-widget-title {
  margin: 0;
  padding: 12px 14px;
  background: #0282a5;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.fe-product-category-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.fe-product-category-menu li {
  margin: 0;
}

.fe-product-category-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #f1f5f9;
}

.fe-product-category-menu li:last-child > a {
  border-bottom: 0;
}

.fe-product-category-menu a:hover,
.fe-product-category-menu a.is-active {
  color: #0282a5;
  background: #f0f9fc;
}

.fe-product-category-menu .fe-product-category-submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
  background: #fafbfc;
  display: none;
}

.fe-product-category-menu li.is-open > ul.fe-product-category-submenu {
  display: block;
}

.fe-product-category-menu .fe-product-category-submenu a {
  font-weight: 500;
  font-size: 13px;
}

.fe-product-category-menu li > a {
  position: relative;
  padding-right: 32px;
}

.fe-product-category-menu li > a.has-children {
  padding-right: 28px;
}

.fe-product-category-menu li > a.has-children::after {
  content: "\f07b";
  position: absolute;
  right: 14px;
  font-family: "Font Awesome 6 Free";
  font-weight: 700;
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.fe-product-category-menu li.is-open > a.has-children::after {
  transform: rotate(-90deg);
}

.fe-product-category-new-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.fe-product-category-new-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
}

.fe-product-category-new-item:last-child {
  border-bottom: 0;
}

.fe-product-category-new-item:hover {
  background: #f8fafc;
}

.fe-product-category-new-thumb {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
}

.fe-product-category-new-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fe-product-category-new-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fe-product-category-new-price {
  color: #e5332a;
  font-size: 13px;
  font-weight: 800;
}

.fe-product-category-main {
  min-width: 0;
}

.fe-product-category-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.fe-product-category-count {
  margin: 0;
  font-size: 14px;
  color: #475569;
}

.fe-product-category-count strong {
  color: #111827;
}

.fe-product-category-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 13px;
}

.fe-product-category-sort-label {
  font-weight: 700;
  color: #334155;
}

.fe-product-category-sort label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  cursor: pointer;
  color: #475569;
  font-weight: 500;
}

.fe-product-category-sort input {
  margin: 0;
  accent-color: #0282a5;
}

.fe-product-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.fe-product-detail-card {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 32px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.fe-product-detail-main-image {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f8fafc;
}

.fe-product-detail-main-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.fe-product-detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.fe-product-detail-thumb {
  width: 62px;
  height: 62px;
  padding: 2px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe3ed;
  border-radius: 6px;
  cursor: pointer;
}

.fe-product-detail-thumb.is-active { border-color: #0282a5; }
.fe-product-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fe-product-detail-info h1 { margin: 0 0 20px; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; color: #1f2937; text-transform: uppercase; }
.fe-product-detail-price { padding: 14px 0; color: #e5332a; font-size: 28px; font-weight: 800; border-top: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; }
.fe-product-detail-old-price { margin-top: 6px; color: #94a3b8; text-decoration: line-through; }
.fe-product-detail-sku { margin-top: 20px; color: #64748b; }
.fe-product-detail-intro { margin-top: 20px; color: #475569; line-height: 1.7; }
.fe-product-detail-description, .fe-product-best-sellers { margin-top: 28px; padding: 26px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; }
.fe-product-detail-description h2, .fe-product-best-sellers h2 { margin: 0 0 20px; padding-bottom: 12px; color: #0282a5; font-size: 21px; font-weight: 800; text-transform: uppercase; border-bottom: 2px solid #0282a5; }
.fe-product-detail-description { color: #334155; line-height: 1.7; }

.fe-reference-detail-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.fe-reference-main, .fe-product-detail-sidebar { min-width: 0; }
.fe-reference-product-box, .fe-reference-tabs, .fe-reference-comments, .fe-product-detail-sidebar { margin-bottom: 12px; padding: 18px; background: #fff; border-radius: 8px; box-shadow: 0 1px 5px rgba(15, 23, 42, .12); }
.fe-reference-product-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.fe-reference-main-image { aspect-ratio: 1; overflow: hidden; background: #f8fafc; }
.fe-reference-main-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fe-reference-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.fe-reference-info h1 { margin: 0 0 16px; color: #1f2937; font-size: 25px; font-weight: 700; line-height: 1.4; }
.fe-reference-info hr { margin: 16px 0; border: 0; border-top: 1px solid #e5e7eb; }
.fe-reference-price-row { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.fe-reference-price-row strong { color: #b5070a; font-size: 23px; }
.fe-reference-old-price { margin-top: 5px; color: #94a3b8; text-decoration: line-through; }
.fe-reference-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fe-reference-actions button, .fe-reference-hotline { min-height: 42px; padding: 9px 12px; border: 1px solid #b5070a; border-radius: 3px; font-weight: 700; text-transform: uppercase; text-align: center; cursor: pointer; }
.fe-reference-buy { color: #fff; background: #b5070a; }
.fe-reference-cart { color: #b5070a; background: #fff; }
.fe-reference-consult { color: #fff; background: #3366ff; border-color: #3366ff !important; }
.fe-reference-hotline { display: flex; align-items: center; justify-content: center; gap: 8px; color: #b5070a; text-decoration: none; background: #fff; }
.fe-reference-tab-list { display: flex; border-bottom: 1px solid #dee2e6; overflow-x: auto; }
.fe-reference-tab-list button { padding: 11px 16px; color: #475569; background: transparent; border: 0; border-bottom: 2px solid transparent; font-weight: 700; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.fe-reference-tab-list button.is-active { color: #b5070a; border-bottom-color: #b5070a; }
.fe-reference-tab-panel { display: none; padding: 18px 4px 4px; color: #334155; line-height: 1.7; }
.fe-reference-tab-panel.is-active { display: block; }
.fe-reference-comments h2, .fe-product-detail-sidebar h2 { margin: 0 0 16px; color: #1f2937; font-size: 19px; font-weight: 700; text-transform: uppercase; }
.fe-reference-comments textarea { width: 100%; min-height: 100px; padding: 10px; border: 1px solid #d7dee8; border-radius: 4px; resize: vertical; }
.fe-reference-comments > div { display: flex; gap: 10px; margin-top: 10px; }
.fe-reference-comments input { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid #d7dee8; border-radius: 4px; }
.fe-reference-comments button { padding: 9px 22px; color: #fff; background: #b5070a; border: 0; border-radius: 4px; }
.fe-product-detail-sidebar { padding: 0; overflow: hidden; }
.fe-product-detail-sidebar h2 { margin: 0; padding: 13px 14px; color: #fff; background: #0282a5; font-size: 16px; }
.fe-product-best-seller { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; padding: 10px; color: inherit; text-decoration: none; border-bottom: 1px solid #e9eef4; }
.fe-product-best-seller:last-child { border-bottom: 0; }
.fe-product-best-seller img { width: 80px; height: 80px; object-fit: cover; }
.fe-product-best-seller strong { display: -webkit-box; overflow: hidden; color: #1f2937; font-size: 13px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fe-product-best-seller em { display: block; margin-top: 8px; color: #e5332a; font-size: 13px; font-style: normal; font-weight: 800; }

@media (max-width: 767px) {
  .fe-product-detail-card { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .fe-reference-detail-layout, .fe-reference-product-box { grid-template-columns: 1fr; }
  .fe-reference-product-box { gap: 18px; }
  .fe-reference-comments > div { flex-wrap: wrap; }
  .fe-reference-comments input { flex-basis: 100%; }
}

.fe-product-category-grid .fe-menu-cat-card {
  height: 100%;
}

@media (max-width: 1199px) {
  .fe-product-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .fe-product-category-layout {
    grid-template-columns: 1fr;
  }

  .fe-product-category-sidebar {
    display: none;
  }

  .fe-product-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .fe-product-category-page {
    padding: 16px 0 40px;
  }

  .fe-product-category-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
