/* ═══════════════════════════════════════════
   PRODUCT PAGE
   ═══════════════════════════════════════════ */
.product-page {
    padding: 32px 0 0;
    min-height: 70vh;
}

/* ─── PRODUCT TOP (Gallery + Info) ─── */
.product-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
    overflow: hidden;
}

/* ─── IMAGE GALLERY ─── */
.product-gallery {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    min-width: 0;
    overflow: hidden;
}
.gallery-main {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    margin-bottom: 12px;
    overflow: hidden;
    cursor: grab;
}
.gallery-main img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.15s ease;
    mix-blend-mode: multiply;
    pointer-events: none;
    user-select: none;
}

/* Gallery Navigation Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.9);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    backdrop-filter: blur(4px);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}
.gallery-main:hover .gallery-arrow {
    opacity: 1;
}
.gallery-arrow:hover {
    background: var(--btn-gradient);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

/* Gallery Counter */
.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(26,35,50,0.7);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
    z-index: 2;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px;
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.thumb:hover {
    border-color: var(--primary);
}
.thumb.active {
    border-width: 2px;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-10);
}

/* ─── PRODUCT INFO ─── */
.product-info {
    padding-top: 8px;
    min-width: 0;
    overflow: hidden;
}
.product-brand-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.product-brand-badge img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.product-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    word-break: break-word;
    overflow-wrap: break-word;
}
.product-subtitle {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}
.product-highlight {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

/* Key Specs */
.product-key-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.key-spec {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.key-spec:hover {
    border-color: var(--primary-20);
    background: var(--primary-light);
}
.key-spec svg {
    color: var(--primary);
    flex-shrink: 0;
}
.key-spec div {
    display: flex;
    flex-direction: column;
}
.key-spec-label {
    font-size: 11px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.key-spec-value {
    font-size: 18px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

/* Product Categories */
.product-categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}
.btn-full {
    width: 100%;
    justify-content: center;
}

/* Trust Badges */
.product-trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
.trust-item svg {
    /* 16px: a demó inline attribútumban adta meg, itt CSS-ből.
       Kék, nem zöld: a zöld pipa a demóban „ellenőrzött" jelentésű volt,
       a mi ikonjaink viszont termékjellemzők — a kék illeszkedik a fenti
       kiemelt adatok ikonjaihoz. */
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}
.trust-item {
    /* Hosszú felirat inkább törjön, mint hogy szétfeszítse a sort. */
    max-width: 100%;
}

/* ─── PRODUCT TABS ─── */
.product-tabs-section {
    margin-bottom: 48px;
    overflow: hidden;
}
.product-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0;
}
.product-tab {
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    background: none;
    cursor: pointer;
}
.product-tab:hover {
    color: var(--text);
}
.product-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tab-content {
    display: none;
    background: #fff;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 32px;
    animation: fadeIn 0.3s ease;
}
.tab-content.active {
    display: block;
}

/* Tab Section Title */
.tab-section-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary);
}

/* Tab: Description */
.description-content {
    overflow-wrap: break-word;
    word-break: break-word;
}
.description-content h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin: 28px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.description-content h2:first-child {
    margin-top: 0;
}
.description-content p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.description-content ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
    list-style: disc;
}
.description-content ul li {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.description-cta {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-light), #e0f0fa);
    border-radius: var(--radius-md);
    border: 1px solid var(--primary-20);
    text-align: center;
}
.description-cta p {
    color: var(--text);
    font-weight: 500;
    margin-bottom: 16px;
}
.description-cta .btn-primary {
    display: inline-flex;
    flex: none;
}

/* Tab: Specs Table */
.specs-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table tr {
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.specs-table tr:last-child {
    border-bottom: none;
}
.specs-table tr:hover {
    background: var(--bg);
}
.specs-table td {
    padding: 14px 16px;
}
.spec-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: 40%;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
}
.spec-val {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Tab: Documents */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.document-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.document-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.document-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.document-icon svg {
    color: #e74c3c;
}
.document-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.document-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}
.document-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.document-download {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--btn-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.document-card:hover .document-download {
    background: var(--btn-gradient-hover);
}

/* ─── QUOTE FORM SECTION ─── */
.product-quote-section {
    /* A kártyák és a „Ajánlatot kérek" gomb ide ugrik — a ragadós fejléc ne takarja a tetejét. */
    scroll-margin-top: calc(var(--header-h) + 24px);
    background: var(--dark);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-bottom: 48px;
    overflow: hidden;
}
.quote-form-container {
    max-width: 680px;
    margin: 0 auto;
}
.quote-form-header {
    text-align: center;
    margin-bottom: 32px;
}
.quote-form-header h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.quote-form-header p {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
}

/* Form */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.form-group label .required {
    color: #e74c3c;
}
.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.35);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(0,136,204,0.2);
}
.form-group input[readonly] {
    background: rgba(0,136,204,0.15);
    border-color: rgba(0,136,204,0.3);
    color: var(--primary);
    font-weight: 600;
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.quote-form .btn-primary.btn-lg.btn-full {
    margin-top: 8px;
}

/* ═══════════════════════════════════════════
   A DEMÓN TÚLI ELEMEK
   A demó termékoldala egyetlen dokumentumot és nem mutatott kapcsolódó
   termékeket. Ezek a téma saját kiegészítései, a meglévő tokenekből.
   ═══════════════════════════════════════════ */

/* A kiemelt adatok ikonja — a demóban közvetlen <svg> volt, itt osztályt kap. */
.key-spec-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary);
}

