:root {
    --purple: #6c3bff;
    --purple-light: #f3edff;
    --bg: #f5f5f7;
    --card: #ffffff;
    --text-main: #222222;
    --text-muted: #777777;
    --border: #e0e0e0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text-main);
}

/* Top bar */

.admin-shell {
    min-height: 100vh;
}

.admin-header {
    padding: 16px 32px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title {
    font-size: 20px;
    font-weight: 600;
}

/* Tabs */

.admin-nav {
    padding: 0 32px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.admin-tab {
    padding: 10px 18px;
    margin: 0;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
}

.admin-tab.active {
    background: var(--purple);
    color: #ffffff;
}

/* Page wrapper */

.admin-content {
    padding: 24px 32px 40px;
}

/* Cards */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.card {
    background: var(--card);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(15, 15, 20, 0.06);
}

.card-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.card-value {
    font-size: 22px;
    font-weight: 600;
}

.card-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Tables */

.table-wrapper {
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 15, 20, 0.06);
    padding: 12px 16px 16px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.table-title {
    font-weight: 600;
}

.table-search {
    padding: 6px 9px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 13px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th,
.table td {
    padding: 8px 6px;
    text-align: left;
}

.table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.table tr:nth-child(even) td {
    background: #fafafa;
}

/* Status pill */

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    background: #e6f7ea;
    color: #1d7a35;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    gap: 6px;
}

.btn-primary {
    background: var(--purple);
    color: #ffffff;
}

.btn-danger {
    background: #ff4b4b;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

/* Form */

.form-card {
    background: var(--card);
    border-radius: 12px;
    padding: 20px 22px 22px;
    box-shadow: 0 1px 3px rgba(15, 15, 20, 0.06);
    max-width: 520px;
}

.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

input[type="text"],
input[type="number"],
input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 14px;
}

/* Image grid on landing */

.product-grid {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 16px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 15, 20, 0.06);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.product-body {
    padding: 12px 14px 16px;
}

.product-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.product-price {
    font-weight: 500;
    color: var(--purple);
}

/* Alerts */

.alert {
    padding: 10px 12px;
    margin-bottom: 18px;
    border-radius: 8px;
    font-size: 14px;
}

.alert-success {
    background: #e8f8ee;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Landing header */

.landing-header {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.landing-logo {
    font-size: 20px;
    font-weight: 700;
}

.landing-admin-link {
    font-size: 14px;
    text-decoration: none;
    color: var(--purple);
}

/* Responsive */

@media (max-width: 768px) {
    .admin-header,
    .admin-nav,
    .admin-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .admin-nav {
        overflow-x: auto;
    }
}
.logo-img {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* OPTIONAL: For extra smooth appearance */
.logo-img {
    image-rendering: auto;
    transition: 0.25s ease-in-out;
}