/* ==========================================================================
   Product Center & Detail Page Styling - Lanbang B2B Theme
   ========================================================================== */

/* 1. Hero Sub-Banner */
.product-hero-banner {
  position: relative;
  width: 100%;
  padding: 100px 0 90px;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}

.product-hero-content {
  max-width: 920px;
  margin: 0 auto;
}

.product-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(197, 155, 39, 0.95);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(197, 155, 39, 0.3);
}

.product-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.product-hero-subtitle {
  font-size: 1.05rem;
  color: #e5e5e5;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto;
}

/* 2. Horizontal Category Tabs */
.product-category-tabs {
  border-bottom: 1px solid #00565b;
  margin-bottom: 40px;
  width: 100%;
}

.category-tabs-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 0;
  margin: 0;
}

.category-tabs-list .tab-item {
  position: relative;
  list-style: none;
  flex-shrink: 0;
}

.category-tabs-list .tab-item a {
  display: inline-block;
  padding: 10px 8px 12px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: #222222;
  position: relative;
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.category-tabs-list .tab-item a:hover {
  color: #006666;
}

.category-tabs-list .tab-item.active a {
  color: #006666;
  font-weight: 600;
}

.category-tabs-list .tab-item.active a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #006666;
}

/* 2. Clean 3-Column Product Grid */
.products-grid-clean {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px;
  width: 100%;
  margin-bottom: 50px;
  box-sizing: border-box;
}

.product-card-clean {
  min-width: 0;
  width: 100%;
  background: var(--white);
  border: 1px solid #eaeaea;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
  box-sizing: border-box;
}

.product-card-clean:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: #006666;
}

.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f7f7f7;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card-clean:hover .product-card-thumb img {
  transform: scale(1.05);
}

.product-card-title {
  padding: 16px 20px 18px;
  background-color: var(--white);
  border-top: 1px solid #f2f2f2;
}

.product-card-title h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: #333333;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.product-card-clean:hover .product-card-title h3 {
  color: #006666;
}

/* ==========================================================================
   Projects Archive & Category Showcase (Screenshot UI)
   ========================================================================== */

/* 1. Project Hero Sub-Banner */
.project-hero-banner {
  position: relative;
  width: 100%;
  padding: 100px 0 90px;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}

.project-hero-content {
  max-width: 920px;
  margin: 0 auto;
}

.project-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(197, 155, 39, 0.95);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(197, 155, 39, 0.3);
}

.project-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.project-hero-subtitle {
  font-size: 1.05rem;
  color: #e5e5e5;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto;
}

/* 2. Icon Category Tabs Bar */
.project-category-tabs-wrap {
  margin-bottom: 40px;
  width: 100%;
}

.project-category-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.project-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 10px 18px;
  border-right: 1px solid #e8e8e8;
  text-decoration: none;
  color: #333333;
  transition: all 0.25s ease;
  background-color: #ffffff;
  text-align: center;
}

.project-tab-item:last-child {
  border-right: none;
}

.project-tab-item .tab-icon {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.project-tab-item .tab-icon svg {
  stroke: #555555;
  transition: all 0.25s ease;
}

.project-tab-item .tab-label {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: #333333;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.project-tab-item:hover {
  background-color: #f6faf9;
  color: #0b666a;
}

.project-tab-item:hover .tab-icon svg {
  stroke: #0b666a;
}

.project-tab-item:hover .tab-label {
  color: #0b666a;
}

.project-tab-item.active {
  background-color: #0b666a !important;
  color: #ffffff !important;
}

.project-tab-item.active .tab-icon svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

.project-tab-item.active .tab-label {
  color: #ffffff !important;
  font-weight: 600;
}

/* 2. Clean 2-Column Wide Project Grid */
.projects-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
  margin-bottom: 50px;
  box-sizing: border-box;
}

.project-card-2col {
  background: var(--white);
  border: 1px solid #eaeaea;
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
  box-sizing: border-box;
}

.project-card-2col:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
  border-color: #0b666a;
}

.project-card-link {
  display: block;
  width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.project-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #1a1a1a;
  overflow: hidden;
  position: relative;
  display: block;
}

.project-card-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card-2col:hover .project-card-thumb img {
  transform: scale(1.05);
}

.project-card-title {
  padding: 22px 25px 24px;
  background-color: var(--white);
  text-align: center;
  border-top: 1px solid #f2f2f2;
  min-width: 0;
  box-sizing: border-box;
}

.project-card-title h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: #222222;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.project-card-2col:hover .project-card-title h3 {
  color: #0b666a;
}

/* 3. Single Product Detail Page */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.product-gallery {
  position: relative;
}

.product-main-image {
  background: #fdfdfd;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 20px;
  text-align: center;
}

.product-main-image img {
  max-height: 480px;
  margin: 0 auto;
  object-fit: contain;
}

.product-summary-meta h1 {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.product-model-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.product-short-desc {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 25px;
}

.product-cta-group {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.product-cta-group .btn {
  padding: 14px 28px;
}

/* Specs Table */
.specs-table-box {
  margin-top: 30px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.specs-table th,
.specs-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-300);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table th {
  background-color: var(--gray-100);
  color: var(--dark);
  font-weight: 600;
  width: 32%;
  text-align: left;
}

.specs-table td {
  color: var(--gray-700);
}

.product-content-tabs {
  margin-top: 50px;
  border-top: 2px solid var(--gray-300);
  padding-top: 40px;
}

.product-content-tabs h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.product-content-tabs .entry-content {
  line-height: 1.8;
  color: var(--gray-700);
}

/* Related Products */
.related-products-box {
  margin-top: 70px;
  border-top: 1px solid var(--gray-300);
  padding-top: 50px;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-hero-title,
  .project-hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .products-grid-clean {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .project-category-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
  .project-tab-item:nth-child(3) {
    border-right: none;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .category-tabs-list {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .product-hero-banner,
  .project-hero-banner {
    padding: 70px 0 60px;
  }
  .product-hero-title,
  .project-hero-title {
    font-size: 1.8rem;
  }
  .category-tabs-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    gap: 12px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-tabs-list::-webkit-scrollbar {
    display: none;
  }
  .projects-grid-2col {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .project-category-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-tab-item:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 576px) {
  .products-grid-clean {
    grid-template-columns: 1fr;
  }
}
