.nail-feed {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 14px 90px;
}

.nail-feed-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
  padding: 28px;
  border: 1px solid #eadfe6;
  border-radius: 26px;

    background: url('/assets/images/nail-hero-shop.webp') center right / cover no-repeat;
  box-shadow: var(--nail-shadow);
}

.nail-feed-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -76px;
  width: 210px;
  height: 210px;
  border: 34px solid rgba(151, 47, 114, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.nail-feed-hero__content {
  position: relative;
  z-index: 1;
}

.nail-feed-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(151, 47, 114, 0.1);
  color: var(--nail-brand-dark);
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nail-feed-hero h1 {
  max-width: 530px;
  margin: 0 0 11px;
  font-size: clamp(34px, 7vw, 36px);
  line-height: 1.02;
  letter-spacing: -1.7px;
}

.nail-feed-hero p {
  max-width: 560px;
  margin: 0;
  color: #5f575d;
  font-size: 17px;
  line-height: 1.5;
}

.nail-feed-hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.nail-feed-hero__privacy {
  max-width: 190px;
  color: var(--nail-muted);
  font-size: 12px;
  line-height: 1.35;
}

.nail-feed-hero__stat {
  position: relative;
  z-index: 1;
  padding: 18px 14px;
  border: 1px solid rgba(151, 47, 114, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  backdrop-filter: blur(8px);
}

.nail-feed-hero__stat strong {
  display: block;
  color: var(--nail-brand);
  font-size: 32px;
  line-height: 1;
}

.nail-feed-hero__stat span {
  display: block;
  margin-top: 7px;
  color: var(--nail-muted);
  font-size: 12px;
  font-weight: 700;
}

.nail-feed-tools {
  margin-bottom: 16px;
  padding: 17px;
  border: 1px solid var(--nail-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(43, 28, 38, 0.055);
}

.nail-feed-tools__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.nail-feed-tools__heading span,
.nail-feed-list-heading span {
  display: block;
  margin-bottom: 3px;
  color: var(--nail-brand);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nail-feed-tools__heading h2,
.nail-feed-list-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.nail-feed-tools__heading small {
  color: var(--nail-muted);
  font-size: 12px;
}

.nail-filter-bar {
  display: grid;
  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(120px, 0.85fr)
    minmax(125px, 0.85fr)
    92px;
  gap: 9px;
}

.nail-filter-bar label,
.nail-filter-picker-wrap {
  min-width: 0;
}

.nail-filter-bar input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--nail-border);
  border-radius: 14px;
  background: #faf9fa;
  color: var(--nail-text);
  font-size: 16px;
  outline: none;
}

.nail-filter-bar input:focus {
  border-color: var(--nail-brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(151, 47, 114, 0.09);
}

.nail-filter-picker {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--nail-border);
  border-radius: 14px;
  background: #faf9fa;
  color: var(--nail-text);
  font: inherit;
  font-size: 16px;
  text-align: left;
}

.nail-filter-picker:focus-visible {
  border-color: var(--nail-brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(151, 47, 114, 0.09);
  outline: 0;
}

.nail-filter-picker__chevron {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nail-filter-submit {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: #201d20;
  color: #fff;
  font-weight: 800;
}

.nail-feed-list-heading {
  padding: 3px 4px 11px;
}

.nail-feed-list {
  display: grid;
  gap: 14px;
}

.nail-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(24, 17, 22, 0.42);
  opacity: 0;
  transition: opacity 0.22s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.nail-picker-overlay.is-open {
  opacity: 1;
}

.nail-picker-sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1210;
  width: 100%;
  max-height: min(78dvh, 680px);
  padding: 8px 0 calc(12px + env(safe-area-inset-bottom));
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -18px 60px rgba(30, 20, 27, 0.2);
  transform: translateY(105%);
  transition: transform 0.22s ease;
}

.nail-picker-sheet.is-open {
  transform: translateY(0);
}

.nail-picker-sheet__handle {
  width: 38px;
  height: 5px;
  margin: 0 auto 5px;
  border-radius: 99px;
  background: #d6cdd3;
}

.nail-picker-sheet__header {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 4px 18px 9px;
  border-bottom: 1px solid #eee7eb;
}

.nail-picker-sheet__header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.nail-picker-sheet__close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f5eef2;
  color: #4b3c46;
  font-size: 26px;
  line-height: 1;
}

.nail-picker-sheet__list {
  max-height: calc(
    min(78dvh, 680px) - 76px - env(safe-area-inset-bottom)
  );
  padding: 6px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.nail-picker-sheet__list--short {
  padding-bottom: 10px;
}

.nail-picker-option {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid #f1ecef;
  background: #fff;
  color: #1d191c;
  font: inherit;
  font-size: 17px;
  text-align: left;
}

.nail-picker-option:last-child {
  border-bottom: 0;
}

.nail-picker-option:active {
  background: #faf4f8;
}

.nail-picker-option__check {
  flex: 0 0 auto;
  color: var(--nail-brand);
  font-size: 20px;
  font-weight: 800;
  opacity: 0;
}

.nail-picker-option.is-selected {
  color: var(--nail-brand-dark);
  font-weight: 750;
}

.nail-picker-option.is-selected .nail-picker-option__check {
  opacity: 1;
}

.nail-picker-open {
  overflow: hidden;
  touch-action: none;
}

@media (min-width: 651px) {
  .nail-picker-sheet {
    right: 50%;
    left: auto;
    width: min(520px, calc(100% - 32px));
    border-radius: 24px;
    transform: translate(50%, 105%);
  }

  .nail-picker-sheet.is-open {
    transform: translate(50%, 0);
  }
}

@media (max-width: 650px) {
  .nail-feed {
    padding: 0 0 calc(100px + env(safe-area-inset-bottom));
  }

  .nail-feed-hero {
    grid-template-columns: 1fr;
    margin: 0 0 10px;
    padding: 24px 20px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;

        background-position: 68% center;

}
  .nail-feed-hero h1 {
    max-width: 430px;
    font-size: 28px;
  }

  .nail-feed-hero p {
    font-size: 16px;
  }

  .nail-feed-hero__stat {
    display: none;
  }

  .nail-feed-tools {
    margin: 0 12px 16px;
    padding: 15px;
    border-radius: 20px;
  }

  .nail-filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .nail-filter-bar__search {
    grid-column: 1 / -1;
  }

  .nail-filter-picker-wrap {
    grid-column: auto;
  }

  .nail-filter-submit {
    grid-column: 1 / -1;
    width: 100%;
  }

  .nail-feed-list-heading {
    padding: 2px 16px 11px;
  }

  .nail-feed-list {
    gap: 10px;
  }
}

@media (max-width: 390px) {
  .nail-feed-hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .nail-feed-hero__privacy {
    max-width: none;
  }

  .nail-filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .nail-filter-picker {
    padding: 0 12px;
  }

  .nail-filter-picker span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.nail-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

	    min-height: 0px;
    padding: 8px 20px;
    border: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--nail-brand), var(--nail-brand-dark));
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 9px 22px rgba(151, 47, 114, 0.2);
}


.nail-primary-button-icon {
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}