/* Rövid leírás a Leírás fül élén, kiemelve a törzsszöveg elé. */
.product-lead {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    font-weight: 500;
    padding-left: 16px;
    border-left: 3px solid var(--primary);
    margin: 0 0 24px;
}

/* ─── Dokumentumlista ─── */
.document-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.document-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}
.document-list a:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.document-list svg {
    color: var(--primary);
    flex-shrink: 0;
}
.document-title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 14px;
    /* Hosszú fájlnév ne törje szét a sort. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.document-meta {
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* ─── Kapcsolódó termékek ─── */
.related-products {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.related-products .section-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 24px;
}
/* A kapcsolódó rács szűkebb, mint a listaoldalé: 4 kártya egy sorban. */
.related-products .product-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Kép nélküli termék: ne maradjon üres oszlop a kétoszlopos rácsban. */
.product-top.no-gallery {
    grid-template-columns: 1fr;
    max-width: 780px;
}

/* ═══════════════════════════════════════════
   FLUENT FORMS A SÖTÉT AJÁNLATKÉRŐ SÁVBAN
   A demó űrlapja kézzel írt HTML volt saját osztályokkal; a Fluent Forms
   viszont saját markupot ad. Ezek a szabályok a plugin osztályaira képezik
   le a demó megjelenését, hogy a sötét háttéren olvasható és egységes legyen.
   Csak a `.product-quote-section` alatt hatnak — más űrlapokat nem érintenek.
   ═══════════════════════════════════════════ */
.product-quote-section .fluentform {
    margin: 0;
}
.product-quote-section .frm-fluent-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/*
 * Az oszlopelrendezést a Fluent Forms saját CSS-e kezeli (flexbox, inline
 * flex-basis), és jól működik — SZÁNDÉKOSAN nem írjuk felül. A `.ff-t-container`
 * elemek ráadásul egymásba ágyazottak (a név-mező is tartalmaz egyet), így egy
 * rácsos felülírás a belső szinteket is eltörné.
 * Innen csak a megjelenést igazítjuk a sötét sávhoz.
 */
.product-quote-section .ff-el-group {
    margin-bottom: 16px;
}

/* Címkék */
.product-quote-section .ff-el-input--label label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.product-quote-section .ff-el-is-required.asterisk-right label:after,
.product-quote-section .ff-el-is-required.asterisk-left label:before {
    color: #e74c3c;
}

/* Beviteli mezők */
.product-quote-section .ff-el-form-control {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    box-shadow: none;
    transition: var(--transition);
    width: 100%;
}
.product-quote-section .ff-el-form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.product-quote-section .ff-el-form-control:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.2);
    color: #fff;
}
.product-quote-section textarea.ff-el-form-control {
    resize: vertical;
    min-height: 110px;
}
/* Az előtöltött termékmező kiemelve, hogy látszódjon: ez már ki van töltve. */
.product-quote-section .ff-el-form-control[readonly] {
    background: rgba(0, 136, 204, 0.15);
    border-color: rgba(0, 136, 204, 0.3);
    color: var(--primary);
    font-weight: 600;
}

/* Legördülő nyíl sötét háttéren is látszódjon. */
.product-quote-section select.ff-el-form-control {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' fill='none' stroke-width='1.5' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Beküldés gomb — a téma elsődleges gombjának megjelenésével. */
.product-quote-section .ff-btn-submit,
.product-quote-section .ff_btn_style {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    width: auto;
}
.product-quote-section .ff-btn-submit:hover,
.product-quote-section .ff_btn_style:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Jelölőnégyzet és rádió sötét háttéren */
.product-quote-section .ff-el-form-check-label,
.product-quote-section .ff-el-input--content label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.6;
}
.product-quote-section .ff-el-form-check-label a {
    color: var(--primary);
    text-decoration: underline;
}

/* Súgó- és hibaszövegek */
.product-quote-section .ff-el-help-message {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
}
.product-quote-section .error.text-danger,
.product-quote-section .ff-el-is-error .text-danger {
    color: #ff8a80;
    font-size: 12px;
}
.product-quote-section .ff-el-is-error .ff-el-form-control {
    border-color: #e74c3c;
}

/* Sikeres beküldés visszajelzése */
.product-quote-section .ff-message-success {
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(22, 163, 74, 0.4);
    color: #86efac;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════
   VIDEÓ
   ═══════════════════════════════════════════ */

/* Galéria: videó bélyegkép lejátszás jellel */
.thumb-video { position: relative; }
.thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 35, 50, 0.35);
    color: #fff;
    transition: var(--transition);
}
.thumb-video:hover .thumb-play { background: rgba(0, 136, 204, 0.55); }
.thumb-video.active .thumb-play { background: rgba(0, 136, 204, 0.4); }

/* Galéria: a beágyazott lejátszó a nagy kép helyén */
.gallery-video {
    position: absolute;
    inset: 0;
    background: #000;
    border-radius: inherit;
    overflow: hidden;
}
.gallery-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Videó fül */
.video-list {
    display: grid;
    gap: 24px;
}
.video-item { margin: 0; }
/* 16:9 arány, hogy a lejátszó ne ugráljon betöltés közben. */
.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-item figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}
