#content {
    background: #f9f9f9;
}

.ast-container {
    padding: 10px;
}

/* Product Card Container */
.product-card-wrapper {
    margin: 15px;
    perspective: 1000px;
}


/* Main Card Styling */
.product-card {
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-link {
    text-decoration: none !important;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Featured Card Styling */
.product-card.featured {
    border: 2px solid #FFD700;
    animation: pulseGold 2s infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

@keyframes pulseGold {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
}

/* Image Container */
.product-image-container {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #f8f8f8;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Badges */
.product-badge {
    position: absolute;
    top: 10px;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.product-badge.sale {
    left: 10px;
    background: #ff4757;
}

.product-badge.featured {
    right: 10px;
    background: #FFD700;
    color: #333;
}

.product-badge.out-of-stock {
    left: 10px;
    background: #333;
}

.product-badge.backorder {
    left: 10px;
    background: #2e86de;
}

/* Product Info */
.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 20px !important;
    margin: 0 !important;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.product-meta {
    margin-top: auto;
}

/* Price Styling */
/* แก้ไขส่วน product-price */
.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #2f3542;
    margin: 10px 0;
    display: flex;
    gap: 8px;
    /* ระยะห่างระหว่างราคา */
}

.product-price del {
    font-size: 16px;
    color: #a4b0be;
    order: 2;
    /* ย้ายราคาเดิมไปอยู่หลัง */
}

.product-price ins {
    text-decoration: none;
    color: #ff4757;
    order: 1;
    /* ย้ายราคาลดมาไว้หน้า */
}

/* Add to Cart Button */
.product-actions {
    padding: 0;
}

.product-actions .button {
    width: 100%;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.product-actions .button:hover {
    background: #ffbe4a !important;
    border: none;
    color: #000 !important;
}

/* Responsive Design */
@media (max-width: 768px) {


    .product-card {
        max-width: 100%;
    }

    .product-title {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .wp-block-group-is-layout-grid {
        grid-template-columns: 50% 50% !important;
        gap: 8px !important;
    }
}