* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    background: #f5f6f8;
    color: #222;
}
header.site-header {
    background: #1f2430;
    color: #fff;
    padding: 100px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header.site-header a { color: #fff; text-decoration: none; }
header.site-header h1 { margin: 0; font-size: 22px; }
.site-header {
    position: relative;
}

.site-logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    /*left: 80px;*/
    /*right: 20px;*/
    height: 150px; /* adjust to fit your logo */
    width: auto;
}

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #eee;
}
.product-card .no-photo {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #999;
    font-size: 13px;
}
.product-card .body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { margin: 0 0 6px; font-size: 16px; }
.product-card .note { color: #666; font-size: 13px; flex: 1; margin-bottom: 10px; }
.product-card .price { font-weight: bold; font-size: 16px; margin-bottom: 6px; }
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
}
.badge.in { background: #e3f7e9; color: #1a7f37; }
.badge.out { background: #fde8e8; color: #c0332f; }

/* Admin */
.admin-nav { display: flex; gap: 16px; align-items: center; }
.admin-nav a { font-size: 14px; }
table.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
table.admin-table th, table.admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
}
table.admin-table th { background: #f0f1f4; }
table.admin-table img.thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }

.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    background: #3b5bfd;
}
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.edit { background: #2f9e44; }
.btn.delete { background: #e03131; }
.btn.secondary { background: #6c757d; }

form.card-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    max-width: 480px;
}
form.card-form label { display: block; margin-top: 12px; margin-bottom: 4px; font-weight: 600; font-size: 13px; }
form.card-form input[type=text], form.card-form input[type=number], form.card-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
form.card-form textarea { resize: vertical; min-height: 70px; }
form.card-form .checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
form.card-form .checkbox-row label { margin: 0; }
form.card-form .actions { margin-top: 18px; display: flex; gap: 10px; }

.login-box {
    max-width: 360px;
    margin: 80px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.alert.error { background: #fde8e8; color: #c0332f; }
.alert.success { background: #e3f7e9; color: #1a7f37; }
.current-photo { margin: 8px 0; }
.current-photo img { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; }



