/* ============================================================
   PLANET China - Custom Styles (based on planet.com.tw design)
   ============================================================ */

/* ---------- Brand Colors ---------- */
:root {
  --planet-blue: #162c6c;
  --planet-blue-light: #5070ab;
  --planet-blue-lighter: #6b8ec9;
  --planet-red: #d32f2f;
  --planet-dark: #1a1a2e;
  --planet-gray: #2f3139;
  --planet-gray-light: #edf0f7;
  --planet-white: #ffffff;
  --planet-text: #333333;
  --planet-text-light: #666666;
}

/* ---------- Global Reset & Base ---------- */
body {
  font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--planet-text);
  background: #f5f5f5;
  margin: 0;
  padding: 0;
}

a {
  color: var(--planet-blue-light);
  text-decoration: none;
}
a:hover {
  color: var(--planet-blue);
  text-decoration: underline;
}

/* ---------- Override old layout ---------- */
#all {
  text-align: left;
}
#header {
  text-align: left;
}
#nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  text-align: left;
}
#container::after {
  content: "";
  display: table;
  clear: both;
}
#container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
  display: block;
  text-align: left;
  min-height: 500px;
}
#footer {
  text-align: left;
  clear: both;
}

/* ---------- Container wraps (Taiwan-style) ---------- */
.container-wrap {
  width: 100%;
}
.container-wrap + .container-wrap {
  margin-top: 0;
}
.container-fluid.mw-1920 {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0;
}
.container-single {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- Unified Header — single row, full-width ---------- */
.main-navbar {
  background: #fff;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
}
/* container-fluid is native Bootstrap — navbar flex rules apply automatically */
.main-navbar .navbar-brand {
  padding: 0;
}
.main-navbar .navbar-brand img {
  height: 44px;
}

/* All nav links in the single row */
.main-navbar .navbar-nav .nav-link {
  color: #333;
  font-size: 15px;
  font-weight: 600;
  padding: 18px 14px;
  line-height: 1.2;
  transition: color 0.15s;
}
.main-navbar .navbar-nav .nav-link:hover {
  color: var(--planet-blue-light);
}

/* Dropdown toggles (Products, Solutions, About Us, Support) — underline effect */
.main-navbar .navbar-nav > .dropdown > .nav-link {
  position: relative;
}
.main-navbar .navbar-nav > .dropdown > .nav-link::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 14px;
  right: 14px;
  height: 3px;
  background: var(--planet-blue-light);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.main-navbar .navbar-nav > .dropdown:hover > .nav-link::after,
.main-navbar .navbar-nav > .dropdown.show > .nav-link::after {
  transform: scaleX(1);
}

/* Non-dropdown nav items (Contact Us, Login) — lighter */
.main-navbar .navbar-nav > .nav-item:not(.dropdown) > .nav-link {
  font-weight: 500;
  color: #555;
  font-size: 14px;
}
.main-navbar .navbar-nav > .nav-item:not(.dropdown) > .nav-link:hover {
  color: var(--planet-blue-light);
}

/* Language switch links (简 | EN | 繁) */
.lang-link {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #999 !important;
  padding: 18px 6px !important;
}
.lang-link:hover {
  color: var(--planet-blue-light) !important;
  text-decoration: none;
}
.lang-link.active {
  color: var(--planet-blue-light) !important;
  font-weight: 700 !important;
}

/* Icon-only utility buttons (Search / Contact / Login) */
.nav-icon {
  font-size: 18px !important;
  padding: 16px 10px !important;
  color: #555 !important;
}
.nav-icon:hover {
  color: var(--planet-blue-light) !important;
}

/* Expandable Search Bar */
.search-bar {
  background: #fff;
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.search-bar .form-control {
  border-radius: 4px 0 0 4px;
  border-color: #ced4da;
}
.search-bar .btn-primary {
  border-radius: 0 4px 4px 0;
  background: var(--planet-blue-light);
  border-color: var(--planet-blue-light);
}
.lang-sep {
  font-size: 13px;
  color: #ddd;
  padding: 18px 0 !important;
  user-select: none;
}

/* Simple dropdown menus (Support, Language) */
.main-navbar .nav-item:not(.mega-dropdown) > .dropdown-menu {
  border: none;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 6px 0;
  border-top: 2px solid var(--planet-blue-light);
  min-width: 180px;
  font-size: 14px;
}
.main-navbar .nav-item:not(.mega-dropdown) > .dropdown-menu .dropdown-item {
  padding: 8px 20px;
  color: #555;
  transition: all 0.15s;
}
.main-navbar .nav-item:not(.mega-dropdown) > .dropdown-menu .dropdown-item:hover {
  color: var(--planet-blue-light);
  background: #f0f4fa;
}

/* ---------- Mega Dropdown Panel ---------- */
.mega-dropdown {
  position: static;
}
.mega-dropdown .dropdown-menu {
  width: 100%;
  max-width: 1140px;
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: 100%;
  z-index: 1060;
  border: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  padding: 0;
  margin-top: 0;
  border-top: 2px solid var(--planet-blue-light);
}
.mega-dropdown .dropdown-menu.show {
  display: flex;
}

/* Hover-triggered mega dropdown (desktop, matches planet.com.tw behavior) */
@media (min-width: 992px) {
  .mega-dropdown:hover .dropdown-menu {
    display: flex !important;
  }
  .mega-dropdown:hover > .nav-link::after {
    transform: scaleX(1);
  }
  /* Hover-triggered simple dropdown (Support, etc.) */
  .nav-item.dropdown:not(.mega-dropdown):hover > .dropdown-menu {
    display: block !important;
  }
  /* Prevent gap between nav link and dropdown from breaking hover */
  .mega-dropdown .dropdown-menu {
    margin-top: 0;
  }
}

/* Ensure header doesn't clip mega dropdown */
#header {
  overflow: visible;
}
.main-navbar {
  overflow: visible;
}
.main-navbar .container-single {
  overflow: visible;
}
.navbar-collapse.show,
.navbar-collapse.collapsing {
  overflow: visible;
}

/* Mega dropdown inner layout */
.mega-dropdown-content {
  display: flex;
  width: 100%;
  padding: 24px 20px;
  gap: 20px;
}
.mega-menu-left {
  flex: 2;
  display: flex;
  gap: 20px;
}
.mega-menu-right {
  flex: 1;
  max-width: 320px;
  border-left: 1px solid #e8e8e8;
  padding-left: 20px;
}

/* Category columns */
.mega-col {
  flex: 1;
  min-width: 160px;
}
.mega-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--planet-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--planet-blue-light);
}
.mega-col .sub-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}
.mega-col .sub-list li {
  margin-bottom: 2px;
}
.mega-col .sub-list li a {
  display: block;
  color: #555;
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}
.mega-col .sub-list li a:hover {
  color: var(--planet-blue-light);
  background: #f0f4fa;
  text-decoration: none;
}
.mega-col .sub-list li a i {
  font-size: 9px;
  margin-right: 6px;
  color: #aaa;
}

