:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eaf1ff;
  --text: #172033;
  --text-soft: #68758a;
  --muted: #98a3b5;
  --line: #e4eaf3;
  --surface: #ffffff;
  --background: #f8fafc;
  --green: #16a569;
  --green-light: #e3f8ed;
  --orange: #f5a623;
  --red: #e95463;
  --shadow: 0 16px 42px rgba(35, 52, 86, 0.09);
  --bg-body: #f8fafc;
}

body{
  background-color: var(--bg-body);
}

.store-card {
  overflow: visible;
  margin-bottom: 25px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.store-card__main {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px 27px;
}

.store-info__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.store-info h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
}

.verified {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.store-info p {
  max-width: 630px;
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.store-meta strong {
  color: #4d5b73;
}

.store-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.subscribe-button {
  min-height: 43px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 9px 18px rgba(37, 99, 235, 0.22);
  font-size: 13px;
  font-weight: 800;
}

.subscribe-button:hover {
  background: var(--primary-dark);
}

.subscribe-button.is-subscribed {
  color: #536178;
  background: #edf1f7;
  box-shadow: none;
}

.more-menu {
  position: relative;
}

.more-menu__button {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #5c6b82;
  background: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.more-menu__dropdown {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  width: 220px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 15px 32px rgba(32, 45, 72, 0.15);
}

.more-menu__dropdown.is-open {
  display: block;
}

.more-menu__dropdown button {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  color: #506078;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.more-menu__dropdown button:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.more-menu__dropdown .danger {
  color: var(--red);
}

.store-statistics {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.store-rating,
.store-stat {
  min-height: 100px;
  padding: 20px 25px;
  text-align: center;
}

.store-rating {
  display: flex;
  align-items: center;
  gap: 13px;
  border-right: 1px solid var(--line);
}

.store-rating__score {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.store-rating__details{
  text-align: start;
}

.store-rating__details strong {
  display: block;
  color: var(--orange);
  font-size: 16px;
}

.store-rating__details span,
.store-stat span {
  font-size: 12px;
}

.store-stat {
  border-right: 1px solid var(--line);
  text-align: center;
}

.store-stat:last-child {
  border-right: 0;
}

.store-stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 23px;
  font-weight: 800;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  margin-bottom: 32px;
}

.info-card {
  padding: 22px;
  border-radius: 20px;
  background: #fff;
}

.info-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.info-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.contact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #536178;
  font-size: 14px;
  font-weight: 700;
}

.contact__icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
}

.contact__icon {
  color: var(--primary);
  background: var(--primary-light);
}

.contacts {
  display: grid;
  gap: 11px;
  margin-top: 13px;
}

.section {
  margin-bottom: 35px;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 25px;
}

.section__title {
  margin: 0;
  font-size: 26px;
}

.section__link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.section__link:hover {
  text-decoration: underline;
}

.products-count {
  color: var(--text-soft);
  font-weight: 600;
}

.catalog-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box span {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--muted);
  font-size: 17px;
  transform: translateY(-50%);
}

.search-box input,
.sort-select {
  height: 45px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: #fff;
}

.search-box input {
  width: 100%;
  padding: 0 15px 0 42px;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.09);
}

.sort-select {
  min-width: 190px;
  padding: 0 12px;
  color: #536178;
  font-size: 12px;
  font-weight: 700;
}

.categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 18px;
}

.category-button {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #58677e;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.category-button:hover,
.category-button.is-active {
  border-color: #b9cdfa;
  color: var(--primary);
  background: var(--primary-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 15px 28px rgba(35, 52, 86, 0.13);
  transform: translateY(-3px);
}

.product-card.is-hidden {
  display: none;
}

.product-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #e8edf5;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 7px;
  color: #fff;
  background: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.favorite-button {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #55637a;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 10px rgba(30, 43, 68, 0.12);
  font-size: 17px;
}

.favorite-button.is-favorite {
  color: var(--red);
}

.product-content {
  padding: 13px;
}

.product-price {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
  font-weight: 800;
}

.product-title {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  margin: 0 0 9px;
  color: #445169;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #edf0f5;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.product-status {
  color: var(--green);
  font-weight: 800;
}

.product-status::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

/* Отзывы */

.reviews-grid {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 18px;
}

.rating-summary,
.review {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
}

.rating-summary__main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.rating-summary__score {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.rating-stars {
  color: var(--orange);
  font-size: 17px;
}

.rating-summary p,
.review p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.leave-review {
  width: 100%;
  margin-top: 15px;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #1d2739;
  font-size: 12px;
  font-weight: 800;
}

.review__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-author__avatar {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 50%;
  color: #5c3c0e;
  background: #ffe1a6;
  font-size: 12px;
  font-weight: 800;
}

.review-author strong {
  display: block;
  font-size: 13px;
}

.review-author span {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .store-card__main {
    gap: 14px;
    padding: 20px 18px;
  }

  .store-info h1 {
    font-size: 21px;
  }

  .store-actions {
    grid-column: 1 / -1;
  }

  .store-statistics {
    grid-template-columns: 1fr 1fr;
  }

  .store-rating {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .store-stat:nth-child(3) {
    border-right: 0;
  }

  .store-stat:nth-child(4) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-image {
    height: 190px;
  }

}

@media (max-width: 490px) {
  .store-info p {
    display: none;
  }

  .store-meta {
    display: grid;
    gap: 2px;
  }

  .product-image {
    height: 145px;
  }

  .product-content {
    padding: 10px;
  }

  .product-price {
    font-size: 15px;
  }

  .section-header h2 {
    font-size: 20px;
  }
}

.profile-avatar .user-avatar-by-stories-circle{
  border-radius: 15px!important;
}

.reviews-summary,
.review-card {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(40, 55, 82, 0.04);
}

.reviews-summary {
  padding: 21px;
}

.reviews-summary__score {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 5px;
}

.reviews-summary__score strong {
  font-size: 40px;
  line-height: 1;
}

.reviews-summary__score span {
  color: var(--text-soft);
  font-size: 13px;
}

.reviews-summary__stars {
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 17px;
}

.reviews-summary p {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 12px;
}

.store-stat a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-search-form-input{
    border: 1px solid white;
    background-color: white;
}