/* Category pages (design/NukCategory.dc.html, used by NukCat*.dc.html).
   Loaded after catalog.css, which has the page hero, buttons and section heading. */

.inner-hero--category .inner-hero__lead { max-width: 800px; }

/* intro: picture + heading + paragraphs */
.cat-intro { background: #fff; border-top: 3px solid var(--yellow); }
.cat-intro__wrap { max-width: var(--wrap); margin: 0 auto; padding: clamp(36px, 5.5vw, 64px) 20px clamp(30px, 5vw, 50px); }
.cat-intro__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(24px, 4vw, 44px); align-items: start;
}
.cat-intro__media {
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
}
.cat-intro__img { width: 100%; height: auto; border-radius: 3px; }
.cat-intro__title {
  margin: 0; font-size: clamp(27.6px, 3.2vw, 37.2px); font-weight: 700; line-height: 1.45;
  color: var(--navy); text-wrap: pretty;
}
.cat-intro__paras { display: grid; gap: 14px; }
.cat-intro__title + .cat-intro__paras { margin-top: 16px; }
.cat-intro__para { margin: 0; font-size: 21.6px; line-height: 1.85; color: var(--ink-3); text-wrap: pretty; }

/* shared by the list, list2 and gallery sections */
.cat-sec__wrap { max-width: var(--wrap); margin: 0 auto; padding: clamp(32px, 5vw, 56px) 20px; }
.cat-sec__head { margin-bottom: 22px; }
.cat-sec__title { margin: 0; font-size: clamp(28.8px, 3.4vw, 39.6px); font-weight: 700; color: var(--navy); }
.cat-sec__title--light { color: #fff; }

/* list: white boxes with a yellow dot */
.cat-list { background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%); border-top: 1px solid var(--border); }
.cat-list__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
.cat-list__item {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 16px;
  background: #fff; border: 1px solid var(--border-4); border-radius: 4px;
}
.cat-list__dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--yellow); }
.cat-list__text { font-size: 19.8px; line-height: 1.7; color: var(--ink-3); }

/* list2: pills on navy */
.cat-list2 { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%); }
.cat-list2__head { margin-bottom: 22px; padding-inline-start: 16px; border-inline-start: 6px solid var(--yellow); }
.cat-list2__pills { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.cat-list2__pill {
  padding: 9px 15px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 100px;
  background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 19.2px; font-weight: 600;
}

/* "ตัวอย่างสินค้า" */
.cat-gallery { background: linear-gradient(180deg, #fff 0%, #fffaea 100%); }
.cat-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.cat-gallery__item { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.cat-gallery__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 14px; }
.cat-gallery__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.cat-gallery__cap { padding: 12px 16px; background: var(--yellow); color: var(--navy-950); font-size: 19.2px; font-weight: 700; }
