﻿.orderBox{

  max-width: 1080px;
  margin: 30px auto;
}

.cart-header th { padding: 8px 0; font-size: 11px; color: #999; background: none }
.cart-header th.col-product { width: 80px; flex: 0 0 80px }
.cart-header th.col-desc { flex: 1; min-width: 0 }
.cart-header th.col-price, .cart-header th.col-qty, .cart-header th.col-total { display: none !important }

.orderBox .item {
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;
}
.orderBox .orderStep {
  background: #ccc;
  padding: 18px 20px;
  cursor: pointer;
  align-items: center;
  position: relative;
  transition: background 0.3s;
  user-select: none;

}
.orderBox .orderStep h2{
  font-size: 21px;
  line-height: 1.5;
  font-weight: 700;
  color: #000;
}
.orderBox .orderStep p{
  font-size: 18px;
  font-weight: 400;
  display: block;
  color: #606060;
}
.orderBox .orderStep i {
  color: #666;
  font: 24px apirl bold;
  position: absolute;
  right: 10px;
  top: 29px;
  width: 20px;
  text-align: center;
}
.orderBox .orderDetail{
  background: #f1f1f1;
  padding: 0 20px;
  max-height: 0;
  transition: max-height 0.5s ease, padding 0.3s ease;
  line-height: 1.6;
  color: #555;
  overflow:hidden;
}
.orderBox .item.active .orderDetail{
  max-height: unset;
  padding: 20px;
  overflow:unset;
}
.orderBox .item .orderStep i::before {
    content: "+";
}
.orderBox .item.active .orderStep i::before {
    content: "-";
}
.orderBox .pic_choose{
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orderBox .pic_choose li {
  text-align: center;
  background: #fff;
  margin: 10px 20px;
  padding:10px 15px;
  width:180px;
  position: relative;
}

.orderBox .pic_choose li .layui-form-radio {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0px;
  top: 0px;
  margin: 0px;
  padding: 0px;
  border: 3px solid #fff;
}


.orderBox .pic_choose li .layui-form-radioed{
  border: 3px solid #f00;
}

.orderBox .pic_choose li .layui-form-radio i{
  opacity: 0 !important;
}

.orderBox .pic_choose li img{
  display:block;
  width:100%;
}

.orderBox .tip{
  padding: 20px 0px;
  font-weight: 400;
  font-size: 18px;
  text-align: center;
}

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

.orderBox .layui-icon-help{
  background: #1979c3;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  margin-left: 5px;
  margin-right: 5px;
  padding: 0px 1px;
}
.input_select li{width:150px;}
#Step3 .pic_choose{flex-wrap: wrap;}
#Step3 .pic_choose li{width: calc(15% - 10px);}
.ipt_choose{text-align:center;}
.ipt_choose .layui-form-radioed, .ipt_choose .layui-form-radioed > i, .ipt_choose .layui-form-radio:hover *{
  color:#f00;
}
#Step5 .sel_item{float:left;width:50%;text-align:left;margin-bottom: 20px;}
#Step5 .layui-form-select{width:400px;}
#Step6 .upload{ 
  text-align: center;
  margin-top: 20px;
}
.orderPreview{
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  overflow: hidden;
}
.orderPreview h3{
  font-size: 20px;
  font-weight: bold;
}
.orderPreview li{display:none;}
.orderPriceBox{
  position: fixed;
  bottom: 0px;
  max-width: 1200px;
  width: 100%;
  background: #ccc;
  margin: 0px auto;
  z-index: 999;
  padding: 10px 60px;
  border-radius: 15px;
}
.orderPriceBox .addToCart{
  width: 500px;
  background: #000;
  color: #fff;
  border: none;
  height: 42px;
  line-height: 42px;
  border-radius: 10px;
  float: left;
  cursor: pointer;
}
.orderPriceBox .orderQuantity{
  width: 200px;
  float: left;
  background: #fff;
  border-radius: 3px;
  height: 42px;
  position: relative;
}
.orderPriceBox .orderQuantity * {
  height: 100%;
  float: left;
  width: 100%;
}
.orderPriceBox .orderQuantity button {
  width: 42px;
  border: none;
  font-size: 30px;
  line-height: 42px;
  cursor: pointer;
  font-weight: normal;
  position: absolute;
  top: 0px;
}
.orderPriceBox .orderQuantity .del{
  left: 0px;
}
.orderPriceBox .orderQuantity .add{
  background: #34B755;
  color: #fff;
  right: 0px;
}
.orderPriceBox .orderQuantity input{
  width:100%;
  text-align:center;
  border:none;
}
.orderPriceBox .itemPrice{
  float: left;
  background: none;
  border: none;
  color: #000;
  font-size: 18px;
  line-height: 42px;
  text-align: center;
  width: calc(100% - 700px);
}



/* ===== 购物车页面样式 ===== */
.cart-section.container {
    padding: 30px 15px 80px;
    min-height: 400px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.cart-title {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    padding-bottom: 12px;
}
.cart-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 16px;
}
.cart-empty .layui-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

/* --- Desktop Table --- */
#cartContent td, th{
   border: none !important;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid #000;
}
.cart-table thead{
  border-bottom: 1px solid #000;
  height: 50px;
}
.cart-header th {
    padding: 8px 10px;
    text-align: left;
    font-weight: 400;
    font-size: 12px;
    color: #999;
    border-bottom: 2px solid #000;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
}
.cart-item{
    border-bottom: 1px solid #000;
}
.cart-item td {
    padding: 15px 10px;
    border-bottom: 1px solid #000;
    vertical-align: middle !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
}

