/* =========================================================================
   LAVUMALL - assets/css/index/index-coupon.css
   首頁優惠券區塊
   ========================================================================= */

/* ================= 優惠券領取區塊樣式（藍色系風格） ================= */
.coupon-section {
    margin-top: 30px;
    margin-bottom: 10px;
}
.coupon-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.coupon-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 8px;
}
.coupon-header h3 i {
    color: #0071e3;
}
.coupon-subtitle {
    font-size: 13px;
    color: #86868b;
}

/* 橫向滑動容器：顯示4張 (calc(25% - 12px) + gap: 16px)，超過時自動出現橫向拉霸 */
.coupon-scroll-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 4px 14px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
/* 自訂拉霸/滾動條樣式 */
.coupon-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}
.coupon-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.coupon-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #0071e3;
    border-radius: 10px;
}
.coupon-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #005bb5;
}

/* 優惠券卡片 (藍色系美學) */
.coupon-card {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 250px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8fe 100%);
    border: 1px solid #d0e3ff;
    border-radius: 14px;
    display: flex;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}
.coupon-card:hover {
    transform: translateY(-3px);
    border-color: #0071e3;
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.16);
}

/* 左半部：面額 */
.coupon-left {
    width: 38%;
    background: linear-gradient(135deg, #0071e3 0%, #0051a8 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 8px;
    text-align: center;
}
.coupon-amount {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}
.coupon-amount small {
    font-size: 13px;
}
.coupon-min {
    font-size: 11px;
    margin-top: 6px;
    opacity: 0.9;
}

/* 中間鋸齒分隔虛線 */
.coupon-divider {
    width: 0;
    border-left: 2px dashed #b8d7ff;
    position: relative;
}

/* 右半部：標題與按鈕 */
.coupon-right {
    width: 62%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.coupon-title {
    font-size: 14px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.coupon-date {
    font-size: 11px;
    color: #86868b;
    margin-top: 4px;
}
.coupon-claim-btn {
    margin-top: 8px;
    width: 100%;
    padding: 6px 0;
    background-color: #0071e3;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.coupon-claim-btn:hover:not(:disabled):not(.claimed) {
    background-color: #005bb5;
}
.coupon-claim-btn:active:not(:disabled):not(.claimed) {
    transform: scale(0.98);
}
.coupon-claim-btn.claimed,
.coupon-claim-btn:disabled {
    background-color: #e5e5e7;
    color: #86868b;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 992px) {
    .coupon-card { flex: 0 0 80%; }
}