:root{
    --dark:#111827;
    --brand:#b8860b;
    --brand-dark:#8a6508;
    --soft:#f7f4ee;
    --line:#e5e7eb;
    --green:#0f766e;
    --text:#1f2937;
    --muted:#6b7280;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    background:#f5f6f8;
    color:var(--text);
}

.top,
.hero{
    background:linear-gradient(135deg,#111827,#3b2f18);
    color:white;
    padding:34px 20px;
}

.wrap,
form{
    max-width:1180px;
    margin:0 auto;
}

.brand,
.hero h1{
    font-size:30px;
    font-weight:800;
    letter-spacing:.3px;
    margin:0;
}

.sub,
.hero p{
    opacity:.9;
    margin-top:8px;
}

.card{
    background:white;
    border:1px solid var(--line);
    border-radius:18px;
    padding:24px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    margin:22px auto;
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:16px;
}

.field label,
.card label{
    display:block;
    font-weight:700;
    margin-bottom:6px;
}

.field input,
.field textarea,
.field select,
.card input,
.card textarea,
.card select{
    width:100%;
    padding:13px 14px;
    border:1px solid #d1d5db;
    border-radius:12px;
    font-size:15px;
}

.field textarea,
.card textarea{
    min-height:92px;
}

.notice{
    background:#fffbeb;
    border:1px solid #fde68a;
    color:#92400e;
    border-radius:12px;
    padding:14px;
    margin-top:16px;
}

.cat-title,
.section-title{
    max-width:1180px;
    margin:34px auto 16px;
    font-size:24px;
    font-weight:800;
    border-left:5px solid var(--brand);
    padding-left:12px;
}

.product-grid{
    max-width:1180px;
    margin:0 auto 34px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(245px,1fr));
    gap:18px;
}

.product,
.product-card{
    position:relative;
    display:block;
    border:2px solid #e5e7eb;
    border-radius:18px;
    overflow:hidden;
    background:white;
    transition:.2s;
    cursor:pointer;
    box-shadow:0 8px 24px rgba(0,0,0,.05);
}

.product:hover,
.product-card:hover{
    transform:translateY(-3px);
    box-shadow:0 16px 36px rgba(0,0,0,.08);
    border-color:var(--brand);
}

.product input[type="radio"],
.product-card input[type="radio"]{
    position:absolute;
    top:14px;
    right:14px;
    width:auto;
    transform:scale(1.4);
    z-index:2;
}

.product img,
.product-card img{
    width:100%;
    height:175px;
    object-fit:cover;
    background:#eee;
    display:block;
}

.pbody,
.product-card h3,
.product-card p,
.product-card strong{
    margin-left:14px;
    margin-right:14px;
}

.pbody{
    padding:14px;
    margin:0;
}

.pname,
.product-card h3{
    font-weight:800;
    font-size:18px;
    margin-top:14px;
    margin-bottom:7px;
}

.meta,
.product-card p{
    color:var(--muted);
    font-size:14px;
    margin-top:6px;
    margin-bottom:12px;
}

.badge,
.product-card strong{
    display:inline-block;
    background:#ecfdf5;
    color:#047857;
    border-radius:999px;
    padding:6px 11px;
    font-size:12px;
    font-weight:800;
    margin-bottom:14px;
}

.badge.opt{
    background:#fff7ed;
    color:#c2410c;
}

.product-card strong{
    background:#ecfdf5;
    color:#047857;
}

.btn{
    display:inline-block;
    border:0;
    background:var(--brand);
    color:white;
    padding:13px 20px;
    border-radius:12px;
    font-weight:800;
    text-decoration:none;
    cursor:pointer;
}

.btn:hover{
    background:var(--brand-dark);
}

.btn.dark{
    background:#111827;
}

.btn.green{
    background:var(--green);
}

.actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:18px;
}

.admin-layout{
    display:grid;
    grid-template-columns:240px 1fr;
    min-height:100vh;
}

.side{
    background:#111827;
    color:white;
    padding:22px;
}

.side a{
    display:block;
    color:white;
    text-decoration:none;
    padding:11px;
    border-radius:10px;
    margin:5px 0;
}

.side a:hover{
    background:#374151;
}

.main{
    padding:24px;
}

.table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:14px;
    overflow:hidden;
}

.table th,
.table td{
    padding:12px;
    border-bottom:1px solid #e5e7eb;
    text-align:left;
}

.table th{
    background:#f9fafb;
}

.login{
    max-width:420px;
    margin:80px auto;
}

@media(max-width:800px){
    .admin-layout{
        grid-template-columns:1fr;
    }

    .side{
        position:relative;
    }

    .product img,
    .product-card img{
        height:145px;
    }

    .brand,
    .hero h1{
        font-size:24px;
    }
}