/* Pecsétmester – Táblakészítés / theme=2
   Az oldalhoz tartozó stílusok külön fájlban.
   A legtöbb szabály a .pm-table-page alá van scope-olva. */

.pm-table-breadcrumb {
    margin-top: -8px;
}

.pm-table-breadcrumb a {
    color: #fff;
}

.pm-table-breadcrumb__separator {
    color: #0097cf;
}

.pm-table-page,
.pm-table-page * {
    box-sizing: border-box;
}

.pm-table-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    font-family: "Manrope", Arial, sans-serif;
    color: #1d2933;
    line-height: 1.6;
}

.pm-table-page img {
    max-width: 100%;
    height: auto;
}

.pm-table-page a {
    text-decoration: none;
}

.pm-table-hero {
    padding: 24px 0 18px;
    border-bottom: 1px solid #e1e6e9;
}

.pm-table-hero h1,
.pm-table-section-heading h2 {
    margin: 0;
    color: #17252e;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.pm-table-hero h1 {
    font-size: clamp(32px, 4.2vw, 52px);
    line-height: 1.05;
}

.pm-table-hero p {
    margin: 10px 0 0;
    color: #59707e;
    font-size: clamp(16px, 2vw, 21px);
}

.pm-table-hero p span {
    color: #17252e;
}

/* Galéria */

.pm-table-carousel {
    position: relative;
    margin: 24px 0 28px;
    padding: 0 44px;
}

.pm-table-carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(235px, 27%);
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding: 2px 2px 12px;
}

.pm-table-carousel__card {
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dbe2e6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(35, 55, 68, 0.06);
}

.pm-table-carousel__card img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: #f7f9fa;
}

.pm-table-carousel__card p {
    margin: 0;
    padding: 13px 14px 16px;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    color: #334b59;
}

.pm-table-carousel__button {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: #2d4b5e;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.pm-table-carousel__button:hover {
    background: #203946;
}

.pm-table-carousel__button:disabled {
    opacity: 0.28;
    cursor: default;
}

.pm-table-carousel__button--prev {
    left: 0;
}

.pm-table-carousel__button--next {
    right: 0;
}

/* Gyorslinkek */

.pm-table-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 28px;
}

.pm-table-action {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    min-height: 104px;
    padding: 16px;
    border: 1px solid #d8e0e5;
    border-radius: 14px;
    background: #fff;
    color: #2d4b5e;
    box-shadow: 0 4px 16px rgba(35, 55, 68, 0.05);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.pm-table-action:hover {
    transform: translateY(-2px);
    border-color: #9fb2be;
    box-shadow: 0 8px 22px rgba(35, 55, 68, 0.10);
}

.pm-table-action img {
    grid-row: 1 / span 2;
    max-width: 58px;
    max-height: 58px;
    object-fit: contain;
}

.pm-table-action strong {
    align-self: end;
    font-size: 16px;
    line-height: 1.25;
}

.pm-table-action span {
    align-self: start;
    margin-top: 4px;
    color: #718491;
    font-size: 13px;
}

/* Fő képességek */

.pm-table-capabilities {
    padding: 28px;
    border-radius: 18px;
    background: #f1f5f7;
    text-align: center;
}

.pm-table-capabilities__icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.pm-table-capabilities__icons div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #2d4b5e;
    font-size: 14px;
    text-transform: uppercase;
}

.pm-table-capabilities__icons img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.pm-table-capabilities__size {
    margin-top: 28px;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.2;
}

.pm-table-capabilities p {
    margin: 14px 0 0;
    font-size: clamp(15px, 2vw, 19px);
}

/* Tanúsítvány / garancia */

.pm-table-trust {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: stretch;
    margin: 22px 0;
}

.pm-table-trust__cert {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 20px;
    border: 1px solid #e1e6e9;
    border-radius: 16px;
    background: #fff;
}

.pm-table-trust__cert img {
    width: 125px;
    max-height: 150px;
    object-fit: contain;
}

.pm-table-trust__cert p {
    margin: 0 0 10px;
}

.pm-table-trust__cert p:last-child {
    margin-bottom: 0;
}

.pm-table-badge {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #cfd9df;
    background: #eef3f5;
    text-align: center;
}

.pm-table-badge strong {
    display: block;
    margin-bottom: 12px;
    color: #2d4b5e;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.pm-table-badge span {
    font-size: 13px;
    line-height: 1.45;
}

/* Szöveges blokk */

.pm-table-content-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
    padding: 22px 0;
    border-top: 1px solid #e2e7ea;
    border-bottom: 1px solid #e2e7ea;
}

