/* =====================================================================
   Home / Member — Figma node 3:299.
   This project renders a 750px logical canvas; values below are the
   402px Figma measurements multiplied by 750 / 402.
   ===================================================================== */

#newIndex.ds-app {
    bottom: 0;
    padding: 0 0 205px;
    background: var(--ds-bg);
}

.ds-home-block { margin-top: 67px; }
.ds-home-full { width: 100%; }
.ds-home-banner {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

/* ── Home header ─────────────────────────────────────────────────── */
.ds-home-header {
    padding: 22px 22px 24px;
    border-radius: 0 0 67px 67px;
}
.ds-home-header .ds-header-row { padding: 0 8px; align-items: center; }
.ds-home-header .ds-guest-login {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    color: #fff;
    font-size: 30px;
    line-height: 45px;
    text-decoration: none;
}
.ds-home-header .ds-guest-login span { font-size: 43px; line-height: 1; }
/* header 右上角白色 wordmark（client feedback 2026-08-12，PDF p.1）*/
.ds-home-header .ds-header-wordmark { height: 92px; width: auto; margin-left: auto; }
.ds-home-header .ds-header-greet {
    font-size: 30px;
    line-height: 45px;
}
.ds-home-header .ds-header-points {
    gap: 8px;
    margin-top: 0;
}
.ds-home-header .ds-header-points .ds-coin { width: 41px; height: 41px; flex-basis: 41px; }
.ds-home-header .ds-header-points .ds-pts-val {
    font-size: 41px;
    line-height: 41px;
    font-weight: 500;
}
.ds-home-header .ds-header-points .ds-pts-unit { font-size: 30px; margin-left: 0; }
.ds-home-header .ds-header-points .ds-chevron { font-size: 38px; margin-left: 0; }
.ds-home-header .ds-header-actions { gap: 0; }
.ds-home-header .ds-icon-btn {
    width: 82px;
    height: 82px;
    background: transparent;
}
.ds-home-header .ds-icon-btn svg { width: 45px; height: 45px; }
.ds-home-header .ds-icon-btn .ds-dot {
    top: 10px;
    right: 8px;
    width: 13px;
    height: 13px;
    border-width: 2px;
}
.ds-home-header .ds-search {
    width: 100%;
    height: 90px;
    margin: 16px 0 0;
    padding: 0 22px;
    gap: 22px;
    border-radius: 45px;
    box-shadow: none;
    font-size: 26px;
}
.ds-home-header .ds-search svg { width: 30px; height: 30px; flex-basis: 30px; }

/* ── Advertising carousel ────────────────────────────────────────── */
.ds-hero {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--ds-shadow-card);
}
.new-index-banner.ds-hero {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0 0 34px;
    box-shadow: none;
    overflow: visible;
}
.new-index-banner.ds-hero .new-index-banner-bg,
.new-index-banner.ds-hero .new-index-banner-border { display: none; }
.new-index-banner.ds-hero .index-banner,
#index-banner,
#index-banner .swiper-wrapper { width: 100%; height: auto; }
#index-banner .swiper-wrapper .swiper-slide {
    width: 638px;
    height: auto;
}
#index-banner .swiper-wrapper .object-fit-cover {
    display: block;
    width: 100%;
    height: 319px;
    margin: 0;
    border-radius: 15px;
    box-shadow: var(--ds-shadow-card);
    object-fit: cover;
}
#index-banner .swiper-pagination { bottom: 0; }
#index-banner .swiper-pagination-bullet,
#center-banner .swiper-pagination-bullet,
#exchange-banner .swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    margin: 0 4px;
    border-radius: 15px;
    background: rgba(80, 80, 80, .25);
    opacity: 1;
}
#index-banner .swiper-pagination-bullet-active,
#center-banner .swiper-pagination-bullet-active,
#exchange-banner .swiper-pagination-bullet-active {
    width: 45px;
    background: var(--ds-primary);
}

/* ── Shared blue section (Redeem + Merchant) ─────────────────────── */
.ds-gsection {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 45px;
    background: var(--ds-primary);
    box-shadow: var(--ds-shadow-card);
}
.ds-gsection-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 112px;
    padding: 22px 30px;
    color: #fff;
    text-decoration: none;
}
.ds-gsection-head > svg,
.ds-gsection-head .ds-gs-title,
.ds-gsection-head .ds-gs-arrow { position: relative; z-index: 1; }
.ds-gsection-head .ds-gs-icon { width: 52px; height: 52px; flex: 0 0 52px; }
.ds-gsection-head .ds-gs-title {
    font-size: 41px;
    line-height: 52px;
    font-weight: 600;
    letter-spacing: -1px;
}
.ds-gsection-head .ds-gs-arrow { font-size: 43px; line-height: 1; opacity: .95; }
.ds-gsection-head .ds-gs-deco {
    position: absolute;
    z-index: 0;
    /* Keep the 3D art fully inside the blue band — the old -26px offset let
       it spill above the band (cut flat by the section clip) and bleed onto
       the white body below. */
    top: 50%;
    transform: translateY(-50%);
    right: 22px;
    width: 100px;
    height: 100px;
    pointer-events: none;
}
.ds-gsection-body {
    overflow: hidden;
    padding: 30px;
    border-radius: 45px;
    background: #fff;
}

