/* ==========================================================================
   products-page.css — category-organized product deep-dive (3A/3B/3C)
   ========================================================================== */

.category {
  padding-block: var(--sp-10);
}
.category:nth-of-type(even) {
  background: var(--steel-50);
}

.category__head {
  max-width: 720px;
  margin-bottom: var(--sp-8);
}

.category__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  background: var(--grad-ember);
  color: #2a0f04;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--sp-4);
}

.category__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--ink-900);
  margin-block: var(--sp-3) var(--sp-4);
  line-height: 1.15;
}

.category__head p {
  font-size: 1.02rem;
  color: var(--steel-600);
  line-height: 1.65;
}

.category__products {
  display: flex;
  flex-direction: column;
  gap: var(--sp-9);
}

/* ---- Product detail card ------------------------------------------------- */
.pdetail {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--sp-8);
  align-items: center;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.category:nth-of-type(even) .pdetail {
  box-shadow: none;
  border: 1px solid var(--steel-100);
}

.pdetail--reverse {
  grid-template-columns: 1.15fr 0.85fr;
}
.pdetail--reverse .pdetail__media {
  order: 2;
}

.pdetail__media {
  height: 100%;
  min-height: 320px;
  position: relative;
}
.pdetail__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdetail__body {
  padding: var(--sp-7) var(--sp-7) var(--sp-7) 0;
}
.pdetail--reverse .pdetail__body {
  padding: var(--sp-7) 0 var(--sp-7) var(--sp-7);
}

.pdetail__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink-900);
  margin-bottom: 0.5em;
}

.pdetail__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--steel-600);
  margin-bottom: var(--sp-5);
}

.pdetail__features {
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  margin-bottom: var(--sp-6);
}
.pdetail__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  font-size: 0.87rem;
  color: var(--ink-700);
}
.pdetail__features svg {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 0.2em;
  color: var(--success-500);
}

.pdetail__specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sp-6);
  border-top: 1px solid var(--steel-100);
}
.pdetail__specs tr {
  border-bottom: 1px solid var(--steel-100);
}
.pdetail__specs th,
.pdetail__specs td {
  text-align: left;
  padding: 0.6em 0.8em 0.6em 0;
  font-size: 0.85rem;
}
.pdetail__specs th {
  font-weight: 600;
  color: var(--steel-600);
  width: 42%;
}
.pdetail__specs td {
  font-family: var(--font-mono);
  color: var(--indigo-700);
}

.pdetail__packaging {
  font-size: 0.8rem;
  color: var(--steel-600);
  margin-bottom: var(--sp-6);
}
.pdetail__packaging strong {
  color: var(--ink-700);
}

.pdetail__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--flame-500);
}
.pdetail__cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}
.pdetail__cta:hover svg {
  transform: translateX(3px);
}

@media (max-width: 860px) {
  .pdetail,
  .pdetail--reverse {
    grid-template-columns: 1fr;
  }
  .pdetail--reverse .pdetail__media {
    order: 0;
  }
  .pdetail__media {
    min-height: 240px;
  }
  .pdetail__body,
  .pdetail--reverse .pdetail__body {
    padding: var(--sp-6);
  }
}
