.deals-pc-container { max-width: 1320px; margin: 40px auto 60px auto; padding: 0 20px; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC", "Microsoft JhengHei", sans-serif; } /* 頂部標題列 */ .deals-pc-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #f1f5f9; } .header-titles .sub-badge { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: #eab308; display: block; margin-bottom: 4px; } .header-titles .main-title { font-size: 26px; font-weight: 800; color: #1e293b; margin: 0; } .header-guarantees { display: flex; gap: 12px; } .guarantee-item { font-size: 13px; color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; padding: 6px 14px; border-radius: 999px; } /* PC 寬螢幕 4 欄網格 */ .deals-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; } /* 單張卡片架構 */ .product-card { background: #ffffff; border: 1px solid #f1f5f9; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; } .product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 28px rgba(0, 0, 0, 0.08); border-color: #fde047; } /* 上方詳情連結區塊 (純跳轉) */ .product-detail-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; padding: 0 16px; } /* 圖片容器 */ .product-image-box { position: relative; width: 100%; aspect-ratio: 1 / 1; margin: 0 -16px 16px -16px; width: calc(100% + 32px); display: flex; align-items: center; justify-content: center; overflow: hidden; } .product-image-box.gold-gradient { background: linear-gradient(135deg, #fceb92 0%, #f9d976 100%); } .product-image-box.white-gradient { background: #ffffff; border-bottom: 1px solid #f8fafc; } .product-image-box img { max-width: 88%; max-height: 88%; object-fit: contain; transition: transform 0.3s ease; } .product-card:hover .product-image-box img { transform: scale(1.05); } /* 熱銷組合標籤 */ .corner-badge { position: absolute; top: 10px; left: 10px; background: #facc15; color: #854d0e; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; box-shadow: 0 2px 6px rgba(250, 204, 21, 0.35); z-index: 2; } /* 商品標題限制兩行高度,確保各欄對齊一致 */ .product-title { font-size: 15px; font-weight: 700; color: #1e293b; line-height: 1.45; text-align: center; margin-bottom: 14px; height: 44px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* 價格區塊 */ .price-block { display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; } .current-price { font-size: 25px; font-weight: 900; color: #eab308; letter-spacing: -0.5px; line-height: 1.2; } .original-price { font-size: 14px; color: #9ca3af; text-decoration: line-through; margin-top: 3px; font-weight: 500; } /* 下方加車按鈕操作區 */ .action-group { padding: 0 16px 20px 16px; display: flex; justify-content: center; width: 100%; box-sizing: border-box; } /* 原生 WooCommerce AJAX 加車按鈕樣式覆寫 */ .cart-btn.button { width: 84% !important; height: 42px !important; padding: 0 !important; margin: 0 !important; border: 1.5px solid #e2e8f0 !important; border-radius: 10px !important; background: #ffffff !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; transition: all 0.2s ease !important; line-height: 1 !important; } .cart-btn.button::after { display: none !important; } .cart-svg-icon { width: 22px; height: 22px; stroke: #eab308; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s ease, transform 0.2s ease; } .cart-btn.button:hover { background: #eab308 !important; border-color: #eab308 !important; box-shadow: 0 4px 12px rgba(234, 179, 8, 0.35) !important; } .cart-btn.button:hover .cart-svg-icon { stroke: #ffffff; transform: scale(1.1); } .cart-btn.button.loading { opacity: 0.6; pointer-events: none; } .cart-btn.button.added { background: #16a34a !important; border-color: #16a34a !important; } .cart-btn.button.added .cart-svg-icon { stroke: #ffffff !important; } /* 平板直向與小型筆電:2 欄排列 */ @media (max-width: 1024px) { .deals-product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } .deals-pc-header { flex-direction: column; align-items: flex-start; gap: 10px; } } /* 手機版:切換為單欄自適應 */ @media (max-width: 580px) { .deals-product-grid { grid-template-columns: 1fr; gap: 14px; } .header-guarantees { flex-direction: column; gap: 6px; } } if (window.jQuery) { jQuery(document).ready(function ($) { $(document.body).on('added_to_cart', function (event, fragments, cart_hash, $button) { $button.addClass('added'); setTimeout(function () { $button.removeClass('added'); }, 2200); }); }); }
×

Cart

Our about

Alternate gallery slid