:root{
  --bg:#fffaf2;
  --paper:#ffffff;
  --ink:#171124;
  --muted:#7b708b;
  --line:#eee4f4;
  --purple:#5b12b3;
  --purple2:#7e2ce2;
  --purple3:#efe4ff;
  --dark:#18072d;
  --gold:#ffc83d;
  --gold2:#f59e0b;
  --green:#16a34a;
  --blue:#2563eb;
  --orange:#f97316;
  --red:#ef4444;
  --shadow:0 18px 48px rgba(45, 17, 87, .14);
  --shadow2:0 10px 24px rgba(45, 17, 87, .08);
  --radius:28px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.customer-modern{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(126,44,226,.14), transparent 34%),
    radial-gradient(circle at 92% 2%, rgba(255,200,61,.18), transparent 32%),
    linear-gradient(180deg,#fff 0%,#fff8ec 100%);
  color:var(--ink);
  font-family:ui-sans-serif,system-ui,"Segoe UI",Tahoma,sans-serif;
}

a{text-decoration:none;color:inherit}
button,input,textarea{font:inherit}

.customer-shell{
  width:min(1120px,100%);
  margin:0 auto;
  padding:22px clamp(14px,3vw,28px) 126px;
}

.customer-top{
  position:sticky;
  top:0;
  z-index:50;
  padding:14px 0 12px;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.82));
  backdrop-filter:blur(18px);
}

.customer-header{
  display:grid;
  grid-template-columns:1fr auto;
  gap:16px;
  align-items:center;
}

.brand-block{
  display:flex;
  gap:14px;
  align-items:center;
  min-width:0;
}

.customer-logo{
  width:64px;
  height:64px;
  border-radius:24px;
  background:linear-gradient(135deg,#2a064f,#4b008f);
  color:var(--gold);
  display:grid;
  place-items:center;
  font-size:34px;
  box-shadow:var(--shadow);
  flex:0 0 auto;
  position:relative;
}
.customer-logo:after{
  content:"✦";
  position:absolute;
  top:8px;
  right:10px;
  font-size:12px;
  color:#ffe999;
}

.customer-title{
  min-width:0;
}
.customer-title h1{
  margin:0;
  font-size:clamp(26px,4vw,38px);
  line-height:1;
  letter-spacing:-.06em;
  font-weight:1000;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.customer-title p{
  margin:7px 0 0;
  color:var(--muted);
  font-size:15px;
  font-weight:800;
}
.customer-title b{color:var(--purple)}

.live-chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.live-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:9px 13px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--purple);
  font-weight:1000;
  font-size:13px;
  box-shadow:var(--shadow2);
}
.live-chip.green{
  color:#166534;
  background:#f0fdf4;
  border-color:#dcfce7;
}

.search-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  margin-top:15px;
}
.search-card{
  height:58px;
  display:flex;
  align-items:center;
  gap:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow2);
  padding:0 16px;
}
.search-card span{
  color:var(--muted);
  font-size:22px;
}
.search-card input{
  border:none;
  outline:none;
  flex:1;
  min-width:0;
  font-size:16px;
  color:var(--ink);
}
.filter-btn{
  width:58px;
  height:58px;
  border-radius:22px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow2);
  color:var(--ink);
  font-size:22px;
}

.category-scroll{
  display:flex;
  gap:10px;
  overflow:auto;
  scrollbar-width:none;
  margin-top:14px;
  padding-bottom:4px;
}
.category-scroll::-webkit-scrollbar{display:none}
.category-pill{
  border:1px solid #eadcf6;
  background:#fff;
  color:var(--ink);
  padding:11px 18px;
  border-radius:999px;
  font-weight:1000;
  white-space:nowrap;
  box-shadow:0 8px 18px rgba(45,17,87,.04);
}
.category-pill.active{
  background:linear-gradient(135deg,var(--purple),var(--purple2));
  color:#fff;
  border-color:transparent;
  box-shadow:0 12px 25px rgba(91,18,179,.24);
}

.customer-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:18px;
  align-items:start;
  margin-top:18px;
}