/* Hot product / Hot news sidebar */
.mega-sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--planet-blue);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--planet-red);
}
.mega-hot-card {
  background: #fafafa;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.mega-hot-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.mega-hot-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
}
.mega-hot-card .hot-card-body {
  padding: 10px 12px;
}
.mega-hot-card .hot-card-body .hot-model {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}
.mega-hot-card .hot-card-body .hot-name {
  font-size: 11px;
  color: #777;
  line-height: 1.3;
}

/* ---------- Login Modal ---------- */
.login-modal .modal-content {
  border-radius: 8px;
  border: none;
}
.login-modal .modal-header {
  background: var(--planet-blue);
  color: #fff;
  border-radius: 8px 8px 0 0;
  padding: 12px 20px;
}
.login-modal .modal-header .close {
  color: #fff;
  opacity: 0.9;
}
.login-modal .modal-body {
  padding: 24px 20px;
}
.login-modal .form-control {
  border-radius: 6px;
}

/* ---------- Footer ---------- */
.footer_text {
  font-family: "Microsoft YaHei", Verdana, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #ccc;
  background: #2f3139;
}
.footer_text a {
  color: #ccc;
  text-decoration: none;
}
.footer_text a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer_text .footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer_text .footer-info {
  text-align: right;
  flex: 1;
  min-width: 280px;
}
.footer_text .footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.footer_text .footer-links a {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.footer_text .footer-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}
.footer_text .footer-links img {
  vertical-align: middle;
}

