@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@400;500;600;700&display=swap');

/* BEWAVE - MODERN PRODUCT DETAIL (Pro-De.dwt)
   เพิ่ม class ตามคำแนะนำในข้อความประกอบก่อนใช้งาน */

.pro-de-page, .pro-de-page .boxedtheme { background:#f4f7fb; color:#26384a; }
.pro-de-page .product-detail-layout { padding-top:28px; padding-bottom:32px; }
.pro-de-page .product-category-panel {
  box-sizing:border-box; padding:18px 16px; background:#fff;
  border:1px solid #e6edf4; border-radius:14px;
  box-shadow:0 4px 18px rgba(28,55,85,.05);
}
.pro-de-page .product-category-panel .maintitle {
  margin:0 0 14px; padding-bottom:12px; border-bottom:1px solid #eaf0f5;
  color:#123d68; font-size:18px;
}
.pro-de-page .product-category-panel .maintitle:after { display:none; }
.pro-de-page .product-category-panel .faqs dt { margin:0 0 7px; padding:0; border:0; background:transparent; }
.pro-de-page .product-category-panel .faqs dt a {
  display:block; padding:9px 11px; border-radius:8px; color:#496176;
  font-size:13px; line-height:1.5; text-decoration:none;
  transition:background .2s ease,color .2s ease;
}
.pro-de-page .product-category-panel .faqs dt a:hover { background:#edf6fc; color:#087cc1; }

.pro-de-page .product-info-panel, .pro-de-page .product-media-panel {
  box-sizing:border-box; min-width:0; padding:22px; background:#fff;
  border:1px solid #e6edf4; border-radius:15px;
  box-shadow:0 5px 20px rgba(28,55,85,.06);
}
.pro-de-page .product-info-panel .maintitle {
  margin:0 0 22px; padding:0 0 14px; border-bottom:2px solid #eaf1f7;
  color:#123d68; font-size:23px; line-height:1.4;
}
.pro-de-page .product-info-panel h5 { margin:0 0 14px; color:#087cc1; font-size:17px; font-weight:700; }
.pro-de-page .product-info-panel p {
  display:flex; align-items:flex-start; gap:9px; margin:0 0 12px;
  color:#526477; font-size:14px; line-height:1.8;
}
.pro-de-page .product-info-panel p img { flex:0 0 10px; width:10px; height:11px; margin-top:6px; }

.pro-de-page .product-media-panel .boxcontainer {
  min-height:0; margin:0 0 15px; padding:14px; background:#fff;
  border:1px solid #edf1f5; border-radius:12px; box-shadow:none; box-sizing:border-box;
}
.pro-de-page .product-media-panel .gallery, .pro-de-page .product-media-panel .gallery a {
  display:flex; align-items:center; justify-content:center; width:100%;
}
.pro-de-page .product-media-panel .gallery img {
  display:block; width:100%; max-width:100%; height:270px; object-fit:contain; opacity:1;
}

.pro-de-page .product-download-table {
  width:100%; border:0; border-collapse:separate; border-spacing:0 7px;
  color:#40566b; font-size:13px;
}
.pro-de-page .product-download-table td {
  padding:12px 13px; border:1px solid #e6edf4; background:#f9fbfd; line-height:1.5;
}
.pro-de-page .product-download-table td:first-child {
  width:58%; border-right:0; border-radius:8px 0 0 8px;
}
.pro-de-page .product-download-table td:last-child {
  border-radius:0 8px 8px 0; color:#087cc1; font-weight:600;
}
.pro-de-page .product-download-table tr:hover td { background:#edf6fc; }

.pro-de-page .related-products-section {
  margin-top:16px; padding:22px 8px 26px; border-top:1px solid #e5edf4;
}
.pro-de-page .related-products-section > .c12 > .maintitle {
  margin:0 0 20px; color:#123d68; font-size:21px;
}
.pro-de-page .related-products-section .list_carousel { position:relative; padding-top:4px; }
.pro-de-page .related-products-section .carousel_nav { top:-48px; right:0; }
.pro-de-page .related-products-section .carousel_nav a {
  width:34px; height:34px; margin-left:7px; border:1px solid #d8e6f0;
  border-radius:50%; background:#fff; box-shadow:0 2px 8px rgba(28,55,85,.08);
}
.pro-de-page .related-products-section .carousel_nav a:hover { border-color:#087cc1; background:#087cc1; }
.pro-de-page .related-products-section #recent-projects { margin:0; padding:0; list-style:none; }
.pro-de-page .related-products-section #recent-projects > li { padding:7px; box-sizing:border-box; }
.pro-de-page .related-products-section .featured-projects {
  overflow:hidden; height:100%; border:1px solid #e6edf4; border-radius:12px;
  background:#fff; box-shadow:0 4px 14px rgba(28,55,85,.06);
  transition:transform .2s ease,box-shadow .2s ease;
}
.pro-de-page .related-products-section .featured-projects:hover {
  transform:translateY(-3px); box-shadow:0 8px 20px rgba(28,55,85,.11);
}
.pro-de-page .related-products-section .featured-projects-image {
  display:flex; align-items:center; justify-content:center; height:175px;
  padding:12px; background:#fff; box-sizing:border-box;
}
.pro-de-page .related-products-section .featured-projects-image img {
  width:100%; height:100%; object-fit:contain; opacity:1;
}
.pro-de-page .related-products-section .featured-projects-content {
  min-height:76px; padding:12px 10px 14px; border-top:1px solid #edf1f5; text-align:center;
}
.pro-de-page .related-products-section .featured-projects-content h1 {
  margin:0 0 8px; font-size:14px; line-height:1.4;
}
.pro-de-page .related-products-section .featured-projects-content h1 a { color:#233f59; text-decoration:none; }
.pro-de-page .related-products-section .featured-projects-content p { margin:0; color:#087cc1; font-size:12px; }

@media screen and (max-width:960px) {
  .pro-de-page .product-detail-layout > .c3 { width:30%; }
  .pro-de-page .product-detail-layout > .product-info-panel,
  .pro-de-page .product-detail-layout > .product-media-panel { width:35%; }
  .pro-de-page .product-media-panel .gallery img { height:230px; }
}
@media screen and (max-width:767px) {
  .pro-de-page .product-detail-layout { display:flex; flex-wrap:wrap; gap:14px; padding-top:18px; }
  .pro-de-page .product-detail-layout > .product-category-panel,
  .pro-de-page .product-detail-layout > .product-info-panel,
  .pro-de-page .product-detail-layout > .product-media-panel { width:100%; margin:0; }
  .pro-de-page .product-category-panel { padding:14px; }
  .pro-de-page .product-info-panel, .pro-de-page .product-media-panel { padding:16px; }
  .pro-de-page .product-info-panel .maintitle { font-size:20px; }
  .pro-de-page .product-media-panel .gallery img { height:230px; }
  .pro-de-page .related-products-section { padding:18px 0 22px; }
  .pro-de-page .related-products-section .featured-projects-image { height:145px; }
  .pro-de-page .related-products-section .carousel_nav { top:-46px; }
}
@media screen and (max-width:420px) {
  .pro-de-page .related-products-section .featured-projects-image { height:125px; padding:8px; }
  .pro-de-page .related-products-section .featured-projects-content h1 { font-size:12px; }
}

/* FINAL OVERRIDES: equal-height cards, with a wider product-details panel */
@media screen and (min-width:768px) {
  .pro-de-page .product-detail-layout {
    display:flex;
    flex-wrap:nowrap;
    align-items:stretch;
    justify-content:center;
    gap:16px;
  }
  .pro-de-page .product-detail-layout > .product-category-panel,
  .pro-de-page .product-detail-layout > .product-info-panel,
  .pro-de-page .product-detail-layout > .product-media-panel {
    float:none;
    height:630px;
    min-height:630px;
    margin:0;
    box-sizing:border-box;
  }
  .pro-de-page .product-detail-layout > .product-category-panel {
    flex:0 1 22%;
  }
  .pro-de-page .product-detail-layout > .product-info-panel {
    flex:0 1 40%;
  }
  .pro-de-page .product-detail-layout > .product-media-panel {
    flex:0 1 32%;
  }
}

@media screen and (max-width:767px) {
  .pro-de-page .product-detail-layout > .product-category-panel,
  .pro-de-page .product-detail-layout > .product-info-panel,
  .pro-de-page .product-detail-layout > .product-media-panel {
    height:auto;
    min-height:0;
  }
}


/* MODERN RELATED-PRODUCTS CAROUSEL */
.pro-de-page .related-products-section {
    clear: both;
    padding: 26px 12px 30px;
    margin-top: 24px;
    background: #f4f7fb;
    border-top: 1px solid #e4edf5;
    box-sizing: border-box;
}
.pro-de-page .related-products-section > .c12:first-child .maintitle {
    position: relative;
    margin: 0 0 24px;
    padding: 0 0 13px;
    color: #123d68;
    font-size: 22px;
    line-height: 1.4;
}
.pro-de-page .related-products-section > .c12:first-child .maintitle:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 54px;
    height: 3px;
    border-radius: 3px;
    background: #1686c7;
}
.pro-de-page .related-products-section .list_carousel {
    position: relative;
    padding: 4px 0 8px;
}
.pro-de-page .related-products-section .carousel_nav {
    top: -59px;
    right: 0;
}
.pro-de-page .related-products-section .carousel_nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 8px;
    border: 1px solid #d6e5f1;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(23, 62, 94, .10);
    transition: all .2s ease;
}
.pro-de-page .related-products-section .carousel_nav a:hover {
    border-color: #087cc1;
    background: #087cc1;
}
.pro-de-page .related-products-section #recent-projects {
    margin: 0;
    padding: 0;
    list-style: none;
}
.pro-de-page .related-products-section #recent-projects > li {
    padding: 8px;
    box-sizing: border-box;
}
.pro-de-page .related-products-section .featured-projects {
    display: flex;
    flex-direction: column;
    height: 300px;
    overflow: hidden;
    border: 1px solid #e2eaf2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(26, 61, 91, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.pro-de-page .related-products-section .featured-projects:hover {
    transform: translateY(-4px);
    border-color: #c5deef;
    box-shadow: 0 10px 24px rgba(26, 61, 91, .13);
}
.pro-de-page .related-products-section .featured-projects-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 190px;
    height: 190px;
    padding: 14px;
    background: #fff;
    box-sizing: border-box;
}
.pro-de-page .related-products-section .featured-projects-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
}
.pro-de-page .related-products-section .featured-projects-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 13px 12px 16px;
    border-top: 1px solid #edf2f6;
    background: #fbfdff;
    text-align: center;
    box-sizing: border-box;
}
.pro-de-page .related-products-section .featured-projects-content h1 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}
.pro-de-page .related-products-section .featured-projects-content h1 a {
    color: #24445f;
    text-decoration: none;
}
.pro-de-page .related-products-section .featured-projects-content h1 a:hover {
    color: #087cc1;
}
.pro-de-page .related-products-section .featured-projects-content p {
    margin: 7px 0 0;
    color: #1686c7;
    font-size: 12px;
    line-height: 1.5;
}
@media screen and (max-width: 767px) {
    .pro-de-page .related-products-section {
        padding: 20px 0 24px;
    }
    .pro-de-page .related-products-section .featured-projects {
        height: 265px;
    }
    .pro-de-page .related-products-section .featured-projects-image {
        flex-basis: 160px;
        height: 160px;
    }
    .pro-de-page .related-products-section .carousel_nav {
        top: -53px;
    }
}
@media screen and (max-width: 420px) {
    .pro-de-page .related-products-section .featured-projects {
        height: 235px;
    }
    .pro-de-page .related-products-section .featured-projects-image {
        flex-basis: 135px;
        height: 135px;
        padding: 9px;
    }
}

