* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

@media screen and (min-width: 200px) and (max-width: 400px) {
    img { display: none; }
}

/* For smart phones */
@media screen and (max-width: 600px) {
}

/* For tablets */
@media screen and (min-width: 600px) and (max-width: 900px) {
}

/* For desktop computers */
@media screen and (min-width: 900px) {
}


.navbar {
    background-color: rgba(0, 0, 0, 0.65);
    background-blend-mode: overlay;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
     position: sticky;
    top: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

}

.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/img/img.jpg') center/cover no-repeat;
    opacity: 0.35;
    z-index: -1;
}


.navbar .darkmode-toggle-wrapper {
    position: absolute;
    right: 20px; /* Vagy ahány pixelre szeretnéd a jobb szélétől */
    top: 50%;
    transform: translateY(-50%) scale(0.6); /* Középre helyezés + méret csökkentése */
    z-index: 200;
}


.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    gap: 1rem;
}



.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0;
    font-size: 1.5rem;
    font-weight: bold;
    transition: 0.5s;
    animation: logoFadeIn 2s ease-in-out forwards;
    opacity: 0;
    transform: scale(0.7);
    
}

@keyframes logoFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.nav-links {
    justify-self: center;
    display: flex;
    gap: 2rem;
}



.nav-link {
   position: relative;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
}

.nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.4s ease;
    z-index: -1;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 3px;
    background: #c0392b;
    transition: width 0.4s ease;
}

.nav-link:hover{
    color: #ecf0f1;
}

.nav-link:hover::after {
    width: 100%;
}


.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #c0392b;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 0.5rem 0;
}

.add-to-cart {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #219a52;
}  /* ← ITT VOLT A HIÁNY! MOST MÁR RENDBEN */

/* BLOG STÍLUSOK A FŐOLDALRA */
.latest-blogs {
    margin: 4rem 0;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.blog-post-card:hover {
    transform: translateY(-5px);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-title {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.blog-post-excerpt {
    color: #7f8c8d;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-meta {
    color: #95a5a6;
    font-size: 0.9rem;
    border-top: 1px solid #ecf0f1;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
}

.read-more-btn {
    background: #3498db;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.read-more-btn:hover {
    background: #2980b9;
}

.no-blogs {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 2rem;
}

/* FOOTER */
.site-footer {
    background: gray;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    min-width: 250px;
}

.footer-left h4,
.footer-center h4,
.footer-right h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: whitesmoke;
}

.footer-center ul {
    list-style: none;
    padding: 0;
}

.footer-center ul li {
    margin-bottom: 0.5rem;
}

.footer-center a,
.footer-left a,
.footer-right a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-center a:hover,
.footer-left a:hover,
.footer-right a:hover {
    color: green;
}

/* Közösségi linkek */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Hírlevél form */
.newsletter-form  {
    flex: 1;
}

.newsletter-form  input {
     flex: 1;
    padding: 0.5rem;
    border-radius: 4px;
    border: none;;
}

.newsletter-form button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #2980b9;
}

/* Mobil nézet */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
}
.blog-post-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.blog-post-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* CSAK a dark mode toggle label */
.darkmode-toggle-wrapper label {
    width: 100px;
    height: 50px;
    transform: none;
    position: relative;
    display: inline-block;
    background-color: #ebebeb;
    border-radius: 50px;
    box-shadow: inset 00px 5px 15px rgba(0,0,0,0.4), inset 0px -5px 15px rgba(255,255,255,0.4);
    cursor: pointer;
    transition: 0.3s;
}

