@charset "UTF-8";
/* Reset styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.5;
  font-family: sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

ul,
ol {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
}

:focus {
  outline: 2px solid #000;
}

#root,
#__next {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body {
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  color: #000000;
  background-color: white;
}

h1, h2, h3 {
  font-weight: 700;
}

.content {
  max-width: 1440px;
  margin: 0 auto;
}

* {
  -webkit-tap-highlight-color: transparent;
}

.hiden {
  display: none !important;
}

@media (max-width: 370px) {
  * {
    font-size: 14px !important;
  }
  button {
    padding: 5px !important;
  }
  .modal__amount {
    margin-bottom: 5px !important;
  }
  .modal__amount button {
    padding: 4px 10px !important;
  }
  .modal {
    padding: 10px !important;
  }
  .header__link img {
    width: 20px !important;
    height: 20px !important;
  }
  .header {
    padding: 10px !important;
  }
}
.header {
  position: fixed;
  bottom: 20px;
  left: 30px;
  right: 30px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  background-color: #f0f0f0;
  border-radius: 30px;
  border: 1px #e0e0e0 solid;
  padding: 15px 25px;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}
.header__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.2s ease;
}
.header__link img {
  width: 28px;
  height: 28px;
  /*filter: brightness(0) invert(1);  белые иконки */
  transition: transform 0.2s ease;
}
.header__link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}
.header__link:active img {
  transform: scale(0.95);
}
.header__link:focus {
  outline: none;
}

@media (max-width: 500px) {
  .header {
    justify-content: space-between;
  }
}
.catalog {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 120px;
}

.catalog-item {
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border-radius: 20px;
  border: 1px rgb(221, 221, 221) solid;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent; /* для мобилок */
}

.catalog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.catalog-item:focus {
  outline: none;
}

.catalog-item img {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
}

.catalog-item__info {
  padding: 15px;
  text-align: center;
}

.catalog-item__title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.catalog-item__amount {
  font-size: 0.9rem;
  color: #777;
}

