@charset "UTF-8";
/*------------------------------------*\
變數和預設值
\*------------------------------------*/
/*排版常用變數*/
/*常用函數組*/
/*預設1rem單位，避免被瀏覽器影響*/
body {
  background: #FCFCFC;
}

/*----下方按鈕浮動///start----*/
#goods-footer-float {
  background: #699F07;
  color: #fff;
  position: fixed;
  width: 100%;
  left: 0;
  bottom: 24px;
  z-index: 1;
  border-radius: 0;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
  -webkit-box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
  -moz-box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
  text-align: center;
  font-size: 1.5rem;
}

#goods-footer-float ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
}

#goods-footer-float ul li {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  margin: 0;
  padding: 0;
  list-style-type: none;
  /*已挑選商品數字*/
}

#goods-footer-float ul li a, #goods-footer-float ul li button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: #fff;
  width: 100%;
  height: 100%;
  border: 0;
}

#goods-footer-float ul li a:hover, #goods-footer-float ul li a:focus, #goods-footer-float ul li button:hover, #goods-footer-float ul li button:focus {
  opacity: 0.8;
}

#goods-footer-float ul li i {
  font-size: 24px;
  padding: 2px;
}

#goods-footer-float ul li #goods_cart_number {
  width: 25px;
  height: 25px;
  padding: 1px 5px;
  margin: 0 4px;
  background: var(--red);
  border-radius: 50%;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

@media (max-width: 768px) {
  #goods-footer-float {
    bottom: 0;
    font-size: 1.125rem;
  }
  #goods-footer-float button{
    padding: 6px 4px;
  }
}

/*----下方按鈕浮動///end----*/
/*---結帳時歡迎文字---*/
.goods-cart-welcome {
  margin-bottom: 1rem;
}

/*------------------------------------*\
 共用元件
\*------------------------------------*/
/*---卡片背景---*/
.goods-card, .goods-card--list {
  background: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
  -webkit-box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
  -moz-box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
}

.goods-card .card-header, .goods-card--list .card-header {
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  line-height: 1;
  padding-bottom: 12px;
  border-bottom: 1px solid #cccccc;
}

.goods-card .card-body, .goods-card--list .card-body {
  padding: 8px 0;
}

.goods-card .card-body small, .goods-card--list .card-body small {
  font-size: 0.9rem;
  color: #666666;
}

.goods-card .card-body .title, .goods-card--list .card-body .title {
  padding-right: 8px;
}

.goods-card--list {
  border-top: 4px solid #8FC31F;
}

/*表格裡放刪除按鈕欄位*/
.table-td-delete {
  width: 50px;
  text-align: center;
}

/*刪除按鈕*/
.glyphicon-trash {
  text-indent: 20px;
  width: 1rem;
  height: 1rem;
  display: inline-block;
  background: url(../images/icon-delete.svg) no-repeat;
  background-size: 100% auto;
}

/*------------------------------------*\
 首頁
\*------------------------------------*/
/*---加盟主 個人資料---*/
.goods-intro {
  line-height: 1.3;
  max-width: 480px;
  margin: 0 auto 1rem auto;
}

