:root{
  --bg: #dfcfdf;
  --text: #222;
  --muted: #666;
  --primary: #7c4dff;     /* lila akcentus */
  --primary-dark: #5b35d6;
  --surface: #f7f7fb;
  --border: #e6e6ef;
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.container{ max-width: 1100px; margin: 0 auto; padding: 0 1.2rem; }

/* Header */
.site-header{
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top:0; z-index: 10;
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
}
.logo{
  font-weight: 700; text-decoration: none; color: var(--text); font-size: 1.1rem;
}
.nav a{
  margin-left: 1rem; text-decoration: none; color: var(--text);
}
.nav a:hover{ color: var(--primary); }

/* Hero */
.hero{
  background: linear-gradient(135deg, #ede7f6 0%, #fafafa 100%);
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero h1{ margin: 0 0 0.5rem; font-size: 2rem; }
.hero p{ color: var(--muted); max-width: 700px; margin: 0 auto 1.2rem; }

/* Buttons */
.btn{
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
}
.btn-primary{
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover{ background: var(--primary-dark); }
.btn-outline{
  background: #fff; color: var(--text);
}
.btn-outline:hover{ border-color: var(--primary); color: var(--primary); }

/* Products */
.products{ padding: 2.5rem 0; }
.products h2{ margin-bottom: 1rem; }
.grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card h3{ margin: 0.8rem 0 0.2rem; padding: 0 0.8rem; }
.card p{ color: var(--muted); padding: 0 0.8rem; margin: 0 0 0.6rem; }
.card .price{ font-weight: 600; padding: 0 0.8rem 0.8rem; }
.card .btn{ margin: 0 0.8rem 0.8rem; }

/* About */
.about{ padding: 2.5rem 0; background: var(--surface); border-top: 1px solid var(--border); }
.about p{ max-width: 800px; }
.features{
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.features li{
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
}

/* Contact */
.contact{ padding: 2.5rem 0; }
.contact-form{
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem; max-width: 700px;
}
.form-row{ display: grid; gap: 0.4rem; margin-bottom: 0.8rem; }
input, textarea{
  padding: 0.6rem; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; width: 100%; background: #fff;
}
.contact-info{ margin-top: 1rem; color: var(--muted); }


.footer-links a{ margin-left: 1rem; color: var(--muted); text-decoration: none; }
.footer-links a:hover{ color: var(--primary); }

/* Responsive */
@media (max-width: 1000px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .features{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px){
  .grid{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 1.6rem; }
  .features{ grid-template-columns: 1fr; }
  .nav{ display: none; } /* egyszerű mobil nézet */
}
.modal {
  display: none;
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center; align-items: center;
}

.modal-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  position: relative;
}

.modal .close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.modal .close:hover {
  color: var(--primary);
}

/* Alap: desktop nézet */
.modal-body {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

/* Mobilbarát nézet */
@media (max-width: 620px) {
  .modal-body {
    flex-direction: column;   /* kép és szöveg egymás alá */
    align-items: center;      /* középre igazítás */
    text-align: center;       /* szöveg középre */
  }

  .modal-body img {
    max-width: 100%;          /* kép teljes szélesség */
    margin-bottom: 1rem;
  }

  .modal-text {
    width: 100%;
  }
}

.modal-body img {
  max-width: 50%;
  border-radius: 8px;
  object-fit: cover;
}

.modal-text {
  flex: 1;
  text-align: left;
}

.modal-text h2 {
  margin-top: 0;
}

.modal-text .price {
  font-weight: 600;
  margin-top: 1rem;
  color: var(--primary);
}
.card { cursor: pointer; }



.about-grid { 
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 30px; 
} 
.about-card { 
  background: #ffffff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,0.08);
 transition: 0.3s ease;
} 
.about-card:hover { 
  transform: translateY(-4px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.12);
} 
.about-card h2 { margin-bottom: 15px; font-size: 26px; color: #333;
 } 
 .about-card p { line-height: 1.6; font-size: 16px;
  color: #555; 
}


.products .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-content: center;   /* középre igazítja a rácsot */
  justify-items: center;     /* középre igazítja az elemeket */
  gap: 30px;
}



.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
#nextImgBtn {
  background-color: #d88ca4;         /* halvány rózsaszín / mályva */
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#nextImgBtn:hover {
  background-color: #c06b8c;         /* sötétebb árnyalat hoverre */
  transform: scale(1.05);
}

#nextImgBtn:active {
  transform: scale(0.98);
}
