:root {
  color-scheme: dark;
  font-family: "Manrope", sans-serif;
  background: #0d0d0d;
  min-height: var(--app-shell-min-h, 100svh);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #f7f7fb;
  background: #0d0d0d;
}

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

.product-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--app-shell-min-h, 100svh);
  overflow: hidden;
}

.product-screen__phone {
  position: relative;
  width: 360px;
  height: 640px;
  min-height: 640px;
  border-radius: 32px;
  background: #0d0d0d;
  overflow: hidden;
  flex-shrink: 0;
}

.product-screen__card {
  position: absolute;
  inset: 0;
  padding: 30px 15px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-height: 0;
  box-sizing: border-box;
}

.product-screen__top-row {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 31px;
  box-sizing: border-box;
  width: 330px;
  max-width: 100%;
}

.product-screen__top-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-screen__back {
  width: 28px;
  height: 31px;
  padding: 0;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.product-screen__back img {
  width: 14px;
  height: 26px;
  display: block;
}

.product-screen__share,
.product-screen__favorite,
.product-screen__gift,
.product-screen__more {
  width: 31px;
  height: 31px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-screen__share img,
.product-screen__favorite img,
.product-screen__gift img,
.product-screen__more img {
  width: 31px;
  height: 31px;
  display: block;
}

.product-screen__gift {
  background: var(--accent-color, #e2ff01);
}

.product-screen__gift:not(.is-on) {
  background: #818181;
}

.product-screen__gift img {
  width: 14px;
  height: auto;
}

.product-screen__more {
  background: #818181;
}

/* Три точки: центральная плюс две тенью. Градиентная плитка на дробной ширине обрезала среднюю точку. */
.product-screen__more::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #121212;
  box-shadow: -8px 0 #121212, 8px 0 #121212;
}

.product-screen__back:focus,
.product-screen__share:focus,
.product-screen__favorite:focus,
.product-screen__gift:focus,
.product-screen__more:focus {
  outline: none;
  box-shadow: none;
}

.product-screen__favorite:disabled,
.product-screen__gift:disabled {
  opacity: 0.6;
  cursor: wait;
}

.product-screen__favorite:disabled {
  opacity: 0.6;
  cursor: wait;
}

.product-screen__photo {
  position: relative;
  flex: 0 0 auto;
  width: 330px;
  max-width: 100%;
  height: 436px;
  margin-top: 10px;
  margin-inline: auto;
  border-radius: 13px;
  background: #ffffff;
  overflow: hidden;
}

.product-screen__photo--empty {
  background: rgba(255, 255, 255, 0.08);
}

.product-screen__photo-img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.product-screen__photo-img--placeholder {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 61px;
  height: 61px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  border-radius: 0;
}

.product-screen__meta {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 330px;
  max-width: 100%;
  height: 37px;
  margin-top: 15px;
  margin-inline: auto;
  padding: 4px 4px 4px 18px;
  border-radius: 113px;
  box-sizing: border-box;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  overflow: visible;
  transform: translateZ(0);
}

.product-screen__meta::before,
.product-screen__meta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  transform: translateZ(0);
}

.product-screen__meta::before {
  background-image: url("/static/img/glass-stroke-product-meta-tl.svg");
}

.product-screen__meta::after {
  background-image: url("/static/img/glass-stroke-product-meta-br.svg");
}

.product-screen__meta > * {
  position: relative;
  z-index: 1;
}

.product-screen__price {
  flex: 0 1 auto;
  min-width: 0;
  padding: 0;
  color: #e2ff01;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.152;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-screen__button {
  flex: 0 0 auto;
  width: 174px;
  height: 29px;
  padding: 0 6px 0 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #0d0d0d;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.152;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.product-screen__button[hidden] {
  display: none !important;
}

.product-screen__button-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.product-screen__meta:not(:has(.product-screen__price)) {
  justify-content: flex-end;
  padding-left: 4px;
}

.product-screen__meta:not(:has(.product-screen__button:not([hidden]))) {
  padding-right: 18px;
}

.product-screen__name {
  flex-shrink: 0;
  margin: 8px 0 0;
  width: 330px;
  max-width: 100%;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.152;
  color: #ffffff;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.product-screen__subtitle {
  flex: 1 1 auto;
  min-height: 0;
  margin: 4px 0 0;
  width: 330px;
  max-width: 100%;
  text-align: left;
  color: #818181;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.152;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}

.product-screen__subtitle::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.product-picker {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  padding: 30px 15px 16px;
  background: #0d0d0d;
  box-sizing: border-box;
}

.product-picker[hidden] {
  display: none;
}

.product-picker__bar {
  display: flex;
  align-items: center;
  width: 330px;
  max-width: 100%;
  min-height: 31px;
  margin-inline: auto;
}

.product-picker__title {
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.product-picker__bar-spacer {
  width: 28px;
  flex-shrink: 0;
}

.product-picker__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 330px;
  max-width: 100%;
  margin: 16px auto 0;
}

.product-picker__search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 35px;
  min-width: 0;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-sizing: border-box;
}

.product-picker__search-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.product-picker__search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}