/* ---------- Section Titles ---------- */
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--planet-blue);
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--planet-blue-light);
}
.section-subtitle {
  font-size: 14px;
  color: var(--planet-text-light);
  margin-bottom: 24px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-header .section-title {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.section-header .section-title::after {
  display: none;
}
.view-all-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--planet-blue-light);
  white-space: nowrap;
  transition: color 0.2s;
}
.view-all-link:hover {
  color: var(--planet-blue);
  text-decoration: none;
}
.view-all-link i {
  font-size: 12px;
  margin-left: 4px;
}

/* ---------- Banner Container ---------- */
.banner-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.banner-container .carousel-item {
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.banner-container .carousel-item a {
  display: block;
  width: 100%;
  height: 100%;
}
.banner-container .carousel-indicators {
  bottom: 16px;
}
.banner-container .carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 4px;
  background: rgba(255,255,255,0.6);
  border: 2px solid transparent;
}
.banner-container .carousel-indicators .active {
  background: var(--planet-blue-light);
}
.banner-container .carousel-control-prev,
.banner-container .carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.banner-container:hover .carousel-control-prev,
.banner-container:hover .carousel-control-next {
  opacity: 1;
}

/* ---------- News Scrollbar ---------- */
.news-ticker {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 10px 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.news-ticker .ticker-label {
  font-weight: 700;
  color: var(--planet-blue);
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-ticker .ticker-label i {
  color: var(--planet-red);
  margin-right: 4px;
}
.news-ticker .ticker-content {
  flex: 1;
  overflow: hidden;
  height: 28px;
  position: relative;
}
.news-ticker .ticker-content .ticker-item {
  line-height: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-ticker .ticker-content .ticker-item a {
  color: #555;
  font-size: 13px;
}
.news-ticker .ticker-content .ticker-item a:hover {
  color: var(--planet-blue-light);
}
.news-ticker .ticker-date {
  color: #aaa;
  font-size: 12px;
  margin-right: 8px;
}

/* ---------- Featured Products Horizontal Scroll ---------- */
.featured-products {
  margin: 30px 0;
}
.featured-products .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.featured-products .scroll-wrapper {
  position: relative;
}
.featured-products .scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.featured-products .scroll-container::-webkit-scrollbar {
  display: none;
}
.featured-products .product-card {
  flex: 0 0 250px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.featured-products .product-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  text-decoration: none;
}
.featured-products .product-card .card-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  position: relative;
  padding: 10px;
}
.featured-products .product-card .card-img img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
.featured-products .product-card .card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--planet-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}
.featured-products .product-card .card-body {
  padding: 12px 14px;
}
.featured-products .product-card .card-body .prod-model {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}
.featured-products .product-card .card-body .prod-name {
  font-size: 12px;
  color: #888;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-products .product-card .card-body .prod-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--planet-blue-light);
}
.featured-products .scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  color: #555;
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s;
}
.featured-products .scroll-arrow:hover {
  background: var(--planet-blue-light);
  color: #fff;
  border-color: var(--planet-blue-light);
}
.featured-products .scroll-arrow-left {
  left: -18px;
}
.featured-products .scroll-arrow-right {
  right: -18px;
}

/* ---------- Latest News Grid ---------- */
.latest-news {
  margin: 30px 0;
}
.latest-news .news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.latest-news .news-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.latest-news .news-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.latest-news .news-card .news-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #e8e8e8;
}
.latest-news .news-card .news-body {
  padding: 16px;
}
.latest-news .news-card .news-body .news-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}
.latest-news .news-card .news-body .news-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}
.latest-news .news-card .news-body .news-title a {
  color: #333;
}
.latest-news .news-card .news-body .news-title a:hover {
  color: var(--planet-blue-light);
  text-decoration: none;
}
.latest-news .news-card .news-body .news-excerpt {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}
.latest-news .col-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.latest-news .col-tag.company {
  background: #e3f2fd;
  color: #1565c0;
}
.latest-news .col-tag.product {
  background: #e8f5e9;
  color: #2e7d32;
}

