/* ==========================================================================
   Thankful Pack — add-on stylesheet
   Loaded after assets/style.css on every page.
   1. product-card links inside the catalog / category overlay
   2. static product detail pages  (products/<category>/<model>/)
   3. category + catalog index pages (products/, products/<category>/)
   ========================================================================== */

/* ---------- 1. cards that are links ---------- */
a.cat-product-img { display: block; aspect-ratio: 1/1; background: #fafafa; overflow: hidden; }
a.cat-product:hover { border-color: #d8c6f7; box-shadow: 0 6px 20px rgba(16,24,40,.08); }
a.cat-product-name { display: block; }
a.cat-product-name:hover, a.cat-product-model:hover { color: var(--orange-dark); }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-right: 40px; }
.cat-head .cat-title { margin-bottom: 20px; padding-right: 0; }
.cat-all { font-size: 13px; font-weight: 600; color: var(--orange-dark); white-space: nowrap; }
.cat-all:hover { text-decoration: underline; }
.pd-card { color: inherit; }
.pd-card .product-body { gap: 4px; }
.pd-card-more { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--orange-dark); }
.pd-card:hover .pd-card-more { text-decoration: underline; }

/* ---------- 2. product detail page ---------- */
.pd-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-soft);
  max-width: 1200px; margin: 0 auto; padding: 22px 24px 0;
}
.pd-crumb a { color: var(--ink-soft); }
.pd-crumb a:hover { color: var(--orange-dark); }
.pd-crumb span[aria-current] { color: var(--ink); font-weight: 600; }
.pd-crumb-sep { color: #cbd0d6; }

.pd-main-wrap { padding-bottom: 24px; }
.pd-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 56px; align-items: start;
  max-width: 1200px; margin: 0 auto; padding: 26px 24px 64px;
}

