/* --- CSS Reset & Variables (Prémium paletta) --- */
:root {
    --color-bg: #F4F1EA; /* Meleg zab/krém háttér */
    --color-header: #1A252C; /* Tengerészkék/Palaszürke */
    --color-text-main: #2C3E50; /* Sötét palaszürke szöveg */
    --color-text-muted: #5D6D7E;
    --color-text-light: #85929E;
    --color-heading: #1A252C;
    --color-cta: #E67E22; /* Rozsda/Narancs CTA */
    --color-cta-hover: #D35400;
    --color-footer: #151E24;
    --color-border: #D6DBDF;
    --color-stars: #F39C12;
    --color-card-bg: #FFFFFF;
    
    /* Galéria keret aktív állapothoz */
    --color-gallery-active: #E67E22; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    color: var(--color-heading);
}

img {
    max-width: 100%;
    display: block;
}

/* --- Layout --- */
.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Header --- */
.site-header {
    background-color: var(--color-header);
    color: #ffffff;
    border-bottom: 4px solid var(--color-cta); /* Narancs díszcsík */
}

.header-container {
    padding: 24px 16px;
    text-align: center;
}

.header-container h1 {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* --- Main Content --- */
.main-content {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* --- Product Section --- */
.product-section {
    background-color: var(--color-card-bg);
    border-radius: 4px; /* Élesebb, klasszikusabb sarkok */
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- Amazon Style Gallery (No JS) --- */
.product-media {
    width: 100%;
}

.amazon-gallery {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.gallery-radio {
    display: none;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    width: 60px;
    gap: 10px;
    flex-shrink: 0;
}

.thumb-label {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: border-color 0.2s;
}

.thumb-label img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 2px;
}

.video-thumb-label {
    background-color: #000;
}

.darkened-thumb {
    opacity: 0.6;
}

.thumb-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    color: white;
}

.video-hint-text {
    font-size: 10px;
    text-align: center;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-top: -6px;
    text-transform: uppercase;
}

.gallery-main-view {
    position: relative;
    flex-grow: 1;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.main-display iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

/* Állapotváltások (Galéria) */
#img-1:checked ~ .gallery-main-view .item-1,
#img-2:checked ~ .gallery-main-view .item-2,
#img-3:checked ~ .gallery-main-view .item-3,
#img-4:checked ~ .gallery-main-view .item-4,
#vid-1:checked ~ .gallery-main-view .item-video {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

#img-1:checked ~ .gallery-thumbnails [for="img-1"],
#img-2:checked ~ .gallery-thumbnails [for="img-2"],
#img-3:checked ~ .gallery-thumbnails [for="img-3"],
#img-4:checked ~ .gallery-thumbnails [for="img-4"],
#vid-1:checked ~ .gallery-thumbnails [for="vid-1"] {
    border-color: var(--color-gallery-active);
    box-shadow: 0 0 5px rgba(230, 126, 34, 0.4);
}


/* --- Product Info --- */
.product-info {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 8px;
    font-size: 14px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    margin-bottom: 24px;
}

.spec-label {
    font-weight: 600;
    color: var(--color-text-muted);
}

.spec-value {
    font-weight: 700;
    color: var(--color-text-main);
}

.about-title {
    font-size: 20px;
    margin-bottom: 16px;
}

.about-list {
    padding-left: 20px;
    margin-bottom: 24px;
    color: var(--color-text-main);
}

.about-list li {
    margin-bottom: 12px;
}

.seo-keywords {
    font-size: 14px;
    color: var(--color-text-muted);
    font-style: italic;
    background-color: var(--color-bg);
    padding: 12px;
    border-left: 3px solid var(--color-cta);
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    margin-bottom: 56px;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-cta);
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    padding: 16px 56px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: var(--color-cta-hover);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* --- Reviews Section --- */
.reviews-section {
    background-color: var(--color-card-bg);
    border-radius: 4px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.reviews-title {
    font-size: 26px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 16px;
}

.review-item {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
}

.author-name {
    font-weight: 700;
}

.review-rating-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.stars {
    color: var(--color-stars);
    font-size: 18px;
    letter-spacing: 2px;
}

.review-heading {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
}

.review-meta {
    font-size: 13px;
    color: var(--color-cta);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.review-text {
    margin-bottom: 16px;
}

.review-photos {
    display: flex;
    gap: 12px;
}

.review-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-footer);
    color: #BDC3C7;
    padding: 40px 16px;
    text-align: center;
    font-size: 14px;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
}

.footer-title {
    color: #ffffff;
    font-family: 'Lora', serif;
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-links a {
    color: #BDC3C7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-copyright {
    color: var(--color-text-muted);
}

/* --- Media Queries --- */
@media (max-width: 767px) {
    .amazon-gallery {
        flex-direction: column-reverse;
    }
    .gallery-thumbnails {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .thumb-label {
        width: 60px;
        flex-shrink: 0;
    }
}

@media (min-width: 768px) {
    .header-container h1 {
        font-size: 32px;
    }

    .product-section {
        flex-direction: row;
        padding: 40px;
    }

    .product-media {
        width: 50%;
    }
    
    .product-info {
        width: 50%;
    }

    .product-title {
        font-size: 28px;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 32px;
    }
}