/* Product Grid Elementor - Clean Responsive Styles */

.pge-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3px 0;
}

.pge-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
    .pge-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .pge-image {
        height: 180px;
    }
}

/* Desktop: 5 columns */
@media (min-width: 769px) {
    .pge-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
    
    .pge-image {
        height: 220px;
    }
}

/* Product Card */
.pge-product {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.pge-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.pge-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pge-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pge-product:hover .pge-image img {
    transform: scale(1.05);
}

.pge-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 14px;
    font-weight: 300;
}

/* Wishlist heart on left side (to avoid FEATURED badge on right) */
.pge-wishlist {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.pge-wishlist-btn {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    color: #ff4757;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.pge-wishlist-btn::before {
    content: "\2665";
    font-size: 14px;
    line-height: 1;
}

.pge-wishlist-btn:hover {
    background: #ff4757;
    border-color: #ff4757;
    color: #ffffff;
    transform: translateY(-1px);
}

.pge-wishlist-btn.in-wishlist {
    background: #ff4757;
    border-color: #ff4757;
    color: #ffffff;
}

/* Featured Badge */
.pge-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    padding: 3px 3px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* Verified vendor badge overlay in image */
.pge-vendor-badge-wrap {
    position: absolute;
    left: 0;
    bottom: 0;
    max-width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    pointer-events: none;
}

.pge-vendor-badge-wrap .wcfmvb-badge {
    font-size: 10px;
    padding: 2px 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* Product Content */
.pge-content {
    padding: 8px;
}

.pge-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    height: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pge-title a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s ease;
}

.pge-title a:hover {
    color: #3498db;
}

.pge-price {
    font-weight: 300;
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 5px;
}

.pge-add-cart {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #c58a3c, #c58a3c);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.pge-add-cart:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.pge-add-cart.auction-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    font-weight: 600;
    letter-spacing: 1px;
}

.pge-add-cart.auction-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* Auction product specific styling */
.pge-product.auction-product {
    border: 2px solid #e74c3c;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.15);
}

.pge-product.auction-product .pge-image {
    position: relative;
    overflow: hidden;
}

.pge-product.auction-product .pge-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.pge-product.auction-product .pge-featured {
    background: #e74c3c;
    /* Replace FEATURED with AUCTION for auction items */
}

/* No Products Message */
.pge-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.pge-no-products p {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
    font-weight: 300;
}

/* Load More Button */
.pge-load-more-container {
    text-align: center;
    margin-top: 40px;
}

.pge-load-more-btn {
    padding: 10px 10px;
    background: linear-gradient(135deg, #000000, #000000);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pge-load-more-btn:hover:not(:disabled) {
    background: linear-gradient(35deg, #000000, #000000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.pge-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Adjustments */
@media (max-width: 300px) {
    .pge-container {
        padding: 3px 3px;
    }
    
    .pge-grid {
        gap: 12px;
    }
    
    .pge-image {
        height: 130px;
    }
    
    .pge-content {
        padding: 3px;
    }
    
    .pge-title {
        font-size: 13px;
        height: 20px;
    }
    
    .pge-price {
        font-size: 15px;
    }
    
    .pge-add-cart {
        padding: 3px;
        font-size: 11px;
    }
}

@media (max-width: 200px) {
    .pge-image {
        height: 200px;
    }
}

/* Large Desktop Optimization */
@media (min-width: 1200px) {
    .pge-container {
        max-width: 1400px;
    }
    
    .pge-grid {
        gap: 25px;
    }
}

/* Smooth Animations - Without Flashing */
.pge-product {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.pge-loading {
    opacity: 0.6;
    pointer-events: none;
}

.pge-loading .pge-product {
    animation: none;
}