@media (max-width: 700px) {
  .catalog {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 500px) {
  .catalog {
    grid-template-columns: 1fr;
  }
}
.cart {
  margin-bottom: 100px;
}
.cart__header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  align-self: center;
  border-bottom: 1px #e0e0e0 solid;
}
.cart__header-text {
  text-wrap-mode: nowrap;
  font-size: 25px;
  font-weight: 600;
}
.cart__container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 10px;
  gap: 10px;
}
.cart__item {
  padding: 10px;
  border: 1px #e0e0e0 solid;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  font-weight: bold;
}
.cart__item img {
  display: block;
  height: 50px;
  aspect-ratio: 1;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 12px;
}
.cart__footer {
  border-top: 1px #e0e0e0 solid;
  display: flex;
  justify-content: space-around;
  padding: 40px 10px 20px;
}
.cart__footer-total-price {
  font-size: 30px;
  font-weight: 700;
  align-self: center;
}
.cart__footer-btn-clear {
  padding: 8px 16px;
  width: 100%;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #d1d1d1;
  border-radius: 20px;
  background-color: rgb(255, 61, 61);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.cart__footer-btn-clear:hover {
  filter: brightness(90%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.cart__footer-btn-clear:active {
  filter: brightness(85%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: scale(0.98);
}
.cart__footer-btn-clear:focus {
  outline: none;
}
.cart__footer-btn-clear:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 100, 255, 0.3);
}
.cart__footer-btn-aprove {
  padding: 8px 16px;
  width: 100%;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #d1d1d1;
  border-radius: 20px;
  background-color: rgb(69, 255, 62);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.cart__footer-btn-aprove:hover {
  filter: brightness(90%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.cart__footer-btn-aprove:active {
  filter: brightness(85%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: scale(0.98);
}
.cart__footer-btn-aprove:focus {
  outline: none;
}
.cart__footer-btn-aprove:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 100, 255, 0.3);
}
.cart__footer-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.empty-cart {
  width: 100%;
  height: 40vh;
  display: flex;
  justify-content: center;
  align-items: end;
  font-size: 20px;
  font-weight: bold;
  color: rgb(90, 90, 90);
}

@media (max-width: 1150px) {
  .cart__container {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .cart__container {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 450px) {
  .cart__footer-total-price {
    font-size: 15px;
  }
  .cart__footer-btns button {
    font-size: 10px;
  }
}
.profile {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
}
.profile__header {
  text-align: center;
  margin-bottom: 20px;
}
.profile__name {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.orders {
  margin-top: 20px;
  margin-bottom: 100px;
}
.orders .orders-item {
  background-color: #f2f2f2;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.orders .orders-item .order-name {
  font-size: 18px;
  font-weight: 600;
  color: #555;
}
.orders .orders-item .order-status {
  font-size: 14px;
  color: #888;
}
.orders .orders-item .order-details {
  font-size: 14px;
  color: #777;
  margin-top: 10px;
}

.catalog-main__header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  align-self: center;
  border-bottom: 1px #e0e0e0 solid;
}
.catalog-main__header-text {
  text-wrap-mode: nowrap;
  font-size: 25px;
  font-weight: 600;
}
.catalog-main__header-text span {
  font-weight: 900;
  text-decoration: underline;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));;
  gap: 24px;
  padding: 12px;
  margin-bottom: 100px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  text-align: center;
  padding: 8px;
}
.product-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.product-card img {
  width: 100%;
  height: 180px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}
.product-card h3 {
  font-size: 0.7rem;
  margin-bottom: 4px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card p {
  font-weight: 600;
  color: #555;
  font-size: 0.75rem;
}
.product-card__button {
  margin-top: 10px;
  padding: 8px 16px;
  width: 100%;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid #d1d1d1;
  border-radius: 20px;
  background-color: #fafafa;
  color: #333;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.product-card__button:hover {
  background-color: #e2e2e2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.product-card__button:active {
  background-color: #ccc;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: scale(0.98);
}
.product-card__button:focus {
  outline: none;
}
.product-card__button:focus-visible {
  outline: none;
  border-color: #888;
  box-shadow: 0 0 0 3px rgba(100, 100, 255, 0.3);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
.modal__header {
  text-align: center;
  margin-bottom: 10px;
}
.modal__img {
  display: flex;
  justify-content: center;
}
.modal__img img {
  max-height: 130px;
  max-width: 200px;
}
.modal__text {
  font-size: small;
  margin-bottom: 20px;
}
.modal__price {
  text-align: center;
  font-weight: 200;
  margin-bottom: 10px;
}
.modal__tb {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: "Arial", sans-serif;
  border: 2px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  transition: all 0.3s ease-in-out;
}
.modal__tb:focus {
  border-color: #4CAF50;
  background-color: #ffffff;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
  outline: none;
}
.modal__tb::-moz-placeholder {
  color: #aaa;
  font-style: italic;
}
.modal__tb::placeholder {
  color: #aaa;
  font-style: italic;
}
.modal__textarea {
  width: 100%;
  height: 150px;
  padding: 12px 16px;
  font-size: 16px;
  font-family: "Arial", sans-serif;
  border: 2px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  resize: none;
  margin-bottom: 20px;
}
.modal__textarea:focus {
  border-color: #4CAF50;
  background-color: #ffffff;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
  outline: none;
}
.modal__textarea::-moz-placeholder {
  color: #aaa;
  font-style: italic;
}
.modal__textarea::placeholder {
  color: #aaa;
  font-style: italic;
}
.modal__btn-container {
  display: flex;
  justify-content: right;
  gap: 10px;
}

.title-bar {
  height: 31px;
  background-color: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  -webkit-app-region: drag;
  border-bottom: 1px #f5f5f5 solid;
}

.modal__product-type {
  margin-bottom: 20px;
}
.modal__product-type label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}
.modal__product-type select {
  width: 100%;
  padding: 10px 20px 10px 14px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease;
}
.modal__product-type select:focus {
  border-color: #4CAF50;
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.modal__amount {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.modal__amount label {
  margin-right: auto;
  font-weight: bold;
}
.modal__amount button {
  padding: 8px 16px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #d1d1d1;
  border-radius: 50%;
  background-color: #fafafa;
  color: #333;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.modal__amount button:hover {
  background-color: #e2e2e2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.modal__amount button:active {
  background-color: #ccc;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: scale(0.98);
}
.modal__amount button:focus {
  outline: none;
}
.modal__amount button:focus-visible {
  outline: none;
  border-color: #888;
  box-shadow: 0 0 0 3px rgba(100, 100, 255, 0.3);
}
.modal__amount span {
  font-size: 18px;
  min-width: 24px;
  text-align: center;
  display: inline-block;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(255, 255, 255);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.2s ease;
}

.logo {
  content: url("../assets/ico/logo.png");
  width: 200px;
  height: 200px;
  animation: wave 0.3s ease-in-out infinite;
}

@keyframes wave {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 1;
  }
}/*# sourceMappingURL=main.css.map */