.pm-table-content-card__text p {
    margin: 0 0 14px;
}

.pm-table-badge--lifetime {
    position: sticky;
    top: 12px;
}

.pm-table-photo-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 20px 0;
}

.pm-table-photo-strip img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.pm-table-protection {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
    gap: 22px;
    align-items: center;
    padding: 20px;
    border: 1px solid #e0e6e9;
    border-radius: 16px;
    background: #fff;
}

.pm-table-protection__photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.pm-table-protection__photos img {
    width: 100%;
    border-radius: 8px;
}

.pm-table-protection h2 {
    margin: 0 0 10px;
    color: #2d4b5e;
    font-size: 24px;
}

.pm-table-protection p {
    margin: 0 0 10px;
}

/* Árajánlat */

.pm-table-quote,
.pm-table-materials {
    margin-top: 34px;
    scroll-margin-top: 100px;
}

.pm-table-section-heading {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.pm-table-section-heading h2 {
    font-size: clamp(27px, 3.4vw, 38px);
    line-height: 1.12;
}

.pm-table-section-heading p {
    margin: 6px 0 0;
    color: #657b88;
}

.pm-table-online-order {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dce3e7;
    border-radius: 12px;
    color: #2d4b5e;
    font-size: 12px;
    line-height: 1.35;
}

.pm-table-online-order:hover {
    background: #f5f8f9;
}

.pm-table-online-order img {
    width: 58px;
    max-height: 58px;
    object-fit: contain;
}

.pm-table-quote > p {
    margin: 0 0 12px;
}

.pm-table-quote__grid {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.pm-table-quote__requirements {
    padding: 20px;
    border-radius: 14px;
    background: #2d4b5e;
    color: #fff;
}

.pm-table-quote__requirements ul,
.pm-table-final-quote ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.pm-table-quote__requirements li,
.pm-table-final-quote li {
    margin: 5px 0;
}

.pm-table-quote__notes {
    padding: 20px;
    border: 1px solid #dce4e8;
    border-radius: 14px;
    background: #f8fafb;
}

.pm-table-quote__notes p {
    margin: 0 0 12px;
}

.pm-table-quote__notes p:last-child {
    margin-bottom: 0;
}

.pm-table-email {
    display: block;
    margin: 18px 0 0;
    padding: 15px 18px;
    border-radius: 12px;
    background: #2d4b5e;
    color: #fff !important;
    font-size: clamp(20px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
}

.pm-table-email:hover {
    background: #203946;
}

/* Anyagok */

.pm-table-section-heading--materials {
    padding-bottom: 14px;
    border-bottom: 1px solid #e1e7ea;
}

.pm-table-rowmark-logo {
    max-width: 170px;
    max-height: 70px;
    object-fit: contain;
}

.pm-material-legend {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) repeat(5, minmax(110px, 1fr));
    gap: 10px;
    align-items: stretch;
    margin-bottom: 24px;
}

.pm-material-legend__intro,
.pm-material-legend__item {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e0e6e9;
    border-radius: 12px;
    background: #fff;
}

.pm-material-legend__intro {
    display: flex;
    align-items: center;
}

.pm-material-legend__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 11px;
    line-height: 1.3;
}

.pm-material-legend__item img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.pm-material-group-title {
    margin: 28px 0 14px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #17252e;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}

.pm-material {
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid #dfe6ea;
    border-radius: 16px;
    background: #fff;
}

.pm-material__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.pm-material__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.pm-material__title h3 {
    margin: 0;
    color: #17252e;
    font-size: clamp(26px, 3.5vw, 36px);
    line-height: 1.1;
}

.pm-material__use {
    color: #a72424;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.pm-material__icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.pm-material__icons img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.pm-material__description {
    padding: 16px;
    border-radius: 12px;
    background: #f2f5f7;
    font-size: 13px;
    line-height: 1.55;
}

.pm-material__description p {
    margin: 0 0 12px;
}

.pm-material__description p:last-of-type {
    margin-bottom: 0;
}

.pm-material-specs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.pm-material-specs--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pm-material-specs > div {
    display: flex;
    min-height: 86px;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    border: 1px solid #bac7ce;
    border-radius: 9px;
    background: #fff;
    text-align: center;
    line-height: 1.35;
}

.pm-material__wide-image {
    display: block;
    max-width: 100%;
    margin: 16px auto 0;
    border-radius: 10px;
}

/* Színminták */

.pm-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.pm-color-card {
    min-width: 0;
}

.pm-color-card__link {
    display: flex;
    height: 100%;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    border: 1px solid #dde4e8;
    border-radius: 12px;
    background: #fff;
    color: #263f4e;
    text-align: center;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.pm-color-card__link:hover {
    transform: translateY(-2px);
    border-color: #9eb2be;
    box-shadow: 0 6px 18px rgba(31, 57, 72, .10);
}

.pm-color-card__image {
    width: 100px;
    height: 100px !important;
    margin-bottom: 8px;
    object-fit: contain;
}

.pm-color-card__label {
    color: #738692;
    font-size: 11px;
}

.pm-color-card__name {
    display: block;
    margin: 2px 0 7px;
    font-size: 12px;
    line-height: 1.25;
}

.pm-color-card__code {
    margin-top: auto;
    font-size: 14px;
    line-height: 1.2;
}

.pm-material-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 17, 22, .9);
    color: #fff !important;
    cursor: zoom-out;
}

.pm-material-lightbox:target {
    display: flex;
}

.pm-material-lightbox__content {
    display: flex;
    max-width: min(760px, 95vw);
    max-height: 92vh;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 14px;
    background: #17252e;
    text-align: center;
    cursor: zoom-out;
}

.pm-material-lightbox__content img {
    max-width: 100%;
    max-height: 68vh;
    object-fit: contain;
}

.pm-material-lightbox__content strong {
    font-size: 16px;
    line-height: 1.35;
}

.pm-material-lightbox__close {
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 999px;
    font-size: 12px;
}

/* Záró ajánlat */

.pm-material-availability {
    margin: 18px 0;
    padding: 18px;
    border-left: 4px solid #2d4b5e;
    background: #f4f7f8;
}

.pm-material-availability p {
    margin: 0;
}

.pm-table-final-quote {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
    gap: 18px;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
    border-radius: 16px;
    background: #eef3f5;
}

.pm-table-final-quote .pm-table-email {
    margin: 0;
    font-size: clamp(18px, 3vw, 26px);
}

/* Reszponzív */

@media (max-width: 980px) {
    .pm-table-carousel__track {
        grid-auto-columns: minmax(235px, 39%);
    }

    .pm-table-actions {
        grid-template-columns: 1fr;
    }

    .pm-table-capabilities__icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pm-table-trust,
    .pm-table-content-card {
        grid-template-columns: 1fr;
    }

    .pm-table-badge--lifetime {
        position: static;
    }

    .pm-material-legend {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pm-material-legend__intro {
        grid-column: 1 / -1;
    }

    .pm-material-specs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .pm-table-page {
        padding-inline: 12px;
    }

    .pm-table-hero {
        padding-top: 18px;
    }

    .pm-table-carousel {
        margin-inline: -12px;
        padding-inline: 44px;
    }

    .pm-table-carousel__track {
        grid-auto-columns: minmax(230px, 76%);
    }

    .pm-table-trust__cert {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pm-table-trust__cert img {
        margin: 0 auto;
    }

    .pm-table-content-card,
    .pm-table-protection {
        grid-template-columns: 1fr;
    }

    .pm-table-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .pm-table-online-order {
        flex-basis: auto;
        width: 100%;
    }

    .pm-table-quote__grid {
        grid-template-columns: 1fr;
    }

    .pm-material__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .pm-material__icons {
        justify-content: flex-start;
    }

    .pm-material-specs,
    .pm-material-specs--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pm-table-final-quote {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .pm-table-carousel {
        padding-inline: 34px;
    }

    .pm-table-carousel__track {
        grid-auto-columns: 88%;
    }

    .pm-table-carousel__button {
        width: 30px;
        height: 30px;
        font-size: 24px;
    }

    .pm-table-action {
        grid-template-columns: 46px minmax(0, 1fr);
        min-height: 88px;
        padding: 12px;
    }

    .pm-table-action img {
        max-width: 46px;
        max-height: 46px;
    }

    .pm-table-capabilities {
        padding: 20px 14px;
    }

    .pm-table-capabilities__icons {
        gap: 18px 8px;
    }

    .pm-table-capabilities__icons img {
        width: 52px;
        height: 52px;
    }

    .pm-table-photo-strip,
    .pm-table-protection__photos {
        grid-template-columns: 1fr;
    }

    .pm-material-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pm-material {
        padding: 14px;
    }

    .pm-material__title {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .pm-material-specs,
    .pm-material-specs--three {
        grid-template-columns: 1fr;
    }

    .pm-color-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .pm-color-card__link {
        min-height: 205px;
        padding: 10px 7px;
    }

    .pm-color-card__image {
        width: 86px;
        height: 86px !important;
    }

    .pm-table-email {
        padding-inline: 10px;
    }
}
