/* Category page content typography */
.category-page {
    color: #333;
    line-height: 1.7;
}
.category-page h2.cat-section-title,
.category-page h2 {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-top: 2.5em !important;
    margin-bottom: 0.8em !important;
    line-height: 1.3 !important;
}
.category-page h2:first-of-type,
.category-page > section:first-of-type h2 {
    margin-top: 1em !important;
}
.category-page h3 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin-top: 1.8em !important;
    margin-bottom: 0.6em !important;
    line-height: 1.4 !important;
}
.category-page p {
    font-size: 1rem !important;
    color: #555 !important;
    margin-bottom: 1.2em !important;
    line-height: 1.75 !important;
}
.category-page .cat-intro p {
    font-size: 1.05rem !important;
    color: #444 !important;
}
.category-page .cat-intro p.cat-description {
    font-size: 1.1rem !important;
    color: #333 !important;
    font-weight: 500;
}
.category-page ul, .category-page ol {
    margin-bottom: 1.2em;
    padding-left: 1.5em;
    color: #555;
}
.category-page li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

/* Highlights grid - Key Features (4 columns) */
.category-page .highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 25px 0;
}
.category-page .highlight-item {
    padding: 20px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background: #fafafa;
}
.category-page .highlight-item h3 {
    margin-top: 0 !important;
    font-size: 1.05rem !important;
}
.category-page .highlight-item p {
    margin-bottom: 0 !important;
    font-size: 0.92rem !important;
    color: #666 !important;
}

/* Types grid (2x2 / 2 columns) */
.category-page .types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}
.category-page .type-item {
    padding: 25px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background: #fff;
}
.category-page .type-item h3 {
    margin-top: 0 !important;
    font-size: 1.1rem !important;
    color: #1a1a1a !important;
}
.category-page .type-item p {
    margin-bottom: 0 !important;
    font-size: 0.95rem !important;
}

/* OEM grid (3 columns) */
.category-page .oem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
}
.category-page .oem-item {
    padding: 25px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}
.category-page .oem-item h3 {
    margin-top: 0 !important;
    font-size: 1.05rem !important;
    color: #1a1a1a !important;
    text-align: center;
}
.category-page .oem-item p {
    margin-bottom: 0 !important;
    font-size: 0.92rem !important;
    text-align: left;
}
/* OEM grid: fix wpautop layout corruption */
.category-page .oem-grid > p { display: none; }
.category-page .oem-grid > br { display: none; }
.category-page .oem-item { display: block; text-decoration: none; color: inherit; transition: border-color 0.2s, box-shadow 0.2s; }
.category-page .oem-item:hover { border-color: #ff6600; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.category-page .oem-item .related-icon { display: block; font-size: 2rem; margin-bottom: 10px; text-align: center; }.category-page .oem-item h3 a { text-decoration: none; color: #1a1a1a; transition: color 0.2s; }
.category-page .oem-item h3 a:hover { color: #ff6600; }


.category-page .oem-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #ff6600;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 10px;
}
.category-page .oem-cta-btn:hover {
    background: #e65c00;
}

/* Related categories grid (4 columns) */
.category-page .related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 25px 0;
}
.category-page .related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.category-page .related-card:hover {
    border-color: #ff6600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.category-page .related-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.category-page .related-text {
    font-size: 0.95rem;
}

/* FAQ styling */
.category-page .faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.category-page .faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.category-page .faq-question {
    margin-bottom: 10px !important;
    margin-top: 0 !important;
    font-size: 1.05rem !important;
}
.category-page .faq-answer p {
    margin-bottom: 0 !important;
    font-size: 0.95rem !important;
}

