html{
  background: repeating-linear-gradient( -55deg, #222, #222 10px, #282828 10px, #282828 20px );
  background-attachment: fixed;
  height: 100%;
}
    body{
      font-family:arial;
      /*background-color: #222222;*/
      color: rgb(209, 213, 219);
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }
    .content-wrapper {
        flex: 1;                    /* ez a lényeg */
        width: 100%;                /* biztos, hogy teljes szélességű legyen */
    }
    nav {
      background-color: #333;
      display: flex;
      justify-content: center;
      font-family: "Oswald", sans-serif;
      border-bottom: 2px solid #ff000082;
      text-transform: uppercase;
      box-shadow: 0px 11px 10px 0px #0000006b;
    }
    nav a {
      background-color: #212121;
      color: #CCCCCC;
      float: left;
      outline: none;
      cursor: pointer;
      padding: 14px 16px;
      transition: 0.3s;
      font-size: 17px;
      border: none;
      text-decoration: none;
    }
    nav a:hover:not(#mm) {
      background-color: #2D2D2D;
      -webkit-box-shadow: inset 0px -3px 0px 0px #DD4B39;
      box-shadow: inset 0px -3px 0px 0px #DD4B39;
    }
    
    #mm {
      display: grid;
      place-content: center;
      background-color: #333;
      color: #ffffff;
      font-size: 34px;
      padding: 5px 10px 0px 0px;
    }

    #mm > div {
      grid-area: 1/1/-1/-1;
    }
    .top {
      clip-path: polygon(0% 0%, 100% 0%, 100% 48%, 0% 58%);
    }
    .bottom {
      clip-path: polygon(0% 60%, 100% 50%, 100% 100%, 0% 100%);
      color: transparent;
      background: -webkit-linear-gradient(177deg, black 53%, #ffffff 65%);
      background: linear-gradient(177deg, black 53%, #ffffff 65%);
      background-clip: text;
      -webkit-background-clip: text;
      transform: translateX(-0.02em);
    }
    #content, #title{
      width: 50%;
      /*margin: auto;*/
      /*background-color: #ffffff14;*/
      margin: 20px auto 0;
      background-color: #353535a3;
      border: 2px solid #fff3;
      padding: 10px;
      
      /*white-space: pre-line;*/ 
      /*line-height: 1.75;*/
      box-shadow: 12px 11px 10px 0px #0000006b;
    }
    
#prodlist{
  width: 80%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  background-color: #f4f4f414;
  border: 1px solid #000;
}

.product-card {
    position: relative;
    width: 250px;
    height: 350px;
    margin: 20px;
    background-color: #242424;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, border-radius 0.3s ease-out;
    border: 1px solid black;
    cursor: pointer;
    
    display: flex; /* Hozzáadva! */
    flex-direction: column;
    justify-content: flex-start; /* Kép felül, info alatta */
    overflow: hidden;
}


.product-card:hover {
    transform: scale(1.05);
    box-shadow: 7px 8px 5px rgba(0, 0, 0, 0.39);
    box-shadow: 12px 11px 10px 0px #0000006b;
}

.product-card a {
   text-decoration: none;
   color: inherit;
}

.product-card img {
    width: 100%;
    height: 200px; /* Fix kép magasság, a maradék a tartalomra */
    object-fit: contain; /* Arányosítás, nem torzul */
    background-color: #181818; /* Háttér, ha a kép kisebb */
}

.product-info {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: normal;
    flex-grow: 1; /* Kitölti a teret */
    overflow: hidden;
    display: -webkit-box; /* Multi-line ellipsishez */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; /* Max 4 sor, utána ... (állítsd igény szerint) */
    text-overflow: ellipsis;
}
.price {
    position: absolute; /* Fix alul */
    bottom: 0;
    left: 0;
    width: 100%;
    font-weight: bold;
    font-size: 20px;
    padding: 8px;
    margin: 0;
    background-color: #ff5050e3;
    color: #fff;
    text-align: center;
    border-top: 1px solid #ffffff21;
    box-sizing: border-box; /* Padding ne növelje a magasságot */
}

@media (max-width: 768px) {
    .product-card {
        width: 100%;
        height: auto; /* Mobilon rugalmas, de ár marad absolute */
    }
    #prodlist {
        flex-direction: column;
        align-items: center;
    }
    .price {
        position: relative; /* Mobilon ne absolute, mert height auto */
    }
}

/*
#title{
  text-align: center;
  width: 80%;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
    font-size: 17px;
}*/


#title {
  color: white;
  width: 80%;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 20px;
  text-align: center;
}
#title a {
  color: white;
  font-size: 30px;
  text-decoration: none;
  line-height: 0.7;
}

#title a:hover{
  color: #ff000082;
}
.product-name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.product-image-container {
  margin-bottom: 20px;
text-align: center;
}

.product-image {
  max-height: 400px;
  object-fit: cover;
}

.thumbnail-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: auto;
  padding: 6px;
  background-color: #333;
  border: 1px solid #6a6a6a;
}

.thumbnail-image {
  height: 50px;
  object-fit: cover;
  margin-bottom: 10px;
  cursor: pointer;
  border: 1px solid #6a6a6a;
  margin: 0px 6px 0px;
}

.product-description {
  font-size: 16px;
  margin-bottom: 20px;
   white-space: pre-line;
}

.product-price {
  font-size: 20px;
  font-weight: bold;
  color: #ff5050e3;
}

.product-details {
  display: flex;
  width: 80%;
  margin: auto;
  background-color: #00000061;
}

.product-details > div {
  flex: 1;
  margin: 10px;
  display: flex;
  flex-direction: column;
}


footer {
    text-align: center;
    font-size: 0.9em;
    background-color: #333;
    display: flex;
    justify-content: center;
    padding: 4px 0;
    border-top: 2px solid #ff000082;
}

.redlink, footer a {
    color: #ff4d4d; /* Pirosas link a fekete háttéren */
    text-decoration: none;
}

.redlink:hover, footer a:hover {
    text-decoration: underline;
}