.product {}

.product .title {
  text-align: center;
  margin-bottom: 25px;
  font-size: 19pt;
  font-weight: 600;
}

.product .tab {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 0.5rem;
}

.product .tab li {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  font-size: 10pt;
  cursor: pointer;
  font-weight: 400;
  margin: 0 18px;
  border-bottom: 3px solid #FFF;
}

.product .tab li::after {
  content: '';
  position: absolute;
  background-color: #c9c9c9;
  width: 1px;
  height: 12px;
  top: 7px;
  right: -16px;
}

.product .tab li:last-child::after {
  display: none;
}

.product .tab li.active {
  border-bottom: 3px solid;
}

.list-product {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  margin: 60px 0;
  grid-gap: 25px 15px;
}

@media screen and (max-width: 1000px) {
  .list-product {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .list-product {
    grid-template-columns: repeat(2, 1fr);
  }
}

.list-items {
  position: relative;
  box-shadow: 0px 0px 5px 0px #dfdfdf;
  border-radius: 4px;
}

.list-items .items-image {
  border: .2px solid #f9f9f9;
  cursor: pointer;
}

.list-items .items-image .sold-out {
  margin: 0;
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  color: #ff0000;
  font-weight: 800;
  font-size: 10pt;
  background-color: #ff00004f;
  padding: 7px;
}

.items-image .tag {
  position: absolute;
  font-size: 10pt;
  left: 10px;
  top: 10px;
  font-weight: 700;
}

.items-image img {
  width: 100%;
  display: block;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.list-items .detail {
  padding: 15px 10px;
  text-align: center;
}

.list-items .detail h3 {
  font-size: 10pt;
  margin-bottom: 25px;
  font-weight: 300;
  text-align: left;
  height: 40px;
  overflow: hidden;
  line-height: 20px;
}

.list-items .detail .rate {
  margin: 10px 0;
}

.list-items .detail .rate .icons {
  font-size: 18px;
}

.list-items .detail .price {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10pt;
  column-gap: .8rem;
}

.list-items .detail .price span {
    background-color: var(--color-base);
    color: #FFF;
    display: flex;
    width: 80px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 4rem;
}

.list-items .detail .price span.discount {
  text-decoration: line-through;
  color: #d2d2d2;
}

.items-image .tag.discounts {
  left: inherit;
  right: 0;
  top: 5px;
  font-size: 7pt;
  background-color: #ff0000;
  color: #FFFFFF;
  width: 32px;
  text-align: center;
  padding: 2px 0;
  font-weight: 200;
}

.add-to-card {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  align-items: center;
  column-gap: 10px;
  font-weight: 100;
  cursor: pointer;
}

.add-to-card span {
  font-size: 9pt;
}

.add-to-card span.icons {
  margin-top: 3px;
}

.category {
  margin-bottom: 80px;
}

.category .title {
  text-align: center;
  margin-bottom: 25px;
  font-size: 19pt;
  font-weight: 600;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}

@media screen and (max-width: 690px) {
  .category-list{
    grid-template-columns: repeat(5, 1fr);
  }
}

@media screen and (max-width: 490px) {
  .category-list{
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-list .card {}

.category-list .card img {
  width: 100%;
}

.category-list .card h3 {
  font-size: 8pt;
  font-weight: 200;
  text-align: center;
}


.group-search {
  margin: 40px 0;
  display: flex;
  position: relative;
  justify-content: flex-end;
}

.group-search .search,
.group-search input.search:focus
.group-search input:focus-visible {
  width: 200px;
  border: .1px solid;
  height: 30px;
  font-weight: 100;
  padding: 5px 10px 5px 15px;
  font-size: 10pt;
  border-top-left-radius: 4rem;
  border-bottom-left-radius: 4rem;
  outline: unset;
}

.group-search button {
  height: 30px;
  border: none;
  margin-left: -1px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9pt;
  background-color: #3d3d3d;
  color: #FFF;
  border-top-right-radius: 4rem;
  border-bottom-right-radius: 4rem;
  cursor: pointer;
}

.result{font-size: 10pt;font-weight: 200;}

.result span{display: inline-block;text-align: center;padding: 0 6px;font-size: 12pt;font-weight: 600;}


.pagination {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 1rem;
}

.pagination li {
  width: 30px;
  height: 30px;
  text-align: center;
  display: flex;
  cursor: pointer;
  color: #adadad;
  align-items: center;
  justify-content: center;
  margin: 0 1px;
}

.pagination li:hover,
.pagination li.active {
  color: #3d3d3d;
  background-color: #f5f5f5;
}


/* Grid layout */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; /* ระยะห่างระหว่างไอเท็ม */
}

/* Video card styling */
.video-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.video-item .video-js {
  width: 100%;
  height: 200px; /* ความสูงของวิดีโอ */
}

.video-item .video-title {
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  background-color: #007BFF;
  color: #fff;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 คอลัมน์ในหน้าจอเล็ก */
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr; /* 1 คอลัมน์ในหน้าจอมือถือ */
  }
}