/* ---------- eTV / Video Section ---------- */
.video-section {
  margin: 30px 0;
}
.video-section .video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.video-section .video-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}
.video-section .video-card .video-thumb {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  background-size: cover;
  background-position: center;
}
.video-section .video-card .video-thumb .play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.2s;
}
.video-section .video-card .video-thumb .play-overlay i {
  font-size: 48px;
  color: rgba(255,255,255,0.85);
  transition: transform 0.2s, color 0.2s;
}
.video-section .video-card:hover .video-thumb .play-overlay {
  background: rgba(0,0,0,0.15);
}
.video-section .video-card:hover .video-thumb .play-overlay i {
  color: #ff0000;
  transform: scale(1.1);
}
.video-section .video-card .video-thumb iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-section .video-card .video-body {
  padding: 10px 14px;
}
.video-section .video-card .video-body .video-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-planet {
  background: transparent;
  padding: 16px 0;
  margin: 0;
  font-size: 13px;
}
.breadcrumb-planet .breadcrumb-item + .breadcrumb-item::before {
  content: '>';
  color: #aaa;
}
.breadcrumb-planet .breadcrumb-item a {
  color: var(--planet-blue-light);
}
.breadcrumb-planet .breadcrumb-item.active {
  color: #888;
}
.breadcrumb-planet .breadcrumb-dropdown {
  display: inline-block;
}
.breadcrumb-planet .breadcrumb-dropdown .dropdown-toggle {
  color: var(--planet-blue-light);
  font-size: 13px;
  padding: 2px 6px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.breadcrumb-planet .breadcrumb-dropdown .dropdown-menu {
  font-size: 13px;
  max-height: 300px;
  overflow-y: auto;
}

/* ---------- Page Banner ---------- */
.page-banner {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e8e8e8;
}
@media (max-width: 768px) {
  .page-banner {
    height: 180px;
  }
}

/* ---------- Content Sections ---------- */
.content-section {
  padding: 24px 0;
}
.content-section.bg-light {
  background: var(--planet-gray-light);
}

/* ---------- Product Category Grid (Phase 3) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.category-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  display: flex;
}
.category-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.category-card .cat-img {
  width: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  padding: 16px;
}
.category-card .cat-img img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}
.category-card .cat-body {
  flex: 1;
  padding: 16px;
}
.category-card .cat-body .cat-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}
.category-card .cat-body .cat-title a {
  color: #333;
}
.category-card .cat-body .cat-title a:hover {
  color: var(--planet-blue-light);
  text-decoration: none;
}
.category-card .cat-body .cat-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-card .cat-body .cat-links li {
  margin-bottom: 2px;
}
.category-card .cat-body .cat-links li a {
  font-size: 12px;
  color: #888;
}
.category-card .cat-body .cat-links li a:hover {
  color: var(--planet-blue-light);
}
.category-card .cat-img .no-image {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
  border-radius: 8px;
  color: #aaa;
  font-size: 32px;
}

/* ---------- Pop/Featured Product Card ---------- */
.pop-product-card {
  display: flex;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  gap: 24px;
  padding: 24px;
}
.pop-product-card .pop-img {
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pop-product-card .pop-img img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}
.pop-product-card .pop-body {
  flex: 1;
}
.pop-product-card .pop-badge {
  display: inline-block;
  background: #fff3e0;
  color: #e65100;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.pop-product-card .pop-model {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}
.pop-product-card .pop-name {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 10px;
}
.pop-product-card .pop-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn-planet {
  display: inline-block;
  padding: 8px 24px;
  background: var(--planet-blue-light);
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
}
.btn-planet:hover {
  background: var(--planet-blue);
  color: #fff !important;
}
.btn-planet i {
  font-size: 11px;
  margin-left: 4px;
}

/* ---------- Product List Table ---------- */
.prod-group-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--planet-blue);
  padding: 10px 16px;
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
}
.product-list-table {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.product-list-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.product-list-row:last-child {
  border-bottom: none;
}
.product-list-row:hover {
  background: #fafbfd;
}
.prod-list-img {
  flex: 0 0 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-list-img img {
  max-width: 80px;
  max-height: 70px;
  object-fit: contain;
}
.prod-list-info {
  flex: 1;
  min-width: 0;
}
.prod-list-model {
  font-size: 14px;
  font-weight: 700;
  color: var(--planet-blue-light);
}
.prod-list-model:hover {
  color: var(--planet-blue);
  text-decoration: none;
}
.prod-new-badge {
  display: inline-block;
  background: var(--planet-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.prod-list-name {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}
.prod-list-more {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--planet-blue-light);
  margin-top: 4px;
}
.prod-list-more:hover {
  color: var(--planet-blue);
  text-decoration: none;
}
.solution-row {
  display: flex;
  align-items: center;
  padding: 36px 0;
  gap: 40px;
}
.solution-row.bg-light {
  background: var(--planet-gray-light);
}
.solution-row .solution-img {
  flex: 0 0 420px;
}
.solution-row .solution-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.solution-row .solution-text {
  flex: 1;
}
.solution-row .solution-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}
.solution-row .solution-text p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 16px;
}
.solution-row .solution-text .btn-more {
  display: inline-block;
  padding: 8px 24px;
  background: var(--planet-blue-light);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.solution-row .solution-text .btn-more:hover {
  background: var(--planet-blue);
  text-decoration: none;
  color: #fff;
}

/* ---------- Download Page (Phase 3) ---------- */
.download-search {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}
.download-search .search-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.download-search .search-col h5 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 14px;
}
.download-results table {
  width: 100%;
  font-size: 13px;
}
.download-results table th {
  background: #f0f4fa;
  color: #333;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 2px solid var(--planet-blue-light);
}
.download-results table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
.download-results table tr:hover td {
  background: #fafbfd;
}
.download-results .table-row-even td {
  background: #f9f9f9;
}
.download-results .table td {
  vertical-align: middle;
  font-size: 13px;
}
.download-results .table td.text-left {
  text-align: left;
}
.dl-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--planet-blue-light);
  color: #fff !important;
  font-size: 14px;
  transition: background 0.2s;
}
.dl-icon-link:hover {
  background: var(--planet-blue);
}

