* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #334155;
  background-color: #ffffff;
  line-height: 1.6;
}

.tarolo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Fejléc */
.fejlec {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.fejlec-belso {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 48px;
}

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

.nav a {
  text-decoration: none;
  color: #1e293b;
  font-weight: 500;
}

/* Gombok */
.gomb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}

.gomb-kiemelt {
  background: #0056b3;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

.gomb-kiemelt:hover {
  background: #004085;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 86, 179, 0.3);
}

.gomb-masodlagos {
  background: #f8fafc;
  color: #1e293b !important;
  border: 1px solid #e2e8f0;
}

.gomb-masodlagos:hover {
  background: #e2e8f0;
}

.gomb-teljes {
  width: 100%;
}

/* Katalógus Elrendezés */
.szekcio {
  padding: 40px 0;
}

.fejlec-cim {
  margin-bottom: 30px;
}

.shop-elrendezes {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}

.termek-kontener {
  width: 100%;
}

/* Szuro Panel */
.szuro-panel {
  background: #f8fafc;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  height: fit-content;
}

.szuro-panel h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.szuro-csoport {
  margin-bottom: 18px;
}

.szuro-csoport label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1e293b;
}

.szuro-csoport select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.szuro-csoport select:focus {
  border-color: #3b82f6;
}

/* Kategoriak Szekcioi & Rácsok */
.kategoria-szekcio {
  margin-bottom: 45px;
}

.kategoria-szekcio:last-child {
  margin-bottom: 0;
}

.kategoria-cim {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #0056b3;
}

.kategoria-termek-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

/* Termék Kártyák */
.termek-kartya {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.termek-kartya:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.kartya-kep-doboz {
  height: 200px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.kartya-kep-doboz img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.kartya-tartalom {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cimke {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0056b3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kartya-tartalom h3 {
  font-size: 1.15rem;
  margin: 6px 0;
  color: #1e293b;
}

.kartya-alcim {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 12px;
}

.kartya-leiras {
  font-size: 0.88rem;
  margin-bottom: 16px;
  flex-grow: 1;
  color: #334155;
}

.kartya-ar-sor {
  margin-bottom: 14px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ar-tol {
  font-size: 0.8rem;
  color: #64748b;
}

.eredeti-ar {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.85em;
}

.kartya-ar {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
}

.kartya-link {
  color: #0056b3;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}

/* Terméklap felső rész */
.ketoszlop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.fokep-keret {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: #f8fafc;
}

.fokep-keret img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.mellekkepek-lista {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.mellekkepek-lista img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  padding: 5px;
  background: #ffffff;
  transition: border-color 0.2s;
}

.mellekkepek-lista img:hover {
  border-color: #0056b3;
}

.valaszto-blokk {
  margin: 20px 0;
}

.valaszto-blokk select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 6px;
  background-color: #ffffff;
  outline: none;
}

.valaszto-blokk select:focus {
  border-color: #3b82f6;
}

.ar-blokk {
  background: #f8fafc;
  padding: 18px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
}

.aktualis-ar {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e293b;
}

.afa-info {
  font-size: 0.8rem;
  color: #64748b;
}

.cikkszam-info {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 6px;
}

/* ==========================================
   Tab-ok stílusa
   ========================================== */
.szekcio-resz {
  margin-top: 48px;
}

.tab-fejlec {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 24px;
}

.tab-gomb {
  background: transparent;
  border: none;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab-gomb:hover {
  color: #0056b3;
}

.tab-gomb.active {
  color: #0056b3;
  border-bottom-color: #0056b3;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Tab 1: Leírás lista */
.reszletes-lista {
  list-style: none;
  padding: 0;
}

.reszletes-lista li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.6;
  color: #334155;
}

.reszletes-lista li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0056b3;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Tab 2: Technikai Táblázat */
.tabla-csomag {
  overflow-x: auto;
}

.muszaki-tabla {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.muszaki-tabla td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.muszaki-fejlec-sor {
  background-color: #f1f5f9;
}

.muszaki-fejlec-sor td {
  font-weight: 700;
  color: #1e293b;
  font-size: 1.05rem;
}

.tabla-nev {
  width: 50%;
  color: #334155;
}

.tabla-ertek {
  width: 50%;
  font-weight: 600;
  color: #1e293b;
}

/* Tab 3: Letöltések */
.letoltesek-lista {
  list-style: none;
}

.letoltesek-lista li {
  margin-bottom: 12px;
}

.inaktiv-letoltes {
  color: #94a3b8;
  cursor: not-allowed;
  font-weight: 500;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inaktiv-letoltes small {
  font-size: 0.8em;
  font-style: italic;
}

/* Telepítési csomag tab tartalom stílusa */
.telepites-szoveg {
  white-space: pre-line;
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
}

.telepites-szoveg p {
  margin-bottom: 12px;
}

/* Designos Ajánlatkérő Form */
.urlap-kartya {
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.urlap-kartya h2 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 8px;
  font-weight: 700;
}

.mezo {
  margin-bottom: 20px;
}

.mezo label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1e293b;
}

.mezo input[type="text"],
.mezo input[type="email"],
.mezo input[type="tel"],
.mezo textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1e293b;
  background-color: #f8fafc;
  transition: all 0.2s ease-in-out;
  outline: none;
}

.mezo input[type="text"]:focus,
.mezo input[type="email"]:focus,
.mezo input[type="tel"]:focus,
.mezo textarea:focus {
  background-color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.mezo textarea {
  resize: vertical;
  min-height: 100px;
}

.mezo-dupla {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mezo-checkbox {
  background: #f8fafc;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.mezo-checkbox label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
}

.mezo-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #0056b3;
  cursor: pointer;
}

.g-recaptcha {
  display: flex;
  justify-content: flex-start;
}

.adatvedelem {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 12px;
  text-align: center;
}

/* Lábléc */
.lablec {
  background: #1e293b;
  color: #ffffff;
  padding: 48px 0;
  margin-top: 60px;
}

.lablec-belso {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lablec a {
  color: #ffffff;
}

.lablec-logo {
  height: 40px;
  margin-bottom: 12px;
}

.lablec-jog {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Reszponzív nézet mobilra */
@media (max-width: 768px) {
  .shop-elrendezes, 
  .ketoszlop {
    grid-template-columns: 1fr;
  }

  .kategoria-termek-lista {
    grid-template-columns: 1fr;
  }

  .urlap-kartya {
    padding: 20px;
  }

  .tab-fejlec {
    flex-wrap: wrap;
  }

  .tab-gomb {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 14px;
  }
}

@media (max-width: 500px) {
  .mezo-dupla {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---------- Mobil Hamburger Menü Stílusok ---------- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  z-index: 100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--sotet-szoveg);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Aktív (nyitott) hamburger animáció kereszt alakba */
.hamburger.aktiv span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger.aktiv span:nth-child(2) {
  opacity: 0;
}
.hamburger.aktiv span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

@media (max-width: 860px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(14, 42, 58, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
  }

  .nav.aktiv {
    max-height: 500px;
    opacity: 1;
    padding: 24px;
  }

  .nav a {
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav a:last-child {
    border-bottom: none;
    text-align: center;
    margin-top: 8px;
  }
}
