:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fafc;
  background: #080b18;
  font-synthesis: none;
  --muted: #aeb9cc;
  --accent: #f472b6;
  --line: rgba(255, 255, 255, .11);
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(circle at 50% -22%, rgba(236,72,153,.19), transparent 38rem), #080b18; }
a { color: inherit; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100% - 48px, 1280px); min-height: 80px; margin: auto; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border: 1px solid rgba(236,72,153,.45); border-radius: 11px; object-fit: cover; }
.brand span { display: grid; gap: 3px; }
.brand strong { font-size: .94rem; letter-spacing: .05em; }
.brand small { color: var(--accent); font-size: .66rem; font-weight: 700; letter-spacing: .12em; }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.site-header nav a:hover, .back-link:hover { color: #fff; }
.site-header nav .home-link { color: #fff; font-weight: 700; }
.catalog-page { width: min(100% - 48px, 1280px); min-height: calc(100vh - 152px); margin: auto; padding: 54px 0 80px; }
.catalog-intro { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--muted); font-size: .9rem; text-decoration: none; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 3.7rem); line-height: 1.08; letter-spacing: -.035em; }
.intro-copy { max-width: 620px; margin: 16px auto 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.catalog-browser { padding-top: 4px; }
.catalog-toolbar { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.search-field, .category-field { display: flex; min-height: 48px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(17,24,39,.82); color: #9ca3af; }
.search-field { width: min(100%, 520px); padding: 0 14px; }
.search-field input, .category-field select { min-width: 0; width: 100%; height: 46px; border: 0; outline: 0; background: transparent; color: #f8fafc; font: inherit; }
.search-field input::placeholder { color: #8b95a8; }
.category-field { width: min(100%, 240px); padding: 0 12px; }
.category-field select { cursor: pointer; }
.category-field option { color: #111827; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.results-heading { display: flex; justify-content: space-between; align-items: center; min-height: 32px; margin-bottom: 12px; }
.results-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(155deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); }
.product-image { display: grid; width: 100%; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; background: rgba(255,255,255,.035); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder { color: #8290a6; font-size: 2.4rem; }
.product-details { padding: 19px 20px 22px; }
.product-category { margin: 0 0 9px; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.product-details h2 { margin: 0 0 9px; font-size: 1.12rem; line-height: 1.4; }
.product-details p:last-child { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.state-message { margin: 24px 0; color: var(--muted); text-align: center; }
.error-state { color: #fca5a5; }
.state-message button { display: block; margin: 12px auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px 13px; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; width: min(100% - 48px, 1280px); margin: auto; padding: 23px 0; border-top: 1px solid var(--line); color: #8d98ab; font-size: .82rem; }
.site-footer a { color: #fff; font-weight: 700; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .site-header, .catalog-page, .site-footer { width: min(100% - 32px, 1280px); }
  .site-header { min-height: 72px; }
  .brand img { width: 38px; height: 38px; }
  .site-header nav { gap: 13px; }
  .site-header nav a { font-size: .8rem; }
  .site-header nav a:first-child, .site-header nav a:nth-child(2) { display: none; }
  .catalog-page { padding: 34px 0 58px; }
  .catalog-intro { margin-bottom: 28px; }
  .back-link { margin-bottom: 24px; }
  .intro-copy { font-size: .96rem; }
  .catalog-toolbar { flex-direction: column; }
  .search-field, .category-field { width: 100%; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; }
  .product-image { height: 100%; min-height: 142px; aspect-ratio: auto; }
  .product-details { align-self: center; padding: 15px; }
  .product-details h2 { font-size: 1rem; }
  .product-details p:last-child { font-size: .84rem; }
  .site-footer { flex-direction: column; }
}
