* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* TOP BAR */
.topbar {
  background: black;
  color: white;
  text-align: center;
  padding: 20px;
  font-weight: bold;
  font-size: 40px;
}

/* NAV */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  border-bottom: 1px solid #ddd;
}

.menu {
  display: flex;
  gap: 40px;
  list-style: none;
  font-size: 15px;
}
.menu li {
  position: relative;
}
.menu li a{
  text-decoration: none;
  color: black;
  font-size: 20px;
  transition: 0.3s;
  padding: 5px 0;
}
.menu li a:hover{
  color: #0f6e38;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}


/* ICON BÊN NGOÀI */
.icon-img {
  width: 25px;
  height: 30px;
  opacity: 1;
  cursor: pointer;
  gap: 40px;
  transition: 0.2s;
  margin-left: 30px;
}
.icon-img:hover {
  transform: translateY(-5px);
}
/* SEARCH */
.search-box {
  position: right;
  margin-right: 10px;
}

.search-box input {
  padding: 10px 1px 10px 15px;
  border: 4px solid #cccccca0;
}
/* NỀN */
.buy-container{
    width: 100%;
    min-height: 100vh;

    background: black;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px;
}

/* DANH SÁCH */
.product-list{
    display: flex;
    gap: 20px;

    padding: 40px;
}

.product{
    width: 300px;
}

.product img{
    width: 100%;
    cursor: pointer;

    transition: 0.3s;
}

.product img:hover{
    transform: translateY(-10px);
}


/* BOX */
.buy-box{
    width: 100%;

    background: white;

    display: flex;

    border-radius: 30px;

    overflow: hidden;

    position: relative;
}

/* ẢNH */
.buy-image{
    width: 50%;

    background: #f2ecff;

    display: flex;
    justify-content: center;
    align-items: center;
}

.buy-image img{
    width: 90%;
}

/* INFO */
.buy-info{
    width: 50%;

    padding: 40px;

    display: flex;
    flex-direction: column;
}

/* GIÁ */
.price{
    font-size: 28px;
    font-weight: bold;

    margin: 20px 0;
}

/* INPUT */
.buy-info input{
    padding: 15px;

    margin-bottom: 20px;

    border: 1px solid #ccc;
}

/* BUTTON */
.buy-info button{
    padding: 16px;

    background: black;
    color: white;

    border: none;

    cursor: pointer;

    font-weight: bold;
}

/* CLOSE */
.close-btn{
    position: absolute;

    top: 15px;
    right: 20px;

    font-size: 24px;

    cursor: pointer;
}
.size-list button{
    width: 65px;
    height: 55px;
    border: 1px solid #ccc;
    background: black;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;
}

.size-list button:hover{
    background: #0f6e38;

}
.size-btn.active{
    background: black;
    color: #0f6e38;
    border: 2px solid #0f6e38;
}
.color-list button{
    width: 80px;
    height: 55px;
    border: 1px solid #ccc;
    background: black;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;
}
.color-list button:hover{
  background: #0f6e38;
}
.color-btn.active{
    background: black;
    color: #0f6e38;
    border: 2px solid #0f6e38;
}

/* MUA HANG */
.buy-btn{
    padding: 18px;

    background: black;
    color: white;

    border: none;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;

    margin-top: 10px;
}

.buy-btn:hover{
    background: #0f6e38;
}
/* CLOSE BTN */
.close-btn{
    position: absolute;

    top: 15px;
    right: 20px;

    font-size: 30px;

    cursor: pointer;

    font-weight: bold;

    transition: 0.3s;
}

.close-btn:hover{
    color: red;

    transform: rotate(90deg);
}
.label{
  margin-bottom: 5px;
}


/* BACK BTN */
.back-btn{
    position: absolute;

    top: 15px;
    right: 20px;

    font-size: 30px;

    cursor: pointer;

    font-weight: bold;

    transition: 0.3s;
}
.quantity-box{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.quantity-box button{
    width: 40px;
    height: 40px;
    border: none;
    background: black;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.quantity-box input{
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    border: 1px solid #ccc;
}
.back-btn:hover{
    color: red;
}
.label{
  margin-bottom: 5px;
}

/* =========================
   WISHLIST BUTTON
========================= */

.wishlist-btn{
    width: 55px;
    height: 55px;
    border: 2px solid black;
    background: white;
    color: black;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hover */
.wishlist-btn:hover{
    background: green;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Click */
.wishlist-btn:active{
    transform: scale(0.97);
}

/* Active wishlist */
.wishlist-btn.active{
    background: red;
    border-color: red;
    color: white;
}
@media screen and (max-width: 992px){

  .buy-box{
    flex-direction: column;
    border-radius: 20px;
  }

  .buy-image{
    width: 100%;
    padding: 20px;
  }

  .buy-image img{
    width: 70%;
  }

  .buy-info{
    width: 100%;
    padding: 30px;
  }

  .product-list{
    flex-wrap: wrap;
    justify-content: center;
  }

  .product{
    width: 45%;
  }

  .topbar{
    font-size: 30px;
  }
}
@media screen and (max-width: 480px){

  .topbar{
    font-size: 20px;
  }

  .buy-image img{
    width: 100%;
  }

  .buy-info{
    padding: 15px;
  }

  .price{
    font-size: 18px;
  }

  .buy-info input{
    font-size: 14px;
  }

  .buy-btn{
    font-size: 14px;
    padding: 12px;
  }

  .size-list button,
  .color-list button{
    width: 50px;
    height: 45px;
    font-size: 14px;
  }

  .quantity-box input{
    width: 50px;
  }

  .wishlist-btn{
    width: 45px;
    height: 45px;
    font-size: 14px;
  }
}