* { box-sizing: border-box; }
:root { --navy:#09234c; --blue:#075cdb; --ink:#142545; --muted:#53637b; --line:#d8e3f2; --bg:#f3f7fd; --orange:#ff9e24; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.5 system-ui,sans-serif; }
a { color:#104ca2; text-decoration:none; }
a:hover { text-decoration:underline; }
h1,h2,h3,p { margin:0 0 .65rem; }
h1 { line-height:1.15; font-size:clamp(1.65rem,3vw,2.4rem); letter-spacing:-.025em; }
h2 { font-size:1.16rem; }
h3 { font-size:1rem; }
button,input,select { font:inherit; }
button,.button { display:inline-flex; align-items:center; justify-content:center; padding:.58rem .95rem; min-height:42px; border:1px solid transparent; border-radius:9px; background:#0758cf; color:#fff; font-weight:700; cursor:pointer; text-decoration:none; }
button:hover,.button:hover { filter:brightness(.95); text-decoration:none; }
.secondary { background:#edf4ff; border-color:var(--line); color:#174785; }
.white { background:white; color:#0649a6; }
input,select { width:100%; padding:.58rem .7rem; border:1px solid #aebfd8; border-radius:8px; color:var(--ink); background:#fff; min-height:42px; }
label { display:grid; gap:.3rem; font-weight:650; font-size:.88rem; }
:focus-visible { outline:3px solid #df8100; outline-offset:3px; }
[hidden] { display:none!important; }
.sr-only,.skip:not(:focus) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.skip:focus { position:absolute; z-index:8; top:0; left:0; background:#fff; padding:.5rem; }
.wrap { width:min(1320px,calc(100% - 3rem)); margin-inline:auto; }
.brand { display:inline-flex; align-items:center; gap:.6rem; font-size:1.13rem; font-weight:900; letter-spacing:.055em; line-height:1.2; white-space:nowrap; }
.brand small { color:#ffad42; }
.brand-mark { color:#fff; background:linear-gradient(145deg,#ff9f1c,#eb6706); border-radius:12px; display:grid; place-items:center; width:40px; height:40px; font-size:1.4rem; }
.domain { display:block; letter-spacing:.02em; font-size:.7rem; font-weight:600; opacity:.85; }
.logo { display:block; width:150px; max-height:55px; object-fit:contain; border-radius:5px; }
.shop-top { background:var(--navy); color:#fff; }
.top-inner,.admin-top { min-height:68px; display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.shop-top a,.sidebar a { color:#fff; }
.shop-top nav,.header-end { display:flex; align-items:center; gap:.75rem; }
.shop-top nav a { padding:.45rem .6rem; border-radius:7px; }
.shop-top nav .current { background:#1756a3; }
.header-end form { margin:0; }
.cart-link { padding:.45rem .7rem; border:1px solid #5880b4; border-radius:9px; white-space:nowrap; }
.cart-link span { background:#ffae48; color:#172743; padding:.1rem .38rem; border-radius:20px; font-weight:800; }
.store-main { padding:1.35rem 0 2rem; min-height:75vh; }
footer { border-top:1px solid var(--line); padding:1rem 0; color:var(--muted); }
footer span { float:right; }
.mobile-nav { display:none; }
.shop-search { display:flex; gap:.55rem; margin-bottom:1rem; }
.hero { background:radial-gradient(ellipse at 90% 90%,#0784cd,transparent 65%),linear-gradient(110deg,#092650,#063ca4 62%,#0769cd); color:white; border-radius:17px; padding:clamp(1.4rem,4.5vw,3.8rem); display:flex; justify-content:space-between; align-items:center; overflow:hidden; }
.hero p { color:#e5efff; max-width:38ch; }
.hero h1 { font-size:clamp(2rem,5vw,3.9rem); max-width:15ch; }
.hero .eyebrow { color:#ffd292; font-weight:800; letter-spacing:.13em; font-size:.8rem; }
.hero-art { flex:0 0 auto; margin:0 7% 0 1rem; width:clamp(4rem,19vw,13rem); aspect-ratio:1; display:grid; place-items:center; border-radius:28%; transform:rotate(-12deg); background:linear-gradient(145deg,#ffc16b,#f27d11); box-shadow:0 0 0 14px #ffffff17,0 15px 30px #0004; font-size:clamp(2.5rem,11vw,7.5rem); font-weight:950; color:#102c5a; }
.panel { background:white; border:1px solid var(--line); border-radius:13px; padding:1rem; min-width:0; box-shadow:0 2px 6px #18376d0a; }
.shop-shortcuts,.service-grid,.product-grid,.metric-grid { display:grid; gap:.8rem; }
.shop-shortcuts { grid-template-columns:repeat(6,1fr); margin:1rem 0 1.45rem; }
.shop-shortcuts a { text-align:center; font-weight:700; font-size:.88rem; }
.shop-shortcuts span,.metric-icon { display:grid; place-items:center; width:40px; height:40px; margin:0 auto .35rem; border-radius:11px; background:#e6f1ff; color:#0758cd; font-weight:850; }
.shop-shortcuts a:nth-child(3n+2) span,.metric:nth-child(3n+2) .metric-icon { background:#eee3ff; color:#6435ba; }
.shop-shortcuts a:nth-child(3n) span,.metric:nth-child(3n) .metric-icon { background:#fff0d7; color:#8b4c00; }
.section-head { display:flex; justify-content:space-between; gap:1rem; align-items:center; margin:0 0 .8rem; }
.section-head :is(h1,h2) { margin:0; }
.chips { display:flex; flex-wrap:wrap; gap:.55rem; margin-bottom:1rem; }
.chips a,.tier-grid>div { border:1px solid var(--line); background:#fff; padding:.45rem .75rem; border-radius:8px; }
.chips .selected,.tier-grid .selected { background:#e7f0ff; border-color:#80a9ef; color:#093f9a; }
.product-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr)); }
.product-art { display:grid; place-items:center; min-height:125px; background:linear-gradient(145deg,#e3f1ff,#f2f6fc); border-radius:10px; margin-bottom:.65rem; overflow:hidden; }
.product-art span { background:#fff; border-radius:14px; padding:.6rem 1.05rem; font-size:2rem; font-weight:900; color:#2864b4; }
.product-art img { width:100%; height:160px; object-fit:contain; }
.product-card p,.cart-row p { color:var(--muted); font-size:.9rem; }
.price { margin-bottom:.6rem; }
.price strong,.tier-grid strong { margin-right:.5rem; font-size:1.2rem; }
del { color:var(--muted); }
.product-detail,.checkout-layout,.account-layout,.membership-grid { display:grid; gap:1rem; grid-template-columns:1fr 1fr; }
.product-detail .product-art { min-height:250px; }
.tier-grid,.service-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.6rem; margin:.8rem 0; }
.tier-grid strong { display:block; }
.reviews { margin-top:1rem; }
.checkout-layout { grid-template-columns:2fr 1fr; }
.cart-row,.cart-actions,.cart-form { display:flex; align-items:end; gap:.45rem; }
.cart-row { justify-content:space-between; border-bottom:1px solid var(--line); padding:.7rem 0; }
.cart-form input[type=number] { width:5rem; }
.account-layout { grid-template-columns:220px 1fr; }
.account-nav a { display:block; padding:.5rem .6rem; border-radius:8px; }
.account-nav .current { background:#e7f0ff; font-weight:750; }
.signout { margin-top:1rem; }
.auth { max-width:440px; margin:2rem auto; padding:1.5rem; }
.auth form { margin:1rem 0; }
.stack,.form-grid { display:grid; gap:.8rem; }
.form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.alert { background:#e7f1ff; border:1px solid #a7c8f7; color:#103c77; border-radius:8px; padding:.65rem .8rem; }
.empty { padding:1.8rem .7rem; text-align:center; color:var(--muted); }
.empty p { margin:.3rem 0 0; }
.sidebar { width:235px; height:100dvh; overflow:auto; position:fixed; inset:0 auto 0 0; background:linear-gradient(#0b2b5e,#081e40); color:white; padding:1rem .65rem; }
.sidebar .brand { padding:.25rem .4rem; }
.side-caption { padding:.75rem .65rem .4rem; color:#bbd5fa; font-size:.84rem; }
.sidebar nav a { display:block; border-radius:8px; padding:.44rem .65rem; font-size:.88rem; }
.sidebar nav .current { background:#0963d7; box-shadow:inset 0 0 0 1px #72b5ff66; font-weight:750; }
.admin-nav-group { margin-top:.38rem; border-top:1px solid #ffffff1a; }
.admin-nav-group summary { display:flex; align-items:center; justify-content:space-between; min-height:42px; cursor:pointer; padding:.4rem .65rem; font-weight:700; font-size:.87rem; list-style:none; }
.admin-nav-group summary::-webkit-details-marker { display:none; }
.admin-nav-group summary::after { content:'+'; color:#9abef2; }
.admin-nav-group[open] summary::after { content:'−'; }
.admin-nav-group a { margin-left:.42rem; }
.admin-menu-backdrop { display:none; }
.admin .section-head { flex-wrap:wrap; }
.admin-top,.admin-main { margin-left:235px; padding:1rem 1.2rem; }
.admin-top { background:#fff; border-bottom:1px solid var(--line); }
.menu-toggle { display:none; }
.dashboard-grid,.dashboard-bottom { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:.8rem; }
.admin-hero { padding:1.3rem; }
.admin-hero h1 { font-size:clamp(1.6rem,3vw,2.7rem); }
.admin-hero .hero-art { width:clamp(3.5rem,8vw,6rem); font-size:clamp(2rem,5vw,3.5rem); }
.metric-grid { grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); margin:.8rem 0; }
.metric { display:flex; gap:.6rem; align-items:center; }
.metric-icon { margin:0; flex-shrink:0; }
.metric strong { display:block; font-size:1.25rem; }
.metric div span { font-size:.84rem; color:var(--muted); }
.dashboard-bottom { grid-template-columns:repeat(3,minmax(0,1fr)); }
.quick-grid { display:grid; grid-template-columns:1fr 1fr; gap:.45rem; }
.quick-grid a { background:#edf4ff; padding:.65rem; border-radius:8px; text-align:center; font-size:.88rem; font-weight:700; }
.table-scroll { overflow:auto; }
table { width:100%; border-collapse:collapse; font-size:.875rem; }
th,td { text-align:left; padding:.63rem .72rem; border-bottom:1px solid #e8eef8; white-space:nowrap; }
th { background:#edf4ff; color:#214675; }
.pill { display:inline-block; background:#e6effc; padding:.12rem .48rem; border-radius:20px; font-weight:700; color:#254e88; }
.pill.active,.pill.delivered,.pill.successful,.pill.paid { color:#18613b; background:#dff7e9; }
.pill.pending,.pill.processing { color:#794800; background:#fff1d1; }
.pill.premium { color:#694400; background:#ffedc6; }
.search-label { max-width:330px; margin-bottom:.8rem; }
.operations { margin-top:1rem; }
.filter-bar { display:flex; flex-wrap:wrap; align-items:end; gap:.6rem; margin-bottom:1rem; }
.filter-bar label { width:min(100%,330px); }
.check-option { display:flex; gap:.45rem; align-items:center; }
.check-option input { width:1rem; min-height:0; }
.profile-banner .account-group { margin-top:0; }
.draw-admin-row + .draw-admin-row { border-top:1px solid var(--line); margin-top:1rem; padding-top:1rem; }
.draw-card img { width:100%; aspect-ratio:4/3; object-fit:contain; border-radius:8px; background:#f2f6fc; }
.draw-card progress { width:100%; accent-color:var(--blue); margin-bottom:.6rem; }
fieldset { min-width:0; border:1px solid var(--line); border-radius:9px; }
legend { padding:0 .35rem; font-weight:750; }
.customer-rail { position:fixed; top:68px; left:0; bottom:0; width:76px; padding:.55rem .35rem; background:linear-gradient(#075aca,#09234c 65%); z-index:2; }
.customer-rail a { display:grid; justify-items:center; padding:.5rem .14rem; border-radius:8px; color:#fff; font-size:.72rem; }
.customer-rail a span { font-size:1.2rem; line-height:1.25; }
.customer-rail .current { background:#ffffff2b; }
.customer:not(.login-page) .store-main,.customer:not(.login-page) footer { width:min(1320px,calc(100% - 108px)); margin-inline:auto; transform:translateX(38px); }
.store-hero { background:#210e5c linear-gradient(90deg,#250b62 8%,#300e70 34%,#32126914 66%); background-image:linear-gradient(90deg,#240b60 6%,#2e0d6a 33%,#32126900 72%),url('../images/banners/millet-hero.webp'); background-size:cover,cover; background-position:center,right 58%; min-height:285px; }
.shop-top { position:sticky; top:0; z-index:4; }
.store-hero h1 { color:#ffedaa; max-width:20ch; }
.hero-cta { background:#ffdb54; color:#322045; }
.storefront-links { align-items:center; }
.product-actions { display:flex; gap:.6rem; flex-wrap:wrap; }
.category-card { display:grid; gap:.4rem; color:var(--ink); align-content:start; }
.category-card span { color:#075cdb; font-size:1.4rem; }
.profile-banner { padding:1rem; border-radius:12px; color:#fff; background:linear-gradient(110deg,#0a347e,#1165d6); }
.profile-premium,.premium-card { background:linear-gradient(135deg,#321071,#6431ac); color:#fff; }
.membership-card { padding:1.3rem; margin-bottom:1rem; }
.membership-card strong { display:block; font-size:1.75rem; }
.password-form { max-width:440px; }
.password-form button { justify-self:start; }
.checkout-steps { list-style:none; display:grid; grid-template-columns:repeat(3,1fr); padding:0; margin:0 0 1rem; border-radius:8px; overflow:hidden; background:#e9f1fe; color:#294970; }
.checkout-steps li { padding:.4rem; text-align:center; font-weight:700; }
.checkout-steps [aria-current] { background:#0758cf; color:white; }
.checkout-fields { margin:0 0 1rem; }
dialog { border:1px solid var(--line); border-radius:14px; color:var(--ink); padding:1rem; width:min(610px,calc(100% - 2rem)); }
dialog::backdrop { background:#071e48a0; }
dialog header { display:flex; justify-content:space-between; align-items:center; margin-bottom:.6rem; }
@media (max-width:1000px) { .dashboard-bottom { grid-template-columns:repeat(2,minmax(0,1fr)); } .sidebar { width:205px; } .admin-top,.admin-main { margin-left:205px; } }
@media (max-width:760px) {
 .customer-rail { display:none; }
 .customer:not(.login-page) .store-main,.customer:not(.login-page) footer { width:calc(100% - 1.4rem); transform:none; }
 .store-hero { min-height:240px; background-position:center,62% center; }
 .store-hero h1 { font-size:clamp(1.58rem,6.5vw,2.3rem); }
 .store-hero p { max-width:25ch; font-size:.9rem; }
 .wrap { width:calc(100% - 1.4rem); }
 .shop-top nav { display:none; }
 .mobile-nav { position:fixed; inset:auto 0 0; background:#09234c; display:flex; justify-content:space-around; padding:.3rem 0 max(.3rem,env(safe-area-inset-bottom)); z-index:3; }
 .mobile-nav a { color:white; padding:.65rem .32rem; font-size:.82rem; }
 .mobile-nav a.current { color:#ffcc88; }
 footer { padding-bottom:3.65rem; }
 .shop-shortcuts { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .service-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .product-detail,.checkout-layout,.account-layout,.dashboard-grid { grid-template-columns:1fr; }
 .account-nav { display:flex; overflow:auto; white-space:nowrap; }
 .admin .sidebar { display:none; top:0; bottom:0; height:auto; width:min(82vw,285px); z-index:7; }
 .admin .sidebar.open { display:block; }
 .admin .admin-menu-backdrop:not([hidden]) { display:block; position:fixed; inset:0; z-index:6; border:0; border-radius:0; background:#071d4599; }
 .admin .admin-top { position:sticky; top:0; z-index:4; }
 .admin .sidebar nav a { min-height:42px; align-content:center; }
 .admin .form-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr)); }
 .admin-top,.admin-main { margin-left:0; padding:.6rem .7rem; }
 .admin-top { min-height:56px; justify-content:flex-start; }
 .admin-top .header-end { margin-left:auto; gap:.4rem; font-size:.8rem; }
 .admin-top button { padding:.35rem .45rem; }
 .menu-toggle { display:inline-flex; }
 .cart-row,.cart-actions { flex-wrap:wrap; }
}
@media (max-width:460px) { .dashboard-bottom,.membership-grid { grid-template-columns:1fr; } .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .tier-grid>div { padding:.35rem; font-size:.79rem; } .panel { padding:.75rem; } }
