@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&family=Noto+Serif+Thai:wght@100..900&display=swap');

* {
   font-family: "Noto Serif Thai", serif;
   padding: 0;
   margin: 0;
   box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Thai:wdth,wght@62.5..100,100..900&display=swap');

/* --------------------------------------------- */

@media only screen and (min-width: 1200px) {
   .card-detail {
   max-width: 950px;
}

}

/* ส่วนข้อมูลการสั่งซื้อสินค้า */
.con-order {
   display: flex;
   padding: 20px 50px;
   justify-content: center;
   width: 100%;
}

.img-product {
   margin-right: 30px;

   img {
      width: 100%;
      max-height: 450px;
      object-fit: cover;
      object-position: center;
      border: 1px solid rgb(151, 151, 151);
      border-radius: 15px;
   }
}

.card-detail {
   padding: 20px 30px;
   width: 100%;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.name-product {
   h2 {
      font-size: 25px;
   }
}

.info-product {
   padding-top: 20px;
   padding-left: 15px;

   h2 {
      font-size: 25px;
      color: red;
   }
}

.select-quatity {
   margin-top: 35px;
   display: flex;
   align-items: center;
}

.select-quatity p {
   margin: 0;
   line-height: 1;
}

.select-quatity button {
   border: 1px solid rgb(255, 0, 0);
   width: 30px;
   color: red;
   border-radius: 3px;
   background-color: #ffffff;
   padding-top: 2px;
}

.select-quatity button:hover {
   background-color: red;
   color: #ffffff;
   transition: 0.2s;
}

.detail-product {
   margin-top: 35px;
   padding-left: 5px;
   margin-bottom: 55px;
}

.button-card-sale {
   display: flex;
   justify-content: center;

   button {
      border: 1px solid red;
      width: 180px;
      margin: 0 25px;
      height: 37px;
      border-radius: 5px;
      color: red;
      background-color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      padding-top: 2px;
   }
}

.button-card-sale button:hover {
   background-color: red;
   transition: 0.2s;
   color: #ffffff;
}

@media only screen and (max-width: 1200px) {

   .con-order {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
   }

   .img-product {
      margin: 0;
      text-align: center;

      img {
         max-height: 250px;
         width: 100%;
         object-fit: cover;
         object-position: center;
         border: 1px solid rgb(151, 151, 151);
         border-radius: 15px;
      }
   }

   .card-detail {
      margin-top: 20px;
   }

   .name-product {
      text-align: center;

      h2 {
         font-size: 20px;
         height: auto;
      }
   }

   .info-product {
      margin-top: 20px;

      h2 {
         font-size: 20px;
      }
   }
}