:root {
    --card-radius: 1.25rem;
    --dark-surface: #111827;
    --soft-surface: #ffffff;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.product-card,
.metric-card,
.metric-card-light,
.modal-content,
.card,
.accordion-item,
.alert,
.form-control,
.form-select,
.btn,
.catalog-note {
    border-radius: var(--card-radius);
}

.product-image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-top-left-radius: var(--card-radius);
    border-top-right-radius: var(--card-radius);
    background: #f3f4f6;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    font-size: 0.95rem;
}

.metric-card,
.metric-card-light {
    padding: 1rem;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .06);
}

.metric-card {
    background: var(--dark-surface);
    color: #fff;
}

.metric-card-light {
    background: var(--soft-surface);
    color: #111827;
}

.metric-card span,
.metric-card-light span {
    opacity: 0.85;
    font-size: 0.9rem;
}

.metric-card strong,
.metric-card-light strong {
    font-size: 1.35rem;
    line-height: 1.2;
}

.metric-card small,
.metric-card-light small {
    opacity: 0.8;
}

.nav-pills .nav-link.active {
    background: var(--dark-surface);
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.price-stack {
    line-height: 1.25;
}

.accordion-button:not(.collapsed) {
    background: #f8fafc;
    color: inherit;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.catalog-note {
    min-width: 240px;
}

@media (max-width: 576px) {
    .metric-card strong,
    .metric-card-light strong {
        font-size: 1.1rem;
    }
}
