/* =========================================================
   Tianci V5 Product Detail Page
   Only for Products Custom Post Type
   ========================================================= */

body.single-products {
  background: #f5f8fc;
}

.single-products #main {
  padding-top: 0;
}

.single-products #primary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.single-products #secondary,
.single-products .site-content > #secondary,
.single-products .widget-area {
  display: none !important;
}

/* Hero */
.tc-product-page {
  width: 100%;
  background: #f5f8fc;
}
.tc-product-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 108px 28px 74px;
  color: #f7fbff;
  background:
    radial-gradient(circle at 78% 14%, rgba(28, 115, 230, 0.32), transparent 36%),
    radial-gradient(circle at 26% 72%, rgba(18, 102, 188, 0.12), transparent 42%),
    linear-gradient(145deg, #020914 0%, #06182b 56%, #03101d 100%);
}
.tc-product-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image:
    radial-gradient(circle at 12% 20%, #74c7ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 62% 38%, #74c7ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 90% 12%, #74c7ff 0 1px, transparent 1.5px);
  background-size: 92px 92px, 138px 138px, 178px 178px;
}

.tc-product-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 60px;
  align-items: center;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.tc-product-eyebrow {
  margin: 0 0 20px;
  color: #55b9ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.tc-product-hero h1 {
  max-width: 860px;
  margin: 0;
  color: #f7fbff;
  font-size: clamp(34px, 4.15vw, 60px);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.tc-product-summary {
  max-width: 680px;
  margin-top: 28px;
  color: #afc4d9;
  font-size: 17px;
  line-height: 1.9;
}

.tc-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.tc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.22s ease, background 0.22s ease;
}

.tc-button:hover {
  color: #fff;
  transform: translateY(-2px);
}

.tc-button-primary {
  background: #1878e8;
  border: 1px solid #1878e8;
}

.tc-button-primary:hover {
  background: #0d60bd;
}

.tc-button-outline {
  color: #e8f4ff;
  background: rgba(10, 28, 48, 0.3);
  border: 1px solid rgba(162, 210, 255, 0.54);
}

.tc-button-outline:hover {
  background: rgba(35, 115, 190, 0.3);
}

/* Product image */

.tc-product-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 30px;
  border: 1px solid rgba(116, 194, 255, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 48%, rgba(35, 137, 255, 0.22), transparent 60%),
    linear-gradient(145deg, rgba(12, 37, 63, 0.82), rgba(3, 12, 23, 0.92));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.tc-product-main-image {
  display: block;
  width: 100%;
  max-width: 470px;
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.44));
}

/* Main content */

.tc-product-content-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 96px;
}

.tc-product-content {
  color: #35475b;
  font-size: 16px;
  line-height: 1.9;
}

.tc-product-content > p {
  max-width: 860px;
  margin: 0 0 18px;
}

.tc-product-content h2 {
  position: relative;
  margin: 62px 0 22px;
  padding-left: 16px;
  color: #102f50;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 750;
  line-height: 1.35;
}

.tc-product-content h2::before {
  position: absolute;
  top: 0.17em;
  bottom: 0.17em;
  left: 0;
  width: 4px;
  content: "";
  background: #1479e8;
  border-radius: 10px;
}

/* Feature cards */

.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.product-feature-grid article {
  min-height: 160px;
  padding: 24px;
  background: linear-gradient(145deg, #f8fbff, #eef5fc);
  border: 1px solid #d9e8f6;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 61, 103, 0.06);
}

.product-feature-grid h3 {
  margin: 0 0 10px;
  color: #10395f;
  font-size: 19px;
  font-weight: 750;
}

.product-feature-grid p {
  margin: 0;
  color: #60758b;
  font-size: 14px;
  line-height: 1.75;
}

/* Specs */

.product-spec-table {
  width: 100%;
  margin: 18px 0 34px;
  overflow: hidden;
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d7e4f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 61, 103, 0.05);
}

.product-spec-table th,
.product-spec-table td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid #dce7f0;
  border-bottom: 1px solid #dce7f0;
}

.product-spec-table th {
  width: 31%;
  color: #143b61;
  font-weight: 750;
  background: #eef6fd;
}

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

.product-spec-table td:last-child,
.product-spec-table th:last-child {
  border-right: none;
}

.product-spec-table tr:nth-child(even) td {
  background: #fbfdff;
}

/* Responsive */

@media screen and (max-width: 960px) {
.tc-product-hero-inner {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
 }

  .tc-product-hero-image {
    max-width: 650px;
  }

  .product-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 680px) {
  .tc-product-hero {
    min-height: auto;
    padding: 88px 20px 60px;
  }

  .tc-product-hero h1 {
    font-size: 40px;
  }

  .tc-product-summary {
    font-size: 15px;
  }

  .tc-product-content-wrap {
    width: min(100% - 32px, 1120px);
    padding: 48px 0 68px;
  }

  .tc-product-content {
    font-size: 15px;
  }

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

  .product-spec-table th,
  .product-spec-table td {
    padding: 11px;
    font-size: 13px;
  }

  .product-spec-table th {
    width: 36%;
  }

  .tc-product-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
.tc-product-content-wrap {
  position: relative;
  z-index: 2;
  background: #f5f8fc;
}

.tc-product-content {
  color: #35475b;
}

.tc-product-content p {
  color: #4d6175;
}

.tc-product-content h2 {
  color: #102f50;
}
.product-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.product-support-grid article {
  padding: 22px;
  color: #51677c;
  background: #fff;
  border: 1px solid #d9e8f6;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 61, 103, 0.05);
}

.product-support-grid strong {
  display: block;
  margin-bottom: 10px;
  color: #10395f;
  font-size: 17px;
}

.product-support-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

@media screen and (max-width: 680px) {
  .product-support-grid {
    grid-template-columns: 1fr;
  }
}
.tc-product-image-label {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #9fdaff;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.tc-product-image-label b {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.tc-product-hero-image {
  position: relative;
}