/* Figma RedeemProdCard: two 174.8px cards plus the next-card peek. */
.pro-list-ul { margin: 0; padding: 0; gap: 11px; }
.pro-list-ul .item {
    min-width: 326px;
    height: auto;
    margin-right: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: var(--ds-surface);
    box-shadow: none;
}
.pro-list-ul .item-img {
    width: 100%;
    height: 326px;
    overflow: hidden;
    border-radius: 0;
    /* 產品圖統一加灰色底（client feedback 2026-08 p.3）*/
    background: var(--ds-media-bg);
}
.pro-list-ul img { width: 100%; height: 326px; margin: 0; object-fit: cover; }
.pro-list-ul .item-img img { mix-blend-mode: multiply; }
.pro-list-ul .item-brand {
    margin-top: 0;
    padding: 15px 15px 0;
    color: var(--ds-text-tertiary);
    font-size: 26px;
    font-weight: 400;
    line-height: 37px;
    letter-spacing: 0;
    text-transform: none;
}
.pro-list-ul .item-title {
    height: auto;
    margin: 0;
    padding: 0 15px;
    overflow: hidden;
    color: var(--ds-text);
    font-size: 32px;
    font-weight: 500;
    line-height: 41px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}
.pro-list-ul .rp-price { margin: 11px 0 0; padding: 0 15px 15px; }
.pro-list-ul .rp-hk,
.pro-list-ul .rp-pt { font-size: 26px; line-height: 31px; }
.pro-list-ul .rp-pt { gap: 6px; margin-top: 2px; }
.pro-list-ul .rp-coin { width: 33px; height: 33px; flex-basis: 33px; }

/* ── Offer card ──────────────────────────────────────────────────── */
.ds-offer-section { padding: 0 22px; }
.ds-home-title-row {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0 11px 11px;
}
.ds-home-title {
    position: relative;
    margin: 0;
    padding-left: 20px;
    color: var(--ds-text);
    font-size: 41px;
    line-height: 52px;
    font-weight: 600;
    letter-spacing: -1px;
}
.ds-home-title::before {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 0;
    width: 8px;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--ds-coral) 0%, var(--ds-gold) 100%);
    content: "";
}
.ds-home-more {
    margin-left: auto;
    color: var(--ds-coral);
    font-size: 26px;
    font-weight: 500;
    line-height: 40px;
    text-decoration: none;
    white-space: nowrap;
}
.ds-home-more span { font-size: 34px; vertical-align: -2px; }
.center-banner.ds-offer-card {
    width: 100%;
    height: auto;
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--ds-shadow-card);
}
#center-banner,
#center-banner .swiper-wrapper,
#center-banner .swiper-wrapper .swiper-slide {
    width: 100%;
    height: auto;
}
.ds-featured-offer {
    display: flex;
    width: 100%;
    flex-direction: column;
    color: var(--ds-text);
    text-decoration: none;
}
#center-banner .ds-featured-offer .object-fit-cover {
    width: 100%;
    height: 353px;
    object-fit: cover;
}
/* 兌換中心 banner：整幅圖（地址／營業時間等文字資訊）按原比例顯示，
   刻意唔用固定高度 + object-fit:cover，否則後台上載嘅圖比例一唔同就會裁到字。 */
#exchange-banner,
#exchange-banner .swiper-wrapper,
#exchange-banner .swiper-wrapper .swiper-slide {
    width: 100%;
    height: auto;
}
#exchange-banner .object-fit-cover {
    display: block;
    width: 100%;
    height: auto;
}
.ds-featured-offer-copy {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    gap: 8px;
    padding: 22px 26px 30px;
    box-sizing: border-box;
}
.ds-featured-offer-copy strong {
    overflow: hidden;
    color: var(--ds-text);
    font-size: 28px;
    line-height: 38px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ds-featured-offer-copy > span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ds-text-tertiary);
    font-size: 23px;
    line-height: 34px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
#center-banner .swiper-pagination { bottom: 126px; }

