/* Breadcrumb */
.spct-breadcrumb {
  margin: 24px 0 16px 0;
  font-size: 15px;
  color: #888;
}
.spct-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.spct-breadcrumb li {
  margin-right: 8px;
}
.spct-breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 8px;
  color: #bbb;
}
.spct-breadcrumb a {
  color: #007bff;
  text-decoration: none;
}
.spct-breadcrumb .active {
  color: #222;
  font-weight: 600;
}

/* Block 1: Product Detail */
.spct-detail-block1 {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.spct-detail-images {
  flex: 1 1 320px;
  max-width: 520px;
  min-width: 280px;
}
.spct-main-image {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f7f7f7;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.spct-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.3s;
}
.spct-thumb-slider {
  display: flex;
  align-items: center;
  gap: 8px;
}
.spct-thumb-prev, .spct-thumb-next {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  color: #888;
  transition: background 0.2s;
}
.spct-thumb-prev:hover, .spct-thumb-next:hover {
  background: #f0f0f0;
}
.spct-thumbs {
  display: flex;
  overflow: hidden;
  width: 240px;
  gap: 8px;
}
.spct-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.2s;
}
.spct-thumb.active, .spct-thumb:hover {
  border: 2px solid #007bff;
}

.spct-detail-info {
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
}
.spct-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #222;
}
.spct-code {
  /* font-size: 1rem; */
  color: #666;
}
.spct-shortdesc {
  font-size: 1.08rem;
  color: #444;
  margin-bottom: 8px;
}
.spct-addcart {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spct-addcart label {
  /* font-size: 1rem; */
  color: #333;
}
.spct-addcart input[type="number"] {
  width: 60px;
  padding: 4px 8px;
  /* font-size: 1rem; */
  border: 1px solid #ccc;
  border-radius: 4px;
}
.spct-addcart button {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 1rem;
  /* cursor: pointer; */
  transition: background 0.2s;
}
.spct-addcart button:hover {
  background: #0056b3;
}

/* Block 2: Tabs */
.spct-detail-block2 {
  margin: 32px 0 40px 0;
}
.spct-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.spct-tab {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 6px 6px 0 0;
  padding: 10px 24px;
  font-size: 1.08rem;
  color: #555;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
}
.spct-tab.active, .spct-tab:hover {
  background: #007bff;
  color: #fff;
  border-bottom: 1px solid #fff;
}
.spct-tab-content {
  display: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0 6px 6px 6px;
  padding: 24px 18px;
  /* font-size: 1.08rem; */
  color: #333;
}
.spct-tab-content.active {
  display: block;
}
.spct-specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.spct-specs th, .spct-specs td {
  border: 1px solid #eee;
  padding: 8px 12px;
  text-align: left;
}
.spct-specs th {
  background: #f7f7f7;
  color: #444;
}
.spct-downloads {
  margin: 0;
  padding: 0 0 0 18px;
}
.spct-downloads li {
  margin-bottom: 8px;
}
.spct-downloads a {
  color: #007bff;
  text-decoration: underline;
}
.spct-downloads a:hover {
  color: #0056b3;
}

/* Block 3: Related Products */
.spct-detail-block3 {
  margin: 32px 0 0 0;
}
.spct-related-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #222;
}
.spct-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.spct-related-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  width: calc(20% - 15px);
  min-width: 180px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px 16px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: box-shadow 0.2s, border 0.2s;
}
.spct-related-item:hover {
  border: 1px solid #007bff;
  box-shadow: 0 4px 16px rgba(0,123,255,0.08);
}
.spct-related-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f7f7f7;
  border-radius: 6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.spct-related-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.spct-related-info {
  text-align: center;
}
.spct-related-name {
  font-size: 1.08rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spct-related-price {
  color: #e53935;
  font-size: 1.08rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .spct-detail-block1 {
    flex-direction: column;
    gap: 20px;
  }
  .spct-detail-images, .spct-detail-info {
    max-width: 100%;
    min-width: 0;
  }
  .spct-related-list {
    gap: 12px;
  }
  .spct-related-item {
    width: calc(33.33% - 10px);
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .spct-detail-block1 {
    gap: 12px;
  }
  .spct-main-image {
    aspect-ratio: 4/3;
  }
  .spct-thumbs {
    width: 160px;
  }
  .spct-related-item {
    width: calc(50% - 8px);
  }
}
@media (max-width: 480px) {
  .spct-breadcrumb {
    font-size: 13px;
  }
  .spct-title {
    font-size: 1.2rem;
  }
  .spct-detail-block2 {
    padding: 0 2px;
  }
  .spct-tabs {
    flex-direction: column;
    gap: 2px;
  }
  .spct-tab {
    padding: 8px 8px;
    /* font-size: 1rem; */
  }
  .spct-tab-content {
    padding: 12px 4px;
    /* font-size: 1rem; */
  }
  .spct-related-list {
    gap: 6px;
  }
  .spct-related-item {
    width: 100%;
    min-width: 0;
    padding: 8px 2px 10px 2px;
  }
}
