
:root{
    color-scheme:light;
    --orange:#ef8f08;
    --orange-hover:#d77c00;
    --page:#f6f4ef;
    --page-glow:rgba(245,155,30,.14);
    --surface:#ffffff;
    --surface-soft:#f0ede6;
    --surface-input:#ffffff;
    --text:#17130f;
    --muted:#70685e;
    --line:rgba(31,25,18,.12);
    --shadow:0 24px 70px rgba(54,42,25,.11);
    --green:#27864a;
    --green-bg:rgba(39,134,74,.11);
    --red:#c9373d;
    --red-bg:rgba(201,55,61,.1);
    --header:rgba(255,255,255,.88);
    --floating:rgba(255,255,255,.94);
}

html[data-theme="dark"]{
    color-scheme:dark;
    --orange:#f59b1e;
    --orange-hover:#ffb84d;
    --page:#0a0906;
    --page-glow:rgba(245,155,30,.13);
    --surface:#15120f;
    --surface-soft:#1d1915;
    --surface-input:#0f0d0b;
    --text:#fff8ef;
    --muted:#a89f92;
    --line:rgba(255,248,239,.11);
    --shadow:0 28px 80px rgba(0,0,0,.35);
    --green:#71d28f;
    --green-bg:rgba(76,175,110,.13);
    --red:#ff7e82;
    --red-bg:rgba(229,72,77,.13);
    --header:rgba(10,9,6,.9);
    --floating:rgba(21,18,15,.95);
}

*{box-sizing:border-box}

html{
    min-height:100%;
    background:var(--page);
    transition:background .25s ease,color .25s ease;
}

body{
    margin:0;
    min-height:100vh;
    background:
        radial-gradient(circle at 78% 8%,var(--page-glow),transparent 28%),
        var(--page);
    color:var(--text);
    font-family:'Kanit',system-ui,sans-serif;
    transition:background .25s ease,color .25s ease;
}

a{text-decoration:none;color:inherit}
button,input{font:inherit}
button{cursor:pointer}

.brand{display:flex;flex-direction:column;line-height:.86}
.brand span,.brand strong{font-family:'Anton',sans-serif}
.brand span{font-size:24px;color:var(--text)}
.brand strong{font-size:34px;color:var(--orange)}
.brand small{margin-top:6px;color:var(--muted);font-size:9px;letter-spacing:.34em}
.brand.compact span{font-size:18px}
.brand.compact strong{font-size:25px}

.eyebrow{margin:0 0 8px;color:var(--orange);font-size:10px;font-weight:800;letter-spacing:.28em}
.muted{color:var(--muted)}

.login-page{display:grid;place-items:center;padding:24px}
.login-shell{width:min(460px,100%)}
.login-card{
    padding:32px;
    border:1px solid var(--line);
    border-radius:28px;
    background:var(--surface);
    box-shadow:var(--shadow);
    transition:.25s ease;
}
.login-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:34px}
.login-top .brand{margin-bottom:0}
.login-card h1{margin:0;font-family:'Anton';font-size:58px;line-height:1;text-transform:uppercase}
.login-card form{display:grid;gap:16px;margin-top:24px}

label{display:grid;gap:7px;color:var(--muted);font-size:13px;font-weight:700}
input{
    width:100%;
    min-height:48px;
    padding:0 14px;
    border:1px solid var(--line);
    border-radius:13px;
    background:var(--surface-input);
    color:var(--text);
    outline:none;
}
input:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(245,155,30,.13)}

.primary-button{
    min-height:51px;
    padding:0 22px;
    border:0;
    border-radius:999px;
    background:var(--orange);
    color:#15100a;
    font-weight:800;
}
.primary-button:hover{background:var(--orange-hover);transform:translateY(-2px)}
.primary-button:disabled{opacity:.5;cursor:not-allowed}
.link-button{margin-top:18px;display:flex;align-items:center;justify-content:center}

.alert{margin:18px 0;padding:13px 15px;border-radius:13px;font-size:14px;font-weight:700}
.alert.error{background:var(--red-bg);color:var(--red);border:1px solid rgba(201,55,61,.25)}
.alert.success{background:var(--green-bg);color:var(--green);border:1px solid rgba(39,134,74,.25)}

