/* Product Card Styles */
.orbitus-product-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.orbitus-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Product Image */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image-link {
    display: block;
    text-decoration: none;
}

.product-image-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.orbitus-product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.product-image-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
}

/* Badges */
.product-sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
    z-index: 2;
}

.product-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #2b2d42;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Product Content */
.product-content {
    padding: 20px;
}

.product-title {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #2b2d42;
}

.product-title a {
    color: #2b2d42;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #e63946;
}

/* Product Price */
.product-price {
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e63946;
}

.product-price del {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 8px;
}

.product-price ins {
    text-decoration: none;
    background: transparent;
}

/* Add to Cart Button */
.product-actions {
    margin-top: 8px;
}

.product-add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    gap: 8px;
    font-family: inherit;
}

.product-add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c1121f 0%, #a4161a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    color: white;
}

.product-add-to-cart-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Grid Layout for Multiple Products */
.orbitus-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .orbitus-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-image-wrapper img {
        height: 200px;
    }
    
    .product-content {
        padding: 16px;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .orbitus-products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image-wrapper img {
        height: 180px;
    }
}

/* RTL Support */
body.rtl .product-sale-badge {
    left: auto;
    right: 12px;
}

body.rtl .product-category-badge {
    right: auto;
    left: 12px;
}

body.rtl .product-price del {
    margin-left: 0;
    margin-right: 8px;
}

/* Loading State */
.orbitus-product-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.orbitus-product-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* Out of Stock State */
.product-out-of-stock .product-add-to-cart-btn {
    background: #6c757d;
    cursor: not-allowed;
}

.product-out-of-stock .product-out-of-stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 5;
}

/* Custom Color Variations */
.orbitus-product-card.featured {
    border: 2px solid #e63946;
}

.orbitus-product-card.featured::before {
    content: 'مميز';
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e63946;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    z-index: 3;
}

/* Animation for New Products */
@keyframes newProductPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

.orbitus-product-card.new-product {
    animation: newProductPulse 2s infinite;
}

/* Wishlist Button */
.product-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.product-wishlist-btn:hover {
    background: #e63946;
    color: white;
    transform: scale(1.1);
}

.product-wishlist-btn.active {
    background: #e63946;
    color: white;
}

/* Quick View Button */
.product-quick-view-btn {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 2;
}

.orbitus-product-card:hover .product-quick-view-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.product-quick-view-btn:hover {
    background: #e63946;
    color: white;
}