@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");
*,
body {
  font-family: "Open Sans", sans-serif !important;
  box-sizing: border-box;
}
body {
  background-color: #fdfdfd;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
main {
  min-height: calc(100vh - 150px);
}
.scroll-to-top {
  background-color: #7be1ff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: 30px;
  right: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: 0.3s all;
  visibility: hidden;
}
.scroll-to-top img {
  width: 15px;
  height: 15px;
}
.container {
  width: calc(100% - 30px);
  margin: 0 auto;
  padding: 0 15px;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  font-size: 32px;
  box-shadow: 0 0 10px -2px rgba(0, 0, 0, 0.1);
}
.header .logo{
  height: 50px;
}
.admin-btn {
  background-color: #e8f5ff;
  text-decoration: none;
  font-size: 17px;
  color: #000;
  margin-right: 10px;
  padding: 0 10px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.header-inner p {
  font-size: 14px;
}
.categories {
  /* padding: 10px 20px; */
  margin-top: 30px;
  width: 100%;
}
.category-title {
  font-weight: 600;
  font-size: 17px;
}
.category-items {
  margin-top: 15px;
  overflow-x: auto;
  display: flex;
  gap: 15px;
  align-items: center;
  padding-bottom: 15px;
}
.category-items::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 4px;
}

.category-items::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}
.category-items::-webkit-scrollbar {
  width: 2px;
  height: 5px;
}

.category-items::-webkit-scrollbar-thumb {
  background-color: #d1d1d1;
  border-radius: 20px;
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  min-width: 150px !important;
  width: 150px !important;
  border-radius: 4px;
  cursor: pointer;

  color: #000;
  text-decoration: none;
}
.category-item:not(.active) {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}
.category-item:hover,
.category-item.active {
  background-color: #e8f5ff;
}
.category-item__image {
  width: 75px;
  height: 75px;
}

.category-item__title {
  font-size: 15px;
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
}

.products {
  margin-top: 50px;
}
.product-title {
  font-weight: 600;
  font-size: 17px;
}
.products-list {
  margin-top: 30px;
  /* display: grid;
  grid-template-columns: repeat(3, 1fr); */
  gap: 40px;
  display: flex;
  flex-wrap: wrap;
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  padding: 10px 30px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  flex: 1;
  max-width: calc(33% - 40px) !important;
}
.product-item__content {
  margin-top: 20px;
  width: 100%;
  padding: 15px 0;
}
.product-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-item__image {
  width: 300px;
  height: 300px;
}
.product-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}
.product-item__top .product-name {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
}
.product-item__top .product-category {
  font-size: 13px;
  margin-top: 5px;
  color: #476e8d;
  font-weight: 600;
  flex: 1;
}
.product-item__top .product-price {
  font-size: 20px;
  color: #476e8d;
  background-color: #e8f5ff;
  border-radius: 22px;
  padding: 10px 20px;
}
.product-item__content .product-desc {
  margin-top: 15px;
  line-height: 23px;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.8);
}
.language-dropdown {
  position: relative;
}
.language-dropdown button {
  font-size: 16px;
  display: flex;
  align-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background-color: transparent;
}
.language-dropdown button img {
  width: 25px;
  height: 25px;
  margin-right: 7px;
  border-radius: 99999px;
  object-fit: cover;
}
.language-dropdown .language-dropdown__list {
  position: absolute;
  top: 90%;
  left: 0;
  width: 100%;
  font-size: 17px;
  padding: 7px 0;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s all;
  background-color: #fff;
  width: 75px;
  padding: 6px;
}
.language-dropdown .language-dropdown__list.active {
  opacity: 1;
  visibility: visible;
  top: 100%;
}
.language-dropdown .language-dropdown__list ul {
  padding: 0;
}
.language-dropdown .language-dropdown__list ul li {
  border-radius: 3px;
  transition: 0.2s all;
}
.language-dropdown .language-dropdown__list ul li:not(:last-child) {
  margin-bottom: 5px;
}
.language-dropdown .language-dropdown__list ul li.active {
  background-color: #476e8d;
}
.language-dropdown .language-dropdown__list ul li:hover {
  background-color: #476e8d;
}
.language-dropdown .language-dropdown__list ul li:hover a {
  color: #7be1ff;
}
.language-dropdown .language-dropdown__list ul li a {
  display: block;
  padding: 6px;

  text-decoration: none;
}
.language-dropdown .language-dropdown__list ul li.active a {
  color: #7be1ff;
}
.info-alert {
  background: #fbfac6;
  padding: 14px;
  border-radius: 4px;
  width: 100%;
  color: #707054;
  margin-top: 30px;
}