/* แก้ปุ่มลูกศรสไลด์สินค้า */
.pro-de-page .related-products-section .carousel_nav a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 8px;
    border: none !important;
    border-radius: 50%;
    background: #087cc1 !important;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 80, 140, .20);
}

/* ซ่อนคำว่า prev / next เดิม */
.pro-de-page .related-products-section .carousel_nav a span {
    display: none !important;
}

/* สร้างลูกศรใหม่ */
.pro-de-page .related-products-section #car_prev::before {
    content: "\2039";
    font-size: 30px;
    line-height: 1;
    color: #ffffff;
    margin-top: -3px;
}

.pro-de-page .related-products-section #car_next::before {
    content: "\203A";
    font-size: 30px;
    line-height: 1;
    color: #ffffff;
    margin-top: -3px;
}

/* สีเมื่อเอาเมาส์ชี้ */
.pro-de-page .related-products-section .carousel_nav a:hover {
    background: #075b91 !important;
    transform: translateY(-2px);
}
/* ชื่อรุ่นและรายละเอียดสินค้าในการ์ดสไลด์ */
.pro-de-page .featured-projects-content {
    text-align: center;
}

.pro-de-page .featured-projects-content h1 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.pro-de-page .featured-projects-content h1 a {
    color: #17466f;
    text-decoration: none;
}

