/* ══════════════════════════════════════════════════════════════════════
   Witezy Admin — Professional Design System
   Inspired by Shopify Polaris
   ══════════════════════════════════════════════════════════════════════ */

:root {
    --w-bg: #f6f6f7;
    --w-surface: #ffffff;
    --w-surface-hover: #f6f6f7;
    --w-border: #e1e3e5;
    --w-border-light: #edeeef;
    --w-text: #202223;
    --w-text-secondary: #6d7175;
    --w-text-disabled: #8c9196;
    --w-primary: #008060;
    --w-primary-hover: #006e52;
    --w-primary-light: #e3f1eb;
    --w-success: #008060;
    --w-success-light: #aee9d1;
    --w-warning: #b98900;
    --w-warning-light: #ffea8a;
    --w-critical: #d72c0d;
    --w-critical-light: #fed3d1;
    --w-info: #2c6ecb;
    --w-info-light: #bfdbfe;
    --w-sidebar: #f7f7f7;
    --w-sidebar-hover: rgba(0, 0, 0, 0.05);
    --w-sidebar-active: rgba(0, 0, 0, 0.07);
    --w-sidebar-text: #303030;
    --w-sidebar-text-active: #303030;
    --w-radius: 8px;
    --w-radius-sm: 6px;
    --w-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    --w-shadow-card: 0 0 0 1px rgba(63, 63, 68, 0.05), 0 1px 3px 0 rgba(63, 63, 68, 0.15);
    --w-shadow-elevated: 0 0 5px rgba(0, 0, 0, 0.08), 0 2px 16px rgba(0, 0, 0, 0.12);
    --w-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    font-family: var(--w-font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--w-text);
    background-color: var(--w-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ─────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--w-text);
    line-height: 1.3;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }

/* ── Links & Buttons ────────────────────────────────────────────── */

a, .btn-link {
    color: var(--w-primary);
    text-decoration: none;
}

a:hover {
    color: var(--w-primary-hover);
    text-decoration: underline;
}

