/* ============================================
   KOTERMEK.CSS – Egyedi kőtermék aloldalak
   Kerítésfedlapok / Konyhapultok / Burkolatok
   ============================================ */

/* ===== LAYOUT ===== */
.kotermek-layout {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* ===== INTRO BLOKK ===== */
.kotermek-intro {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--szin-kozep);
    margin-bottom: 0.75rem;
}

.kotermek-intro-text h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--szin-sotét);
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

.kotermek-intro-text p {
    font-size: 0.975rem;
    color: var(--szin-vilagos);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.kotermek-intro-text p:last-child {
    margin-bottom: 0;
}

/* ===== JELLEMZŐK KÁRTYA ===== */
.kotermek-features {
    background: white;
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid var(--szin-border);
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    position: sticky;
    top: 90px;
}

.kotermek-features h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--szin-halvany);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--szin-border);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--szin-sotét);
    line-height: 1.4;
}

.feature-list li::before {
    content: '';
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: var(--szin-hatter);
    border: 2px solid var(--szin-kozep);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2357534e' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.features-divider {
    height: 1px;
    background: var(--szin-border);
    margin: 1.25rem 0;
}

.features-contact-hint {
    font-size: 0.8rem;
    color: var(--szin-vilagos);
    line-height: 1.6;
    padding: 0.75rem;
    background: var(--szin-hatter);
    border-radius: 8px;
}

.features-contact-hint a {
    color: var(--szin-kozep);
    font-weight: 600;
    text-decoration: none;
}

.features-contact-hint a:hover {
    color: var(--szin-sotét);
}

/* ===== GALÉRIA ===== */
.kotermek-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kotermek-gallery-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.kotermek-gallery-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--szin-sotét);
    position: relative;
    padding-left: 1rem;
}

.kotermek-gallery-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.1em;
    bottom: 0.1em;
    width: 4px;
    background: var(--szin-kozep);
    border-radius: 2px;
}

.kotermek-gallery-header p {
    font-size: 0.875rem;
    color: var(--szin-vilagos);
}

/* Galéria - egyforma négyzetes thumb rács */
.kotermek-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

/* Minden elem tökéletes négyzet, caption overlay */
.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--szin-hatter);
    border: 1px solid var(--szin-border);
    transition: box-shadow 0.25s, transform 0.25s;
}

.gallery-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    transform: translateY(-2px);
}

.gallery-thumb {
    width: 100%;
    height: 100%;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-thumb img {
    transform: scale(1.07);
}

/* Caption: alulról felcsúszik hoverre */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.6rem;
    background: linear-gradient(transparent, rgba(30,25,20,0.82));
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.35;
    transform: translateY(100%);
    transition: transform 0.28s ease;
    text-align: center;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Nagyítás ikon bal felső sarokban */
.gallery-zoom-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
    font-size: 0.85rem;
    color: var(--szin-sotét);
}

.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
}

.kotermek-gallery-empty p {
    font-size: 0.875rem;
    color: var(--szin-halvany);
}

/* ===== LIGHTBOX ===== */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(4px);
}

.lightbox-img-wrap {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 1100px);
    max-height: 90vh;
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -2rem;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

/* ===== CTA BOX ===== */
.kotermek-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--szin-sotét);
    border-radius: 14px;
    flex-wrap: wrap;
}

.kotermek-cta-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.35rem;
}

.kotermek-cta-text p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    max-width: 500px;
}

.kotermek-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ===== GOMBOK ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    background: var(--arany);
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--arany-sotet);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,169,110,0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.45);
    transform: translateY(-2px);
}

/* ===== RESZPONZÍV ===== */
@media (max-width: 1024px) {
    .kotermek-intro {
        grid-template-columns: 1fr;
    }

    .kotermek-features {
        position: static;
    }

    .kotermek-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .kotermek-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .kotermek-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .kotermek-cta-buttons {
        width: 100%;
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .kotermek-gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== ABLAKPÁRKÁNYOK OLDAL SPECIFIKUS ===== */

/* Kalkulátor kiemelő banner */
.ablak-calculator-banner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(201,169,110,0.12) 0%, rgba(138,109,59,0.08) 100%);
    border: 1.5px solid rgba(201,169,110,0.35);
    border-radius: 14px;
    flex-wrap: wrap;
}

.ablak-calc-icon {
    color: var(--arany);
    flex-shrink: 0;
    background: rgba(201,169,110,0.15);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ablak-calc-text {
    flex: 1;
    min-width: 200px;
}

.ablak-calc-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--szin-sotét);
    margin-bottom: 0.35rem;
}

.ablak-calc-text p {
    font-size: 0.875rem;
    color: var(--szin-vilagos);
    line-height: 1.6;
}

.ablak-calc-btn {
    flex-shrink: 0;
    background: var(--arany) !important;
}

/* Anyag típusok szekció */
.ablak-materials-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--szin-sotét);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    position: relative;
}

.ablak-materials-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.1em;
    bottom: 0.1em;
    width: 4px;
    background: var(--szin-kozep);
    border-radius: 2px;
}

.ablak-materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.ablak-material-card {
    background: white;
    border: 1px solid var(--szin-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.25s;
}

.ablak-material-card:hover {
    border-color: var(--szin-border2);
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

.ablak-material-icon {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.ablak-material-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--szin-sotét);
}

.ablak-material-card p {
    font-size: 0.85rem;
    color: var(--szin-vilagos);
    line-height: 1.65;
    flex: 1;
}

.ablak-material-tag {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--szin-hatter);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--szin-kozep);
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .ablak-calculator-banner {
        flex-direction: column;
        text-align: center;
    }

    .ablak-materials-grid {
        grid-template-columns: 1fr;
    }

    .ablak-calc-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .kotermek-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