.col-product { width: 100px; min-width: 100px; }
.col-product img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; display: block }
.col-desc { min-width: 140px }
.col-price { width: 120px; text-align: center; vertical-align: middle !important }
.col-qty { width: 130px; text-align: center; vertical-align: middle !important }
.col-total { width: 120px; text-align: center; font-weight: 600; position: relative; vertical-align: middle !important }

/* 商品信息 */
.product-info img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px }
.prod-name { font-size: 14px; font-weight: 500; color: #333; margin: 0 0 4px }
.col-desc-inner img{height: 30px;}
.prod-desc { font-size: 12px; color: #999; margin: 0 }

/* 数量控件 */
.qty-control { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 3px; overflow: hidden }
.qty-btn { width: 30px; height: 30px; border: none; background: #f5f5f5; cursor: pointer; font-size: 16px; color: #333; line-height: 30px; text-align: center; transition: all .2s }
.qty-btn:hover { background: #e8e8e8 }
.qty-input { width: 40px; height: 30px; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; text-align: center; font-size: 14px; outline: none }

/* 删除按钮 */
.btn-remove {
  position: absolute;
  top: 15px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid #888;
  background: #fff;
  color: #666;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  font-weight: normal;
  line-height: 18px;
  text-align: center;
  padding: 0;
  transition: all .2s;
  z-index: 2;
}
.btn-remove:hover { border-color: #666; background: #ddd; transform: scale(1.1) }

/* 继续购物按钮 */
.btn-shop { display: inline-block; padding: 8px 20px; background: #666; color: #fff; border-radius: 4px; text-decoration: none; font-size: 14px; transition: all .2s }
.btn-shop:hover { background: #555; color: #fff }

/* 结算区域 */
.summary-section { margin-top: 20px; border-top: 2px solid #000; padding-top: 20px; max-width: 400px; margin-left: auto }
.summary-row { display: flex; justify-content: flex-end; padding: 6px 0; font-size: 14px }
.summary-row .label {margin-right: 20px;color: #666 }
.summary-row .value { color: #333; font-weight: 500 }
.summary-row.total { border-top: 1px solid #000; margin-top: 6px; padding-top: 10px }
.summary-row.total .label{line-height: 30px;}
.summary-row.total .value { font-size: 20px; font-weight: 700; color: #333 }
.btn-checkout { display: inline-block; padding: 12px 30px; background: #333; color: #fff; border: none; border-radius: 4px; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 15px; float: right; transition: all .2s }
.btn-checkout:hover { background: #555 }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .cart-section.container { padding: 20px 10px 60px }

    .cart-title { font-size: 18px; padding: 6px 0 }
    .cart-table, .cart-table tbody { display: block }

    .cart-table thead{border-bottom:none !important;}
    thead tr { display: flex !important; flex-flow: row nowrap; padding: 0 15px; border-bottom: 1px solid #000;width: calc(100vw - 22px);}
    .cart-item, .cart-item td { display: flex; flex-flow: row nowrap; border-bottom: 1px solid #000; padding: 12px 15px; position: relative; align-items: flex-start; gap: 12px }
    .cart-item .col-product { width: 80px; min-width: 80px; flex: 0 0 80px; float: none; margin: 0 }
    .cart-item .col-info { flex: 1; min-width: 0 }
    .cart-item td { border: none !important; padding: 0; vertical-align: top }
    .cart-item .col-product img { width: 80px; height: 80px }
    .prod-name { font-size: 13px }
    .prod-desc { font-size: 11px }
    .price-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px }
    .price-qty .price { font-size: 14px; font-weight: 600; color: #333 }
    .mob-total { font-size: 13px; color: #333; font-weight: 600; margin-left: auto }
    .qty-control { display: inline-flex }
    .qty-btn { width: 26px; height: 26px; line-height: 26px; font-size: 14px }
    .qty-input { width: 34px; height: 26px; font-size: 13px }
    .col-price { display: none }
    .col-qty { display: none }
    .col-total { display: none }
    .btn-remove { position: absolute;top: -5px;right: -10px;}
    .summary-section { max-width: 100% }
    .summary-row { padding: 4px 0;justify-content: space-between;}
    .summary-row.total .value { font-size: 17px }
    thead th { padding: 10px 0; font-size: 11px; color: #999; background: none }
    thead th.col-product { width: 80px; min-width: 80px; flex: 0 0 80px }
    thead th.col-desc { flex: 1; min-width: 50% }
    thead th.col-price, thead th.col-qty, thead th.col-total { display: none !important }
}


.cart-footer-links { clear: both; padding-top: 10px; text-align: right }
.cart-footer-links a { color: #666; font-size: 13px; text-decoration: none }
.cart-footer-links a:hover { text-decoration: underline 

}

/* === Checkout Page Styles (moved from checkout.html) === */
/* === Checkout Page Styles === */
:root {
  --color1: #708823;
  --color2: #839d2f;
  --bg-light: #f8f9fa;
  --text-color: #606060;
  --border-color: #ddd;
  --radius: 6px;
}
.checkout-section {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.checkout-title {
  width: 100%;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #000;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 15px;
}
.checkout-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 120px;
  left: 50%;
  margin-left: -60px;
  background: var(--color1);
  height: 3px;
  border-radius: 3px;
}

/* Left: Billing Form */
.billing-col {
  flex: 1 1 55%;
  min-width: 300px;
  display: flex;
}
.order-summary-col {
  flex: 1 1 35%;
  min-width: 280px;
  display: flex;
}

.billing-col .form-card,
.order-summary-col .order-summary-card {
  width: 100%;
}

.section-heading {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color1);
}

.form-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.form-group {
  flex: 1 1 100%;
  min-width: 0;
}
.form-group.half {
  flex: 1 1 calc(50% - 8px);
  min-width: 140px;
}
.form-group.third {
  flex: 1 1 calc(33.33% - 10px);
  min-width: 120px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  margin-bottom: 5px;
}
.form-group label .required {
  color: #e74c3c;
  margin-left: 2px;
}
.form-group input,
.form-group select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color1);
  box-shadow: 0 0 0 2px rgba(112, 136, 35, 0.15);
}
.form-group input.error,
.form-group select.error {
  border-color: #e74c3c;
}
.form-group .error-msg {
  display: none;
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
}
.form-group input.error + .error-msg,
.form-group select.error + .error-msg {
  display: block;
}

/* Order Summary */
.order-summary-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
}

/* Product list scroll area - same height as left column */
#summaryItems {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  max-height: 500px;
}
.order-summary-card .summary-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color1);
}
.order-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.order-item:last-child {
  border-bottom: none;
}
.order-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.order-item .item-info {
  flex: 1;
  min-width: 0;
}
.order-item .item-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.3;
}
.order-item .item-custom {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
  margin-bottom: 4px;
}
.order-item .item-price-qty {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
}
.summary-totals {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
  padding: 4px 0;
}
.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 6px;
}
.summary-row.discount {
  color: var(--color1);
}

/* Place Order Button */
.btn-place-order {
  width: 100%;
  height: 48px;
  background: var(--color1);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s;
}
.btn-place-order:hover {
  background: var(--color2);
}
.btn-place-order:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* Loading State */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.loading-overlay.show {
  display: flex;
}
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.loading-spinner i {
  font-size: 40px;
  color: var(--color1);
}
.loading-spinner span {
  font-size: 14px;
  color: #999;
}

/* Input with icon */
.input-with-icon {
  position: relative;
}
.input-with-icon input {
  padding-right: 36px;
}
.input-with-icon {
  position: relative;
}
.input-with-icon input {
  padding-right: 36px;
}
.input-with-icon .input-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #bbb;
  cursor: help;
  line-height: 1;
}
.input-with-icon .input-icon:hover {
  color: var(--color1);
}

/* Tooltip */
.input-with-icon .input-icon::after {
  content: "Recommended for quick order confirmation and delivery assistance if needed.";
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
}
.input-with-icon .input-icon:hover::after {
  opacity: 1;
}

/* Tooltip caret */
.input-with-icon .input-icon::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 100%;
  margin-top: 2px;
  border: 6px solid transparent;
  border-bottom-color: #333;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
}
.input-with-icon .input-icon:hover::before {
  opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .checkout-section {
    flex-direction: column;
    padding: 0 12px;
    margin: 15px auto;
  }
  .form-card {
    padding: 20px;
  }
  .form-group.half {
    flex: 1 1 100%;
  }
  .form-group.third {
    flex: 1 1 100%;
  }
  .order-summary-card {
    position: static;
  }
}