@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@400;500;600;700&display=swap');
:root { --ink:#111827; --red:#1662d1; --cream:#f3f6fc; --line:#dbe3f1; --muted:#667085; --rainbow:linear-gradient(90deg,#900261,#92059d,#353dc8,#1662d1,#ed2c34,#ea5b1e,#ea931b); }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--cream); font:15px/1.5 "Google Sans Flex","Google Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
header { min-height:92px; padding:8px 4vw; display:flex; align-items:center; justify-content:space-between; gap:20px; background:white; }
header img { width:78px; height:78px; object-fit:contain; }
header div { display:flex; align-items:center; gap:12px; }
header a,header button { color:var(--ink); background:white; border:1px solid var(--line); border-radius:999px; padding:8px 14px; text-decoration:none; }
main { width:min(1480px,92vw); margin:55px auto 100px; }
h1,h2,p { margin-top:0; }
h1 { margin-bottom:8px; font:500 clamp(2.35rem,5vw,4.5rem)/1 "Google Sans Flex","Google Sans",sans-serif; letter-spacing:-.035em; }
h2 { margin:0; font:500 1.5rem/1.1 "Google Sans Flex","Google Sans",sans-serif; }
.eyebrow,.step { margin:0 0 10px; color:var(--red); font-size:.7rem; font-weight:500; letter-spacing:.12em; text-transform:uppercase; }
.card { padding:28px; border:1px solid var(--line); border-radius:20px; background:white; box-shadow:0 12px 32px rgba(17,24,39,.04); }
.login { width:min(540px,100%); margin:11vh auto; padding:42px; }
.login p:not(.eyebrow) { color:var(--muted); }
.login form { display:grid; gap:16px; margin-top:28px; }
.login label { flex:1; }
.intro { margin-bottom:40px; display:flex; justify-content:space-between; align-items:end; gap:30px; }
.intro > p { max-width:480px; color:var(--muted); }
.layout { display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:start; }
.catalogue-admin { display:grid; gap:22px; }
.site-admin { min-width:0; display:grid; gap:22px; }
.catalogue-admin { min-width:0; }
.hero-preview { width:100%; max-height:160px; margin-top:16px; border-radius:9px; object-fit:cover; }
.media-list { margin-top:20px; display:grid; gap:14px; }
.media-item { min-width:0; display:grid; grid-template-columns:80px minmax(0,1fr); gap:12px; align-items:center; }
.media-item img { width:80px; height:70px; object-fit:contain; border-radius:8px; background:var(--cream); }
.media-item input { font-size:.7rem; }
.media-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.media-actions button,#moreMedia { padding:5px 9px; border:1px solid var(--line); border-radius:8px; background:white; font-size:.75rem; }
#moreMedia { margin-top:14px; }
#loginError { color:#b42318; margin-top:16px; }
button:disabled { cursor:wait; opacity:.6; }
.card-heading { margin-bottom:24px; display:flex; justify-content:space-between; align-items:center; gap:15px; }
.card-heading .step { margin-bottom:4px; }
fieldset { margin:0 0 26px; padding:24px 0 0; border:0; border-top:1px solid var(--line); }
legend { padding:0 10px 0 0; font-weight:500; }
.pair { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
label { display:grid; gap:6px; color:#344054; font-size:.8rem; font-weight:400; }
input,textarea,select { width:100%; padding:10px 12px; color:var(--ink); border:1px solid var(--line); border-radius:9px; background:#fff; outline:none; resize:vertical; }
input:focus,textarea:focus,select:focus { border-color:var(--red); box-shadow:0 0 0 3px rgba(22,98,209,.08); }
.check { display:flex; grid-auto-flow:column; justify-content:start; align-items:center; gap:8px; margin:12px 0 18px; }
.check input { width:18px; height:18px; }
.media-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; }
small { color:var(--muted); font-weight:400; }
.primary { min-height:42px; padding:9px 16px; color:white; background:linear-gradient(135deg,#1662d1,#353dc8); border:1px solid #1662d1; border-radius:999px; font-weight:500; }
.wide { width:100%; margin-top:12px; }
#cancelEdit { padding:7px 12px; color:var(--red); background:white; border:1px solid #f0b6b6; border-radius:999px; }
.notice { position:fixed; z-index:10; right:24px; bottom:24px; padding:13px 18px; color:white; background:#087443; border-radius:10px; box-shadow:0 8px 30px rgba(0,0,0,.18); }
.notice.error { background:var(--red); }
.product-list { display:grid; }
.product-list article { padding:12px 0; display:grid; grid-template-columns:62px 1fr auto; align-items:center; gap:13px; border-top:1px solid var(--line); }
.product-list article:first-child { border-top:0; }
.product-list img { width:62px; height:62px; padding:4px; border-radius:10px; object-fit:contain; background:#f1f1ef; }
.product-list article > div:nth-child(2) { min-width:0; display:grid; }
.product-list strong,.product-list span,.product-list small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.row-actions { display:flex; gap:5px; }
.row-actions button { padding:6px 9px; border:1px solid var(--line); border-radius:8px; background:white; font-size:.75rem; }
.row-actions .danger { color:var(--red); }
.taxonomy-grid { margin-top:20px; display:grid; grid-template-columns:1fr 1fr; gap:16px; }.taxonomy-grid fieldset { margin:0; padding:16px; border:1px solid var(--line); border-radius:12px; }.taxonomy-grid fieldset > p { margin:0 0 12px; color:var(--muted); font-size:.75rem; }.choice-grid { max-height:190px; overflow:auto; display:grid; gap:7px; }.choice-grid label { display:flex; align-items:center; gap:8px; font-weight:400; }.choice-grid input { width:16px; height:16px; margin:0; accent-color:var(--red); }
.admin-filters { margin:-6px 0 18px; padding:14px; display:grid; grid-template-columns:1.5fr repeat(3,1fr) auto; align-items:end; gap:9px; border-radius:12px; background:#f7f9fc; }.admin-filters input,.admin-filters select { min-height:40px; padding:7px 9px; }.admin-filters button { min-height:40px; padding:7px 12px; color:var(--red); border:1px solid var(--line); border-radius:8px; background:white; }
.product-list .image-missing { width:62px; height:62px; display:grid; place-items:center; color:var(--muted); border-radius:10px; background:#f1f4f8; font-size:.65rem; text-align:center; }
select:not([multiple]) { appearance:none; -webkit-appearance:none; background-image:url('/assets/dropdown-chevron.svg'); background-repeat:no-repeat; background-size:10px 10px; background-position:right 11px center; padding-inline-end:30px; }
select:not([multiple]):dir(rtl) { background-position:left 11px center; }
@media (max-width:1050px) { .layout { grid-template-columns:1fr; } }
@media (max-width:900px) { .admin-filters { grid-template-columns:1fr 1fr; }.admin-filters button { width:100%; } }
@media (max-width:650px) { header img { width:70px; height:70px; } header a { display:none; } main { margin-top:30px; } .login { padding:26px; } .login form,.intro { align-items:stretch; flex-direction:column; } .pair,.media-row,.taxonomy-grid,.admin-filters { grid-template-columns:1fr; } .card { padding:20px; } .product-list article { grid-template-columns:52px 1fr; } .row-actions { grid-column:2; } }
