@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Russo+One&display=swap');

:root {
  --bg: #111315;
  --panel: #181c20;
  --panel-2: #222932;
  --line: #303944;
  --text: #f5f7fa;
  --muted: #a7b0bb;
  --accent: #f1f4f8;
  --danger: #d75f5f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  font-size: 15px;
}

button, input, textarea, select {
  font: inherit;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 13px clamp(18px, 5vw, 64px);
  background: rgba(17, 19, 21, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: "Russo One", Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 24px;
}

.nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  margin-right: auto;
  font-size: 15px;
}

.category-link span, .product-actions button, .admin-item button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0e1012;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(245, 247, 250, .18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 28px rgba(0,0,0,.16);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.cart-button:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 247, 250, .34);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
}

.cart-button:focus-visible {
  outline: 2px solid rgba(245,247,250,.7);
  outline-offset: 3px;
}

.cart-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-label {
  line-height: 1;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font-size: 14px;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: min(590px, calc(100vh - 68px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58) contrast(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,19,21,.86), rgba(17,19,21,.35), rgba(17,19,21,.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  padding: 0 clamp(18px, 6vw, 84px) clamp(36px, 7vw, 76px);
}

.hero-content p, .section-head p, .info-band p, .admin-top p, .eyebrow, .order-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  font-weight: 800;
}

h1, h2, h3 { margin: 0; line-height: 1.08; }
.hero h1, .section h2, .info-band h2, .order-copy h2 {
  font-family: "Russo One", "Manrope", Arial, sans-serif;
  font-weight: 400;
}
.hero h1 { font-size: clamp(34px, 6vw, 74px); max-width: 760px; }
.section h2, .info-band h2 { font-size: clamp(26px, 3.4vw, 42px); }

.hero-actions, .product-actions, .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}

.button.ghost {
  background: rgba(255,255,255,.04);
  color: var(--text);
}

.section {
  padding: clamp(34px, 5.8vw, 72px) clamp(18px, 5vw, 64px);
}

.section-head {
  margin-bottom: 26px;
}

.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.is-hidden {
  display: none !important;
}

.category-grid, .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.category-card, .product-card, .login-panel, .admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.category-card {
  padding: 12px;
  display: grid;
  gap: 14px;
  text-align: center;
}

.category-link {
  display: grid;
  gap: 14px;
  color: var(--text);
}

.category-image, .product-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: #141719;
  border-radius: 6px;
  overflow: hidden;
}

.category-image img, .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.category-card h3, .product-card h3 { font-size: 19px; }
.category-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.catalog-page main {
  min-height: calc(100vh - 94px);
}

.catalog-page .products-section {
  padding-top: clamp(30px, 5vw, 56px);
}

.catalog-page .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 300px));
  align-items: start;
  justify-content: start;
}

.catalog-page .product-card {
  width: 100%;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card .product-image {
  aspect-ratio: 4 / 3;
}

.product-body {
  display: grid;
  gap: 9px;
  padding: 13px;
}

.product-body p, .details-layout p, .info-band li {
  color: var(--muted);
  line-height: 1.55;
}

.product-body p {
  margin: 0;
  font-size: 14px;
}

.product-body strong, .details-layout strong {
  font-size: 18px;
}

.product-actions button {
  flex: 1 1 112px;
}

.info-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 520px);
  gap: 28px;
  padding: clamp(36px, 6vw, 76px) clamp(18px, 5vw, 64px);
  background: var(--panel-2);
}

.process-band {
  padding: clamp(36px, 6vw, 72px) clamp(18px, 5vw, 64px);
  background: var(--panel-2);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-grid article {
  border-left: 1px solid var(--line);
  padding: 8px 18px 4px;
}

.process-grid span {
  display: block;
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 1.5px;
}

.process-grid h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.process-grid p, .order-copy span, .cart-note, .footer p {
  color: var(--muted);
  line-height: 1.55;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 800;
}

.order-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(24px, 5vw, 70px);
  align-items: stretch;
  padding: clamp(40px, 6vw, 78px) clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.order-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}

.order-copy h2 {
  font-size: clamp(30px, 4.2vw, 52px);
  margin-bottom: 18px;
}

