/**
 * Product Category Styles
 * Custom CSS for product category pages
 */

/* Sold Out Effects */
.xb-portfolio-item.sold-out {
    position: relative;
    opacity: 0.7;
}

.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.sold-out-overlay span {
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sold-out .xb-item--img img {
    filter: grayscale(100%);
}

.sold-out .xb-item--title a {
    color: #999;
    text-decoration: line-through;
}

/* New Product Effects */
.xb-portfolio-item.new-product {
    position: relative;
}

.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.new-product .xb-item--img {
    position: relative;
    overflow: hidden;
}

.new-product .xb-item--img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
    z-index: 2;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Product Description Styling */
.product-description {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #e9ecef;
}

.new-product .product-description {
    border-left-color: #ff6b6b;
    background: linear-gradient(135deg, #fff5f5, #f8f9fa);
}

/* Hover Effects */
.xb-portfolio-item:not(.sold-out):hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sold-out:hover {
    transform: none;
    cursor: not-allowed;
}

/* Team Image Consistency */
.team .xb-item--image {
    height: 300px;
    overflow: hidden;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .new-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .sold-out-overlay span {
        font-size: 14px;
    }
}
