body {
  margin: 0;
  font-family: Poppins, sans-serif;
}
a {
  color: #2f2f2f;
  text-decoration: none;
}
button {
  cursor: pointer;
}
.container {
  width: 900px;
  max-width: 90vw;
  margin: auto;
  padding-top: 10px;
  text-align: center;
  transition: 0.5s;
}
.title {
  font-size: xx-large;
  padding: 20px 0;
}
.listProduct .item img {
  width: 90%;
  filter: drop-shadow(0 50px 20px #0009);
}
.listProduct {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.listProduct .item {
  background-color: #eeeee6;
  padding: 20px;
  border-radius: 20px;
}
.listProduct .item h2 {
  font-size: large;
  font-weight: 500;
}
.listProduct .item .price {
  letter-spacing: 7px;
  font-size: small;
}
.listProduct .item button {
  background-color: #353432;
  color: #eee;
  border: none;
  font-size: small;
  padding: 5px 10px;
  margin-top: 10px;
  border-radius: 20px;
}
/* detail page */
.detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  text-align: left;
}
.detail .image img {
  width: 100%;
}
.detail .image {
  position: relative;
}
.detail .image::before {
  position: absolute;
  width: 300px;
  height: 300px;
  content: "";
  background-color: #94817733;
  z-index: -1;
  border-radius: 190px 100px 170px 180px;
  left: calc(50% - 150px);
  top: 50px;
}
.detail .name {
  font-size: xxx-large;
  padding: 40px 0 0 0;
  margin: 0 0 10px 0;
}
.detail .price {
  font-weight: bold;
  font-size: x-large;
  letter-spacing: 7px;
  margin-bottom: 20px;
}
.detail .buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.detail .buttons i {
  font-size: 30px;
  margin-left: 10px;
}
/* .detail .buttons span {
  display: block;
  font-size: 30px;
  margin-left: 10px;
} */
.detail .buttons button {
  display: flex;
  background-color: #eee;
  border: none;
  padding: 15px 20px;
  border-radius: 10px;
  font-family: Poppins;
  font-size: large;
  justify-content: center;
  align-items: center;
}

.detail .buttons button:nth-child(2) {
  background-color: #2f2f2f;
  color: #eee;
}
.listProduct .item {
  border-radius: 10px;
}
.detail .description {
  font-weight: 300;
}

/* cart_template.html */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.icon-cart i {
  font-size: 40px;
}
.icon-cart {
  position: relative;
}
.icon-cart span {
  background-color: red;
  position: absolute;
  top: 50%;
  right: -20px;
  width: 30px;
  height: 30px;
  color: #ffff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
}
/* cartTab */

.cartTab {
  background-color: #353432;
  color: #eee;
  width: 400px;
  max-width: 100%;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-rows: 70px 1fr 70px;
}
.cartTab h1 {
  padding: 20px;
  margin: 0;
  font-weight: 300;
}
.cartTab .btn {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.cartTab .btn button {
  background-color: #e8bc0e;
  border: none;
  font-family: Poppins;
  font-weight: 500;
}
.cartTab .btn button.close {
  background-color: #eee;
}
.cartTab .listCart {
  overflow: auto;
}
.cartTab .listCart::-webkit-scrollbar {
  width: 0;
}
.cartTab {
  right: -400px;
  transition: 0.5s;
}
body.activeTabCart .cartTab {
  right: 0;
}
body.activeTabCart .container {
  transform: translate(-250px);
}

/* list car item */
.listCart .item img {
  width: 70px;
  /* height: auto;
  object-fit: contain; */
}
.listCart .item {
  display: grid;
  grid-template-columns: 70px 150px 50px 1fr;
  gap: 10px;
  align-items: center;
  text-align: center;
  margin-top: 10px;
  padding: 5px;
}
.listCart .item .quantity {
  display: flex;
  align-items: center;
  gap: 6px;
}
.listCart .item .quantity button {
  width: 28px;
  height: 28px;
  background-color: #eee;
  color: #000;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.listCart .item .quantity span {
  min-width: 24px;
  display: inline-block;
  text-align: center;
  color: #fff;
}
/* Highlight the quantity number specifically if needed */
.listCart .item .quantity span:nth-child(2) {
  background-color: transparent;
  color: #fff;
}
.listCart .item:nth-child(even) {
  background-color: #eee1;
}

/* ipad */
@media screen and (max-width: 992px) {
  .listProduct {
    grid-template-columns: repeat(3, 1fr);
  }
  .detail {
    grid-template-columns: 40% 1fr;
  }
}
/* mobile */
@media screen and (max-width: 768px) {
  header {
    padding: 0 25px;
  }
  .listProduct {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .detail .image img {
    width: unset;
    height: 40vh;
  }
  .detail .name {
    font-size: x-large;
    margin: 0;
  }
  .detail .buttons {
    justify-content: center;
  }
  .detail .buttons button {
    font-size: small;
  }
}
