/* ==========================================================================
   Bootstrap 2 to Bootstrap 5 Compatibility Bridge
   Ensures legacy templates with span* columns & legacy buttons maintain
   exact visual structure while running on Bootstrap 5.3.3
   ========================================================================== */

/* 1. Base image responsiveness like Bootstrap 2 */
img {
  max-width: 100%;
  height: auto;
}

/* 2. Link text decoration matching Bootstrap 2 & site style */
a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* 3. Grid Column Mapping (.span1 to .span12 inside .row) */
.row > [class*="span"],
[class*="span"] {
  box-sizing: border-box;
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
}

.row > .span12, .span12 { flex: 0 0 auto; width: 100%; }
.row > .span11, .span11 { flex: 0 0 auto; width: 91.666667%; }
.row > .span10, .span10 { flex: 0 0 auto; width: 83.333333%; }
.row > .span9,  .span9  { flex: 0 0 auto; width: 75%; }
.row > .span8,  .span8  { flex: 0 0 auto; width: 66.666667%; }
.row > .span7,  .span7  { flex: 0 0 auto; width: 58.333333%; }
.row > .span6,  .span6  { flex: 0 0 auto; width: 50%; }
.row > .span5,  .span5  { flex: 0 0 auto; width: 41.666667%; }
.row > .span4,  .span4  { flex: 0 0 auto; width: 33.333333%; }
.row > .span3,  .span3  { flex: 0 0 auto; width: 25%; }
.row > .span2,  .span2  { flex: 0 0 auto; width: 16.666667%; }
.row > .span1,  .span1  { flex: 0 0 auto; width: 8.333333%; }

/* Responsive Grid Breakdowns */
@media (max-width: 991.98px) {
  .row > .span3 { width: 50%; }
  .row > .span4 { width: 50%; }
  .row > .span8 { width: 100%; }
}

@media (max-width: 767.98px) {
  .row > [class*="span"] { width: 100% !important; }
}

/* 4. Legacy Button Sizing */
.btn-large {
  padding: 9px 14px;
  font-size: 14px;
  line-height: normal;
  border-radius: 4px;
}
.btn-small {
  padding: 2px 10px;
  font-size: 11px;
}
.btn-mini {
  padding: 0 6px;
  font-size: 10px;
}

/* 5. Legacy Clearfix & Helpers */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}
.pull-right {
  float: right !important;
}
.pull-left {
  float: left !important;
}
.hide {
  display: none !important;
}
.show {
  display: block !important;
}

/* 6. Nav Pills Compatibility */
.nav-pills > li > a {
  display: block;
}

/* 7. Header Navigation & FlexNav Enhancement (No borders, Blue background on hover with white text) */
.flexnav {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: 'Prompt', sans-serif;
  font-size: 15px;
  position: relative;
  z-index: 500;
  border: none !important;
}

