@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  cursor: default;
  margin: 0;
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: #fff;
}

/* @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap'); */

:root {
  --black: #111;
  --dark-gray: #444;
  --gray: #bbb;
  --light-gray: #f5f5f7;
  --red: #e63946;
  --accent: #1d3557;
  --mobile-nav-height: 0;
  --mobile-nav-height-product: calc(var(--mobile-nav-height) + 100px);
}

* {
  box-sizing: border-box;
}

.container {
  margin-top: 90px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1280px;
  min-height: calc(100dvh - 120px);
  padding: 3em;
  display: flex;
  flex-direction: column;
  gap: 3em;
}

.product-gallery-info-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
}

a, input, textarea {
  font: inherit !important;
  color: inherit !important;
}

a {
  text-decoration: none;
}

input:focus, textarea:focus {
  outline: none;
}

input {
  border: 1px solid var(--gray);
}

input:not(.search-form input) {
  border-radius: 0.5em;
}

.search-form input[type=submit] {
  background: url(/static/icn/search.svg);
  /* background-color: white; */
  /* background-color: #e4e4dd; */
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
  opacity: 0.4;
  min-width: 34px;
  /* filter: invert(1); */
}

input[type=submit] {
  cursor: pointer;
}

footer {
  color: white;
  background: #2d2d37;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0 20px;
}

/* header {
  height: 60px;
  box-shadow: 0 0 6px var(--gray);
} */

footer {
  height: 100px;
  padding-top: 1em;
  padding-bottom: 1em;
  gap: 3em;
  box-shadow: 0 0 6px var(--gray);
}

footer > *:first-child {
  margin-right: auto;
}

.logo {
  font-size: 24px;
  letter-spacing: 0.09em;
  color: #ddd;
}

.best-container {
  display: flex;
  justify-content: center;
  gap: 1em;
}

.card {
  width: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  transition: opacity 0.3s;
}

.card-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.25;
}

.card-placeholder .card-image img {
  width: 30px;
  height: 30px;
}

.card-favorite {
  opacity: 0.8;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background-image: url(/static/icn/favorite-empty.svg);
  background-size: cover;
}

.card-favorite.active {
  background-image: url(/static/icn/favorite.svg);
}

.card-image,
.product-image {
  background: white;
  display: flex;
  align-items: center;
}

.card-image {
  align-items: flex-end;
  justify-content: center;
}

.card-image img,
.product-image img {
  max-width: 100%;
}

.card-image img {
  max-height: 100%;
}

.card-bottom {
  padding: 0 16px;
}

.card-price {
  font-weight: 600;
  font-size: 18px;
  /* color: #a6051a; */
  color: var(--red);
}

.card-name {
  font-size: 13.5px;
  color: #222d;
}

.card:hover {
  opacity: 0.8;
}

.center-card {
  font-size: 24px;
  width: 360px;
}

.center-card .card-image {
  height: 480px;
}

.trending-container {
  align-self: center;
  justify-content: space-between;
  display: flex;
  flex-wrap: wrap;
  row-gap: 16px;
  column-gap: 0;
}

.trending-container > * {
  width: 200px;
}

.search-form {
  margin-right: auto;
  flex: auto;
  max-width: 600px;
  display: flex;
  height: 34px;
  background: white;
  /* background: #1b1b22; */
  border: 1px solid #aaa5;
  border-radius: 5em;
  overflow: hidden;
}

.search-form > * {
  color: var(--black);
  height: 100%;
}

.search-form input {
  border: none;
}

.search-form input[type=text] {
  padding-left: 1em;
  flex: auto;
  /* border-right: 1px solid #ddd; */
  border-right: 1px solid #aaa4;
  min-width: 0;
  /* color: #aaa; */
  /* background: #1b1b22; */
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2em;
}

.normal-opacity {
  opacity: 1;
}

.cart {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2em;
}

