/* =============================================================
   catalog.css — หน้า /services (สินค้าและบริการ) + /services|/shop/<code>
   ใช้ token จาก main.css เท่านั้น (ห้าม hex ใหม่ — โหมดสว่างต้องใช้ได้)
   ============================================================= */

/* ---------- หัวหน้า + จำนวน ---------- */
.cat-head .cat-total {
  margin: 14px 0 0;
  font-size: .84rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- แถบหมวด (chips) ---------- */
.cat-nav {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: var(--wrap);
  padding: 0 var(--pad, 20px);
}
.cat-nav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
@media (min-width: 901px) {
  /* เดสก์ท็อป: 6 หมวดเรียงเป็น 3×2 (ไม่ให้ชิปหลุดไปบรรทัดเดี่ยว) */
  .cat-nav-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding-bottom: 12px;
  }
  .cat-chip { justify-content: flex-start; }
  .cat-chip em { margin-left: auto; }
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--chip);
  color: var(--text);
  text-decoration: none;
  font-size: .88rem;
  white-space: nowrap;
  transition: border-color .2s, background .2s, color .2s;
}
.cat-chip:hover,
.cat-chip:focus-visible {
  border-color: var(--accent-ink);
  color: var(--accent-ink-2);
}
.cat-chip-icon {
  color: var(--accent-ink-2);
  font-size: .95rem;
  line-height: 1;
}
.cat-chip em {
  font-style: normal;
  font-size: .74rem;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 8px;
  font-variant-numeric: tabular-nums;
}

/* ---------- หัวข้อหมวด ---------- */
.cat-section { padding-top: clamp(30px, 4vw, 46px); }
.cat-section:first-of-type { padding-top: clamp(20px, 3vw, 30px); }
.cat-sec-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 14px;
  max-width: var(--wrap);
  margin: 0 auto clamp(18px, 2.4vw, 26px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cat-sec-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-5);
  border-radius: 50%;
  color: var(--accent-ink-2);
  font-size: 1.15rem;
}
.cat-sec-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin: 2px 0 6px;
  letter-spacing: .01em;
}
.cat-sec-head p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  max-width: 62ch;
  line-height: 1.65;
}
.cat-sec-count {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* ---------- กริดการ์ด (2 คอลัมน์คงที่บนมือถือ) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.cat-card {
  display: flex;
  flex-direction: column;
  padding: 0 0 18px;
  overflow: hidden;
}
.cat-card .cat-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.cat-card .cat-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;   /* รูปสำรองเป็นภาพแบนเนอร์ — เก็บใบโค้ชไว้ฝั่งขวา */
  opacity: .94;
  transition: transform .5s ease, opacity .3s;
}
.cat-card:hover .cat-media img { transform: scale(1.035); opacity: 1; }

.cat-media-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: .68rem;
  letter-spacing: .05em;
  color: var(--cream);
  background: rgba(8, 7, 6, .58);
  backdrop-filter: blur(2px);
}
/* รูปสำรอง: เติมเงาด้านล่างให้ป้ายหมวดอ่านได้ และให้ภาพซ้ำดูเป็น “ช่องplaceholder” ไม่ใช่รูปสินค้า */
.cat-card .cat-media.is-default::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 6, .10) 0%, rgba(8, 7, 6, .0) 45%, rgba(8, 7, 6, .55) 100%);
  pointer-events: none;
}
.cat-card .cat-media.is-default img { filter: saturate(.72) brightness(.94); }

.cat-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 10px;
  border-radius: 40px;
  font-size: .7rem;
  letter-spacing: .03em;
  color: var(--cream);
  background: rgba(8, 7, 6, .62);
  border: 1px solid rgba(244, 204, 131, .45);
}
.cat-badge.is-wait { border-color: var(--line-5); }
.cat-badge.is-off,
.cat-badge.is-out { border-color: var(--line-6); color: var(--cream); opacity: .92; }

