/* Enhanced Product Card Styles - Specialized Features */

/* Product Badges */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.product-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.discount-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.featured-badge {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: white;
}

.bestseller-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.new-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-text {
    line-height: 1;
}

.product-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Enhanced Product Overlay Actions */
.product-overlay-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay-actions {
    opacity: 1;
}

.overlay-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.overlay-action-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 134, 229, 0.4);
}

.overlay-action-btn svg {
    width: 18px;
    height: 18px;
}

/* Product Category */
.product-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.product-category svg {
    width: 12px;
    height: 12px;
    color: var(--secondary-light);
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
}

.rating-stars {
    display: flex;
    gap: 2px;
    color: #ffc107;
}

.rating-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced Price Display */
.price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.price-current {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-value {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.price-currency {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.price-original {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-value-old {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.discount-percent {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

/* Enhanced Stock Badges */
.product-stock-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    z-index: 5;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stock-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
    color: white;
}

.stock-out {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
    color: white;
}

.product-stock-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Product Actions */
.product-actions {
    width: 100%;
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.quick-view-content {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 1200px);
    max-height: min(90vh, 800px);
    width: 100%;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    animation: quickViewSlideIn 0.3s ease;
    overflow-y: auto;
}

@keyframes quickViewSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quick-view-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.quick-view-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

/* Compare Products Bar */
.compare-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(0, 134, 229, 0.95), rgba(0, 163, 255, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 134, 229, 0.4);
    display: none;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.compare-bar.active {
    display: flex;
}

.compare-count {
    font-weight: 700;
    font-size: 14px;
}

.compare-btn-bar {
    padding: 8px 20px;
    background: white;
    color: var(--secondary);
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compare-btn-bar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-badges {
        top: 8px;
        left: 8px;
        gap: 6px;
    }
    
    .product-badge {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .overlay-action-btn {
        width: 36px;
        height: 36px;
    }
    
    .overlay-action-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .product-stock-badge {
        bottom: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .quick-view-content {
        padding: 20px;
        max-height: 95vh;
    }
    
    .compare-bar {
        bottom: 10px;
        padding: 12px 20px;
        font-size: 12px;
    }
    
    .compare-btn-bar {
        padding: 6px 16px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .product-badge {
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .product-badge svg {
        width: 12px;
        height: 12px;
    }
    
    .overlay-action-btn {
        width: 32px;
        height: 32px;
    }
    
    .overlay-action-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .quick-view-content {
        padding: 16px;
        border-radius: 16px;
    }
}

