.product-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    width: auto;
    margin: auto;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.product-card h3 {
    padding-top: 0px;
    font-size: 12px;
}

.product-image img {
    height: 200px !important;
    width: 250px !important;
    object-fit: contain;
    border-radius: 5px;
}

.product-title {
    font-size: 1.2em;
    padding: 10px;
    margin: 0px;
    height: calc(1.3em * 3);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-price del .woocommerce-Price-amount {
    font-size: 14px !important;
    color: #9a9693 !important;
}

.product-price ins .woocommerce-Price-amount {
    font-size: 18px !important;
}

.product-price {
    font-weight: bold;
    font-size: 18px;
    color: #28a745;
}

.product-stock {
    font-size: 12px;
    font-weight: bold;
}



/* Keyframes สำหรับแอนิเมชันกรอบทอง */
@keyframes goldBorderAnimation {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* การ์ดสีทอง */
.product-card.gold {
    border: 2px solid gold;
    animation: goldBorderAnimation 2s infinite;
    position: relative;
}

.product-card.gold::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 12px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    z-index: -1;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { opacity: 0.4; }
    50% { opacity: 0.7; }
    100% { opacity: 0.4; }
}

/* Badge พื้นฐาน */
.product-image .badge-recommended,
.product-image .badge-new {
    position: absolute;
    top: 12px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Badge แนะนำ - สีฟ้า */
.product-image .badge-recommended {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    left: 12px;
}

/* Badge ใหม่ - สีส้ม */
.product-image .badge-new {
    background: linear-gradient(135deg, #ff7043, #ff9d7f);
    right: 12px;
    left: auto;
    animation: badgePulse 2s infinite;
}