@charset "UTF-8";

/* Cart Page（購物車頁）*/
.cart-layout {
display: grid;
grid-template-columns: 1.2fr 0.8fr;
gap: 26px;
align-items: start;
margin: 20px 300px 0px;
}

.cart-item {
display: grid;
grid-template-columns: 110px 1fr 130px;
gap: 18px;
padding: 16px 0;
border-bottom: 1px solid #eee;
}

.cart-item:last-child {
border-bottom: 0;
}

.cart-thumb {
width: 110px;
height: 110px;
border-radius: 12px;
overflow: hidden;
border: 1px solid #eee;
background: #fff;
}

.cart-thumb img {
width: 100%;
height: 100%;
object-fit: contain;
}

.cart-title {
font-weight: 900;
margin-bottom: 6px;
}

.cart-sub {
font-size: 17px;
color: #666;
margin-bottom: 10px;
}

.cart-price {
font-size: 16px;
color: #444;
margin-bottom: 12px;
}


.cart-qty-form {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 10px;
}

.qty-label {
font-size: 13px;
font-weight: 800;
}

.qty-input {
width: 80px;
border: 1px solid #d9d9d9;
border-radius: 10px;
padding: 8px 10px;
font-size: 14px;
}

.small-btn {
padding: 8px 12px;
font-size: 13px;
border-radius: 10px;
}

.cart-remove {
border: 0;
background: transparent;
color: #c02d2d;
font-weight: 900;
font-size: 13px;
cursor: pointer;
}

.cart-remove:hover {
text-decoration: underline;
}

.cart-total {
text-align: right;
}

.cart-total-label {
font-size: 13px;
color: #666;
margin-bottom: 6px;
}

.cart-total-price {
font-weight: 900;
color: #111;
}

.cart-empty {
text-align: center;
padding: 50px 18px;
margin: 0 100px 0 100px;
}

.cart-empty-title {
font-size: 16px;
font-weight: 900;
margin-bottom: 18px;
color: #444;
}


/*  中大型平板 (≤ 1200px)  */
@media (max-width: 1200px) {
  .cart-layout {
    margin-left: 40px;
    margin-right: 40px;
  }
}

/* 平板模式 (≤ 992px) */
@media (max-width: 992px) {
  .cart-layout {
    grid-template-columns: 1fr; 
    margin: 100px 20px 0; 
  }

  .cart-item {
    grid-template-columns: 110px 1fr; 
    gap: 15px;
  }

  .cart-total {
    text-align: left;
    padding: 20px 0;
    border-top: 2px solid #eee;
  }
  
  .cart-empty {
    margin: 0 20px;
  }
}


@media (max-width: 576px) {
  .cart-layout {
    margin: 0px 10px 0 !important; 
  }

  .cart-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 20px 0;
  }

  .cart-thumb {
    width: 80px; 
    height: 80px;
    flex-shrink: 0;
  }

  .cart-info {
    flex: 1;
    min-width: 180px; 
  }

  .cart-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .cart-sub {
    font-size: 14px;
    margin-bottom: 6px;
  }

 
  .cart-qty-form {
    width: 100%; 
    margin-top: 10px;
    padding-left: 0;
    justify-content: flex-start;
    gap: 15px;
  }

  .qty-input {
    width: 70px; 
  }

  .cart-remove {
    margin-top: 5px;
    padding: 5px 0;
    font-size: 14px;
  }

  .btn-primary.checkout-btn {
    width: 100%;
    padding: 15px 0;
    font-size: 18px;
  }
}



/* 運送方式卡片選擇器 */
.method-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.method-card {
  cursor: pointer;
  display: block;
  position: relative;
}