.hero-menu{
  border-radius:32px;
  min-height:244px;
  overflow:hidden;
  position:relative;
  color:#fff;
  padding:30px;
  box-shadow:var(--shadow);
  background:
    radial-gradient(circle at 86% 40%,rgba(255,200,61,.24),transparent 31%),
    linear-gradient(105deg,rgba(12,8,21,.96) 0%,rgba(31,18,49,.92) 48%,rgba(0,0,0,.38) 100%),
    url('https://images.unsplash.com/photo-1558030006-450675393462?auto=format&fit=crop&w=1300&q=80');
  background-size:cover;
  background-position:center;
}
.hero-menu:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(13,8,22,.88),rgba(13,8,22,.16));
}
.hero-content{
  position:relative;
  z-index:2;
  width:min(420px,72%);
}
.hero-kicker{
  color:var(--gold);
  font-weight:1000;
  margin-bottom:8px;
}
.hero-menu h2{
  margin:0 0 8px;
  font-size:clamp(30px,5vw,46px);
  line-height:1.03;
  letter-spacing:-.06em;
}
.hero-menu p{
  margin:4px 0;
  color:#f4eaff;
  font-size:16px;
}
.hero-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:18px;
  padding:13px 28px;
  border-radius:18px;
  color:#fff;
  background:linear-gradient(135deg,var(--purple),var(--purple2));
  font-weight:1000;
  box-shadow:0 16px 28px rgba(91,18,179,.35);
}
.hero-dots{
  position:absolute;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  z-index:3;
}
.hero-dots span{
  width:10px;
  height:10px;
  border-radius:50%;
  background:rgba(255,255,255,.55);
}
.hero-dots span:first-child{background:var(--gold)}