.pd-frame {
  aspect-ratio: 1/1; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.pd-frame img { width: 100%; height: 100%; object-fit: cover; }

.pd-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pd-thumb {
  padding: 0; aspect-ratio: 1/1; overflow: hidden; cursor: pointer;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { border-color: #c9b6f5; }
.pd-thumb.is-active { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(124,58,237,.16); }

.pd-info { padding-top: 4px; }
.pd-eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--orange-dark);
}
.pd-eyebrow:hover { text-decoration: underline; }
.pd-name { font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.6px; }
.pd-model { margin-top: 10px; font-size: 13px; letter-spacing: .4px; color: var(--ink-soft); }
.pd-model strong { color: var(--ink); font-weight: 700; }
.pd-lede { margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 54ch; }

.pd-specs { margin-top: 26px; border-top: 1px solid var(--line); }
.pd-spec {
  display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.pd-spec dt { font-size: 13px; color: var(--ink-soft); }
.pd-spec dd { font-size: 14px; font-weight: 600; color: var(--ink); }

.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pd-note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

.pd-related-section { background: var(--bg-alt); padding: 56px 0 64px; }
.pd-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.pd-related-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.2px; }
.pd-more { font-size: 14px; font-weight: 600; color: var(--orange-dark); }
.pd-more:hover { text-decoration: underline; }
.pd-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pd-rel {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.pd-rel:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d8c6f7; }
.pd-rel-img { aspect-ratio: 1/1; background: #fafafa; }
.pd-rel-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-rel-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.pd-rel-model { font-size: 11px; font-weight: 600; letter-spacing: .4px; color: var(--ink-soft); }
.pd-rel-name { font-size: 14px; font-weight: 600; line-height: 1.35; }

/* ---------- 3. category + catalog index ---------- */
.pd-cat-head { padding: 34px 0 6px; }
.pd-cat-head .container { max-width: 1200px; }
.pd-cat-title { font-size: 38px; letter-spacing: -.8px; }
.pd-cat-sub { margin-top: 10px; font-size: 15px; color: var(--ink-soft); max-width: 62ch; }
.pd-list { padding: 26px 0 72px; }
.pd-grid { gap: 20px; }

.pi-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 44px; align-items: start; }
.pi-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 9px; margin-bottom: 6px; border-bottom: 2px solid var(--ink);
}
.pi-head h2 { font-size: 17px; font-weight: 800; letter-spacing: -.1px; }
.pi-head h2 a:hover { color: var(--orange-dark); }
.pi-head span { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.pi-list { list-style: none; }
.pi-list a {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 2px 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.pi-list a:hover .pi-name { color: var(--orange-dark); }
.pi-model { grid-row: span 2; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-soft); padding-top: 2px; }
.pi-name { font-size: 14px; font-weight: 600; }
.pi-mat { font-size: 12px; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pd-wrap { grid-template-columns: 1fr; gap: 32px; padding: 22px 20px 48px; }
  .pd-name { font-size: 28px; }
  .pd-cat-title { font-size: 30px; }
  .pd-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-crumb { padding: 18px 20px 0; }
  .pd-related-section { padding: 44px 0 52px; }
}

@media (max-width: 560px) {
  .pd-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .pd-spec { grid-template-columns: 118px minmax(0, 1fr); gap: 12px; }
  .pd-actions .btn { width: 100%; }
  .pd-related-section { padding: 36px 0 44px; }
  .pd-related-grid { gap: 12px; }
  .pi-list a { grid-template-columns: 108px minmax(0, 1fr); }
  .pd-cat-sub { font-size: 14px; }
}

/* ---------- small links ---------- */
.catalog-all { margin-top: 28px; text-align: center; font-size: 14px; font-weight: 600; }
.catalog-all a { color: var(--orange-dark); }
.catalog-all a:hover { text-decoration: underline; }
.modal-full { font-size: 13px; font-weight: 600; color: var(--orange-dark); align-self: flex-start; }
.modal-full:hover { text-decoration: underline; }

/* ---------- blog / guides ---------- */
.post { padding: 0 0 var(--sp-6); }
.post-container { max-width: 860px; }
.post-head { padding: 34px 0 10px; }
.post-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 12px; }
.post-h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; font-weight: 800; color: var(--ink); margin: 0 0 14px; }
.post-lede { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 12px; }
.post-meta { font-size: 13px; color: #9ca3af; margin: 0 0 8px; }
.post-body { margin-top: 18px; }
.post-body h2 { font-size: 24px; font-weight: 700; color: var(--ink); margin: 36px 0 14px; line-height: 1.3; }
.post-body h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 24px 0 10px; }
.post-body p { font-size: 16px; line-height: 1.75; color: #374151; margin: 0 0 14px; }
.post-body ul, .post-body ol { margin: 0 0 16px 22px; }
.post-body li { font-size: 16px; line-height: 1.7; color: #374151; margin-bottom: 8px; }
.post-body ul.checks li { list-style: none; position: relative; }
.post-body ul.checks li::before { content: "✓"; position: absolute; left: -22px; color: var(--orange-dark); font-weight: 700; }
.post-body table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 14px; }
.post-body th { text-align: left; background: #f7f2ee; color: var(--ink); font-weight: 600; }
.post-body th, .post-body td { padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: top; }
.post-body td { color: #374151; }
.post-faq { margin-top: 34px; }
.post-faq h2 { font-size: 24px; font-weight: 700; color: var(--ink); margin: 0 0 14px; }
.post-faq details { border-bottom: 1px solid #eee; padding: 12px 0; }
.post-faq summary { font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; }
.post-faq details p { font-size: 15px; line-height: 1.7; color: #4b5563; margin: 10px 0 0; }
.post-links { margin-top: 30px; padding: 20px 22px; background: #f7f2ee; border-radius: 12px; }
.post-links h2 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.post-linklist { list-style: none; margin: 0; padding: 0; }
.post-linklist li { padding: 5px 0; font-size: 15px; }
.post-linklist a { color: var(--orange-dark); font-weight: 500; }
.post-linklist a:hover { text-decoration: underline; }
.post-cta { margin: 36px 0 10px; padding: 28px 26px; background: #1f2937; border-radius: 14px; color: #fff; }
.post-cta h2 { font-size: 22px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.post-cta p { font-size: 15px; line-height: 1.65; color: #d1d5db; margin: 0 0 18px; }
.blog-footer { padding: 26px 0; }
.blog-footer p { font-size: 13px; color: #9ca3af; margin: 0; }

/* ---------- guides index ---------- */
.blog-hero { padding: 46px 0 28px; border-bottom: 1px solid #ececec; margin-bottom: 34px; }
.blog-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 14px; }
.blog-hero h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.15; font-weight: 800; color: var(--ink); margin: 0 0 16px; letter-spacing: -.01em; }
.blog-hero .lede { font-size: 18px; line-height: 1.7; color: var(--ink-soft); max-width: 62ch; margin: 0; }
.blog-meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 13px; color: #9ca3af; }
.blog-meta-row span { display: inline-flex; align-items: center; gap: 6px; }

.blog-feature { display: block; position: relative; padding: 30px 32px; margin-bottom: 24px; border: 1px solid #ececec; border-radius: 18px; background: linear-gradient(180deg, #fff 0%, #faf7ff 100%); color: inherit; text-decoration: none; transition: box-shadow .16s, transform .16s; }
.blog-feature:hover { box-shadow: 0 10px 26px rgba(31, 41, 55, .08); transform: translateY(-1px); }
.blog-feature h2 { font-size: clamp(21px, 2.8vw, 28px); line-height: 1.32; font-weight: 700; color: var(--ink); margin: 0 0 12px; letter-spacing: -.005em; }
.blog-feature p { font-size: 15.5px; line-height: 1.7; color: #4b5563; max-width: 70ch; margin: 0 0 16px; }

.blog-tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--orange-dark); background: #f3ecff; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.blog-tag--start { color: #fff; background: var(--orange-dark); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.blog-card { display: flex; flex-direction: column; padding: 24px 24px 18px; background: #fff; border: 1px solid #ececec; border-radius: 16px; color: inherit; text-decoration: none; transition: box-shadow .16s, border-color .16s; }
.blog-card:hover { box-shadow: 0 8px 22px rgba(31, 41, 55, .07); border-color: #ded3f5; }
.blog-card h2 { font-size: 18px; line-height: 1.45; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.blog-card p { flex: 1 1 auto; font-size: 14px; line-height: 1.65; color: #6b7280; margin: 0 0 16px; }
.blog-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #f4f4f4; font-size: 12.5px; color: #9ca3af; }
.blog-more { font-size: 13px; font-weight: 600; color: var(--orange-dark); }
.blog-card:hover .blog-more, .blog-feature:hover .blog-more { text-decoration: underline; }
.blog-footer-link { margin-top: 30px; }

@media (max-width: 640px) { .post-head { padding-top: 24px; } .post-body h2 { font-size: 21px; } }

/* guide links on product pages */
.pd-guide-section { padding: 18px 0 26px; }
.pd-guide { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.pd-guide a { color: var(--orange-dark); font-weight: 600; }
.pd-guide a:hover { text-decoration: underline; }
