@import url('https://fonts.googleapis.com/css2?family=Fasthand&family=Hanuman:wght@100;300;400;700;900&family=Noto+Serif+Khmer:wght@800&family=Poppins:wght@400;600;700;900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
  --grey: rgba(128, 128, 128, 0.442);
  --border-color-grey: rgba(128, 128, 128, 0.442);
  --bg-card: #d4d4d440;
  --bg-sale: #3CB043;
  --bg-hover-card: #bfc1be;
  --bg-header: #F6F9F5;
  --overlay: rgba(0, 0, 0, 0.294);
  --navbar-tab: #FAFBFA;
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family:"Poppins", sans-serif  ,  "Fasthand", cursive;
}

.container {
  max-width: 1200px;
  margin: 0px auto;
}
.text-capitalize {
  text-transform: capitalize;
}
.fs-1 {
  font-size: 60px;
}
.fs-3 {
  font-size: 30px;
}
.fs-2 {
  font-size: 40px;
}
.fs-5 {
  font-size: 20px;
}
.fs-6 {
  font-size: 16px;
}
.text-muted {
  color: var(--border-color-grey);
}
.fw-bold {
  font-weight: 900;
}
.text-green {
  color: var(--bg-sale);
}
.text-grey {
  color: grey;
}
.text-white {
  color: white;
}
.pe-2 {
  padding-right: 20px;
}
.ps-4 {
  padding-left: 50px;
}

.ps-2 {
  padding-left: 20px;
}

.px-1 {
  padding: 0px 10px;
}
.pt-1 {
  padding-top: 10px;
}
.pt-3 {
  padding-top: 30px;
}
.mt-3 {
  margin-top: 30px;
}
.mt-2 {
  margin-top: 20px;
}
.mb-1 {
  margin-bottom: 10px;
}
.mb-3 {
  margin-bottom: 30px;
}
.mb-2 {
  margin-bottom: 20px;
}
.px-2 {
  padding: 0px 20px;
}
.row {
  display: flex;
  flex-wrap: wrap;
}
.col-12 {
  width: 100%;
}

.col-8 {
  width: 66.66%;
}
.col-3 {
  width: 25%;
}
.col-9 {
  width: 75%;
}
.col-4 {
  width: 33.33%;
}
.col-6 {
  width: 50%;
}

.col-2 {
  width: 20%;
}

.d-flex {
  display: flex;
}
.align-item-center {
  align-items: center;
}
.align-item-end {
  align-items: end;
}

.justify-content-end {
  justify-content: end;
}
.justify-content-center {
  justify-content: center;
}

.navbar-tabs-section {
  padding-top: 30px;
  width: 100%;
}

.navbar-tabs-section .container .row .col-12 .navbar-tabs {
  width: 100%;
  display: flex;
  justify-content: center;
  list-style-type: none;
  /* background-color: var(--navbar-tab); */
}

.navbar-tabs-section .container .row .col-12 .navbar-tabs .nav-item .nav-link {
  display: block;
  text-decoration: none;
  padding: 5px 30px;
  font-size: 20px;
  font-weight: 550;
}

.navbar-tabs-section .container .row .col-12 .navbar-tabs .nav-item .line::after {
  content: ''; 
  position: absolute; 
  top: 20px; 
  width: 20px; 
  height: 3px; 
  background-color: var(--border-color-grey); 
  margin-left: 20px;
  cursor: context-menu;
}


.navbar-tabs-section .container .row .col-12 .navbar-tabs .nav-item .nav-link:hover {
  color: var(--bg-sale);
}

.navbar-tabs-section .container .row .col-12 .navbar-tabs .nav-item .nav-link.active​​ {
  color: var(--bg-sale);
}

.navbar-tabs-section .container .row .col-12 .text-title {
  text-align: center;
  padding: 20px 0;
  font-size: 35px;
}

 .navbar-tabs .navbar-link {
  text-decoration: none;
  color: black;
  border: 2px solid var(--border-color-grey);
  color: grey;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  cursor: pointer;
  font-size: 18px;
}



.navbar-tabs:hover .navbar-link {
  /* border: 2px solid var(--bg-sale); */
  transition: all 1.2s;
}
.navbar-tabs:hover .fa-angle-down {
  transform: rotate(180deg);
  transition: all 1.2s;
}
.navbar-tabs {
  position: relative;
  width: 260px;
}


.navbar-tabs .dropdown {
  display: block;
  position: absolute;
  top: 48px;
  display: none;
  border: 2px solid var(--border-color-grey);
  list-style-type: none;
  width: 100%;
  background: white;
  z-index: 1200;
}
.navbar-tabs .dropdown .dropdown-item .dropdown-link {
  text-decoration: none;
  display: block;
  padding: 10px;
  cursor: pointer;
  color: black;
}

.navbar-tabs .dropdown .dropdown-item:hover .dropdown-link {
  /* background: var(--grey); */
  background: var(--bg-card);
}
.navbar-tabs:hover .dropdown {
  display: block;
}

.card {
  display: flex;
  flex-direction: column;
  height: 400px;
  border: 1px solid var(--border-color-grey);
  border-radius: 2px;
  overflow: hidden;
}

.card .card-img {
  width: 100%;
  height: 60%;
  background-color: var(--bg-card);
  position: relative;
  overflow: hidden;
}

.card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* .card .card-img:hover {
  background-color: var(--bg-hover-card);
} */

.card-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: var(--overlay);
  display: none;
}

