:root {
    --blyott-dark: #0a2540;
    --blyott-blue: #1e5a8a;
    --blyott-light-blue: #f0f7ff;
    --blyott-accent: #f5a623;
    --blyott-accent-light: #fff8e6;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #888888;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --bg-light: #f8f9fb;
    --success: #10b981;
    --warning: #f59e0b;
    --pending: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 10.5pt;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

a { color: var(--blyott-blue); }

/* Header */
.header {
    background: linear-gradient(135deg, var(--blyott-dark) 0%, var(--blyott-blue) 100%);
    color: var(--white);
    padding: 22px 40px 80px;
}

.header-content {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img { height: 38px; width: auto; }

.header-tag {
    font-size: 9pt;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main */
.main-content {
    max-width: 1080px;
    margin: -45px auto 0;
    padding: 36px 44px 48px;
    background: var(--white);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.06);
    position: relative;
    z-index: 10;
}

/* Hero */
.hero-section {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 2px solid var(--blyott-accent);
}

.hero-section h1 {
    font-size: 24pt;
    font-weight: 500;
    color: var(--blyott-dark);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.hero-section .tagline {
    font-size: 11pt;
    color: var(--blyott-accent);
    font-weight: 500;
}

.hero-section .subtitle {
    font-size: 10pt;
    color: var(--text-secondary);
    margin-top: 8px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Section header */
.section-header {
    font-size: 14pt;
    font-weight: 500;
    color: var(--blyott-dark);
    border-bottom: 2px solid var(--blyott-accent);
    padding-bottom: 8px;
    margin: 32px 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header .icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--blyott-dark) 0%, var(--blyott-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12pt;
    flex-shrink: 0;
}

/* Product picker */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 4px 0 24px;
}

.product-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 26px 22px 22px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.product-card:hover {
    border-color: var(--blyott-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(30,90,138,0.14);
}

.product-card.active {
    border-color: var(--blyott-accent);
    background: var(--blyott-accent-light);
    box-shadow: 0 8px 22px rgba(245,166,35,0.20);
}

.product-card .product-code {
    font-size: 17pt;
    font-weight: 600;
    color: var(--blyott-dark);
    letter-spacing: -0.3px;
}

.product-card .product-name {
    font-size: 10pt;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
    min-height: 38px;
}

.product-card .product-vendor {
    font-size: 8pt;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 8px;
}

.product-card .product-status {
    display: inline-block;
    margin-top: 10px;
    font-size: 7.5pt;
    padding: 3px 10px;
    border-radius: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.product-status.certified {
    background: #d4f4dd;
    color: #1d8a4a;
}

.product-status.partial {
    background: #fff0d4;
    color: #b46a00;
}

.product-status.pending {
    background: #e2e8f0;
    color: #475569;
}

/* Product header (selected) */
.product-detail {
    margin-top: 8px;
}

.product-detail-header {
    background: linear-gradient(135deg, var(--blyott-light-blue) 0%, #e8eef7 100%);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 22px;
    border-left: 4px solid var(--blyott-accent);
}

.product-detail-header h2 {
    font-size: 18pt;
    color: var(--blyott-dark);
    font-weight: 500;
    margin-bottom: 4px;
}

.product-detail-header .vendor {
    font-size: 9pt;
    color: var(--blyott-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.product-detail-header p {
    font-size: 10pt;
    color: var(--text-secondary);
    line-height: 1.65;
}

.product-detail-header .meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
    font-size: 9pt;
    color: var(--text-secondary);
}

.product-detail-header .meta-row strong {
    color: var(--blyott-dark);
    font-weight: 600;
}

/* Category groups */
.category-group {
    margin-bottom: 26px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 12pt;
    font-weight: 500;
    color: var(--blyott-dark);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: white;
    font-size: 9pt;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: -0.3px;
}

.badge-ce { background: linear-gradient(135deg, #1e5a8a, #3b82f6); }
.badge-fcc { background: linear-gradient(135deg, #b91c1c, #dc2626); }
.badge-rohs { background: linear-gradient(135deg, #047857, #10b981); }
.badge-reach { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.badge-ip { background: linear-gradient(135deg, #0369a1, #0ea5e9); }
.badge-lvd { background: linear-gradient(135deg, #b45309, #f59e0b); }
.badge-other { background: linear-gradient(135deg, #475569, #64748b); }

.category-meta {
    font-size: 8.5pt;
    color: var(--text-light);
    font-weight: 400;
    margin-left: auto;
}

/* File list */
.file-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.file-item:hover {
    background: var(--blyott-light-blue);
    border-color: var(--blyott-blue);
    transform: translateX(2px);
}

.file-icon {
    width: 38px;
    height: 38px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #dc2626;
    font-size: 9pt;
    font-weight: 700;
}

.file-content {
    flex: 1;
    min-width: 0;
}

.file-title {
    font-size: 10pt;
    color: var(--blyott-dark);
    font-weight: 500;
    line-height: 1.4;
}

.file-desc {
    font-size: 8.5pt;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.4;
}

.file-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
    flex-wrap: wrap;
}

.file-tag {
    display: inline-block;
    font-size: 7pt;
    padding: 2px 7px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tag-final { background: #d4f4dd; color: #1d8a4a; }
.tag-draft { background: #fff0d4; color: #b46a00; }
.tag-aoc { background: #e0e7ff; color: #3730a3; }
.tag-cert { background: #fef3c7; color: #92400e; }
.tag-report { background: #e2e8f0; color: #475569; }
.tag-info { background: #dbeafe; color: #1e40af; }

.file-action {
    flex-shrink: 0;
    color: var(--blyott-blue);
    font-size: 11pt;
}

.file-item:hover .file-action { color: var(--blyott-accent); }

/* Empty/notice state */
.notice-box {
    background: #fff8e6;
    border: 1px solid #f5a623;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 10pt;
    color: #92400e;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notice-box.info {
    background: var(--blyott-light-blue);
    border-color: var(--blyott-blue);
    color: var(--blyott-dark);
}

.notice-box .notice-icon {
    flex-shrink: 0;
    font-size: 14pt;
    line-height: 1;
}

.notice-box strong { font-weight: 600; }

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--blyott-dark) 0%, #0d3152 100%);
    color: var(--white);
    padding: 24px 40px;
    margin-top: 0;
}

.footer-content {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
    font-size: 8.5pt;
    opacity: 0.85;
    line-height: 1.6;
}

.footer-content a {
    color: var(--blyott-accent);
    text-decoration: none;
}

.footer-content a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 920px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .main-content { padding: 28px 22px 36px; }
    .header { padding: 18px 22px 70px; }
    .hero-section h1 { font-size: 18pt; }
    .product-detail-header { padding: 20px; }
    .product-detail-header h2 { font-size: 15pt; }
    .product-card { padding: 22px 18px 18px; }
    .product-card .product-code { font-size: 15pt; }
}

@media (max-width: 520px) {
    .product-grid { grid-template-columns: 1fr; }
    .file-item { padding: 12px 14px; gap: 10px; }
    .file-icon { width: 32px; height: 32px; font-size: 8pt; }
}