.admin-header{
    position:sticky;
    top:0;
    z-index:30;
    min-height:75px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:11px 22px;
    background:var(--header);
    backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line);
}
.admin-header-actions{display:flex;align-items:center;gap:10px}
.admin-user{color:var(--muted);font-size:13px}

.logout-link{
    padding:9px 14px;
    border:1px solid var(--line);
    border-radius:999px;
    background:var(--surface);
    font-size:13px;
    font-weight:800;
}
.logout-link:hover{background:var(--orange);border-color:var(--orange);color:#15100a}

.language-switcher{display:flex;align-items:center;gap:6px}
.language-switcher a,.theme-toggle{
    min-width:40px;
    height:36px;
    padding:0 11px;
    border:1px solid var(--line);
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--surface);
    color:var(--text);
    font-size:12px;
    font-weight:800;
}
.theme-toggle{width:40px;padding:0}
.language-switcher a:hover,.language-switcher a.active,.theme-toggle:hover{
    background:var(--orange);
    border-color:var(--orange);
    color:#15100a;
}
.theme-icon{font-size:17px;line-height:1}

.admin-shell{width:min(1240px,100%);margin:0 auto;padding:52px 20px 130px}
.admin-intro{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:35px}
.admin-intro h1{margin:0;font-family:'Anton';font-size:clamp(48px,8vw,86px);line-height:1;text-transform:uppercase}
.search-box{width:min(330px,100%)}

.category-section{margin-top:55px}
.category-heading{display:flex;align-items:baseline;gap:14px;margin-bottom:17px}
.category-heading h2{margin:0;font-family:'Anton';font-size:34px;text-transform:uppercase}
.category-heading span{color:var(--muted);font-size:13px}

.products-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:15px}
.price-card{
    display:grid;
    grid-template-columns:72px 1fr;
    gap:14px;
    padding:15px;
    border:1px solid var(--line);
    border-radius:20px;
    background:var(--surface);
    box-shadow:0 10px 28px rgba(54,42,25,.045);
}
html[data-theme="dark"] .price-card{box-shadow:none}
.price-card:hover{border-color:rgba(245,155,30,.45);transform:translateY(-2px)}

.product-image{
    width:72px;
    height:72px;
    display:grid;
    place-items:center;
    overflow:hidden;
    border-radius:16px;
    background:var(--surface-soft);
    color:var(--muted);
    font-size:10px;
    text-align:center;
}
.product-image img{width:100%;height:100%;object-fit:contain}
.product-info{min-width:0}
.product-info h3{margin:0;font-size:15px;line-height:1.2}
.product-info p{margin:4px 0 8px;color:var(--muted);font-size:12px}

.availability{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800}
.availability.available{background:var(--green-bg);color:var(--green)}
.availability.unavailable{background:var(--red-bg);color:var(--red)}

.price-field{grid-column:1/-1}
.price-input-wrap{position:relative}
.price-input-wrap span{
    position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    color:var(--orange);
    font-weight:800;
}
.price-input-wrap input{padding-left:31px;font-size:18px;font-weight:800}

.save-bar{
    position:fixed;
    left:50%;
    bottom:20px;
    z-index:40;
    width:min(900px,calc(100% - 28px));
    padding:14px 16px;
    border:1px solid var(--line);
    border-radius:21px;
    background:var(--floating);
    backdrop-filter:blur(16px);
    box-shadow:var(--shadow);
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}
.save-bar div{display:flex;flex-direction:column}
.save-bar span{color:var(--muted);font-size:12px}

@media(max-width:700px){
    .admin-header{padding:10px 12px}
    .admin-header-actions{gap:6px}
    .admin-user{display:none}
    .language-switcher a,.theme-toggle{min-width:35px;height:34px;padding:0 8px}
    .theme-toggle{width:35px}
    .logout-link{padding:8px 9px;font-size:11px}
    .admin-shell{padding:35px 14px 130px}
    .admin-intro{align-items:stretch;flex-direction:column}
    .search-box{width:100%}
    .products-grid{grid-template-columns:1fr}
    .save-bar{bottom:10px;align-items:stretch;flex-direction:column}
    .save-bar .primary-button{width:100%}
    .login-card{padding:25px 21px}
    .login-card h1{font-size:49px}
}
