/**index.wxss**/
@import '../../style/iconfont/iconfont.wxss';
@import '../../template/loading/loading.wxss';

.store {
  height: 125px;
  padding: 20rpx 30rpx 10rpx;
  background-color: #d31944;
  color: #fff;
}

.store>.store_des {
  font-size: 20rpx;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
   margin-top: 5rpx; 
}

.store .view_order{
  border: 1px solid #ffffff;
  border-radius: 16rpx;
padding: 10rpx;
position:absolute;
top:30rpx;
right:6%;
font-size:24rpx;
display:flex;
flex-direction:column;
align-items:center;
margin:0 auto;


}

.store .store_general {
  display: flex;
  flex-direction: row;
}

.store_general .store_info {
  display: flex;
  flex-direction: column;
  /* margin-bottom: 50rpx; */
}

.store_info>.store_name {
  font-size: 32rpx;
  padding: 2rpx;
}

.store_info>.store_delivery, .store_info>.store_address {
  font-size: 22rpx;
  line-height: 32rpx;
}

.store_phone{
  font-size: 22rpx;
  line-height: 32rpx;
}

.store_info>.store_address {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  /* margin-top: 32rpx; */
}

.store .store_img {
  margin-right: 32rpx;
  margin-top: 10rpx;
}

.store .store_img, .store_img>image {
  width: 160rpx;
  height: 160rpx;
  background-color: #fff;
}

/*页面背景色*/

page {
  background: #eee;
}

.loading_mask {
  position: fixed;
  top: 0;
  z-index: 999999;
  display: flex;
  flex-direction: row;
  justify-content: center;
  background: #f8f8f8;
  width: 100vw;
  height: 100vh;
  padding-top: 20vh;
  opacity: 1;
  transition: all 0.6s linear;
}

.loading_mask.onLoad {
  visibility: hidden;
  background: transparent;
}

/*商品区域*/

.goods_box {
  overflow: hidden;
  display: flex;
  flex-direction: row;
}

.goods_box .goods_cate {
  background-color: #eee;
  width: 160rpx;
}

.goods_box .goods_cate .goods_cate_scroll {
  width: 160rpx;
}

.goods_box .goods_cate .goods_cate_scroll .goods_cate_item {
  position: relative;
  background-color: #f6f5f5;
  padding: 36rpx 24rpx 40rpx;
  font-size: 24rpx;
  box-sizing: border-box;
  border-left: 3px solid transparent;
  line-height: 1;
  border-bottom: 1px solid #ededed;
  color: #737373;
  width: 160rpx;
}

.goods_box .goods_cate .goods_cate_scroll .goods_cate_item.active {
  border-left-color: #d31944;
  background-color: #fff;
  font-weight: bold;
}

/*商品列表*/

.goods_box .goods_list {
  background-color: #fff;
  flex: 1;
}

.goods_box .goods_list .goods_list_scroll {
  height: 800rpx;
  box-sizing: border-box;
}

.goods_box .goods_list_scroll .goods_cate_item>.goods_cate_title {
  background-color: #f6f6f6;
  border-left: 4rpx solid #ededed;
  color: #111;
  line-height: 65rpx;
  font-size: 28rpx;
  font-weight: 500;
  padding-left: 16rpx;
}

.goods_box .goods_list .goods_list_scroll .goods_item {
  padding: 20rpx 20rpx 25rpx 16rpx;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
}

.goods_box .goods_list .goods_list_scroll .goods_item:last-child {
  padding-bottom: 35px;
}

.goods_box .goods_list .goods_list_scroll .goods_item .goods_left {
  margin-right: 30rpx;
  width: 120rpx;
  height: 120rpx;
}

.goods_box .goods_list .goods_list_scroll .goods_item .goods_left>image {
  width: 120rpx;
  height: 120rpx;
  background-color: #eee;
}

.goods_box .goods_list .goods_list_scroll .goods_item .goods_right {
  flex: 1;
  max-width: 415rpx;
  height: 55px;
  line-height: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.goods_box .goods_list .goods_right .goods_info .goods_name {
  max-width: 360rpx;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-size: 28rpx;
  line-height: normal;
}

.goods_box .goods_list .goods_right .goods_info .goods_desc {
  color: #666;
  font-size: 13px;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 360rpx;
  white-space: nowrap;
  margin-top: 10rpx;
}
.goods_box .goods_list .goods_right .goods_info .goods_desc>.sales{
  margin-right: 30rpx;
}

.goods_box .goods_list .goods_list_scroll .goods_item .goods_right .price {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-content: center;
  align-items: center;
  margin-top: 20rpx;
}

.goods_box .goods_list .goods_list_scroll .goods_item .goods_right .price .price_num {
  color: #ff6000;
  font-size: 34rpx;
}

.price_btn {
  display: flex;
  justify-content: space-around;
}

.price_btn .btn {
  border-radius: 50%;
  line-height: 30rpx;
  height: 32rpx;
  width: 32rpx;
  border: 1px solid #d31944;
  text-align: center;
  padding: 7rpx;
}

.price_btn .add {
  background-color: #d31944;
  color: #fff;
}

.price_btn .monitor {
  padding: 0 20rpx;
  line-height: 50rpx;
}

.price_btn .minus {
  background-color: #fff;
  color: #d31944;
}

/*底部*/

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  box-sizing: border-box;
  height: 45px;
  line-height: 45px;
  background-color: #474749;
  border-top: 1px solid #eee;
  z-index: 999;
  display: flex;
  flex-direction: row;
  font-size: 30rpx;
  padding-left: 130rpx;
}