.product-picker__search-input::placeholder {
  color: #818181;
}

.product-picker__search-input::-webkit-search-cancel-button,
.product-picker__search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.product-picker__create {
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  padding: 0;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
}

.product-picker__create img {
  width: 35px;
  height: 35px;
  display: block;
}

.product-picker__body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 330px;
  max-width: 100%;
  margin: 16px auto 0;
}

.product-picker__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: 100%;
  overflow: auto;
  align-content: start;
  scrollbar-width: none;
}

.product-picker__grid::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.product-picker__card,
.product-picker__add {
  position: relative;
  width: 100%;
  height: 111px;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: #3a3a3a;
  color: #fff;
  overflow: hidden;
  text-align: left;
  font-family: inherit;
}

.product-picker__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-picker__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.product-picker__folder {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 79px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: url("/static/img/folder-mask.svg");
  -webkit-mask-image: url("/static/img/folder-mask.svg");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.product-picker__badge {
  position: absolute;
  top: 40px;
  left: 10px;
  width: 20px;
  height: 20px;
  z-index: 2;
}

.product-picker__foot {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.product-picker__name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 15px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.product-picker__share {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  background: transparent;
}

.product-picker__share img {
  width: 14px;
  height: 14px;
  display: block;
}

.product-picker__add {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-color, #e2ff01);
  cursor: pointer;
}

.product-picker__plus {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.product-picker__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 100px;
  gap: 16px;
  text-align: center;
}

.product-picker__empty[hidden],
.product-picker__status[hidden] {
  display: none;
}

.product-picker__empty-text {
  margin: 0;
  color: #818181;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.product-picker__empty-cta {
  max-width: 74px;
  min-height: 22px;
  line-height: 115%;
}

.product-picker__status {
  margin: 24px 0 0;
  color: #818181;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* Плашка настроек желания */
.product-settings__backdrop {
  background: rgba(13, 13, 13, 0.8);
}

.product-settings__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-height: 92%;
  padding: 0 15px 28px;
  border-top: none;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.product-settings__panel::before,
.product-settings__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  transform: translateZ(0);
}

.product-settings__panel::before {
  background-image: url("/static/img/glass-stroke-settings-sheet-tl.svg?v=1");
}

.product-settings__panel::after {
  background-image: url("/static/img/glass-stroke-settings-sheet-br.svg?v=1");
}

.product-settings__handle {
  flex-shrink: 0;
  margin: 12px auto 22px;
}

.product-settings__close {
  top: 30px;
  right: 15px;
  z-index: 3;
  background: transparent;
  font-size: 22px;
}

.product-settings__title,
.product-settings__subtitle,
.product-settings__note {
  position: relative;
  z-index: 1;
  align-self: stretch;
  text-align: start;
}

.product-settings__title {
  margin: 0 0 4px;
  color: #fff;
}

.product-settings__subtitle {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #818181;
}

.product-settings__list {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  margin-inline: -15px;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.product-settings__row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  padding: 10px 15px;
  color: #fff;
  font-family: inherit;
  text-align: start;
}

.product-settings__row + .product-settings__row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-settings__row:focus-visible {
  outline: 2px solid var(--accent-color, #e2ff01);
  outline-offset: -2px;
}

.product-settings__tile {
  display: grid;
  place-items: center;
  width: 39px;
  height: 40px;
  border-radius: 10px;
  background: #1e1e1e;
}

.product-settings__icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.product-settings__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.product-settings__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.product-settings__hint {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #818181;
}

.product-settings__row--danger .product-settings__label {
  color: #ffb1b1;
}

.product-settings__chevron {
  flex: 0 0 11px;
  width: 11px;
  height: 22px;
}

.product-settings__chevron--danger {
  background-color: #ffb1b1;
  -webkit-mask: url("/static/img/back.svg") center / contain no-repeat;
  mask: url("/static/img/back.svg") center / contain no-repeat;
}

.product-settings__note {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #818181;
}
