.order-title{
text-align:center;
margin-bottom:30px;
}

form{
max-width:900px;
margin:auto;
}

.form-section{
background:#f9f9f9;
padding:20px;
margin-bottom:25px;
border:1px solid #ddd;
}

.form-section h3{
margin-bottom:15px;
}

input{
padding:10px;
width:100%;
margin-bottom:12px;
border:1px solid #bbb;
}

.grid-2{
display:grid;
grid-template-columns:1fr 1fr;
gap:15px;
}

.grid-3{
display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:15px;
}

.add-item{
display:flex;
gap:10px;
}

.add-item input{
width:240px;
}

.add-item button{
background:#b74b4b;
color:#fff;
border:none;
padding:10px 18px;
cursor:pointer;
}

.order-item{
display:flex;
align-items:center;
gap:15px;
padding:10px;
border-bottom:1px solid #ddd;
}

.order-item img{
width:70px;
height:90px;
object-fit:contain;
}

.order-item .actions{
margin-left:auto;
}

.order-item button{
margin-left:5px;
}

.total-box{
text-align:right;
font-size:18px;
font-weight:600;
margin-top:15px;
}

.submit-btn{
width:100%;
padding:14px;
background:#b74b4b;
color:#fff;
border:none;
font-size:16px;
cursor:pointer;
pointer-events:auto;
}

/* Invalid Error */
.hidden{
    display:none !important;
}


/* POPUP */
.order-popup{
position:fixed;
inset:0;
background:rgba(0,0,0,0.6);
display:flex;
justify-content:center;
align-items:center;
z-index:9999;
}

.order-popup.hidden{display:none;}

.order-popup-box{
background:#fff;
width:320px;
padding:20px;
text-align:center;
position:relative;
}

.popup-close{
position:absolute;
top:-16px;
right:-16px;
width:36px;
height:36px;
border-radius:50%;
background:#b74b4b;
color:#fff;
font-size:22px;
line-height:36px;
cursor:pointer;
}

.order-popup-box img{
width:120px;
height:160px;
object-fit:contain;
}

.popup-actions{
display:flex;
justify-content:center;
gap:20px;
margin-top:10px;
}

.popup-actions button{
width:44px;
height:44px;
font-size:20px;
cursor:pointer;
}

.popup-error{
color:red;
margin-top:10px;
}

/* ===== ORDER GRID ===== */
.order-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin-top:20px;
}

.order-box{
  border:2px solid #b74b4b; /* RED OUTLINE */
  padding:10px;
  position:relative;
}

.thumb-box{
  width:100%;
  height:220px;
  border:1px solid #000;
  display:flex;
  align-items:center;
  justify-content:center;
}

.thumb-box img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

.order-box h4{
  margin:8px 0 4px;
  font-size:14px;
}

.order-box p{
  font-size:12px;
}

.order-box .remove{
  position:absolute;
  top:-10px;
  right:-10px;
  background:#b74b4b;
  color:#fff;
  border-radius:50%;
  width:24px;
  height:24px;
  line-height:24px;
  text-align:center;
  cursor:pointer;
}

/* ===== DETAILS ===== */
.order-details{
  margin-top:30px;
}

.order-details h4{
  color:#b74b4b;
  margin-bottom:10px;
}

.detail-row{
  display:flex;
  justify-content:space-between;
  margin-bottom:6px;
  font-size:14px;
}

.order-summary{
  margin-top:15px;
  font-weight:600;
  display:flex;
  justify-content:space-between;
}

#sendOrderBtn{
  position: relative;
  z-index: 99999;   /* 👈 sabke upar */
  pointer-events: auto;
}

/* ===== CART ICON (SVG) ===== */
.cart-link{
  position:relative;
  margin-left:20px;
  display:inline-flex;
  align-items:center;
  vertical-align:middle;
}

.cart-svg{
  width:24px;
  height:24px;
  display:inline-block;
  vertical-align:middle;
  margin-top:-4px;   /* 👈 NAV TEXT KE LEVEL PE LANE KE LIYE */
}

.cart-count{
  position:absolute;
  top:-6px;
  right:-10px;
  background:#b74b4b;
  color:#fff;
  font-size:11px;
  padding:2px 6px;
  border-radius:50%;
  line-height:1;
}


/* ===== ORDER CONFIRMATION POPUP ===== */
.order-confirm{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

.order-confirm.hidden{
  display:none;
}

.order-confirm-box{
  background:#fff;
  padding:25px 30px;
  width:360px;
  text-align:center;
  position:relative;
}

.order-confirm-box h3{
  margin-bottom:10px;
  color:#2e7d32;
}

.order-confirm-box p{
  font-size:14px;
  line-height:1.5;
}

.confirm-number{
  margin-top:10px;
  font-size:16px;
  font-weight:600;
  color:#b74b4b;
}

.order-confirm-close{
  position:absolute;
  top:-14px;
  right:-14px;
  width:32px;
  height:32px;
  line-height:32px;
  border-radius:50%;
  background:#b74b4b;
  color:#fff;
  font-size:20px;
  cursor:pointer;
}

select{
  padding:10px;
  width:100%;
  margin-bottom:12px;
  border:1px solid #bbb;
  background:#fff;
}
