@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  --bg: #030014;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.1);
  --primary: #7928CA;
  --secondary: #FF0080;
  --cyan: #00DFD8;
  --text: #ffffff;
  --dim: #8892b0;
  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(0, 223, 216, 0.13), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(255, 0, 128, 0.12), transparent 34%);
}

button,
a,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header,
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  background: rgba(3, 0, 20, 0.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand,
.site-nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #020617;
  background: linear-gradient(135deg, var(--cyan), var(--primary), var(--secondary));
  border-radius: 8px;
}

.site-nav {
  gap: 18px;
}

.site-nav a {
  color: var(--dim);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--cyan);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.84fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 108px);
  padding: 36px 0 52px;
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.9;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--dim);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.ghost-link,
.chip,
.card-action,
.modal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.ghost-link,
.chip {
  color: var(--dim);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}

.hero-media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, var(--panel-strong), rgba(255,255,255,0.018));
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(121, 40, 202, 0.18);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 4rem;
  font-weight: 800;
}

.catalog-shell,
.contact-band {
  margin-bottom: 34px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.014));
  border: 1px solid var(--border);
  border-radius: 8px;
}

.catalog-head,
.contact-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.catalog-head h2,
.section-line h2,
.contact-band h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.catalog-head span {
  display: block;
  margin-top: 6px;
  color: var(--dim);
}

.search-box {
  display: grid;
  gap: 8px;
  width: min(360px, 100%);
}

.search-box span {
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: 0;
}

.search-box input:focus {
  border-color: var(--cyan);
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.chip {
  min-height: 36px;
  padding: 8px 13px;
}

.chip.active {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-color: transparent;
}

.featured-row {
  margin-bottom: 28px;
}

.section-line {
  margin-bottom: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 16px;
}

.product-card {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.product-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.04);
  border: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.product-body span,
.product-body p {
  color: var(--dim);
}

.product-body span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--cyan);
  font-weight: 800;
}

.card-action {
  min-height: 38px;
  padding: 8px 14px;
}

.empty-state {
  padding: 60px 20px;
  color: var(--dim);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.contact-band {
  align-items: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.product-modal {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  width: min(960px, 100%);
  max-height: 88vh;
  overflow: hidden;
  background: #0d0620;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.modal-gallery {
  display: grid;
  gap: 10px;
  padding: 16px;
  overflow: auto;
}

.modal-main-image {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0,0,0,0.28);
  border-radius: 8px;
}

.modal-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb {
  width: 72px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.thumb.active {
  border-color: var(--cyan);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  overflow: auto;
  border-left: 1px solid var(--border);
}

.modal-info p {
  margin: 0;
  color: var(--dim);
  line-height: 1.65;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.close-modal {
  width: 36px;
  height: 36px;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.spec-list {
  display: grid;
  gap: 8px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
}

.spec-item span {
  color: var(--dim);
}

@media (max-width: 840px) {
  .hero,
  .product-modal {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    aspect-ratio: 16 / 11;
  }

  .catalog-head,
  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-info {
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .catalog-shell,
  .contact-band {
    padding: 18px;
  }
}
