.section-quick-order{
  background-color: #F8F9FD;
}
.sp-qo{
  display:flex;
  gap:20px;
}
.sp-qo__left{ 
  flex: 1; 
}

.sp-qo__right{ 
  width: 340px; 
}

.sp-qo__title{
  margin-bottom: 12px;
  color: var(--green);
  display: none;
}

.sp-qo__summary{
  position: sticky;
  top: 180px;
  background:#fff;
  border-radius:14px;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  padding: 16px;
}

.sp-qo__summary h2{
  color: var(--green);
}
.sp-qo__item{
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.sp-qo__item .sp-qo__thumb{
  max-width: 20%;
  flex-basis: 20%;
}

.sp-qo__thumb img{
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.sp-qo__item .sp-qo__info{ 
  flex: 1; 
  min-width: 0; 
  max-width: 55%;
  flex-basis: 55%;
}

.sp-qo__name{ 
  font-weight: 700; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}

.sp-qo__price{ 
  opacity: .8; 
  font-size: 13px; 
  margin-top: 2px; 
}

.sp-qo__qty{
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 25%;
  flex-basis: 25%;
}
.sp-qo__minus,.sp-qo__plus{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff; 
  cursor: pointer;
}

.sp-qo__input{
  width:54px;
  text-align:center;
  border:1px solid rgba(0,0,0,.15);
  border-radius:10px;
  height:32px;
}
.sp-qo__minus{
  margin-right: unset;
  display: flex;
  justify-content: center;
}
.sp-qo__plus{
  display: flex;
  justify-content: center;  
}

.sp-qo__sum-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size: 16px;
  margin-bottom: 12px;
}

.sp-qo__buy{
  width:100%;
  height:44px;
  border:0;
  border-radius:12px;
  background: var(--green);
  color:#fff;
  font-size: 16px;
  font-weight:700;
  cursor:pointer;
}
.sp-qo__buy:disabled{
  opacity:.5;
  cursor:not-allowed;
}
.sp-qo__note{
  margin-top: 10px;
  font-size: 13px;
  opacity: .7;
}
.sp-qo__picked{
  padding-bottom: 15px;
}
.sp-qo__picked-row{
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding-top: 10px;
  padding-bottom: 10px;
}
.sp-qo__search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 2px solid var(--green);
    border-radius: 999px;
    background: #fff;
    height: 55px;
    position: sticky;
    top: 160px;
    z-index: 2;
}
.sp-qo__search-input{
  margin-bottom: unset;
  border: unset !important;
  background-color: white !important;
  border-radius: 999px !important;
  padding: unset !important;
}
.sp-qo__search-input:focus{
  box-shadow: unset !important;
}
.sp-qo-search__btn{
  margin: unset;
  background: #eaf6ee;
  color: var(--green);
  border-radius: 999px;
  padding: 2px 12px;
}
.sp-qo__pagination{ 
  margin-top: 16px; 
}
.sp-qo__pagination ul{
  display:flex;
  gap:8px;
  list-style:none;
  padding:0;
  margin:0;
  flex-wrap:wrap;
}
.sp-qo__pagination ul li{
  margin: unset;
  margin-left: unset !important;
}
.sp-qo__pagination a,
.sp-qo__pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.15);
  padding:0 10px;
  text-decoration:none;
}
.sp-qo__pagination .current{
  background: var(--green);
  color:#fff;
  border-color: var(--green);
}
.sp-qo__pagination li:hover span{
  background-color: var(--green);
  color: white;
  border-color: var(--green);
}
.sp-qo__mobilebar{ 
  display: none !important; 
}

/* REPONSIVE */
/* TABLET */
@media only screen and (min-width: 768px) and (max-width: 1023px){
  .sp-qo__left{
    max-width: 65%;
    flex-basis: 65%;
  }
  .sp-qo__right{
    max-width: 35%;
    flex-basis: 35%;
  }
  .sp-qo__thumb img{
    width: 80px;
    height: 80px;
  }
  .sp-qo__item .sp-qo__thumb{
    max-width: 15%;
    flex-basis: 15%;
  }
  .sp-qo__item .sp-qo__info{
    max-width: 50%;
    flex-basis: 50%;
  }
  .sp-qo__qty{
    max-width: 35%;
    flex-basis: 35%;
  }
}

/* MOBILE */
@media only screen and (max-width: 767px){
  .sp-qo__thumb img{
    width: 80px;
    height: 80px;
  }
  .sp-qo{
    display: grid;
    grid-template-columns: 1fr;
  }
  .sp-qo__item{
    display: grid;
    grid-template-columns: repeat(2,1fr);
  }
  .sp-qo__info{
    margin-left: -50px;
  }
  .sp-qo__item .sp-qo__thumb,
  .sp-qo__item .sp-qo__info,
  .sp-qo__qty{
    max-width: 100%;
    width: 100%;
  }
 
  
  .sp-qo{
    padding-bottom: 100px;
  }

  /* mobile: ẩn sidebar phải, dùng thanh mobile */
  .sp-qo__right{
    display: none !important;
  }

  .sp-qo__mobilebar{
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 0);
    z-index: 9999;
    width: 100%;
    height: 120px;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 -8px 24px rgba(0,0,0,.08);
  }

  .sp-qo__mobilebar-left{
    border: 0;
    background: transparent;
    padding: 12px 14px;
    text-align: left;
    width: 100%;
    cursor: pointer;
  }

  .sp-qo__mb-row{
    display:flex;
    justify-content: space-between;
    align-items:center;
    font-size: 14px;
    line-height: 1.2;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding-bottom: .8em;
  }
  .sp-qo__mb-row.mb-row-2{
    border-bottom: unset;
    padding-top: .8em;
  }
  .sp-qo__mb-row span{
    text-transform: math-auto;
  }
  .sp-qo__mb-total{
    font-weight: 800;
    color: var(--green);
  }
  .sp-qo__mb-buy{
    border: 0;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .5px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px;
    text-transform: math-auto;
  }

  .sp-qo__mb-buy:disabled{
    opacity: .5;
    cursor: not-allowed;
  }
}