/* Product Center — inspired by thinkfon.com/product.html */

.pc-wrap {
  background: #f3f5f8;
  padding-bottom: 40px;
}

/* Full-width hero + carousel (categories live in header nav) */
.pc-hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 420px;
  height: auto;
  background: #0b4f8a;
  overflow: hidden;
  z-index: 2;
}

.pc-hero-carousel {
  position: relative;
  width: 100%;
  min-height: 420px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.pc-hero-carousel .owl-stage-outer,
.pc-hero-carousel .owl-stage,
.pc-hero-carousel .owl-item {
  height: 100%;
}

.pc-slide {
  position: relative;
  min-height: 420px;
  width: 100%;
  background: #0b4f8a center center / cover no-repeat;
  display: block;
}

.pc-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 40, 80, 0.35) 0%, rgba(0, 70, 130, 0.2) 50%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.pc-slide-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 420px;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
}

.pc-hero-banner {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  color: #fff;
  z-index: 2;
  text-align: right;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  max-width: 420px;
}

.pc-hero-banner h2 {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
}

.pc-hero-banner .pc-sub {
  margin: 0 0 8px;
  font-size: 16px;
  opacity: 0.95;
}

.pc-hero-banner p {
  margin: 0 0 16px;
  font-size: 14px;
  opacity: 0.9;
}

.pc-hero-banner .pc-cta {
  display: inline-block;
  background: #237bb5;
  color: #fff;
  padding: 10px 26px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
}

.pc-hero-banner .pc-cta:hover {
  background: #1c6391;
  color: #fff;
}

.pc-hero-carousel .owl-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  z-index: 3;
}

.pc-hero-carousel .owl-dot span {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.5);
  display: inline-block;
  border-radius: 8px;
  transition: width 0.2s, background 0.2s;
}

.pc-hero-carousel .owl-dot.active span {
  width: 22px;
  background: #fff;
}

/* Left category + flyout — compact for few categories */
.pc-cat-panel {
  position: absolute;
  left: max(0px, calc((100% - 1200px) / 2));
  top: 0;
  bottom: 0;
  width: 200px;
  min-height: 560px;
  height: 100%;
  background: rgba(245, 247, 250, 0.97);
  z-index: 5;
  border-right: 1px solid #237bb5;
  overflow: visible;
}

.pc-cat-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  height: auto;
  overflow: visible;
  display: block;
  box-sizing: border-box;
}

.pc-cat-list > li {
  position: static;
  border-bottom: 1px dashed #237bb5;
}

.pc-cat-list > li:last-child {
  border-bottom: 0;
}

.pc-cat-list > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.25;
  transition: background 0.15s, color 0.15s;
  box-sizing: border-box;
}

.pc-cat-list > li > a .pc-ico {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c5ced8;
  flex: 0 0 14px;
  position: relative;
}

.pc-cat-list > li > a .pc-ico::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1.5px solid #fff;
  border-radius: 50%;
}

.pc-cat-list > li.is-active > a,
.pc-cat-list > li:hover > a {
  background: #fff;
  color: #237bb5;
  font-weight: 600;
}

.pc-cat-list > li.is-active > a .pc-ico,
.pc-cat-list > li:hover > a .pc-ico {
  background: #0067aa;
}

.pc-flyout {
  display: none;
  position: absolute;
  left: 200px;
  top: 0;
  bottom: auto;
  min-height: 0;
  width: 320px;
  max-width: calc(100vw - 240px);
  background: #fff;
  border: 1px solid #237bb5;
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.08);
  padding: 14px 16px 16px;
  overflow: visible;
  z-index: 6;
  box-sizing: border-box;
}

.pc-cat-list > li.is-active .pc-flyout,
.pc-cat-panel:hover .pc-cat-list > li.is-active .pc-flyout {
  display: block;
}

.pc-flyout-hd {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8eef4;
  font-size: 14px;
  font-weight: 700;
}

.pc-flyout-hd a {
  color: #0067aa;
  text-decoration: none;
}

.pc-flyout-hd a:hover {
  text-decoration: underline;
}

.pc-flyout-brands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pc-flyout-brands li a {
  display: block;
  padding: 7px 10px;
  color: #555;
  font-size: 13px;
  text-decoration: none;
  border-radius: 2px;
  border-left: 2px solid transparent;
}

.pc-flyout-brands li a:hover {
  color: #0067aa;
  background: #eef5fb;
  border-left-color: #0067aa;
}

/* legacy flyout group styles (category archive etc.) */
.pc-flyout-group {
  padding: 10px 0 14px;
  border-bottom: 1px dashed #237bb5;
}

.pc-flyout-group:last-child {
  border-bottom: 0;
}

.pc-flyout-group h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.pc-flyout-group h4 a {
  color: #237bb5;
  text-decoration: none;
}

.pc-flyout-group h4 a:hover {
  text-decoration: underline;
}

.pc-flyout-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
}

.pc-flyout-links li a {
  display: inline-block;
  padding: 2px 10px;
  color: #666;
  font-size: 13px;
  text-decoration: none;
  border-radius: 2px;
}

.pc-flyout-links li a:hover {
  color: #237bb5;
  background: #eef5fb;
}

/* Category sections */
.pc-sections {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 10px 0;
}