/* CTA section */
.category-page .cat-cta {
    background: #f7f7f7;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
}
.category-page .cat-cta h2 {
    margin-top: 0 !important;
    text-align: center;
}
.category-page .cat-cta p {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .category-page .highlights-grid,
    .category-page .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-page .types-grid,
    .category-page .oem-grid {
        grid-template-columns: 1fr;
    }
    .category-page h2.cat-section-title,
    .category-page h2 {
        font-size: 1.4rem !important;
    }
    .category-page .cat-cta {
        padding: 25px 20px;
    }
}
@media (max-width: 480px) {
    .category-page .highlights-grid,
    .category-page .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Category page product grid - match shop layout */
.cat-products .tm-grid-wrapper.tm-product .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.cat-products .tm-grid-wrapper.tm-product .products .grid-item {
    width: 100% !important;
    margin: 0 !important;
}
.cat-products .woocommerce-result-count,
.cat-products .woocommerce-ordering {
    margin-bottom: 20px;
}
.cat-products .woocommerce-pagination {
    margin-top: 30px;
    text-align: center;
}
/* Product title size in category pages */
.cat-products .woocommerce-loop-product__title,
.cat-products .product-title a,
.cat-products h3.woocommerce-loop-product__title {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin: 10px 0 8px !important;
}
@media (max-width: 768px) {
    .cat-products .tm-grid-wrapper.tm-product .products {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Category page product image - shrink to 82% width, centered, desktop only.
   Aligns with /shop/ (hotack-shop-image.php). .product-main-image wraps the img
   (img is width:100%), so 82% container = 82% of card width, keeps original ratio,
   no stretch/crop. margin-bottom on .product-thumbnail unchanged -> title spacing intact. */
@media (min-width: 1024px) {
    .cat-products .tm-product.style-grid .product-main-image { width: 82%; margin: 0 auto; }
}
@media (max-width: 480px) {
    .cat-products .tm-grid-wrapper.tm-product .products {
        grid-template-columns: 1fr;
    }
}
/* ========================================
   Hotack Global Related Articles
   Shared by all WordPress Pages
   Desktop: 3 columns
   Tablet: 2 columns
Mobile: 1 column
   ======================================== */

.hotack-related-articles {
  margin: 54px 0 30px;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.hotack-related-articles *,
.hotack-related-articles *::before,
.hotack-related-articles *::after {
  box-sizing: border-box;
}

/* Section heading */
.hotack-related-articles .hotack-related-title {
  margin: 0 0 26px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: #333;
}

/* Article grid */
.hotack-related-articles .hotack-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Card */
.hotack-related-articles .hotack-related-card {
  min-width: 0;
  margin: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}

/* Entire card clickable */
.hotack-related-articles .hotack-related-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Featured image */
.hotack-related-articles .hotack-related-media {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f5f5f5;
}

.hotack-related-articles .hotack-related-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0;
}

/* Article information */
.hotack-related-articles .hotack-related-body {
  padding: 20px;
}

/* Article title */
.hotack-related-articles .hotack-related-body h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  height: 2.9em;
  color: #333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* Article summary */
.hotack-related-articles .hotack-related-body p {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  height: 5.1em;
  color: #696969;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

/* Read article link */
.hotack-related-articles .hotack-related-more {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #002fa6;
}

/* Hover effect */
.hotack-related-articles .hotack-related-card-link:hover h3,
.hotack-related-articles .hotack-related-card-link:focus-visible h3 {
  color: #002fa6;
}

.hotack-related-articles .hotack-related-card-link:hover,
.hotack-related-articles .hotack-related-card-link:focus-visible {
  text-decoration: none;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .hotack-related-articles .hotack-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hotack-related-articles {
    margin: 42px 0 24px;
  }

  .hotack-related-articles .hotack-related-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .hotack-related-articles .hotack-related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hotack-related-articles .hotack-related-body {
    padding: 18px;
  }
}
/* Category feature image — moved from page inline styles (2026-12-03) */
.category-page .cat-feature-image {
    max-width: 800px;
    margin: 25px auto;
    text-align: center;
}
.category-page .cat-feature-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
