﻿#basic-root {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    color: #1f2933;
}

.basic-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

    .basic-header h1 {
        font-size: clamp(2rem, 4vw, 2.75rem);
        margin-bottom: 0.75rem;
        font-weight: 700;
    }

    .basic-header .lead {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        color: #52606d;
        margin: 0;
    }

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #52606d;
}

/* === Product template panel === */
.basic-template {
    margin: 1.5rem 0 2.5rem;
}

.basic-panel {
    border: none;
    border-radius: 1.25rem; /* lekerekített */
    background: linear-gradient(165deg, #ffffff 0%, #f7f9ff 100%);
    box-shadow: 0 18px 35px rgba(15,23,42,.12), 0 8px 18px rgba(15,23,42,.06); /* 3D hatás */
    overflow: hidden;
}

.basic-panel__header {
    padding: 1.2rem 1.5rem 0.5rem;
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
}

    .basic-panel__header h1 {
        margin: 0;
        font-size: clamp(1.25rem, 2.5vw, 1.6rem);
        font-weight: 700;
        color: #1f2933;
    }

.product-panel__header .badge {
    display: inline-flex;
    align-items: center;
    padding: .3rem .6rem;
    border-radius: 999px;
    background: rgba(67,97,238,.15);
    color: #1f2933;
    font-weight: 600;
    letter-spacing: .02em;
}

.basic-panel__body {
    display: grid;
    grid-template-columns: 1fr 2fr; /* kép ~1/4, szöveg ~3/4 */
    gap: 1.25rem;
    padding: 1rem 1.5rem 1.25rem;
    align-items: flex-start; /* hogy minden a felső sorban induljon */
}

@media (max-width: 800px) {
    .basic-panel__body {
        grid-template-columns: 1fr;
    }
}

.basic-media {
    display: flex;
    align-items: flex-start; /* kép felülre kerüljön */
    justify-content: flex-start; /* balra igazítva */
    background: #fff;
    border-radius: 1rem;
    min-height: 0; /* ne kényszerítsen nagy dobozt */
    box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
    padding: .5rem;
    max-width: 350px; /* opcionális: ne lehessen túl széles a kép doboza */
}

    .basic-media img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9; /* 16:9 arány */
        object-fit: cover; /* kitölti a négyzetet, ha kell picit vág */
        display: block;
        border-radius: .75rem;
    }

.basic-media_square {
    display: flex;
    align-items: flex-start; /* kép felülre kerüljön */
    justify-content: flex-start; /* balra igazítva */
    background: #fff;
    border-radius: 1rem;
    min-height: 0; /* ne kényszerítsen nagy dobozt */
    box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
    padding: .5rem;
    max-width: 350px; /* opcionális: ne lehessen túl széles a kép doboza */
}

.basic-media_square img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1; /* 1:1 arány */
        object-fit: cover; /* kitölti a négyzetet, ha kell picit vág */
        display: block;
        border-radius: .75rem;
    }

.basic-media__placeholder {
    color: #64748b;
    font-size: .95rem;
}

.basic-content .lead {
    margin: 0 0 .75rem 0;
    font-size: 1.05rem;
    color: #334155;
}

.basic-content .description {
    color: #475569;
    line-height: 1.6;
}

.docs h3 {
    margin: 1rem 0 .5rem 0;
    font-size: 1.05rem;
}

.docs ul {
    margin: 0;
    padding-left: 1.2rem;
}

.basic-panel__footer {
    padding: 0 1.5rem 1.25rem;
    display: flex;
    justify-content: flex-start;
}

/* Doc buttons row */
.doc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Make anchor look/behave like the existing back-button */
.back-button.doc-button {
    text-decoration: none;
    display: inline-flex;
}

/*Products page carousel*/
.basic-gallery img {
    display: block;
    width: auto;
    height: 100%; /* magasság arányosan a szélességhez */
    max-height: 75vh; /* legfeljebb a viewport 75%-a, hogy ne lógjon ki */
    object-fit: contain; /* arányosan, levágás nélkül */
    background: #f8fafc; /* világos háttér, ha a kép kisebb */
    margin: 0 auto; /* középre igazítás */
}

/* --- Termék képek szekció --- */
.basic-gallery {
    margin-top: 2rem;
    text-align: center;
}

.basic-gallery-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #374151; /* sötétszürke */
}

.toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    background: linear-gradient(135deg, #4361ee, #4895ef);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(67, 97, 238, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .back-button[disabled] {
        background: #d2d6dc;
        color: #7b8794;
        cursor: not-allowed;
        box-shadow: none;
    }

    .back-button:not([disabled]):hover,
    .back-button:not([disabled]):focus-visible {
        transform: translateY(-1px);
        box-shadow: 0 18px 30px rgba(67, 97, 238, 0.3);
        outline: none;
    }