.pro-de-page .featured-projects-content p {
    margin: 7px 0 0;
    font-size: 12px;
    color: #087cc1;
}

/* Modern Typography - Product Carousel */
.pro-de-page .related-products-section {
    font-family: 'Sarabun', 'Tahoma', sans-serif;
}

.pro-de-page .related-products-section > .c12:first-child .maintitle {
    font-family: 'Sarabun', 'Tahoma', sans-serif;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.pro-de-page .featured-projects-content h1 {
    font-family: 'Sarabun', 'Tahoma', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
}

.pro-de-page .featured-projects-content h1 a {
    color: #173f63;
}

.pro-de-page .featured-projects-content p {
    font-family: 'Sarabun', 'Tahoma', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #0785c9;
}

/* Modern Sarabun Typography */


/* ใช้ฟอนต์ Sarabun ทั้งหน้าสินค้า */
.pro-de-page,
.pro-de-page .product-category-panel,
.pro-de-page .product-info-panel,
.pro-de-page .product-media-panel,
.pro-de-page .related-products-section {
    font-family: 'Sarabun', sans-serif !important;
}

/* เมนูผลิตภัณฑ์ด้านซ้าย */
.pro-de-page .product-category-panel {
    font-size: 15px;
    line-height: 1.8;
}

/* ชื่อหัวข้อและชื่อรุ่นสินค้า */
.pro-de-page .maintitle {
    font-family: 'Sarabun', sans-serif !important;
    font-size: 22px;
    font-weight: 700;
}

/* รายละเอียดสินค้า */
.pro-de-page .product-info-panel h5 {
    font-size: 17px;
    font-weight: 700;
}

.pro-de-page .product-info-panel p {
    font-size: 15px;
    line-height: 1.9;
}

/* ตารางดาวน์โหลด */
.pro-de-page .product-download-table {
    font-size: 14px;
    line-height: 1.7;
}

/* สไลด์สินค้า */
.pro-de-page .featured-projects-content h1 {
    font-size: 16px;
    font-weight: 700;
}

.pro-de-page .featured-projects-content p {
    font-size: 13px;
}

/* ปรับตัวอักษรรายละเอียดสินค้าให้อ่านง่าย */
.pro-de-page .product-info-panel {
    font-family: 'Sarabun', sans-serif !important;
}

/* หัวข้อรายละเอียดสินค้า */
.pro-de-page .product-info-panel h5 {
    font-family: 'Sarabun', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #087cc1;
    margin-bottom: 14px;
}

/* ข้อความรายละเอียดแต่ละข้อ */
.pro-de-page .product-info-panel p {
    font-family: 'Sarabun', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.9 !important;
    color: #34495e !important;
    margin-bottom: 10px !important;
}

/* ข้อความในรายการรายละเอียด */
.pro-de-page .product-info-panel li {
    font-family: 'Sarabun', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
    color: #34495e !important;
}


/* FIX FOR DREAMWEAVER EDITABLE REGION:
   Existing child columns have no custom classes. Target their c3 + c4 + c4 order. */
.pro-de-page .product-detail-layout {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    box-sizing: border-box;
}
.pro-de-page .product-detail-layout > .c3 {
    flex: 0 1 22%;
    width: auto;
    float: none;
    height: 630px;
    min-height: 630px;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.pro-de-page .product-detail-layout > .c3 + .c4 {
    flex: 0 1 40%;
    width: auto;
    float: none;
    height: 630px;
    min-height: 630px;
    margin: 0;
    padding: 22px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    background: #fff;
    border: 1px solid #e6edf4;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(28,55,85,.06);
}
.pro-de-page .product-detail-layout > .c3 + .c4 + .c4 {
    flex: 0 1 32%;
    width: auto;
    float: none;
    height: 630px;
    min-height: 630px;
    margin: 0;
    padding: 22px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    background: #fff;
    border: 1px solid #e6edf4;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(28,55,85,.06);
}
.pro-de-page .product-detail-layout > .c3 + .c4,
.pro-de-page .product-detail-layout > .c3 + .c4 + .c4 {
    font-family: 'Sarabun', Tahoma, sans-serif !important;
}
.pro-de-page .product-detail-layout > .c3 + .c4 h5 {
    margin: 0 0 14px;
    color: #087cc1;
    font-family: 'Sarabun', Tahoma, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}
.pro-de-page .product-detail-layout > .c3 + .c4 p,
.pro-de-page .product-detail-layout > .c3 + .c4 p font {
    font-family: 'Sarabun', Tahoma, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.9 !important;
    color: #34495e !important;
}
.pro-de-page .product-detail-layout > .c3 + .c4 + .c4 .boxcontainer {
    width: 100%;
    min-height: 0;
    margin: 0 0 15px;
    padding: 14px;
    background: #fff;
    border: 1px solid #edf1f5;
    border-radius: 12px;
    box-sizing: border-box;
}
.pro-de-page .product-detail-layout > .c3 + .c4 + .c4 .gallery,
.pro-de-page .product-detail-layout > .c3 + .c4 + .c4 .gallery a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.pro-de-page .product-detail-layout > .c3 + .c4 + .c4 .gallery img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 270px;
    object-fit: contain;
}
.pro-de-page .product-detail-layout > .c3 + .c4 + .c4 table {
    width: 100%;
    font-family: 'Sarabun', Tahoma, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.7;
    border-collapse: separate;
}
@media screen and (max-width: 960px) and (min-width: 768px) {
    .pro-de-page .product-detail-layout > .c3 { flex-basis: 25%; }
    .pro-de-page .product-detail-layout > .c3 + .c4 { flex-basis: 38%; }
    .pro-de-page .product-detail-layout > .c3 + .c4 + .c4 { flex-basis: 33%; }
}
@media screen and (max-width: 767px) {
    .pro-de-page .product-detail-layout {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }
    .pro-de-page .product-detail-layout > .c3,
    .pro-de-page .product-detail-layout > .c3 + .c4,
    .pro-de-page .product-detail-layout > .c3 + .c4 + .c4 {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 0;
    }
    .pro-de-page .product-detail-layout > .c3 + .c4 + .c4 .gallery img {
        height: 230px;
    }
}

/* FINAL OVERRIDES: apply download-table styling even when the HTML table has no custom class */
.pro-de-page .product-detail-layout > .c3 + .c4 + .c4 table {
  width:100% !important;
  border:0 !important;
  border-collapse:separate !important;
  border-spacing:0 7px !important;
  background:transparent !important;
  font-family:'Sarabun', Tahoma, sans-serif !important;
  font-size:13px !important;
  color:#40566b !important;
}
.pro-de-page .product-detail-layout > .c3 + .c4 + .c4 table td {
  padding:10px 12px !important;
  border:1px solid #e3edf5 !important;
  background:#f7fafd !important;
  line-height:1.55 !important;
  vertical-align:middle !important;
}
.pro-de-page .product-detail-layout > .c3 + .c4 + .c4 table td:first-child {
  width:58% !important;
  border-right:0 !important;
  border-radius:8px 0 0 8px !important;
}
.pro-de-page .product-detail-layout > .c3 + .c4 + .c4 table td:last-child {
  border-radius:0 8px 8px 0 !important;
  color:#087cc1 !important;
  font-weight:600 !important;
}
.pro-de-page .product-detail-layout > .c3 + .c4 + .c4 table a {
  color:#087cc1 !important;
  font-weight:600 !important;
  text-decoration:none !important;
}
.pro-de-page .product-detail-layout > .c3 + .c4 + .c4 table a:hover {
  color:#075b91 !important;
  text-decoration:underline !important;
}
.pro-de-page .product-detail-layout > .c3 + .c4 + .c4 table tr:hover td {
  background:#edf6fc !important;
}

/* Keep the related-product carousel cards consistent across Pro-De pages */
.pro-de-page .related-products-section #recent-projects > li {
  padding:7px !important;
}
.pro-de-page .related-products-section .featured-projects {
  min-height:250px !important;
  border:1px solid #e3edf5 !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:0 4px 14px rgba(28,55,85,.07) !important;
  overflow:hidden !important;
}
.pro-de-page .related-products-section .featured-projects-image {
  height:165px !important;
  padding:10px !important;
  background:#fff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.pro-de-page .related-products-section .featured-projects-image img {
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}
.pro-de-page .related-products-section .featured-projects-content {
  min-height:82px !important;
  padding:12px 10px 14px !important;
  background:#fbfdff !important;
  border-top:1px solid #edf2f7 !important;
  text-align:center !important;
}
.pro-de-page .related-products-section .featured-projects-content h1 {
  margin:0 0 8px !important;
  font-family:'Sarabun', Tahoma, sans-serif !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1.5 !important;
}
.pro-de-page .related-products-section .featured-projects-content h1 a {
  color:#17466f !important;
  text-decoration:none !important;
}
.pro-de-page .related-products-section .featured-projects-content p {
  margin:0 !important;
  font-family:'Sarabun', Tahoma, sans-serif !important;
  font-size:12px !important;
  color:#087cc1 !important;
}