/* ── Merchant section ────────────────────────────────────────────── */
.ds-merchant-section .ds-gsection-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.ds-merchant-section {
    background: var(--ds-primary);
}
.ds-merchant-intro {
    margin: 0;
    color: var(--ds-text-secondary);
    font-size: 30px;
    line-height: 45px;
}
.ds-merchant-rail {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -8px;
}
.ds-merchant-rail::-webkit-scrollbar,
.ds-category-row::-webkit-scrollbar { display: none; }
.ds-merchant {
    flex: 0 0 187px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--ds-text);
    text-decoration: none;
}
.ds-merchant-logo {
    width: 134px;
    height: 134px;
    overflow: hidden;
    border-radius: 45px;
    /* 商戶 logo 統一用顏色托底（client feedback 2026-08 pp.5-6）*/
    background: var(--ds-logo-tint);
}
.ds-merchant-logo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.ds-merchant-name {
    width: 100%;
    min-height: 60px;
    padding: 0 6px;
    overflow: hidden;
    font-size: 22px;
    line-height: 30px;
    text-align: center;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.ds-category-row {
    display: flex;
    gap: 19px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ds-category-chip {
    flex: 0 0 auto;
    min-width: 149px;
    padding: 7px 22px;
    border: 2px solid var(--ds-border);
    border-radius: 45px;
    background: var(--ds-bg);
    color: var(--ds-text-secondary);
    font: 400 30px/45px var(--ds-font);
    white-space: nowrap;
}
/* 按鈕轉實色更明顯（client feedback 2026-08 p.6）：選中 chip 實色 primary + 白字 */
.ds-category-chip.is-active {
    border-color: var(--ds-primary);
    background: var(--ds-primary);
    color: #fff;
    font-weight: 500;
}
.ds-home-voucher-list .cardList { display: block; }
.ds-home-empty {
    padding: 40px;
    border-radius: 22px;
    background: var(--ds-bg);
    color: var(--ds-text-tertiary);
    font-size: 26px;
    text-align: center;
}

/* Compact Coupon Prod Card v2, matching the 354px-wide home component. */
.ds-home-voucher-list .cpc {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 22px;
    background: var(--ds-bg);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--ds-shadow-card);
}
.ds-home-voucher-list .cpc-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 26px;
    background: var(--ds-bg);
}
.ds-home-voucher-list .cpc-merchant {
    color: var(--ds-text-tertiary);
    font-size: 22px;
    line-height: 30px;
}
.ds-home-voucher-list .cpc-title {
    overflow: hidden;
    color: #000;
    font-size: 30px;
    font-weight: 500;
    line-height: 45px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ds-home-voucher-list .cpc-price {
    color: var(--ds-primary);
    font: 400 30px/31px var(--ds-font-num);
}
.ds-home-voucher-list .cpc-price span { margin-right: 2px; font-size: 26px; }
.ds-home-voucher-list .cpc-tag {
    align-self: flex-start;
    padding: 4px 22px;
    background: #f9f0cc;
    color: #e46700;
    font-size: 22px;
    line-height: 30px;
}
.ds-home-voucher-list .cpc-reward {
    align-self: flex-start;
    display: flex;
    align-items: stretch;
    max-width: 100%;
    overflow: hidden;
    border: 2px solid var(--ds-primary-bright);
    border-radius: 11px;
    font-family: var(--ds-font-num);
}
.ds-home-voucher-list .cpc-reward-l {
    display: flex;
    align-items: center;
    padding: 8px 22px 8px 15px;
    border-radius: 0 34px 34px 0;
    background: var(--ds-primary-bright);
    color: var(--ds-primary-tint);
    font-size: 26px;
    white-space: nowrap;
}
.ds-home-voucher-list .cpc-reward-r {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0 11px;
    overflow: hidden;
    color: var(--ds-primary-bright);
    font-size: 26px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ds-home-voucher-list .cpc-coin {
    width: 33px;
    height: 33px;
    flex: 0 0 33px;
    background: url("/images/redesign/gift-icon.png") center/contain no-repeat;
}
.ds-home-voucher-list .cpc-split {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    background: var(--ds-bg);
}
.ds-home-voucher-list .cpc-split::before,
.ds-home-voucher-list .cpc-split::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    transform: translateX(-50%);
}
.ds-home-voucher-list .cpc-split::before { top: -11px; }
.ds-home-voucher-list .cpc-split::after { bottom: -11px; }
.ds-home-voucher-list .cpc-line {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 50%;
    border-left: 2px dashed #dfdccd;
    transform: translateX(-50%);
}
.ds-home-voucher-list .cpc-reward-img {
    flex: 0 0 165px;
    width: 165px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 優惠券 logo 統一用顏色托底（client feedback 2026-08 pp.5-6）*/
    background: var(--ds-logo-tint);
}
.ds-home-voucher-list .cpc-reward-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 11px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.ds-home-cta {
    height: 97px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 49px;
    /* client feedback 2026-08-12：查看全部 CTA 純色 #685C20（本來係 coral→gold 漸變）*/
    background: var(--ds-primary);
    color: #fff;
    font-size: 30px;
    font-weight: 500;
    text-decoration: none;
}
