:root {
  --bg-base: #f6efe7;
  --bg-deep: #0f172a;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --text-strong: #162033;
  --text-muted: #637089;
  --accent: #e07a5f;
  --accent-deep: #bc5b41;
  --accent-soft: rgba(224, 122, 95, 0.14);
  --shadow-strong: 0 32px 80px rgba(15, 23, 42, 0.16);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", sans-serif;
  color: var(--text-strong);
  background:
    radial-gradient(circle at top left, rgba(224, 122, 95, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(21, 101, 192, 0.14), transparent 28%),
    linear-gradient(180deg, #fcf8f3 0%, var(--bg-base) 56%, #efe5da 100%);
}

@supports (-webkit-touch-callout: none) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

.site-body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.site-glow {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.site-glow--navy {
  top: -10rem;
  right: -10rem;
  background: rgba(30, 64, 175, 0.18);
}

.site-glow--sunset {
  bottom: -16rem;
  left: -8rem;
  background: rgba(224, 122, 95, 0.26);
}

.site-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 90%);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.profile-panel,
.filter-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(20px);
}

.profile-panel {
  border-radius: 34px;
  padding: 26px;
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -30% -10%;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(224, 122, 95, 0.14), transparent 68%);
  pointer-events: none;
}

.profile-panel__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.action-pill--dark {
  background: var(--bg-deep);
  color: #fff;
}

.action-pill--light {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-strong);
  border-color: rgba(22, 32, 51, 0.08);
}

.action-pill__icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.action-pill--dark .action-pill__icon {
  fill: currentColor;
}

.profile-panel__body {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.profile-panel__avatar-wrap {
  position: relative;
  width: 164px;
  height: 164px;
}

.profile-panel__avatar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(224, 122, 95, 0.24), rgba(15, 23, 42, 0.16));
  transform: rotate(8deg);
}

.profile-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(47, 64, 96, 0.92));
}

.profile-avatar--placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow--soft {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-strong);
}

.profile-title {
  margin: 16px 0 8px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.profile-handle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
}

.profile-slogan {
  margin: 14px 0 10px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-strong);
}

.profile-description,
.section-copy,
.results-bar__hint,
.list-state__copy,
.site-footer p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.filter-panel {
  margin-top: 22px;
  border-radius: 28px;
  padding: 26px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.filter-panel > .search-panel {
  margin-bottom: 18px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 0 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(22, 32, 51, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.search-field__icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-muted);
  flex: none;
}

.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 1rem;
  outline: none;
}

.search-field input::placeholder {
  color: #8a94a9;
}

.search-btn,
.reset-btn,
.product-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.search-btn {
  min-height: 68px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--bg-deep), #263246);
  color: #fff;
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.18);
}

.search-btn:hover,
.reset-btn:hover,
.product-card__cta:hover {
  transform: translateY(-2px);
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.results-bar__eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}

.results-bar__title {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.2;
  font-weight: 800;
}

.tabs-shell {
  margin: 0 -4px;
  padding: 4px;
}

.tab-track {
  display: flex;
  gap: 10px;
  min-width: max-content;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(22, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-strong);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.tab-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.tab-btn.is-active {
  background: linear-gradient(135deg, var(--bg-deep), #243041);
  color: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.reset-btn {
  min-height: 52px;
  padding: 0 18px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-strong);
}

.reset-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  min-height: 100%;
}

.product-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.08)),
    linear-gradient(135deg, rgba(224, 122, 95, 0.08), rgba(15, 23, 42, 0.08));
  overflow: hidden;
}

.product-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.08));
  pointer-events: none;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-card__image {
  transform: scale(1.06);
}

.product-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.product-card__category {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 700;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.product-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-card__cta {
  min-height: 42px;
  padding: 0 14px;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-strong);
  font-size: 0.9rem;
}

.skeleton-card {
  animation: pulse 1.3s ease-in-out infinite;
}

.skeleton-card__media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, rgba(22, 32, 51, 0.06), rgba(22, 32, 51, 0.11), rgba(22, 32, 51, 0.06));
}

.skeleton-card__content {
  padding: 18px;
}

.skeleton-card__line {
  height: 13px;
  border-radius: 999px;
  background: rgba(22, 32, 51, 0.08);
  margin-top: 12px;
}

.skeleton-card__line--short {
  width: 42%;
  margin-top: 0;
}

.skeleton-card__line--tiny {
  width: 58%;
}

.list-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 24px;
  border-radius: 26px;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.list-state--end {
  color: var(--text-muted);
  font-weight: 600;
}

.list-state__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-strong);
  font-size: 1.3rem;
}

.list-state__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.site-footer {
  margin-top: 22px;
  padding: 0 6px;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.fade-in {
  animation: fadeIn 0.45s ease;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.62;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100%, calc(100% - 16px));
    padding-top: 16px;
  }

  .profile-panel,
  .filter-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .profile-panel__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
  }

  .profile-panel__body,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .results-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-panel__body {
    gap: 18px;
  }

  .profile-panel__avatar-wrap {
    width: 132px;
    height: 132px;
  }

  .profile-title {
    font-size: 2.2rem;
  }

  .action-pill {
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
  }

  .search-btn,
  .reset-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .action-pill {
    gap: 8px;
    font-size: 0.88rem;
    min-height: 42px;
    padding: 9px 12px;
  }

  .action-pill__icon {
    width: 0.9rem;
    height: 0.9rem;
  }

  .tab-btn {
    padding: 12px 16px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card__content {
    padding: 14px;
  }

  .product-card__title {
    font-size: 0.98rem;
  }
}

@media (max-width: 390px) {
  .profile-panel__actions {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}
