
html{ font-size: 13px;}
body{    
  max-width: 1000px;
  background-color: #111;
  color: white;
  font-weight: 300;
}

h3{ 
  font-weight: 400;
  color: lightgreen; 
  font-family:'Noto Sans Thai','Sarabun','sans-serif';
  font-size: 1.125rem;
}

main form{
  background-color: var(--main-color);
  display: grid;
  grid-template-columns: 65% 35%;
  min-height: 60vh;
}
main form .main-left{ 
  padding:7px 7px 7px 7px ;
}
main form .main-right{
  background-color: var(--main-mid);
}


/*** LEFT ***/

/*** PAGINATION ****/
.pg-ctn{
  display: flex;
  align-items: center;
  justify-content: center;  
  /* margin: 7px 0px; */
}
.pg-ctn:empty { display: none; }
.pg-ctn p{
  padding: 3px 17px;
  margin: 0px 3px;
  cursor: pointer;
  background-color: var(--main-mid);
  border: 1px solid black;
  border-radius: 3px;
  color: lightblue;
}
.pg-ctn p.active{
  background-color: cornflowerblue;
  color: white;
}

/*** CARD ****/
.card-product-ctn .rowg{
  display: grid;
  grid-template-columns: 12% 87%;
}
.card-trumb{ grid-area: 1/1/10/2; }
.card-title{ grid-area: 1/2/2/3; }
.card-excerpt{ grid-area: 2/2/3/3; }
.card-desc{ grid-area: 3/2/4/3; }
.card-trumb .card-img {
  border-radius: 5%;
  max-width: 100%;
  height: auto;  
  overflow: hidden; 
}


/*** RIGHT ***/

/*** CART ***/
.cart-ctn{ 
  margin-top: 5px; 
  justify-content: center;
}
.cart-ctn .cart-bar{
  background-color: var(--main-darker);
  border-radius: 30px;
  /* padding: 5px 6px; */
  display: flex;
  line-height: var(--lh-tb);
}
.cart-ctn #cartClear{ 
  background-color: darkorchid;
  border-radius: 20px;
  padding: 0px 6px;
  cursor: pointer;
  line-height: 2.2rem;
}
.cart-ctn #cartItemNum{ 
  background-color: OliveDrab;
  border-radius: 20px;
  text-align: center;
  margin: 0 5px;
  padding: 0 20px;
  line-height: 2.2rem;
}
.cart-ctn #cartView{ 
  background-color: RoyalBlue;
  padding: 0 6px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  line-height: 2.2rem;
}
.cart-ctn #btnSubmit{
  margin-left: 7px;
  padding: 5px 10px;
  border-radius: 20px;
  background-color: forestgreen;
}



@media screen and (max-width: 768px) {
  body{ 
    font-size: 13px;
  }
  main #cartForm{ 
    border-radius: none;
  }
  main form{
    grid-template-columns: 100%;
  }
  main form .main-left{ padding:3px}
  main form .main-right{ padding:3px} 
}

@media screen and (max-width: 480px) {
  body{ 
    font-size: 12px;
  }  
}

