@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Kanit", sans-serif;
  text-decoration: none;
}
nav {
  width: 100%;
  height: 7vw;
  background: linear-gradient(125deg, #2e3192);
}
.nav-container {
  max-width: 90vw;
  height: 100%;
  /*background: #323486;*/
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-nav {
  width: 20vw;
  object-fit: contain;
}
.nav-profile {
  /* background: rgb(206, 26, 26);*/
  display: flex;
  align-items: center;
}
.nav-profile-name {
  color: white;
  font-size: 1.2vw;
  margin-right: 10px;
}
.fa-solid {
  font-size: 2vw;
  color: white;
}
.nav-profile-cart {
  position: relative;
}
.cartcount {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 25px;
  height: 25px;
  background: black;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: azure;
}
.container {
  width: 90vw;
  /*background: #f1f1f1;*/
  margin: auto;
  display: flex;
}
.sidebar {
  width: 20%;
  padding: 10px;
  /*background: #f1f1f1;*/
  display: flex;
  flex-direction: column;
}
.product {
  width: 80%;
  padding: 10px;
  /*background: #f1f1f1;*/
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
}
.sidebar-items {
  background: #2e3192;
  margin: 10px;
  padding: 10px;
  border-radius: 5px;
  /*border : 1px solid black;*/
  color: white;
  transition: 300ms;
}
.sidebar-items:hover {
  background: #f1f1f1;
  color: black;
}
.product-items {
  /*background: gold;*/
  cursor: pointer;
  transition: 0.3s;
}
.product-items:hover {
  transform: scale(1.03);
}
.product-img {
  width: 100%;
  height: 17vw;
  object-fit: cover;
  border-radius: 10px;
}
.modal,
.modal-bg {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 98;
}

.modal-page {
  z-index: 99;
  min-width: 30vw;
  max-width: 60vw;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.modal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.modal-topbar button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.modal-content-img {
  width: 20vw;
  height: 20vw;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.modal-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mdd-name {
  font-size: 1.5vw;
  font-weight: bold;
  margin: 0;
  color: #fff;
}

.mdd-price {
  font-size: 1.2vw;
  margin: 0;
  color: #ffd700;
}

.mdd-desc {
  color: #f5f5f5;
  font-size: 0.9vw;
  line-height: 1.4em;
  margin: 0;
}

.modal-body {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.section {
  margin-bottom: 20px;
}

.section h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #c61b36;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.options button {
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid #aaa;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.options button:hover {
  background: #eee;
}

.options button.active {
  background: #c61b36;
  color: #fff;
  border: none;
}

.section label {
  display: block;
  margin: 5px 0;
}

.btn-control {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

.btn {
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  font-size: 1.2vw;
  transition: 0.3s;
}

.btn-buy {
  background: linear-gradient(125deg, #c61b36, #9c1032);
  color: #fff;
  margin-left: 10px;
}

.cartlist {
  /*background: hotpink ;*/
}
.cartlist-items {
  /*background: yellow;*/
  width: 50vw;
  display: flex;
  margin-bottom: 20px;
  justify-content: space-between;
}
.cartlist-left {
  /*background: greenyellow;*/
  display: flex;
}
.cartlist-left img {
  width: 5vw;
  height: 5vw;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 10px;
}
.cartlist-right {
  /*background: gold;*/
  display: flex;
  align-items: center;
}
.btnc {
  width: 30px;
  height: 30px;
  /*background: hotpink;*/
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #000;
  cursor: pointer;
}
.pay-btn {
  background: #5c3a21;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}
.pay-btn:hover {
  background: #7a4c2b;
}