.footer .cart {
  position: absolute;
  top: -25rpx;
  left: 20rpx;
  width: 100rpx;
  height: 100rpx;
  border-radius: 50%;
  text-align: center;
  border: 10rpx solid #4b4b4d;
  box-sizing: border-box;
  box-shadow: 0 3rpx 8rpx rgba(0, 0, 0, 0.18);
  background-color: #3d3d3d;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer .cart.active {
  background-color: #d31944;
}

.footer .cart.active .iconfont {
  color: #f1f1f1 !important;
}

.footer .cart>.iconfont {
  color: #999;
  font-size: 56rpx;
}

.footer .cart>.bubble {
  position: absolute;
  right: 0;
  top: 0;
  background-color: #ff4f28;
  color: #ffffff;
  line-height: 1;
  border-radius: 7px;
  padding: 3rpx 8rpx;
  font-size: 22rpx;
  transform: translate(50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer .to_txt {
  font-size: 11px;
  color: #a3a3a4;
}

.footer .current_price {
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1;
  justify-content: space-around;
  padding: 10rpx 0;
}

.footer .current_price>.deliver_price {
  font-size: 30rpx;
}

.footer .current_price text {
  font-size: 23rpx;
}

.footer .pay_btn {
  background-color: #d31944;
  color: #fff;
  margin-left: auto;
  max-width: 180rpx;
  flex: 1;
  text-align: center;
}

/* 浮层 */

.layer {
  position: fixed;
  bottom: 90rpx;
  background-color: #fff;
  width: 100vw;
  box-sizing: border-box;
  box-shadow: 0 0 3000px 3000px rgba(0, 0, 0, 0.18);
  transition: ease all 0.2s;
}

.layer::-webkit-scrollbar {
  opacity: 0;
}

.layer .layer_header {
  display: flex;
  justify-content: space-between;
  height: 80rpx;
  border-bottom: 0.5px solid #ddd;
  line-height: 80rpx;
  background-color: #eceff1;
  padding: 0 30rpx;
  color: #666;
}

.layer_header>.cart_title {
  display: flex;
  align-items: center;
}

.layer_header>.cart_title .cart_title_icon {
  display: inline-block;
  width: 6rpx;
  height: 32rpx;
  background-color: #d31944;
  margin-right: 12rpx;
}

.layer_header>.clear .iconfont {
  font-size: 26rpx;
  margin-right: 10rpx;
}

.layer_header>.clear {
  line-height: 80rpx;
  font-size: 24rpx;
}

.layer .cart_item {
  display: flex;
  align-items: center;
  line-height: 128rpx;
  height: 128rpx;
  border-bottom: 0.5px solid #eee;
  margin: 0 30rpx;
  padding-right: 10rpx;
}

.layer .cart_item>.cart_item_name {
  max-width: 345rpx;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer .cart_item>.cart_item_price {
  margin-left: auto;
  margin-right: 30rpx;
  color: #ff6000;
}

/* 商品详情 */

.goods_detail_mask {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.2);
}

.goods_detail_mask .goods_detail {
  position: absolute;
  top: 270rpx;
  left: 50%;
  transform: translateX(-50%);
  width: 500rpx;
  overflow: hidden;
  background-color: #fff;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  font-size: 13px;
  padding: 20rpx;
}

.goods_detail_mask .goods_detail .goods_detail_name {
  width: 400rpx;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
}

.goods_detail_mask .goods_detail .goods_detail_img,
.goods_detail_mask .goods_detail .goods_detail_img image {
  width: 150rpx;
  height: 150rpx;
  margin-bottom: 30rpx;
}

.goods_detail_mask .goods_detail .goods_detail_row {
  width: 400rpx;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 13px;
}

.goods_detail_mask .goods_detail .goods_detail_desc.goods_detail_row {
  width: 400rpx;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.goods_detail_mask .goods_detail .goods_detail_price {
  margin-top: 20rpx;
  font-size: 13px;
}

/*商品详情*/

.gap {
  margin: 0 10rpx;
}

scroll-view::-webkit-scrollbar {
  opacity: 0;
}
