.wrap{ max-width:1000px; margin:24px auto; padding:0 16px; margin-top: -15px;}
.product-box {
  flex-direction: column;
  background: #fff;
  border: 1.5px solid #ddd;      /* เส้นขอบเทา */
  border-radius: 10px;           /* มุมโค้งนิดๆ */
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);  /* เงาเบาๆ */
  margin: 24px auto;
  overflow: hidden;
}
/* ส่วนหัว: รูปซ้าย ข้อความขวา */
.product-header{
  display:flex; gap:28px; align-items:flex-start; margin-bottom:20px;
}
.ph-left{width:480px; max-width:48%}
.ph-right{display:flex; flex-direction: column; align-items: flex-start; width: 466px;}

/* รูปหลัก */
.p-image{width:100%; height:360px; object-fit:cover; border-radius:12px; display:block; cursor: pointer;}

/* รูปย่อย (แกลเลอรี) */
.thumbs{display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin-top:12px}
.p-thumb{width:100%; height:80px; object-fit:cover; border-radius:8px; opacity:.9; cursor:pointer; border:1px solid #e5e7eb}
.popup {
  display: none; 
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
.popup-img {
  max-width: 90%;
  max-height: 90%;
  animation: fadeIn 0.3s ease;
}
.popup-close{
  background: white;
  font-size: 24px; line-height: 40px;
  cursor: pointer;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
/* ข้อความ */
.name{margin:0 0 8px; font-family:"Kanit", sans-serif; font-size:2rem; font-weight:800; font-size: 50px;}
.nobrand{border-bottom: 2px solid #e6e6e6;}
.brand{
margin-bottom:8px; border-bottom: 2px solid #e6e6e6;  padding-bottom: 10px;width: 100%;
font-family: "Kanit", sans-serif; font-style: normal; font-weight: 900; font-size: 25px;color:black;
}
.brand-name {
    font-family: "Kanit", sans-serif; font-style: normal; font-weight: 900; font-size: 25px;color: #ffc107;-webkit-text-stroke: 1.5px black;
}
.ctgr-tt {
    font-size: 30px; font-family: "Kanit", sans-serif; font-weight: 800;
    border-bottom: 2px solid #e6e6e6; width: 100%; padding-bottom: 20px; margin-top: 10px;
}
.ctgr-name {
    padding: 0 10px;
    color: #ffc107;
    -webkit-text-stroke: 1.5px black; 
}
.details {
    font-family: "Kanit", sans-serif;font-weight: 900;font-style: italic; font-size: 40px;
    margin: -15px 0; padding-bottom: 8px;
    border-bottom: 2px solid #e6e6e6; width: 100%;
}
.desc {
    white-space:pre-line; line-height:1.7; color:black;
    font-family: "Kanit", sans-serif;font-weight: 600;font-style: italic; font-size: 20px;
    margin-bottom: -10px; padding: 10px 0; border-bottom: 2px solid #e6e6e6; width: 100%;
}
.price {  
  font-family: "Kanit", sans-serif;font-weight: 900;font-style: italic; font-size: 40px; -webkit-text-stroke: 1.5px black;
  color: rgb(2, 192, 2);
  margin: 20px 0; padding-bottom: 20px;
}
.contact {
  background: #fff;
  border: 1.5px solid #ddd;      /* เส้นขอบเทา */
  border-radius: 10px;             /* มุมโค้งนิดๆ */
  padding: 1px 20px; 
  margin-bottom: -10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.contact > h3 {
  font-size: 40px; font-family: "Kanit", sans-serif; font-weight: 800; color: black;
  margin-top: 1px;
}
.contact-tt{
 margin-bottom: -15px;
  font-size:1.1rem;
  font-weight:800;
  color:#333;
}
.contact-list{
  font-size: 20px; font-family: "Kanit", sans-serif; font-weight: 800; font-style: italic;
  list-style:none;
  margin:0;
  padding:0;
}
.contact-list > li {margin-top: -25px; margin-left: -20px; padding: 20px;} 
.contact-list a {text-decoration: none;}
.fb {display: inline-flex; align-items: center; gap: 5px; margin-bottom: 0; }
.relhead {
  margin: 0 0 12px; text-align: center;
  font-family: "Kanit", sans-serif;font-weight: 900;font-style: italic; font-size: 40px;
}
/* สินค้าที่เกี่ยวข้อง */
.relgrid { display:flex; flex-wrap: nowrap; justify-content: flex-start; gap:20px; margin-left: 30px;
 margin-right: 30px; margin-top: 0; padding-bottom: 40px; overflow-x: auto; }

.product-card {
  background: #fff; height: 500 ; width: 325px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #000;
  flex: 0 0 325px;
}
.product-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.product-card{text-decoration: none;}
/* ---- รูปสินค้า ---- */
.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
/* ---- เนื้อหาภายในการ์ด ---- */
.r-name {
 font-family:"Kanit", sans-serif;  font-style: normal; font-size: 30px; font-weight: 800;
  text-align: center;
  margin-top: 15px;
}
.r-brand {
   text-align: center;
  -webkit-text-stroke: 1px black;
  font-family: "Kanit", sans-serif; font-style: normal; font-weight: 900; font-size: 20px;color: #ffc107;
  margin-top: -25px;
}
.r-desc {
  text-align: center;
  font-family: "Kanit", sans-serif; font-style: normal; font-weight: 500; font-size: 20px;color: #000;
  margin-top: 60px;
  max-height: 3.2em;          /* ประมาณ 2 บรรทัด (ขึ้นกับ line-height) */
  overflow: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, rgba(0,0,0,0));/* ทำไล่เฟดท้ายบรรทัด */
   mask-image: linear-gradient(180deg, #000 70%, rgba(0,0,0,0));
}
.r-price {
  font-family: "Kanit", sans-serif;font-weight: 900;font-style: italic; font-size: 20px;
  text-align: center;  -webkit-text-stroke: 1.5px black;
  color: rgb(2, 192, 2);
  margin-bottom: 20px;
  margin-top: 10px;
}
.more {
  font-family: "Kanit", sans-serif;font-style: italic; font-size: 20px; color: black; font-weight: 500;
  display: block; background: #ffcc00; width: 50%; border-radius: 20px ; padding: 5px; 
  margin-bottom: 20px; margin-top: 5px; margin-left: 70px;
  text-align: center;
  cursor: pointer;
}
.more:hover {
  border: 3px solid #ffd200; 
  background-color: white;
}
.relgrid a:active,
.relgrid .product-card:active {
  transform: translateY(-2px) scale(.98);
}
.empty { 
    font-family: "Kanit", sans-serif; font-style: italic; font-weight: 700; font-size: 35px;
  color: #999;
  margin: 100px; margin-left: auto; margin-right: auto;
}
.endweb {text-align: center;}
.logocrane2-img { height: 120px; margin-top: 20px;}
.contact-ttend { 
  font-family: "Kanit", sans-serif;font-style: normal; font-size: 28px; color:#ffc107 ; font-weight: 500;
  margin-top:-3px ; 
  margin-bottom: 5px; 
}
.contact-listend { margin-top: 5px;}
.contactend a {
  font-family: "Kanit", sans-serif;font-style: normal; font-size: 25px; color: white ; font-weight: 500;
  text-decoration: none;
  margin-left: -20px;
}
.contactend span{
  font-family: "Kanit", sans-serif;font-style: normal; font-size: 25px; color: white ; font-weight: 500;
  text-decoration: none;
  margin-right: 20px;
}
.contactend li { list-style: none;}
.contactend a:hover {text-decoration: underline;}
.logofb {
  display: inline-flex;
  margin-left: -10px;
  margin-bottom: -3px;
  border-radius: 50%;
  background-color: #1877F2;
  color: white;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.gt {margin-right: 20px;}
.oe {
    font-family: "Kanit", sans-serif;font-style: normal; font-size: 25px; color: white ; font-weight: 500;
  text-decoration: none;
  margin-right: 20px;
}
@media (max-width:960px){
  .product-header{flex-direction:column}
  .product-box { overflow: hidden;}
  .ph-left{width:100%; max-width:100%}
  .ph-right{width:100%; max-width:100%}
  .p-image{height:300px}
  .thumbs{grid-template-columns:repeat(4,1fr)}
  .details {  border-bottom: 2px solid #e6e6e6; width: 100%;}
  .relgrid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto ;
  justify-content: flex-start;
  }
  .product-card { flex: 0 0 80%; gap: 0; }

  .contact-ttend { font-size: 25px; }
  .contactend a {font-size: 18px; margin-right: 8px;}
  .contactend span {font-size: 18px; margin-right: 20px;}
  .oe {margin-left: -5px;}
}