.pc-section {
  background: #fff;
  margin-bottom: 20px;
  border: 1px solid #237bb5;
}

.pc-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f0f3f7;
  border-bottom: 1px solid #237bb5;
}

.pc-section-hd h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.pc-section-hd .more {
  color: #237bb5;
  font-size: 13px;
  text-decoration: none;
}

.pc-section-hd .more:hover {
  text-decoration: underline;
}

.pc-section-bd {
  display: flex;
  gap: 0;
  min-height: 280px;
}

.pc-section-main {
  flex: 1;
  min-width: 0;
  padding: 12px 8px 16px;
}

.pc-subtags {
  list-style: none;
  margin: 0 8px 12px;
  padding: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  border-bottom: 1px dashed #237bb5;
}

.pc-subtags a {
  color: #237bb5;
  font-size: 13px;
  text-decoration: none;
}

.pc-subtags a:hover {
  color: #1c6391;
}

.pc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 8px;
}

.pc-card {
  text-align: center;
  padding: 10px 8px;
  border: 1px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.pc-card:hover {
  border-color: #cfe0f0;
  box-shadow: 0 2px 10px rgba(0, 70, 140, 0.08);
  color: inherit;
}

.pc-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: #fafbfc;
  overflow: hidden;
  box-sizing: border-box;
}

.pc-card-img img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.pc-card-title {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  height: 36px;
  overflow: hidden;
  margin-bottom: 4px;
}

.pc-card-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-card-type {
  font-size: 12px;
  color: #237bb5;
}

.pc-empty {
  padding: 30px;
  text-align: center;
  color: #999;
}

@media (max-width: 992px) {
  .pc-hero,
  .pc-hero-carousel {
    display: none !important;
  }
  .pc-section-bd {
    flex-direction: column;
  }
  .pc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pc-hero-banner h2 {
    font-size: 26px;
  }
}

/* ========== Product detail page ========== */
.pd-wrap {
  background: #fff;
  padding: 28px 0 50px;
}

.pd-summary {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  padding: 10px 0 28px;
  border-bottom: 1px solid #237bb5;
}

.pd-summary-img {
  flex: 0 0 280px;
  width: 280px;
  height: 280px;
  border: 1px solid #237bb5;
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.pd-summary-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pd-summary-info {
  flex: 1;
  min-width: 0;
}

.pd-title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
}

.pd-meta {
  margin: 0 0 8px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.pd-meta span {
  color: #888;
}

.pd-intro {
  margin: 14px 0 22px;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

.pd-intro-label {
  color: #888;
}

.pd-consult-btn {
  display: inline-block;
  background: #237bb5;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 36px;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  transition: background 0.15s;
}

.pd-consult-btn:hover {
  background: #1c6391;
  color: #fff;
  text-decoration: none;
}

.pd-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid #237bb5;
}

.pd-tab {
  display: inline-block;
  padding: 14px 28px;
  margin-bottom: -2px;
  font-size: 15px;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.pd-tab.is-active,
.pd-tab:hover {
  color: #237bb5;
  border-bottom-color: #237bb5;
  font-weight: 600;
  text-decoration: none;
}

.pd-detail {
  padding: 28px 0 10px;
}

.pd-detail-body {
  max-width: none;
  width: 100%;
  margin: 0;
  color: #444;
  font-size: 14px;
  line-height: 1.85;
  overflow: visible;
}

.pd-detail-body h2,
.pd-detail-body h3 {
  color: #222;
  font-weight: 700;
  margin: 24px 0 14px;
}

.pd-detail-title {
  text-align: center;
  font-size: 22px;
  margin: 10px 0 20px;
}

.pd-detail-hero {
  text-align: center;
  margin: 0 0 24px;
}

.pd-detail-hero img {
  max-width: 100%;
  height: auto;
}

.pd-detail-body img {
  max-width: 100%;
  height: auto;
}

.pd-detail-body table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 13px;
  white-space: nowrap;
}

.pd-detail-body table th,
.pd-detail-body table td {
  border: 1px solid #237bb5;
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
}

.pd-detail-body table th {
  background: #f0f3f7;
  font-weight: 600;
}

.pd-detail-body table tr:nth-child(even) td {
  background: #fafbfc;
}

/* Horizontal scroll for wide product tables (thinkfon-style) */
.pd-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 24px;
  border: 1px solid #237bb5;
  background: #fff;
}

.pd-table-scroll::-webkit-scrollbar {
  height: 8px;
}

.pd-table-scroll::-webkit-scrollbar-thumb {
  background: #c5ced8;
  border-radius: 4px;
}

.pd-table-scroll::-webkit-scrollbar-track {
  background: #f0f3f7;
}

.pd-table-scroll table {
  margin: 0;
  border: 0;
}

.pd-detail-body ul {
  padding-left: 22px;
  margin: 10px 0 18px;
}

.pd-detail-body li {
  margin-bottom: 6px;
}

.pd-actions {
  padding: 20px 0 0;
  border-top: 1px solid #237bb5;
  margin-top: 20px;
}

.pd-back {
  color: #237bb5;
  text-decoration: none;
  font-size: 14px;
}

.pd-back:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .pd-summary {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  .pd-summary-img {
    width: 100%;
    max-width: 280px;
    flex-basis: auto;
  }
  .pd-title {
    font-size: 22px;
  }
}