.cat-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
  padding: 16px 20px 0;
}
/* specificity: ต้องชนะ .card.card-has-photo .card-body (display:block, padding) ใน main.css */
.card.card-has-photo.cat-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 20px 0;
}
.cat-kicker {
  margin: 0 0 6px !important;
  font-size: .72rem !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-ink) !important;
}
.cat-card h3 {
  font-size: 1.06rem;
  line-height: 1.4;
  margin: 0 0 8px;
}
.cat-card h3 a { color: inherit; text-decoration: none; }
.cat-card h3 a:hover { color: var(--accent-ink-2); }
.cat-advice {
  margin: 0 0 14px !important;
  font-size: .88rem !important;
  line-height: 1.6;
  color: var(--muted) !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-foot {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.cat-price {
  font-size: .95rem;
  font-weight: 600;
  color: var(--accent-ink-2);
  font-variant-numeric: tabular-nums;
}
.cat-price.is-ask { font-weight: 500; color: var(--muted); font-size: .86rem; }
.cat-price-old {
  font-size: .8rem;
  color: var(--muted);
  opacity: .75;
}
.cat-link {
  margin-left: auto;
  font-size: .76rem;
  letter-spacing: .05em;
  color: var(--accent-ink);
  white-space: nowrap;
}
.cat-card:hover .cat-link { color: var(--accent-ink-2); }

.cat-note {
  max-width: var(--wrap);
  margin: 26px auto 0;
  padding: 0 var(--pad, 20px);
  color: var(--muted);
  font-size: .84rem;
}

/* =============================================================
   หน้ารายละเอียด — เลย์เอาต์แบบบทความนิตยสาร
   หัวเรื่องกึ่งกลาง · ปกกว้าง · คอลัมน์อ่าน 62ch · แถบจอง · การ์ดผู้เขียน
   ============================================================= */
.cat-item {
  padding-top: clamp(18px, 2.6vw, 30px);
  padding-bottom: clamp(30px, 4vw, 52px);
}

/* แถบบน: breadcrumb + ปุ่มแก้ไข (แสดงเฉพาะเมื่อล็อกอินหลังบ้าน) */
.cat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto 8px;
  padding: 0 var(--pad, 20px);
}
.cat-edit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-ink-2);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.cat-edit svg { width: 15px; height: 15px; flex: 0 0 auto; }
.cat-edit:hover { border-color: var(--gold); color: var(--accent-ink); background: var(--surface-2, var(--surface)); }

.cat-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
}
.cat-crumbs a { color: var(--muted); text-decoration: none; }
.cat-crumbs a:hover { color: var(--accent-ink-2); }
.cat-crumbs span[aria-current] { color: var(--text); }

/* ---------- หัวเรื่อง (กึ่งกลาง) ---------- */
.cat-lede {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 30px) var(--pad, 20px) clamp(24px, 3.4vw, 38px);
  text-align: center;
}
.cat-seal {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border: 1px solid var(--line-5);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 18%, rgba(217, 164, 78, .16), transparent 72%);
  color: var(--accent-ink-2);
  font-size: 1.3rem;
  line-height: 1;
}
.cat-lede-kicker {
  margin: 0 0 clamp(12px, 1.6vw, 16px);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.cat-lede h1 {
  margin: 0 auto clamp(14px, 1.8vw, 18px);
  max-width: 22ch;
  font-size: clamp(1.95rem, 1.15rem + 2.6vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.cat-lede-deck {
  margin: 0 auto;
  max-width: 34ch;
  font-size: clamp(1.02rem, .95rem + .32vw, 1.16rem);
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
}
.cat-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: clamp(20px, 2.6vw, 28px) 0 0;
  font-size: .82rem;
  color: var(--muted-3);
}
.cat-byline-avatar {
  width: 28px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--line-6);
  border-radius: 50%;
  background: var(--deep);
  object-fit: contain;
}
.cat-byline-name { color: var(--text); font-weight: 500; letter-spacing: .02em; }
.cat-byline-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-5);
}

/* ---------- ปกกว้าง ---------- */
.cat-plate {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--pad, 20px);
}
.cat-plate img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 62% 40%;
  border: 1px solid var(--line);
  border-radius: clamp(10px, 1.4vw, 18px);
  background: var(--ink);
}
.cat-plate.is-default img { filter: saturate(.9) contrast(1.02); }
.cat-plate .cat-badge {
  right: calc(var(--pad, 20px) + 12px);
  top: 12px;
  font-size: .72rem;
  padding: 5px 12px;
}

/* ---------- แถวข้อมูลย่อ ---------- */
.cat-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 820px;
  margin: clamp(20px, 2.8vw, 28px) auto 0;
  padding: 16px var(--pad, 20px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.cat-facts li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px clamp(14px, 2.6vw, 26px);
  border-left: 1px solid var(--line-soft);
  text-align: center;
}
.cat-facts li:first-child { border-left: 0; }
.cat-facts-k {
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-5);
}
.cat-facts-v { font-size: .92rem; color: var(--text); line-height: 1.45; }

