/* GME Discount Campaign — 商品圖滿版卡片,貼合 OUMOS 極簡風格 */

.gme-dc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.gme-dc-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* 圖片區:整張卡片就是商品圖(滿版裁切),預設透明無底色 */
.gme-dc-thumb {
    position: relative;
    background-color: transparent;
    border-radius: 16px;
    aspect-ratio: 1 / 1.3;
    overflow: hidden;
    display: block;
}

.gme-dc-imglink,
.gme-dc-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.gme-dc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* 滿版裁切:鋪滿卡片,溢出裁掉 */
    object-position: center;
    display: block;
    transition: transform .5s ease;
}

.gme-dc-card:hover .gme-dc-thumb img {
    transform: scale(1.04);
}

/* 折扣標籤(左上) */
.gme-dc-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #111;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .03em;
    padding: 7px 11px;
    border-radius: 999px;
    font-weight: 600;
}

/* 收藏愛心(右上) */
.gme-dc-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .08);
    transition: transform .15s ease, color .15s ease;
    padding: 0;
}
.gme-dc-heart:hover { transform: scale(1.08); }
.gme-dc-heart.is-active { color: #e23; }
.gme-dc-heart.is-active svg { fill: #e23; }

/* 名稱 */
.gme-dc-name {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    letter-spacing: .02em;
    color: #444;
    text-decoration: none;
    display: block;
}
a.gme-dc-name:hover { color: #000; }

/* 價格 */
.gme-dc-price {
    text-align: center;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
}
.gme-dc-price .old {
    color: #b0b0b0;
    margin-right: 8px;
}
/* 原價:槓掉 */
.gme-dc-price .old.style-strike {
    text-decoration: line-through;
    font-size: 1em;
}
/* 原價:縮小變淡 */
.gme-dc-price .old.style-dim {
    text-decoration: none;
    font-size: 0.8em;
    opacity: .85;
}
.gme-dc-price .new { color: #111; }
/* wc_price 會輸出 <span class="woocommerce-Price-amount">,確保不另外換行 */
.gme-dc-price .woocommerce-Price-amount { white-space: nowrap; }

.gme-dc-until {
    text-align: center;
    margin-top: 3px;
    font-size: 11px;
    color: #999;
    letter-spacing: .02em;
}

/* 加入購物車 */
.gme-dc-add {
    display: block;
    margin: 16px auto 0;
    min-width: 72%;
    padding: 13px 22px;
    border: none;
    border-radius: 999px;
    background: #e9e9e9;
    color: #111;
    font-size: 15px;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.gme-dc-add:hover { background: #111; color: #fff; }
.gme-dc-add.loading { opacity: .6; pointer-events: none; }
.gme-dc-add.done { background: #1a7f4b; color: #fff; }

@media (max-width: 1024px) {
    .gme-dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .gme-dc-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}
