@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#18352b;--muted:#738178;--green:#1d684b;--lime:#d9edc8;--line:#e7eee8;--paper:#f5f8f4;--white:#fff;--red:#a33b35}*{box-sizing:border-box}body{margin:0;font-family:'DM Sans',sans-serif;color:var(--ink)}h1,h2,h3,strong{font-family:Manrope,sans-serif}a{color:inherit;text-decoration:none}.auth-bg{min-height:100vh;background:radial-gradient(circle at 15% 10%,#e1f0d9,transparent 35%),#f4f7f2;display:grid;place-items:center;padding:24px}.auth-card{width:min(440px,100%);background:white;padding:38px;border:1px solid var(--line);border-radius:22px;box-shadow:0 20px 60px #18352b12}.brand-mark{width:48px;height:48px;border-radius:15px;background:var(--green);color:white;display:grid;place-items:center;font:800 25px Manrope;margin-bottom:24px}.brand-mark.small{width:38px;height:38px;font-size:20px;margin:0}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#72917d;margin:0 0 9px}.auth-card h1,.topbar h1{font-size:27px;margin:0 0 8px}.muted{color:var(--muted);font-size:13px;line-height:1.6}.auth-card form{margin-top:25px}label{display:block;font-size:12px;font-weight:700;margin:15px 0 7px}input,textarea{font:inherit;width:100%;border:1px solid #dce6dd;border-radius:9px;padding:12px 13px;background:#fff;color:var(--ink);outline:none}input:focus,textarea:focus{border-color:#6eaa83;box-shadow:0 0 0 3px #d9edc866}.btn{border:0;border-radius:9px;padding:11px 16px;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;cursor:pointer}.primary{background:var(--green);color:white}.light{background:#edf3ed;color:var(--ink)}.full{width:100%;margin-top:20px}.tiny{font-size:10px;color:#87958b;line-height:1.6;margin-top:20px}.alert,.success{padding:12px 15px;border-radius:9px;margin:15px 0;font-size:12px}.alert{background:#fff0ee;color:var(--red)}.success{background:#eaf6e9;color:#286341}.dashboard{background:var(--paper);min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#173c30;color:white;padding:25px 18px;display:flex;flex-direction:column}.logo{display:flex;align-items:center;gap:11px;font:800 15px Manrope}.logo small{display:block;font:600 9px 'DM Sans';letter-spacing:2px;color:#a7c4ae;margin-top:4px}.sidebar nav{margin-top:52px;display:grid;gap:8px}.sidebar nav a,.side-bottom a{padding:13px 14px;border-radius:9px;font-size:13px;color:#c4d7ca}.sidebar nav a.selected,.sidebar nav a:hover{background:#2c5947;color:white}.side-bottom{margin-top:auto;display:grid;gap:15px;font-size:10px;color:#91ad9b}.main{margin-left:238px;padding:32px clamp(20px,4vw,58px);max-width:1500px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.topbar h1{font-size:25px}.welcome{background:linear-gradient(110deg,#e7f1df,#f8faf5);border:1px solid #e0eadb;border-radius:18px;padding:30px;display:flex;justify-content:space-between;align-items:center}.welcome h2{font:800 25px Manrope;margin:0}.welcome-icon{font-size:45px;color:#6a9a70}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:18px 0}.stat,.panel{background:white;border:1px solid var(--line);border-radius:14px}.stat{padding:21px}.stat span,.stat small{display:block;color:var(--muted);font-size:11px}.stat strong{display:block;font-size:29px;margin:8px 0}.panel{padding:22px;margin:18px 0}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.panel h3{font-size:16px;margin:0}.panel-head p{margin:5px 0 0}.quick{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.quick-card{border:1px solid var(--line);border-radius:12px;padding:18px;display:grid;gap:7px}.quick-card b{font-size:23px;color:var(--green)}.quick-card strong{font-size:13px}.quick-card span{font-size:11px;color:var(--muted)}.product-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.field label{margin-top:10px}.full-field{grid-column:1/-1}.check{display:flex;align-items:center;gap:8px}.check input{width:auto}.form-actions{grid-column:1/-1;display:flex;gap:10px;margin-top:15px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;min-width:580px}th{text-align:left;color:#819087;font-size:10px;text-transform:uppercase;letter-spacing:.8px;background:#f7faf6}td,th{padding:13px 12px;border-bottom:1px solid var(--line);vertical-align:top}td small{display:block;color:#8a978e;margin-top:4px}.status{font-size:10px;padding:5px 8px;border-radius:20px}.status.on{background:#e5f4e7;color:#286341}.status.off{background:#f2eeee;color:#8d5550}.actions{display:flex;gap:12px;align-items:center}.actions a,.link{color:var(--green);font-size:11px;font-weight:700}.link{border:0;background:none;padding:0;cursor:pointer}.danger{color:var(--red)}.actions form{display:inline}.empty{padding:20px;background:#f8faf7;border-radius:10px;font-size:13px}.empty p{color:var(--muted);line-height:1.6}footer{text-align:center;color:#9aa69d;font-size:10px;padding:22px}@media(max-width:800px){.sidebar{position:static;width:auto;padding:13px 16px;display:block}.sidebar nav{display:flex;margin-top:15px;gap:5px}.sidebar nav a{padding:10px;font-size:11px}.side-bottom{display:none}.main{margin:0;padding:20px 14px}.stats{grid-template-columns:1fr}.welcome{padding:22px}.welcome h2{font-size:20px}.product-form,.quick{grid-template-columns:1fr}.auth-card{padding:27px 22px}.topbar h1{font-size:21px}}/* Mobile and tablet admin usability */
html,body{max-width:100%;overflow-x:hidden}button,input,select,textarea{max-width:100%}.table-wrap{-webkit-overflow-scrolling:touch}.sidebar nav a{white-space:nowrap}@media(max-width:800px){.sidebar{position:relative}.sidebar nav{overflow-x:auto;padding-bottom:4px}.main{width:100%;min-width:0}.topbar{gap:10px;align-items:flex-start}.panel{padding:15px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:15px}.stat strong{font-size:24px}}@media(max-width:480px){.stats{grid-template-columns:1fr}.topbar{flex-direction:column}.welcome{gap:12px}.welcome-icon{font-size:30px}.auth-card{width:100%}}
/* Product image upload and category selector */
.product-form select{font:inherit;width:100%;border:1px solid #dce6dd;border-radius:9px;padding:12px 13px;background:#fff;color:var(--ink);outline:none}
.product-form input[type=file]{padding:10px;background:#fbfcfa;border-style:dashed}
.field-help{display:block;color:#7b8a7e;font-size:11px;line-height:1.55;margin:7px 0 9px}
.current-image{display:flex;align-items:center;gap:12px;margin:10px 0 5px;color:#64766a;font-size:11px}
.current-image img,.catalogue-thumb{width:64px;height:64px;object-fit:contain;background:#f4f7f2;border:1px solid var(--line);border-radius:8px;padding:4px}
.catalogue-thumb{width:54px;height:54px}
.no-thumb{font-size:10px;color:#9aa69d}
.gallery-current{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}
.gallery-current-item{margin:0;display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:9px;padding:7px;background:#fbfcfa}
.gallery-current-item img{width:82px;height:82px;object-fit:contain}
.gallery-current-item span{font-size:10px;color:#78877d;display:flex;align-items:center;gap:5px}
.gallery-current-item input{width:auto;margin:0}
@media(max-width:800px){.current-image img{width:58px;height:58px}.gallery-current-item img{width:68px;height:68px}}

/* NutriEthix admin: strict image sizing so large source photos never expand the dashboard */
.dashboard .main img {
  max-width: 100% !important;
  height: auto;
  object-fit: contain;
}
.dashboard .main .current-image img {
  display: block;
  width: 68px !important;
  height: 68px !important;
  min-width: 68px;
  max-width: 68px !important;
  max-height: 68px !important;
  object-fit: contain;
  flex: 0 0 68px;
}
.dashboard .main .gallery-current-item img {
  display: block;
  width: 76px !important;
  height: 76px !important;
  min-width: 76px;
  max-width: 76px !important;
  max-height: 76px !important;
  object-fit: contain;
}
.dashboard .main table img,
.dashboard .main .catalogue-thumb {
  display: block;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px;
  max-width: 54px !important;
  max-height: 54px !important;
  object-fit: contain;
}
.dashboard .main .current-image,
.dashboard .main .gallery-current,
.dashboard .main .gallery-current-item {
  max-width: 100%;
}
.dashboard .main .gallery-current-item {
  overflow: hidden;
}
@media (max-width: 800px) {
  .dashboard .main .current-image img {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px;
    max-width: 60px !important;
    max-height: 60px !important;
    flex-basis: 60px;
  }
  .dashboard .main .gallery-current-item img {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px;
    max-width: 68px !important;
    max-height: 68px !important;
  }
}
