:root { --blue:#33348f; --blue-dark:#24256d; --red:#b42318; --green:#16734b; --ink:#111218; --muted:#666976; --line:#dfe1e8; --surface:#f3f4f7; font-family:Arial,Helvetica,sans-serif; color:var(--ink); background:var(--surface); }
* { box-sizing:border-box; }
body { margin:0; }
a { color:var(--blue); }
button,input,textarea,select { font:inherit; }
.login-page { min-height:100vh; display:grid; place-items:center; padding:24px; background:#eef0f5; }
.login-card { width:min(430px,100%); padding:42px; background:white; box-shadow:0 24px 70px rgba(30,31,85,.15); }
.login-card img { width:250px; max-width:100%; }
.login-card h1 { margin:34px 0 24px; font-size:2rem; }
label { display:grid; gap:8px; color:var(--ink); font-size:.82rem; font-weight:800; }
input,textarea,select { width:100%; padding:12px 13px; color:var(--ink); background:white; border:1px solid #c9ccd6; }
input:focus,textarea:focus,select:focus { outline:3px solid rgba(51,52,143,.18); border-color:var(--blue); }
.login-card label + label { margin-top:16px; }
.login-card button,.primary { width:100%; margin:22px 0 18px; padding:13px 18px; color:white; background:var(--blue); border:0; font-weight:800; }
.login-card > a { font-size:.86rem; }
.admin-header { position:sticky; top:0; z-index:20; min-height:76px; padding:0 max(24px,calc((100% - 1400px)/2)); display:flex; align-items:center; justify-content:space-between; gap:24px; background:white; border-bottom:1px solid var(--line); }
.admin-header img { width:235px; }
.admin-header > div { display:flex; align-items:center; gap:18px; }
.admin-nav > a { font-size:.84rem; font-weight:800; text-decoration:none; }
.admin-header form { margin:0; }
.admin-header button { padding:10px 13px; color:white; background:var(--blue); border:0; }
.admin-layout { width:min(1400px,calc(100% - 40px)); margin:38px auto 80px; display:grid; grid-template-columns:minmax(440px,.8fr) 1.2fr; gap:28px; align-items:start; }
.editor,.product-admin-list { max-height:calc(100vh - 118px); padding:30px; overflow-y:auto; scrollbar-gutter:stable; scrollbar-color:var(--blue) #e5e6eb; scrollbar-width:auto; background:white; border:1px solid var(--line); }
.editor,.product-admin-list { position:sticky; top:96px; }
.editor::-webkit-scrollbar,.product-admin-list::-webkit-scrollbar { width:14px; }
.editor::-webkit-scrollbar-track,.product-admin-list::-webkit-scrollbar-track { background:#e5e6eb; }
.editor::-webkit-scrollbar-thumb,.product-admin-list::-webkit-scrollbar-thumb { background:var(--blue); border:3px solid #e5e6eb; }
.section-title { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:24px; }
.section-title p { margin:0 0 6px; color:var(--blue); font-size:.72rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.section-title h1,.section-title h2 { margin:0; font-size:2rem; }
.section-title a { font-size:.85rem; font-weight:800; }
.product-list-heading { align-items:center; }
.admin-category-filter { width:min(360px,52%); display:grid; grid-template-columns:1fr auto; align-items:end; gap:8px; }
.admin-category-filter label { min-width:0; }
.admin-category-filter select { padding:9px 11px; font-size:.78rem; }
.admin-category-filter button { min-height:37px; padding:8px 12px; color:white; background:var(--blue); border:0; font-size:.78rem; font-weight:800; }
.editor-actions { display:flex; align-items:center; gap:12px; }
.top-save { padding:11px 15px; color:white; background:var(--blue); border:0; font-size:.82rem; font-weight:800; white-space:nowrap; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:17px; }
.form-grid .full { grid-column:1/-1; }
label small { color:var(--muted); font-weight:400; }
.checkbox { display:flex; align-items:center; gap:9px; }
.checkbox input { width:18px; height:18px; }
.current-files { margin-top:18px; display:flex; flex-wrap:wrap; gap:14px 20px; font-size:.84rem; }
.primary { max-width:240px; }
.alert { margin:0 0 20px; padding:12px 14px; font-size:.9rem; }
.alert.error { color:var(--red); background:#fff0ee; border:1px solid #f4c7c1; }
.alert.success { color:var(--green); background:#edfbf4; border:1px solid #b8e4cf; }
.admin-products { display:grid; gap:10px; }
.admin-products article { padding:10px; display:grid; grid-template-columns:78px 1fr auto; gap:14px; align-items:center; border:1px solid var(--line); }
.admin-products img { width:78px; height:96px; object-fit:cover; background:var(--surface); }
.admin-products article > div:nth-child(2) { min-width:0; display:grid; gap:5px; }
.admin-products small { color:var(--blue); font-weight:800; }
.admin-products strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-products span { color:var(--muted); font-size:.78rem; }
.row-actions { display:flex; align-items:center; gap:10px; }
.row-actions a,.row-actions button { padding:8px 10px; font-size:.8rem; font-weight:800; }
.row-actions button { color:var(--red); background:white; border:1px solid #efc2bd; }
.row-actions button:disabled { cursor:not-allowed; color:#999; background:#f4f4f4; border-color:#ddd; }
.row-actions form { margin:0; }
.category-current-image { margin-top:20px; display:flex; align-items:center; gap:16px; color:var(--muted); font-size:.8rem; }
.category-current-image img { width:150px; height:100px; object-fit:cover; background:var(--surface); }
@media (max-width:1050px) { .admin-layout { grid-template-columns:1fr; } .editor,.product-admin-list { position:static; max-height:none; overflow:visible; } }
@media (max-width:620px) { .admin-header { padding:10px 12px; gap:8px; } .admin-header img { width:105px; } .admin-nav { gap:7px!important; } .admin-nav > a { display:inline; font-size:.66rem; } .admin-nav > a:nth-of-type(3) { display:none; } .admin-header button { padding:7px; font-size:.68rem; } .admin-layout { width:calc(100% - 24px); margin-top:16px; } .editor,.product-admin-list { padding:20px; } .section-title { align-items:flex-start; flex-direction:column; } .admin-category-filter { width:100%; } .editor-actions { width:100%; justify-content:space-between; } .top-save { margin-left:auto; } .form-grid { grid-template-columns:1fr; } .form-grid .full { grid-column:auto; } .admin-products article { grid-template-columns:56px 1fr; } .admin-products img { width:56px; height:70px; } .row-actions { grid-column:1/-1; justify-content:flex-end; } }

/* Language editor */
.language-admin { width:min(1400px,calc(100% - 40px)); margin:38px auto 80px; }
.language-admin__header { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:28px; align-items:start; margin-bottom:28px; }
.language-admin .eyebrow { margin:0 0 8px; color:var(--blue); font-size:.78rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.language-admin h1 { margin:0; font-size:clamp(2rem,4vw,3rem); line-height:1; }
.language-admin__header p:not(.eyebrow) { max-width:760px; margin:14px 0 0; color:var(--muted); line-height:1.5; }
.language-admin__header nav { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px 18px; padding-top:8px; }
.language-admin__header nav a { font-size:.9rem; font-weight:800; text-decoration:none; white-space:nowrap; }
.language-editor { padding:32px; background:white; border:1px solid var(--line); box-shadow:0 16px 44px rgba(30,31,85,.08); }
.language-editor__intro { display:flex; justify-content:space-between; gap:24px; align-items:baseline; margin-bottom:20px; }
.language-editor h2 { margin:0; font-size:1.45rem; }
.language-editor__intro p { margin:0; color:var(--muted); line-height:1.45; }
.language-editor textarea { display:block; min-height:680px; max-height:calc(100vh - 310px); resize:vertical; overflow:auto; padding:18px; font:14px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; tab-size:2; white-space:pre; }
.language-editor .primary { width:auto; min-width:190px; margin:18px 0 0; }
.language-admin .notice { margin-bottom:20px; }
@media (max-width:720px) { .language-admin { width:calc(100% - 24px); margin-top:22px; } .language-admin__header { grid-template-columns:1fr; gap:16px; } .language-admin__header nav { justify-content:flex-start; padding-top:0; } .language-editor { padding:20px; } .language-editor__intro { display:block; } .language-editor__intro p { margin-top:10px; } .language-editor textarea { min-height:560px; max-height:none; padding:12px; font-size:12px; } }
