/* LAVUMALL category.php 拆分模組 */
/* 商品網格 4x4 與卡片 */
        .products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 25px; margin-bottom: 30px; min-height: 200px; }

        .product-card {
            background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(5px); border-radius: 16px; padding: 18px;
            border: 1px solid rgba(234, 234, 234, 0.8); position: relative; cursor: pointer;
            transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease; overflow: hidden;
        }
        .product-card:hover { border-color: #0071e3; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); transform: translateY(-5px); }

        .wishlist-btn {
            position: absolute; top: 25px; right: 25px; background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(4px);
            border: none; color: #86868b; font-size: 16px; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
            width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 12; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        .wishlist-btn:hover { transform: scale(1.12); color: #ff2d55; background: #ffffff; }
        .wishlist-btn.active { color: #ff2d55; background: #ffffff; animation: heartBeat 0.3s ease-in-out; }
        @keyframes heartBeat { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1.12); } }

        /* 1.5 秒蓄力進度條 */
        .charge-bar { position: absolute; top: 0; left: 0; width: 100%; height: 5px; background-color: rgba(234, 234, 234, 0.5); z-index: 5; opacity: 0; transition: opacity 0.2s ease; }
        .charge-fill { height: 100%; width: 0%; background-color: #0071e3; transition: width 1.5s linear; }
        .product-card.preparing-pop { animation: subtle-bounce 0.5s ease infinite; }
        .product-card.preparing-pop .charge-bar { opacity: 1; }
        .product-card.preparing-pop .charge-fill { width: 100%; }
        @keyframes subtle-bounce { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(-12px); } }

        .product-image-wrapper { width: 100%; aspect-ratio: 1/1; background: #f5f5f7; border-radius: 10px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; margin-bottom: 15px; }
        .product-image-wrapper i { font-size: 52px; color: #d2d2d7; }

        .product-info { position: relative; }
        .product-name { font-size: 16px; font-weight: 500; color: #1d1d1f; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; white-space: normal; line-height: 1.4; height: 2.8em; }

        .product-bottom-row { display: flex; align-items: flex-end; justify-content: space-between; }
        .price-group { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
        @media (min-width: 993px) { .price-group { flex-direction: row; align-items: baseline; gap: 8px; } }

        .discount-price { font-size: 18px; font-weight: 700; color: #ff3b30; line-height: 1; }
        .original-price { font-size: 13px; color: #86868b; text-decoration: line-through; line-height: 1; }
        .action-group { display: flex; align-items: center; gap: 8px; z-index: 10; }

        .share-btn { background: none; border: none; color: #86868b; font-size: 16px; cursor: pointer; transition: color 0.3s, transform 0.2s; padding: 5px; margin-bottom: -2px; }
        .share-btn:hover { color: #0071e3; transform: scale(1.15); }

        .product-stats-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #86868b; margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(234, 234, 234, 0.6); }
        .stat-rec i { color: #ff9500; margin-right: 2px; }

        /* 當無商品時顯示之提示區塊 */
        .no-products-box {
            text-align: center; padding: 60px 20px; color: #86868b; font-size: 15px;
            background: rgba(245, 245, 247, 0.6); border-radius: 16px; margin: 25px 0 50px 0; display: none;
        }
        .no-products-box i { font-size: 42px; display: block; margin-bottom: 12px; color: #d2d2d7; }