/* ---------- คอลัมน์อ่าน ---------- */
.cat-article {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 4.4vw, 46px) var(--pad, 20px) 0;
}

.cat-item-body {
  max-width: 62ch;
  margin: 0 auto;
  text-align: left;
}
.cat-item-body p {
  font-size: clamp(1.02rem, .94rem + .3vw, 1.13rem);
  line-height: 1.95;
  color: var(--prose-2);
  margin: 0 0 1.1em;
  text-wrap: pretty;
}
/* ย่อหน้าแรก = ประโยคเปิด อ่านง่ายกว่าและทำให้หน้าไม่แบน */
.cat-item-body p:first-child {
  font-size: clamp(1.1rem, 1rem + .38vw, 1.22rem);
  line-height: 1.85;
  color: var(--text);
}
.cat-item-body p:last-child { margin-bottom: 0; }
/* จุดปิดท้ายบทความ (แบบนิตยสาร) */
.cat-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: clamp(28px, 4vw, 40px) 0 0;
}
.cat-end i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-5);
}
.cat-end i:nth-child(2) { background: var(--gold); }

.cat-usage {
  max-width: 62ch;
  margin: clamp(28px, 4vw, 42px) auto 0;
}
.cat-usage-head {
  margin: 0 0 14px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink-2);
}
.cat-usage ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cat-usage li {
  position: relative;
  padding-left: 20px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--prose-2);
}
.cat-usage li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .74em;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold);
}

/* ---------- แถบราคา / จอง ---------- */
.cat-book {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  max-width: 720px;
  margin: clamp(36px, 5vw, 54px) auto 0;
  padding: clamp(20px, 3vw, 26px) clamp(20px, 3vw, 30px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--panel));
}
.cat-book-main { min-width: 0; }
.cat-book-label {
  margin: 0 0 4px;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-5);
}
.cat-book-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: clamp(1.45rem, 1.15rem + 1vw, 1.9rem);
  font-weight: 600;
  color: var(--accent-ink-2);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.cat-book-price s { font-size: .92rem; font-weight: 400; color: var(--muted-5); }
.cat-book-price .is-ask {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--muted);
}
.cat-book-note {
  margin: 7px 0 0;
  max-width: 44ch;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--muted-4);
}
.cat-book-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-book-actions .btn { min-height: 44px; }

/* ---------- การ์ดผู้เขียน ---------- */
.cat-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 16px;
  max-width: 720px;
  margin: clamp(20px, 3vw, 30px) auto 0;
  padding: clamp(18px, 3vw, 24px) clamp(20px, 3vw, 30px) 0;
  border-top: 1px solid var(--line-soft);
}
.cat-author-avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 6px;
  border: 1px solid var(--line-5);
  border-radius: 50%;
  background: var(--deep);
  object-fit: contain;
}
/* โลโก้ทองต้องมีพื้นเข้ม — โหมดสว่าง --deep เป็นครีม จึงใช้ --brown (ค่าเดียวกันทั้งสองโหมด) */
html[data-theme="light"] .cat-byline-avatar,
html[data-theme="light"] .cat-author-avatar {
  border-color: var(--brown);
  background: var(--brown);
}
.cat-author-copy { flex: 1 1 220px; min-width: 0; }
.cat-author-name { margin: 0 0 3px; font-size: 1rem; font-weight: 600; color: var(--text); }
.cat-author-bio { margin: 0; font-size: .86rem; line-height: 1.6; color: var(--muted-4); }
.cat-author-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin-left: auto;
  font-size: .82rem;
  color: var(--accent-ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.cat-author-link:hover { color: var(--accent-ink); }

/* ---------- แถวแชร์ ---------- */
.cat-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 720px;
  margin: clamp(18px, 2.6vw, 24px) auto 0;
  padding: 0 clamp(20px, 3vw, 30px);
}
.cat-share-label {
  margin-right: 4px;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-5);
}
.cat-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: .78rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.cat-share-btn:hover,
.cat-share-btn:focus-visible { border-color: var(--accent-ink); color: var(--accent-ink-2); }
.cat-share-btn.is-done { border-color: var(--gold); color: var(--accent-ink-2); }

