/**
 * product-detail.css
 * 商品明細頁專屬樣式 — 抽選活動卡片、操作按鈕、Modal 與頁面微調
 * UTOYIA 2026
 */

/* ─── 抽選活動專屬資訊卡 ───────────────────────────── */
.lottery-info-card {
  background: #f8f9fa;
  border: 1.5px dashed #dbdbdb;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.lottery-info-card .badge-lottery-tag {
  background: #4b88c7;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  color: #fff;
  border-radius: 6px;
}

.lottery-info-card ul {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

/* ─── 抽選操作按鈕 ─────────────────────────────────── */
.btn-lottery-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  text-decoration: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-lottery-active {
  background: #2B2B2B;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(43, 43, 43, 0.25);
}

.btn-lottery-active:hover {
  background: #4b88c7;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(75, 136, 199, 0.35);
  transform: translateY(-1px);
}

.btn-lottery-login {
  background: #2c3e50;
  color: #fff !important;
}

.btn-lottery-login:hover {
  background: #1a252f;
  color: #fff !important;
}

.btn-lottery-registered {
  background: #e8f5e9;
  color: #2e7d32 !important;
  border: 1px solid #a5d6a7;
  cursor: default;
}

.btn-lottery-disabled {
  background: #e9ecef;
  color: #6c757d !important;
  border: 1px solid #dee2e6;
  cursor: not-allowed;
}

/* ─── 登記商品抽選 Modal ────────────────────────────── */
#modalLotteryReg .modal-content {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dbdbdb;
}

#modalLotteryReg .modal-header {
  background: #ffffff;
  border-bottom: 1.5px solid #dbdbdb;
}

#modalLotteryReg .modal-title {
  color: #2B2B2B;
  font-weight: 700;
}

#modalLotteryReg .modal-title i {
  color: #2B2B2B;
}

#modalLotteryReg .modal-footer {
  border-top: 1px solid #dbdbdb;
}

#btnSubmitLotteryReg {
  background-color: #2B2B2B !important;
  border-color: #2B2B2B !important;
  color: #fff !important;
}

#btnSubmitLotteryReg:hover {
  background-color: #4b88c7 !important;
  border-color: #4b88c7 !important;
}

/* ─── 商品徽章與狀態標籤 ────────────────────────────── */
.prod-badge-lottery-pill {
  background: #4b88c7;
  font-size: 0.8rem;
  padding: 4px 8px;
  vertical-align: middle;
  color: #fff;
  border-radius: 4px;
}

/* ─── 加入購物車按鈕（次要按鈕配色規範） ───────────────── */
#btnAddCart.btn-add-cart,
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #ffffff !important;
  color: #2B2B2B !important;
  border: 1px solid #dbdbdb !important;
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  margin-top: 1rem;
  line-height: 1.4;
  text-decoration: none !important;
}

#btnAddCart.btn-add-cart:hover:not(:disabled),
.btn-add-cart:hover:not(:disabled) {
  background-color: #4b88c7 !important;
  border-color: #4b88c7 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(75, 136, 199, 0.35) !important;
}

#btnAddCart.btn-add-cart:active:not(:disabled),
.btn-add-cart:active:not(:disabled) {
  background-color: #3b73ac !important;
  border-color: #3b73ac !important;
  color: #ffffff !important;
}

#btnAddCart.btn-add-cart:disabled,
.btn-add-cart:disabled {
  background-color: #e9ecef !important;
  border-color: #dbdbdb !important;
  color: #aaa !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ─── 商品頁「有現貨」庫存標籤（網站規範 4：藍色重點標籤） ─── */
.prod-stock-badge.in {
  background: rgba(75, 136, 199, 0.12) !important;
  color: #4b88c7 !important;
  border: 1px solid #4b88c7 !important;
}
.prod-stock-badge.in .dot {
  background: #4b88c7 !important;
}
.prod-stock-badge.out {
  background: #f8f9fa !important;
  color: #888888 !important;
  border: 1px solid #dbdbdb !important;
}

