#header .sp-header-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#header .nav .sf-menu {
  float: none;
  display: flex;
  justify-content: flex-end;
}

#header .nav .sf-menu > li > a {
  padding-top: 28px;
  padding-bottom: 28px;
}

#header .sp-message-link {
  width: 170px;
  line-height: 32px;
  min-height: 32px;
  margin-top: 0;
  margin-left: 30px;
  border-radius: 5px;
  background: #555;
  color: #bfbfbf;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

#header .sp-message-link:hover {
  color: #fff;
  background: var(--sp-theme-primary);
  text-decoration: none;
}

#header .sp-message-link i {
  color: var(--sp-theme-primary);
  padding-right: 5px;
}

#header .sp-message-link:hover i {
  color: #fff;
}

.sp-inquiry-form .form-status {
  display: none;
  margin: 12px 0 0;
  color: #fff;
  font-size: 14px;
}

.sp-inquiry-form .form-status.is-visible {
  display: block;
}

.sp-inquiry-form .form-status.is-error {
  color: #ffe1dd;
}

.sp-detail-title {
  margin: 0 0 20px;
  color: #3f3f3f;
  font-size: 28px;
  line-height: 1.3;
}

.sp-detail-cover {
  display: block;
  max-width: 100%;
  margin: 0 auto 25px;
}

.sp-product-detail-cover,
.sp-case-detail-cover {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 360px;
  padding: 10px;
  border: 1px solid #e3e9ed;
  border-radius: 8px;
  background: #f8fafb;
  box-shadow: 0 10px 28px rgba(17, 53, 79, 0.08);
  object-fit: contain;
}

@media (min-width: 768px) {
  .sp-product-detail-cover {
    max-width: 520px;
    max-height: 420px;
  }

  .sp-case-detail-cover {
    max-width: 720px;
    max-height: 520px;
  }
}

.sp-detail-lead {
  padding: 15px 20px;
  border-left: 3px solid var(--sp-theme-primary);
  background: #f5f5f5;
  color: #666;
  font-size: 16px;
}

.sp-detail-meta {
  margin-bottom: 20px;
  color: #888;
}

.sp-richtext {
  line-height: 1.8;
}

.sp-richtext img {
  max-width: 100%;
  height: auto;
}

.sp-product-group + .sp-product-group {
  margin-top: 10px;
}

.sp-product-category-card {
  display: block;
  margin-bottom: 30px;
  overflow: hidden;
}

.sp-product-category-card img {
  display: block;
  width: 100%;
  transition: transform 0.3s ease;
}

.sp-product-category-card:hover img {
  transform: scale(1.05);
}

#main .sidebar .sp-latest-news {
  margin-bottom: 30px;
}

#main .sidebar .side-get {
  margin-top: 24px;
}

#main .sidebar .sp-sidebar-quote {
  position: relative;
  display: block;
  min-height: 118px;
  overflow: hidden;
  background: var(--sp-theme-strong);
  color: #fff;
  text-decoration: none;
}

#main .sidebar .sp-sidebar-quote > img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  opacity: 0.56;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

#main .sidebar .sp-sidebar-quote::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 58, 104, 0.96), rgba(7, 95, 168, 0.42));
  content: "";
}

#main .sidebar .sp-sidebar-quote > span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  color: #fff;
}

#main .sidebar .sp-sidebar-quote > span > i:first-child {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

#main .sidebar .sp-sidebar-quote strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: normal;
}

#main .sidebar .sp-sidebar-quote:hover,
#main .sidebar .sp-sidebar-quote:focus {
  color: #fff;
  outline: 2px solid var(--sp-theme-accent);
  outline-offset: -2px;
  text-decoration: none;
}

#main .sidebar .sp-sidebar-quote:hover > img {
  opacity: 0.72;
  transform: scale(1.04);
}

.sp-faq-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e6e6;
}

.sp-faq-item h2 {
  background: #f1f1ed !important;
  color: #333;
  text-transform: none !important;
}

#main .page .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

#main .page .pagination > li {
  padding: 0;
  margin: 0;
}

#main .page .pagination > li::before {
  display: none;
}

#main .page .pagination > li > a,
#main .page .pagination > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid var(--sp-theme-pagination);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  color: var(--sp-theme-pagination);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#main .page .pagination > li > a:hover,
#main .page .pagination > li > a:focus {
  border-color: var(--sp-theme-strong);
  background: #f0faf4;
  color: var(--sp-theme-strong);
  outline: none;
}

#main .page .pagination > .active > a,
#main .page .pagination > .active > a:hover,
#main .page .pagination > .active > span,
#main .page .pagination > .active > span:hover {
  border-color: var(--sp-theme-primary);
  background: var(--sp-theme-primary);
  color: #fff;
  cursor: default;
}

#main .page .pagination > .disabled > a,
#main .page .pagination > .disabled > a:hover,
#main .page .pagination > .disabled > span,
#main .page .pagination > .disabled > span:hover {
  border-color: #d8ddd9;
  background: #f5f6f5;
  color: #a7ada9;
  cursor: not-allowed;
}

@media (max-width: 991px) {
  #header .sp-message-link {
    display: none;
  }
}

@media (max-width: 767px) {
  #header .sp-header-main,
  #header .sp-header-nav,
  #header .nav .sf-menu {
    display: none !important;
  }

  #main .page .pagination {
    gap: 4px;
  }

  #main .page .pagination > li > a,
  #main .page .pagination > li > span {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .sp-detail-title {
    font-size: 23px;
  }
}
