.pos-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:20px;
  align-items:start;
}

.pos-main{
  display:grid;
  gap:18px;
  min-width:0;
}

.search-bar{
  display:flex;
  gap:12px;
  min-width:0;
}

.search-bar input{
  flex:1;
  min-width:0;
}

.category-row{
  display:flex;
  gap:12px;
  overflow-x:auto;
  overflow-y:hidden;
  max-width:100%;
  min-width:0;
  padding:2px 2px 10px;
  scrollbar-width:thin;
  scrollbar-color:#d6a4ab #f8ecee;
}

.category-row::-webkit-scrollbar{
  height:8px;
}

.category-row::-webkit-scrollbar-track{
  background:#f8ecee;
  border-radius:999px;
}

.category-row::-webkit-scrollbar-thumb{
  background:#d6a4ab;
  border-radius:999px;
}

.category-pill{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:56px;
  padding:0 16px;
  border-radius:18px;
  background:rgba(255,255,255,0.94);
  border:1px solid var(--line);
  font-weight:700;
  color:var(--muted);
  text-align:center;
  white-space:nowrap;
  box-shadow:0 8px 18px rgba(201,88,100,.06);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease,background .18s ease;
}

.category-pill:hover{
  transform:translateY(-1px);
  border-color:#f2b1b9;
  box-shadow:0 12px 22px rgba(201,88,100,.10);
  color:var(--accent-dark);
}

.category-pill.active{
  background:linear-gradient(180deg,#fff5f6 0%,#ffecef 100%);
  color:var(--accent-dark);
  border-color:#f6adb4;
  box-shadow:0 14px 24px rgba(245,107,114,.13);
}

.category-pill-icon{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:12px;
  background:#fff3f5;
  border:1px solid #f5d6db;
  font-size:18px;
  line-height:1;
  flex:0 0 32px;
}

.category-pill.active .category-pill-icon{
  background:#fff;
  border-color:#f1b6bf;
}

.category-pill-label{
  display:block;
  font-size:14px;
  line-height:1;
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:18px;
  align-items:start;
}

.product-card{
  overflow:hidden;
}

.product-card img{
  height:180px;
  width:100%;
  object-fit:cover;
  background:#fee;
}

.product-copy{
  padding:16px;
  display:grid;
  gap:10px;
}

.product-copy p{
  color:var(--muted);
  font-size:14px;
  min-height:40px;
}

.product-meta{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
}

.product-meta strong{
  font-size:22px;
}

.cart-panel{
  padding:22px;
  height:fit-content;
  position:sticky;
  top:24px;
  z-index:2;
}

.cart-panel h2{
  font-size:28px;
  margin-bottom:14px;
}

.cart-items{
  display:grid;
  gap:12px;
  max-height:330px;
  overflow:auto;
  padding-right:4px;
}

.cart-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  background:var(--soft);
  border-radius:18px;
}

.cart-item span{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:4px;
}

.qty-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.qty-actions button{
  width:28px;
  height:28px;
  border:none;
  border-radius:50%;
  background:#fff;
  color:var(--accent-dark);
  cursor:pointer;
}

.cart-totals{
  display:grid;
  gap:12px;
  padding:18px 0;
  border-top:1px dashed var(--line);
  border-bottom:1px dashed var(--line);
  margin:18px 0;
}

.cart-totals div{
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.cart-totals .grand strong,
.cart-totals .grand span{
  font-size:22px;
  font-weight:800;
}

.checkout-form{
  display:grid;
  gap:14px;
}

.checkout-form label{
  display:grid;
  gap:8px;
  font-weight:600;
}