.cart-products {
  height: min-content;
  flex: auto;
  border: 1px solid var(--gray);
  border-radius: 1em;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.cart-product {
  padding: 1em 3em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3em;
  border-bottom: 1px solid var(--gray);
}

.cart-no-items {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(245,245,247);
  background: linear-gradient(0deg, rgba(245,245,247,1) 0%, rgba(248,248,250,1) 12%, rgba(248,248,250,1) 88%, rgba(253,253,255,1) 100%);
}

.cart-product:last-child {
  border-bottom: none;
}

.cart-product-img {
  min-width: 80px;
  max-width: 80px;
  min-height: 80px;
  max-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-product-img img {
  max-width: 100%;
  max-height: 100%;
}

.cart-order {
  border: 1px solid var(--gray);
  border-radius: 1em;
  background: rgb(245,245,247);
  background: linear-gradient(0deg, rgba(245,245,247,1) 0%, rgba(248,248,250,1) 30%, rgba(248,248,250,1) 70%, rgba(253,253,255,1) 100%);
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.cart-order-pay-container {
  width: 100%;
  height: 50px;
  position: relative;
}

.cart-order-pay-container > * {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.cart-order-pay-container input {
  opacity: 0;
}

.cart-order-pay {
  padding: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  border-radius: 3em;
}

.cart-product-amounts {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.cart-product-amount {
  display: flex;
  align-items: center;
  gap: 1em;
}

.cart-product-amount-img-cnt {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray);
  border-radius: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-product-amount-img-cnt img {
  width: 20px;
  height: 20px;
}

.cart-order {
  padding: 1em;
}

.cart-product-price {
  white-space: nowrap;
}

.cart-order-total {
  font-weight: bold;
}

.admin-product-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.categories {
  align-self: center;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 1px 1px 5px var(--gray);
  display: flex;
  flex-direction: column;
}

.categories-row {
  width: 100%;
  display: flex;
}

.categories-row > *:first-child {
  border-right: 1px solid #ddd;
}

.categories-row > * {
  width: 50%;
}

.category {
  width: 100%;
  aspect-ratio: 1;
  max-height: 160px;
  /* border: 1px solid var(--gray); */
  overflow: hidden;
  background-position: center bottom 8px;
  background-size: calc(42vw - 8px);
  background-repeat:no-repeat;
}

.category-name {
  width: min-content;
  padding: 1em;
  padding-right: 0;
  padding-bottom: 0;
  color: #222d;
  font-size: 18px;
  /* font-weight: 900; */
  --category-name-color: #fffc;
  border-radius: 10px;
  background: var(--category-name-color);
  box-shadow: 0 0 20px 20px var(--category-name-color);
}

.heading {
  font-size: 20px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--gray);
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: white;
}

.mobile-buy-top {
  height: 50px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-buy-top-delivery {
  color: #7a7a7acc;
  font-weight: 600;
}

.mobile-buy-bottom {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy-btn, .filters-btn {
  color: white;
  /* background: #1b1b22; */
  background: var(--primary-color);
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-buy-btn {
  width: calc(100% - 8px);
}

.mobile-nav {
  height: var(--mobile-nav-height);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.mobile-nav img {
  /* opacity: 0.2666666; */
  opacity: 0.5;
  width: 16px;
  height: 16px;
}

.mobile-nav img.active {
  opacity: 0.9;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ref-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.ref-form input {
  max-width: 400px;
}

.ref-row {
  display: flex;
  align-items: center;
  gap: 1em;
}

.auth-form {
  align-self: center;
  width: min(80vw, 600px);
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.auth-form a {
  text-align: center;
}

.auth-title {
  text-align: center;
}

.search-params {
  width: 100%;
  overflow-x: scroll;
  scrollbar-width: none;
  height: 60px;
  padding: 0;
}

.search-params-inner {
  width: 2000px;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.search-param-btn {
  white-space: nowrap;
  padding: 0.5em 1em;
  border-radius: 10px;
  color: white;
  /* background: var(--dark-gray); */
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.search-param-btn-icn {
  width: 12px;
}

.filters-screen {
  left: 0;
  top: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(2px);
  position: fixed;
  display: none;
  align-items: center;
  justify-content: center;
}

.filters-screen.active {
  display: flex;
}

.filters-form {
  padding: 1em;
  background: white;
  border-radius: 10px;
  width: min(600px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.filters-top, .filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filters-close {
  font-size: 32px;
}

.filters-container {
  overflow-y: auto;
  max-height: calc(100dvh - 316px);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.sizes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.size {
  text-align: center;
  min-width: 36px;
  padding: 0.5em;
  border-radius: 1em;
  box-shadow: 0 2px 6px #8888;
}

.size.active {
  color: white;
  background: var(--black);
}

.admin-list {
  width: 100%;
}

.admin-list th,
.admin-list td {
  text-align: center;
  text-overflow: ellipsis;
  padding: 1em;
  border-bottom: 1px solid var(--gray);
}

.admin-main-container {
  align-self: center;
  display: flex;
  gap: 3em;
  flex-wrap: wrap;
}

.admin-main-inner-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.admin-main-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.order-container {
  text-align: center;
}

.account-buttons {
  width: min(600px, 80vw);
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.account-buttons > * {
  text-align: center;
  padding: 1em;
  border: 1px solid var(--gray);
  border-radius: 10px;
}

.reviews-top {
  display: flex;
  align-items: center;
  gap: 1em;
}

.reviews-top-left {
  font-size: 32px;
  font-weight: bold;
}

.review-stars {
  display: flex;
  gap: 4px;
}

.review-stars > * {
  width: 20px;
  height: 20px;
}

.review-stars.reviews-top-right > * {
  width: 30px;
  height: 30px;
}

.reviews {
  display: flex;
  flex-direction: column;
  gap: 2em;
  margin-bottom: 2em;
}

.review {
  padding: 1em;
  /* box-shadow: 0 0.5px 3px var(--gray); */
  /* border: 1px solid var(--gray); */
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  background: #2030300e;
}

.review-text {
  resize: none;
  border: none;
  background: white;
  padding: 4px;
}

.pagination {
  font-size: 24px;
  display: flex;
  gap: 3em;
}

.wa-img {
  width: 50px !important;
  height: 50px !important;
}

.white-header {
  background: inherit;
}

.white-header .logo {
  color: var(--black);
}

.white-header .search-form {
  border: 1px solid var(--gray);
}

.footer-right {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.footer-right a {
  color: white !important;
}

.card-image img {
  filter: hue-rotate(-10deg);
}

.product-top-extra {
  display: flex;
  gap: 6px;
  font-size: 14px;
}

.product-top-extra > * {
  text-align: center;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blob {
  padding: 6px;
  background: #2030300e;
  border-radius: 10px;
}

.product-top-extra .reviews-top {
  gap: 8px;
  height: min-content;
}

.product-top-extra .reviews-top-left {
  font-size: 22px;
  font-weight: 600;
  opacity: 0.7;
  margin-top: auto;
  margin-bottom: auto;
}

.product-top-extra .review-stars {
  gap: 3.2px;
}

.product-top-extra .review-stars.reviews-top-right > * {
  width: 24px;
  height: 24px;
}

.product-categories {
  font-size: 14px;
  color: #7a7a7a;
}

.product-categories-container {
  margin-top: -4px;
}

.review input[type=submit] {
  border: none;
  height: 50px;
  padding: 0 1em;
  /* background: #49549e; */
  background: #5b618a;
  color: white;
}

.product-info-top, .product-categories-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
}

.product-info-top-1 > *:first-child {
  font-size: 20px;
}

.share-btn {
  cursor: pointer;
  background: #7a7a7acc;
}

.share-icn {
  cursor: pointer;
  opacity: 0.9;
  width: 22px;
  height: 22px;
}

.inactive-star {
  opacity: 0.6;
}