.profile {
  padding: 32px 0 56px;
  background: #f8f7fb;
}

.profile__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.profile__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.profile__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #231638;
}

.profile__edit {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid #ddd2f0;
  background: #ffffff;
  font-size: 13px;
  color: #6e2fd4;
  cursor: pointer;
}

/* основная карточка */

.profile__card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
}

/* аватар */

.profile-avatar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-avatar__icon {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  border: 2px solid #f0e8ff;
  background: url("img/avatar-placeholder.svg") center/60% no-repeat;
}

.profile-avatar__btn {
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  font-size: 12px;
  color: #6e2fd4;
  cursor: pointer;
}

/* поля профиля */

.profile-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-row:nth-child(2) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-field__label {
  font-size: 11px;
  color: #9b93ac;
  margin-bottom: 3px;
}

.profile-field__value {
  padding: 7px 10px;
  border-radius: 6px;
  background: #f9f8fc;
  font-size: 13px;
  color: #3b3446;
}

/* адаптив */

@media (max-width: 800px) {
  .profile__card {
    grid-template-columns: 1fr;
  }

  .profile-avatar__icon {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 600px) {
  .profile-row,
  .profile-row:nth-child(2) {
    grid-template-columns: 1fr;
  }
}
.profile-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-row--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-field__label {
  display: block;
  font-size: 11px;
  color: #9b93ac;
  margin-bottom: 4px;
}

.profile-input {
  width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #e0d8f0;
  background: #f9f8fc;
  font-size: 13px;
  color: #3b3446;
  outline: none;
}

.profile-input:focus {
  border-color: #7d4cf4;
  box-shadow: 0 0 0 1px rgba(125, 76, 244, 0.12);
}

/* адаптив */

@media (max-width: 600px) {
  .profile-row,
  .profile-row--two {
    grid-template-columns: 1fr;
  }
}
.password {
  padding: 32px 0 48px;
  background: #f8f7fb;
}

.password__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.password__title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #231638;
}

.password__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  margin-bottom: 16px;
}

.password-field__label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #9b93ac;
}

.password-field__wrap {
  position: relative;
}

.password-input {
  width: 100%;
  padding: 9px 32px 9px 12px;
  border-radius: 8px;
  border: 1px solid #e0d8f0;
  background: #faf8ff;
  font-size: 13px;
  color: #3b3446;
  outline: none;
}

.password-input:focus {
  border-color: #7d4cf4;
  box-shadow: 0 0 0 1px rgba(125, 76, 244, 0.12);
}

/* иконка глаза */

.password-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(153, 95, 243, 0.18);
  cursor: pointer;
}

/* кнопка */

.password__submit {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  background: #ffba1a;
  color: #3b2500;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* адаптив */

@media (max-width: 800px) {
  .password__row {
    grid-template-columns: 1fr;
  }
}
.account-fav {
  padding: 24px 0 56px;
  /* background: #f8f7fb; */
}

.account-fav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* табы */

.account-tabs {
  display: inline-flex;
  background: #f2edf9;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 18px;
}

.account-tabs__btn {
  border: none;
  background: transparent;
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 13px;
  color: #6a6280;
  cursor: pointer;
}

.account-tabs__btn--active {
  background: #ffffff;
  color: #4a257f;
  font-weight: 600;
}

/* сетка карточек */

.account-fav__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* карточка товара (как в каталоге) */

.fav-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fav-card__flag {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 20px;
  height: 28px;
  border: none;
  background: #7d4cf4;
  border-radius: 4px;
  cursor: pointer;
}

.fav-card__img img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.fav-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
}

.fav-card__name {
  font-size: 13px;
  font-weight: 600;
  color: #231638;
  text-decoration: none;
  margin-bottom: 4px;
}

.fav-card__subtitle {
  font-size: 11px;
  color: #8a8298;
  margin-bottom: 8px;
}

.fav-card__prices {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.fav-card__price-label {
  font-size: 11px;
  color: #9b93ac;
}

.fav-card__price {
  font-size: 12px;
  font-weight: 600;
  color: #231638;
}

.fav-card__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.fav-card__total-val {
  font-size: 13px;
  font-weight: 700;
}

/* кнопка */

.fav-card__btn {
  margin-top: auto;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: #ffba1a;
  color: #3b2500;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* адаптив */

@media (max-width: 1100px) {
  .account-fav__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .account-fav__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .account-fav__grid {
    grid-template-columns: 1fr;
  }
}
.account-tab {
  display: none;
}

.account-tab--active {
  display: block;
}
.orders {
  padding: 24px 0 56px;
  background: #f8f7fb;
}

.orders__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.order {
  background: #ffffff;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

/* шапка */

.order-head {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 20px;
  cursor: pointer;
}

.order-head__label {
  font-size: 11px;
  color: #a19ab3;
}

.order-head__value {
  font-size: 13px;
  font-weight: 600;
  color: #3b3446;
}

.order-head__toggle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #e0d8f0;
  background: #ffffff;
  cursor: pointer;
  position: relative;
}

.order-head__toggle::before {
  content: "▾";
  font-size: 14px;
  color: #9a92ad;
}

/* тело (таблица) */

.order-body {
  border-top: 1px solid #f1edf7;
  padding: 10px 20px 16px;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.order-table thead th {
  text-align: left;
  padding: 8px 4px;
  color: #a19ab3;
  font-weight: 500;
}

.order-table tbody td {
  padding: 8px 4px;
  border-top: 1px solid #f4f0fa;
}

/* скрытое состояние */

.order--collapsed .order-body {
  display: none;
}

.order--collapsed .order-head__toggle::before {
  content: "▸";
}