/* Desktop Navigation (>= 800px) - Transparent Background */
@media (min-width: 800px) {
  .nav-pills.flexnav {
    display: block !important;
    background: transparent !important;
    background-color: transparent !important;
  }
  .flexnav > li {
    float: left;
    display: block;
    position: relative;
    margin: 0 6px;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
  }
  .flexnav > li > a {
    display: block;
    padding: 10px 14px;
    background: transparent !important;
    background-color: transparent !important;
    color: #2b2b2b !important;
    font-weight: 500;
    text-decoration: none !important;
    border: none !important;
    border-radius: 4px;
    outline: none !important;
    box-shadow: none !important;
    transition: color 0.2s ease, background-color 0.2s ease;
  }
  .flexnav > li:hover > a,
  .flexnav > li > a:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: #107fc9 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }
  .flexnav > li.active > a,
  .flexnav > li > a.active {
    background: transparent !important;
    background-color: transparent !important;
    color: #107fc9 !important;
    font-weight: 700 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  /* Dropdown Submenu */
  .flexnav li ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 270px;
    width: auto;
    background: #ffffff;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: none !important;
    border-radius: 0;
    z-index: 99999 !important;
    display: none;
  }
  .flexnav li:hover > ul,
  .flexnav li.item-with-ul:hover > ul,
  .flexnav li ul.show {
    display: block !important;
  }
  .flexnav li ul li {
    width: 100%;
    float: none;
    display: block;
    margin: 0;
    padding: 0;
    border: none !important;
  }
  .flexnav li ul li a,
  .flexnav li ul li > a {
    display: block;
    padding: 10px 18px;
    color: #333333 !important;
    font-size: 14px;
    text-decoration: none !important;
    border: none !important;
    background: #ffffff !important;
    white-space: nowrap;
    text-align: left;
    outline: none !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .flexnav li ul li:last-child > a {
    border: none !important;
  }
  .flexnav li ul li a:hover,
  .flexnav li ul li:hover > a,
  .flexnav li ul li.active > a {
    background: #107fc9 !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
  }
  .flexnav-menu-button {
    display: none !important;
  }
}

/* Mobile Navigation (< 800px) */
@media (max-width: 799.98px) {
  .flexnav-menu-button {
    display: block !important;
    padding: 12px 18px;
    background: #107fc9;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none !important;
    border-radius: 4px;
    margin-bottom: 8px;
    text-align: center;
  }
  .flexnav {
    display: none;
    width: 100%;
    background: #ffffff;
    border: none !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    overflow: hidden;
  }
  .flexnav.show {
    display: block !important;
    max-height: 3000px !important;
  }
  .flexnav > li {
    display: block;
    width: 100%;
    float: none;
    position: relative;
    border: none !important;
  }
  .flexnav > li > a {
    display: block;
    padding: 12px 16px;
    color: #333333 !important;
    font-weight: 500;
    text-decoration: none !important;
    border: none !important;
    background: #ffffff;
  }
  .flexnav > li:hover > a,
  .flexnav > li > a:hover {
    background: #107fc9 !important;
    color: #ffffff !important;
    border: none !important;
  }
  .flexnav li ul {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border: none !important;
  }
  .flexnav li ul.show {
    display: block !important;
  }
  .flexnav li ul li {
    border: none !important;
  }
  .flexnav li ul li a {
    display: block;
    padding: 10px 24px;
    font-size: 13px;
    color: #555555 !important;
    text-decoration: none !important;
    border: none !important;
  }
  .flexnav li ul li a:hover {
    background: #107fc9 !important;
    color: #ffffff !important;
    border: none !important;
  }
  .touch-button {
    position: absolute;
    right: 0;
    top: 0;
    width: 46px;
    height: 46px;
    line-height: 46px;
    text-align: center;
    background: #0d66a1;
    color: #ffffff;
    cursor: pointer;
    border: none !important;
  }
}


/* 8. FAQ Custom Styling & Accordion */
.custom-faq-accordion .accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px !important;
  margin-bottom: 14px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}
.custom-faq-accordion .accordion-item:hover {
  border-color: #90c2e7;
  box-shadow: 0 4px 14px rgba(16, 127, 201, 0.1);
}
.custom-faq-accordion .accordion-button {
  font-family: 'Prompt', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  padding: 18px 22px;
  background-color: #ffffff;
  box-shadow: none !important;
}
.custom-faq-accordion .accordion-button:not(.collapsed) {
  color: #107fc9;
  background-color: #f4f9fd;
}
.custom-faq-accordion .accordion-button:focus {
  box-shadow: none !important;
}
.custom-faq-accordion .faq-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef5fa;
  color: #107fc9;
  font-size: 13px;
  font-weight: 700;
  margin-right: 14px;
  flex-shrink: 0;
}
.custom-faq-accordion .accordion-button:not(.collapsed) .faq-num {
  background: #107fc9;
  color: #ffffff;
}
.custom-faq-accordion .accordion-body {
  font-family: 'Prompt', sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: #4a5568;
  padding: 18px 22px 22px 64px;
  background-color: #ffffff;
  border-top: 1px solid #edf2f7;
}
.faq-highlight {
  border-color: #107fc9 !important;
  box-shadow: 0 0 0 4px rgba(16, 127, 201, 0.25) !important;
  animation: faqPulse 1.8s ease-in-out;
}
@keyframes faqPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}
.faq-contact-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* 9. Footer Nav Contact & Social Alignment */
footer.main .nav-contact,
.nav-contact {
  list-style: none !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
}
footer.main .nav-contact li {
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  line-height: 1.6;
}
footer.main h5 {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  padding-left: 0 !important;
}
.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 5px;
  padding: 0 !important;
  padding-left: 0 !important;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 16px;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.footer-social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  color: #ffffff !important;
}
.footer-social-btn.btn-email {
  background-color: #107fc9;
}
.footer-social-btn.btn-line {
  background-color: #06c755;
}
.footer-social-btn.btn-line img {
  width: 20px;
  height: 20px;
  display: block;
}
.footer-social-btn.btn-facebook {
  background-color: #1877f2;
}

