* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #fff;
  background: #09090b;
  font-family: Inter, system-ui, Arial, sans-serif;
}

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

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

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 6vw;
  background: rgba(9, 9, 11, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 24px;
  font-weight: 900;
}

.brand span,
.tag,
.back-link,
.steps span,
.status-msg {
  color: #67e8f9;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar nav a {
  color: #ddd;
  font-size: 14px;
}

.admin-link {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
}

.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 90px 6vw;
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.8) 47%, rgba(0, 0, 0, 0.38)),
    url("assets/hero-3d-printing.png") center right / cover no-repeat;
}

.hero-content {
  max-width: 800px;
}

.pill,
.section-kicker {
  display: inline-flex;
  padding: 7px 14px;
  color: #ddd;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.hero h1 {
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
}

.hero p {
  color: #ddd;
  font-size: 20px;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.actions.center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  font-weight: 800;
}

.btn.primary {
  color: #08080a;
  background: #fff;
}

.btn.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 70px 6vw;
}

.section.dark {
  max-width: none;
  background: #111113;
}

.section.dark > * {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.section h2,
.admin-shell h2 {
  margin: 12px 0 30px;
  font-size: clamp(30px, 4vw, 48px);
}

.grid {
  display: grid;
  gap: 26px;
}

.categories,
.products,
.subcategories {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.fake-img,
.sub-img,
.detail-gallery {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  align-items: flex-end;
  padding: 22px;
  background: linear-gradient(135deg, #0f172a, #155e75 45%, #111827);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-box,
.carousel {
  padding: 0;
  overflow: hidden;
  background: #111113;
}

.photo-box img,
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease;
}

.carousel-img.active {
  opacity: 1;
}

.carousel::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  content: "";
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.fake-img.cine,
.sub-img.cine,
.detail-gallery.cine {
  background: linear-gradient(135deg, #020617, #7c2d12 45%, #111827);
}

.fake-img.gift,
.sub-img.gift,
.detail-gallery.gift {
  background: linear-gradient(135deg, #312e81, #be185d 45%, #111827);
}

.fake-img.sport,
.sub-img.sport,
.detail-gallery.sport {
  background: linear-gradient(135deg, #111, #27272a 45%, #facc15);
}

.fake-img.drone,
.sub-img.drone,
.detail-gallery.drone {
  background: linear-gradient(135deg, #020617, #2563eb 45%, #111827);
}

.fake-img.company,
.sub-img.company,
.detail-gallery.company {
  background: linear-gradient(135deg, #111827, #0f766e 45%, #09090b);
}

.fake-img.led,
.sub-img.led,
.detail-gallery.led {
  background: linear-gradient(135deg, #020617, #06b6d4 45%, #111827);
}

.fake-img.home,
.sub-img.home,
.detail-gallery.home {
  background: linear-gradient(135deg, #18181b, #65a30d 45%, #09090b);
}

.fake-img span,
.sub-img span,
.detail-gallery span {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

.card-body {
  padding: 22px;
}

.card h3 {
  margin: 6px 0 10px;
  font-size: 22px;
}

.card p,
.admin-card p,
.admin-tab p,
.contact p,
.steps p {
  color: #c9c9d1;
  line-height: 1.55;
}

.tag {
  display: inline-flex;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 20px;
}

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

.product-meta div {
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
}

.product-meta dt {
  color: #9ca3af;
  font-size: 11px;
  text-transform: uppercase;
}

.product-meta dd {
  margin: 4px 0 0;
  color: #fff;
  font-size: 13px;
}

.empty-state {
  padding: 28px;
  color: #c9c9d1;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.detail-gallery {
  height: auto;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  overflow: hidden;
}

.detail-copy {
  padding: 28px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
}

.detail-copy h2 {
  margin-bottom: 18px;
}

.detail-copy p {
  color: #c9c9d1;
  line-height: 1.6;
}

.detail-meta {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.detail-meta div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-meta dt {
  color: #9ca3af;
  font-size: 12px;
  text-transform: uppercase;
}

.detail-meta dd {
  margin: 0;
  color: #fff;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  overflow-y: auto;
}

.modal-backdrop[hidden] {
  display: none;
}

.edit-modal {
  width: min(1100px, 100%);
  max-height: 92vh;
  overflow-y: auto;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.photo-keep img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
}

.photo-keep {
  display: grid;
  gap: 8px;
  color: #c9c9d1;
  font-size: 13px;
}

.photo-keep span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.photo-keep input {
  width: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.steps div {
  padding: 25px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

.steps span {
  font-size: 34px;
  font-weight: 900;
}

.contact,
.footer {
  text-align: center;
}

.footer {
  padding: 35px 6vw;
  color: #c9c9d1;
  background: #050506;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  padding: 14px 18px;
  color: #07130a;
  background: #25d366;
  border-radius: 999px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  font-weight: 900;
}

.page {
  display: block;
}

.category-page,
.admin-page {
  display: none;
}

.category-page:target,
.admin-page:target {
  display: block;
}

.category-page:target ~ .home-page,
.admin-page:target ~ .home-page,
body:has(.category-page:target) .home-page,
body:has(.admin-page:target) .home-page {
  display: none;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  font-weight: 800;
}

.admin-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 6vw;
}

.admin-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.admin-login {
  max-width: 520px;
  margin: 70px auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  color: #c9c9d1;
  font-size: 13px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.full-field {
  grid-column: 1 / -1;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.admin-tab {
  padding: 20px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
}

.admin-tab strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.admin-panel {
  margin-top: 28px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  color: #ddd;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.mini-btn {
  display: inline-flex;
  margin: 2px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.mini-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.mini-btn.danger:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.45);
}

.admin-table tr.editing td:not(:last-child) {
  background: rgba(103, 232, 249, 0.08);
  outline: 1px dashed rgba(103, 232, 249, 0.35);
  outline-offset: -6px;
}

.admin-table tr.selected-row td {
  background: rgba(103, 232, 249, 0.12);
}

.admin-table tr.editing td[contenteditable="true"] {
  cursor: text;
}

.admin-error {
  display: none;
  color: #fca5a5;
}

.admin-ok {
  display: none;
}

.admin-page.unlocked .admin-login {
  display: none;
}

.admin-page.unlocked .admin-ok {
  display: block;
}

.admin-page.unlocked .admin-shell {
  max-width: none;
  padding: 0;
}

.admin-dashboard {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 260px 1fr;
  color: #0b1437;
  background: #f6f8fc;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 28px 14px;
  background: #fff;
  border-right: 1px solid #e5eaf3;
}

.admin-logo {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  padding: 0 14px 30px;
}

.admin-logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: #075cff;
  border-radius: 10px;
  font-weight: 900;
}

.admin-logo strong {
  color: #090f2e;
  font-size: 24px;
  line-height: 1;
}

.admin-logo small {
  grid-column: 2;
  color: #63708a;
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu a,
.admin-logout {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  color: #243454;
  border-radius: 8px;
  font-weight: 800;
}

.admin-menu a.active,
.admin-menu a:hover {
  color: #075cff;
  background: #eef4ff;
}

.admin-logout {
  margin-top: auto;
  border-top: 1px solid #e5eaf3;
  border-radius: 0;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e5eaf3;
  backdrop-filter: blur(12px);
}

.admin-menu-button {
  color: #0b1437;
  background: transparent;
  border: 0;
  font-size: 26px;
}

.admin-breadcrumb {
  flex: 1;
  color: #243454;
  font-weight: 800;
}

.admin-breadcrumb span {
  margin: 0 12px;
  color: #8792a8;
}

.admin-breadcrumb strong {
  color: #075cff;
}

.admin-user {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0b1437;
  font-weight: 800;
}

.admin-user span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: #e9edf5;
  border-radius: 999px;
}

.admin-content {
  padding: 28px 34px 42px;
}

.admin-title h2 {
  margin: 0;
  color: #0b1437;
  font-size: clamp(28px, 3vw, 38px);
}

.admin-title p,
.table-head p {
  margin-top: 6px;
  color: #53617c;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.admin-summary article {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 132px;
  padding: 22px;
  background: #fff;
  border: 1px solid #e5eaf3;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.admin-summary span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #075cff, #003bd1);
  border-radius: 12px;
  font-size: 30px;
  font-weight: 900;
}

.admin-summary article:nth-child(3) span {
  background: linear-gradient(135deg, #7c3aed, #5317c7);
}

.admin-summary article:nth-child(4) span {
  background: linear-gradient(135deg, #10b981, #059669);
}

.admin-summary strong,
.admin-summary small {
  display: block;
}

.admin-summary strong {
  color: #0b1437;
  font-size: 17px;
}

.admin-summary small {
  margin-top: 6px;
  color: #53617c;
  line-height: 1.35;
}

.admin-product-grid {
  display: grid;
  grid-template-columns: minmax(460px, 0.92fr) minmax(560px, 1.08fr);
  gap: 22px;
  align-items: start;
}

.admin-dashboard .admin-card {
  color: #0b1437;
  background: #fff;
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.slim-tabs {
  display: flex;
  gap: 28px;
  margin: -8px -8px 22px;
  padding: 0 0 14px;
  border-bottom: 1px solid #e5eaf3;
}

.slim-tabs button {
  color: #53617c;
  background: transparent;
  border: 0;
  font-weight: 900;
}

.slim-tabs .tab-active {
  color: #075cff;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  color: #0b1437;
}

.form-section-title span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #075cff;
  border: 2px solid #075cff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.admin-dashboard .field label {
  color: #0b1437;
  font-weight: 800;
}

.admin-dashboard .field input,
.admin-dashboard .field textarea,
.admin-dashboard .field select,
.table-filters input,
.table-filters select {
  color: #0b1437;
  background: #fff;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
}

.admin-dashboard .field textarea {
  min-height: 92px;
}

.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.upload-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.upload-strip label {
  display: grid;
  min-height: 104px;
  place-items: center;
  color: #53617c;
  background: #f8fafc;
  border: 1px dashed #c8d2e1;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
}

.upload-strip input {
  display: none;
}

.bottom-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  margin-top: 24px;
}

.admin-dashboard .btn.primary {
  color: #fff;
  background: #075cff;
}

.admin-dashboard .btn.secondary {
  color: #0b1437;
  background: #fff;
  border-color: #d8e0ec;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.table-head h3 {
  margin: 0;
}

.table-filters {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-dashboard .admin-table th {
  color: #0b1437;
  background: #f8fafc;
}

.admin-dashboard .admin-table td {
  color: #243454;
}

.admin-dashboard .mini-btn {
  color: #fff;
  background: #075cff;
  border-color: #075cff;
}

.admin-dashboard .mini-btn.danger {
  color: #ef4444;
  background: #fff;
  border-color: #ef4444;
}

.support-panel {
  margin: 24px 34px;
}

.status-msg {
  min-height: 20px;
  margin-top: 10px;
  font-size: 14px;
}

@media (max-width: 800px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    flex-wrap: wrap;
  }

  .hero {
    padding: 70px 6vw;
  }

  .hero p {
    font-size: 17px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-meta div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-summary,
  .admin-product-grid,
  .two-cols,
  .three-cols,
  .four-cols,
  .table-filters {
    grid-template-columns: 1fr;
  }

  .upload-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