/* CAROUSEL FIX V3: target the actual carousel ID directly.
   This avoids depending on the related-products-section wrapper class. */
.pro-de-page #recent-projects {
  margin: 0 -7px !important;
  padding: 8px 0 18px !important;
}
.pro-de-page #recent-projects > li {
  box-sizing: border-box !important;
  padding: 7px !important;
}
.pro-de-page #recent-projects .featured-projects {
  box-sizing: border-box !important;
  min-height: 255px !important;
  height: 255px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid #e3edf5 !important;
  border-radius: 14px !important;
  box-shadow: 0 5px 18px rgba(28,55,85,.08) !important;
}
.pro-de-page #recent-projects .featured-projects-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  height: 165px !important;
  margin: 0 !important;
  padding: 12px !important;
  background: #fff !important;
  border: 0 !important;
}
.pro-de-page #recent-projects .featured-projects-image a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}
.pro-de-page #recent-projects .featured-projects-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
}
.pro-de-page #recent-projects .featured-projects-content {
  box-sizing: border-box !important;
  min-height: 88px !important;
  height: 88px !important;
  margin: 0 !important;
  padding: 12px 10px !important;
  background: #fbfdff !important;
  border-top: 1px solid #edf2f7 !important;
  text-align: center !important;
}
.pro-de-page #recent-projects .featured-projects-content h1 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-family: 'Sarabun', Tahoma, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
}
.pro-de-page #recent-projects .featured-projects-content h1 a {
  color: #17466f !important;
  text-decoration: none !important;
}
.pro-de-page #recent-projects .featured-projects-content p {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Sarabun', Tahoma, sans-serif !important;
  font-size: 12px !important;
  color: #087cc1 !important;
}
.pro-de-page .list_carousel .carousel_nav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  margin-left: 7px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #087fc1 !important;
  color: #fff !important;
  box-shadow: 0 3px 9px rgba(8,127,193,.22) !important;
  text-decoration: none !important;
}
.pro-de-page .list_carousel .carousel_nav a:hover {
  background: #075f94 !important;
}
.pro-de-page .list_carousel .carousel_nav a span {
  color: #fff !important;
}
@media screen and (max-width: 767px) {
  .pro-de-page #recent-projects .featured-projects {
    height: 235px !important;
    min-height: 235px !important;
  }
  .pro-de-page #recent-projects .featured-projects-image {
    height: 145px !important;
  }
  .pro-de-page #recent-projects .featured-projects-content {
    height: 90px !important;
  }
}
/* เพิ่มความสูงพื้นที่สไลด์สินค้า */
.pro-de-page .related-products-section .list_carousel {
    height: auto !important;
    overflow: visible !important;
}