.order-card {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.order-card strong {
  font-size: 22px;
  margin-bottom: 8px;
}

.order-card span {
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.order-card .button {
  margin-top: 10px;
}

.footer {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 26px clamp(18px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
}

.modal, .cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(0,0,0,.62);
}

.modal.open, .cart-drawer.open { display: block; }

.modal-panel, .cart-panel {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 20px 80px rgba(0,0,0,.42);
}

.details-panel {
  inset: 6vh clamp(12px, 8vw, 150px);
  overflow: auto;
  padding: 0;
  border-radius: 8px;
}

.cart-panel {
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100%;
  padding: 26px;
  overflow: auto;
}

.icon-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #0e1012;
  color: var(--text);
  font-size: 25px;
  cursor: pointer;
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(240px, 390px) minmax(0, 1fr);
  gap: 0;
  min-height: 520px;
  padding-top: 0;
}

.details-layout img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  background: #111416;
  border-radius: 0;
  padding: 18px;
}

.details-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
}

.details-info h2 {
  font-family: "Russo One", "Manrope", Arial, sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 400;
}

.details-price {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 5px;
  background: var(--accent);
  color: #111;
  font-weight: 900;
}

.details-description {
  margin: 0;
  max-width: 680px;
}

.details-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.details-spec {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
}

.details-spec h3 {
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.details-spec p {
  margin: 0;
  font-size: 14px;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.cart-note {
  margin: 8px 0 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.cart-item span { display: block; color: var(--muted); margin-top: 5px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: #0e1012;
  color: var(--text);
  border-radius: 4px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0d0f11;
  color: var(--text);
  padding: 12px;
  outline: none;
}

.order-form, .product-form {
  display: grid;
  gap: 14px;
}

.form-status { min-height: 22px; color: var(--muted); }
.order-success {
  padding: 12px;
  border: 1px solid rgba(245,247,250,.18);
  border-radius: 7px;
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight: 800;
}
.empty { color: var(--muted); }
.hidden { display: none !important; }

.admin-body {
  min-height: 100vh;
  background: #0d0f11;
}

.admin-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,.08), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.06), transparent 32%);
}

.admin-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 28px));
  margin: 34px auto;
}

.login-panel, .admin-panel {
  border: 1px solid rgba(245,247,250,.12);
  border-radius: 10px;
  background: rgba(24, 28, 32, .92);
  box-shadow: 0 24px 90px rgba(0,0,0,.35);
}

.login-panel {
  width: min(440px, 100%);
  margin: 12vh auto;
  padding: clamp(24px, 5vw, 40px);
}

.login-brand {
  margin-bottom: 28px;
  font-family: "Russo One", "Manrope", Arial, sans-serif;
  font-size: 34px;
  letter-spacing: 3px;
}

.login-panel h1,
.admin-top h1 {
  font-family: "Russo One", "Manrope", Arial, sans-serif;
  font-weight: 400;
}

.login-panel p { color: var(--muted); line-height: 1.5; }

.admin-panel { padding: clamp(18px, 3vw, 30px); }
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-top h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 18px;
  align-items: start;
}

.product-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
}

.wide { grid-column: 1 / -1; }

.admin-card-head {
  display: grid;
  gap: 6px;
  margin-bottom: 4px;
}

.admin-card-head strong {
  color: var(--text);
  font-size: 18px;
}

.admin-card-head span {
  color: var(--muted);
  font-size: 13px;
}

.admin-products-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13,15,17,.72);
}

.admin-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #141719;
  border-radius: 5px;
}

.admin-item span { display: block; color: var(--muted); margin-top: 5px; }
.admin-item-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
}

.admin-item button {
  flex: 1;
}

.admin-item button:last-child { color: var(--danger); }

@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; gap: 14px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .cart-button { min-height: 42px; padding-inline: 12px; }
  .cart-label { display: none; }
  .hero { min-height: 580px; }
  .info-band, .details-layout, .product-form, .process-grid, .order-panel, .footer, .admin-layout { grid-template-columns: 1fr; }
  .details-specs { grid-template-columns: 1fr; }
  .details-layout img { min-height: 260px; height: 260px; }
  .details-panel { inset: 5vh 12px; }
  .split-head, .admin-top { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
  .admin-item { grid-template-columns: 64px 1fr; }
  .admin-item button { grid-column: span 1; }
}