.side-panel{
  display:grid;
  gap:12px;
  position:sticky;
  top:150px;
}
.side-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:26px;
  padding:18px;
  box-shadow:var(--shadow2);
}
.side-card h3{
  margin:0 0 8px;
  font-size:19px;
  letter-spacing:-.03em;
}
.quick-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.quick-tile{
  min-height:86px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  display:grid;
  place-items:center;
  text-align:center;
  color:var(--purple);
  font-weight:1000;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(45,17,87,.05);
}
.quick-tile span{
  font-size:28px;
  display:block;
  margin-bottom:4px;
}
.quick-tile.blue{color:var(--blue);background:#f5faff}
.quick-tile.orange{color:var(--orange);background:#fff8f0}
.quick-tile.green{color:var(--green);background:#f3fff6}

.last-order-strip{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:14px 16px;
  color:var(--muted);
  font-weight:900;
}
.last-order-strip b{color:var(--purple)}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:22px 0 12px;
}
.section-head h2{
  margin:0;
  font-size:26px;
  letter-spacing:-.045em;
}
.section-link{
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  padding:9px 14px;
  color:var(--purple);
  font-weight:1000;
}

.menu-list{
  display:grid;
  gap:12px;
}
.menu-card{
  display:grid;
  grid-template-columns:150px minmax(0,1fr) 250px;
  gap:16px;
  align-items:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  padding:12px;
  box-shadow:var(--shadow2);
  transition:.14s ease;
}
.menu-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}
.menu-thumb{
  height:126px;
  border-radius:22px;
  display:grid;
  place-items:center;
  font-size:54px;
  background:
    radial-gradient(circle at 70% 30%,rgba(255,255,255,.55),transparent 33%),
    linear-gradient(135deg,#ffe9b5,#c5a4ff);
}
.menu-thumb[data-emoji="🧋"]{background:linear-gradient(135deg,#ffd3a1,#fff0d9)}
.menu-thumb[data-emoji="🍲"]{background:linear-gradient(135deg,#ffbd70,#ffebe0)}
.menu-thumb[data-emoji="🍰"]{background:linear-gradient(135deg,#ffe784,#fff5cf)}
.menu-thumb[data-emoji="🍤"]{background:linear-gradient(135deg,#ffd2a8,#d7f7d1)}
.menu-thumb[data-emoji="🥩"]{background:linear-gradient(135deg,#ffb199,#2a064f)}
.menu-info h3{
  margin:0 0 6px;
  font-size:23px;
  letter-spacing:-.035em;
}
.menu-info p{
  margin:0;
  color:var(--muted);
  line-height:1.42;
}
.menu-meta{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:9px;
}
.menu-price{
  color:var(--purple);
  font-size:22px;
  font-weight:1000;
}
.menu-tag{
  font-size:12px;
  font-weight:1000;
  padding:5px 8px;
  color:#9a3412;
  background:#ffedd5;
  border-radius:999px;
}

.menu-form{
  display:grid;
  gap:9px;
}
.qty-control{
  justify-self:center;
  display:grid;
  grid-template-columns:42px 56px 42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:999px;
  overflow:hidden;
  background:#fff;
}
.qty-control button{
  border:none;
  background:#fff;
  color:var(--purple);
  font-size:18px;
  font-weight:1000;
  cursor:pointer;
}
.qty-control input{
  border:none;
  outline:none;
  text-align:center;
  color:var(--purple);
  font-weight:1000;
  width:100%;
}
.note-input{
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px 12px;
  outline:none;
  color:var(--ink);
  background:#fff;
}
.add-cart-btn{
  min-height:50px;
  border:none;
  border-radius:18px;
  color:#fff;
  background:linear-gradient(135deg,var(--purple),#4b008f);
  font-weight:1000;
  font-size:16px;
  cursor:pointer;
  box-shadow:0 14px 28px rgba(91,18,179,.24);
}

.no-menu{
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  padding:30px;
  text-align:center;
  box-shadow:var(--shadow2);
}

.customer-cart-bar{
  position:fixed;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  width:min(940px,calc(100% - 28px));
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
  padding:14px;
  border-radius:30px;
  background:linear-gradient(135deg,#2a064f,var(--purple));
  color:#fff;
  box-shadow:0 20px 55px rgba(45,17,87,.38);
  z-index:200;
}
.cart-left{
  display:flex;
  gap:14px;
  align-items:center;
}
.cart-icon{
  width:58px;
  height:58px;
  border-radius:22px;
  background:rgba(255,255,255,.13);
  display:grid;
  place-items:center;
  font-size:30px;
  position:relative;
}
.cart-badge{
  position:absolute;
  top:-8px;
  right:-8px;
  min-width:28px;
  height:28px;
  padding:0 8px;
  border-radius:999px;
  background:var(--gold);
  color:#351600;
  display:grid;
  place-items:center;
  font-size:14px;
  font-weight:1000;
}
.cart-left b{
  display:block;
  font-size:22px;
}
.cart-left p{
  margin:3px 0 0;
  color:#e2d1f6;
}
.cart-main-btn{
  min-height:58px;
  border:none;
  border-radius:23px;
  background:linear-gradient(135deg,var(--gold),#ffdd70);
  color:#2a1600;
  font-size:18px;
  font-weight:1000;
  padding:0 30px;
  cursor:pointer;
}

@media(max-width:940px){
  .customer-grid{grid-template-columns:1fr}
  .side-panel{
    position:static;
    grid-template-columns:1fr;
  }
  .quick-actions{grid-template-columns:repeat(4,1fr)}
  .menu-card{grid-template-columns:132px minmax(0,1fr) 230px}
}

@media(max-width:720px){
  .customer-shell{padding:12px 12px 120px}
  .customer-top{padding:10px 0}
  .customer-header{grid-template-columns:1fr}
  .live-chips{justify-content:flex-start}
  .customer-logo{width:56px;height:56px;border-radius:20px;font-size:28px}
  .customer-title h1{font-size:28px}
  .search-row{grid-template-columns:1fr auto}
  .hero-menu{min-height:230px;padding:22px;border-radius:26px}
  .hero-content{width:80%}
  .hero-menu h2{font-size:30px}
  .quick-actions{grid-template-columns:repeat(2,1fr)}
  .menu-card{
    grid-template-columns:104px minmax(0,1fr);
    border-radius:24px;
  }
  .menu-thumb{height:104px;font-size:42px}
  .menu-info h3{font-size:19px}
  .menu-form{grid-column:1 / -1}
  .customer-cart-bar{
    grid-template-columns:1fr;
    bottom:10px;
    border-radius:24px;
  }
  .cart-main-btn{width:100%}
}

@media(max-width:390px){
  .menu-card{grid-template-columns:88px 1fr}
  .menu-thumb{height:88px}
  .hero-content{width:92%}
  .category-pill{padding:10px 14px}
}

.customer-version-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 11px;
  border-radius:999px;
  background:#efe8ff;
  border:1px solid #dfd0ff;
  color:#5b12b3;
  font-size:12px;
  font-weight:1000;
}
.customer-version-chip:before{content:"●";font-size:10px;color:#16a34a}
.customer-page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.customer-soft-card{
  background:#fff;
  border:1px solid var(--line, #eee4f4);
  border-radius:26px;
  box-shadow:0 12px 30px rgba(45,17,87,.08);
  padding:18px;
}

/* v0.6.4 Premium Cart UI */
.cart-page{
  min-height:100vh;
  padding:16px 14px 120px;
  background:
    radial-gradient(circle at 12% 0%, rgba(126,44,226,.16), transparent 32%),
    radial-gradient(circle at 92% 6%, rgba(255,200,61,.18), transparent 30%),
    linear-gradient(180deg,#fff 0%,#fff8ec 100%);
}
.cart-shell{
  width:min(920px,100%);
  margin:0 auto;
}
.cart-hero{
  position:relative;
  overflow:hidden;
  border-radius:32px;
  padding:22px;
  color:#fff;
  background:
    radial-gradient(circle at 86% 14%, rgba(255,200,61,.26), transparent 30%),
    linear-gradient(135deg,#2a064f,#5b12b3 62%,#7c2bd9);
  box-shadow:0 20px 55px rgba(45,17,87,.24);
}
.cart-hero:after{
  content:"🛒";
  position:absolute;
  right:22px;
  bottom:-20px;
  font-size:110px;
  opacity:.16;
}
.cart-hero-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  position:relative;
  z-index:1;
}
.cart-hero h1{
  margin:10px 0 6px;
  font-size:clamp(32px,5vw,52px);
  line-height:1.02;
  letter-spacing:-.07em;
  font-weight:1000;
}
.cart-hero p{
  color:#eadcff;
  margin:0;
}
.cart-version-chip{
  display:inline-flex;
  gap:7px;
  align-items:center;
  border-radius:999px;
  padding:8px 11px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.20);
  color:#fff;
  font-size:12px;
  font-weight:1000;
  white-space:nowrap;
}
.cart-version-chip:before{
  content:"●";
  color:#22c55e;
}
.cart-steps{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:18px;
}
.cart-step{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.10);
  border-radius:18px;
  padding:12px;
  font-weight:1000;
}
.cart-step small{
  display:block;
  color:#e4d7f8;
  margin-top:3px;
  font-weight:800;
}
.cart-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:16px;
  align-items:start;
  margin-top:16px;
}
.cart-list{
  display:grid;
  gap:12px;
}
.cart-item{
  display:grid;
  grid-template-columns:86px minmax(0,1fr) 116px;
  gap:14px;
  align-items:center;
  background:#fff;
  border:1px solid var(--line,#eee4f4);
  border-radius:26px;
  padding:12px;
  box-shadow:0 12px 30px rgba(45,17,87,.08);
}
.cart-item-icon{
  width:86px;
  height:86px;
  border-radius:22px;
  display:grid;
  place-items:center;
  font-size:38px;
  background:
    radial-gradient(circle at 70% 28%, rgba(255,255,255,.55), transparent 33%),
    linear-gradient(135deg,#ffe9b5,#c5a4ff);
}
.cart-item-main{
  min-width:0;
}
.cart-item-main h3{
  margin:0;
  font-size:20px;
  letter-spacing:-.035em;
}
.cart-note{
  color:var(--muted,#786f8d);
  margin:4px 0 8px;
  font-size:13px;
}
.cart-price-line{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.cart-price{
  color:var(--primary,#5b12b3);
  font-weight:1000;
  font-size:18px;
}
.cart-item-total{
  font-weight:1000;
  color:#170728;
}
.cart-qty-panel{
  display:grid;
  gap:8px;
}
.cart-qty-control{
  display:grid;
  grid-template-columns:38px 1fr 38px;
  height:42px;
  border:1px solid var(--line,#eee4f4);
  border-radius:999px;
  overflow:hidden;
  background:#fff;
}
.cart-qty-control button{
  border:none;
  background:#fff;
  color:var(--primary,#5b12b3);
  font-size:18px;
  font-weight:1000;
}
.cart-qty-control input{
  border:none;
  text-align:center;
  font-weight:1000;
  color:var(--primary,#5b12b3);
  outline:none;
  width:100%;
}
.cart-remove-hint{
  color:#991b1b;
  background:#fee2e2;
  border-radius:999px;
  padding:6px 8px;
  text-align:center;
  font-size:12px;
  font-weight:1000;
}
.cart-summary{
  position:sticky;
  top:14px;
  display:grid;
  gap:12px;
}
.cart-summary-card{
  background:#fff;
  border:1px solid var(--line,#eee4f4);
  border-radius:28px;
  padding:18px;
  box-shadow:0 12px 30px rgba(45,17,87,.08);
}
.cart-summary-card h2{
  margin:0 0 12px;
  font-size:22px;
}
.cart-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px dashed #ded4ed;
}
.cart-row:last-child{
  border-bottom:0;
}
.cart-grand{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-top:12px;
  padding:14px;
  border-radius:20px;
  background:linear-gradient(135deg,#2a064f,#5b12b3);
  color:#fff;
}
.cart-grand small{
  display:block;
  color:#e3d2f7;
}
.cart-grand strong{
  font-size:26px;
}
.cart-actions-stack{
  display:grid;
  gap:10px;
}
.cart-actions-stack .btn{
  min-height:52px;
  justify-content:center;
}
.cart-empty{
  text-align:center;
  padding:34px 20px;
  border-radius:30px;
  background:#fff;
  border:1px solid var(--line,#eee4f4);
  box-shadow:0 12px 30px rgba(45,17,87,.08);
}
.cart-empty-icon{
  width:88px;
  height:88px;
  border-radius:30px;
  display:grid;
  place-items:center;
  font-size:44px;
  margin:0 auto 16px;
  background:linear-gradient(135deg,#efe4ff,#fff3c4);
}
.cart-mini-help{
  display:grid;
  gap:10px;
}
.cart-help-tile{
  display:flex;
  gap:10px;
  align-items:center;
  padding:12px;
  border:1px solid var(--line,#eee4f4);
  border-radius:18px;
  background:#fff;
}
.cart-help-tile span{
  width:38px;
  height:38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#efe4ff;
}
.cart-bottom-bar{
  display:none;
}
@media(max-width:860px){
  .cart-layout{
    grid-template-columns:1fr;
  }
  .cart-summary{
    position:static;
  }
  .cart-item{
    grid-template-columns:72px 1fr;
  }
  .cart-item-icon{
    width:72px;
    height:72px;
    font-size:32px;
  }
  .cart-qty-panel{
    grid-column:1 / -1;
    grid-template-columns:1fr auto;
    align-items:center;
  }
  .cart-remove-hint{
    padding:10px;
  }
  .cart-steps{
    grid-template-columns:1fr;
  }
}
@media(max-width:520px){
  .cart-page{
    padding:10px 10px 132px;
  }
  .cart-hero{
    border-radius:26px;
    padding:18px;
  }
  .cart-hero-top{
    display:block;
  }
  .cart-version-chip{
    margin-top:10px;
  }
  .cart-item{
    border-radius:22px;
  }
  .cart-grand strong{
    font-size:22px;
  }
  .cart-bottom-bar{
    position:fixed;
    left:10px;
    right:10px;
    bottom:10px;
    z-index:50;
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
    align-items:center;
    padding:12px;
    border-radius:24px;
    color:#fff;
    background:linear-gradient(135deg,#2a064f,#5b12b3);
    box-shadow:0 20px 55px rgba(45,17,87,.38);
  }
  .cart-bottom-bar b{
    display:block;
    font-size:18px;
  }
  .cart-bottom-bar small{
    color:#e3d2f7;
  }
  .cart-bottom-bar .btn{
    box-shadow:none;
    background:linear-gradient(135deg,#ffc83d,#ffdd70);
    color:#2a1600;
  }
}