/* File type filter tabs */
.file-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}
.file-type-tab {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  background: #f0f0f0;
  transition: all 0.2s;
}
.file-type-tab:hover {
  background: #e0e0e0;
  text-decoration: none;
  color: #333;
}
.file-type-tab.active {
  background: var(--planet-blue-light);
  color: #fff;
}

/* Pagination wrapper */
.pagination-wrapper {
  margin-top: 20px;
  text-align: center;
}
.pagination-wrapper a,
.pagination-wrapper span {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 2px;
  border-radius: 4px;
  font-size: 13px;
  color: #555;
  border: 1px solid #ddd;
  transition: all 0.15s;
}
.pagination-wrapper a:hover {
  background: var(--planet-blue-light);
  color: #fff;
  border-color: var(--planet-blue-light);
  text-decoration: none;
}
.pagination-wrapper span.current {
  background: var(--planet-blue-light);
  color: #fff;
  border-color: var(--planet-blue-light);
  font-weight: 700;
}

/* Form controls in download search */
.download-search .form-control {
  font-size: 13px;
  border-radius: 6px;
}
.download-search .form-group {
  margin-bottom: 14px;
}
.download-search .form-group label {
  margin-bottom: 4px;
}

/* ---------- About Content ---------- */
.about-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--planet-blue);
  margin-bottom: 12px;
}
.about-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}
.list-cust-img {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-cust-img li {
  padding: 3px 0 3px 20px;
  position: relative;
  font-size: 13px;
  color: #555;
}
.list-cust-img li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--planet-blue-light);
  font-weight: bold;
}
@media (max-width: 767px) {
  .about-content .col-md-4 {
    margin-top: 16px;
  }
}

@media (max-width: 991px) {
  .main-navbar .navbar-nav .nav-link {
    padding: 10px 16px;
    font-size: 14px;
  }
  .mega-dropdown .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
  }
  .mega-dropdown-content {
    flex-direction: column;
    padding: 12px 16px;
  }
  .mega-menu-left {
    flex-direction: column;
  }
  .mega-menu-right {
    max-width: 100%;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #e8e8e8;
    padding-top: 16px;
    margin-top: 8px;
  }
  .latest-news .news-grid {
    grid-template-columns: 1fr;
  }
  .video-section .video-grid {
    grid-template-columns: 1fr;
  }
  .download-search .search-row {
    grid-template-columns: 1fr;
  }
  .solution-row {
    flex-direction: column !important;
    padding: 24px 0;
    gap: 20px;
  }
  .solution-row .solution-img {
    flex: 0 0 auto;
    width: 100%;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .pop-product-card {
    flex-direction: column;
  }
  .pop-product-card .pop-img {
    flex: 0 0 auto;
    width: 100%;
  }
  .footer_text .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer_text .footer-info {
    text-align: center;
  }
  .banner-container .carousel-item {
    height: 240px;
  }
  .product-list-row {
    flex-wrap: wrap;
  }
  .prod-list-img {
    flex: 0 0 70px;
  }
}

@media (max-width: 575px) {
  .featured-products .product-card {
    flex: 0 0 200px;
  }
  .banner-container .carousel-item {
    height: 180px;
  }
  .section-title {
    font-size: 20px;
  }
}
