@font-face {
    font-family: 'Aptos';
    src: url('../webfonts/aptos/Aptos.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Aptos';
    src: url('../webfonts/aptos/Aptos-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Aptos';
    src: url('../webfonts/aptos/Aptos-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Aptos-Light';
    src: url('../webfonts/aptos/Aptos-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

:root {
    --fbpdb-bg-grey: #EDECEC;
    --fbpdb-block-1: #998327;
    --fbpdb-block-2: #E8B321;
    --fbpdb-block-3: #D57A29;
    --fbpdb-block-4: #6D6E71;
    --fbpdb-text-dark: #333333;
    --fbpdb-border-radius: 6mm;
}

@page {
    size: A4 landscape;
    margin: 0;
}

.product-page-export {
    width: 297mm;
    height: 210mm;
    background-color: var(--fbpdb-bg-grey);
    font-family: 'Aptos', sans-serif;
    position: relative;
    overflow: hidden;
    color: var(--fbpdb-text-dark);
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
}

.export-header {
    height: 25mm;
    padding: 0 15mm 5mm;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background-color: #fff;
    margin-bottom: 5mm;
}

.export-title {
    font-family: 'Aptos', sans-serif;
    font-weight: bold;
    font-size: 17pt;
    text-transform: uppercase;
    flex: 1;
    text-align: left;
    margin-right: 20mm;
    border-bottom: .5mm solid #333;
    padding-left: 3mm;
    letter-spacing: -0.3mm;
}

.hromatka-logo {
    width: 70mm;
    text-align: right;
}

.hromatka-logo img {
    max-width: 100%;
    height: auto;
}

.export-content {
    padding: 0 5mm;
    display: flex;
    gap: 5mm;
    height: 165mm;
}

.export-col {
    display: flex;
    flex-direction: column;
    height: 175mm;
}

.col-1,
.col-2 {
    width: 72mm;
}

.col-3 {
    flex: 1;
}

.export-block {
    background: #fff;
    border-top-left-radius: var(--fbpdb-border-radius);
    border-top-right-radius: var(--fbpdb-border-radius);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.block-header {
    height: 10mm;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Aptos', sans-serif;
    font-weight: bold;
    font-size: 13pt;
    text-transform: uppercase;
}

.block-1 .block-header {
    background-color: var(--fbpdb-block-1);
}

.block-2 .block-header {
    background-color: var(--fbpdb-block-2);
}

.impressions-container .block-header {
    background-color: var(--fbpdb-block-3);
    height: 10mm;
}

.block-4 .block-header {
    background-color: var(--fbpdb-block-4);
}

.block-body {
    padding: 5mm;
    font-size: 10pt;
}

.block-4 .block-body {
    padding: 2mm !important;
    padding-top: 3mm !important;
}

/* Col 1: Project Details */
.project-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.5mm;
}

.project-title-row {
    border-bottom: none !important;
    margin-bottom: 2mm;
}

.project-title-label {
    font-size: 11pt !important;
    border-bottom: none !important;
}

.detail-item {
    border-bottom: 1px solid #ccc;
    padding: 1mm 0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    font-size: 10pt;
    text-transform: uppercase;
    display: block;
    line-height: 1.1;
}

.detail-value {
    font-family: 'Aptos-Light', sans-serif;
    font-size: 10pt;
    display: block;
}

/* Col 2: Customer Insights */
.section-title {
    font-weight: bold;
    font-size: 10pt;
    text-transform: uppercase;
}

.insight-text ul {
    margin: 0;
    padding-left: 5mm;
}

.insight-text li {
    margin-bottom: 2mm;
}

.insight-section {
    margin-bottom: 5mm;
}

/* Col 3: Impressions & Bottom Details */
.col-3 {
    gap: 5mm;
}

.impressions-container {
    height: 128mm;
    background: #fff;
    border-top-right-radius: var(--fbpdb-border-radius);
    border-top-left-radius: var(--fbpdb-border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.impressions-container .block-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 5mm;
}

.moulder-logos {
    display: flex;
    justify-content: center;
    gap: 5mm;
    height: 30mm;
    margin-bottom: 5mm;
}

.moulder-logo-item {
    width: 34mm;
    height: auto;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2mm;
}

.moulder-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.main-project-image {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-project-image img {
    max-width: 90mm;
    max-height: 90mm;
    object-fit: contain;
}

.block-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.block-4 .block-header {
    height: 10mm;
    font-size: 11pt;
    flex-shrink: 0;
}

.block-4 .block-body {
    background: #fff;
    flex: 1;
    padding: 5mm;
    display: flex;
    gap: 5mm;
}

/* PDF Overlay */
.pdf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pdf-overlay-content {
    text-align: center;
    color: #fff;
}

.pdf-status {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.pdf-progress {
    font-size: 0.9rem;
    opacity: 0.7;
}

.bottom-details {
    display: flex;
    gap: 5mm;
}

/* Web View Preview Adjustments (Non-Print) */
@media screen {
    body {
        background: #1a1a1a;
    }

    .product-pages-container {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .product-page-export {
        margin: 0 auto 40px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .blocks-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(33, 37, 41, 0.95);
        backdrop-filter: blur(10px);
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
}

/* Hromatka Logo Styled Text */
.hromatka-text-logo {
    font-family: 'Aptos', sans-serif;
    font-weight: bold;
    font-size: 26pt;
    color: #EF7D00;
    line-height: 1;
}

.company-logo-slot {
    width: 30mm;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -1mm;
}

.company-logo-slot img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.contact-status-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5mm;
}

.anonymized-view .moulder-logos,
.force-anonymize-view .moulder-logos,
.anonymized-view .detail-item-oem,
.force-anonymize-view .detail-item-oem,
.anonymized-view .detail-item-moulder,
.force-anonymize-view .detail-item-moulder {
    display: none !important;
}

.force-anonymize-view .normal-view-dynamic {
    display: none !important;
}

.force-anonymize-view .anonymized-view-dynamic {
    display: inline !important;
}

.anonymized-view .main-project-image,
.force-anonymize-view .main-project-image,
.no-moulder-logos .main-project-image {
    height: 100%;
}