/* ---------- แถบลอยล่างจอ (มือถือ) ---------- */
.cat-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, .28);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s ease, opacity .2s ease;
}
.cat-sticky.is-on { transform: none; opacity: 1; pointer-events: auto; }
.cat-sticky-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cat-sticky-label {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-5);
}
.cat-sticky-price {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--accent-ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-sticky-price.is-ask { font-size: .9rem; font-weight: 500; color: var(--muted); }
.cat-sticky .btn { flex: 0 0 auto; }

/* ---------- รายการอื่นในหมวดเดียวกัน ---------- */
.cat-related { padding-top: clamp(30px, 4vw, 50px); }
.cat-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  margin: 0 auto 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.cat-related-head h2 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.cat-related-head a {
  font-size: .8rem;
  color: var(--accent-ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.cat-related-head a:hover { color: var(--accent-ink); }

/* ---------- util ---------- */
.cat-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- มือถือ: 2 คอลัมน์คงที่ ---------- */
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cat-sec-head { grid-template-columns: auto 1fr; }
  .cat-sec-count { display: none; }
  .cat-plate img { aspect-ratio: 16 / 10; }
  .cat-book { flex-direction: column; align-items: stretch; }
  .cat-book-actions { display: grid; grid-template-columns: 1fr; }
  .cat-book-actions .btn { width: 100%; justify-content: center; }
  .cat-author { gap: 12px; }
  .cat-author-link { margin-left: 0; }
}

@media (max-width: 480px) {
  .cat-nav-inner { padding: 10px 0 14px; gap: 6px; }
  .cat-chip { min-height: 40px; padding: 7px 12px; font-size: .8rem; }
  .cat-chip-icon { font-size: .85rem; }
  .cat-sec-icon { width: 38px; height: 38px; font-size: 1rem; }
  .cat-sec-head h2 { font-size: 1.2rem; }
  .cat-sec-head p { font-size: .84rem; }
  .card.card-has-photo.cat-card .card-body { padding: 12px 14px 0; }
  .cat-card h3 { font-size: .95rem; margin-bottom: 6px; }
  .cat-kicker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cat-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cat-link { margin-left: 0; }
  .cat-advice { font-size: .8rem !important; -webkit-line-clamp: 2; margin-bottom: 10px !important; }
  .cat-kicker { font-size: .66rem !important; }
  .cat-price { font-size: .86rem; }
  .cat-price.is-ask { font-size: .78rem; }
  .cat-link { font-size: .7rem; }
  .cat-media-tag { display: none; }

  .cat-lede { padding-top: 8px; padding-bottom: 20px; }
  /* มือถือ: ตัดชื่อหน้าปัจจุบันออกจาก breadcrumb (ซ้ำกับ h1 ที่อยู่ถัดไป) */
  .cat-crumbs > *:nth-last-child(-n+2) { display: none; }
  .cat-seal { width: 46px; height: 46px; font-size: 1.15rem; margin-bottom: 12px; }
  .cat-lede-kicker { font-size: .66rem; letter-spacing: .14em; }
  .cat-lede h1 { max-width: 100%; }
  .cat-lede-deck { max-width: 100%; font-size: 1rem; }
  .cat-byline { gap: 6px; font-size: .76rem; }
  .cat-byline-avatar { width: 24px; height: 24px; }
  .cat-plate { padding: 0 14px; }
  .cat-plate .cat-badge { right: 24px; top: 10px; }
  .cat-facts { gap: 10px 0; margin-top: 18px; }
  .cat-facts li { padding: 0 12px; }
  .cat-facts-v { font-size: .86rem; }
  .cat-item-body p { line-height: 1.9; }
  .cat-book { border-radius: 12px; }
  .cat-author-avatar { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .cat-card .cat-media img { transition: none; }
  .cat-card:hover .cat-media img { transform: none; }
  .cat-sticky { transition: none; }
}

/* ---------- ปุ่มเพิ่มลงตะกร้าในการ์ดสินค้า ---------- */
.cat-actions { margin-top: 10px; display: flex; }
.cat-actions .btn {
  width: 100%;
  min-height: 40px;
  font-size: .82rem;
  justify-content: center;
}
@media (max-width: 480px) {
  .cat-actions .btn { min-height: 38px; font-size: .76rem; }
}
