@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');
:root { font-family: 'DM Sans', Arial, sans-serif; color: #141414; background: #f3f1ec; --red: #e20c12; --ink: #151515; --line: #d6d1c7; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.admin-header { display: flex; align-items: center; justify-content: space-between; width: min(1160px, calc(100% - 64px)); margin: 0 auto; padding: 28px 0; }
.admin-brand { display: inline-flex; align-items: center; gap: 11px; color: #141414; text-decoration: none; }
.brand-mark, .editor-mark { display: grid; place-items: center; color: #fff; background: var(--red); transform: skew(-10deg); font: 800 18px/1 'Barlow Condensed', Arial, sans-serif; }
.brand-mark { width: 38px; height: 38px; }
.admin-brand strong, .admin-brand small { display: block; line-height: 1; }
.admin-brand strong { font: 800 17px/1 'Barlow Condensed', Arial, sans-serif; letter-spacing: 1.2px; }
.admin-brand small { margin-top: 4px; color: #9e0005; font-size: 8px; font-weight: 700; letter-spacing: 2px; }
.back-link { color: var(--red); font-size: 12px; font-weight: 700; text-decoration: none; }
.admin-shell { width: min(1160px, calc(100% - 64px)); margin: 0 auto; padding: 56px 0 100px; }
.login-card, .product-editor { background: #fff; border: 1px solid var(--line); }
.login-card { width: min(460px, 100%); padding: 42px; margin: 40px auto; }
.admin-kicker { margin: 0 0 14px; color: #a50005; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
h1 { margin: 0; font: 900 clamp(56px, 8vw, 88px)/.82 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; }
h1 span { color: var(--red); }
.admin-intro { max-width: 430px; margin: 22px 0 30px; color: #777; font-size: 14px; line-height: 1.6; }
.admin-form { display: grid; gap: 18px; }
.admin-form label, .product-form label { display: grid; gap: 8px; color: #555; font-size: 11px; font-weight: 700; }
.admin-form input, .product-form input, .product-form select, .product-form textarea { width: 100%; padding: 12px 13px; color: #151515; border: 1px solid #c9c3b9; outline: none; background: #faf9f6; font-size: 13px; font-weight: 400; }
.admin-form input:focus, .product-form input:focus, .product-form select:focus, .product-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 2px #e20c121a; }
.admin-button, .secondary-button, .delete-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border: 0; font-size: 11px; font-weight: 700; }
.admin-button { color: #fff; background: var(--red); }
.admin-button:hover { background: #ff1d24; }
.secondary-button { color: #151515; border: 1px solid #a9a39a; background: transparent; }
.secondary-button:hover { border-color: var(--red); color: var(--red); }
.delete-button { color: #a50005; border: 0; background: transparent; }
.link-button { text-decoration: none; }
.form-error { min-height: 18px; margin: 0; color: #a50005; font-size: 12px; }
.admin-message { margin: 18px 0; padding: 13px 15px; font-size: 12px; line-height: 1.5; }
.admin-message.success { color: #245b35; background: #e8f4eb; }
.admin-message.error { color: #8d0005; background: #fff0f0; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 45px; }
.dashboard-actions { display: flex; align-items: center; gap: 16px; color: #777; font-size: 11px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.admin-toolbar p { margin: 0; color: #777; font-size: 12px; }
.admin-toolbar strong { color: #151515; font-size: 18px; }
.product-admin-list { display: grid; gap: 12px; }
.product-editor { padding: 20px; }
.editor-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.editor-top > div:first-child { display: flex; align-items: center; gap: 14px; }
.editor-mark { flex: 0 0 auto; width: 45px; height: 45px; font-size: 15px; }
.editor-top strong, .editor-top small { display: block; }
.editor-top strong { font: 700 22px/.95 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; }
.editor-top small { margin-top: 6px; color: #999; font-size: 10px; }
.editor-actions { display: flex; align-items: center; gap: 10px; }
.product-form { display: grid; gap: 20px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-grid { display: grid; gap: 16px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.check-label { align-content: center; display: flex !important; flex-direction: row; align-items: center; gap: 9px !important; }
.check-label input { width: 17px; height: 17px; accent-color: var(--red); }
.translation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.translation-grid fieldset { min-width: 0; padding: 15px; border: 1px solid var(--line); }
.translation-grid legend { padding: 0 7px; color: #a50005; font: 700 14px 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; }
.translation-grid label + label { margin-top: 13px; }
.editor-footer { display: flex; gap: 10px; padding-top: 4px; }
.admin-toast { position: fixed; right: 24px; bottom: 24px; padding: 14px 18px; color: #fff; background: var(--red); font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(12px); transition: .2s ease; pointer-events: none; }
.admin-toast.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 720px) { .admin-header, .admin-shell { width: min(100% - 36px, 560px); } .admin-shell { padding-top: 35px; } .dashboard-heading { display: block; } .dashboard-actions { justify-content: space-between; margin-top: 28px; } .form-grid.three, .translation-grid { grid-template-columns: 1fr; } .editor-top { align-items: flex-start; flex-direction: column; } .editor-actions { width: 100%; justify-content: flex-end; } }
@media (max-width: 460px) { .admin-header { padding: 20px 0; } .admin-brand strong { font-size: 15px; } .login-card { padding: 28px 22px; } .admin-toolbar { align-items: stretch; flex-direction: column; } }