.footer-social-btn svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
}
.footer-social-btn svg path {
  fill: #ffffff !important;
}

/* 10. Product Gallery Slider (Shopee Style like 9chaichana) */
.product-gallery-slider {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}
.product-gallery-slider__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.product-gallery-slider__main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.product-gallery-slider__main img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}
.product-gallery-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff !important;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.15s ease;
}
.product-gallery-slider__nav:hover {
  background: #107fc9;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.08);
  outline: none;
}
.product-gallery-slider__nav svg {
  display: block;
}
.product-gallery-slider__nav--prev { left: 10px; }
.product-gallery-slider__nav--next { right: 10px; }
.product-gallery-slider__counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  pointer-events: none;
}
.product-gallery-slider__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.product-gallery-slider__thumbs::-webkit-scrollbar {
  height: 5px;
}
.product-gallery-slider__thumbs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.product-gallery-slider__thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  padding: 2px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}
.product-gallery-slider__thumb:hover {
  border-color: #90c2e7;
}
.product-gallery-slider__thumb.is-active {
  border-color: #107fc9;
  box-shadow: 0 0 0 2px rgba(16, 127, 201, 0.25);
}
.product-gallery-slider__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}
.product-gallery-slider__zoom-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-family: 'Prompt', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}
.product-gallery-slider__stage:hover .product-gallery-slider__zoom-badge {
  background: #107fc9;
  transform: scale(1.05);
}

/* Product Lightbox Modal Pop-up */
body.product-lightbox-open {
  overflow: hidden !important;
  touch-action: none;
}
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.product-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 25, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.product-lightbox__container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  pointer-events: none;
}
.product-lightbox__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 90vh;
  pointer-events: auto;
}
.product-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 82vh;
}
.product-lightbox__image {
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.96);
}
.product-lightbox.is-open .product-lightbox__image {
  transform: scale(1);
}
.product-lightbox__footer {
  margin-top: 12px;
  text-align: center;
}
.product-lightbox__counter {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-family: 'Prompt', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border-radius: 16px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.product-lightbox__close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 28px;
  background: rgba(20, 25, 35, 0.75);
  color: #ffffff !important;
  font-family: 'Prompt', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}
.product-lightbox__close:hover,
.product-lightbox__close:focus {
  background: #e53e3e;
  border-color: #e53e3e;
  color: #ffffff !important;
  transform: scale(1.06);
  outline: none;
}
.product-lightbox__close svg {
  display: block;
}
.product-lightbox__nav {
  position: fixed;
  top: 50%;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(20, 25, 35, 0.65);
  color: #ffffff !important;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.product-lightbox__nav:hover,
.product-lightbox__nav:focus {
  background: #107fc9;
  border-color: #107fc9;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.1);
  outline: none;
}
.product-lightbox__nav svg {
  display: block;
}
.product-lightbox__nav--prev {
  left: 24px;
}
.product-lightbox__nav--next {
  right: 24px;
}
@media (max-width: 767.98px) {
  .product-lightbox__close {
    top: 14px;
    right: 14px;
    padding: 7px 14px;
    font-size: 14px;
  }
  .product-lightbox__nav {
    width: 42px;
    height: 42px;
  }
  .product-lightbox__nav--prev {
    left: 8px;
  }
  .product-lightbox__nav--next {
    right: 8px;
  }
  .product-lightbox__image {
    max-width: 95vw;
    max-height: 75vh;
  }
}

/* Product PDF Download Button */
.btn-product-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background-color: #d93829 !important;
  color: #ffffff !important;
  font-family: 'Prompt', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none !important;
  border-radius: 6px;
  border: 1px solid #c9302c;
  box-shadow: 0 2px 6px rgba(217, 56, 41, 0.25);
  transition: all 0.2s ease;
}
.btn-product-pdf:hover,
.btn-product-pdf:focus {
  background-color: #b7281b !important;
  color: #ffffff !important;
  border-color: #a02014;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 56, 41, 0.35);
  text-decoration: none !important;
  outline: none;
}
.btn-product-pdf:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(217, 56, 41, 0.2);
}

/* ==========================================================================
   Responsive Product Catalog Grid & Cards
   Optimized for all viewports: Mobile (xs/sm), Tablet (md), Desktop (lg/xl/xxl)
   ========================================================================== */
.catalog-page-container {
  padding-top: 25px;
  padding-bottom: 50px;
}

