.page-content{
    width: 100%;
}
main {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: transparent;
    position: relative;
}

.product-container.table-size-page {
    width: 78%;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    /* méně žlutý glass – čitelnější na fotopozadí */
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: fadeIn 1.3s ease-in-out forwards;
    opacity: 0;
    border-radius: 0 0 28px 28px;
    padding: 8px 0 28px;
    box-sizing: border-box;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1;
}

/* Ztmavení fotopozadí jen u tabulek velikostí – méně „žlutého závoje“ */
.master--table-size::before,
.master:has(.table-size-page)::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(28, 24, 8, 0.28) 0%,
            rgba(28, 24, 8, 0.18) 40%,
            rgba(28, 24, 8, 0.32) 100%
        );
}

.table-size-page > h1 {
    position: relative;
    z-index: 1;
    margin: 18px 0 10px;
    padding: 0 16px;
    text-align: center;
    line-height: 1.2;
}

.table-sizes {
    width: 90%;
    margin: 12px auto 0;
    overflow: visible;
}

.table-sizes-heading {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    margin: 12px auto 4px;
    position: relative;
    z-index: 1;
}

.table-sizes-heading-logo {
    height: 34px;
    width: auto;
    max-width: 130px;
    max-height: 34px;
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: 6px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.table-sizes h2 {
    text-align: center;
    margin: 0;
    padding: 0;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.45em;
    font-weight: 600;
    line-height: 1.2;
}

.table-sizes-lead {
    text-align: center;
    margin: 4px auto 12px;
    color: var(--text2-color);
    font-size: 0.98rem;
    max-width: 36em;
    line-height: 1.35;
}

.table-sizes .link {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 22px;
    margin: 16px auto 8px;
}

.table-sizes .link a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.05em;
    font-weight: 600;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 220px;
}

.table-sizes .link a h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
}

.table-preview {
    position: relative;
    display: block;
    width: 200px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 0 5px var(--text1-color);
    background-color: var(--background-color);
}

.table-preview--no-radius {
    border-radius: 0;
}

.table-preview--dark {
    background-color: #111;
}

.table-preview-logo-wrap {
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
    border-radius: 18px;
    background: radial-gradient(
        circle at 60% 40%,
        rgba(255, 255, 255, 0.82) 0%,
        rgba(255, 255, 255, 0.55) 32%,
        rgba(255, 255, 255, 0.2) 58%,
        rgba(255, 255, 255, 0) 78%
    );
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 28px 8px rgba(255, 255, 255, 0.25);
}

.table-preview-logo {
    display: block;
    max-height: 28px;
    max-width: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.table-sizes--payper,
.table-sizes--vm {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--secondary-color);
}

.table-preview-img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: top center;
    margin: 0;
    background: #fff;
}

.table-preview-img--contain {
    object-fit: contain;
    padding: 18px;
    box-sizing: border-box;
    height: 160px;
}

.table-size-back {
    width: 100%;
    margin: 12px 0 0;
    padding: 0 18px;
    box-sizing: border-box;
    text-align: left;
}

.table-size-back a {
    color: var(--link-color);
    font-weight: 600;
    text-decoration: none;
}

.table-size-back a:hover {
    text-decoration: underline;
}

.table-size-detail-heading {
    margin-top: 4px;
}

.table-size-detail-heading h1 {
    margin: 0;
    font-size: 1.45em;
    line-height: 1.2;
    text-align: center;
}

.table-size-detail .table-sizes-lead a {
    color: var(--link-color);
}

.size-chart-list {
    width: 92%;
    margin: 8px auto 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.size-chart-block {
    margin: 0 auto;
    width: 100%;
    max-width: 920px;
}

.size-chart-block figcaption h2 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    color: var(--text2-color);
    text-align: center;
}

.size-chart-block figcaption p {
    margin: 0 0 10px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text2-color);
}

.size-chart-link {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 5px var(--text1-color);
    background: #fff;
}

.size-chart-link--dark {
    background: #111;
    border-radius: 0;
}

.size-chart-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.payper-pictograms {
    width: 92%;
    margin: 10px auto 20px;
    padding: 16px 14px 8px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    box-sizing: border-box;
}

.payper-pictograms--page {
    width: 92%;
}

.payper-pictograms-note {
    margin: 0 auto 16px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text2-color);
    max-width: 40em;
}

.payper-pictograms-note a {
    color: var(--link-color);
}

.payper-pictogram-group {
    margin: 0 0 18px;
}

.payper-pictogram-group h2,
.payper-pictogram-group h4 {
    margin: 0 0 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--secondary-color);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text2-color);
}

.payper-pictogram-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.vm-systems-list {
    width: 92%;
    margin: 8px auto 24px;
}

.payper-pictogram-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.payper-pictogram-icon {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.vm-system-icon {
    width: 72px;
    height: 56px;
}

.payper-pictogram-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.payper-pictogram-text strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text2-color);
    line-height: 1.25;
    text-transform: uppercase;
}

.vm-system-item .payper-pictogram-text strong {
    text-transform: none;
    font-size: 0.92rem;
}

.payper-pictogram-text span {
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text2-color);
}

.vm-hero {
    width: 92%;
    max-width: 920px;
    margin: 8px auto 12px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 5px var(--text1-color);
    background: #fff;
}

.vm-hero-img {
    display: block;
    width: 100%;
    height: auto;
}

.vm-intro {
    margin-bottom: 14px;
}

.vm-cat-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 0 0 12px;
}

.vm-cat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: #fff;
}

.vm-cat-table th,
.vm-cat-table td {
    border: 1px solid var(--secondary-color);
    padding: 6px 8px;
    text-align: center;
}

.vm-cat-table th {
    background: rgba(0, 0, 0, 0.04);
}

.vm-cat-legend {
    margin: 0 0 10px;
    padding-left: 1.2em;
    font-size: 0.85rem;
    color: var(--text2-color);
    line-height: 1.45;
}

@media (max-width: 900px) {
    .payper-pictogram-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .product-container.table-size-page {
        width: 94%;
        border-radius: 0 0 22px 22px;
    }

    .table-sizes-heading {
        flex-wrap: wrap;
    }

    .table-sizes h2,
    .table-size-detail-heading h1 {
        font-size: 1.25em;
    }

    .table-preview {
        width: 170px;
        border-radius: 16px;
    }

    .table-preview--no-radius {
        border-radius: 0;
    }
}
