/* Card Vault Pro UK - Industrial Compliance CSS */
:root {
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #cbd5e1;
    --primary-blue: #1e3a8a;
    --accent-blue: #2563eb;
    --success-green: #059669;
    --badge-bg: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    padding-bottom: 50px;
}

.notice-bar {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 8px 24px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #3b82f6;
}

.notice-bar a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-shield {
    background: #1e3a8a;
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
    padding: 6px 14px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.logo-text p {
    font-size: 12px;
    color: #64748b;
}

nav {
    display: flex;
    gap: 16px;
}

nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

nav a:hover, nav a.active {
    color: #1e3a8a;
    background-color: #eff6ff;
    border-color: #bfdbfe;
}

.container {
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 24px;
}

/* KPI Banner */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.kpi-card.highlight {
    border-left: 4px solid #2563eb;
}

.kpi-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 4px 0;
}

.kpi-sub {
    font-size: 12px;
    color: var(--success-green);
    font-weight: 600;
}

/* Section Header */
.section-header {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 24px;
}

.product-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.product-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.card-img-wrap {
    height: 340px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.card-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.card-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 6px;
}

.card-meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.card-price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.card-price {
    font-size: 20px;
    font-weight: 800;
    color: #1e3a8a;
}

.btn-vault {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Table Design */
.table-wrap {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow-x: auto;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

table.data-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

table.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

table.data-table tr:nth-child(even) {
    background: #fbfcfe;
}

/* Reviews Page */
.review-stats {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 32px;
    align-items: center;
}

.rating-big {
    text-align: center;
    border-right: 1px solid #e2e8f0;
    padding-right: 24px;
}

.score-num {
    font-size: 54px;
    font-weight: 800;
    color: #059669;
    line-height: 1;
}

.stars {
    color: #059669;
    font-size: 24px;
    margin: 8px 0;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.author-name {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.author-loc {
    font-size: 12px;
    color: #64748b;
}

.review-title {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin: 8px 0 6px 0;
}

.review-body {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.review-verified {
    font-size: 11px;
    color: #059669;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: 48px;
    padding: 40px 24px;
    font-size: 13px;
    border-top: 3px solid #2563eb;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 12px;
}

.footer-col p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-bottom {
    max-width: 1400px;
    margin: 24px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 12px;
}