.darkmode-toggle-wrapper label::after {
    content: "";
    width: 40px;
    height: 40px;
    position: absolute;
    top: 5px;
    left:5px;
    background: linear-gradient(180deg,#ffcc89,#d8860b);
    border-radius: 100%;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.darkmode-toggle-wrapper input {
    width: 0;
    height: 0;
    visibility: hidden;
}

input:checked + label {
    background: #242424;
}

input:checked + label::after {
    left: 55px;
    background: linear-gradient(180deg,#777, #3a3a3a);
}

label:active::after {
    width: 50px;
}

.background {
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: -1;
    position: absolute;
    transition: 0.3s;
    
}
body.darkmode .background {
    background: #242424;
    
}

label svg {
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    z-index: 10;
    transform: translateY(-50%);
}

label svg.sun {
    left: 10px;
    fill: #fff;
    transition: 0.3s;
}

label svg.moon {
    right: 10px;
    fill: #7e7e7e;
    transition: 0.3s;
}

input:checked + label svg.sun {
    fill: #7e7e7e;
}

input:checked + label svg.moon {
    fill: #fff;
}



.navbar .darkmode-toggle-wrapper {
    position: absolute; /* Mivel a navbar relative, ezt használjuk */
    right: 2rem;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    z-index: 2;
}

body.darkmode {
  background-color: #242424;
  color: #f0f0f0;
}

body.darkmode .navbar {
  background: url('/img/img.jpg') no-repeat center center/cover;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(20,20,20,0.4));
}

body.darkmode .nav-link {
  color: #ccc;
}

body.darkmode .nav-link:hover {
  color: #fff;
}

body.darkmode .hero {
  background: linear-gradient(135deg, #333 0%, #111 100%);
  color: #fff;
}

body.darkmode .cta-button {
  background: #c0392b;
}

body.darkmode .product-card,
body.darkmode .blog-post-card {
  background: #333;
  color: #fff;
}

body.darkmode .site-footer {
  background: #111;
  color: #ccc;
}

body.darkmode .footer-center a,
body.darkmode .footer-left a,
body.darkmode .footer-right a {
  color: #ccc;
}

body.darkmode .footer-center a:hover,
body.darkmode .footer-left a:hover,
body.darkmode .footer-right a:hover {
  color: #fff;
}

/* HAMBURGER MENÜ STÍLUSOK */
.ham-menu {
    display: none;
    width: 48px;
    height: 40px;
    cursor: pointer;
    position: absolute;
    right: 2rem;
    top: 2rem;
    transform: translateY(-50%);
    z-index: 1000;
}

.ham-menu span {
    display: block;
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 4px;
    margin: 6px 0;
    transition: transform .25s ease, opacity .25s ease;
}

.ham-menu.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.ham-menu.active span:nth-child(2) {
    opacity: 0;
}
.ham-menu.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* OFF-SCREEN MENÜ */
.off-screen-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 420px;
    height: 100vh;
    background: #222;
    color: #fff;
    padding: 2rem;
    transition: right .3s ease;
    z-index: 999;
    overflow-y: auto;
}

.off-screen-menu.active {
    right: 0;
}

.off-screen-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.off-screen-menu li {
    padding: 1rem 0;
    border-bottom: 1px solid #444;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.off-screen-menu li:hover {
    color: #c0392b;
}

/* Hamburger menüben lévő darkmode */
.off-screen-menu .darkmode-toggle-wrapper {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    margin: 2rem auto;
    text-align: center;
}

/* MOBIL NÉZET */
@media (max-width: 900px) {
    .nav-links { 
        display: none !important; 
    }
    .ham-menu { 
        display: block;
        top: 50%;
        transform: translateY(-50%);
   
    }
    
    /* Mobilon az eredeti darkmode elrejtése */
    .navbar .darkmode-toggle-wrapper {
        display: none;
    }
    
    /* Hamburger menüben lévő darkmode mutatása */
    .off-screen-menu .darkmode-toggle-wrapper {
        display: block;
    }
    
    .nav-container {
        justify-content: space-between;
    }
    
    .nav-logo {
        margin: 0 auto;
        text-align: center;
    }

    .navbar .darkmode-toggle-wrapper {
        display: none;
    }
}

/* ASZTALI NÉZET */
@media (min-width: 901px) {
    .off-screen-menu { 
        display: none; 
    }
    
    /* Asztalon a hamburger menüben lévő darkmode elrejtése */
    .off-screen-menu .darkmode-toggle-wrapper {
        display: none;
    }
    
    /* Asztalon az eredeti darkmode mutatása */
    .navbar .darkmode-toggle-wrapper {
        display: block;
    }
}

/* BACK TO TOP GOMB */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #219a52;
    border-radius: 0.5rem;
    padding: 0.5rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top span {
    color: white;
    font-size: 2.5rem;
    transition: 0.2s ease-out;
}

.back-to-top:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.back-to-top:hover span {
    transform: translateY(-4px);
}

/* Dark mode támogatás */
body.darkmode .back-to-top {
    background-color: #3498db;
}

body.darkmode .back-to-top:hover {
    background-color: #2980b9;
}

.kep {
    height: 135px;
    margin: auto;
    top: 0;
    opacity: 0;
  transform: translateY(-10px);
    animation: logoFadeIn 2s ease-in-out forwards;
}

/* --- ÚJ CSS: Termék Kártyák és Képek Stílusa (index.html) --- */

/* A terméklista elrendezése */
.product-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Egyedi termékkártya stílusa */
.product-card-index {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background: #fff;
    transition: transform 0.2s;
}

.product-card-index:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Kép konténer, ami korlátozza a kép méretét */
.product-image-wrapper {
    width: 100%;
    height: 200px; /* Fix magasság beállítása */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f8f8;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* A kép kitölti a konténert anélkül, hogy torzulna */
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1.2em;
    margin-top: 0;
    color: #333;
}

.product-price {
    font-weight: bold;
    color: #c0392b; /* Kiemelt szín az árnak */
    margin: 10px 0;
}


/* --- JAVÍTÁS: Blog Képek Méretének Korlátozása az ADMIN FELÜLETEN --- */

/* Az admin.js használja ezt a blog kártya nevet */
.blog-card .blog-images img {
    max-width: 100%; /* Ne legyen szélesebb, mint a kártya */
    max-height: 200px; /* Korlátozzuk a magasságot */
    width: auto; 
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 10px;
}

/* ============================================================
   INDEX.HTML - KIEMELT TERMÉKEK STÍLUSOK
   ============================================================ */

/* A terméklista elrendezése */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Egyedi termékkártya stílusa */
.product-card-index {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-index:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Link a teljes kártyán */
.product-link-index {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Kép konténer, ami korlátozza a kép méretét */
.product-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f8f8;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card-index:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 2.2em;
}

.product-description-index {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.product-price-index {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c0392b;
    margin: 10px 0;
    padding: 8px 0;
    text-align: center;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Gombok konténere */
.card-actions-index {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f7f7f7;
    border-top: 1px solid #e0e0e0;
}

.card-actions-index .add-to-cart-index {
    flex: 1;
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card-actions-index .add-to-cart-index:hover {
    background: #219150;
}

.card-actions-index .details-link-index {
    flex: 1;
    background: #3498db;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card-actions-index .details-link-index:hover {
    background: #2980b9;
}

/* Toast értesítés */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dark mode támogatás */
body.darkmode .product-card-index {
    background: #333;
    color: #fff;
}

body.darkmode .product-title {
    color: #fff;
}

body.darkmode .product-description-index {
    color: #ccc;
}

body.darkmode .card-actions-index {
    background: #2c2c2c;
    border-top-color: #444;
}

body.darkmode .product-price-index {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.4);
}

/* Feature termékek szekció */
.featured-products {
    margin: 4rem 0;
}

.featured-products h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.featured-products h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #3498db;
    margin: 10px auto;
    border-radius: 2px;
}

/* Mobil nézet */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .product-image-wrapper {
        height: 180px;
    }
    
    .card-actions-index {
        flex-direction: column;
        gap: 8px;
    }
    
    .card-actions-index .add-to-cart-index,
    .card-actions-index .details-link-index {
        width: 100%;
    }
}

/* Nagy képernyő */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================================
    INDEX.HTML - KIEMELT TERMÉKEK STÍLUSOK (JAVÍTOTT)
    ============================================================ */

/* A terméklista elrendezése */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem; /* Térköz a blog szekcióhoz */
}

/* Egyedi termékkártya stílusa - FIX MAGASSÁG */
.product-card-index {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 420px; /* FIX MAGASSÁG - így minden kártya egyforma magas */
}

.product-card-index:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Kép konténer - FIX MAGASSÁG */
.product-image-wrapper {
    width: 100%;
    height: 180px; /* FIX magasság */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f8f8;
    flex-shrink: 0; /* Ne zsugorodjon */
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card-index:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-info-index {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ez tölti ki a maradék helyet */
    min-height: 140px; /* Minimum magasság */
}

.product-title-index {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    height: 2.6em; /* Fix magasság a címnek */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-description-index {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    flex-grow: 1; /* Ez tölti ki a maradék helyet */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 3.6em; /* 3 sor magasság */
}

.product-price-index {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c0392b;
    margin: 10px 0;
    padding: 8px 0;
    text-align: center;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(231, 76, 60, 0.2);
    flex-shrink: 0; /* Ne zsugorodjon */
}

/* Gombok konténere - FIX ALULRA */
.card-actions-index {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f7f7f7;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0; /* Ne zsugorodjon */
    margin-top: auto; /* Ezzel tolódik alulra */
}

.card-actions-index .add-to-cart-index {
    flex: 1;
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card-actions-index .add-to-cart-index:hover {
    background: #219150;
}

.card-actions-index .details-link-index {
    flex: 1;
    background: #3498db;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card-actions-index .details-link-index:hover {
    background: #2980b9;
}

/* Toast értesítés */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dark mode támogatás */
body.darkmode .product-card-index {
    background: #333;
    color: #fff;
}

body.darkmode .product-title-index {
    color: #fff;
}

body.darkmode .product-description-index {
    color: #ccc;
}

body.darkmode .card-actions-index {
    background: #2c2c2c;
    border-top-color: #444;
}

body.darkmode .product-price-index {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.4);
}

/* Feature termékek szekció */
.featured-products {
    margin: 4rem 0 3rem 0; /* Fent 4rem, alul 3rem */
    padding-bottom: 1rem;
}

.featured-products h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.featured-products h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #3498db;
    margin: 10px auto;
    border-radius: 2px;
}

/* Blog szekció - Tisztán elválasztva */
.latest-blogs {
    margin: 3rem 0 4rem 0;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    clear: both; /* Megakadályozza az átfedést */
}

.latest-blogs h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.latest-blogs h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #9b59b6;
    margin: 10px auto;
    border-radius: 2px;
}

/* Mobil nézet */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .product-card-index {
        height: 400px; /* Kisebb magasság mobilon */
    }
    
    .product-image-wrapper {
        height: 150px;
    }
    
    .product-info-index {
        min-height: 130px;
        padding: 0.8rem;
    }
    
    .card-actions-index {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .card-actions-index .add-to-cart-index,
    .card-actions-index .details-link-index {
        width: 100%;
        padding: 8px 12px;
    }
    
    .featured-products {
        margin: 3rem 0 2rem 0;
    }
    
    .latest-blogs {
        margin: 2rem 0 3rem 0;
        padding-top: 1.5rem;
    }
}

/* Nagy képernyő */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-card-index {
        height: 440px; /* Nagyobb képernyőn nagyobb magasság */
    }
}

/* Alternatív megoldás: Flexbox alapú magasság egyenlítés */
@media (min-width: 769px) {
    .products-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .product-card-index {
        width: calc(25% - 1.5rem); /* 4 oszlop */
        height: auto; /* Flex alapú magasság */
        display: flex;
        flex-direction: column;
        min-height: 420px; /* Minimum magasság */
    }
}

/* Tovább olvasom gomb stílusai */
.read-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    outline: none;
    min-width: 140px;
    text-align: center;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #5a3f85 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

.read-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(102, 126, 234, 0.3);
}

/* Animáció a teljes poszt megjelenítéséhez */
.full-post {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 2000px;
        overflow: visible;
    }
}