.btn-primary {
    color: #fff;
    background-color: var(--w-primary);
    border-color: var(--w-primary);
    border-radius: var(--w-radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: background-color 0.15s ease;
}

.btn-primary:hover, .btn-primary:active {
    background-color: var(--w-primary-hover);
    border-color: var(--w-primary-hover);
}

.btn-outline-primary {
    color: var(--w-text);
    border-color: var(--w-border);
    border-radius: var(--w-radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background: var(--w-surface);
}

.btn-outline-primary:hover {
    background-color: var(--w-surface-hover);
    color: var(--w-text);
    border-color: var(--w-border);
}

.btn-outline-secondary {
    border-radius: var(--w-radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
}

.btn-outline-danger {
    border-radius: var(--w-radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
}

.btn-outline-success {
    border-radius: var(--w-radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
}

.btn-sm {
    font-size: 0.8125rem;
    padding: 0.3rem 0.75rem;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 2px var(--w-primary-light);
    border-color: var(--w-primary);
}

/* ── Cards (Polaris-style) ──────────────────────────────────────── */

.card {
    background: var(--w-surface);
    border: none;
    border-radius: var(--w-radius);
    box-shadow: var(--w-shadow-card);
    transition: box-shadow 0.15s ease;
}

.card:hover {
    box-shadow: 0 0 0 1px rgba(63, 63, 68, 0.05), 0 2px 6px rgba(63, 63, 68, 0.18);
}

.card-header {
    background: var(--w-surface);
    border-bottom: 1px solid var(--w-border-light);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: var(--w-radius) var(--w-radius) 0 0 !important;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: var(--w-surface-hover);
    border-top: 1px solid var(--w-border-light);
    border-radius: 0 0 var(--w-radius) var(--w-radius) !important;
}

/* ── Forms ───────────────────────────────────────────────────────── */

.form-control {
    border-radius: var(--w-radius-sm);
    border-color: var(--w-border);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.form-control:focus {
    border-color: var(--w-primary);
    box-shadow: 0 0 0 2px var(--w-primary-light);
}

.form-select {
    border-radius: var(--w-radius-sm);
    border-color: var(--w-border);
    font-size: 0.875rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
}

.form-select:focus {
    border-color: var(--w-primary);
    box-shadow: 0 0 0 2px var(--w-primary-light);
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: var(--w-text);
}

/* ── Tables ──────────────────────────────────────────────────────── */

.table {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: var(--w-text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    border-bottom-width: 1px;
    border-color: var(--w-border-light);
    padding: 0.75rem 1rem;
    background: var(--w-surface-hover);
}

.table td {
    padding: 0.75rem 1rem;
    border-color: var(--w-border-light);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: var(--w-surface-hover);
}

/* ── Badges ──────────────────────────────────────────────────────── */

.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10rem;
    letter-spacing: 0.02em;
}

.badge.bg-success { background-color: #aee9d1 !important; color: #004c3f !important; }
.badge.bg-danger { background-color: var(--w-critical-light) !important; color: #6b0f02 !important; }
.badge.bg-warning { background-color: var(--w-warning-light) !important; color: #5d4200 !important; }
.badge.bg-info { background-color: var(--w-info-light) !important; color: #1f3d73 !important; }
.badge.bg-secondary { background-color: #e4e5e7 !important; color: var(--w-text) !important; }
.badge.bg-primary { background-color: #c9d4f5 !important; color: #1f3d73 !important; }
.badge.bg-dark { background-color: #40404f !important; color: #fff !important; }

/* ── Alerts ──────────────────────────────────────────────────────── */

.alert {
    border-radius: var(--w-radius);
    font-size: 0.875rem;
    border: none;
}

.alert-danger {
    background-color: var(--w-critical-light);
    color: #6b0f02;
}

.alert-warning {
    background-color: var(--w-warning-light);
    color: #5d4200;
}

.alert-info {
    background-color: #e0f0ff;
    color: #1f3d73;
}

.alert-success {
    background-color: var(--w-success-light);
    color: #004c3f;
}

/* ── Pagination ──────────────────────────────────────────────────── */

.pagination .page-item .page-link {
    border-radius: var(--w-radius-sm);
    margin: 0 2px;
    font-size: 0.875rem;
    color: var(--w-text);
    border-color: var(--w-border);
}

.pagination .page-item.active .page-link {
    background-color: var(--w-primary);
    border-color: var(--w-primary);
}

/* ── Progress Bars ───────────────────────────────────────────────── */

.progress {
    border-radius: 100px;
    background-color: #e4e5e7;
}

/* ── Modal ────────────────────────────────────────────────────────── */

.modal-content {
    border: none;
    border-radius: var(--w-radius);
    box-shadow: var(--w-shadow-elevated);
}

.modal-header {
    border-bottom: 1px solid var(--w-border-light);
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--w-border-light);
    padding: 1rem 1.5rem;
}

/* ── Stat Cards ──────────────────────────────────────────────────── */

.stat-card {
    background: var(--w-surface);
    border-radius: var(--w-radius);
    box-shadow: var(--w-shadow-card);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.8125rem;
    color: var(--w-text-secondary);
    font-weight: 500;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--w-text);
    line-height: 1.2;
}

.stat-card .stat-change {
    font-size: 0.8125rem;
    font-weight: 500;
}

.stat-card .stat-change.positive { color: var(--w-success); }
.stat-card .stat-change.negative { color: var(--w-critical); }

/* ── Content Area ────────────────────────────────────────────────── */

.content {
    padding-top: 0;
}

/* ── Page Header ─────────────────────────────────────────────────── */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin: 0;
}

/* ── Description List ────────────────────────────────────────────── */

dl.row dt {
    font-weight: 500;
    color: var(--w-text-secondary);
    font-size: 0.875rem;
}

dl.row dd {
    font-size: 0.875rem;
}

/* ── List Groups ─────────────────────────────────────────────────── */

.list-group-item {
    border-color: var(--w-border-light);
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
}

/* ── Misc ────────────────────────────────────────────────────────── */

code {
    color: var(--w-text);
    background: var(--w-surface-hover);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8125rem;
}

h1:focus { outline: none; }

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--w-success);
}

.invalid {
    outline: 1px solid var(--w-critical);
}

.validation-message {
    color: var(--w-critical);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ── Loading Skeleton ────────────────────────────────────────────── */

.loading-placeholder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--w-text-secondary);
    font-size: 0.875rem;
    padding: 2rem;
}

.spinner-sm {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--w-border);
    border-top-color: var(--w-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Dashboard widgets ──────────────────────────────────────────────────── */
.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-list li { padding: 0.625rem 1rem; border-bottom: 1px solid var(--w-border-light, #f1f2f3); display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; }
.widget-list li:last-child { border-bottom: none; }

/* ── Bulk action toolbar ────────────────────────────────────────────────── */
.bulk-toolbar { background: #e3f1df; border: 1px solid var(--w-primary, #008060); border-radius: 8px; padding: 0.5rem 1rem; display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.875rem; font-weight: 500; }

/* ── Status multi-select dropdown ───────────────────────────────────────── */
.status-dropdown { position: relative; display: inline-block; }
.status-dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 10; background: var(--w-surface, #fff); border: 1px solid var(--w-border, #e1e3e5); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 0.5rem; min-width: 180px; margin-top: 4px; }
.status-dropdown-menu label { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.5rem; font-size: 0.875rem; cursor: pointer; border-radius: 4px; }
.status-dropdown-menu label:hover { background: var(--w-surface-hover, #f6f6f7); }

/* ── Filter Tabs ────────────────────────────────────────────────── */

.filter-tabs {
    display: flex;
    gap: 0;
    border-bottom: none;
    background: var(--w-surface);
    border: 1px solid var(--w-border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 0 0.5rem;
}

.filter-tab {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
    background: none;
    color: var(--w-text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.filter-tab:hover {
    color: var(--w-text);
}

.filter-tab.active {
    color: var(--w-text);
    border-bottom-color: var(--w-text);
}

/* ── Status Badges ──────────────────────────────────────────────── */

.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.6;
}

.status-active {
    background: var(--w-success-light);
    color: #004c3f;
}

.status-draft {
    background: var(--w-surface-hover);
    color: var(--w-text-secondary);
}

.status-archived {
    background: var(--w-critical-light);
    color: #6b0f02;
}

/* ── Product Form Grid ──────────────────────────────────────────── */

.product-form-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.25rem;
    align-items: start;
}

.product-form-left,
.product-form-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-section {
    background: var(--w-surface);
    border: 1px solid var(--w-border);
    border-radius: 12px;
    padding: 1.25rem;
}

.form-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--w-text);
    margin-bottom: 0.75rem;
}

/* ── Skeleton Loader ─────────────────────────────────────────────── */

@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: 4px;
}
.skeleton-card {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 0 0 1px rgba(63,63,68,.05), 0 1px 3px rgba(63,63,68,.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.skeleton-title { height: 14px; width: 60%; }
.skeleton-value { height: 28px; width: 40%; }
.skeleton-sub { height: 12px; width: 50%; }
.skeleton-cell { height: 14px; width: 80%; }
.skeleton-text { height: 14px; width: 100%; margin-bottom: 8px; }
.skeleton-row td { padding: 0.75rem 1rem; }

/* ── Filter / Action Bar ────────────────────────────────────────── */

.filter-bar {
    padding: 0.75rem 1.25rem;
}

.filter-bar .form-control,
.filter-bar .form-select {
    height: auto;
}

.search-input { max-width: 320px; }
.filter-select { max-width: 160px; }
.filter-select-sm { max-width: 180px; }
.filter-select-md { max-width: 220px; }
.date-input { max-width: 160px; }

/* ── Inline Action Buttons ─────────────────────────────────────── */

.btn-inline {
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    border-radius: var(--w-radius-sm);
    font-weight: 500;
    line-height: 1.5;
}

/* ── Text Utilities ────────────────────────────────────────────── */

.text-secondary { color: var(--w-text-secondary) !important; }
.text-disabled { color: var(--w-text-disabled) !important; }
.text-xs { font-size: 0.6875rem; }
.text-sm { font-size: 0.8125rem; }
.text-base { font-size: 0.875rem; }

/* ── Pagination Footer ─────────────────────────────────────────── */

.pagination-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
}

.pagination-info {
    font-size: 0.8125rem;
    color: var(--w-text-secondary);
}

.pagination-nav .pagination {
    margin-bottom: 0;
    gap: 2px;
}

/* ── Empty State ───────────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--w-text-secondary);
}

.empty-state p { margin: 0; }

/* ── Text Truncation ───────────────────────────────────────────── */

.text-truncate-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Info Box (Reference Alert) ────────────────────────────────── */

.info-box {
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    background: var(--w-surface);
    margin-bottom: 1rem;
}

.info-box svg { flex-shrink: 0; color: var(--w-info); }
.info-box p { margin: 0; color: var(--w-text-secondary); }

/* ── Modal Overlay (Consolidated) ──────────────────────────────── */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modal-fade-in 0.15s ease;
}

.modal-dialog-custom {
    background: var(--w-surface);
    border-radius: var(--w-radius);
    box-shadow: var(--w-shadow-elevated);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modal-slide-in 0.15s ease;
}

.modal-dialog-lg { max-width: 680px; }
.modal-dialog-sm { max-width: 400px; }

.modal-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--w-border-light);
}

.modal-hdr h2, .modal-hdr h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--w-text-disabled);
    padding: 0.25rem;
    border-radius: var(--w-radius-sm);
    line-height: 1;
}

.modal-close:hover { color: var(--w-text); background: var(--w-surface-hover); }

.modal-bd {
    padding: 1.5rem;
}

.modal-ft {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--w-border-light);
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-slide-in {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ── Form Group Utility ────────────────────────────────────────── */

.form-group {
    margin-bottom: 1rem;
}

.form-group:last-child { margin-bottom: 0; }

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

/* ── Detail Page Sections ──────────────────────────────────────── */

.detail-section {
    background: var(--w-surface-hover);
    border-radius: var(--w-radius-sm);
    padding: 0.75rem;
}

.detail-label {
    font-size: 0.8125rem;
    color: var(--w-text-secondary);
    font-weight: 500;
}

.detail-value {
    font-size: 0.875rem;
    color: var(--w-text);
}

/* ── Action Flex Containers ────────────────────────────────────── */

.actions-row {
    display: flex;
    gap: 0.25rem;
}

.actions-row-sm {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* ── Image Placeholder ─────────────────────────────────────────── */

.img-placeholder {
    width: 40px;
    height: 40px;
    border-radius: var(--w-radius-sm);
    background: var(--w-surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--w-text-disabled);
    font-size: 0.75rem;
}

/* ── Upload Area ───────────────────────────────────────────────── */

.upload-area {
    border: 2px dashed var(--w-border);
    border-radius: var(--w-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.upload-area:hover {
    border-color: var(--w-primary);
    background: var(--w-primary-light);
}

.upload-area p { margin: 0.5rem 0 0; color: var(--w-text-secondary); font-size: 0.8125rem; }

/* ── SEO Preview ───────────────────────────────────────────────── */

.seo-preview {
    padding: 0.75rem;
    background: var(--w-surface-hover);
    border-radius: var(--w-radius-sm);
}

.seo-preview-title { color: #1a0dab; font-size: 1rem; font-weight: 500; }
.seo-preview-url { color: #006621; font-size: 0.8125rem; }
.seo-preview-desc { color: var(--w-text-secondary); font-size: 0.8125rem; }

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
    .product-form-grid {
        grid-template-columns: 1fr;
    }
}