.method-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.method-box {
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.method-card input[type="radio"]:checked + .method-box {
  border-color: teal;
  background-color: rgba(0, 128, 128, 0.05);
}

.method-card input[type="radio"]:checked + .method-box::after {
    content: '✓';
    font-weight: bold;
    font-size: 1.2rem;
}

.method-name {
  font-weight: 600;
  color: #333;
}

.method-fee {
  color: #666;
  font-size: 0.9em;
}

.hidden {
  display: none !important;
}

.mt-3 {
  margin-top: 1rem;
}

/* 已選門市資訊框 */
.store-info-box {
  background: #fffde7;
  padding: 12px;
  border-radius: 6px;
  margin-top: 12px;
  border: 1px dashed #fbc02d;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 結帳金額清單 */
.checkout-summary {
  background: #f8f8f8;
  padding: 15px;
  border-radius: 6px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sum-row.total {
  border-top: 1px solid #ddd;
  padding-top: 10px;
  margin-top: 10px;
  font-weight: bold;
  font-size: 1.2rem;
}

/* 輔助文字 */
.checkout-note {
  font-size: 0.85em;
  color: #888;
  margin-top: 12px;
  text-align: center;
}


/* Checkout Page（結帳頁）*/
.shop-header {
    width: 100%;
    text-align: center;      
    padding: 40px 15px 20px; 
    margin-top: 100px;
    background: transparent; 
    display: block;        
    box-sizing: border-box;
}

.shop-title {
    margin: 0;
    font-size: 32px;      
    font-weight: 700;
    color: #333;
    letter-spacing: 2px;   
    line-height: 1.2;
}

.shop-subtitle {
    margin: 5px 0 0;
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.checkout-layout {
    display: flex;
    flex-direction: column; 
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px; 
}

.checkout-left, .checkout-right {
    width: 100%;
}

.panel {
    background: #fff;
    border-radius: 12px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #eee; 
    width: 100%; 
    box-sizing: border-box; 
}


.panel-head {
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    display: flex;
    align-items: center; 
}

.panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: #333;
    flex: 1;
}

.panel-body {
    padding: 18px;
    box-sizing: border-box;
}

.order-item {
display: flex;
justify-content: space-between;
gap: 16px;
padding-bottom: 14px;
border-bottom: 1px solid #eee;
margin-bottom: 14px;
}

.order-item-title {
font-weight: 900;
margin-bottom: 4px;
}

.order-item-sub {
font-size: 13px;
color: #666;
}

.order-item-price {
font-weight: 900;
color: #d62929;
white-space: nowrap;
}

.order-meta {
display: grid;
gap: 10px;
}

.meta-row {
display: flex;
justify-content: space-between;
gap: 10px;
font-size: 14px;
color: #444;
}

.text-danger {
color: #d62929;
margin-left: 2px;
}


.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
}

.form-field.full {
grid-column: 1 / -1;
}

.form-label {
display: block;
font-weight: 800;
margin-bottom: 8px;
font-size: 14px;
}

.form-input, .form-select, .form-textarea {
width: 100%;
border: 1px solid #d9d9d9;
border-radius: 10px;
padding: 10px 12px;
font-size: 14px;
outline: none;
background: #fff;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
border-color: #2f6bff;
}

.form-textarea {
resize: vertical;
}

.form-hint {
margin-top: 12px;
font-size: 12px;
color: #777;
line-height: 1.7;
}

.mt-12 {
margin-top: 12px;
}

.w-100 {
width: 100%;
}

/* Buttons */
.btn-primary, .btn-outline {
display: inline-block;
text-align: center;
padding: 10px 0;
border-radius: 10px;
font-weight: 700;
font-size: 22px;
text-decoration: none;
cursor: pointer;
}

.btn-primary {
border: 0;
background: #DAA520;
color: #fff;
transition: all 0.3s ease; 
}

.btn-primary:hover {
  background: #f1f6ff;
    color: teal;   
    border: 1px solid teal;  
}

.btn-primary:disabled {
opacity: 0.55;
cursor: not-allowed;
}

.btn-outline {
    background: #DAA520;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #f1f6ff;
    color: teal;  
    border: 1px solid teal;
}

/* Store */
.store-box {
margin-top: 14px;
border: 1px solid #d8f0d8;
background: #f2fbf2;
border-radius: 12px;
padding: 12px;
}

.store-title {
font-weight: 900;
font-size: 13px;
margin-bottom: 6px;
color: #1f7a1f;
}

.store-name {
font-size: 14px;
font-weight: 900;
color: #145214;
}

.store-hint {
margin-top: 12px;
font-size: 13px;
color: #666;
line-height: 1.7;
}

.store-disabled {
font-size: 13px;
color: #777;
line-height: 1.7;
background: #f6f6f6;
border-radius: 12px;
padding: 12px;
}

/* Summary */
.checkout-summary {
display: grid;
gap: 12px;
margin-bottom: 16px;
}

.sum-row {
display: flex;
justify-content: space-between;
gap: 12px;
font-size: 14px;
color: #444;
}

.sum-row.total {
padding-top: 12px;
border-top: 1px solid #eee;
font-size: 16px;
}

.checkout-note {
margin-top: 12px;
font-size: 12px;
color: #777;
line-height: 1.7;
}


@media (max-width: 768px) {
    .shop-wrap {
        padding: 10px;
    }
    
    .panel {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr; 
    }
    
    .shop-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .shop-header {
        padding: 25px 10px 15px;
    }
    .shop-title {
        font-size: 26px;      
    }
}


/* Checkout Done（完成頁）*/
.done-wrap {
display: flex;
justify-content: center;
padding: 10px 0 50px;
}

.done-card {
width: 100%;
max-width: 640px;
background: #fff;
border-radius: 16px;
box-shadow: 0 14px 30px rgba(0,0,0,0.08);
padding: 34px 26px;
text-align: center;
}

.done-icon {
width: 64px;
height: 64px;
border-radius: 50%;
background: #2f6bff;
color: #fff;
display: inline-flex;
justify-content: center;
align-items: center;
font-size: 34px;
font-weight: 900;
margin-bottom: 16px;
}

.done-title {
margin: 0 0 10px;
font-size: 22px;
font-weight: 900;
}

.done-desc {
margin: 0 auto 22px;
max-width: 520px;
color: #555;
line-height: 1.8;
font-size: 14px;
}

.done-info {
margin: 20px 0 24px;
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
padding: 16px 0;
text-align: left;
}

.done-row {
display: flex;
justify-content: space-between;
gap: 14px;
padding: 10px 0;
font-size: 14px;
color: #444;
}

.done-row span {
color: #666;
}

.done-actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
margin-top: 12px;
}

.done-actions .btn-primary,
.done-actions .btn-outline {
padding: 12px 0;
}

.done-note {
margin-top: 18px;
font-size: 12px;
color: #777;
line-height: 1.7;
}

/* RWD */
@media (max-width: 576px) {
.done-card {
padding: 28px 18px;
}
.done-actions {
grid-template-columns: 1fr;
}
}






