.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-widget.fe-product-category-hotline {
  padding: 14px 16px;
  background: #e5332a;
  border-color: #e5332a;
  color: #ffffff;
  text-align: center;
}

.fe-product-category-hotline-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.95;
}

.fe-product-category-hotline-phone {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.fe-product-category-hotline-phone a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #ffffff;
  text-decoration: none;
}

.fe-product-category-hotline-phone a:hover {
  text-decoration: none;
  opacity: 0.92;
}

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

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

.fe-product-category-item {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #f1f5f9;
}

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

.fe-product-category-menu a {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  color: #334155;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.fe-product-category-item.has-children a {
  padding-right: 8px;
}

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

.fe-product-category-toggle {
  flex: 0 0 36px;
  width: 36px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.fe-product-category-toggle::before {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease, color 0.2s ease;
}

.fe-product-category-toggle:hover {
  color: #0282a5;
  background: #f0f9fc;
}

.fe-product-category-menu li.is-open > .fe-product-category-item > .fe-product-category-toggle::before {
  transform: rotate(180deg);
}

.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: 14px;
}

.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: 14px;
  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: 14px;
  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%;
}

.we1-product-card {
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.we1-product-card:hover {
  border-color: #003670 !important;
  background: #fafafa !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12) !important;
}

.we1-product-card .product-thumb {
  position: relative;
}

.we1-product-card .we1-product-thumb-link img {
  transition: filter 0.3s ease;
}

.we1-product-card:hover .we1-product-thumb-link img {
  filter: blur(2px);
}

.we1-product-list-action {
  position: absolute;
  top: 50px;
  right: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  width: 32px;
  background: #003670;
  color: #ffffff;
  border-radius: 8px 0 0 8px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow: visible;
}

.we1-product-card:hover .we1-product-list-action {
  transform: translateX(0);
}

.we1-product-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.we1-product-action-btn:hover,
.we1-product-action-btn:focus {
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  outline: none;
}

.we1-product-action-label {
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translate(-100%, -50%);
  padding: 4px 12px;
  background: #003670;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.we1-product-action-label::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  margin-left: -1px;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #003670;
}

.we1-product-action-btn:hover .we1-product-action-label,
.we1-product-action-btn:focus .we1-product-action-label {
  opacity: 1;
}

@media (max-width: 640px) {
  .we1-product-list-action {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    flex-direction: row;
    border-radius: 8px 8px 0 0;
    transform: none;
  }

  .we1-product-card:hover .we1-product-list-action {
    transform: none;
  }

  .we1-product-action-btn {
    flex: 1;
    width: auto;
    height: 40px;
  }

  .we1-product-action-btn + .we1-product-action-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.5);
  }

  .we1-product-action-label {
    display: none;
  }
}

@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;
  }
}
