/**
 * EC Shop 前台 — 拍賣頁樣式
 * /assets/css/auction.css
 */
.auction-wrap { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.auction-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
@media (max-width: 768px) { .auction-grid { grid-template-columns: 1fr; gap: 20px; } }

/* 圖片 */
.auction-main-img {
    width: 100%; aspect-ratio: 1 / 1;
    background: #f3f4f6 center/cover no-repeat;
    border-radius: 12px;
}
.auction-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.auction-thumb {
    width: 64px; height: 64px; border-radius: 8px;
    background: #f3f4f6 center/cover no-repeat;
    border: 1px solid #e5e7eb;
}

/* 資訊 */
.auction-badge {
    display: inline-block; font-size: 13px; font-weight: 700;
    color: #b45309; background: #fef3c7; border: 1px solid #fde68a;
    padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.auction-title { font-size: 24px; font-weight: 700; margin: 0 0 14px; line-height: 1.35; }

.auction-countdown {
    display: flex; align-items: center; gap: 10px;
    background: #111827; color: #fff;
    padding: 10px 14px; border-radius: 10px; margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}
.auction-countdown[data-state="ended"] { background: #6b7280; }
.ac-label { font-size: 13px; opacity: .85; }
.ac-timer { font-size: 18px; font-weight: 700; letter-spacing: .3px; }
.ac-ended { font-size: 15px; font-weight: 700; }

.auction-box {
    border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 16px; margin-bottom: 14px; background: #fff;
}
.auction-box-muted { background: #f9fafb; color: #4b5563; font-size: 14px; }
.auction-box-label { font-size: 13px; color: #6b7280; margin-bottom: 4px; }
.auction-price { font-size: 30px; font-weight: 800; color: #16a34a; line-height: 1.1; }
.auction-meta { margin-top: 6px; font-size: 13px; color: #6b7280; }
.ac-reserve-met { color: #16a34a; font-weight: 600; }
.ac-reserve-no { color: #dc2626; font-weight: 600; }

.auction-status-msg {
    background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857;
    padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; font-size: 14px;
}

.auction-bidbox { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; background: #fff; }
.auction-minhint { font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.auction-bid-row { display: flex; align-items: stretch; gap: 8px; }
.auction-cur-sym { display: flex; align-items: center; font-weight: 700; color: #374151; }
.auction-amount {
    flex: 1; min-width: 0; font-size: 18px; font-weight: 700;
    padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px;
}
.auction-bid-btn {
    flex: 0 0 auto; padding: 10px 22px; border: none; border-radius: 8px;
    background: #b45309; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
}
.auction-bid-btn:hover { background: #92400e; }
.auction-bid-btn:disabled { opacity: .6; cursor: not-allowed; }
.auction-bid-err { color: #dc2626; font-size: 13px; margin-top: 8px; min-height: 16px; }
.auction-buynow-btn {
    display: block; width: 100%; margin-top: 10px;
    padding: 11px; border: 2px solid #16a34a; border-radius: 8px;
    background: #fff; color: #16a34a; font-size: 15px; font-weight: 700; cursor: pointer;
}
.auction-buynow-btn:hover { background: #16a34a; color: #fff; }
.auction-buynow-btn:disabled { opacity: .6; cursor: not-allowed; }
.auction-login-link { color: #b45309; font-weight: 600; margin-left: 6px; text-decoration: none; }
.auction-endtime { font-size: 12px; color: #9ca3af; margin-top: 6px; }

/* 描述 / 紀錄 */
.auction-section { margin-top: 28px; }
.auction-h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.auction-desc { font-size: 15px; line-height: 1.7; color: #374151; }
.auction-desc img { max-width: 100%; height: auto; }

.auction-history { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.auction-bid-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-bottom: 1px solid #f3f4f6; font-size: 14px;
}
.auction-bid-item:last-child { border-bottom: none; }
.abi-name { color: #374151; font-weight: 600; flex: 1; }
.abi-amount { color: #16a34a; font-weight: 700; flex: 0 0 auto; margin: 0 14px; }
.abi-time { color: #9ca3af; font-size: 12px; flex: 0 0 auto; }
.auction-nobids { padding: 18px; text-align: center; color: #9ca3af; font-size: 14px; }