.nav .nav-links ul,
.footer-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav .nav-links li,
.footer-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav .nav-links a {
  display: block;
}

.nav .nav-links .current-menu-item > a,
.nav .nav-links .current_page_item > a,
.nav .nav-links .current-menu-ancestor > a {
  background: var(--blue-dark);
}

.footer-nav .nav-links {
  display: contents;
}

.footer-nav ul {
  justify-content: center;
  gap: 46px;
}

.footer-nav a {
  color: inherit;
}

.page-hero[style] {
  background-color: #0d2658;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, auto 100%;
}

@media (max-width: 768px) {
  .page-hero[style] {
    background-size: cover, auto 100%;
  }
}

.wp-content-block {
  color: #666666;
  font-size: 15px;
  line-height: 30px;
}

.single-content h1 {
  margin: 0 0 18px;
  font-size: 32px;
  font-weight: 400;
}

.qydw-empty {
  padding: 30px;
  text-align: center;
  color: #777777;
  background: #ffffff;
  border: 1px solid var(--line);
}

.qydw-form-success,
.qydw-form-error {
  padding: 10px 14px;
  margin: 14px 0 0;
  line-height: 24px;
}

.qydw-form-success {
  color: #176b36;
  background: #edf8f0;
  border: 1px solid #bfe6ca;
}

.qydw-form-error {
  color: #a33a20;
  background: #fff2ee;
  border: 1px solid #f0c8bd;
}

.case-card a,
.news-card a {
  color: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-grid .product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e5eaf2;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(18, 47, 105, 0.06);
}

.product-panel {
  padding: 20px;
}

.product-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-grid .product-card:hover {
  border-color: #cbd7e8;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(18, 47, 105, 0.1);
}

.product-grid .product-link {
  display: block;
  margin: 0;
  border-radius: 0;
  background: #f8fafc;
  overflow: hidden;
}

.product-grid .product-card img {
  width: 100%;
  height: 190px;
  padding: 14px;
  object-fit: contain;
  background: transparent;
}

.product-grid .product-card .content {
  padding: 14px 14px 16px;
  text-align: center;
}

.product-grid .product-card h3 {
  margin: 0;
  min-height: 48px;
  color: #222222;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.product-grid .product-card p {
  min-height: 48px;
  margin: 9px 0 0;
  color: #777777;
  font-size: 14px;
  line-height: 24px;
}

.product-grid .product-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 34px;
  margin-top: 12px;
  padding: 0 16px;
  border: 1px solid #1e50ae;
  border-radius: 2px;
  background: #ffffff;
  color: #1e50ae;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.product-grid .product-more:hover {
  background: #1e50ae;
  color: #ffffff;
  text-decoration: none;
}

.product-category-bar.product-category-bar-page {
  justify-content: flex-start;
  gap: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 1px solid #e1e6ef;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.product-category-bar.product-category-bar-page::-webkit-scrollbar {
  display: none;
}

.product-category-bar.product-category-bar-page .tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: auto;
  min-height: 44px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid #e1e6ef;
  border-radius: 0;
  background: #ffffff;
  color: #333333;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
}

.product-category-bar.product-category-bar-page .tab-btn:hover {
  background: #f5f8fc;
  color: #1e50ae;
  box-shadow: none;
  transform: none;
}

.product-category-bar.product-category-bar-page .tab-btn.active {
  background: #1e50ae;
  color: #ffffff;
  border-color: #1e50ae;
  box-shadow: none;
}

.post-type-archive-product .section,
.tax-product_category .section {
  padding-top: 48px;
}

.post-type-archive-product .section-header,
.tax-product_category .section-header {
  margin-bottom: 24px;
}

.post-type-archive-product .product-panel,
.tax-product_category .product-panel {
  border-radius: 0;
  box-shadow: none;
}

.single-product .page-hero {
  padding: 48px 0;
}

.single-product .page-hero h2 {
  font-size: 34px;
  font-weight: 600;
}

.single-product .page-hero p {
  max-width: 900px;
  margin-top: 12px;
  font-size: 15px;
}

.single-product .section {
  padding: 50px 0 58px;
}

.single-product .section.alt {
  background: #f6f8fb;
}

.single-product .product-detail-layout {
  align-items: stretch;
  gap: 34px;
}