/* Breadcrumb in Top Title Area */
.catalog-breadcrumb {
  font-family: 'Prompt', sans-serif;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.catalog-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
}
.catalog-breadcrumb a:hover {
  text-decoration: underline;
  opacity: 1;
}
.catalog-breadcrumb .sep {
  font-size: 11px;
  opacity: 0.6;
}
.catalog-breadcrumb .current {
  color: #ffd04b;
  font-weight: 500;
}

.catalog-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.catalog-header-flex .title-page {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}
.catalog-count-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13.5px;
  font-family: 'Prompt', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.catalog-intro-desc {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.6;
  font-family: 'Prompt', sans-serif;
}

/* Catalog Grid & Cards */
.catalog-grid {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
  margin-left: -10px;
}
.catalog-col {
  padding-right: 10px;
  padding-left: 10px;
  margin-bottom: 20px;
  display: flex;
}
.catalog-card {
  background: #ffffff;
  border: 1px solid #e5e9f2;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
  border-color: #007bff;
}

/* Card Image Box */
.catalog-card__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfcfd;
  height: 220px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f0f3f6;
  text-decoration: none;
}
.catalog-card__thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.catalog-card:hover .catalog-card__thumb img {
  transform: scale(1.06);
}

/* Card Body */
.catalog-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  font-family: 'Prompt', sans-serif;
}
.catalog-card__title {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  height: 2.9em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.catalog-card__title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}
.catalog-card:hover .catalog-card__title a {
  color: #0066cc;
  text-decoration: none;
}
.catalog-card__desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 12px 0;
  height: 3em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.catalog-card__footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #f1f5f9;
}
.catalog-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.2s ease;
  gap: 6px;
}
.catalog-card__btn i {
  font-size: 12px;
  transition: transform 0.2s ease;
}
.catalog-card:hover .catalog-card__btn {
  background: #0066cc;
  color: #ffffff !important;
}
.catalog-card:hover .catalog-card__btn i {
  transform: translateX(3px);
}

/* Pagination */
.catalog-pagination-wrap {
  margin-top: 35px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: 'Prompt', sans-serif;
}
.catalog-pagination-info {
  font-size: 13.5px;
  color: #64748b;
}
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.catalog-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #d0d7de;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.catalog-page-btn:hover {
  background: #f1f5f9;
  color: #0066cc;
  border-color: #0066cc;
}
.catalog-page-btn.is-active {
  background: #0066cc;
  border-color: #0066cc;
  color: #ffffff !important;
  font-weight: 600;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 102, 204, 0.25);
}

/* Empty State */
.catalog-empty-box {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 50px 20px;
  text-align: center;
  font-family: 'Prompt', sans-serif;
  color: #64748b;
  margin: 30px auto;
  max-width: 500px;
}
.catalog-empty-box i {
  font-size: 48px;
  color: #94a3b8;
  margin-bottom: 12px;
}
.catalog-empty-box h4 {
  font-size: 18px;
  color: #334155;
  margin-bottom: 8px;
}

/* Tablet / Medium Screens (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .catalog-card__thumb {
    height: 190px;
  }
}

/* Small Tablets / Landscape Mobile (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .catalog-card__thumb {
    height: 180px;
  }
}

/* Smartphone Mobile (< 576px) */
@media (max-width: 575.98px) {
  .catalog-page-container {
    padding-top: 15px;
    padding-bottom: 30px;
  }
  .catalog-grid {
    margin-right: -6px;
    margin-left: -6px;
  }
  .catalog-col {
    padding-right: 6px;
    padding-left: 6px;
    margin-bottom: 12px;
  }
  .catalog-card {
    border-radius: 8px;
  }
  .catalog-card__thumb {
    height: 145px;
    padding: 10px;
  }
  .catalog-card__body {
    padding: 10px 10px 12px;
  }
  .catalog-card__title {
    font-size: 13.5px;
    margin-bottom: 4px;
    height: 2.8em;
  }
  .catalog-card__desc {
    display: none; /* Hide snippet on mobile for compact 2-column cards */
  }
  .catalog-card__footer {
    padding-top: 6px;
    border-top: none;
  }
  .catalog-card__btn {
    padding: 5px 8px;
    font-size: 11.5px;
    border-radius: 4px;
  }
  .catalog-header-flex .title-page {
    font-size: 20px;
  }
  .catalog-count-badge {
    font-size: 12px;
    padding: 4px 10px;
  }
  .catalog-page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
    padding: 0 8px;
  }
}
