/* TERMÉK OLDAL STÍLUSOK */
.category-filters {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.filter-btn {
    background: #ecf0f1;
    border: 2px solid #bdc3c7;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: #d5dbdb;
    border-color: #95a5a6;
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.products-section {
    margin-top: 2rem;
}

/* Termék kártya finomítások a termék oldalon */
.product-card .product-image {
    position: relative;
    overflow: hidden;
}

.product-card .product-image img {
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.product-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    height: 60px;
    overflow: hidden;
}

.no-products {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 3rem;
    grid-column: 1 / -1;
}

.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; /* Mivel a navbar relative, ezt használjuk */
    right: 2rem;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    z-index: 2;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.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 {
    display: flex;
    gap: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-link {
   position: relative;
    color: white;
    text-decoration: none;
}
.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%;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: block;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* FOOTER */

.main-content {
  flex: 1 0 auto;
}

:root {
  /* állítsd a tényleges magasságra; 220–260px körül szokott lenni */
  --footer-height: 500px;
}

/* A fix footernek helyet adunk a fő tartalom végén */
.cart-page .main-content {
  padding-bottom: var(--footer-height);
}

/* Minden más oldal fő tartalmának is adunk helyet, mivel a footer fixed */
body:not(.cart-page) .main-content {
  padding-bottom: var(--footer-height);
}

/* Biztonság: a footer legyen a tartalom felett csak vizuálisan, ne kattintásblokkoló */
.site-footer {
  z-index: 10;
}

.site-footer {
    background: gray;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    font-size: 0.95rem;
    position: static;
    left: 0;
    bottom: 0;
    width: 100%;
}

.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 {
    display: flex;
    gap: 0.5rem;
}

.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;
    }
}

.product-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.product-card p {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.product-card button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.product-card button:hover {
    background: #219a52;
}

.product-card .featured-label {
    background: #f39c12;
    color: white;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* CSAK a dark mode toggle label */
.darkmode-toggle-wrapper label {
    width: 100px;
    height: 50px;
    transform: none;
    position: sticky;
    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;
}

body.darkmode {
  background-color: #242424;
  color: #f0f0f0;
}

body.darkmode .navbar {
  background: #111;
}

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 .category-filters,
body.darkmode .product-card,
body.darkmode .filter-btn,
body.darkmode .product-card h4,
body.darkmode .product-card p {
  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: 50%;
    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;
}

/* TERMÉK OLDAL STÍLUSOK */
.category-filters {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.filter-btn {
    background: #ecf0f1;
    border: 2px solid #bdc3c7;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: #d5dbdb;
    border-color: #95a5a6;
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* =============================================================
   TERMÉK RÁCS ÉS KÁRTYA STÍLUSOK (MESKA.HU STÍLUS)
   ============================================================= */

/* Termék rács elrendezés */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0;
    margin: 10px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.products-section {
    margin-top: 2rem;
    margin: 10px;
}

.no-products {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 3rem;
    grid-column: 1 / -1;
}

/* Termékkártya (Meska-stílus) */
.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
    margin-bottom: 0;
    box-shadow: none;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 1rem 1rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-category, 
.product-card p {
    display: none; 
}
.product-details .product-subcategory-info {
    display: block;
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c0392b;
    margin-top: auto;
    margin-bottom: 1rem;
}

.product-card .cta-button { 
    background: #2d9cdb;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s;
    width: 100%; 
    pointer-events: all;
}

.product-card .cta-button:hover {
    background: #217db5;
}

.category-filters {
  padding: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(180deg,#ffffff,#fbfbfb);
  border: 1px solid rgba(0,0,0,0.04);
}

.filter-buttons, .sub-filter-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.filter-btn, .sub-filter-btn {
  background: #f6f8fa;
  border: 1px solid #dfe6ea;
  color: #2c3e50;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.filter-btn:hover, .sub-filter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.filter-btn.active, .sub-filter-btn.active {
  background: #2d9cdb;
  color: #fff;
  border-color: #2d9cdb;
  box-shadow: 0 8px 24px rgba(45,156,219,0.18);
}

.subcategory-filters {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(0,0,0,0.04);
}

.product-detail-main-content {
    padding-top: 2rem;
}

.product-detail-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .detail-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.detail-image-gallery {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.detail-image-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

.product-price-detail {
    font-size: 2.5rem;
    font-weight: 800;
    color: #c0392b;
    margin-bottom: 1.5rem;
}

.cta-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-section .cta-button {
    flex-grow: 1;
    background: #2d9cdb;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
    font-weight: 600;
    max-width: 300px;
}

.cta-section .cta-button:hover {
    background: #217db5;
}

.favorite-btn {
    background: #f6f8fa;
    color: #2c3e50;
    border: 1px solid #dfe6ea;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.favorite-btn:hover {
    background: #ecf0f1;
    color: #e74c3c;
    border-color: #e74c3c;
}

.product-meta {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px dashed #ecf0f1;
    border-radius: 8px;
}

.product-meta h4 {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-meta ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-meta ul li {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.3rem;
}

.product-meta ul li span {
    font-weight: bold;
    color: #2c3e50;
}

.product-description-full h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.product-description-full p {
    color: #555;
    line-height: 1.8;
}

.error-message {
    text-align: center;
    color: #e74c3c;
    padding: 3rem;
    font-size: 1.2rem;
}

body.darkmode .product-detail-container {
    background: #333;
    box-shadow: 0 5px 20px rgba(255,255,255,0.05);
}

body.darkmode .product-title {
    color: #fff;
    border-bottom-color: #444;
}

body.darkmode .product-price-detail {
    color: #f39c12;
}

body.darkmode .product-meta {
    background: #2c2c2c;
    border-color: #444;
}

body.darkmode .product-meta h4 {
    color: #aaa;
}

body.darkmode .product-meta ul li {
    color: #ccc;
}

body.darkmode .product-meta ul li span {
    color: #fff;
}

body.darkmode .favorite-btn {
    background: #444;
    color: #ccc;
    border-color: #555;
}

body.darkmode .favorite-btn:hover {
    background: #555;
    color: #e74c3c;
}

body.darkmode .product-description-full h4 {
    color: #fff;
}

body.darkmode .product-description-full p {
    color: #ccc;
}

.placeholder-large {
    background-color: #ecf0f1;
    color: #bdc3c7;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-style: italic;
}

.product-card .product-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

/* =========================================================
   TERMÉK RÉSZLETEZŐ OLDAL KÉPGALÉRIA
   ========================================================= */

.product-detail-container {
    display: flex;
    gap: 40px;
    padding: 2rem;
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

@media (max-width: 900px) {
    .product-detail-container {
        flex-direction: column;
        padding: 1.5rem;
    }
}

.product-gallery {
    flex: 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image-container {
    width: 100%;
    max-width: 500px; 
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
}

.main-product-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 500px;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.2s;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: #3498db;
    transform: scale(1.05);
}

.product-actions {
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.product-actions .cta-button {
    background-color: #27ae60;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-actions .cta-button:hover {
    background-color: #219150;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-actions .cta-button:active {
    transform: translateY(0);
}

.product-actions .cta-button i {
    font-size: 1.2rem;
}

/* Fő kép konténer (hogy a nyilakat el tudjuk helyezni) */
.main-image-container {
    position: relative;
    cursor: zoom-in;
    background: #f9f9f9;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s;
    z-index: 10;
    opacity: 0;
}

.main-image-container:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-arrow.left { left: 10px; }
.gallery-arrow.right { right: 10px; }

/* --- LIGHTBOX (NAGYÍTOTT NÉZET) --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    padding: 0 20px;
    transition: 0.3s;
}

.lightbox-arrow:hover {
    color: #3498db;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow.left { left: 20px; }
.lightbox-arrow.right { right: 20px; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* GOMBOK KONTÉNERE */
.card-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f7f7f7;
    border-top: 1px solid #e0e0e0;
}

.card-actions .cta-button {
    background-color: #27ae60; 
    color: white;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 6px;
    flex-grow: 1;
    border: none;
    transition: background-color 0.2s;
}

.card-actions .cta-button:hover {
    background-color: #219150;
}

.card-actions .details-link {
    background-color: #3498db; 
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    flex-grow: 1;
    border: none;
    transition: background-color 0.2s;
    text-align: center;
    text-decoration: none;
}

.card-actions .details-link:hover {
    background-color: #2980b9;
}

/* Error message styles */
.error-message {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 2rem auto;
}

.error-message h2 {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.error-message p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.error-message .cta-button {
    background: #3498db;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: background 0.3s;
}

.error-message .cta-button:hover {
    background: #2980b9;
}

/* Raktárkészlet stílusok */
.in-stock {
    color: #27ae60;
    font-weight: bold;
}

.out-of-stock {
    color: #e74c3c;
    font-weight: bold;
}

/* Termék részletek oldal stílusok */
.product-description-full {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.product-description-full h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.product-description-full p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

.product-meta ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.product-meta ul li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
}

.product-meta ul li span:first-child {
    font-weight: 600;
    color: #2c3e50;
}

.product-meta ul li span:last-child {
    color: #7f8c8d;
}

/* Kosár gomb állapotok */
.add-to-cart-btn:disabled {
    background-color: #95a5a6 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.add-to-cart-btn:disabled:hover {
    background-color: #95a5a6 !important;
    transform: none !important;
}

.back-link {
    display: inline-block;
    text-decoration: none;
    margin-left: 1rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-image-container {
    width: 100%;
    height: 220px; /* fix magasság */
    overflow: hidden;
    border-radius: 10px;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fontos! */
    display: block;
}

/* --- PRODUCT DETAIL --- */

.product-detail-wrapper {
    max-width: 1200px;
    margin: 3rem auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.product-detail-view {
    display: flex;
    gap: 2.5rem;
}

.product-gallery {
    width: 50%;
}

.product-gallery .main-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
    cursor: zoom-in;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.product-gallery .thumbs {
    margin-top: 15px;
    display: flex;
    gap: 12px;
}

.product-gallery .thumbs img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.product-gallery .thumbs img:hover {
    border-color: #1e90ff;
}

/* --- LIGHTBOX --- */
#lightboxOverlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

#lightboxOverlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 4rem;
    cursor: pointer;
}

#light-prev { left: 40px; }
#light-next { right: 40px; }

/* --- JOBB OLDAL --- */
.product-info {
    width: 50%;
}
.product-info h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.product-info .price {
    color: #e74c3c;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.product-description {
    margin-top: 1.5rem;
}

.add-to-cart-btn {
    background: #27ae60;
    color: white;
    padding: 1rem 2rem;
    border: none;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 1.5rem;
}

/* CSS kiegészítések a végére */

/* Active thumb stílus */
.active-thumb {
    border: 2px solid #e74c3c !important;
}

/* Kosár számláló */
.cart-counter {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Lightbox gombok helyes pozícionálása */
#lightboxOverlay .lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
}

#lightboxOverlay .lightbox-arrow.left {
    left: 30px;
}

#lightboxOverlay .lightbox-arrow.right {
    right: 30px;
}

/* Toast üzenet */
.toast.show {
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; bottom: 0; }
    10% { opacity: 1; bottom: 30px; }
    90% { opacity: 1; bottom: 30px; }
    100% { opacity: 0; bottom: 0; }
}

/* Termék kártya link stílus */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