.card .card-img:hover .card-overlay {
  transition: 0.3s;
  display: block;
}


.card .card-img .card-sale {
  position: absolute;
  background: var(--bg-sale);
  padding: 8px 10px;
  text-decoration: none;
  color: inherit;
  z-index: 1100;
}
.card .card-img .card-rating {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  position: absolute;
  color: inherit;
  right: 26px;
  bottom: 10px;
  font-size: 18px;
  text-decoration: none;
  /* z-index: 1100; */
  cursor: pointer;
}
.card .card-img .card-view {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  position: absolute;
  color: inherit;
  right: 75px;
  bottom: 10px;
  font-size: 18px;
  text-decoration: none;
  /* z-index: 1100; */
  cursor: pointer;
  display: none;
  border: none;
  outline: none;
}

.card .card-img:hover .card-view {
  display: flex;
}


.card .card-img .card-rating:hover {
  outline: 2px solid var(--bg-sale);
}
.card .card-img .card-view:hover {
  outline: 2px solid var(--bg-sale);
}

.card-img .fa-heart {
  color: var(--bg-sale);
}
.card-img .fa-eye {
  color: var(--bg-sale);
}

.card .card-body {
  width: 100%;
  height: 40%;
  padding: 20px 20px 10px 20px;
  display: flex;
}
.card .card-body .card-text {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card .card-body .card-text .card-title {
  font-size: 20px;
  text-decoration: none;
  color : inherit;
  font-weight: bold;
  
}
.card .card-body .card-text .card-title:hover {
  color : var(--bg-sale);
}
.card .card-body .card-text .card-price-unit {
  font-size: 18px;
}
.card .card-body .card-text .card-price {
  font-size: 14px;
}
.card .card-body .card-icon {
  text-decoration: none;
  color: inherit;
  width: 20%;
}
.card .card-body .card-icon .card-buy {
  width: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 20px;
  color: var(--bg-sale);
  border-radius: 4px;
  /* border: 2px solid var(--bg-sale); */
  border: 2px solid var(--bg-sale);
  transition: 0.5s;
  cursor: pointer;
}
.card .card-body .card-icon:hover .card-buy {
  /* background-color: var(--bg-sale); */
  background-color: var(--bg-sale);
  color: #ffffff;
  /* background: transparent; */
}

.page-number {
  width: 100%;
  display: flex;
  gap: 30px;
}
.page-number .order-page {
  text-decoration: none;
  padding: 10px 18px;
  font-size: 20px;
  color: inherit;
  border: 2px solid var(--border-color-grey);
  cursor: pointer;
}

.order-page.active {
  color: var(--grey);
  border: 2px solid var(--bg-sale);
  font-weight: bold;
}
.page-number .order-page:hover {
  border: 2px solid var(--bg-sale);
  color: var(--grey);
  font-weight: bold;
}

form .input-group {
  position: relative;
  width: 100%;
}
form .input-group .form-control::placeholder {
  font-size: 18px;
}
form .input-group .form-control {
  border: 2px solid var(--border-color-grey);
  color: grey;
  cursor: pointer;
  padding: 8px 10px;
  padding-right: 40px;
  outline: none;
  font-size: 18px;
  width: 100%;
}
form .input-group .icon-search {
  position: absolute;
  right: 10px;
  top: 15px;
  display: flex;
  align-items: center;
  font-size: 18px;
  color: grey;
}

form .input-group .form-control:focus {
  border: 2px solid var(--bg-sale);
}

.text-title {
  font-size: 24px;
}
.text-title i {
  font-size : 14px;
  margin-right : 6px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  list-style-type: none;
  gap: 20px;
  height: 400px;
  overflow: auto;
}
.sidebar-nav::-webkit-scrollbar {
  width: 7px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--bg-sale);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.sidebar-nav .sidebar-item .sidebar-link {
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  font-size: 18px;
  color: inherit;
  font-weight: bold;
  transition: all 1.4s;
  padding-left  : 20px;
}
.sidebar-nav .sidebar-item .sidebar-link.active {
  color: var(--bg-sale);
}
.sidebar-nav .sidebar-item .sidebar-link i {
  font-size: 8px;
  color: var(--bg-sale);
}
.sidebar-nav .sidebar-item:hover .sidebar-link {
  color: var(--bg-sale);
}
.sidebar-nav .sidebar-item:hover i {
  font-weight: bold;
}

.sidebar-recommend-product {
  display: flex;
  flex-direction: column;
  list-style-type: none;
  gap: 20px;
  padding-top: 10px;
  height: 400px;
}
.sidebar-recommend-product .sidebar-item .sidebar-link {
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  font-size: 20px;
  color: inherit;
  font-weight: bold;
  transition: all 0.8s;
}
.sidebar-recommend-product .sidebar-item .sidebar-link:hover {
  color: var(--bg-sale);
}

.sidebar-recommend-product .sidebar-item .sidebar-link .sidebar-link-img {
  width: 40%;
}
.sidebar-recommend-product .sidebar-item .sidebar-link .sidebar-link-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-recommend-product
  .sidebar-item
  .sidebar-link
  .sidebar-link-img:hover
  img {
  transform: scale(90%);
  transition: all 0.8s;
}
.sidebar-recommend-product .sidebar-item .sidebar-link .sidebar-link-text {
  color: inherit;
}

.sidebar-recommend-product .sidebar-item .sidebar-link .sidebar-link-text {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

