
/* items grid */
body.order-page .order-items{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* product card */
body.order-page .order-card{
  display:flex;
  gap:12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  overflow:hidden;
  min-height: 124px;
}

body.order-page .order-thumb{
  width: 128px;
  min-width: 128px;
  height: 124px;
  background: rgba(255,255,255,.08);
}
body.order-page .order-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

body.order-page .order-info{
  padding: 12px 12px 12px 0;
  flex:1;
  display:flex;
  flex-direction:column;
  min-width:0;
}

body.order-page .order-title .fw-semibold{
  color:#fff;
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 3px;
}
body.order-page .order-title .text-muted{
  color: rgba(255,255,255,.65) !important;
}

/* meta */
body.order-page .order-meta{
  margin-top: 8px;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

body.order-page .order-meta .badge{
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.10) !important;
  color: rgba(255,255,255,.85) !important;
}

body.order-page .order-meta .price{
  margin-left:auto;
  color:#fff;
  font-weight:800;
}

/* buttons row */
body.order-page .order-info .btn{
  border-radius: 10px;
}
body.order-page .order-info .btn.btn-outline-dark{
  border-color: rgba(255,255,255,.25);
  color:#fff;
}
body.order-page .order-info .btn.btn-outline-dark:hover{
  background: rgba(255,255,255,.10);
}

/* right (cart) */
body.order-page .order-right{
  position: sticky;
  top: 120px;
}

body.order-page .cart-box{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 14px;
}

body.order-page .cart-box h3{
  color:#fff;
}

body.order-page .cart-count{
  background:#fff;
  color:#111;
  border-radius:999px;
  padding: 4px 10px;
  font-weight:800;
  font-size: 12px;
}

/* cart lines */
body.order-page .cart-lines{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

body.order-page .cart-line{
  border-bottom: 1px dashed rgba(255,255,255,.15) !important;
  padding: 10px 0 !important;
}

body.order-page .cart-line .fw-semibold,
body.order-page .cart-line .fw-bold{
  color:#fff;
}

body.order-page .cart-line .text-muted{
  color: rgba(255,255,255,.65) !important;
}

body.order-page .cart-line .btn{
  border-radius: 10px;
}
body.order-page .cart-line .btn.btn-outline-dark{
  border-color: rgba(255,255,255,.25);
  color:#fff;
}
body.order-page .cart-line .btn.btn-outline-dark:hover{
  background: rgba(255,255,255,.10);
}

/* total */
body.order-page .cart-total{
  display:flex;
  justify-content:space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-weight: 900;
  color:#fff;
}

/* confirm btn */
body.order-page #openModalBtn{
  font-weight:900;
  border-radius: 14px;
  padding: 10px 12px;
}

/* mobile cart bar */
body.order-page .cart-bar{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 999;
  background: rgba(20, 26, 52, .92);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.30);
}

/* =========================
   MODAL
   ========================= */
body.order-page .order-modal{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}
body.order-page .order-modal[aria-hidden="false"]{
  display: block;
}

body.order-page .order-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}

body.order-page .order-modal__panel{
  position: relative;
  width: min(720px, calc(100% - 24px));
  margin: 90px auto 0 auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

body.order-page .order-modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

body.order-page .order-modal__x{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

body.order-page .order-modal__body{
  padding: 14px 16px 16px 16px;
}

body.order-page .order-modal__summary{
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 12px;
}

body.order-page .order-modal__lines{
  display:flex;
  flex-direction:column;
  gap:10px;
}

body.order-page .order-modal__line{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #ddd;
}
body.order-page .order-modal__line:last-child{
  border-bottom:0;
}

/* responsive */
@media (max-width: 992px){
  body.order-page .order-grid{
    grid-template-columns: 1fr;
  }
  body.order-page .order-right{
    position: relative;
    top:auto;
  }
  body.order-page .order-items{
    grid-template-columns: 1fr;
  }
  body.order-page .order-thumb{
    width: 110px;
    min-width:110px;
    height:110px;
  }
  body.order-page .order-modal__panel{
    margin-top: 70px;
  }
}

/* stop template section padding from messing the page */
body.order-page .section,
body.order-page .section-title{
  padding: 0 !important;
  margin: 0 !important;
}
/* ===== Fix readability & alignment ===== */
body.order-page .order-left h2,
body.order-page .order-title .fw-semibold,
body.order-page .order-meta .price{
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

body.order-page .order-card{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}

body.order-page .order-thumb{
  background: rgba(0,0,0,.20);
}

body.order-page .order-info{
  padding: 12px 12px 12px 12px !important;
}

body.order-page .order-title .fw-semibold{
  font-size: 16px !important;
  line-height: 1.25 !important;
}

body.order-page .order-title .text-muted{
  font-size: 13px !important;
  opacity: .95 !important;
}

body.order-page .order-meta{
  margin-top: 10px !important;
}

body.order-page .order-meta .badge{
  font-size: 12px !important;
}

body.order-page .order-meta .price{
  font-size: 16px !important;
}

body.order-page .order-info .btn{
  font-weight: 700;
}

/* Make cart clearer */
body.order-page .cart-box{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}

body.order-page .cart-line{
  border-bottom: 1px dashed rgba(255,255,255,.18) !important;
}

body.order-page .cart-line .fw-semibold,
body.order-page .cart-line .fw-bold{
  font-size: 14px;
}

body.order-page .cart-total{
  font-size: 15px;
}

/* Better spacing under fixed header */
body.order-page main.order-main{
  padding-top: 140px !important;
}