.goods-intro__name {
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.goods-intro__name__text {
  font-size: 1.5rem;
  color: #8FC31F;
}

.goods-intro__number {
  color: #FF9900;
  font-size: 0.875rem;
  margin-bottom: 0.8rem;
}

.goods-intro__place {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: 1.125rem;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.goods-intro__icon {
  font-size: 24px;
  margin-right: 8px;
  color: rgba(51, 51, 51, 0.8);
}

/*--- 首頁快速按鈕 ---*/
.goods-index-btn {
  display: block;
  color: #fff;
  background: #8FC31F;
  padding: 1rem 0;
  -webkit-transition: all ease-out 0.2s;
  /* Safari */
  transition: all ease-out 0.2s;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
  -webkit-box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
  -moz-box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
  text-align: center;
}

.goods-index-btn:hover {
  color: #fff;
  background: #FF9900;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  box-shadow: 0 3px 3px -2px rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 1px 8px 0 rgba(0, 0, 0, 0.12);
  -webkit-box-shadow: 0 3px 3px -2px rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 1px 8px 0 rgba(0, 0, 0, 0.12);
  -moz-box-shadow: 0 3px 3px -2px rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 1px 8px 0 rgba(0, 0, 0, 0.12);
}

.goods-index-btn i {
  display: block;
  font-size: 40px;
  line-height: 1.5;
}

.goods-index-btn h4 {
  font-size: 1.125rem;
}

/*------------------------------------*\
 填寫叫貨訂購單
\*------------------------------------*/
.goods-list {
  /*tab-start*/
}

.goods-list .nav-tabs {
  overflow: hidden;
  margin-bottom: 1rem;
  border-bottom: 1px solid #cccccc;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
  overflow-x:auto;
}

.goods-list .nav-tabs .nav-link {
  color: #333333;
  line-height: 32px;
  font-size: 1rem;
  padding: 0 1.5rem;
  border-bottom: 4px transparent;
  margin-bottom: -1px;
}

.goods-list .nav-tabs .nav-link.active, .goods-list .nav-tabs .nav-link.active:hover, .goods-list .nav-tabs .nav-link.active:focus, .goods-list .nav-tabs .nav-link:focus, .goods-list .nav-tabs .nav-link:hover {
  background: transparent;
  border-radius: 0;
  border-color: transparent;
  border-bottom: 4px solid #8FC31F;
  color: #8FC31F;
}

.goods-list .nav-tabs .nav-item {
  margin-bottom: -2px;
}

/*tab-end*/
@media (max-width: 1199.98px) {
  .goods-list .nav-tabs .nav-link {
    padding: 0 0.5rem;
  }
}

/*------------------------------------*\
 原本的style.css中複製過來的
\*------------------------------------*/
/*導覽列*/
.site-location {
  margin-bottom: 12px;
}

.site-location nav ol {
  list-style: none outside none;
  padding: 0px;
  margin: 0;
}

.site-location nav ol li {
  display: inline-block;
}

.site-location nav ol li::after {
  content: ">";
}

.site-location nav ol li:last-child::after {
  display: none;
}

/*----CSS grid 表格///start----*/
.bg-primary {
  color: #fff;
}

.cssgrid-table {
  display: table;
  margin-bottom: 24px;
  width: 100%;
}

.cssgrid-table tbody,
.cssgrid-table thead,
.cssgrid-table caption {
  display: table-header-group;
}

/*標題*/
.item-header {
  color: #fff;
  font-weight: 600;
}

/*每一列*/
.item-container {
  display: table-row;
  -ms-grid-columns: (minmax(80px, 1fr))[auto-fit];
      grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
}

/*每一格*/
.item-container > * {
  padding: 8px;
  border: 1px solid #eee;
}

.item-container:nth-child(2n) {
  background-color: #fafafa;
}

/*備註*/
.attribute-note {
  font-size: 0.85rem;
  padding-left: 5px;
}

@media (max-width: 767px) {
  .cssgrid-table {
    margin-top: 0px;
  }
  .item-container {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    margin-bottom: 24px;
  }
  .item-container .attribute {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: minmax(7em, 30%) 1fr;
        grid-template-columns: minmax(7em, 30%) 1fr;
    /*每一列手機上增加一個左側的區塊*/
  }
  .item-container .attribute::before {
    content: attr(data-name) " ";
    display: block;
    background-color: var(--primary);
    margin: -8px 8px -8px -8px;
    padding: 8px;
    color: #fff;
  }
  .item-container:nth-child(2n) {
    background-color: transparent;
  }
  /*標題隱藏*/
  .item-header {
    display: none;
  }
}

/*----CSS grid 表格//end----*/
/*清除.table的框線*/
.table-border0 thead th {
  border-bottom: 0px !important;
}

.table-border0 th, .table-border0 td {
  padding: 0.5rem !important;
  border-top: 0px !important;
}