.footer {
  background-color: #fff;
  border-top: 1px solid #f3f3f3;
  color: #4778aa;
  padding: 15px 0;
  text-align: center;
  margin-top: 40px;
}
@media (min-width: 576px) {
  .container {
    width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    width: 720px;
  }
}
@media (max-width: 800px) {
  .products-list {
    /* gap: 20px; */
    /* grid-template-columns: repeat(1, 1fr); */
    display: block;
  }
  .products-list .product-item:not(:last-child) {
    margin-bottom: 20px;
  }
}
@media (min-width: 992px) {
  .container {
    width: 960px;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    width: 1320px;
  }
}
@media (max-width: 680px) {
  .language-dropdown .language-dropdown__list {
    width: 100%;
    right: 0;
  }
}
@media (max-width: 992px) {
  .products-list {
    /* gap: 20px; */
    /* grid-template-columns: repeat(2, 1fr); */
    width: 100%;
    max-width: 100%;
  }
  .products-list .product-item {
    max-width: 100% !important;
  }
  .products-list .product-item img {
    width: 100%;
  }
}
@media (max-width: 550px) {
  .products-list {
    /* gap: 20px; */
    /* grid-template-columns: repeat(1, 1fr); */
    width: 100%;
    max-width: 100%;
  }
  .scroll-to-top {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 360px) {
  .product-item .product-item__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .product-item .product-item__top .product-price {
    margin-top: 10px;
  }
}

.skeleton:empty {
  position: relative;
  height: 290px;
  background-color: #ffffff;
  border-radius: 8px 8px 8px 8px;
  background-image: linear-gradient(#cccccc 10px, transparent 0),
    linear-gradient(#cccccc 30px, transparent 0),
    linear-gradient(#e0e0e0 10px, transparent 0),
    linear-gradient(#e0e0e0 200px, transparent 0);
  background-repeat: repeat-y;
  background-size: 120px 290px, 80px 290px, 200px 290px, 360px 290px;
  background-position: left 20px top 247px, left 300px top 233px,
    left 20px top 233px, left 20px top 20px;
}
.skeleton:empty:before {
  content: " ";
  position: absolute;
  z-index: 1000;
  width: 100%;
  height: 290px;
  -webkit-mask-image: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  -webkit-mask-repeat: repeat-y;
  -webkit-mask-size: 50px 290px;
  -webkit-mask-position: -20% 0;
  background-image: linear-gradient(rgba(102, 102, 102, 1) 10px, transparent 0),
    linear-gradient(rgba(102, 102, 102, 1) 30px, transparent 0),
    linear-gradient(rgba(102, 102, 102, 1) 10px, transparent 0),
    linear-gradient(rgba(102, 102, 102, 1) 200px, transparent 0);
  background-repeat: repeat-y;
  background-size: 120px 290px, 80px 290px, 200px 290px, 360px 290px;
  background-position: left 20px top 247px, left 300px top 233px,
    left 20px top 233px, left 20px top 20px;
  animation: shineForSkeleton 2s infinite;
}
@keyframes shineForSkeleton {
  to {
    -webkit-mask-position: 120% 0;
  }
}
