
.home-picker__photo {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.home-picker__photo-text {
  margin: 0;
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.3;
}

.home-picker__results {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-picker__results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.home-picker__results-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.home-picker__results-sub {
  font-size: 15px;
  color: var(--color-muted);
}

.home-picker__results-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.home-picker__cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 168px;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--pad-x));
  padding: 2px var(--pad-x);
  -webkit-overflow-scrolling: touch;
}

.home-pk-card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--color-bg);
  scroll-snap-align: start;
}

.home-pk-card.is-best {
  border-color: var(--color-accent);
}

.home-pk-card__badge {
  position: absolute;
  top: -1px;
  left: -1px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px 0 6px 0;
  background: var(--color-grad);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  z-index: 1;
}

.home-pk-card__img {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  cursor: pointer;
}

.home-pk-card__img img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.home-pk-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.home-pk-card__tag {
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 10px;
  display: flex;
  align-items: center;
}

.home-pk-card__name {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.2;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.home-pk-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.home-pk-card__old {
  font-size: 10px;
  color: var(--color-muted);
  text-decoration: line-through;
  min-height: 11px;
}

.home-pk-card__price {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.home-pk-card__cart {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.home-pk-card__cart.is-added {
  background: var(--color-success);
}

.home-picker__empty {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.home-picker__empty-title {
  font-size: 20px;
  font-weight: 500;
}

.home-picker__empty-text {
  font-size: 15px;
  color: var(--color-muted);
}

.home-picker__backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
}

/* Popular */
.home-popular {
  margin-top: 44px;
}

.home-popular__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  gap: 12px;
}

.home-popular__tabs {
  display: flex;
  gap: 6px;
}

.home-popular__tab {
  flex: none;
  height: 36px;
  padding: 0 11px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-fg);
  font: 400 13px var(--font);
  cursor: pointer;
}

.home-popular__tab.is-active {
  border-color: transparent;
  background: var(--color-grad);
  color: #fff;
}

.home-popular__arrows {
  display: none;
  gap: 4px;
}

.home-popular__panel {
  margin-top: 12px;
}

.home-popular__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--pad-x));
  padding: 0 var(--pad-x);
  scroll-padding: 0 var(--pad-x);
  -webkit-overflow-scrolling: touch;
}

.home-popular__item {
  flex: none;
  width: 180px;
  scroll-snap-align: start;
}

.home-popular__item > a.product-card {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  padding: 10px;
}

.product-card--home .product-card__img {
  aspect-ratio: auto;
  height: 140px;
}

.product-card--home .product-card__img img {
  height: 72%;
  width: 100%;
  object-fit: contain;
}

.product-card--home .product-card__wish {
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.product-card--home .product-card__stars {
  display: none;
}

.product-card--home .badge--in {
  background: #e9f9ec;
  color: #34c759;
}

.product-card--home .product-card__title {
  margin-top: 14px;
  font-size: 14px;
}

.product-card--home .product-card__old {
  font-size: 11px;
  color: #aeaeae;
  text-decoration: none;
}

.product-card--home .product-card__price {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.02em;
}

.product-card--home .product-card__cart {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 4px;
  background: #f97f0c;
  color: #fff;
}

.product-card--home .product-card__cart:hover,
.product-card--home .product-card__cart:focus-visible {
  background: #ff2e2e;
  border: 0;
  color: #fff;
}

/* Blog */
.home-blog {
  margin-top: 44px;
}

.home-blog__scroll {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  margin: 14px calc(-1 * var(--pad-x)) 0;
  padding: 0 var(--pad-x);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.home-blog-card {
  flex: none;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--color-fg);
  scroll-snap-align: start;
}

.home-blog-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.home-blog-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 0 10px;
}

.home-blog-card__title {
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.home-blog-card__go {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  display: grid;
  place-items: center;
}

/* Photo modal */
.home-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  padding-bottom: var(--safe-bottom);
}

.home-photo-modal[hidden] {
  display: none;
}

.home-photo-modal.is-open {
  display: flex;
}

.home-photo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.home-photo-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-bg);
  border-radius: 16px 16px 0 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-photo-modal__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.home-photo-modal__lead {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.2;
}

.home-photo-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.home-photo-modal__steps {
  list-style: none;
  margin: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-lg);
}

.home-photo-modal__steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
}

.home-photo-modal__step-n {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-grad);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.home-photo-modal__step-t {
  font-size: 13px;
  font-weight: 500;
}

.home-photo-modal__step-s {
  font-size: 11px;
  color: var(--color-muted);
  line-height: 1.2;
}

.home-photo-drop__btn {
  width: 100%;
  min-height: 150px;
  border: 2px dashed var(--color-accent);
  border-radius: var(--radius-lg);
  background: #fff8f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  font-family: var(--font);
  color: var(--color-fg);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.home-photo-drop.is-over .home-photo-drop__btn {
  border-color: var(--color-danger);
  background: #ffe3cc;
}

.home-photo-drop__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  display: grid;
  place-items: center;
}

.home-photo-drop__title {
  font-size: 16px;
  font-weight: 500;
}

.home-photo-drop__hint {
  font-size: 13px;
  color: var(--color-muted);
}

.home-photo-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}

.home-photo-previews__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}

.home-photo-previews__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-photo-previews__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.home-photo-previews__add {
  aspect-ratio: 1;
  border: 2px dashed var(--color-accent);
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font: 500 22px var(--font);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