.single-product .product-detail-image {
  width: 520px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(18, 47, 105, 0.07);
}

.single-product .product-detail-image img {
  width: 100%;
  height: 430px;
  padding: 26px;
  object-fit: contain;
}

.single-product .product-detail-content {
  padding: 30px 34px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(18, 47, 105, 0.07);
}

.single-product .product-detail-tag {
  padding: 6px 12px;
  border-left: 3px solid #1e50ae;
  border-radius: 0;
  background: #f2f6fc;
  color: #1e50ae;
  font-size: 14px;
  font-weight: 700;
}

.single-product .product-detail-content h1 {
  margin: 18px 0 0;
  color: #1f2937;
  font-size: 32px;
  font-weight: 700;
  line-height: 42px;
}

.single-product .product-detail-intro {
  margin: 16px 0 0;
  color: #5f6b7a;
  font-size: 15px;
  line-height: 28px;
}

.single-product .product-detail-meta {
  display: block;
  margin-top: 24px;
  border-top: 1px solid #e8edf4;
}

.single-product .meta-item {
  display: flex;
  gap: 16px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #e8edf4;
  border-radius: 0;
  background: transparent;
}

.single-product .meta-item strong {
  width: 92px;
  color: #26364d;
  font-weight: 700;
}

.single-product .meta-item span {
  color: #666666;
}

.single-product .product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.single-product .product-detail-actions .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  width: auto;
  height: 42px;
  padding: 0 22px;
  border-radius: 2px;
  white-space: nowrap;
}

.single-product .product-detail-actions .cta-button-light {
  border: 1px solid #1e50ae;
  background: #ffffff;
  color: #1e50ae;
}

.single-product .product-detail-actions .cta-button-light:hover {
  background: #1e50ae;
  color: #ffffff;
}

.single-product .product-detail-desc {
  max-width: none;
  padding: 30px 34px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  color: #555555;
  font-size: 15px;
  line-height: 30px;
}

.single-product .product-detail-desc ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.single-product .product-detail-desc li {
  margin: 6px 0;
}

@media (max-width: 767px) {
  .nav .nav-links ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .nav .nav-links {
    width: 100%;
  }

  .nav .nav-links ul::-webkit-scrollbar {
    display: none;
  }

  .nav .nav-links > a,
  .nav .nav-links li {
    display: flex;
    flex: 0 0 auto;
    width: auto;
  }

  .nav .nav-links > a,
  .nav .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 34px;
    height: 34px;
    padding: 0 12px;
    line-height: 1;
    text-align: center;
    border: 0;
    box-shadow: none;
  }

  .nav .nav-links a:hover {
    background: #eaf1fb;
    color: #1e50ae;
  }

  .nav .nav-links .current-menu-item > a,
  .nav .nav-links .current_page_item > a,
  .nav .nav-links .current-menu-ancestor > a {
    background: #1e50ae;
    color: #ffffff;
    border-radius: 999px;
    box-shadow: none;
  }

  .footer-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
  }

  .product-grid .product-link {
    margin: 0;
  }

  .product-grid .product-card img {
    height: 210px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-grid .product-card h3,
  .product-grid .product-card p {
    min-height: 0;
  }

  .product-category-bar.product-category-bar-page {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .product-category-bar.product-category-bar-page .tab-btn {
    flex: 0 0 auto;
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    white-space: nowrap;
  }

  .single-product .page-hero {
    padding: 36px 0;
  }

  .single-product .product-detail-image,
  .single-product .product-detail-content {
    width: auto;
    border-radius: 8px;
  }

  .single-product .product-detail-image img {
    height: 300px;
    padding: 18px;
  }

  .single-product .product-detail-content {
    margin-top: 18px;
    padding: 22px 18px;
  }

  .single-product .product-detail-content h1 {
    font-size: 25px;
    line-height: 34px;
  }

  .single-product .meta-item {
    display: block;
  }

  .single-product .meta-item strong {
    display: block;
    width: auto;
    margin-bottom: 4px;
  }

  .single-product .product-detail-actions .cta-button {
    width: 100%;
    text-align: center;
  }

  .single-product .product-detail-actions {
    gap: 10px;
  }

  .single-product .product-detail-desc {
    padding: 22px 18px;
  }
}
