/* --- Alapbeállítások és Konténer --- */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  background-color: #ffffff;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* ========================================================== */
/* === FEJLÉC ÉS LÁBLÉC STÍLUSOK                         === */
/* ========================================================== */
header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
  position: relative;
  overflow: hidden; 
}

header h1 {
    margin: 0;
    font-size: clamp(1.8em, 5vw, 2.5em);
}

header .quote-text {
    margin: 10px 0 5px 0;
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

header .quote-author {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
    text-align: right;
    padding-right: 10%;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}
/* ========================================================== */


/* --- Navigációs Sáv --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; 
  padding: 10px 15px;
  gap: 20px;
  border-bottom: 1px solid #eee;
  position: relative;
}

#filter-toggle-btn {
    display: none;
    padding: 10px 15px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex-grow: 1; 
}

.filter-buttons button {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  flex: 1;
}

.filter-buttons button:hover {
  background-color: #f0f0f0;
  border-color: #999;
}

.filter-buttons button.active {
  background-color: #333;
  color: white;
  border-color: #333;
}

/* Kereső stílusai */
.search-container {
    min-width: 250px;
}

#search-form {
    display: flex;
}

#search-input {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    font-size: 0.9rem;
    border-right: none;
}

#search-form button {
    padding: 10px 15px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    font-size: 1rem;
}

#search-form button:hover {
    background-color: #e0e0e0;
}

/* MOBIL NÉZET (992px alatt) */
@media (max-width: 992px) {
    .filter-buttons {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fdfdfd;
        z-index: 100;
        flex-direction: column;
        padding: 10px;
        border-top: 1px solid #eee;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        flex-grow: 0; 
    }
    
    .filter-buttons button {
        width: 100%;
    }

    #filter-toggle-btn {
        display: block;
    }

    .filter-buttons.open {
        display: flex;
    }

    .search-container {
        flex-grow: 1;
    }
}


/* ========================================================== */
/* --- JAVÍTOTT TERMÉK RÁCS                               === */
/* ========================================================== */
main#product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  /* JAVÍTÁS: A termékrács hátterének beállítása */
  background-color: #f9f9f9;
}

/* --- Termék Kártyák --- */
.product-card {
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  background: linear-gradient(to bottom, #f5f5f5, #e9e9e9);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


.product-card img {
  max-width: 100%;
  height: 250px;
  object-fit: contain;
  margin-bottom: 15px;
}

.product-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.1em;
}

.product-card p {
  margin: 0;
  font-size: 1em;
  font-weight: bold;
}

.pagination-controls {
  text-align: center;
  padding: 20px 0;
}

.pagination-controls button {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 8px 15px;
  margin: 0 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-controls button:hover {
  background-color: #f0f0f0;
  border-color: #999;
}

.pagination-controls button.active {
  background-color: #333;
  color: white;
  border-color: #333;
  cursor: default;
}

.product-link,
.product-link:visited {
  text-decoration: none;
  color: #333;
}

.product-link h3 {
    color: #333;
}