/* ===== Electronic Models – main.css ===== */

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Variables --- */
:root {
  --bg:       #f3f4f6;
  --surface:  #ffffff;
  --border:   #e5e7eb;
  --text:     #111827;
  --muted:    #6b7280;
  --dark:     #0f172a;
  --dark-2:   #1e293b;
  --dark-3:   #334155;
  --accent:   #3b82f6;
  --font:     'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* ===== NAVBAR ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 100;
}

.nav-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-catalog {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-catalog:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  margin-top: 58px;
  width: 100%;
  background-image: url('../img/background/1.jpg');
  background-size: cover;
  background-position: center 45%;
  overflow: hidden;
}

/* Dark overlay — stronger left (text side), lighter right (image visible) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 15, 28, 0.96) 0%,
    rgba(10, 15, 28, 0.85) 45%,
    rgba(10, 15, 28, 0.55) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

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

.hero-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #f1f5f9;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-text {
  color: #94a3b8;
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 2.25rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(255,255,255,0.1);
}

.hero-text b {
  color: #e2e8f0;
  font-weight: 600;
}

.stores-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.store-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.store-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.store-chip:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

@media (max-width: 600px) {
  .hero {
    padding: 2.5rem 1.5rem;
    border-radius: 0;
    background-position: 65% 45%;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(10, 15, 28, 0.97) 0%,
      rgba(10, 15, 28, 0.94) 100%
    );
  }
}

/* ===== MAIN LAYOUT ===== */
main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 0 2.5rem;
  align-items: start;
}

.products-content {
  min-width: 0;
}

.products-content .section-title:first-child {
  margin-top: 0;
}


/* ===== CATEGORY NAV ===== */
.cat-nav {
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cat-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 7px;
  transition: color 0.15s, background 0.15s;
}

.cat-nav a i {
  font-size: 0.72rem;
  width: 1rem;
  text-align: center;
  opacity: 0.5;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.cat-nav a:hover {
  color: var(--text);
  background: var(--border);
}

.cat-nav a.active {
  background: var(--dark);
  color: #fff;
  font-weight: 600;
}

.cat-nav a.active i {
  opacity: 0.8;
}

@media (max-width: 700px) {
  main {
    grid-template-columns: 1fr;
  }

  .cat-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
  }

  .cat-nav a {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 100px;
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
  }

  .cat-nav a.active {
    border-color: transparent;
  }
}

/* ===== SECTION TITLE ===== */
.section-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--dark);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 3rem 0 1.5rem;
  scroll-margin-top: 80px;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ===== CARD ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
}

img.zoomable {
  cursor: zoom-in;
}

/* Coming-soon badge */
.card-img-wrap.coming-soon::after {
  content: 'Em breve';
  position: absolute;
  top: 0.6rem;
  right: -2rem;
  background: var(--dark);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 2.5rem;
  transform: rotate(45deg) translateX(0.5rem);
  pointer-events: none;
}

.card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.card-text {
  font-size: 0.82rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.card-text b { color: var(--text); }

.card-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.card-link {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.05);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.card-link:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.5);
  text-decoration: none;
}

.card-link:not(.muted)::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f1c1";
  font-size: 0.7rem;
  opacity: 0.7;
}

.card-link.muted {
  color: var(--muted);
  background: transparent;
  border-color: var(--border);
  font-style: italic;
  font-weight: 500;
  cursor: default;
}

.card-link.muted:hover {
  background: transparent;
  border-color: var(--border);
}


.card-footer {
  padding: 0.6rem 1rem;
  background: #f9fafb;
  border-top: 1px solid var(--border);
  font-size: 0.83rem;
  color: var(--muted);
}

.card-footer p + p { margin-top: 0.2rem; }

.card-footer .price {
  font-weight: 700;
  color: var(--text);
}

.card-ref-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(15, 23, 42, 0.88);
  color: #e2e8f0;
  font-size: 0.63rem;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.83rem;
  line-height: 1.9;
}

.site-footer a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}

.lightbox-img {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 1;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* ===== CONSTRUCTION PAGE ===== */
.construction {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 58px - 80px);
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== TIMELINE PAGE ===== */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 1.5rem 4rem;
}
