.product-page,
.kotech-product-page {
  --ink: #16212b;
  --muted: #5f6972;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #e7ddcf;
  --teal: #0e7774;
  --blue: #2878b9;
  --coral: #e95f47;
  min-height: 70vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

.kpg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 40px;
}

.kpg-eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-weight: 850;
}

.kpg-hero h1 {
  margin: 0 0 16px;
  font-size: 44px;
  line-height: 1.12;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.kpg-hero-copy > p:not(.kpg-eyebrow),
.kpg-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.kpg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.kpg-primary,
.kpg-secondary,
.kpg-card-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.kpg-primary,
.kpg-card-link {
  color: #fff;
  background: var(--coral);
}

.kpg-secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.kpg-featured,
.kpg-card {
  display: block;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(22, 33, 43, 0.12);
  overflow: hidden;
  text-decoration: none;
}

.kpg-featured:hover,
.kpg-card:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}

.kpg-featured {
  position: relative;
  padding: 14px;
}

.kpg-featured > span {
  position: absolute;
  left: 26px;
  top: 26px;
  z-index: 1;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-weight: 850;
}

.kpg-featured img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.kpg-featured div {
  padding: 16px 4px 4px;
}

.kpg-featured h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.kpg-featured p {
  margin: 0;
  color: var(--coral);
  font-size: 28px;
  font-weight: 900;
}

.kpg-products {
  scroll-margin-top: 96px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 20px 62px;
}

.kpg-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.kpg-section-head h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
}

.kpg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(231, 221, 207, 0.75);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(22, 33, 43, 0.08);
}

.kpg-card {
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kpg-card:hover {
  border-color: rgba(14, 119, 116, 0.34);
  box-shadow: 0 16px 36px rgba(22, 33, 43, 0.12);
}

.kpg-card-image {
  position: relative;
  padding: 14px;
  background: #fffdf9;
  border-bottom: 1px solid var(--line);
}

.kpg-card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.kpg-card-image span {
  position: absolute;
  right: 24px;
  top: 24px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 850;
}

.kpg-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.kpg-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.kpg-desc {
  display: -webkit-box;
  min-height: 76px;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.kpg-price-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: auto;
  margin-bottom: 16px;
}

.kpg-price-row strong {
  color: var(--coral);
  font-size: 25px;
  font-weight: 900;
}

.kpg-price-row small {
  color: var(--muted);
  text-decoration: line-through;
}

.kpg-card-link {
  width: 100%;
  min-height: 52px;
}

@media (max-width: 900px) {
  .kpg-hero,
  .kpg-grid {
    grid-template-columns: 1fr;
  }

  .kpg-hero h1 {
    font-size: 34px;
  }

  .kpg-card h3,
  .kpg-desc {
    min-height: 0;
  }
}