.pro-de-page .related-products-section .caroufredsel_wrapper {
    height: 310px !important;
    overflow: visible !important;
}

/* เพิ่มความสูงการ์ด */
.pro-de-page #recent-projects .featured-projects {
    height: 285px !important;
    min-height: 285px !important;
}

/* เพิ่มพื้นที่ชื่อสินค้าและรายละเอียด */
.pro-de-page #recent-projects .featured-projects-content {
    height: 105px !important;
    min-height: 105px !important;
}
/* แก้สไลด์สินค้าไม่ให้ล้นออกนอกกรอบ */
.pro-de-page .related-products-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.pro-de-page .related-products-section .list_carousel {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.pro-de-page .related-products-section .caroufredsel_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* FIX: SHOW CAROUSEL ARROWS */
.pro-de-page .related-products-section .list_carousel {
    position: relative !important;
    overflow: visible !important;
}

.pro-de-page .related-products-section .carousel_nav {
    position: absolute !important;
    top: -59px !important;
    right: 0 !important;
    z-index: 50 !important;
    display: flex !important;
    gap: 8px !important;
}

.pro-de-page .related-products-section .carousel_nav a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #087fc1 !important;
    color: #fff !important;
}

.pro-de-page .related-products-section .caroufredsel_wrapper {
    overflow: hidden !important;
}
