html, body, button, input, textarea, select {
  font-family:
    system-ui,
    -apple-system,           /* macOS / iOS */
    "Segoe UI",              /* Windows */
    Roboto,                  /* Android / ChromeOS */
    "Noto Sans Thai",        /* ฟอนต์ไทย (ถ้ามี) */
    Tahoma, Arial,
    "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
 body { top: 100%; margin: 0; padding: 0;  background-color:#c2bdbd; }

 .product-h {
    width: auto;
    background-color: black;
    text-align: center;
    padding: 25px;
 }
 .product-h > .h-tt {
    color: white;
    font-family: "BBH Sans Bogle", sans-serif;
    font-weight: 1000;
    font-size: 100px;
    font-style: normal;
 }
 .category-section {margin: 40px auto; }
.ctgr-tt {
    display: block;
    width: 18%;
    margin-left: 0;
    padding: 10px 20px;
    font-size: 40px; font-family: "Kanit", sans-serif; font-weight: 700; font-style: italic;
    border-top-right-radius:20px ; 
    border-bottom-right-radius:20px ; 
    background-color: #ffd200;
}
.subctgr-tt {
  font-family: "BBH Sans Bogle", sans-serif; font-style: normal; font-weight: 400;
  font-size: 30px;
  margin-top: 30px;
  margin-bottom: 20px;
  color: black;
  border-left: 5px solid #ffcc00;
  padding-left: 10px;
}
.product-grid {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-start;
  margin-left: 30px;
  margin-top: 30px;
}
/* ---- กล่องสินค้าแต่ละชิ้น ---- */
.product-card {
  background: #fff; height: 500px ; width: 325px;
  overflow: hidden; text-align: center;
  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;
}
.product-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.product-grid a:active,
.product-grid .product-card:active {
  transform: translateY(-2px) scale(.98);
}
/* ---- รูปสินค้า ---- */
.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
/* ---- เนื้อหาภายในการ์ด ---- */
.name {
 font-family:"Kanit", sans-serif;  font-style: normal; font-size: 30px; font-weight: 800;
  text-align: center; position: relative;
  margin-top: 15px;
}
.brand {
   text-align: center; -webkit-text-stroke: 1px black; margin-top: -25px;
  font-family: "Kanit", sans-serif; font-style: normal; font-weight: 900; font-size: 20px;color: #ffc107;
}
.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) */
  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));
}
.price-box { display: flex; align-items: center; justify-content: center; margin-bottom: -18px;}
.price {
  font-family: "Kanit", sans-serif;font-weight: 900;font-style: italic; font-size: 30px;
  position: absolute;
  text-align: center; 
  -webkit-text-stroke: 1.5px black;
  color: rgb(2, 192, 2);
  margin-top: 40px; margin-bottom: 20px;
}
.noprice{height: 100%; width: 100%; visibility: hidden;}
.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 ; 
  margin-bottom: 20px; margin-top: 5px; margin-left: 75px; padding: 5px; 
  text-align: center;
  cursor: pointer;
}

.more:hover {
  border: 3px solid #ffd200; 
  background-color: white;
}
/* ---- ไม่มีสินค้า ---- */
.nocategory-c > .empty {
  font-family: "Kanit", sans-serif; font-style: italic; font-weight: 700; font-size: 25px;
  margin: 30px;
  padding: 20px;
}
.empty {
  font-family: "Kanit", sans-serif; font-style: italic; font-weight: 700; font-size: 25px;
  color: #999;
  margin-top: 30px;
}

/* ---- ข้อความเตือนหลังบ้าน ---- */
.hint {
  color: #444;
  font-size: 16px;
  margin-left: 60px;
}
.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:1280px){.ctgr-tt {font-size: 2.5rem; width: 25%;}}
@media(max-width:960px) {
.product-h { width: auto;}
.product-h > .h-tt {font-size: 30px;font-weight: 700;}
.ctgr-tt {font-size: 1.8rem; width:53% ;}
.product-card { flex: 0 0 80%; height: 500px ; width: 325px }
.price-box { padding-bottom: 35px;}
.brand {margin-top: -35px;}
.desc {margin-top: 5px; margin-bottom: 10px; padding: 10px;}
.more {margin: 10px; margin-left: 81.25px; margin-right: 81.25px;}
.product-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  }
  .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;}
}